From c8c7aec0e1f41867cef01566c7cbbf6dec97b632 Mon Sep 17 00:00:00 2001 From: foxhui Date: Sat, 20 Dec 2025 04:40:05 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BB=A3=E7=A0=81=E8=A7=A3?= =?UTF-8?q?=E8=80=A6=E5=90=88=EF=BC=8C=E5=AE=8C=E5=96=84WebUI=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=8C=E6=B7=BB=E5=8A=A0=E7=BD=91=E9=A1=B5VNC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 8 +- pnpm-workspace.yaml | 5 +- src/backend/adapter/gemini.js | 2 +- src/backend/adapter/gemini_biz.js | 2 +- src/backend/adapter/gemini_biz_text.js | 2 +- src/backend/adapter/lmarena.js | 2 +- src/backend/adapter/lmarena_text.js | 2 +- src/backend/adapter/nanobananafree_ai.js | 2 +- src/backend/adapter/turnstile_test.js | 2 +- src/backend/adapter/zai_is.js | 2 +- src/{browser => backend/engine}/launcher.js | 4 +- src/{browser => backend/engine}/utils.js | 2 +- src/backend/index.js | 2 +- src/backend/pool/PoolManager.js | 4 +- src/backend/pool/Worker.js | 11 +- src/backend/{ => strategies}/failover.js | 6 +- .../{strategy.js => strategies/index.js} | 0 src/backend/utils/page.js | 2 +- src/{utils/config.js => config/index.js} | 2 +- .../configManager.js => config/manager.js} | 3 +- .../validator.js} | 0 .../adminRoutes.js => api/admin/routes.js} | 101 +- src/server/api/admin/vncProxy.js | 195 +++ src/server/api/index.js | 120 ++ .../{parseChat.js => api/openai/parse.js} | 4 +- src/server/api/openai/routes.js | 174 +++ src/server/display.js | 213 ---- src/server/http/routes.js | 282 ---- src/server/index.js | 10 +- src/server/middlewares/auth.js | 39 + src/server/queue.js | 2 +- src/server/{http => }/respond.js | 2 +- server.js => src/server/server.js | 85 +- src/utils/ipc.js | 113 ++ src/utils/preflight.js | 3 +- supervisor.js | 428 +++++++ webui/.npmrc | 4 + webui/assets/cache-Cy4mgfN4.js | 1 - webui/assets/dash-BUMZuoA4.js | 1 - webui/assets/display-Bpu1-5NI.js | 1 - webui/assets/system-CD4DQKFk.js | 1 - webui/dist/assets/DesktopOutlined-DmRiuvy2.js | 1 + .../assets/adapters-BuKXvMZU.js} | 2 +- .../assets/browser-CZogeus2.js} | 2 +- webui/dist/assets/cache-DYoxhx9q.js | 1 + webui/dist/assets/dash-C1BS1PJi.js | 1 + webui/dist/assets/display-CU0V30l_.js | 1 + .../assets/index-CAMDRWk5.css} | 2 +- .../assets/index-N039yHLa.js} | 82 +- webui/dist/assets/rfb-BW3Yvshj.js | 5 + .../assets/server-BIrLgehb.js} | 2 +- webui/{ => dist}/assets/server-D1vV5anY.css | 0 webui/dist/assets/system-C2wy1aIP.js | 1 + .../assets/workers-C-NcF24t.js} | 2 +- webui/dist/favicon.png | Bin 0 -> 70830 bytes webui/dist/index.html | 17 + webui/index.html | 4 +- webui/package.json | 23 + webui/pnpm-lock.yaml | 1136 +++++++++++++++++ webui/pnpm-workspace.yaml | 2 + webui/public/favicon.png | Bin 0 -> 70830 bytes webui/src/App.vue | 214 ++++ webui/src/components/auth/LoginModal.vue | 82 ++ webui/src/components/dash.vue | 237 ++++ webui/src/components/settings/adapters.vue | 128 ++ webui/src/components/settings/browser.vue | 171 +++ webui/src/components/settings/server.vue | 123 ++ webui/src/components/settings/workers.vue | 490 +++++++ webui/src/components/tools/cache.vue | 444 +++++++ webui/src/components/tools/display.vue | 220 ++++ webui/src/main.js | 28 + webui/src/stores/settings.js | 229 ++++ webui/src/stores/system.js | 112 ++ webui/vite.config.js | 22 + 74 files changed, 4984 insertions(+), 644 deletions(-) rename src/{browser => backend/engine}/launcher.js (98%) rename src/{browser => backend/engine}/utils.js (99%) rename src/backend/{ => strategies}/failover.js (95%) rename src/backend/{strategy.js => strategies/index.js} (100%) rename src/{utils/config.js => config/index.js} (99%) rename src/{utils/configManager.js => config/manager.js} (99%) rename src/{utils/configValidator.js => config/validator.js} (100%) rename src/server/{http/adminRoutes.js => api/admin/routes.js} (75%) create mode 100644 src/server/api/admin/vncProxy.js create mode 100644 src/server/api/index.js rename src/server/{parseChat.js => api/openai/parse.js} (98%) create mode 100644 src/server/api/openai/routes.js delete mode 100644 src/server/display.js delete mode 100644 src/server/http/routes.js create mode 100644 src/server/middlewares/auth.js rename src/server/{http => }/respond.js (98%) rename server.js => src/server/server.js (68%) create mode 100644 src/utils/ipc.js create mode 100644 supervisor.js create mode 100644 webui/.npmrc delete mode 100644 webui/assets/cache-Cy4mgfN4.js delete mode 100644 webui/assets/dash-BUMZuoA4.js delete mode 100644 webui/assets/display-Bpu1-5NI.js delete mode 100644 webui/assets/system-CD4DQKFk.js create mode 100644 webui/dist/assets/DesktopOutlined-DmRiuvy2.js rename webui/{assets/adapters-DclklCA-.js => dist/assets/adapters-BuKXvMZU.js} (98%) rename webui/{assets/browser-CMZHE2mN.js => dist/assets/browser-CZogeus2.js} (98%) create mode 100644 webui/dist/assets/cache-DYoxhx9q.js create mode 100644 webui/dist/assets/dash-C1BS1PJi.js create mode 100644 webui/dist/assets/display-CU0V30l_.js rename webui/{assets/index-BxnGFPqi.css => dist/assets/index-CAMDRWk5.css} (93%) rename webui/{assets/index-CdkAYAR1.js => dist/assets/index-N039yHLa.js} (95%) create mode 100644 webui/dist/assets/rfb-BW3Yvshj.js rename webui/{assets/server-Bl64bbT7.js => dist/assets/server-BIrLgehb.js} (98%) rename webui/{ => dist}/assets/server-D1vV5anY.css (100%) create mode 100644 webui/dist/assets/system-C2wy1aIP.js rename webui/{assets/workers-B-8PS4Qq.js => dist/assets/workers-C-NcF24t.js} (99%) create mode 100644 webui/dist/favicon.png create mode 100644 webui/dist/index.html create mode 100644 webui/package.json create mode 100644 webui/pnpm-lock.yaml create mode 100644 webui/pnpm-workspace.yaml create mode 100644 webui/public/favicon.png create mode 100644 webui/src/App.vue create mode 100644 webui/src/components/auth/LoginModal.vue create mode 100644 webui/src/components/dash.vue create mode 100644 webui/src/components/settings/adapters.vue create mode 100644 webui/src/components/settings/browser.vue create mode 100644 webui/src/components/settings/server.vue create mode 100644 webui/src/components/settings/workers.vue create mode 100644 webui/src/components/tools/cache.vue create mode 100644 webui/src/components/tools/display.vue create mode 100644 webui/src/main.js create mode 100644 webui/src/stores/settings.js create mode 100644 webui/src/stores/system.js create mode 100644 webui/vite.config.js diff --git a/package.json b/package.json index d0731d6..51d14fb 100644 --- a/package.json +++ b/package.json @@ -6,12 +6,18 @@ "author": "foxhui", "type": "module", "scripts": { - "start": "node server.js", + "start": "node supervisor.js", "test": "node scripts/test.js", "genkey": "node scripts/genkey.js", "init": "node scripts/init.js", "postinstall": "node scripts/postinstall.js" }, + "imports": { + "#config": "./src/config/index.js", + "#utils/*": "./src/utils/*.js", + "#backend/*": "./src/backend/*.js", + "#server/*": "./src/server/*.js" + }, "dependencies": { "@inquirer/prompts": "^8.0.1", "better-sqlite3": "^12.5.0", diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 788dd06..982e457 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,2 +1,5 @@ ignoredBuiltDependencies: - - better-sqlite3 \ No newline at end of file + - better-sqlite3 + +packages: + - '!webui/**' \ No newline at end of file diff --git a/src/backend/adapter/gemini.js b/src/backend/adapter/gemini.js index c7bd8cf..54c4375 100644 --- a/src/backend/adapter/gemini.js +++ b/src/backend/adapter/gemini.js @@ -6,7 +6,7 @@ import { sleep, safeClick, uploadFilesViaChooser -} from '../../browser/utils.js'; +} from '../engine/utils.js'; import { fillPrompt, normalizePageError, diff --git a/src/backend/adapter/gemini_biz.js b/src/backend/adapter/gemini_biz.js index c7d6ac2..72fe271 100644 --- a/src/backend/adapter/gemini_biz.js +++ b/src/backend/adapter/gemini_biz.js @@ -6,7 +6,7 @@ import { sleep, safeClick, pasteImages -} from '../../browser/utils.js'; +} from '../engine/utils.js'; import { fillPrompt, submit, diff --git a/src/backend/adapter/gemini_biz_text.js b/src/backend/adapter/gemini_biz_text.js index 5fda522..4232cff 100644 --- a/src/backend/adapter/gemini_biz_text.js +++ b/src/backend/adapter/gemini_biz_text.js @@ -6,7 +6,7 @@ import { sleep, safeClick, pasteImages -} from '../../browser/utils.js'; +} from '../engine/utils.js'; import { fillPrompt, submit, diff --git a/src/backend/adapter/lmarena.js b/src/backend/adapter/lmarena.js index 4aa9ed0..8f4a9bd 100644 --- a/src/backend/adapter/lmarena.js +++ b/src/backend/adapter/lmarena.js @@ -6,7 +6,7 @@ import { sleep, safeClick, pasteImages -} from '../../browser/utils.js'; +} from '../engine/utils.js'; import { fillPrompt, submit, diff --git a/src/backend/adapter/lmarena_text.js b/src/backend/adapter/lmarena_text.js index 19c1064..c4eb331 100644 --- a/src/backend/adapter/lmarena_text.js +++ b/src/backend/adapter/lmarena_text.js @@ -6,7 +6,7 @@ import { sleep, safeClick, pasteImages -} from '../../browser/utils.js'; +} from '../engine/utils.js'; import { fillPrompt, submit, diff --git a/src/backend/adapter/nanobananafree_ai.js b/src/backend/adapter/nanobananafree_ai.js index fa839a1..d4e68b7 100644 --- a/src/backend/adapter/nanobananafree_ai.js +++ b/src/backend/adapter/nanobananafree_ai.js @@ -6,7 +6,7 @@ import { sleep, safeClick, pasteImages -} from '../../browser/utils.js'; +} from '../engine/utils.js'; import { fillPrompt, submit, diff --git a/src/backend/adapter/turnstile_test.js b/src/backend/adapter/turnstile_test.js index 84443d2..7f2115c 100644 --- a/src/backend/adapter/turnstile_test.js +++ b/src/backend/adapter/turnstile_test.js @@ -10,7 +10,7 @@ import { sleep, safeClick -} from '../../browser/utils.js'; +} from '../engine/utils.js'; import { gotoWithCheck, normalizePageError, diff --git a/src/backend/adapter/zai_is.js b/src/backend/adapter/zai_is.js index 096d165..0fa09a3 100644 --- a/src/backend/adapter/zai_is.js +++ b/src/backend/adapter/zai_is.js @@ -6,7 +6,7 @@ import { sleep, safeClick, pasteImages -} from '../../browser/utils.js'; +} from '../engine/utils.js'; import { fillPrompt, submit, diff --git a/src/browser/launcher.js b/src/backend/engine/launcher.js similarity index 98% rename from src/browser/launcher.js rename to src/backend/engine/launcher.js index 939959c..9d45266 100644 --- a/src/browser/launcher.js +++ b/src/backend/engine/launcher.js @@ -15,8 +15,8 @@ import path from 'path'; import os from 'os'; import { createCursor } from 'ghost-cursor-playwright-port'; import { getRealViewport, clamp, random, sleep } from './utils.js'; -import { logger } from '../utils/logger.js'; -import { getBrowserProxy, cleanupProxy } from '../utils/proxy.js'; +import { logger } from '../../utils/logger.js'; +import { getBrowserProxy, cleanupProxy } from '../../utils/proxy.js'; // 全局状态:用于在登录模式下管理残留进程与复用上下文 let globalBrowserProcess = null; diff --git a/src/browser/utils.js b/src/backend/engine/utils.js similarity index 99% rename from src/browser/utils.js rename to src/backend/engine/utils.js index 5d03181..91907b5 100644 --- a/src/browser/utils.js +++ b/src/backend/engine/utils.js @@ -21,7 +21,7 @@ */ import path from 'path'; -import { logger } from '../utils/logger.js'; +import { logger } from '../../utils/logger.js'; /** * 生成指定范围内的随机数 diff --git a/src/backend/index.js b/src/backend/index.js index 7e8d50f..69ed87d 100644 --- a/src/backend/index.js +++ b/src/backend/index.js @@ -11,7 +11,7 @@ import fs from 'fs'; import path from 'path'; -import { loadConfig } from '../utils/config.js'; +import { loadConfig } from '../config/index.js'; import { PoolManager } from './pool/index.js'; import { logger } from '../utils/logger.js'; diff --git a/src/backend/pool/PoolManager.js b/src/backend/pool/PoolManager.js index eac4082..4176e35 100644 --- a/src/backend/pool/PoolManager.js +++ b/src/backend/pool/PoolManager.js @@ -5,8 +5,8 @@ import { logger } from '../../utils/logger.js'; import { registry } from '../registry.js'; -import { createStrategySelector } from '../strategy.js'; -import { executeWithFailover } from '../failover.js'; +import { createStrategySelector } from '../strategies/index.js'; +import { executeWithFailover } from '../strategies/failover.js'; import { normalizeError } from '../utils/error.js'; import { Worker } from './Worker.js'; diff --git a/src/backend/pool/Worker.js b/src/backend/pool/Worker.js index 3e9573f..5de1662 100644 --- a/src/backend/pool/Worker.js +++ b/src/backend/pool/Worker.js @@ -5,7 +5,7 @@ import fs from 'fs'; import { logger } from '../../utils/logger.js'; -import { initBrowserBase, createCursor } from '../../browser/launcher.js'; +import { initBrowserBase, createCursor } from '../engine/launcher.js'; import { registry } from '../registry.js'; import { tryGotoWithCheck } from '../utils/page.js'; @@ -137,13 +137,14 @@ export class Worker { logger.info('工作池', `[${this.name}] 正在连接目标页面...`); await this._navigateToTarget(targetUrl); - // 登录模式处理 + // 登录模式:注册浏览器关闭事件(不阻塞) const isLoginMode = process.argv.some(arg => arg.startsWith('-login')); if (isLoginMode) { logger.info('工作池', `[${this.name}] 登录模式已就绪,请在浏览器中完成登录`); - logger.info('工作池', `[${this.name}] 完成后可直接关闭浏览器窗口或按 Ctrl+C 退出`); - await new Promise(resolve => this.browser.on('close', resolve)); - process.exit(0); + this.browser.on('close', () => { + logger.info('工作池', `[${this.name}] 浏览器已关闭,登录模式结束`); + process.exit(0); + }); } logger.info('工作池', `[${this.name}] 初始化完成`); diff --git a/src/backend/failover.js b/src/backend/strategies/failover.js similarity index 95% rename from src/backend/failover.js rename to src/backend/strategies/failover.js index c29f822..f3be28e 100644 --- a/src/backend/failover.js +++ b/src/backend/strategies/failover.js @@ -10,9 +10,9 @@ * - 负载均衡策略在 strategy.js 中 */ -import { logger } from '../utils/logger.js'; -import { RETRY } from '../utils/constants.js'; -import { isRetryableError, normalizeError } from './utils/error.js'; +import { logger } from '../../utils/logger.js'; +import { RETRY } from '../../utils/constants.js'; +import { isRetryableError, normalizeError } from '../utils/error.js'; // 重新导出错误分类函数以保持兼容性 export { isRetryableError, normalizeError }; diff --git a/src/backend/strategy.js b/src/backend/strategies/index.js similarity index 100% rename from src/backend/strategy.js rename to src/backend/strategies/index.js diff --git a/src/backend/utils/page.js b/src/backend/utils/page.js index a4ab091..7ff100c 100644 --- a/src/backend/utils/page.js +++ b/src/backend/utils/page.js @@ -3,7 +3,7 @@ * @description 页面认证锁、输入框等待、表单提交等页面级操作 */ -import { sleep, humanType, safeClick, isPageValid, createPageCloseWatcher, getRealViewport, clamp, random } from '../../browser/utils.js'; +import { sleep, humanType, safeClick, isPageValid, createPageCloseWatcher, getRealViewport, clamp, random } from '../engine/utils.js'; import { logger } from '../../utils/logger.js'; // ========================================== diff --git a/src/utils/config.js b/src/config/index.js similarity index 99% rename from src/utils/config.js rename to src/config/index.js index c6c8d03..92a5d85 100644 --- a/src/utils/config.js +++ b/src/config/index.js @@ -11,7 +11,7 @@ import fs from 'fs'; import path from 'path'; import yaml from 'yaml'; -import { logger } from './logger.js'; +import { logger } from '../utils/logger.js'; const CONFIG_PATH = path.join(process.cwd(), 'config.yaml'); const EXAMPLE_CONFIG_PATH = path.join(process.cwd(), 'config.example.yaml'); diff --git a/src/utils/configManager.js b/src/config/manager.js similarity index 99% rename from src/utils/configManager.js rename to src/config/manager.js index 533becc..7180c06 100644 --- a/src/utils/configManager.js +++ b/src/config/manager.js @@ -6,7 +6,7 @@ import fs from 'fs'; import path from 'path'; import yaml from 'yaml'; -import { logger } from './logger.js'; +import { logger } from '../utils/logger.js'; const CONFIG_PATH = path.join(process.cwd(), 'config.yaml'); @@ -292,4 +292,3 @@ export function savePoolConfig(data) { writeConfig(config); } - diff --git a/src/utils/configValidator.js b/src/config/validator.js similarity index 100% rename from src/utils/configValidator.js rename to src/config/validator.js diff --git a/src/server/http/adminRoutes.js b/src/server/api/admin/routes.js similarity index 75% rename from src/server/http/adminRoutes.js rename to src/server/api/admin/routes.js index d524aaf..19a517b 100644 --- a/src/server/http/adminRoutes.js +++ b/src/server/api/admin/routes.js @@ -3,15 +3,15 @@ * @description 提供管理接口,包括系统状态、配置管理、适配器元数据等 */ -import { sendJson, sendApiError } from './respond.js'; -import { ERROR_CODES } from '../errors.js'; -import { logger } from '../../utils/logger.js'; +import { sendJson, sendApiError } from '../../respond.js'; +import { ERROR_CODES } from '../../errors.js'; +import { logger } from '../../../utils/logger.js'; import { getSystemStatus, getDataFolders, deleteDataFolders, clearTempFiles -} from '../../utils/systemInfo.js'; +} from '../../../utils/systemInfo.js'; import { getServerConfig, saveServerConfig, @@ -25,15 +25,16 @@ import { saveAdaptersConfig, getPoolConfig, savePoolConfig -} from '../../utils/configManager.js'; +} from '../../../config/manager.js'; import { validateServerConfig, validateBrowserConfig, validateInstancesConfig, validatePoolConfig, validateAdaptersConfig -} from '../../utils/configValidator.js'; -import { registry } from '../../backend/registry.js'; +} from '../../../config/validator.js'; +import { registry } from '../../../backend/registry.js'; +import { sendRestartSignal, sendStopSignal, isUnderSupervisor, getVncInfo } from '../../../utils/ipc.js'; /** * 读取请求体 @@ -79,26 +80,63 @@ export function createAdminRouter(context) { return; } - // POST /admin/restart - 重启服务(使用子进程分离) + // POST /admin/restart - 重启服务 if (method === 'POST' && pathname === '/restart') { - const { spawn } = await import('child_process'); + // 解析请求体获取重启参数 + let loginMode = null; + let workerName = null; + try { + const body = await readBody(req); + loginMode = body.loginMode || null; + workerName = body.workerName || null; + } catch { /* 无请求体时使用默认值 */ } - sendJson(res, 200, { success: true, message: '服务正在重启...' }); - logger.info('管理器', '收到重启请求,将在 1 秒后重启'); + const modeDesc = loginMode + ? (workerName ? `登录模式 (${workerName})` : '登录模式') + : '普通模式'; + sendJson(res, 200, { success: true, message: `服务正在以${modeDesc}重启...` }); + logger.info('管理器', `收到重启请求: ${modeDesc}`); - setTimeout(() => { - // 启动新进程(完全独立) - const child = spawn(process.execPath, process.argv.slice(1), { - cwd: process.cwd(), - detached: true, - stdio: 'ignore', - env: process.env - }); - child.unref(); + setTimeout(async () => { + // 构建启动参数(仅登录模式相关) + const extraArgs = []; + if (loginMode) { + extraArgs.push(workerName ? `-login=${workerName}` : '-login'); + } - // 退出当前进程 - setTimeout(() => process.exit(0), 500); - }, 1000); + if (isUnderSupervisor()) { + // Supervisor 模式:通过 IPC 发送带参数的重启信号 + const sent = await sendRestartSignal(extraArgs); + if (!sent) { + logger.warn('管理器', 'IPC 重启信号发送失败,尝试自重启'); + // 降级到自重启 + const { spawn } = await import('child_process'); + const newArgs = process.argv.slice(1).filter(arg => !arg.startsWith('-login')); + newArgs.push(...extraArgs); + const child = spawn(process.execPath, newArgs, { + cwd: process.cwd(), + detached: true, + stdio: 'ignore', + env: process.env + }); + child.unref(); + setTimeout(() => process.exit(0), 500); + } + } else { + // 独立模式:使用子进程自重启 + const { spawn } = await import('child_process'); + const newArgs = process.argv.slice(1).filter(arg => !arg.startsWith('-login')); + newArgs.push(...extraArgs); + const child = spawn(process.execPath, newArgs, { + cwd: process.cwd(), + detached: true, + stdio: 'ignore', + env: process.env + }); + child.unref(); + setTimeout(() => process.exit(0), 500); + } + }, 500); return; } @@ -111,6 +149,23 @@ export function createAdminRouter(context) { return; } + // GET /admin/vnc/status - VNC 状态 + if (method === 'GET' && pathname === '/vnc/status') { + const vncInfo = await getVncInfo(); + if (vncInfo) { + sendJson(res, 200, vncInfo); + } else { + // 非 Supervisor 模式或无法获取信息 + sendJson(res, 200, { + enabled: false, + port: 0, + display: '', + xvfbMode: false + }); + } + return; + } + // ==================== 缓存与数据管理 ==================== // POST /admin/cache/clear - 清理缓存 diff --git a/src/server/api/admin/vncProxy.js b/src/server/api/admin/vncProxy.js new file mode 100644 index 0000000..0c0e54a --- /dev/null +++ b/src/server/api/admin/vncProxy.js @@ -0,0 +1,195 @@ +/** + * @fileoverview VNC WebSocket 代理模块 + * @description 将 VNC TCP 连接转发到 WebSocket + */ + +import net from 'net'; +import { getVncInfo } from '../../../utils/ipc.js'; + +/** + * 处理 VNC WebSocket 升级请求 + * @param {import('http').IncomingMessage} req - HTTP 请求 + * @param {import('net').Socket} socket - 原始 TCP socket + * @param {Buffer} head - 升级请求的头部数据 + * @param {string} authToken - 有效的认证令牌 + */ +export async function handleVncUpgrade(req, socket, head, authToken) { + const url = new URL(req.url, `http://${req.headers.host}`); + + // 验证 token + const token = url.searchParams.get('token'); + if (token !== authToken) { + socket.write('HTTP/1.1 401 Unauthorized\r\n\r\n'); + socket.destroy(); + return; + } + + // 获取 VNC 信息 + const vncInfo = await getVncInfo(); + if (!vncInfo || !vncInfo.enabled) { + socket.write('HTTP/1.1 503 Service Unavailable\r\n\r\n'); + socket.destroy(); + return; + } + + // 手动完成 WebSocket 握手 + const key = req.headers['sec-websocket-key']; + if (!key) { + socket.write('HTTP/1.1 400 Bad Request\r\n\r\n'); + socket.destroy(); + return; + } + + const crypto = await import('crypto'); + const acceptKey = crypto.createHash('sha1') + .update(key + '258EAFA5-E914-47DA-95CA-C5AB0DC85B11') + .digest('base64'); + + // 发送 WebSocket 握手响应 + socket.write( + 'HTTP/1.1 101 Switching Protocols\r\n' + + 'Upgrade: websocket\r\n' + + 'Connection: Upgrade\r\n' + + `Sec-WebSocket-Accept: ${acceptKey}\r\n` + + 'Sec-WebSocket-Protocol: binary\r\n' + + '\r\n' + ); + + // 连接到 VNC 服务器 + const vncSocket = net.createConnection({ + host: '127.0.0.1', + port: vncInfo.port + }); + + vncSocket.on('error', (err) => { + console.error('[VNC Proxy] VNC 连接错误:', err.message); + socket.destroy(); + }); + + vncSocket.on('connect', () => { + // 发送升级请求时可能附带的数据 + if (head && head.length > 0) { + const data = decodeWebSocketFrame(head); + if (data) vncSocket.write(data); + } + }); + + // VNC -> WebSocket + vncSocket.on('data', (data) => { + try { + const frame = encodeWebSocketFrame(data); + socket.write(frame); + } catch { + socket.destroy(); + } + }); + + // WebSocket -> VNC + let buffer = Buffer.alloc(0); + socket.on('data', (chunk) => { + buffer = Buffer.concat([buffer, chunk]); + + while (buffer.length >= 2) { + const result = decodeWebSocketFrame(buffer); + if (!result) break; + + const { data, bytesConsumed, opcode } = result; + + // 关闭帧 + if (opcode === 0x08) { + vncSocket.destroy(); + socket.destroy(); + return; + } + + // 二进制数据或文本 + if (data && data.length > 0) { + vncSocket.write(data); + } + + buffer = buffer.slice(bytesConsumed); + } + }); + + socket.on('close', () => vncSocket.destroy()); + socket.on('error', () => vncSocket.destroy()); + vncSocket.on('close', () => socket.destroy()); +} + +/** + * 编码 WebSocket 帧(服务端发送,无掩码) + * @param {Buffer} data - 要发送的数据 + * @returns {Buffer} WebSocket 帧 + */ +function encodeWebSocketFrame(data) { + const length = data.length; + let header; + + if (length <= 125) { + header = Buffer.alloc(2); + header[0] = 0x82; // FIN + Binary + header[1] = length; + } else if (length <= 65535) { + header = Buffer.alloc(4); + header[0] = 0x82; + header[1] = 126; + header.writeUInt16BE(length, 2); + } else { + header = Buffer.alloc(10); + header[0] = 0x82; + header[1] = 127; + header.writeBigUInt64BE(BigInt(length), 2); + } + + return Buffer.concat([header, data]); +} + +/** + * 解码 WebSocket 帧(客户端发送,有掩码) + * @param {Buffer} buffer - 接收到的数据 + * @returns {{data: Buffer, bytesConsumed: number, opcode: number} | null} + */ +function decodeWebSocketFrame(buffer) { + if (buffer.length < 2) return null; + + const firstByte = buffer[0]; + const secondByte = buffer[1]; + const opcode = firstByte & 0x0F; + const masked = (secondByte & 0x80) !== 0; + let payloadLength = secondByte & 0x7F; + let offset = 2; + + if (payloadLength === 126) { + if (buffer.length < 4) return null; + payloadLength = buffer.readUInt16BE(2); + offset = 4; + } else if (payloadLength === 127) { + if (buffer.length < 10) return null; + payloadLength = Number(buffer.readBigUInt64BE(2)); + offset = 10; + } + + let maskKey = null; + if (masked) { + if (buffer.length < offset + 4) return null; + maskKey = buffer.slice(offset, offset + 4); + offset += 4; + } + + if (buffer.length < offset + payloadLength) return null; + + let data = buffer.slice(offset, offset + payloadLength); + + if (masked && maskKey) { + data = Buffer.from(data); + for (let i = 0; i < data.length; i++) { + data[i] ^= maskKey[i % 4]; + } + } + + return { + data, + bytesConsumed: offset + payloadLength, + opcode + }; +} diff --git a/src/server/api/index.js b/src/server/api/index.js new file mode 100644 index 0000000..4f6964f --- /dev/null +++ b/src/server/api/index.js @@ -0,0 +1,120 @@ +/** + * @fileoverview API 路由总装配 + * @description 统一挂载 /v1 和 /admin 路由 + */ + +import fs from 'fs'; +import path from 'path'; +import { createOpenAIRouter } from './openai/routes.js'; +import { createAdminRouter } from './admin/routes.js'; +import { createAuthMiddleware } from '../middlewares/auth.js'; + +// MIME 类型映射 +const MIME_TYPES = { + '.html': 'text/html; charset=utf-8', + '.css': 'text/css; charset=utf-8', + '.js': 'application/javascript; charset=utf-8', + '.json': 'application/json; charset=utf-8', + '.png': 'image/png', + '.jpg': 'image/jpeg', + '.jpeg': 'image/jpeg', + '.gif': 'image/gif', + '.svg': 'image/svg+xml', + '.ico': 'image/x-icon', + '.woff': 'font/woff', + '.woff2': 'font/woff2', + '.ttf': 'font/ttf' +}; + +// WebUI 静态文件目录 +const WEBUI_DIR = path.join(process.cwd(), 'webui', 'dist'); + +/** + * 创建全局路由处理器 + * @param {object} context - 路由上下文 + * @param {boolean} [context.loginMode] - 登录模式(禁用 OpenAI API) + * @returns {Function} 请求处理函数 + */ +export function createGlobalRouter(context) { + const { authToken, config, queueManager, tempDir, loginMode } = context; + + // 创建鉴权中间件 + const checkAuth = createAuthMiddleware(authToken); + + // 创建子路由处理器 + const handleOpenAIRequest = loginMode ? null : createOpenAIRouter(context); + const handleAdminRequest = createAdminRouter({ config, queueManager, tempDir }); + + /** + * 主路由处理函数 + */ + return async function handleRequest(req, res) { + const parsedUrl = new URL(req.url, `http://${req.headers.host}`); + const pathname = parsedUrl.pathname; + + // ==================== 静态文件服务 ==================== + if (req.method === 'GET' && !pathname.startsWith('/v1') && !pathname.startsWith('/admin')) { + let filePath = pathname === '/' ? '/index.html' : pathname; + filePath = path.join(WEBUI_DIR, filePath); + + // 安全检查 + if (!filePath.startsWith(WEBUI_DIR)) { + res.writeHead(403); + res.end('Forbidden'); + return; + } + + // 检查文件是否存在 + if (fs.existsSync(filePath) && fs.statSync(filePath).isFile()) { + const ext = path.extname(filePath).toLowerCase(); + const contentType = MIME_TYPES[ext] || 'application/octet-stream'; + const content = fs.readFileSync(filePath); + res.writeHead(200, { 'Content-Type': contentType }); + res.end(content); + return; + } + + // SPA 模式 fallback + const indexPath = path.join(WEBUI_DIR, 'index.html'); + if (fs.existsSync(indexPath)) { + const content = fs.readFileSync(indexPath); + res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' }); + res.end(content); + return; + } + } + + // ==================== 鉴权检查 ==================== + if (!checkAuth(req, res)) { + return; // 鉴权失败,已发送错误响应 + } + + // ==================== API 路由分发 ==================== + + // Admin API (/admin) + if (pathname.startsWith('/admin')) { + const adminPath = pathname.slice(6); // 去除 /admin 前缀 + await handleAdminRequest(req, res, adminPath); + return; + } + + // OpenAI API (/v1) + if (pathname.startsWith('/v1')) { + // 登录模式下禁用 OpenAI API + if (!handleOpenAIRequest) { + res.writeHead(503, { 'Content-Type': 'application/json' }); + res.end(JSON.stringify({ + error: { message: '服务运行在登录模式,OpenAI API 不可用', type: 'service_unavailable' } + })); + return; + } + const v1Path = pathname.slice(3); // 去除 /v1 前缀 + await handleOpenAIRequest(req, res, v1Path, parsedUrl); + return; + } + + // 404 + res.writeHead(404); + res.end(); + }; +} diff --git a/src/server/parseChat.js b/src/server/api/openai/parse.js similarity index 98% rename from src/server/parseChat.js rename to src/server/api/openai/parse.js index 887227b..4bd6355 100644 --- a/src/server/parseChat.js +++ b/src/server/api/openai/parse.js @@ -6,8 +6,8 @@ import fs from 'fs'; import path from 'path'; import sharp from 'sharp'; -import { IMAGE_POLICY } from '../backend/registry.js'; -import { ERROR_CODES, getErrorMessage } from './errors.js'; +import { IMAGE_POLICY } from '../../../backend/registry.js'; +import { ERROR_CODES, getErrorMessage } from '../../errors.js'; /** * 构造解析错误结果 diff --git a/src/server/api/openai/routes.js b/src/server/api/openai/routes.js new file mode 100644 index 0000000..26287ad --- /dev/null +++ b/src/server/api/openai/routes.js @@ -0,0 +1,174 @@ +/** + * @fileoverview OpenAI 兼容 API 路由 + * @description 处理 /v1 路径下的所有 API 请求 + */ + +import crypto from 'crypto'; +import { logger } from '../../../utils/logger.js'; +import { ERROR_CODES } from '../../errors.js'; +import { sendJson, sendApiError } from '../../respond.js'; +import { parseRequest } from './parse.js'; + +/** + * 创建 OpenAI API 路由处理器 + * @param {object} context - 路由上下文 + * @returns {Function} 路由处理函数 + */ +export function createOpenAIRouter(context) { + const { + backendName, + getModels, + resolveModelId, + getImagePolicy, + getModelType, + tempDir, + imageLimit, + queueManager + } = context; + + /** + * 处理 GET /v1/models + */ + function handleModels(res) { + const models = getModels(); + sendJson(res, 200, models); + } + + /** + * 处理 GET /v1/cookies + */ + async function handleCookies(res, requestId, workerName, domain) { + const poolContext = queueManager.getPoolContext(); + + if (!poolContext?.poolManager) { + sendApiError(res, { code: ERROR_CODES.BROWSER_NOT_INITIALIZED }); + return; + } + + try { + const result = await queueManager.getWorkerCookies(workerName, domain); + sendJson(res, 200, { + worker: result.worker, + cookies: result.cookies + }); + } catch (err) { + logger.error('服务器', '获取 Cookies 失败', { id: requestId, error: err.message }); + + if (err.message.includes('Worker 不存在') || err.message.includes('Worker not found')) { + sendApiError(res, { + code: ERROR_CODES.INVALID_MODEL, + message: err.message + }); + } else { + sendApiError(res, { + code: ERROR_CODES.INTERNAL_ERROR, + message: err.message + }); + } + } + } + + /** + * 处理 POST /v1/chat/completions + */ + async function handleChatCompletions(req, res, requestId) { + const chunks = []; + for await (const chunk of req) { + chunks.push(chunk); + } + + try { + const body = Buffer.concat(chunks).toString(); + const data = JSON.parse(body); + const isStreaming = data.stream === true; + + // 限流检查 + if (!isStreaming && !queueManager.canAcceptNonStreaming()) { + const status = queueManager.getStatus(); + logger.warn('服务器', '非流式请求被拒绝 (队列已满)', { id: requestId, queueSize: status.total }); + sendApiError(res, { + code: ERROR_CODES.SERVER_BUSY, + message: `服务器繁忙(队列: ${status.total}/${queueManager.maxQueueSize})。请使用流式模式 (stream: true) 或稍后重试。` + }); + return; + } + + // 设置 SSE 响应头 + if (isStreaming) { + res.writeHead(200, { + 'Content-Type': 'text/event-stream', + 'Cache-Control': 'no-cache', + 'Connection': 'keep-alive' + }); + } + + // 解析请求 + const parseResult = await parseRequest(data, { + tempDir, + imageLimit, + backendName, + resolveModelId, + getImagePolicy, + getModelType, + requestId, + logger + }); + + if (!parseResult.success) { + sendApiError(res, { + code: parseResult.error.code, + message: parseResult.error.error, + isStreaming + }); + return; + } + + const { prompt, imagePaths, modelId, modelName } = parseResult.data; + + logger.info('服务器', `[队列] 请求入队: ${prompt.slice(0, 10)}...`, { id: requestId, images: imagePaths.length }); + + // 加入队列 + queueManager.addTask({ + req, + res, + prompt, + imagePaths, + modelId, + modelName, + id: requestId, + isStreaming + }); + + } catch (err) { + logger.error('服务器', '请求处理失败', { id: requestId, error: err.message }); + sendApiError(res, { + code: ERROR_CODES.INTERNAL_ERROR, + message: err.message + }); + } + } + + /** + * OpenAI API 路由处理函数 + * @param {import('http').IncomingMessage} req + * @param {import('http').ServerResponse} res + * @param {string} pathname - 去除 /v1 前缀后的路径 + * @param {URL} parsedUrl - 解析后的 URL 对象 + */ + return async function handleOpenAIRequest(req, res, pathname, parsedUrl) { + const requestId = crypto.randomUUID().slice(0, 8); + + if (req.method === 'GET' && pathname === '/models') { + handleModels(res); + } else if (req.method === 'GET' && pathname === '/cookies') { + const workerName = parsedUrl.searchParams.get('name'); + const domain = parsedUrl.searchParams.get('domain'); + await handleCookies(res, requestId, workerName, domain); + } else if (req.method === 'POST' && pathname.startsWith('/chat/completions')) { + await handleChatCompletions(req, res, requestId); + } else { + res.writeHead(404); + res.end(); + } + }; +} diff --git a/src/server/display.js b/src/server/display.js deleted file mode 100644 index 4c6a0da..0000000 --- a/src/server/display.js +++ /dev/null @@ -1,213 +0,0 @@ -/** - * @fileoverview Xvfb 和 VNC 显示参数处理模块(仅 Linux) - * @description 处理 -xvfb 和 -vnc 命令行参数,启动虚拟显示器和 VNC 服务器 - */ - -import { spawn, spawnSync } from 'child_process'; -import os from 'os'; -import net from 'net'; -import { logger } from '../utils/logger.js'; - -/** - * 检查命令是否存在 - * @param {string} cmd - 命令名称 - * @returns {boolean} 命令是否存在 - */ -function checkCommand(cmd) { - const result = spawnSync('which', [cmd], { encoding: 'utf8' }); - return result.status === 0; -} - -/** - * 检查端口是否可用 - * @param {number} port - 端口号 - * @returns {Promise} 端口是否可用 - */ -function isPortAvailable(port) { - return new Promise((resolve) => { - const server = net.createServer(); - - server.once('error', () => { - resolve(false); - }); - - server.once('listening', () => { - server.close(); - resolve(true); - }); - - server.listen(port); - }); -} - -/** - * 查找可用的 VNC 端口 - * @param {number} [startPort=5900] - 起始端口 - * @param {number} [maxAttempts=10] - 最大尝试次数 - * @returns {Promise} 可用端口号,或 null 表示未找到 - */ -async function findAvailableVncPort(startPort = 5900, maxAttempts = 10) { - for (let i = 0; i < maxAttempts; i++) { - const port = startPort + i; - if (await isPortAvailable(port)) { - return port; - } - } - return null; -} - -/** - * 启动 VNC 服务器 - * @param {string} display - 显示器编号(如 ':99') - * @returns {Promise} VNC 进程 - */ -async function startVncServer(display) { - if (!checkCommand('x11vnc')) { - logger.error('服务器', '未找到 x11vnc 命令'); - logger.error('服务器', '请先安装 x11vnc:'); - logger.error('服务器', ' - Ubuntu/Debian: sudo apt install x11vnc'); - logger.error('服务器', ' - CentOS/RHEL: sudo dnf install x11vnc'); - process.exit(1); - } - - logger.info('服务器', '正在查找可用的 VNC 端口...'); - const vncPort = await findAvailableVncPort(5900, 10); - - if (!vncPort) { - logger.error('服务器', '无法找到可用的 VNC 端口 (已尝试 5900-5909)'); - process.exit(1); - } - - logger.info('服务器', `正在启动 VNC 服务器 (端口 ${vncPort})...`); - - const vncProcess = spawn('x11vnc', [ - '-display', display, - '-rfbport', vncPort.toString(), - '-localhost', - '-nopw', - '-once', - '-noxdamage', - '-ncache', '10', - '-forever' - ], { - stdio: 'ignore', - detached: false - }); - - vncProcess.on('error', (err) => { - logger.error('服务器', 'VNC 启动失败', { error: err.message }); - }); - - logger.info('服务器', 'VNC 服务器已成功启动'); - logger.warn('服务器', `VNC 连接端口: ${vncPort}`); - - return vncProcess; -} - -/** - * 在 Xvfb 中重启进程 - * @param {string[]} args - 当前命令行参数 - */ -function restartInXvfb(args) { - logger.info('服务器', '正在启动 Xvfb 虚拟显示器...'); - - // 构建新的参数列表(移除 -xvfb,保留其他参数) - const newArgs = args.filter(arg => arg !== '-xvfb'); - - const xvfbArgs = [ - '--server-num=99', - '--server-args=-ac -screen 0 1366x768x24', - 'env', - 'XVFB_RUNNING=true', - 'DISPLAY=:99', - process.argv[0], - process.argv[1], - ...newArgs - ]; - - const xvfbProcess = spawn('xvfb-run', xvfbArgs, { - stdio: 'inherit' - }); - - xvfbProcess.on('error', (err) => { - logger.error('服务器', 'Xvfb 启动失败', { error: err.message }); - process.exit(1); - }); - - xvfbProcess.on('exit', (code) => { - process.exit(code || 0); - }); - - // 处理父进程退出信号 - process.on('SIGINT', () => { - xvfbProcess.kill('SIGTERM'); - }); - process.on('SIGTERM', () => { - xvfbProcess.kill('SIGTERM'); - }); -} - -/** - * 处理 Xvfb 和 VNC 启动参数 - * @returns {Promise<'XVFB_REDIRECT'|undefined>} 如果需要重定向到 Xvfb 则返回 'XVFB_REDIRECT' - */ -export async function handleDisplayParams() { - const args = process.argv.slice(2); - const hasXvfb = args.includes('-xvfb'); - const hasVnc = args.includes('-vnc'); - const isInXvfb = process.env.XVFB_RUNNING === 'true'; - - // -vnc 必须和 -xvfb 并用(但如果已在 Xvfb 中运行则允许) - if (hasVnc && !hasXvfb && !isInXvfb) { - logger.error('服务器', '-vnc 参数必须和 -xvfb 参数一起使用'); - logger.error('服务器', '正确用法: node server.js -xvfb -vnc'); - process.exit(1); - } - - // 非 Linux 系统检查 - if ((hasXvfb || hasVnc) && os.platform() !== 'linux') { - logger.warn('服务器', '忽略参数: -xvfb 和 -vnc 参数仅在 Linux 系统上支持'); - return; - } - - // 处理 -xvfb 参数 - if ((hasXvfb || isInXvfb) && os.platform() === 'linux') { - // 检查 xvfb-run 是否存在(仅在首次启动时需要) - if (hasXvfb && !isInXvfb) { - if (!checkCommand('xvfb-run')) { - logger.error('服务器', '未找到 xvfb-run 命令'); - logger.error('服务器', '请先安装 Xvfb:'); - logger.error('服务器', ' - Ubuntu/Debian: sudo apt install xvfb'); - logger.error('服务器', ' - CentOS/RHEL: sudo dnf install xorg-x11-server-Xvfb'); - process.exit(1); - } - } - - // 已在 Xvfb 中运行 - if (isInXvfb) { - logger.info('服务器', '已在 Xvfb 虚拟显示器中运行', { display: process.env.DISPLAY || ':99' }); - - // 处理 VNC - if (hasVnc) { - const display = process.env.DISPLAY || ':99'; - const vncProcess = await startVncServer(display); - - // 处理进程退出信号 - process.on('SIGINT', () => { - vncProcess.kill('SIGTERM'); - process.exit(0); - }); - process.on('SIGTERM', () => { - vncProcess.kill('SIGTERM'); - process.exit(0); - }); - } - - return; - } - - // 需要在 Xvfb 中重启 - restartInXvfb(args); - return 'XVFB_REDIRECT'; - } -} diff --git a/src/server/http/routes.js b/src/server/http/routes.js deleted file mode 100644 index e77a143..0000000 --- a/src/server/http/routes.js +++ /dev/null @@ -1,282 +0,0 @@ -/** - * @fileoverview HTTP 路由分发模块 - * @description 处理 API 路由分发和请求鉴权 - */ - -import crypto from 'crypto'; -import fs from 'fs'; -import path from 'path'; -import { logger } from '../../utils/logger.js'; -import { ERROR_CODES } from '../errors.js'; -import { sendJson, sendApiError } from './respond.js'; -import { parseRequest } from '../parseChat.js'; -import { createAdminRouter } from './adminRoutes.js'; - -// MIME 类型映射 -const MIME_TYPES = { - '.html': 'text/html; charset=utf-8', - '.css': 'text/css; charset=utf-8', - '.js': 'application/javascript; charset=utf-8', - '.json': 'application/json; charset=utf-8', - '.png': 'image/png', - '.jpg': 'image/jpeg', - '.jpeg': 'image/jpeg', - '.gif': 'image/gif', - '.svg': 'image/svg+xml', - '.ico': 'image/x-icon', - '.woff': 'font/woff', - '.woff2': 'font/woff2', - '.ttf': 'font/ttf' -}; - -// WebUI 静态文件目录 -const WEBUI_DIR = path.join(process.cwd(), 'webui'); - -/** - * 鉴权检查 - * @param {import('http').IncomingMessage} req - HTTP 请求 - * @param {string} authToken - 有效的认证令牌 - * @returns {boolean} 是否通过鉴权 - */ -function checkAuth(req, authToken) { - const authHeader = req.headers['authorization']; - return authHeader === `Bearer ${authToken}`; -} - -/** - * 创建路由处理器 - * @param {object} context - 路由上下文 - * @param {string} context.authToken - 认证令牌 - * @param {string} context.backendName - 后端名称 - * @param {Function} context.getModels - 获取模型列表函数 - * @param {Function} context.resolveModelId - 解析模型 ID 函数 - * @param {Function} context.getImagePolicy - 获取图片策略函数 - * @param {Function} context.getModelType - 获取模型类型函数 - * @param {string} context.tempDir - 临时目录 - * @param {number} context.imageLimit - 图片数量限制 - * @param {object} context.queueManager - 队列管理器 - * @param {object} context.config - 完整配置对象(用于 Admin API) - * @returns {Function} 请求处理函数 - */ -export function createRouter(context) { - const { - authToken, - backendName, - getModels, - resolveModelId, - getImagePolicy, - getModelType, - tempDir, - imageLimit, - queueManager, - config - } = context; - - // 创建 Admin 路由处理器 - const handleAdminRequest = createAdminRouter({ config, queueManager, tempDir }); - - /** - * 处理 GET /v1/models - * @param {import('http').ServerResponse} res - HTTP 响应 - */ - function handleModels(res) { - const models = getModels(); - sendJson(res, 200, models); - } - - /** - * 处理 GET /v1/cookies - * @param {import('http').ServerResponse} res - HTTP 响应 - * @param {string} requestId - 请求 ID - * @param {string} [workerName] - 可选,指定 Worker 名称 - * @param {string} [domain] - 可选,指定获取某个域名的 Cookies - */ - async function handleCookies(res, requestId, workerName, domain) { - const poolContext = queueManager.getPoolContext(); - - if (!poolContext?.poolManager) { - sendApiError(res, { code: ERROR_CODES.BROWSER_NOT_INITIALIZED }); - return; - } - - try { - const result = await queueManager.getWorkerCookies(workerName, domain); - sendJson(res, 200, { - worker: result.worker, - cookies: result.cookies - }); - } catch (err) { - logger.error('服务器', '获取 Cookies 失败', { id: requestId, error: err.message }); - - // 区分错误类型 - if (err.message.includes('Worker 不存在') || err.message.includes('Worker not found')) { - sendApiError(res, { - code: ERROR_CODES.INVALID_MODEL, - message: err.message - }); - } else { - sendApiError(res, { - code: ERROR_CODES.INTERNAL_ERROR, - message: err.message - }); - } - } - } - - /** - * 处理 POST /v1/chat/completions - * @param {import('http').IncomingMessage} req - HTTP 请求 - * @param {import('http').ServerResponse} res - HTTP 响应 - * @param {string} requestId - 请求 ID - */ - async function handleChatCompletions(req, res, requestId) { - // 读取请求体 - const chunks = []; - for await (const chunk of req) { - chunks.push(chunk); - } - - try { - const body = Buffer.concat(chunks).toString(); - const data = JSON.parse(body); - const isStreaming = data.stream === true; - - // 限流检查:非流式请求在队列满时拒绝 - if (!isStreaming && !queueManager.canAcceptNonStreaming()) { - const status = queueManager.getStatus(); - logger.warn('服务器', '非流式请求被拒绝 (队列已满)', { id: requestId, queueSize: status.total }); - sendApiError(res, { - code: ERROR_CODES.SERVER_BUSY, - message: `服务器繁忙(队列: ${status.total}/${queueManager.maxQueueSize})。请使用流式模式 (stream: true) 或稍后重试。` - }); - return; - } - - // 设置 SSE 响应头(流式请求) - if (isStreaming) { - res.writeHead(200, { - 'Content-Type': 'text/event-stream', - 'Cache-Control': 'no-cache', - 'Connection': 'keep-alive' - }); - } - - // 解析请求 - const parseResult = await parseRequest(data, { - tempDir, - imageLimit, - backendName, - resolveModelId, - getImagePolicy, - getModelType, - requestId, - logger - }); - - if (!parseResult.success) { - sendApiError(res, { - code: parseResult.error.code, - message: parseResult.error.error, - isStreaming - }); - return; - } - - const { prompt, imagePaths, modelId, modelName } = parseResult.data; - - logger.info('服务器', `[队列] 请求入队: ${prompt.slice(0, 10)}...`, { id: requestId, images: imagePaths.length }); - - // 将任务加入队列 - queueManager.addTask({ - req, - res, - prompt, - imagePaths, - modelId, - modelName, - id: requestId, - isStreaming - }); - - } catch (err) { - logger.error('服务器', '请求处理失败', { id: requestId, error: err.message }); - sendApiError(res, { - code: ERROR_CODES.INTERNAL_ERROR, - message: err.message - }); - } - } - - /** - * 主路由处理函数 - * @param {import('http').IncomingMessage} req - HTTP 请求 - * @param {import('http').ServerResponse} res - HTTP 响应 - */ - return async function handleRequest(req, res) { - // 生成请求 ID - const requestId = crypto.randomUUID().slice(0, 8); - - // 路由分发 - const parsedUrl = new URL(req.url, `http://${req.headers.host}`); - const pathname = parsedUrl.pathname; - - // WebUI 静态文件服务(无需鉴权) - if (req.method === 'GET' && !pathname.startsWith('/v1') && !pathname.startsWith('/admin')) { - // 处理根路径 - let filePath = pathname === '/' ? '/index.html' : pathname; - filePath = path.join(WEBUI_DIR, filePath); - - // 安全检查:确保不越级访问 - if (!filePath.startsWith(WEBUI_DIR)) { - res.writeHead(403); - res.end('Forbidden'); - return; - } - - // 检查文件是否存在 - if (fs.existsSync(filePath) && fs.statSync(filePath).isFile()) { - const ext = path.extname(filePath).toLowerCase(); - const contentType = MIME_TYPES[ext] || 'application/octet-stream'; - const content = fs.readFileSync(filePath); - res.writeHead(200, { 'Content-Type': contentType }); - res.end(content); - return; - } - - // 文件不存在,返回 index.html(SPA 模式) - const indexPath = path.join(WEBUI_DIR, 'index.html'); - if (fs.existsSync(indexPath)) { - const content = fs.readFileSync(indexPath); - res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' }); - res.end(content); - return; - } - } - - // 鉴权检查(API 请求) - if (!checkAuth(req, authToken)) { - sendApiError(res, { code: ERROR_CODES.UNAUTHORIZED }); - return; - } - - // Admin API 路由 - if (pathname.startsWith('/admin')) { - const adminPath = pathname.slice(6); // 去除 /admin 前缀 - await handleAdminRequest(req, res, adminPath); - return; - } - - if (req.method === 'GET' && pathname === '/v1/models') { - handleModels(res); - } else if (req.method === 'GET' && pathname === '/v1/cookies') { - const workerName = parsedUrl.searchParams.get('name'); - const domain = parsedUrl.searchParams.get('domain'); - await handleCookies(res, requestId, workerName, domain); - } else if (req.method === 'POST' && pathname.startsWith('/v1/chat/completions')) { - await handleChatCompletions(req, res, requestId); - } else { - res.writeHead(404); - res.end(); - } - }; -} diff --git a/src/server/index.js b/src/server/index.js index a44894a..bbe6119 100644 --- a/src/server/index.js +++ b/src/server/index.js @@ -12,8 +12,10 @@ export { sendApiError, buildChatCompletion, buildChatCompletionChunk -} from './http/respond.js'; -export { handleDisplayParams } from './display.js'; +} from './respond.js'; export { createQueueManager } from './queue.js'; -export { parseRequest } from './parseChat.js'; -export { createRouter } from './http/routes.js'; +export { parseRequest } from './api/openai/parse.js'; +export { createGlobalRouter } from './api/index.js'; +export { createAuthMiddleware } from './middlewares/auth.js'; + + diff --git a/src/server/middlewares/auth.js b/src/server/middlewares/auth.js new file mode 100644 index 0000000..4094522 --- /dev/null +++ b/src/server/middlewares/auth.js @@ -0,0 +1,39 @@ +/** + * @fileoverview 鉴权中间件 + * @description 提取自 routes.js 的鉴权逻辑 + */ + +import { sendApiError } from '../respond.js'; +import { ERROR_CODES } from '../errors.js'; + +/** + * 鉴权检查 + * @param {import('http').IncomingMessage} req - HTTP 请求 + * @param {string} authToken - 有效的认证令牌 + * @returns {boolean} 是否通过鉴权 + */ +export function checkAuth(req, authToken) { + const authHeader = req.headers['authorization']; + return authHeader === `Bearer ${authToken}`; +} + +/** + * 创建鉴权中间件 + * @param {string} authToken - 认证令牌 + * @returns {Function} 中间件函数 + */ +export function createAuthMiddleware(authToken) { + /** + * 鉴权中间件 + * @param {import('http').IncomingMessage} req + * @param {import('http').ServerResponse} res + * @returns {boolean} 是否通过鉴权 + */ + return function authMiddleware(req, res) { + if (!checkAuth(req, authToken)) { + sendApiError(res, { code: ERROR_CODES.UNAUTHORIZED }); + return false; + } + return true; + }; +} diff --git a/src/server/queue.js b/src/server/queue.js index 8df19e2..babd3d4 100644 --- a/src/server/queue.js +++ b/src/server/queue.js @@ -12,7 +12,7 @@ import { sendApiError, buildChatCompletion, buildChatCompletionChunk -} from './http/respond.js'; +} from './respond.js'; import { ERROR_CODES } from './errors.js'; /** diff --git a/src/server/http/respond.js b/src/server/respond.js similarity index 98% rename from src/server/http/respond.js rename to src/server/respond.js index 51be6ec..a5ababb 100644 --- a/src/server/http/respond.js +++ b/src/server/respond.js @@ -3,7 +3,7 @@ * @description 封装 JSON、SSE 响应和错误响应的统一处理函数 */ -import { getErrorDetails } from '../errors.js'; +import { getErrorDetails } from './errors.js'; /** * 发送 JSON 响应 diff --git a/server.js b/src/server/server.js similarity index 68% rename from server.js rename to src/server/server.js index 994ccf2..1540ea3 100644 --- a/server.js +++ b/src/server/server.js @@ -7,34 +7,24 @@ * - GET /v1/cookies - 获取当前浏览器 Cookies * - POST /v1/chat/completions - 生成图像(OpenAI 兼容格式) * + * 启动方式: + * - 通过 supervisor.js 启动(推荐,支持自动重启和 Xvfb 管理) + * - 直接运行 node server.js + * * 命令行参数: - * - -xvfb 启用 Xvfb 虚拟显示器(仅 Linux) - * - -vnc 启用 VNC 服务器(需配合 -xvfb 使用) * - -login 启动时打开登录页面 */ import http from 'http'; // ==================== 启动前自检 ==================== -import { runPreflight } from './src/utils/preflight.js'; -// Xvfb 子进程跳过自检(父进程已完成) -if (!process.env.XVFB_RUNNING) { - runPreflight(); -} +import { runPreflight } from '../utils/preflight.js'; +runPreflight(); // ==================== 加载其他依赖 ==================== -const { getBackend } = await import('./src/backend/index.js'); -const { logger } = await import('./src/utils/logger.js'); -const { handleDisplayParams, createQueueManager, createRouter } = await import('./src/server/index.js'); - -// ==================== 命令行参数处理 ==================== - -// 处理 Xvfb/VNC 参数(仅 Linux) -const displayResult = await handleDisplayParams(); -if (displayResult === 'XVFB_REDIRECT') { - // 已重定向到 Xvfb,阻止继续执行 - process.on('exit', () => { }); - await new Promise(() => { }); -} +const { getBackend } = await import('../backend/index.js'); +const { logger } = await import('../utils/logger.js'); +const { createQueueManager, createGlobalRouter } = await import('./index.js'); +const { isUnderSupervisor } = await import('../utils/ipc.js'); // ==================== 初始化配置 ==================== @@ -103,7 +93,15 @@ const queueManager = createQueueManager( : null } ); -const handleRequest = createRouter({ + +// ==================== 创建路由 ==================== + +/** + * 检测是否为登录模式 + */ +const isLoginMode = process.argv.some(arg => arg.startsWith('-login')); + +const handleRequest = createGlobalRouter({ authToken: AUTH_TOKEN, backendName, getModels, @@ -113,21 +111,23 @@ const handleRequest = createRouter({ tempDir: TEMP_DIR, imageLimit: IMAGE_LIMIT, queueManager, - config + config, + loginMode: isLoginMode }); // ==================== 启动服务器 ==================== -/** - * 检测是否为登录模式 - */ -const isLoginMode = process.argv.some(arg => arg.startsWith('-login')); - /** * 启动 HTTP 服务器 * @returns {Promise} */ async function startServer() { + // 登录模式提示 + if (isLoginMode) { + logger.info('服务器', '登录模式已就绪,请在浏览器中完成登录操作'); + logger.info('服务器', '完成后可直接关闭浏览器窗口或按 Ctrl+C 退出'); + } + // 预先启动 Pool try { await queueManager.initializePool(); @@ -136,20 +136,31 @@ async function startServer() { process.exit(1); } - // 登录模式:不启动 HTTP 服务器,只等待用户登录 - if (isLoginMode) { - logger.info('服务器', '登录模式已就绪,请在浏览器中完成登录操作'); - logger.info('服务器', '完成后可直接关闭浏览器窗口或按 Ctrl+C 退出'); - return; - } - // 创建并启动 HTTP 服务器 const server = http.createServer(handleRequest); + // 处理 WebSocket 升级请求(VNC 代理) + server.on('upgrade', async (req, socket, head) => { + const url = new URL(req.url, `http://${req.headers.host}`); + + // 只处理 /admin/vnc 路径 + if (url.pathname === '/admin/vnc') { + const { handleVncUpgrade } = await import('./api/admin/vncProxy.js'); + await handleVncUpgrade(req, socket, head, AUTH_TOKEN); + } else { + socket.destroy(); + } + }); + server.listen(PORT, () => { - logger.info('服务器', `HTTP 服务器已启动,端口: ${PORT}`); - logger.info('服务器', `流式心跳模式: ${KEEPALIVE_MODE}`); - logger.info('服务器', `最大并发: ${MAX_CONCURRENT},队列缓冲: ${QUEUE_BUFFER},最大图片数量: ${IMAGE_LIMIT}`); + const mode = isUnderSupervisor() ? 'Supervisor 托管' : '独立运行'; + const modeExtra = isLoginMode ? ' (登录模式)' : ''; + logger.info('服务器', `HTTP 服务器已启动,端口: ${PORT}${modeExtra}`); + logger.info('服务器', `运行模式: ${mode}`); + if (!isLoginMode) { + logger.info('服务器', `流式心跳模式: ${KEEPALIVE_MODE}`); + logger.info('服务器', `最大并发: ${MAX_CONCURRENT},队列缓冲: ${QUEUE_BUFFER},最大图片数量: ${IMAGE_LIMIT}`); + } }); } diff --git a/src/utils/ipc.js b/src/utils/ipc.js new file mode 100644 index 0000000..0340691 --- /dev/null +++ b/src/utils/ipc.js @@ -0,0 +1,113 @@ +/** + * @fileoverview IPC 通信模块 + * @description 提供与 Supervisor 进程通信的能力 + */ + +import net from 'net'; + +/** + * 发送重启信号给 Supervisor + * @param {string[]} [extraArgs] - 额外的命令行参数 + * @returns {Promise} 是否成功发送 + */ +export async function sendRestartSignal(extraArgs = []) { + const ipcPath = process.env.SUPERVISOR_IPC; + + if (!ipcPath) { + console.warn('[IPC] 未运行在 Supervisor 模式下,无法发送重启信号'); + return false; + } + + return new Promise((resolve) => { + const client = net.createConnection(ipcPath, () => { + // 格式: RESTART 或 RESTART:arg1 arg2 + const command = extraArgs.length > 0 + ? `RESTART:${extraArgs.join(' ')}` + : 'RESTART'; + client.write(command); + client.end(); + resolve(true); + }); + + client.on('error', (err) => { + console.error('[IPC] 连接 Supervisor 失败:', err.message); + resolve(false); + }); + }); +} + +/** + * 发送停止信号给 Supervisor + * @returns {Promise} 是否成功发送 + */ +export async function sendStopSignal() { + const ipcPath = process.env.SUPERVISOR_IPC; + + if (!ipcPath) { + console.warn('[IPC] 未运行在 Supervisor 模式下,无法发送停止信号'); + return false; + } + + return new Promise((resolve) => { + const client = net.createConnection(ipcPath, () => { + client.write('STOP'); + client.end(); + resolve(true); + }); + + client.on('error', (err) => { + console.error('[IPC] 连接 Supervisor 失败:', err.message); + resolve(false); + }); + }); +} + +/** + * 检查是否运行在 Supervisor 模式下 + * @returns {boolean} + */ +export function isUnderSupervisor() { + return !!process.env.SUPERVISOR_IPC; +} + +/** + * 获取 VNC 状态信息 + * @returns {Promise<{enabled: boolean, port: number, display: string, xvfbMode: boolean} | null>} + */ +export async function getVncInfo() { + const ipcPath = process.env.SUPERVISOR_IPC; + + if (!ipcPath) { + return null; + } + + return new Promise((resolve) => { + const client = net.createConnection(ipcPath, () => { + client.write('GET_VNC_INFO'); + }); + + let data = ''; + client.on('data', (chunk) => { + data += chunk.toString(); + }); + + client.on('end', () => { + try { + const info = JSON.parse(data.trim()); + resolve(info); + } catch { + resolve(null); + } + }); + + client.on('error', () => { + resolve(null); + }); + + // 超时处理 + setTimeout(() => { + client.destroy(); + resolve(null); + }, 3000); + }); +} diff --git a/src/utils/preflight.js b/src/utils/preflight.js index 5f86415..c8370b7 100644 --- a/src/utils/preflight.js +++ b/src/utils/preflight.js @@ -118,7 +118,8 @@ export function runPreflight() { logger.error('服务器', ` - ${err}`); } logger.error('服务器', '提示: 您可以使用 npm run init -- -custom 来自定义初始化步骤'); - process.exit(1); + // 退出码 78 表示配置/依赖错误,看门狗不应自动重启 + process.exit(78); } logger.info('服务器', '自检通过'); diff --git a/supervisor.js b/supervisor.js new file mode 100644 index 0000000..1727c4f --- /dev/null +++ b/supervisor.js @@ -0,0 +1,428 @@ +/** + * @fileoverview Supervisor 进程管理器 + * @description 负责管理 Xvfb 环境和子服务的生命周期 + * + * 功能: + * - Linux 环境下启动 xvfb-run + * - 使用 child_process.spawn 启动 server.js + * - 监听 IPC 通道接收重启指令 + * - 子进程崩溃时自动重启 + */ + +import { spawn, spawnSync } from 'child_process'; +import net from 'net'; +import os from 'os'; +import path from 'path'; +import fs from 'fs'; + +// ==================== 配置 ==================== + +const isWindows = os.platform() === 'win32'; + +// IPC 通道路径 +const IPC_PATH = isWindows + ? '\\\\.\\pipe\\webai2api-supervisor' + : path.join(os.tmpdir(), 'webai2api-supervisor.sock'); + +// 重启延迟(毫秒) +const RESTART_DELAY = 1000; + +// 下次重启使用的参数(由 IPC 设置) +let restartArgs = null; + +// ==================== 工具函数 ==================== + +/** + * 简单日志 + * @param {string} level + * @param {string} message + */ +function log(level, message) { + const now = new Date(); + const pad = (n, len = 2) => String(n).padStart(len, '0'); + const date = `${now.getFullYear()}-${pad(now.getMonth() + 1)}-${pad(now.getDate())}`; + const time = `${pad(now.getHours())}:${pad(now.getMinutes())}:${pad(now.getSeconds())}.${pad(now.getMilliseconds(), 3)}`; + const levelTag = level === 'ERROR' ? 'ERRO' : level; + console.log(`${date} ${time} [${levelTag}] [看门狗] ${message}`); +} + +/** + * 检查命令是否存在(Linux) + * @param {string} cmd + * @returns {boolean} + */ +function checkCommand(cmd) { + if (isWindows) return true; + const result = spawnSync('which', [cmd], { encoding: 'utf8' }); + return result.status === 0; +} + +/** + * 检查端口是否可用 + * @param {number} port + * @returns {Promise} + */ +function isPortAvailable(port) { + return new Promise((resolve) => { + const server = net.createServer(); + server.once('error', () => resolve(false)); + server.once('listening', () => { + server.close(); + resolve(true); + }); + server.listen(port, '127.0.0.1'); + }); +} + +/** + * 查找可用端口 + * @param {number} startPort - 起始端口 + * @param {number} maxTries - 最大尝试次数 + * @returns {Promise} + */ +async function findAvailablePort(startPort, maxTries = 10) { + for (let i = 0; i < maxTries; i++) { + const port = startPort + i; + if (await isPortAvailable(port)) { + return port; + } + } + return null; +} + +/** + * 检查 Xvfb 显示号是否可用 + * @param {number} displayNum + * @returns {boolean} + */ +function isDisplayAvailable(displayNum) { + const lockFile = `/tmp/.X${displayNum}-lock`; + const socketFile = `/tmp/.X11-unix/X${displayNum}`; + return !fs.existsSync(lockFile) && !fs.existsSync(socketFile); +} + +/** + * 查找可用的显示号 + * @param {number} startNum - 起始显示号 + * @param {number} maxTries - 最大尝试次数 + * @returns {number} + */ +function findAvailableDisplay(startNum = 50, maxTries = 50) { + for (let i = 0; i < maxTries; i++) { + const num = startNum + i; + if (isDisplayAvailable(num)) { + return num; + } + } + // 回退:使用随机显示号 + return 50 + Math.floor(Math.random() * 50); +} + +// ==================== IPC 服务器 ==================== + +let serverProcess = null; +let isRestarting = false; + +// VNC 状态追踪 +let vncInfo = { + enabled: false, + port: 5900, + display: ':99', + xvfbMode: false +}; + +/** + * 启动 IPC 服务器 + */ +function startIpcServer() { + // 清理旧的 socket 文件(Linux) + if (!isWindows && fs.existsSync(IPC_PATH)) { + try { + fs.unlinkSync(IPC_PATH); + } catch { } + } + + const ipcServer = net.createServer((socket) => { + socket.on('data', (data) => { + const command = data.toString().trim(); + + if (command === 'RESTART' || command.startsWith('RESTART:')) { + // 支持 RESTART:参数 格式 + const extraArgs = command.includes(':') ? command.split(':')[1].split(' ').filter(Boolean) : []; + log('INFO', `收到 IPC 指令: RESTART${extraArgs.length ? ' (参数: ' + extraArgs.join(' ') + ')' : ''}`); + socket.write('OK\n'); + socket.end(); + restartServer(extraArgs); + } else if (command === 'STOP') { + log('INFO', '收到 IPC 指令: STOP'); + socket.write('OK\n'); + socket.end(); + stopAll(); + } else if (command === 'GET_VNC_INFO') { + // 返回 VNC 状态信息并关闭连接 + socket.write(JSON.stringify(vncInfo) + '\n'); + socket.end(); + } else { + socket.write('UNKNOWN_COMMAND\n'); + socket.end(); + } + }); + }); + + ipcServer.listen(IPC_PATH, () => { + log('INFO', `IPC 服务器已启动: ${IPC_PATH}`); + }); + + ipcServer.on('error', (err) => { + log('ERROR', `IPC 服务器错误: ${err.message}`); + }); + + return ipcServer; +} + +// ==================== 子进程管理 ==================== + +// 不可恢复的退出码(不应自动重启) +const FATAL_EXIT_CODES = [ + 78, // 配置/依赖错误 +]; + +/** + * 启动 server.js 子进程 + * @param {string[]} [extraArgs] - 额外的命令行参数 + */ +function startServer(extraArgs = []) { + const serverPath = path.join(process.cwd(), 'src', 'server', 'server.js'); + + // 检查 server.js 是否存在 + if (!fs.existsSync(serverPath)) { + log('ERROR', `未找到 server.js: ${serverPath}`); + process.exit(1); + } + + const args = [serverPath, ...extraArgs]; + const env = { + ...process.env, + SUPERVISOR_IPC: IPC_PATH + }; + + log('INFO', '正在启动子服务 (src/server/server.js)...'); + + serverProcess = spawn(process.execPath, args, { + cwd: process.cwd(), + env, + stdio: 'inherit' // 将子进程 stdio 直接输出到主控制台 + }); + + serverProcess.on('exit', (code, signal) => { + if (isRestarting) { + log('INFO', '子服务已停止,准备重启...'); + isRestarting = false; + // 如果有新参数,使用新参数;否则使用原参数 + const argsToUse = restartArgs !== null ? restartArgs : extraArgs; + restartArgs = null; // 重置 + setTimeout(() => startServer(argsToUse), RESTART_DELAY); + } else if (code !== 0 && code !== null) { + // 检查是否为不可恢复的错误 + if (FATAL_EXIT_CODES.includes(code)) { + log('ERROR', `子服务因配置/依赖错误退出 (code: ${code}),不会自动重启`); + process.exit(code); + } + log('WARN', `子服务异常退出 (code: ${code}),将自动重启...`); + setTimeout(() => startServer(extraArgs), RESTART_DELAY); + } else { + log('INFO', '子服务已正常退出'); + process.exit(0); + } + }); + + serverProcess.on('error', (err) => { + log('ERROR', `子服务启动失败: ${err.message}`); + process.exit(1); + }); +} + +/** + * 重启子服务 + * @param {string[]} [newArgs] - 新的启动参数(将覆盖原有参数) + */ +function restartServer(newArgs = null) { + if (isRestarting) { + log('WARN', '重启已在进行中,忽略重复请求'); + return; + } + + isRestarting = true; + log('INFO', '正在重启子服务...'); + + // 如果提供了新参数,更新启动参数 + if (newArgs !== null) { + restartArgs = newArgs; + } + + if (serverProcess) { + serverProcess.kill('SIGTERM'); + } +} + +/** + * 停止所有服务 + */ +function stopAll() { + log('INFO', '正在停止所有服务...'); + + if (serverProcess) { + serverProcess.kill('SIGTERM'); + } + + setTimeout(() => process.exit(0), 500); +} + +// ==================== Xvfb 处理(Linux) ==================== + +/** + * 在 Xvfb 中启动 + * @param {string[]} originalArgs - 原始命令行参数 + */ +function startInXvfb(originalArgs) { + if (!checkCommand('xvfb-run')) { + log('ERROR', '未找到 xvfb-run 命令'); + log('ERROR', '请先安装 Xvfb:'); + log('ERROR', ' - Ubuntu/Debian: sudo apt install xvfb'); + log('ERROR', ' - CentOS/RHEL: sudo dnf install xorg-x11-server-Xvfb'); + process.exit(1); + } + + // 查找可用的显示号(从 50 开始,避免与常用的冲突) + const displayNum = findAvailableDisplay(50); + log('INFO', `正在启动 Xvfb 虚拟显示器 (显示号: :${displayNum})...`); + + // 移除 -xvfb 参数 + const newArgs = originalArgs.filter(arg => arg !== '-xvfb'); + + const xvfbArgs = [ + `--server-num=${displayNum}`, + '--server-args=-ac -screen 0 1366x768x24', + 'env', + 'XVFB_RUNNING=true', + `DISPLAY=:${displayNum}`, + process.argv[0], + process.argv[1], + ...newArgs + ]; + + const xvfbProcess = spawn('xvfb-run', xvfbArgs, { + stdio: 'inherit' + }); + + xvfbProcess.on('error', (err) => { + log('ERROR', `Xvfb 启动失败: ${err.message}`); + process.exit(1); + }); + + xvfbProcess.on('exit', (code) => { + process.exit(code || 0); + }); + + // 处理退出信号 + process.on('SIGINT', () => xvfbProcess.kill('SIGTERM')); + process.on('SIGTERM', () => xvfbProcess.kill('SIGTERM')); +} + +/** + * 启动 VNC 服务器 + * @param {string} display - 显示器编号 + */ +async function startVncServer(display) { + if (!checkCommand('x11vnc')) { + log('WARN', '未找到 x11vnc 命令,跳过 VNC 启动'); + return; + } + + // 查找可用的 VNC 端口(从 5900 开始) + const vncPort = await findAvailablePort(5900, 100); + if (!vncPort) { + log('ERROR', '无法找到可用的 VNC 端口 (5900-5999)'); + return; + } + + log('INFO', `正在启动 VNC 服务器 (端口: ${vncPort})...`); + + const vncProcess = spawn('x11vnc', [ + '-display', display, + '-rfbport', String(vncPort), + '-localhost', + '-nopw', + '-shared', + '-forever', + '-noxdamage', + '-norc', + '-geometry', '1366x768' + ], { + stdio: 'ignore', + detached: false + }); + + vncProcess.on('error', (err) => { + log('WARN', `VNC 启动失败: ${err.message}`); + vncInfo.enabled = false; + }); + + vncProcess.on('exit', () => { + vncInfo.enabled = false; + }); + + // 更新 VNC 状态 + vncInfo.enabled = true; + vncInfo.port = vncPort; + vncInfo.display = display; + + log('INFO', `VNC 服务器已启动,端口: ${vncPort}`); + + // 处理退出信号 + process.on('SIGINT', () => vncProcess.kill('SIGTERM')); + process.on('SIGTERM', () => vncProcess.kill('SIGTERM')); +} + +// ==================== 主入口 ==================== + +async function main() { + const args = process.argv.slice(2); + const hasXvfb = args.includes('-xvfb'); + const hasVnc = args.includes('-vnc'); + const isInXvfb = process.env.XVFB_RUNNING === 'true'; + const isLinux = os.platform() === 'linux'; + + log('INFO', '主进程已启动'); + + // 处理 Xvfb 参数(仅 Linux) + if (hasXvfb && isLinux && !isInXvfb) { + startInXvfb(args); + return; + } + + // 设置 xvfbMode 标识 + vncInfo.xvfbMode = isInXvfb; + + // 如果在 Xvfb 中运行,启动 VNC + if (isInXvfb && hasVnc) { + const display = process.env.DISPLAY || ':99'; + await startVncServer(display); + } + + // 启动 IPC 服务器 + startIpcServer(); + + // 启动子服务(过滤掉 -xvfb 和 -vnc 参数) + const serverArgs = args.filter(arg => arg !== '-xvfb' && arg !== '-vnc'); + startServer(serverArgs); + + // 处理退出信号 + process.on('SIGINT', stopAll); + process.on('SIGTERM', stopAll); +} + +main().catch((err) => { + log('ERROR', `启动失败: ${err.message}`); + process.exit(1); +}); diff --git a/webui/.npmrc b/webui/.npmrc new file mode 100644 index 0000000..f0e8a49 --- /dev/null +++ b/webui/.npmrc @@ -0,0 +1,4 @@ +# 禁止使用根目录的 lockfile +shared-workspace-lockfile=false +# 忽略工作区根目录 +use-workspace-root-ver=false \ No newline at end of file diff --git a/webui/assets/cache-Cy4mgfN4.js b/webui/assets/cache-Cy4mgfN4.js deleted file mode 100644 index cb2054e..0000000 --- a/webui/assets/cache-Cy4mgfN4.js +++ /dev/null @@ -1 +0,0 @@ -import{u as Y}from"./system-CD4DQKFk.js";import{c as a,I as Z,j as K,r as y,n as h,b as tt,d as et,w as e,f as s,e as l,g as p,u as _,P as j,D as F,p as N,t as x,q as u,s as st,L as T,C as at}from"./index-CdkAYAR1.js";var nt={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 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"};function B(m){for(var o=1;onew Promise(t=>setTimeout(t,n)),I=async()=>{b.value=!0,g.value=!0,r.value=0,c.value[0].status="process",await k(500),c.value[0].status="finish",r.value=1,c.value[1].status="process";try{await o.restartService(),c.value[1].status="finish",r.value=2}catch{c.value[1].status="error",u.error("无法连接到服务器");return}c.value[2].status="process",await k(5e3),c.value[2].status="finish",r.value=3,c.value[3].status="process";let n=20;for(;n>0;){try{if(await o.fetchStatus(),o.status==="running")break}catch{}await k(2e3),n--}c.value[3].status="finish",r.value=4,c.value[4].status="finish",u.success("服务重启成功"),setTimeout(()=>{b.value=!1,g.value=!1,c.value.forEach(t=>t.status="wait"),r.value=0},1500)},V=async()=>{try{await o.stopService()&&u.success("服务已停止")}catch(n){u.error("停止服务失败: "+n.message)}},H=async()=>{try{(await fetch("/admin/cache/clear",{method:"POST",headers:i.getHeaders()})).ok?u.success("缓存文件夹已清理"):u.error("清理失败")}catch(n){u.error("请求失败: "+n.message)}},P=async()=>{d.value=[],w.value=!0;try{const n=await fetch("/admin/data-folders",{headers:i.getHeaders()});n.ok&&(z.value=await n.json())}catch{u.error("获取文件夹列表失败")}},L=(n,t)=>{t?d.value.includes(n)||d.value.push(n):d.value=d.value.filter(v=>v!==n)},R=async()=>{if(d.value.length===0){u.warning("请先选择要删除的文件夹");return}try{(await fetch("/admin/data-folders/delete",{method:"POST",headers:i.getHeaders(),body:JSON.stringify({folders:d.value})})).ok?(u.success(`已删除 ${d.value.length} 个实例数据文件夹`),await P()):u.error("删除失败")}catch{u.error("删除请求失败")}};return(n,t)=>{const v=l("a-button"),S=l("a-popconfirm"),$=l("a-space"),O=l("a-card"),E=l("a-steps"),M=l("a-modal"),D=l("a-col"),U=l("a-row"),q=l("a-checkbox"),A=l("a-list-item-meta"),J=l("a-list-item"),G=l("a-list"),Q=l("a-drawer"),W=l("a-layout");return et(),tt(W,{style:{background:"transparent"}},{default:e(()=>[a(O,{title:"项目管理",bordered:!1,style:{width:"100%","margin-bottom":"10px"}},{default:e(()=>[s("div",lt,[t[6]||(t[6]=s("div",{style:{display:"flex","align-items":"center"}},[s("div",{style:{"margin-right":"16px"}},[s("div",{style:{"font-weight":"600","margin-bottom":"4px"}},"系统服务控制"),s("div",{style:{"font-size":"12px",color:"#8c8c8c"}}," 控制后端服务的运行状态 (重启或停止) ")])],-1)),s("div",null,[a($,null,{default:e(()=>[a(S,{title:"确定要重启服务吗?","ok-text":"确定","cancel-text":"取消",onConfirm:I},{default:e(()=>[a(v,{type:"primary",size:"large"},{icon:e(()=>[a(_(j))]),default:e(()=>[t[3]||(t[3]=p(" 重启 ",-1))]),_:1})]),_:1}),a(S,{"ok-text":"确定","cancel-text":"取消",onConfirm:V,placement:"topRight"},{title:e(()=>[...t[4]||(t[4]=[s("div",{style:{width:"240px"}},[s("div",{style:{"font-weight":"500","margin-bottom":"4px"}},"确定要停止服务吗?"),s("div",{style:{"font-size":"12px",color:"#f5222d"}},"停止后服务将完全终止,需要手动重新启动。")],-1)])]),default:e(()=>[a(v,{type:"primary",danger:"",size:"large"},{icon:e(()=>[a(_(C))]),default:e(()=>[t[5]||(t[5]=p(" 停止 ",-1))]),_:1})]),_:1})]),_:1})])])]),_:1}),a(M,{open:b.value,"onUpdate:open":t[0]||(t[0]=f=>b.value=f),title:"系统服务重启中",footer:null,closable:!1,maskClosable:!1,width:"500px"},{default:e(()=>[s("div",it,[a(E,{current:r.value,items:c.value},null,8,["current","items"]),t[7]||(t[7]=s("div",{style:{"text-align":"center","margin-top":"24px",color:"#8c8c8c"}}," 请稍候,系统正在执行重启操作... ",-1))])]),_:1},8,["open"]),a(O,{title:"缓存管理",bordered:!1,style:{width:"100%"}},{default:e(()=>[a(U,{gutter:[16,16]},{default:e(()=>[a(D,{xs:24,md:12},{default:e(()=>[a(O,{style:{height:"100%"},"body-style":{display:"flex",flexDirection:"column",height:"100%"}},{default:e(()=>[s("div",rt,[s("div",ct,[a(_(F),{style:{"font-size":"24px",color:"#1890ff","margin-right":"8px"}}),t[8]||(t[8]=s("div",{style:{"font-weight":"600","font-size":"16px"}},"清理缓存文件夹",-1))]),t[9]||(t[9]=s("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"16px"}},[p(" 清理项目运行过程中可能会遗留的临时缓存文件(如遇到错误时遗留的图片),"),s("br"),p(" 不会影响用户数据和配置"),s("strong",{style:{color:"#ff4d4f"}},"有任务运行时请勿执行")],-1))]),a(S,{title:"确定要清理缓存文件夹吗?","ok-text":"确定","cancel-text":"取消",onConfirm:H},{default:e(()=>[a(v,{type:"primary",block:""},{icon:e(()=>[a(_(F))]),default:e(()=>[t[10]||(t[10]=p(" 清理缓存 ",-1))]),_:1})]),_:1})]),_:1})]),_:1}),a(D,{xs:24,md:12},{default:e(()=>[a(O,{style:{height:"100%"},"body-style":{display:"flex",flexDirection:"column",height:"100%"}},{default:e(()=>[s("div",dt,[s("div",ut,[a(_(N),{style:{"font-size":"24px",color:"#ff4d4f","margin-right":"8px"}}),t[11]||(t[11]=s("div",{style:{"font-weight":"600","font-size":"16px"}},"删除实例数据文件夹",-1))]),t[12]||(t[12]=s("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"16px"}},[p(" 删除所有浏览器实例的用户数据文件夹,"),s("br"),p(" 包括 Cookie、本地存储等,"),s("strong",{style:{color:"#ff4d4f"}},"请谨慎操作")],-1))]),a(v,{danger:"",block:"",onClick:P},{icon:e(()=>[a(_(N))]),default:e(()=>[t[13]||(t[13]=p(" 管理实例数据 ",-1))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),a(Q,{open:w.value,"onUpdate:open":t[2]||(t[2]=f=>w.value=f),title:"管理实例数据文件夹",placement:"right",width:"500"},{footer:e(()=>[s("div",mt,[s("div",vt," 已选择 "+x(d.value.length)+" 个文件夹 ",1),s("div",null,[a(v,{style:{"margin-right":"8px"},onClick:t[1]||(t[1]=f=>w.value=!1)},{default:e(()=>[...t[15]||(t[15]=[p(" 取消 ",-1)])]),_:1}),a(S,{placement:"topRight","ok-text":"确定删除","cancel-text":"取消",onConfirm:R},{title:e(()=>[s("div",gt," 确定要删除选中的 "+x(d.value.length)+" 个文件夹吗? ",1)]),default:e(()=>[a(v,{type:"primary",danger:"",disabled:d.value.length===0},{default:e(()=>[...t[16]||(t[16]=[p(" 删除选中项 ",-1)])]),_:1},8,["disabled"])]),_:1})])])]),default:e(()=>[s("div",ft,[t[14]||(t[14]=s("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"12px"}}," 选择要删除的实例数据文件夹,删除后无法恢复,请谨慎操作 ",-1)),a(G,{"data-source":z.value,bordered:""},{renderItem:e(({item:f})=>[a(J,null,{default:e(()=>[a(A,null,{title:e(()=>[a(q,{checked:d.value.includes(f.name),onChange:X=>L(f.name,X.target.checked)},{default:e(()=>[p(x(f.name),1)]),_:2},1032,["checked","onChange"])]),description:e(()=>[s("div",pt,[s("div",null,"路径: "+x(f.path),1),s("div",null,"关联实例: "+x(f.instance),1),s("div",null,"大小: "+x(f.size),1)])]),_:2},1024)]),_:2},1024)]),_:1},8,["data-source"])])]),_:1},8,["open"])]),_:1})}}};export{xt as default}; diff --git a/webui/assets/dash-BUMZuoA4.js b/webui/assets/dash-BUMZuoA4.js deleted file mode 100644 index 220033f..0000000 --- a/webui/assets/dash-BUMZuoA4.js +++ /dev/null @@ -1 +0,0 @@ -import{u as R}from"./system-CD4DQKFk.js";import{c as a,I as O,r as j,o as W,a as Y,b as _,d as b,w as s,e as d,f as i,g as p,u as c,t as m,h as Z,i as z,E as K,C as tt,j as et}from"./index-CdkAYAR1.js";var nt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 512.3v-.3c0-229.8-186.2-416-416-416S96 282.2 96 512v.4c0 229.8 186.2 416 416 416s416-186.2 416-416v-.3.2zm-6.7-74.6l.6 3.3-.6-3.3zM676.7 638.2c53.5-82.2 52.5-189.4-11.1-263.7l162.4-8.4c20.5 44.4 32 93.8 32 145.9 0 185.2-144.6 336.6-327.1 347.4l143.8-221.2zM512 652.3c-77.5 0-140.2-62.7-140.2-140.2 0-77.7 62.7-140.2 140.2-140.2S652.2 434.5 652.2 512 589.5 652.3 512 652.3zm369.2-331.7l-3-5.7 3 5.7zM512 164c121.3 0 228.2 62.1 290.4 156.2l-263.6-13.9c-97.5-5.7-190.2 49.2-222.3 141.1L227.8 311c63.1-88.9 166.9-147 284.2-147zM102.5 585.8c26 145 127.1 264 261.6 315.1C229.6 850 128.5 731 102.5 585.8zM164 512c0-55.9 13.2-108.7 36.6-155.5l119.7 235.4c44.1 86.7 137.4 139.7 234 121.6l-74 145.1C302.9 842.5 164 693.5 164 512zm324.7 415.4c4 .2 8 .4 12 .5-4-.2-8-.3-12-.5z"}}]},name:"chrome",theme:"outlined"};function N(n){for(var t=1;t{const u=et();try{const o=await fetch("/admin/queue",{headers:u.getHeaders()});if(o.ok){const f=await o.json();l.value={processing:f.processing||0,waiting:f.waiting||0,total:f.total||0};const g=(f.processingTasks||[]).map(v=>({...v,status:"processing"})),S=(f.waitingTasks||[]).map(v=>({...v,status:"waiting"}));e.value=[...g,...S]}}catch(o){console.error("Fetch queue failed",o)}},k=async()=>{await Promise.all([t.fetchStatus(),t.fetchStats(),I()])},q=u=>{const o=Math.floor(u/86400),f=Math.floor(u%(3600*24)/3600),g=Math.floor(u%3600/60);return o>0?`${o}天 ${f}小时 ${g}分`:f>0?`${f}小时 ${g}分`:`${g}分`},A=u=>!u||u===0?"0 MB":u>1024?parseFloat((u/1024).toFixed(2))+" GB":parseFloat(Number(u).toFixed(2))+" MB",B=u=>u<50?"#52c41a":u<80?"#faad14":"#f5222d",H=u=>({normal:{color:"green",text:"正常模式 (Normal)"},headless:{color:"blue",text:"无头模式 (Headless)"},xvfb:{color:"purple",text:"虚拟显示 (Xvfb)"}})[u]||{color:"red",text:"未运行"};return W(()=>{k(),r.value=setInterval(k,5e3)}),Y(()=>{r.value&&clearInterval(r.value)}),(u,o)=>{const f=d("a-tag"),g=d("a-progress"),S=d("a-space"),v=d("a-card"),h=d("a-col"),w=d("a-statistic"),P=d("a-row"),G=d("a-list-item-meta"),Q=d("a-list-item"),X=d("a-list"),J=d("a-layout");return b(),_(J,{style:{width:"100%",background:"transparent"}},{default:s(()=>[a(P,{gutter:[16,16],style:{"margin-bottom":"24px"}},{default:s(()=>[a(h,{xs:24,md:12},{default:s(()=>[a(v,{title:"系统状态",bordered:!1,style:{height:"100%"}},{default:s(()=>[a(S,{direction:"vertical",style:{width:"100%"},size:"middle"},{default:s(()=>[i("div",mt,[i("span",null,[a(c(M)),o[0]||(o[0]=p(" 系统版本: ",-1))]),i("b",null,m(c(t).systemVersion),1)]),i("div",gt,[i("span",null,[a(c($)),o[1]||(o[1]=p(" 运行时间: ",-1))]),i("b",null,m(q(c(t).uptime)),1)]),i("div",vt,[i("span",null,[a(c(C)),o[2]||(o[2]=p(" 状态: ",-1))]),a(f,{color:H(c(t).status).color},{default:s(()=>[p(m(H(c(t).status).text),1)]),_:1},8,["color"])]),i("div",null,[i("div",yt,[i("span",null,[a(c(D)),o[3]||(o[3]=p(" CPU 使用率: ",-1))]),i("span",null,m(c(t).cpuUsage)+"%",1)]),a(g,{percent:c(t).cpuUsage,"stroke-color":B(c(t).cpuUsage),"show-info":!1},null,8,["percent","stroke-color"])]),i("div",null,[i("div",ht,[i("span",null,[a(c(V)),o[4]||(o[4]=p(" 内存使用: ",-1))]),i("span",null,m(A(c(t).memoryUsage.used))+" / "+m(A(c(t).memoryUsage.total)),1)]),a(g,{percent:Math.round(c(t).memoryUsage.used/c(t).memoryUsage.total*100)||0,"stroke-color":B(c(t).memoryUsage.used/c(t).memoryUsage.total*100),"show-info":!1},null,8,["percent","stroke-color"])])]),_:1})]),_:1})]),_:1}),a(h,{xs:24,md:12},{default:s(()=>[a(v,{title:"业务统计",bordered:!1,style:{height:"100%"}},{default:s(()=>[a(P,{gutter:16,style:{"margin-bottom":"24px"}},{default:s(()=>[a(h,{span:12},{default:s(()=>[a(w,{title:"窗口数量",value:c(t).stats.workers||0},{suffix:s(()=>[...o[5]||(o[5]=[i("span",{style:{"font-size":"14px",color:"#8c8c8c"}},"个",-1)])]),_:1},8,["value"])]),_:1}),a(h,{span:12},{default:s(()=>[a(w,{title:"实例数量",value:c(t).stats.instances||0,'"':""},{suffix:s(()=>[...o[6]||(o[6]=[i("span",{style:{"font-size":"14px",color:"#8c8c8c"}},"个",-1)])]),_:1},8,["value"])]),_:1})]),_:1}),a(P,{gutter:16},{default:s(()=>[a(h,{span:12},{default:s(()=>[a(w,{title:"正在进行",value:l.value.processing},{suffix:s(()=>[i("span",bt,"/ "+m(l.value.total),1)]),_:1},8,["value"])]),_:1}),a(h,{span:12},{default:s(()=>[a(w,{title:"等待排队",value:l.value.waiting},{suffix:s(()=>[i("span",Ot,"/ "+m(l.value.total),1)]),_:1},8,["value"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),a(v,{title:"任务队列实时监控",bordered:!1,style:{width:"100%"},bodyStyle:{padding:"0 24px"}},{extra:s(()=>[i("div",_t,[a(c(x),{spin:!0,style:{"margin-right":"4px"}}),o[7]||(o[7]=p(" 实时刷新中 ",-1))])]),default:s(()=>[a(X,{"item-layout":"horizontal","data-source":e.value},{renderItem:s(({item:y})=>[a(Q,null,{default:s(()=>[a(G,{description:`ID: ${y.id}`},{title:s(()=>[i("span",wt,m(y.model),1),y.worker?(b(),_(f,{key:0,color:"blue"},{default:s(()=>[p(m(y.worker),1)]),_:2},1024)):z("",!0)]),_:2},1032,["description"]),i("div",null,[y.status==="processing"?(b(),_(f,{key:0,color:"processing"},{icon:s(()=>[a(c(x),{spin:!0})]),default:s(()=>[o[8]||(o[8]=p(" 进行中 ",-1))]),_:1})):y.status==="waiting"?(b(),_(f,{key:1,color:"warning"},{icon:s(()=>[a(c(K))]),default:s(()=>[o[9]||(o[9]=p(" 等待中 ",-1))]),_:1})):y.status==="success"?(b(),_(f,{key:2,color:"success"},{icon:s(()=>[a(c(tt))]),default:s(()=>[o[10]||(o[10]=p(" 已完成 ",-1))]),_:1})):z("",!0)])]),_:2},1024)]),default:s(()=>[e.value.length===0?(b(),Z("div",xt," 暂无任务 ")):z("",!0)]),_:1},8,["data-source"])]),_:1})]),_:1})}}};export{jt as default}; diff --git a/webui/assets/display-Bpu1-5NI.js b/webui/assets/display-Bpu1-5NI.js deleted file mode 100644 index e2ae7e6..0000000 --- a/webui/assets/display-Bpu1-5NI.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o,b as a,d as r,w as s,g as n,e as c}from"./index-CdkAYAR1.js";const d={};function _(l,e){const t=c("a-card");return r(),a(t,{title:"VNC转发",bordered:!1,style:{height:"100%"}},{default:s(()=>[...e[0]||(e[0]=[n(" 开发中... ",-1)])]),_:1})}const i=o(d,[["render",_]]);export{i as default}; diff --git a/webui/assets/system-CD4DQKFk.js b/webui/assets/system-CD4DQKFk.js deleted file mode 100644 index 0588058..0000000 --- a/webui/assets/system-CD4DQKFk.js +++ /dev/null @@ -1 +0,0 @@ -import{v as o,j as a,q as r}from"./index-CdkAYAR1.js";const n=o("system",{state:()=>({status:"",version:"1.0.0",systemVersion:"",uptime:0,cpuUsage:0,memoryUsage:{total:0,used:0,free:0},stats:{totalRequests:0,successRate:0,activeWorkers:0,totalWorkers:0,avgResponseTime:0}}),actions:{async fetchStatus(){const t=a();try{const e=await fetch("/admin/status",{headers:t.getHeaders()});if(e.ok){const s=await e.json();this.$patch(s)}}catch(e){console.error("Failed to fetch system status:",e)}},async fetchStats(){const t=a();try{const e=await fetch("/admin/stats",{headers:t.getHeaders()});if(e.ok){const s=await e.json();this.stats=s}}catch(e){console.error("Failed to fetch stats:",e)}},async restartService(){const t=a();try{const s=await(await fetch("/admin/restart",{method:"POST",headers:t.getHeaders()})).json();return s.success?(r.success(s.message||"Service restarting..."),!0):(r.error("Restart failed"),!1)}catch{return r.error("Restart request failed"),!1}},async stopService(){const t=a();try{const s=await(await fetch("/admin/stop",{method:"POST",headers:t.getHeaders()})).json();return s.success?(r.success(s.message||"Service stopping..."),!0):(r.error("Stop failed"),!1)}catch{return r.error("Stop request failed"),!1}}}});export{n as u}; diff --git a/webui/dist/assets/DesktopOutlined-DmRiuvy2.js b/webui/dist/assets/DesktopOutlined-DmRiuvy2.js new file mode 100644 index 0000000..cc7f670 --- /dev/null +++ b/webui/dist/assets/DesktopOutlined-DmRiuvy2.js @@ -0,0 +1 @@ +import{c as i,I as u}from"./index-N039yHLa.js";var l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}}]},name:"desktop",theme:"outlined"};function c(r){for(var t=1;t{await Promise.all([n.fetchAdaptersMeta(),n.fetchAdapterConfig()])});const O=T(()=>n.adaptersMeta),C=m=>{o.value=m;const r=n.adapterConfig[m.id]||{};Object.keys(t).forEach(u=>delete t[u]),m.configSchema&&m.configSchema.forEach(u=>{r[u.key]!==void 0?t[u.key]=r[u.key]:t[u.key]=u.default}),a.value=!0},V=async()=>{if(!o.value)return;const m={[o.value.id]:{...t}};await n.saveAdapterConfig(m)&&(a.value=!1)};return(m,r)=>{const u=c("a-button"),b=c("a-card"),z=c("a-list-item"),A=c("a-list"),U=c("a-empty"),H=c("a-input"),j=c("a-input-number"),M=c("a-switch"),P=c("a-select"),B=c("a-form-item"),E=c("a-form"),N=c("a-drawer"),$=c("a-layout");return i(),_($,{style:{background:"transparent"}},{default:s(()=>[l(b,{title:"适配器管理",bordered:!1},{extra:s(()=>[l(u,{type:"link",onClick:g(n).fetchAdaptersMeta},{default:s(()=>[...r[2]||(r[2]=[h("刷新列表",-1)])]),_:1},8,["onClick"])]),default:s(()=>[l(A,{grid:{gutter:16,xs:1,sm:2,md:3,lg:3,xl:4,xxl:4},"data-source":O.value},{renderItem:s(({item:e})=>[l(z,null,{default:s(()=>[l(b,{hoverable:"",onClick:d=>C(e),bodyStyle:{padding:"16px"}},{default:s(()=>[v("div",W,[v("div",X,[l(g(k),{style:{"font-size":"20px",color:"#1890ff","margin-right":"12px"}}),v("span",Y,S(e.id),1)]),l(g(L),{style:{"font-size":"16px",color:"#8c8c8c"}})])]),_:2},1032,["onClick"])]),_:2},1024)]),_:1},8,["data-source"])]),_:1}),o.value?(i(),_(N,{key:0,open:a.value,"onUpdate:open":r[1]||(r[1]=e=>a.value=e),title:`配置适配器 - ${o.value.name}`,width:"500",placement:"right"},{footer:s(()=>[v("div",te,[l(u,{style:{"margin-right":"8px"},onClick:r[0]||(r[0]=e=>a.value=!1)},{default:s(()=>[...r[3]||(r[3]=[h("取消",-1)])]),_:1}),l(u,{type:"primary",onClick:V},{default:s(()=>[...r[4]||(r[4]=[h("保存配置",-1)])]),_:1})])]),default:s(()=>[!o.value.configSchema||o.value.configSchema.length===0?(i(),f("div",Z,[l(U,{description:"该适配器没有可配置项"})])):(i(),_(E,{key:1,layout:"vertical"},{default:s(()=>[(i(!0),f(J,null,G(o.value.configSchema,e=>(i(),_(B,{key:e.key,label:e.label,required:e.required},{default:s(()=>[e.type==="string"?(i(),_(H,{key:0,value:t[e.key],"onUpdate:value":d=>t[e.key]=d,placeholder:e.placeholder},null,8,["value","onUpdate:value","placeholder"])):y("",!0),e.type==="number"?(i(),_(j,{key:1,value:t[e.key],"onUpdate:value":d=>t[e.key]=d,min:e.min,max:e.max,style:{width:"100%"}},null,8,["value","onUpdate:value","min","max"])):y("",!0),e.type==="boolean"?(i(),f("div",K,[l(M,{checked:t[e.key],"onUpdate:checked":d=>t[e.key]=d},null,8,["checked","onUpdate:checked"])])):y("",!0),e.type==="select"?(i(),_(P,{key:3,value:t[e.key],"onUpdate:value":d=>t[e.key]=d,options:e.options},null,8,["value","onUpdate:value","options"])):y("",!0),e.note?(i(),f("div",ee,S(e.note),1)):y("",!0)]),_:2},1032,["label","required"]))),128))]),_:1}))]),_:1},8,["open","title"])):y("",!0)]),_:1})}}};export{ae as default}; +import{c as l,I as q,j as I,r as x,k as D,o as F,l as T,b as _,d as i,w as s,i as y,e as c,f as v,u as g,t as S,S as L,g as h,h as f,m as G,F as J}from"./index-N039yHLa.js";var Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"};function w(p){for(var n=1;n{await Promise.all([n.fetchAdaptersMeta(),n.fetchAdapterConfig()])});const O=T(()=>n.adaptersMeta),C=m=>{o.value=m;const r=n.adapterConfig[m.id]||{};Object.keys(t).forEach(u=>delete t[u]),m.configSchema&&m.configSchema.forEach(u=>{r[u.key]!==void 0?t[u.key]=r[u.key]:t[u.key]=u.default}),a.value=!0},V=async()=>{if(!o.value)return;const m={[o.value.id]:{...t}};await n.saveAdapterConfig(m)&&(a.value=!1)};return(m,r)=>{const u=c("a-button"),b=c("a-card"),z=c("a-list-item"),A=c("a-list"),U=c("a-empty"),H=c("a-input"),j=c("a-input-number"),M=c("a-switch"),P=c("a-select"),B=c("a-form-item"),E=c("a-form"),N=c("a-drawer"),$=c("a-layout");return i(),_($,{style:{background:"transparent"}},{default:s(()=>[l(b,{title:"适配器管理",bordered:!1},{extra:s(()=>[l(u,{type:"link",onClick:g(n).fetchAdaptersMeta},{default:s(()=>[...r[2]||(r[2]=[h("刷新列表",-1)])]),_:1},8,["onClick"])]),default:s(()=>[l(A,{grid:{gutter:16,xs:1,sm:2,md:3,lg:3,xl:4,xxl:4},"data-source":O.value},{renderItem:s(({item:e})=>[l(z,null,{default:s(()=>[l(b,{hoverable:"",onClick:d=>C(e),bodyStyle:{padding:"16px"}},{default:s(()=>[v("div",W,[v("div",X,[l(g(k),{style:{"font-size":"20px",color:"#1890ff","margin-right":"12px"}}),v("span",Y,S(e.id),1)]),l(g(L),{style:{"font-size":"16px",color:"#8c8c8c"}})])]),_:2},1032,["onClick"])]),_:2},1024)]),_:1},8,["data-source"])]),_:1}),o.value?(i(),_(N,{key:0,open:a.value,"onUpdate:open":r[1]||(r[1]=e=>a.value=e),title:`配置适配器 - ${o.value.name}`,width:"500",placement:"right"},{footer:s(()=>[v("div",te,[l(u,{style:{"margin-right":"8px"},onClick:r[0]||(r[0]=e=>a.value=!1)},{default:s(()=>[...r[3]||(r[3]=[h("取消",-1)])]),_:1}),l(u,{type:"primary",onClick:V},{default:s(()=>[...r[4]||(r[4]=[h("保存配置",-1)])]),_:1})])]),default:s(()=>[!o.value.configSchema||o.value.configSchema.length===0?(i(),f("div",Z,[l(U,{description:"该适配器没有可配置项"})])):(i(),_(E,{key:1,layout:"vertical"},{default:s(()=>[(i(!0),f(J,null,G(o.value.configSchema,e=>(i(),_(B,{key:e.key,label:e.label,required:e.required},{default:s(()=>[e.type==="string"?(i(),_(H,{key:0,value:t[e.key],"onUpdate:value":d=>t[e.key]=d,placeholder:e.placeholder},null,8,["value","onUpdate:value","placeholder"])):y("",!0),e.type==="number"?(i(),_(j,{key:1,value:t[e.key],"onUpdate:value":d=>t[e.key]=d,min:e.min,max:e.max,style:{width:"100%"}},null,8,["value","onUpdate:value","min","max"])):y("",!0),e.type==="boolean"?(i(),f("div",K,[l(M,{checked:t[e.key],"onUpdate:checked":d=>t[e.key]=d},null,8,["checked","onUpdate:checked"])])):y("",!0),e.type==="select"?(i(),_(P,{key:3,value:t[e.key],"onUpdate:value":d=>t[e.key]=d,options:e.options},null,8,["value","onUpdate:value","options"])):y("",!0),e.note?(i(),f("div",ee,S(e.note),1)):y("",!0)]),_:2},1032,["label","required"]))),128))]),_:1}))]),_:1},8,["open","title"])):y("",!0)]),_:1})}}};export{ae as default}; diff --git a/webui/assets/browser-CMZHE2mN.js b/webui/dist/assets/browser-CZogeus2.js similarity index 98% rename from webui/assets/browser-CMZHE2mN.js rename to webui/dist/assets/browser-CZogeus2.js index 6b2e5a5..f7d22ff 100644 --- a/webui/assets/browser-CMZHE2mN.js +++ b/webui/dist/assets/browser-CZogeus2.js @@ -1 +1 @@ -import{j as T,k as A,o as S,b as g,d,w as a,c as s,f as e,e as l,g as i,t as _,h as b,i as y}from"./index-CdkAYAR1.js";const B={style:{"margin-bottom":"8px"}},H={style:{"margin-bottom":"8px"}},N={style:{"margin-left":"8px"}},V={style:{"margin-top":"16px"}},z={style:{"margin-bottom":"16px"}},j={style:{"margin-left":"8px"}},D={key:0,style:{"margin-bottom":"16px"}},K={style:{"margin-bottom":"16px"}},L={style:{"margin-bottom":"16px"}},M={key:2,style:{"margin-bottom":"16px"}},O={style:{"margin-left":"8px"}},W={style:{"margin-bottom":"16px"}},q={style:{"margin-bottom":"16px"}},F={style:{display:"flex","justify-content":"flex-end","margin-top":"24px"}},J={__name:"browser",setup(G){const x=T(),t=A({path:"",headless:!1,proxyEnable:!1,proxyType:"http",proxyHost:"127.0.0.1",proxyPort:7890,proxyAuth:!1,proxyUser:"",proxyPasswd:""});S(async()=>{await x.fetchBrowserConfig();const p=x.browserConfig||{};t.path=p.path||"",t.headless=p.headless||!1,p.proxy&&(t.proxyEnable=p.proxy.enable||!1,t.proxyType=p.proxy.type||"http",t.proxyHost=p.proxy.host||"",t.proxyPort=p.proxy.port||7890,t.proxyAuth=p.proxy.auth||!1,t.proxyUser=p.proxy.username||"",t.proxyPasswd=p.proxy.password||"")});const v=async()=>{const p={path:t.path,headless:t.headless,proxy:{enable:t.proxyEnable,type:t.proxyType,host:t.proxyHost,port:t.proxyPort,auth:t.proxyAuth,username:t.proxyUser,password:t.proxyPasswd}};await x.saveBrowserConfig(p)};return(p,o)=>{const u=l("a-input"),r=l("a-col"),m=l("a-switch"),f=l("a-row"),c=l("a-segmented"),h=l("a-input-number"),w=l("a-input-password"),k=l("a-collapse-panel"),U=l("a-collapse"),E=l("a-button"),P=l("a-card"),C=l("a-layout");return d(),g(C,{style:{background:"transparent"}},{default:a(()=>[s(P,{title:"浏览器设置",bordered:!1,style:{width:"100%"}},{default:a(()=>[s(f,{gutter:[16,16]},{default:a(()=>[s(r,{xs:24,md:24},{default:a(()=>[e("div",B,[o[9]||(o[9]=e("div",{style:{"font-weight":"600","margin-bottom":"4px"}},"浏览器可执行文件路径",-1)),o[10]||(o[10]=e("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"8px"}},[i(" 留空则使用 Camoufox 默认下载路径"),e("br"),i(" Windows示例: C:\\camoufox\\camoufox.exe"),e("br"),i(" Linux示例: /opt/camoufox/camoufox ")],-1)),s(u,{value:t.path,"onUpdate:value":o[0]||(o[0]=n=>t.path=n),placeholder:"留空使用默认路径"},null,8,["value"])])]),_:1}),s(r,{xs:24,md:12},{default:a(()=>[e("div",H,[o[11]||(o[11]=e("div",{style:{"font-weight":"600","margin-bottom":"4px"}},"无头模式",-1)),o[12]||(o[12]=e("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"8px"}}," 启用后浏览器将在后台运行,不显示窗口 ",-1)),s(m,{checked:t.headless,"onUpdate:checked":o[1]||(o[1]=n=>t.headless=n)},null,8,["checked"]),e("span",N,_(t.headless?"已启用":"未启用"),1)])]),_:1})]),_:1}),e("div",V,[s(U,null,{default:a(()=>[s(k,{key:"proxy",header:"全局代理设置"},{default:a(()=>[o[19]||(o[19]=e("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"16px"}}," 如果实例没有独立配置代理,将使用此全局代理配置 ",-1)),e("div",z,[s(m,{checked:t.proxyEnable,"onUpdate:checked":o[2]||(o[2]=n=>t.proxyEnable=n)},null,8,["checked"]),e("span",j,_(t.proxyEnable?"已启用全局代理":"未启用全局代理"),1)]),t.proxyEnable?(d(),b("div",D,[o[13]||(o[13]=e("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"代理类型",-1)),s(c,{value:t.proxyType,"onUpdate:value":o[3]||(o[3]=n=>t.proxyType=n),block:"",options:[{label:"HTTP",value:"http"},{label:"SOCKS5",value:"socks5"}]},null,8,["value"])])):y("",!0),t.proxyEnable?(d(),g(f,{key:1,gutter:16},{default:a(()=>[s(r,{xs:24,md:12},{default:a(()=>[e("div",K,[o[14]||(o[14]=e("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"代理主机",-1)),s(u,{value:t.proxyHost,"onUpdate:value":o[4]||(o[4]=n=>t.proxyHost=n),placeholder:"例如: 127.0.0.1"},null,8,["value"])])]),_:1}),s(r,{xs:24,md:12},{default:a(()=>[e("div",L,[o[15]||(o[15]=e("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"代理端口",-1)),s(h,{value:t.proxyPort,"onUpdate:value":o[5]||(o[5]=n=>t.proxyPort=n),min:1,max:65535,style:{width:"100%"},placeholder:"例如: 7890"},null,8,["value"])])]),_:1})]),_:1})):y("",!0),t.proxyEnable?(d(),b("div",M,[o[16]||(o[16]=e("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"代理认证",-1)),s(m,{checked:t.proxyAuth,"onUpdate:checked":o[6]||(o[6]=n=>t.proxyAuth=n)},null,8,["checked"]),e("span",O,_(t.proxyAuth?"需要认证":"无需认证"),1)])):y("",!0),t.proxyEnable&&t.proxyAuth?(d(),g(f,{key:3,gutter:16},{default:a(()=>[s(r,{xs:24,md:12},{default:a(()=>[e("div",W,[o[17]||(o[17]=e("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"用户名",-1)),s(u,{value:t.proxyUser,"onUpdate:value":o[7]||(o[7]=n=>t.proxyUser=n),placeholder:"请输入用户名"},null,8,["value"])])]),_:1}),s(r,{xs:24,md:12},{default:a(()=>[e("div",q,[o[18]||(o[18]=e("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"密码",-1)),s(w,{value:t.proxyPasswd,"onUpdate:value":o[8]||(o[8]=n=>t.proxyPasswd=n),placeholder:"请输入密码"},null,8,["value"])])]),_:1})]),_:1})):y("",!0)]),_:1})]),_:1})]),e("div",F,[s(E,{type:"primary",onClick:v},{default:a(()=>[...o[20]||(o[20]=[i(" 保存设置 ",-1)])]),_:1})])]),_:1})]),_:1})}}};export{J as default}; +import{j as T,k as A,o as S,b as g,d,w as a,c as s,f as e,e as l,g as i,t as _,h as b,i as y}from"./index-N039yHLa.js";const B={style:{"margin-bottom":"8px"}},H={style:{"margin-bottom":"8px"}},N={style:{"margin-left":"8px"}},V={style:{"margin-top":"16px"}},z={style:{"margin-bottom":"16px"}},j={style:{"margin-left":"8px"}},D={key:0,style:{"margin-bottom":"16px"}},K={style:{"margin-bottom":"16px"}},L={style:{"margin-bottom":"16px"}},M={key:2,style:{"margin-bottom":"16px"}},O={style:{"margin-left":"8px"}},W={style:{"margin-bottom":"16px"}},q={style:{"margin-bottom":"16px"}},F={style:{display:"flex","justify-content":"flex-end","margin-top":"24px"}},J={__name:"browser",setup(G){const x=T(),t=A({path:"",headless:!1,proxyEnable:!1,proxyType:"http",proxyHost:"127.0.0.1",proxyPort:7890,proxyAuth:!1,proxyUser:"",proxyPasswd:""});S(async()=>{await x.fetchBrowserConfig();const p=x.browserConfig||{};t.path=p.path||"",t.headless=p.headless||!1,p.proxy&&(t.proxyEnable=p.proxy.enable||!1,t.proxyType=p.proxy.type||"http",t.proxyHost=p.proxy.host||"",t.proxyPort=p.proxy.port||7890,t.proxyAuth=p.proxy.auth||!1,t.proxyUser=p.proxy.username||"",t.proxyPasswd=p.proxy.password||"")});const v=async()=>{const p={path:t.path,headless:t.headless,proxy:{enable:t.proxyEnable,type:t.proxyType,host:t.proxyHost,port:t.proxyPort,auth:t.proxyAuth,username:t.proxyUser,password:t.proxyPasswd}};await x.saveBrowserConfig(p)};return(p,o)=>{const u=l("a-input"),r=l("a-col"),m=l("a-switch"),f=l("a-row"),c=l("a-segmented"),h=l("a-input-number"),w=l("a-input-password"),k=l("a-collapse-panel"),U=l("a-collapse"),E=l("a-button"),P=l("a-card"),C=l("a-layout");return d(),g(C,{style:{background:"transparent"}},{default:a(()=>[s(P,{title:"浏览器设置",bordered:!1,style:{width:"100%"}},{default:a(()=>[s(f,{gutter:[16,16]},{default:a(()=>[s(r,{xs:24,md:24},{default:a(()=>[e("div",B,[o[9]||(o[9]=e("div",{style:{"font-weight":"600","margin-bottom":"4px"}},"浏览器可执行文件路径",-1)),o[10]||(o[10]=e("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"8px"}},[i(" 留空则使用 Camoufox 默认下载路径"),e("br"),i(" Windows示例: C:\\camoufox\\camoufox.exe"),e("br"),i(" Linux示例: /opt/camoufox/camoufox ")],-1)),s(u,{value:t.path,"onUpdate:value":o[0]||(o[0]=n=>t.path=n),placeholder:"留空使用默认路径"},null,8,["value"])])]),_:1}),s(r,{xs:24,md:12},{default:a(()=>[e("div",H,[o[11]||(o[11]=e("div",{style:{"font-weight":"600","margin-bottom":"4px"}},"无头模式",-1)),o[12]||(o[12]=e("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"8px"}}," 启用后浏览器将在后台运行,不显示窗口 ",-1)),s(m,{checked:t.headless,"onUpdate:checked":o[1]||(o[1]=n=>t.headless=n)},null,8,["checked"]),e("span",N,_(t.headless?"已启用":"未启用"),1)])]),_:1})]),_:1}),e("div",V,[s(U,null,{default:a(()=>[s(k,{key:"proxy",header:"全局代理设置"},{default:a(()=>[o[19]||(o[19]=e("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"16px"}}," 如果实例没有独立配置代理,将使用此全局代理配置 ",-1)),e("div",z,[s(m,{checked:t.proxyEnable,"onUpdate:checked":o[2]||(o[2]=n=>t.proxyEnable=n)},null,8,["checked"]),e("span",j,_(t.proxyEnable?"已启用全局代理":"未启用全局代理"),1)]),t.proxyEnable?(d(),b("div",D,[o[13]||(o[13]=e("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"代理类型",-1)),s(c,{value:t.proxyType,"onUpdate:value":o[3]||(o[3]=n=>t.proxyType=n),block:"",options:[{label:"HTTP",value:"http"},{label:"SOCKS5",value:"socks5"}]},null,8,["value"])])):y("",!0),t.proxyEnable?(d(),g(f,{key:1,gutter:16},{default:a(()=>[s(r,{xs:24,md:12},{default:a(()=>[e("div",K,[o[14]||(o[14]=e("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"代理主机",-1)),s(u,{value:t.proxyHost,"onUpdate:value":o[4]||(o[4]=n=>t.proxyHost=n),placeholder:"例如: 127.0.0.1"},null,8,["value"])])]),_:1}),s(r,{xs:24,md:12},{default:a(()=>[e("div",L,[o[15]||(o[15]=e("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"代理端口",-1)),s(h,{value:t.proxyPort,"onUpdate:value":o[5]||(o[5]=n=>t.proxyPort=n),min:1,max:65535,style:{width:"100%"},placeholder:"例如: 7890"},null,8,["value"])])]),_:1})]),_:1})):y("",!0),t.proxyEnable?(d(),b("div",M,[o[16]||(o[16]=e("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"代理认证",-1)),s(m,{checked:t.proxyAuth,"onUpdate:checked":o[6]||(o[6]=n=>t.proxyAuth=n)},null,8,["checked"]),e("span",O,_(t.proxyAuth?"需要认证":"无需认证"),1)])):y("",!0),t.proxyEnable&&t.proxyAuth?(d(),g(f,{key:3,gutter:16},{default:a(()=>[s(r,{xs:24,md:12},{default:a(()=>[e("div",W,[o[17]||(o[17]=e("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"用户名",-1)),s(u,{value:t.proxyUser,"onUpdate:value":o[7]||(o[7]=n=>t.proxyUser=n),placeholder:"请输入用户名"},null,8,["value"])])]),_:1}),s(r,{xs:24,md:12},{default:a(()=>[e("div",q,[o[18]||(o[18]=e("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"密码",-1)),s(w,{value:t.proxyPasswd,"onUpdate:value":o[8]||(o[8]=n=>t.proxyPasswd=n),placeholder:"请输入密码"},null,8,["value"])])]),_:1})]),_:1})):y("",!0)]),_:1})]),_:1})]),e("div",F,[s(E,{type:"primary",onClick:v},{default:a(()=>[...o[20]||(o[20]=[i(" 保存设置 ",-1)])]),_:1})])]),_:1})]),_:1})}}};export{J as default}; diff --git a/webui/dist/assets/cache-DYoxhx9q.js b/webui/dist/assets/cache-DYoxhx9q.js new file mode 100644 index 0000000..4e880f1 --- /dev/null +++ b/webui/dist/assets/cache-DYoxhx9q.js @@ -0,0 +1 @@ +import{u as pe}from"./system-C2wy1aIP.js";import{c as t,I as G,j as me,r as y,p as j,o as ve,b as B,d as x,w as n,f as o,e as i,g as c,u as _,P as R,i as ge,h as D,m as ye,F as _e,t as b,D as I,q as U,s as v,v as be,L as xe,C as he}from"./index-N039yHLa.js";var we={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M521.7 82c-152.5-.4-286.7 78.5-363.4 197.7-3.4 5.3.4 12.3 6.7 12.3h70.3c4.8 0 9.3-2.1 12.3-5.8 7-8.5 14.5-16.7 22.4-24.5 32.6-32.5 70.5-58.1 112.7-75.9 43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 32.6 32.5 58.1 70.4 76 112.5C865.7 417.8 875 464.1 875 512c0 47.9-9.4 94.2-27.8 137.8-17.8 42.1-43.4 80-76 112.5s-70.5 58.1-112.7 75.9A352.8 352.8 0 01520.6 866c-47.9 0-94.3-9.4-137.9-27.8A353.84 353.84 0 01270 762.3c-7.9-7.9-15.3-16.1-22.4-24.5-3-3.7-7.6-5.8-12.3-5.8H165c-6.3 0-10.2 7-6.7 12.3C234.9 863.2 368.5 942 520.6 942c236.2 0 428-190.1 430.4-425.6C953.4 277.1 761.3 82.6 521.7 82zM395.02 624v-76h-314c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h314v-76c0-6.7 7.8-10.5 13-6.3l141.9 112a8 8 0 010 12.6l-141.9 112c-5.2 4.1-13 .4-13-6.3z"}}]},name:"login",theme:"outlined"};function q(u){for(var a=1;a{try{const s=await fetch("/admin/config/instances",{headers:l.getHeaders()});if(s.ok){const e=await s.json(),m=[];for(const z of e)for(const M of z.workers||[])m.push({name:M.name,instance:z.name});$.value=m}}catch(s){console.error("获取 Workers 列表失败",s)}},S=(s={})=>{h.value=s,C.value=!0},X=()=>{C.value=!1,Y(h.value)};ve(()=>{Q()});const L=s=>new Promise(e=>setTimeout(e,s)),Y=async(s={})=>{O.value=!0,f.value=!0,d.value=0,g.value[0].status="process",await L(500),g.value[0].status="finish",d.value=1,g.value[1].status="process";try{await a.restartService(s),g.value[1].status="finish",d.value=2}catch{g.value[1].status="error",v.error("无法连接到服务器");return}g.value[2].status="process",await L(3e3);let e=20;for(;e>0;){try{if(await a.fetchStatus(),a.status)break}catch{}await L(2e3),e--}g.value[2].status="finish",d.value=3,g.value[3].status="finish",v.success("服务重启成功"),setTimeout(()=>{O.value=!1,f.value=!1,g.value.forEach(m=>m.status="wait"),d.value=0},1500)},Z=async()=>{try{await a.stopService()&&v.success("服务已停止")}catch(s){v.error("停止服务失败: "+s.message)}},K=async()=>{try{(await fetch("/admin/cache/clear",{method:"POST",headers:l.getHeaders()})).ok?v.success("缓存文件夹已清理"):v.error("清理失败")}catch(s){v.error("请求失败: "+s.message)}},T=async()=>{p.value=[],k.value=!0;try{const s=await fetch("/admin/data-folders",{headers:l.getHeaders()});s.ok&&(H.value=await s.json())}catch{v.error("获取文件夹列表失败")}},ee=(s,e)=>{e?p.value.includes(s)||p.value.push(s):p.value=p.value.filter(m=>m!==s)},te=async()=>{if(p.value.length===0){v.warning("请先选择要删除的文件夹");return}try{(await fetch("/admin/data-folders/delete",{method:"POST",headers:l.getHeaders(),body:JSON.stringify({folders:p.value})})).ok?(v.success(`已删除 ${p.value.length} 个实例数据文件夹`),await T()):v.error("删除失败")}catch{v.error("删除请求失败")}};return(s,e)=>{const m=i("a-menu-item"),z=i("a-menu-divider"),M=i("a-sub-menu"),ne=i("a-menu"),oe=i("a-dropdown-button"),w=i("a-button"),F=i("a-popconfirm"),se=i("a-space"),P=i("a-card"),W=i("a-modal"),ae=i("a-steps"),A=i("a-col"),le=i("a-row"),re=i("a-checkbox"),ie=i("a-list-item-meta"),ue=i("a-list-item"),de=i("a-list"),ce=i("a-drawer"),fe=i("a-layout");return x(),B(fe,{style:{background:"transparent"}},{default:n(()=>[t(P,{title:"项目管理",bordered:!1,style:{width:"100%","margin-bottom":"10px"}},{default:n(()=>[o("div",Se,[e[12]||(e[12]=o("div",{style:{display:"flex","align-items":"center"}},[o("div",{style:{"margin-right":"16px"}},[o("div",{style:{"font-weight":"600","margin-bottom":"4px"}},"系统服务控制"),o("div",{style:{"font-size":"12px",color:"#8c8c8c"}}," 控制后端服务的运行状态 (重启或停止) ")])],-1)),o("div",null,[t(se,null,{default:n(()=>[t(oe,{type:"primary",size:"large",onClick:e[2]||(e[2]=r=>S())},{overlay:n(()=>[t(ne,null,{default:n(()=>[t(m,{key:"normal",onClick:e[0]||(e[0]=r=>S())},{default:n(()=>[t(_(R)),e[7]||(e[7]=c(" 普通重启 ",-1))]),_:1}),t(z),t(m,{key:"login",onClick:e[1]||(e[1]=r=>S({loginMode:!0}))},{default:n(()=>[t(_(N)),e[8]||(e[8]=c(" 登录模式重启 ",-1))]),_:1}),$.value.length>1?(x(),B(M,{key:"login-worker",title:"指定 Worker 登录"},{icon:n(()=>[t(_(N))]),default:n(()=>[(x(!0),D(_e,null,ye($.value,r=>(x(),B(m,{key:r.name,onClick:E=>S({loginMode:!0,workerName:r.name})},{default:n(()=>[c(b(r.name),1)]),_:2},1032,["onClick"]))),128))]),_:1})):ge("",!0)]),_:1})]),default:n(()=>[t(_(R)),e[9]||(e[9]=c(" 重启 ",-1))]),_:1}),t(F,{"ok-text":"确定","cancel-text":"取消",onConfirm:Z,placement:"topRight"},{title:n(()=>[...e[10]||(e[10]=[o("div",{style:{width:"240px"}},[o("div",{style:{"font-weight":"500","margin-bottom":"4px"}},"确定要停止服务吗?"),o("div",{style:{"font-size":"12px",color:"#f5222d"}},"停止后服务将完全终止,需要手动重新启动。")],-1)])]),default:n(()=>[t(w,{type:"primary",danger:"",size:"large"},{icon:n(()=>[t(_(V))]),default:n(()=>[e[11]||(e[11]=c(" 停止 ",-1))]),_:1})]),_:1})]),_:1})])])]),_:1}),t(W,{open:C.value,"onUpdate:open":e[3]||(e[3]=r=>C.value=r),title:"确认重启",onOk:X,"ok-text":"确定","cancel-text":"取消",width:400},{default:n(()=>[o("div",ze,[h.value.loginMode?h.value.workerName?(x(),D("p",je,[e[13]||(e[13]=c(" 确定要以",-1)),e[14]||(e[14]=o("b",null,"登录模式",-1)),e[15]||(e[15]=c("重启服务吗?",-1)),e[16]||(e[16]=o("br",null,null,-1)),o("span",De,"仅初始化 Worker: "+b(h.value.workerName),1)])):(x(),D("p",Ne,[...e[17]||(e[17]=[c("确定要以",-1),o("b",null,"登录模式",-1),c("重启服务吗?",-1)])])):(x(),D("p",Pe,"确定要重启服务吗?"))])]),_:1},8,["open"]),t(W,{open:O.value,"onUpdate:open":e[4]||(e[4]=r=>O.value=r),title:"系统服务重启中",footer:null,closable:!1,maskClosable:!1,width:"500px"},{default:n(()=>[o("div",$e,[t(ae,{current:d.value,items:g.value},null,8,["current","items"]),e[18]||(e[18]=o("div",{style:{"text-align":"center","margin-top":"24px",color:"#8c8c8c"}}," 请稍候,系统正在执行重启操作... ",-1))])]),_:1},8,["open"]),t(P,{title:"缓存管理",bordered:!1,style:{width:"100%"}},{default:n(()=>[t(le,{gutter:[16,16]},{default:n(()=>[t(A,{xs:24,md:12},{default:n(()=>[t(P,{style:{height:"100%"},"body-style":{display:"flex",flexDirection:"column",height:"100%"}},{default:n(()=>[o("div",Le,[o("div",Me,[t(_(I),{style:{"font-size":"24px",color:"#1890ff","margin-right":"8px"}}),e[19]||(e[19]=o("div",{style:{"font-weight":"600","font-size":"16px"}},"清理缓存文件夹",-1))]),e[20]||(e[20]=o("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"16px"}},[c(" 清理项目运行过程中可能会遗留的临时缓存文件(如遇到错误时遗留的图片),"),o("br"),c(" 不会影响用户数据和配置"),o("strong",{style:{color:"#ff4d4f"}},"有任务运行时请勿执行")],-1))]),t(F,{title:"确定要清理缓存文件夹吗?","ok-text":"确定","cancel-text":"取消",onConfirm:K},{default:n(()=>[t(w,{type:"primary",block:""},{icon:n(()=>[t(_(I))]),default:n(()=>[e[21]||(e[21]=c(" 清理缓存 ",-1))]),_:1})]),_:1})]),_:1})]),_:1}),t(A,{xs:24,md:12},{default:n(()=>[t(P,{style:{height:"100%"},"body-style":{display:"flex",flexDirection:"column",height:"100%"}},{default:n(()=>[o("div",Fe,[o("div",Be,[t(_(U),{style:{"font-size":"24px",color:"#ff4d4f","margin-right":"8px"}}),e[22]||(e[22]=o("div",{style:{"font-weight":"600","font-size":"16px"}},"删除实例数据文件夹",-1))]),e[23]||(e[23]=o("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"16px"}},[c(" 删除所有浏览器实例的用户数据文件夹,"),o("br"),c(" 包括 Cookie、本地存储等,"),o("strong",{style:{color:"#ff4d4f"}},"请谨慎操作")],-1))]),t(w,{danger:"",block:"",onClick:T},{icon:n(()=>[t(_(U))]),default:n(()=>[e[24]||(e[24]=c(" 管理实例数据 ",-1))]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),t(ce,{open:k.value,"onUpdate:open":e[6]||(e[6]=r=>k.value=r),title:"管理实例数据文件夹",placement:"right",width:"500"},{footer:n(()=>[o("div",He,[o("div",Te," 已选择 "+b(p.value.length)+" 个文件夹 ",1),o("div",null,[t(w,{style:{"margin-right":"8px"},onClick:e[5]||(e[5]=r=>k.value=!1)},{default:n(()=>[...e[26]||(e[26]=[c(" 取消 ",-1)])]),_:1}),t(F,{placement:"topRight","ok-text":"确定删除","cancel-text":"取消",onConfirm:te},{title:n(()=>[o("div",We," 确定要删除选中的 "+b(p.value.length)+" 个文件夹吗? ",1)]),default:n(()=>[t(w,{type:"primary",danger:"",disabled:p.value.length===0},{default:n(()=>[...e[27]||(e[27]=[c(" 删除选中项 ",-1)])]),_:1},8,["disabled"])]),_:1})])])]),default:n(()=>[o("div",Re,[e[25]||(e[25]=o("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"12px"}}," 选择要删除的实例数据文件夹,删除后无法恢复,请谨慎操作 ",-1)),t(de,{"data-source":H.value,bordered:""},{renderItem:n(({item:r})=>[t(ue,null,{default:n(()=>[t(ie,null,{title:n(()=>[t(re,{checked:p.value.includes(r.name),onChange:E=>ee(r.name,E.target.checked)},{default:n(()=>[c(b(r.name),1)]),_:2},1032,["checked","onChange"])]),description:n(()=>[o("div",Ve,[o("div",null,"路径: "+b(r.path),1),o("div",null,"关联实例: "+b(r.instance),1),o("div",null,"大小: "+b(r.size),1)])]),_:2},1024)]),_:2},1024)]),_:1},8,["data-source"])])]),_:1},8,["open"])]),_:1})}}};export{Ie as default}; diff --git a/webui/dist/assets/dash-C1BS1PJi.js b/webui/dist/assets/dash-C1BS1PJi.js new file mode 100644 index 0000000..ba3a13b --- /dev/null +++ b/webui/dist/assets/dash-C1BS1PJi.js @@ -0,0 +1 @@ +import{u as X}from"./system-C2wy1aIP.js";import{c as r,I as O,r as z,o as J,a as R,b,d as h,w as o,e as d,f as c,g as p,u as i,t as m,h as W,i as C,E as Y,C as Z,j as K}from"./index-N039yHLa.js";import{D as tt}from"./DesktopOutlined-DmRiuvy2.js";var et={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 512.3v-.3c0-229.8-186.2-416-416-416S96 282.2 96 512v.4c0 229.8 186.2 416 416 416s416-186.2 416-416v-.3.2zm-6.7-74.6l.6 3.3-.6-3.3zM676.7 638.2c53.5-82.2 52.5-189.4-11.1-263.7l162.4-8.4c20.5 44.4 32 93.8 32 145.9 0 185.2-144.6 336.6-327.1 347.4l143.8-221.2zM512 652.3c-77.5 0-140.2-62.7-140.2-140.2 0-77.7 62.7-140.2 140.2-140.2S652.2 434.5 652.2 512 589.5 652.3 512 652.3zm369.2-331.7l-3-5.7 3 5.7zM512 164c121.3 0 228.2 62.1 290.4 156.2l-263.6-13.9c-97.5-5.7-190.2 49.2-222.3 141.1L227.8 311c63.1-88.9 166.9-147 284.2-147zM102.5 585.8c26 145 127.1 264 261.6 315.1C229.6 850 128.5 731 102.5 585.8zM164 512c0-55.9 13.2-108.7 36.6-155.5l119.7 235.4c44.1 86.7 137.4 139.7 234 121.6l-74 145.1C302.9 842.5 164 693.5 164 512zm324.7 415.4c4 .2 8 .4 12 .5-4-.2-8-.3-12-.5z"}}]},name:"chrome",theme:"outlined"};function N(n){for(var t=1;t{const u=K();try{const l=await fetch("/admin/queue",{headers:u.getHeaders()});if(l.ok){const f=await l.json();s.value={processing:f.processing||0,waiting:f.waiting||0,total:f.total||0};const g=(f.processingTasks||[]).map(v=>({...v,status:"processing"})),S=(f.waitingTasks||[]).map(v=>({...v,status:"waiting"}));e.value=[...g,...S]}}catch(l){console.error("Fetch queue failed",l)}},B=async()=>{await Promise.all([t.fetchStatus(),t.fetchStats(),H()])},T=u=>{const l=Math.floor(u/86400),f=Math.floor(u%(3600*24)/3600),g=Math.floor(u%3600/60);return l>0?`${l}天 ${f}小时 ${g}分`:f>0?`${f}小时 ${g}分`:`${g}分`},U=u=>!u||u===0?"0 MB":u>1024?parseFloat((u/1024).toFixed(2))+" GB":parseFloat(Number(u).toFixed(2))+" MB",k=u=>u<50?"#52c41a":u<80?"#faad14":"#f5222d",D=u=>({normal:{color:"green",text:"正常模式 (Normal)"},headless:{color:"blue",text:"无头模式 (Headless)"},xvfb:{color:"purple",text:"虚拟显示 (Xvfb)"}})[u]||{color:"red",text:"未运行"};return J(()=>{B(),a.value=setInterval(B,5e3)}),R(()=>{a.value&&clearInterval(a.value)}),(u,l)=>{const f=d("a-tag"),g=d("a-progress"),S=d("a-space"),v=d("a-card"),_=d("a-col"),w=d("a-statistic"),P=d("a-row"),I=d("a-list-item-meta"),q=d("a-list-item"),G=d("a-list"),Q=d("a-layout");return h(),b(Q,{style:{width:"100%",background:"transparent"}},{default:o(()=>[r(P,{gutter:[16,16],style:{"margin-bottom":"24px"}},{default:o(()=>[r(_,{xs:24,md:12},{default:o(()=>[r(v,{title:"系统状态",bordered:!1,style:{height:"100%"}},{default:o(()=>[r(S,{direction:"vertical",style:{width:"100%"},size:"middle"},{default:o(()=>[c("div",ft,[c("span",null,[r(i(tt)),l[0]||(l[0]=p(" 系统版本: ",-1))]),c("b",null,m(i(t).systemVersion),1)]),c("div",dt,[c("span",null,[r(i(M)),l[1]||(l[1]=p(" 运行时间: ",-1))]),c("b",null,m(T(i(t).uptime)),1)]),c("div",pt,[c("span",null,[r(i(j)),l[2]||(l[2]=p(" 状态: ",-1))]),r(f,{color:D(i(t).status).color},{default:o(()=>[p(m(D(i(t).status).text),1)]),_:1},8,["color"])]),c("div",null,[c("div",mt,[c("span",null,[r(i($)),l[3]||(l[3]=p(" CPU 使用率: ",-1))]),c("span",null,m(i(t).cpuUsage)+"%",1)]),r(g,{percent:i(t).cpuUsage,"stroke-color":k(i(t).cpuUsage),"show-info":!1},null,8,["percent","stroke-color"])]),c("div",null,[c("div",gt,[c("span",null,[r(i(A)),l[4]||(l[4]=p(" 内存使用: ",-1))]),c("span",null,m(U(i(t).memoryUsage.used))+" / "+m(U(i(t).memoryUsage.total)),1)]),r(g,{percent:Math.round(i(t).memoryUsage.used/i(t).memoryUsage.total*100)||0,"stroke-color":k(i(t).memoryUsage.used/i(t).memoryUsage.total*100),"show-info":!1},null,8,["percent","stroke-color"])])]),_:1})]),_:1})]),_:1}),r(_,{xs:24,md:12},{default:o(()=>[r(v,{title:"业务统计",bordered:!1,style:{height:"100%"}},{default:o(()=>[r(P,{gutter:16,style:{"margin-bottom":"24px"}},{default:o(()=>[r(_,{span:12},{default:o(()=>[r(w,{title:"窗口数量",value:i(t).stats.workers||0},{suffix:o(()=>[...l[5]||(l[5]=[c("span",{style:{"font-size":"14px",color:"#8c8c8c"}},"个",-1)])]),_:1},8,["value"])]),_:1}),r(_,{span:12},{default:o(()=>[r(w,{title:"实例数量",value:i(t).stats.instances||0},{suffix:o(()=>[...l[6]||(l[6]=[c("span",{style:{"font-size":"14px",color:"#8c8c8c"}},"个",-1)])]),_:1},8,["value"])]),_:1})]),_:1}),r(P,{gutter:16},{default:o(()=>[r(_,{span:12},{default:o(()=>[r(w,{title:"正在进行",value:s.value.processing},{suffix:o(()=>[c("span",vt,"/ "+m(s.value.total),1)]),_:1},8,["value"])]),_:1}),r(_,{span:12},{default:o(()=>[r(w,{title:"等待排队",value:s.value.waiting},{suffix:o(()=>[c("span",yt,"/ "+m(s.value.total),1)]),_:1},8,["value"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),r(v,{title:"任务队列实时监控",bordered:!1,style:{width:"100%"},bodyStyle:{padding:"0 24px"}},{extra:o(()=>[c("div",_t,[r(i(x),{spin:!0,style:{"margin-right":"4px"}}),l[7]||(l[7]=p(" 实时刷新中 ",-1))])]),default:o(()=>[r(G,{"item-layout":"horizontal","data-source":e.value},{renderItem:o(({item:y})=>[r(q,null,{default:o(()=>[r(I,{description:`ID: ${y.id}`},{title:o(()=>[c("span",ht,m(y.model),1),y.worker?(h(),b(f,{key:0,color:"blue"},{default:o(()=>[p(m(y.worker),1)]),_:2},1024)):C("",!0)]),_:2},1032,["description"]),c("div",null,[y.status==="processing"?(h(),b(f,{key:0,color:"processing"},{icon:o(()=>[r(i(x),{spin:!0})]),default:o(()=>[l[8]||(l[8]=p(" 进行中 ",-1))]),_:1})):y.status==="waiting"?(h(),b(f,{key:1,color:"warning"},{icon:o(()=>[r(i(Y))]),default:o(()=>[l[9]||(l[9]=p(" 等待中 ",-1))]),_:1})):y.status==="success"?(h(),b(f,{key:2,color:"success"},{icon:o(()=>[r(i(Z))]),default:o(()=>[l[10]||(l[10]=p(" 已完成 ",-1))]),_:1})):C("",!0)])]),_:2},1024)]),default:o(()=>[e.value.length===0?(h(),W("div",bt," 暂无任务 ")):C("",!0)]),_:1},8,["data-source"])]),_:1})]),_:1})}}};export{St as default}; diff --git a/webui/dist/assets/display-CU0V30l_.js b/webui/dist/assets/display-CU0V30l_.js new file mode 100644 index 0000000..b47b8cc --- /dev/null +++ b/webui/dist/assets/display-CU0V30l_.js @@ -0,0 +1 @@ +import{c,I as P,j as q,r as m,o as T,a as U,b as f,d as a,w as s,h as g,f as i,e as y,u as v,g as d,i as M,t as z,R as G,n as J}from"./index-N039yHLa.js";import{D as C}from"./DesktopOutlined-DmRiuvy2.js";var Q={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M326 664H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h174v176c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V696c0-17.7-14.3-32-32-32zm16-576h-48c-8.8 0-16 7.2-16 16v176H104c-8.8 0-16 7.2-16 16v48c0 8.8 7.2 16 16 16h222c17.7 0 32-14.3 32-32V104c0-8.8-7.2-16-16-16zm578 576H698c-17.7 0-32 14.3-32 32v224c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16V744h174c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16zm0-384H746V104c0-8.8-7.2-16-16-16h-48c-8.8 0-16 7.2-16 16v224c0 17.7 14.3 32 32 32h222c8.8 0 16-7.2 16-16v-48c0-8.8-7.2-16-16-16z"}}]},name:"compress",theme:"outlined"};function $(n){for(var e=1;eimport("./rfb-BW3Yvshj.js"),[])).default);const r=`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/admin/vnc?token=${e.token}`;u=new k(x.value,r,{wsProtocols:["binary"]}),u.scaleViewport=!0,u.clipViewport=!1,u.resizeSession=!1,u.addEventListener("connect",()=>{o.value="connected"}),u.addEventListener("disconnect",_=>{o.value="disconnected",_.detail.clean===!1&&(b.value="连接意外断开"),u=null}),u.addEventListener("credentialsrequired",()=>{u.sendCredentials({password:""})})}catch(p){o.value="error",b.value=p.message||"连接失败"}}}function N(){u&&(u.disconnect(),u=null),o.value="disconnected"}function F(){x.value&&(document.fullscreenElement?(document.exitFullscreen(),h.value=!1):(x.value.requestFullscreen(),h.value=!0))}function D(){h.value=!!document.fullscreenElement}return T(async()=>{await j(),document.addEventListener("fullscreenchange",D)}),U(()=>{N(),document.removeEventListener("fullscreenchange",D)}),(p,r)=>{const _=y("a-spin"),O=y("a-tag"),w=y("a-button"),A=y("a-space"),R=y("a-card"),I=y("a-layout");return a(),f(I,{style:{background:"transparent"}},{default:s(()=>[c(R,{title:"虚拟显示器",bordered:!1,style:{height:"100%"}},{default:s(()=>[t.value?(a(),g("div",ee,[c(_,{size:"large"}),r[0]||(r[0]=i("div",{style:{"margin-top":"16px",color:"#8c8c8c"}},"正在检查 VNC 状态...",-1))])):l.value?.xvfbMode?l.value?.enabled?(a(),g("div",oe,[i("div",re,[i("div",null,[o.value==="connected"?(a(),f(O,{key:0,color:"success"},{default:s(()=>[...r[5]||(r[5]=[d("已连接",-1)])]),_:1})):o.value==="connecting"?(a(),f(O,{key:1,color:"processing"},{default:s(()=>[...r[6]||(r[6]=[d("连接中...",-1)])]),_:1})):o.value==="error"?(a(),f(O,{key:2,color:"error"},{default:s(()=>[...r[7]||(r[7]=[d("连接错误",-1)])]),_:1})):(a(),f(O,{key:3,color:"default"},{default:s(()=>[...r[8]||(r[8]=[d("未连接",-1)])]),_:1})),b.value?(a(),g("span",le,z(b.value),1)):M("",!0)]),c(A,null,{default:s(()=>[o.value!=="connected"?(a(),f(w,{key:0,type:"primary",onClick:B,loading:o.value==="connecting"},{icon:s(()=>[c(v(C))]),default:s(()=>[r[9]||(r[9]=d(" 连接 ",-1))]),_:1},8,["loading"])):(a(),f(w,{key:1,danger:"",onClick:N},{icon:s(()=>[c(v(V))]),default:s(()=>[r[10]||(r[10]=d(" 断开 ",-1))]),_:1})),c(w,{onClick:F,disabled:o.value!=="connected"},{icon:s(()=>[h.value?(a(),f(v(E),{key:0})):(a(),f(v(S),{key:1}))]),_:1},8,["disabled"]),c(w,{onClick:j},{icon:s(()=>[c(v(G))]),_:1})]),_:1})]),i("div",{ref_key:"vncContainer",ref:x,style:{width:"100%","aspect-ratio":"16/9","min-height":"400px","max-height":"70vh",background:"#000","border-radius":"8px",overflow:"hidden"}},[o.value==="disconnected"?(a(),g("div",ae,[i("div",ce,[c(v(C),{style:{"font-size":"48px",color:"#434343"}}),r[11]||(r[11]=i("div",{style:{"margin-top":"16px"}},'点击"连接"按钮查看远程显示器',-1))])])):M("",!0)],512),i("div",se," 显示器: "+z(l.value.display)+" | VNC 端口: "+z(l.value.port),1)])):(a(),g("div",ne,[c(v(C),{style:{"font-size":"64px",color:"#bfbfbf"}}),r[3]||(r[3]=i("div",{style:{"margin-top":"16px","font-size":"16px",color:"#595959"}},"VNC 服务未启动",-1)),r[4]||(r[4]=i("div",{style:{"margin-top":"8px",color:"#8c8c8c"}},[d(" 请确保启动时包含 "),i("code",null,"-vnc"),d(" 参数,并已安装 x11vnc ")],-1))])):(a(),g("div",te,[c(v(V),{style:{"font-size":"64px",color:"#bfbfbf"}}),r[1]||(r[1]=i("div",{style:{"margin-top":"16px","font-size":"16px",color:"#595959"}},"程序未使用虚拟显示器运行",-1)),r[2]||(r[2]=i("div",{style:{"margin-top":"8px",color:"#8c8c8c"}},[d(" VNC 远程显示功能仅在 Linux 环境下使用 "),i("code",null,"-xvfb -vnc"),d(" 参数启动时可用 ")],-1))]))]),_:1})]),_:1})}}};export{de as default}; diff --git a/webui/assets/index-BxnGFPqi.css b/webui/dist/assets/index-CAMDRWk5.css similarity index 93% rename from webui/assets/index-BxnGFPqi.css rename to webui/dist/assets/index-CAMDRWk5.css index 76db29c..0252aa3 100644 --- a/webui/assets/index-BxnGFPqi.css +++ b/webui/dist/assets/index-CAMDRWk5.css @@ -1 +1 @@ -[data-v-7bbb1a7b]::-webkit-scrollbar{width:6px;height:6px}[data-v-7bbb1a7b]::-webkit-scrollbar-thumb{background:#ccc;border-radius:3px}[data-v-7bbb1a7b]::-webkit-scrollbar-track{background:#f1f1f1}html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6} +[data-v-9531bced]::-webkit-scrollbar{width:6px;height:6px}[data-v-9531bced]::-webkit-scrollbar-thumb{background:#ccc;border-radius:3px}[data-v-9531bced]::-webkit-scrollbar-track{background:#f1f1f1}html,body{width:100%;height:100%}input::-ms-clear,input::-ms-reveal{display:none}*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:rgba(0,0,0,0)}@-ms-viewport{width:device-width}body{margin:0}[tabindex="-1"]:focus{outline:none}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5em;font-weight:500}p{margin-top:0;margin-bottom:1em}abbr[title],abbr[data-original-title]{-webkit-text-decoration:underline dotted;text-decoration:underline;text-decoration:underline dotted;border-bottom:0;cursor:help}address{margin-bottom:1em;font-style:normal;line-height:inherit}input[type=text],input[type=password],input[type=number],textarea{-webkit-appearance:none}ol,ul,dl{margin-top:0;margin-bottom:1em}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:500}dd{margin-bottom:.5em;margin-left:0}blockquote{margin:0 0 1em}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}pre,code,kbd,samp{font-size:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}pre{margin-top:0;margin-bottom:1em;overflow:auto}figure{margin:0 0 1em}img{vertical-align:middle;border-style:none}a,area,button,[role=button],input:not([type=range]),label,select,summary,textarea{touch-action:manipulation}table{border-collapse:collapse}caption{padding-top:.75em;padding-bottom:.3em;text-align:left;caption-side:bottom}input,button,select,optgroup,textarea{margin:0;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;margin:0;padding:0;border:0}legend{display:block;width:100%;max-width:100%;margin-bottom:.5em;padding:0;color:inherit;font-size:1.5em;line-height:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6} diff --git a/webui/assets/index-CdkAYAR1.js b/webui/dist/assets/index-N039yHLa.js similarity index 95% rename from webui/assets/index-CdkAYAR1.js rename to webui/dist/assets/index-N039yHLa.js index 57e4177..3fcd0c9 100644 --- a/webui/assets/index-CdkAYAR1.js +++ b/webui/dist/assets/index-N039yHLa.js @@ -1,6 +1,6 @@ -const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dash-BUMZuoA4.js","assets/system-CD4DQKFk.js","assets/server-Bl64bbT7.js","assets/server-D1vV5anY.css","assets/cache-Cy4mgfN4.js"])))=>i.map(i=>d[i]); -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&o(l)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();const WE="modulepreload",KE=function(e){return"/"+e},F1={},Fi=function(t,n,o){let r=Promise.resolve();if(n&&n.length>0){let s=function(u){return Promise.all(u.map(c=>Promise.resolve(c).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),a=l?.nonce||l?.getAttribute("nonce");r=s(n.map(u=>{if(u=KE(u),u in F1)return;F1[u]=!0;const c=u.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${d}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":WE,c||(f.as="script"),f.crossOrigin="",f.href=u,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((g,v)=>{f.addEventListener("load",g),f.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(l){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=l,window.dispatchEvent(a),!a.defaultPrevented)throw l}return r.then(l=>{for(const a of l||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};function qm(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Tt={},aa=[],dr=()=>{},B4=()=>!1,zf=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Zm=e=>e.startsWith("onUpdate:"),sn=Object.assign,Qm=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},GE=Object.prototype.hasOwnProperty,Ot=(e,t)=>GE.call(e,t),rt=Array.isArray,sa=e=>Hf(e)==="[object Map]",k4=e=>Hf(e)==="[object Set]",at=e=>typeof e=="function",Wt=e=>typeof e=="string",Ti=e=>typeof e=="symbol",Mt=e=>e!==null&&typeof e=="object",F4=e=>(Mt(e)||at(e))&&at(e.then)&&at(e.catch),L4=Object.prototype.toString,Hf=e=>L4.call(e),XE=e=>Hf(e).slice(8,-1),z4=e=>Hf(e)==="[object Object]",jf=e=>Wt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ss=qm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Vf=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},UE=/-\w/g,Eo=Vf(e=>e.replace(UE,t=>t.slice(1).toUpperCase())),YE=/\B([A-Z])/g,Pl=Vf(e=>e.replace(YE,"-$1").toLowerCase()),Wf=Vf(e=>e.charAt(0).toUpperCase()+e.slice(1)),Pg=Vf(e=>e?`on${Wf(e)}`:""),Si=(e,t)=>!Object.is(e,t),Ig=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},qE=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ZE=e=>{const t=Wt(e)?Number(e):NaN;return isNaN(t)?e:t};let L1;const Kf=()=>L1||(L1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Gf(e){if(rt(e)){const t={};for(let n=0;n{if(n){const o=n.split(JE);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Jm(e){let t="";if(Wt(e))t=e;else if(rt(e))for(let n=0;n!!(e&&e.__v_isRef===!0),rM=e=>Wt(e)?e:e==null?"":rt(e)||Mt(e)&&(e.toString===L4||!at(e.toString))?V4(e)?rM(e.value):JSON.stringify(e,W4,2):String(e),W4=(e,t)=>V4(t)?W4(e,t.value):sa(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],i)=>(n[Tg(o,i)+" =>"]=r,n),{})}:k4(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Tg(n))}:Ti(t)?Tg(t):Mt(t)&&!rt(t)&&!z4(t)?String(t):t,Tg=(e,t="")=>{var n;return Ti(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let xn;class K4{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=xn,!t&&xn&&(this.index=(xn.scopes||(xn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(xn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,o;for(n=0,o=this.effects.length;n0)return;if(Cs){let t=Cs;for(Cs=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;$s;){let t=$s;for($s=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function Z4(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Q4(e){let t,n=e.depsTail,o=n;for(;o;){const r=o.prevDep;o.version===-1?(o===n&&(n=r),o0(o),iM(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=r}e.deps=t,e.depsTail=n}function lv(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(J4(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function J4(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Xs)||(e.globalVersion=Xs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!lv(e))))return;e.flags|=2;const t=e.dep,n=Dt,o=Ho;Dt=e,Ho=!0;try{Z4(e);const r=e.fn(e._value);(t.version===0||Si(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Dt=n,Ho=o,Q4(e),e.flags&=-3}}function o0(e,t=!1){const{dep:n,prevSub:o,nextSub:r}=e;if(o&&(o.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)o0(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function iM(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ho=!0;const e3=[];function zr(){e3.push(Ho),Ho=!1}function Hr(){const e=e3.pop();Ho=e===void 0?!0:e}function z1(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Dt;Dt=void 0;try{t()}finally{Dt=n}}}let Xs=0,lM=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class r0{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Dt||!Ho||Dt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Dt)n=this.activeLink=new lM(Dt,this),Dt.deps?(n.prevDep=Dt.depsTail,Dt.depsTail.nextDep=n,Dt.depsTail=n):Dt.deps=Dt.depsTail=n,t3(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=Dt.depsTail,n.nextDep=void 0,Dt.depsTail.nextDep=n,Dt.depsTail=n,Dt.deps===n&&(Dt.deps=o)}return n}trigger(t){this.version++,Xs++,this.notify(t)}notify(t){t0();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{n0()}}}function t3(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)t3(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ed=new WeakMap,al=Symbol(""),av=Symbol(""),Us=Symbol("");function On(e,t,n){if(Ho&&Dt){let o=Ed.get(e);o||Ed.set(e,o=new Map);let r=o.get(n);r||(o.set(n,r=new r0),r.map=o,r.key=n),r.track()}}function Mr(e,t,n,o,r,i){const l=Ed.get(e);if(!l){Xs++;return}const a=s=>{s&&s.trigger()};if(t0(),t==="clear")l.forEach(a);else{const s=rt(e),u=s&&jf(n);if(s&&n==="length"){const c=Number(o);l.forEach((d,f)=>{(f==="length"||f===Us||!Ti(f)&&f>=c)&&a(d)})}else switch((n!==void 0||l.has(void 0))&&a(l.get(n)),u&&a(l.get(Us)),t){case"add":s?u&&a(l.get("length")):(a(l.get(al)),sa(e)&&a(l.get(av)));break;case"delete":s||(a(l.get(al)),sa(e)&&a(l.get(av)));break;case"set":sa(e)&&a(l.get(al));break}}n0()}function aM(e,t){const n=Ed.get(e);return n&&n.get(t)}function zl(e){const t=Je(e);return t===e?t:(On(t,"iterate",Us),co(e)?t:t.map(Ko))}function Xf(e){return On(e=Je(e),"iterate",Us),e}function si(e,t){return jr(e)?Fr(e)?xa(Ko(t)):xa(t):Ko(t)}const sM={__proto__:null,[Symbol.iterator](){return Mg(this,Symbol.iterator,e=>si(this,e))},concat(...e){return zl(this).concat(...e.map(t=>rt(t)?zl(t):t))},entries(){return Mg(this,"entries",e=>(e[1]=si(this,e[1]),e))},every(e,t){return Sr(this,"every",e,t,void 0,arguments)},filter(e,t){return Sr(this,"filter",e,t,n=>n.map(o=>si(this,o)),arguments)},find(e,t){return Sr(this,"find",e,t,n=>si(this,n),arguments)},findIndex(e,t){return Sr(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Sr(this,"findLast",e,t,n=>si(this,n),arguments)},findLastIndex(e,t){return Sr(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Sr(this,"forEach",e,t,void 0,arguments)},includes(...e){return _g(this,"includes",e)},indexOf(...e){return _g(this,"indexOf",e)},join(e){return zl(this).join(e)},lastIndexOf(...e){return _g(this,"lastIndexOf",e)},map(e,t){return Sr(this,"map",e,t,void 0,arguments)},pop(){return os(this,"pop")},push(...e){return os(this,"push",e)},reduce(e,...t){return H1(this,"reduce",e,t)},reduceRight(e,...t){return H1(this,"reduceRight",e,t)},shift(){return os(this,"shift")},some(e,t){return Sr(this,"some",e,t,void 0,arguments)},splice(...e){return os(this,"splice",e)},toReversed(){return zl(this).toReversed()},toSorted(e){return zl(this).toSorted(e)},toSpliced(...e){return zl(this).toSpliced(...e)},unshift(...e){return os(this,"unshift",e)},values(){return Mg(this,"values",e=>si(this,e))}};function Mg(e,t,n){const o=Xf(e),r=o[t]();return o!==e&&!co(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=n(i.value)),i}),r}const cM=Array.prototype;function Sr(e,t,n,o,r,i){const l=Xf(e),a=l!==e&&!co(e),s=l[t];if(s!==cM[t]){const d=s.apply(e,i);return a?Ko(d):d}let u=n;l!==e&&(a?u=function(d,f){return n.call(this,si(e,d),f,e)}:n.length>2&&(u=function(d,f){return n.call(this,d,f,e)}));const c=s.call(l,u,o);return a&&r?r(c):c}function H1(e,t,n,o){const r=Xf(e);let i=n;return r!==e&&(co(e)?n.length>3&&(i=function(l,a,s){return n.call(this,l,a,s,e)}):i=function(l,a,s){return n.call(this,l,si(e,a),s,e)}),r[t](i,...o)}function _g(e,t,n){const o=Je(e);On(o,"iterate",Us);const r=o[t](...n);return(r===-1||r===!1)&&Uf(n[0])?(n[0]=Je(n[0]),o[t](...n)):r}function os(e,t,n=[]){zr(),t0();const o=Je(e)[t].apply(e,n);return n0(),Hr(),o}const uM=qm("__proto__,__v_isRef,__isVue"),n3=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ti));function dM(e){Ti(e)||(e=String(e));const t=Je(this);return On(t,"has",e),t.hasOwnProperty(e)}class o3{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return o===(r?i?$M:a3:i?l3:i3).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const l=rt(t);if(!r){let s;if(l&&(s=sM[n]))return s;if(n==="hasOwnProperty")return dM}const a=Reflect.get(t,n,kt(t)?t:o);if((Ti(n)?n3.has(n):uM(n))||(r||On(t,"get",n),i))return a;if(kt(a)){const s=l&&jf(n)?a:a.value;return r&&Mt(s)?cv(s):s}return Mt(a)?r?cv(a):ct(a):a}}class r3 extends o3{constructor(t=!1){super(!1,t)}set(t,n,o,r){let i=t[n];const l=rt(t)&&jf(n);if(!this._isShallow){const u=jr(i);if(!co(o)&&!jr(o)&&(i=Je(i),o=Je(o)),!l&&kt(i)&&!kt(o))return u||(i.value=o),!0}const a=l?Number(n)e,Uc=e=>Reflect.getPrototypeOf(e);function vM(e,t,n){return function(...o){const r=this.__v_raw,i=Je(r),l=sa(i),a=e==="entries"||e===Symbol.iterator&&l,s=e==="keys"&&l,u=r[e](...o),c=n?sv:t?xa:Ko;return!t&&On(i,"iterate",s?av:al),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:a?[c(d[0]),c(d[1])]:c(d),done:f}},[Symbol.iterator](){return this}}}}function Yc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function mM(e,t){const n={get(r){const i=this.__v_raw,l=Je(i),a=Je(r);e||(Si(r,a)&&On(l,"get",r),On(l,"get",a));const{has:s}=Uc(l),u=t?sv:e?xa:Ko;if(s.call(l,r))return u(i.get(r));if(s.call(l,a))return u(i.get(a));i!==l&&i.get(r)},get size(){const r=this.__v_raw;return!e&&On(Je(r),"iterate",al),r.size},has(r){const i=this.__v_raw,l=Je(i),a=Je(r);return e||(Si(r,a)&&On(l,"has",r),On(l,"has",a)),r===a?i.has(r):i.has(r)||i.has(a)},forEach(r,i){const l=this,a=l.__v_raw,s=Je(a),u=t?sv:e?xa:Ko;return!e&&On(s,"iterate",al),a.forEach((c,d)=>r.call(i,u(c),u(d),l))}};return sn(n,e?{add:Yc("add"),set:Yc("set"),delete:Yc("delete"),clear:Yc("clear")}:{add(r){!t&&!co(r)&&!jr(r)&&(r=Je(r));const i=Je(this);return Uc(i).has.call(i,r)||(i.add(r),Mr(i,"add",r,r)),this},set(r,i){!t&&!co(i)&&!jr(i)&&(i=Je(i));const l=Je(this),{has:a,get:s}=Uc(l);let u=a.call(l,r);u||(r=Je(r),u=a.call(l,r));const c=s.call(l,r);return l.set(r,i),u?Si(i,c)&&Mr(l,"set",r,i):Mr(l,"add",r,i),this},delete(r){const i=Je(this),{has:l,get:a}=Uc(i);let s=l.call(i,r);s||(r=Je(r),s=l.call(i,r)),a&&a.call(i,r);const u=i.delete(r);return s&&Mr(i,"delete",r,void 0),u},clear(){const r=Je(this),i=r.size!==0,l=r.clear();return i&&Mr(r,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=vM(r,e,t)}),n}function i0(e,t){const n=mM(e,t);return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(Ot(n,r)&&r in o?n:o,r,i)}const bM={get:i0(!1,!1)},yM={get:i0(!1,!0)},SM={get:i0(!0,!1)};const i3=new WeakMap,l3=new WeakMap,a3=new WeakMap,$M=new WeakMap;function CM(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xM(e){return e.__v_skip||!Object.isExtensible(e)?0:CM(XE(e))}function ct(e){return jr(e)?e:l0(e,!1,pM,bM,i3)}function s3(e){return l0(e,!1,hM,yM,l3)}function cv(e){return l0(e,!0,gM,SM,a3)}function l0(e,t,n,o,r){if(!Mt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=xM(e);if(i===0)return e;const l=r.get(e);if(l)return l;const a=new Proxy(e,i===2?o:n);return r.set(e,a),a}function Fr(e){return jr(e)?Fr(e.__v_raw):!!(e&&e.__v_isReactive)}function jr(e){return!!(e&&e.__v_isReadonly)}function co(e){return!!(e&&e.__v_isShallow)}function Uf(e){return e?!!e.__v_raw:!1}function Je(e){const t=e&&e.__v_raw;return t?Je(t):e}function a0(e){return!Ot(e,"__v_skip")&&Object.isExtensible(e)&&H4(e,"__v_skip",!0),e}const Ko=e=>Mt(e)?ct(e):e,xa=e=>Mt(e)?cv(e):e;function kt(e){return e?e.__v_isRef===!0:!1}function re(e){return c3(e,!1)}function ne(e){return c3(e,!0)}function c3(e,t){return kt(e)?e:new wM(e,t)}class wM{constructor(t,n){this.dep=new r0,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Je(t),this._value=n?t:Ko(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||co(t)||jr(t);t=o?t:Je(t),Si(t,n)&&(this._rawValue=t,this._value=o?t:Ko(t),this.dep.trigger())}}function u3(e){e.dep&&e.dep.trigger()}function St(e){return kt(e)?e.value:e}const OM={get:(e,t,n)=>t==="__v_raw"?e:St(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return kt(r)&&!kt(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function d3(e){return Fr(e)?e:new Proxy(e,OM)}function jo(e){const t=rt(e)?new Array(e.length):{};for(const n in e)t[n]=f3(e,n);return t}class PM{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0,this._raw=Je(t);let r=!0,i=t;if(!rt(t)||!jf(String(n)))do r=!Uf(i)||co(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=St(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&kt(this._raw[this._key])){const n=this._object[this._key];if(kt(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return aM(this._raw,this._key)}}class IM{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ze(e,t,n){return kt(e)?e:at(e)?new IM(e):Mt(e)&&arguments.length>1?f3(e,t,n):re(e)}function f3(e,t,n){return new PM(e,t,n)}class TM{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new r0(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Xs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&Dt!==this)return q4(this,!0),!0}get value(){const t=this.dep.track();return J4(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function EM(e,t,n=!1){let o,r;return at(e)?o=e:(o=e.get,r=e.set),new TM(o,r,n)}const qc={},Md=new WeakMap;let Ui;function MM(e,t=!1,n=Ui){if(n){let o=Md.get(n);o||Md.set(n,o=[]),o.push(e)}}function _M(e,t,n=Tt){const{immediate:o,deep:r,once:i,scheduler:l,augmentJob:a,call:s}=n,u=x=>r?x:co(x)||r===!1||r===0?_r(x,1):_r(x);let c,d,f,g,v=!1,h=!1;if(kt(e)?(d=()=>e.value,v=co(e)):Fr(e)?(d=()=>u(e),v=!0):rt(e)?(h=!0,v=e.some(x=>Fr(x)||co(x)),d=()=>e.map(x=>{if(kt(x))return x.value;if(Fr(x))return u(x);if(at(x))return s?s(x,2):x()})):at(e)?t?d=s?()=>s(e,2):e:d=()=>{if(f){zr();try{f()}finally{Hr()}}const x=Ui;Ui=c;try{return s?s(e,3,[g]):e(g)}finally{Ui=x}}:d=dr,t&&r){const x=d,C=r===!0?1/0:r;d=()=>_r(x(),C)}const b=e0(),y=()=>{c.stop(),b&&b.active&&Qm(b.effects,c)};if(i&&t){const x=t;t=(...C)=>{x(...C),y()}}let S=h?new Array(e.length).fill(qc):qc;const $=x=>{if(!(!(c.flags&1)||!c.dirty&&!x))if(t){const C=c.run();if(r||v||(h?C.some((O,w)=>Si(O,S[w])):Si(C,S))){f&&f();const O=Ui;Ui=c;try{const w=[C,S===qc?void 0:h&&S[0]===qc?[]:S,g];S=C,s?s(t,3,w):t(...w)}finally{Ui=O}}}else c.run()};return a&&a($),c=new U4(d),c.scheduler=l?()=>l($,!1):$,g=x=>MM(x,!1,c),f=c.onStop=()=>{const x=Md.get(c);if(x){if(s)s(x,4);else for(const C of x)C();Md.delete(c)}},t?o?$(!0):S=c.run():l?l($.bind(null,!0),!0):c.run(),y.pause=c.pause.bind(c),y.resume=c.resume.bind(c),y.stop=y,y}function _r(e,t=1/0,n){if(t<=0||!Mt(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,kt(e))_r(e.value,t,n);else if(rt(e))for(let o=0;o{_r(o,t,n)});else if(z4(e)){for(const o in e)_r(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&_r(e[o],t,n)}return e}function xc(e,t,n,o){try{return o?e(...o):e()}catch(r){Yf(r,t,n)}}function Go(e,t,n,o){if(at(e)){const r=xc(e,t,n,o);return r&&F4(r)&&r.catch(i=>{Yf(i,t,n)}),r}if(rt(e)){const r=[];for(let i=0;i>>1,r=Ln[o],i=Ys(r);i=Ys(n)?Ln.push(e):Ln.splice(RM(t),0,e),e.flags|=1,g3()}}function g3(){_d||(_d=p3.then(v3))}function DM(e){rt(e)?ca.push(...e):ci&&e.id===-1?ci.splice(Yl+1,0,e):e.flags&1||(ca.push(e),e.flags|=1),g3()}function j1(e,t,n=lr+1){for(;nYs(n)-Ys(o));if(ca.length=0,ci){ci.push(...t);return}for(ci=t,Yl=0;Yle.id==null?e.flags&2?-1:1/0:e.id;function v3(e){try{for(lr=0;lr{o._d&&Bd(-1);const i=Ad(t);let l;try{l=e(...r)}finally{Ad(i),o._d&&Bd(1)}return l};return o._n=!0,o._c=!0,o._d=!0,o}function En(e,t){if(lo===null)return e;const n=np(lo),o=e.dirs||(e.dirs=[]);for(let r=0;re.__isTeleport,xs=e=>e&&(e.disabled||e.disabled===""),V1=e=>e&&(e.defer||e.defer===""),W1=e=>typeof SVGElement<"u"&&e instanceof SVGElement,K1=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,uv=(e,t)=>{const n=e&&e.to;return Wt(n)?t?t(n):null:n},S3={name:"Teleport",__isTeleport:!0,process(e,t,n,o,r,i,l,a,s,u){const{mc:c,pc:d,pbc:f,o:{insert:g,querySelector:v,createText:h,createComment:b}}=u,y=xs(t.props);let{shapeFlag:S,children:$,dynamicChildren:x}=t;if(e==null){const C=t.el=h(""),O=t.anchor=h("");g(C,n,o),g(O,n,o);const w=(T,M)=>{S&16&&c($,T,M,r,i,l,a,s)},I=()=>{const T=t.target=uv(t.props,v),M=$3(T,t,h,g);T&&(l!=="svg"&&W1(T)?l="svg":l!=="mathml"&&K1(T)&&(l="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(T),y||(w(T,M),Ru(t,!1)))};y&&(w(n,O),Ru(t,!0)),V1(t.props)?(t.el.__isMounted=!1,Bn(()=>{I(),delete t.el.__isMounted},i)):I()}else{if(V1(t.props)&&e.el.__isMounted===!1){Bn(()=>{S3.process(e,t,n,o,r,i,l,a,s,u)},i);return}t.el=e.el,t.targetStart=e.targetStart;const C=t.anchor=e.anchor,O=t.target=e.target,w=t.targetAnchor=e.targetAnchor,I=xs(e.props),T=I?n:O,M=I?C:w;if(l==="svg"||W1(O)?l="svg":(l==="mathml"||K1(O))&&(l="mathml"),x?(f(e.dynamicChildren,x,T,r,i,l,a),g0(e,t,!0)):s||d(e,t,T,M,r,i,l,a,!1),y)I?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Zc(t,n,C,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const E=t.target=uv(t.props,v);E&&Zc(t,E,null,u,0)}else I&&Zc(t,O,w,u,1);Ru(t,y)}},remove(e,t,n,{um:o,o:{remove:r}},i){const{shapeFlag:l,children:a,anchor:s,targetStart:u,targetAnchor:c,target:d,props:f}=e;if(d&&(r(u),r(c)),i&&r(s),l&16){const g=i||!xs(f);for(let v=0;v{e.isMounted=!0}),Qe(()=>{e.isUnmounting=!0}),e}const yo=[Function,Array],x3={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:yo,onEnter:yo,onAfterEnter:yo,onEnterCancelled:yo,onBeforeLeave:yo,onLeave:yo,onAfterLeave:yo,onLeaveCancelled:yo,onBeforeAppear:yo,onAppear:yo,onAfterAppear:yo,onAppearCancelled:yo},w3=e=>{const t=e.subTree;return t.component?w3(t.component):t},BM={name:"BaseTransition",props:x3,setup(e,{slots:t}){const n=pn(),o=C3();return()=>{const r=t.default&&u0(t.default(),!0);if(!r||!r.length)return;const i=O3(r),l=Je(e),{mode:a}=l;if(o.isLeaving)return Ag(i);const s=G1(i);if(!s)return Ag(i);let u=qs(s,l,o,n,d=>u=d);s.type!==mn&&ml(s,u);let c=n.subTree&&G1(n.subTree);if(c&&c.type!==mn&&!qi(c,s)&&w3(n).type!==mn){let d=qs(c,l,o,n);if(ml(c,d),a==="out-in"&&s.type!==mn)return o.isLeaving=!0,d.afterLeave=()=>{o.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,c=void 0},Ag(i);a==="in-out"&&s.type!==mn?d.delayLeave=(f,g,v)=>{const h=P3(o,c);h[String(c.key)]=c,f[Er]=()=>{g(),f[Er]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{v(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function O3(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==mn){t=n;break}}return t}const kM=BM;function P3(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function qs(e,t,n,o,r){const{appear:i,mode:l,persisted:a=!1,onBeforeEnter:s,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:g,onAfterLeave:v,onLeaveCancelled:h,onBeforeAppear:b,onAppear:y,onAfterAppear:S,onAppearCancelled:$}=t,x=String(e.key),C=P3(n,e),O=(T,M)=>{T&&Go(T,o,9,M)},w=(T,M)=>{const E=M[1];O(T,M),rt(T)?T.every(A=>A.length<=1)&&E():T.length<=1&&E()},I={mode:l,persisted:a,beforeEnter(T){let M=s;if(!n.isMounted)if(i)M=b||s;else return;T[Er]&&T[Er](!0);const E=C[x];E&&qi(e,E)&&E.el[Er]&&E.el[Er](),O(M,[T])},enter(T){let M=u,E=c,A=d;if(!n.isMounted)if(i)M=y||u,E=S||c,A=$||d;else return;let R=!1;const z=T[Qc]=_=>{R||(R=!0,_?O(A,[T]):O(E,[T]),I.delayedLeave&&I.delayedLeave(),T[Qc]=void 0)};M?w(M,[T,z]):z()},leave(T,M){const E=String(e.key);if(T[Qc]&&T[Qc](!0),n.isUnmounting)return M();O(f,[T]);let A=!1;const R=T[Er]=z=>{A||(A=!0,M(),z?O(h,[T]):O(v,[T]),T[Er]=void 0,C[E]===e&&delete C[E])};C[E]=e,g?w(g,[T,R]):R()},clone(T){const M=qs(T,t,n,o,r);return r&&r(M),M}};return I}function Ag(e){if(qf(e))return e=cn(e),e.children=null,e}function G1(e){if(!qf(e))return y3(e.type)&&e.children?O3(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&at(n.default))return n.default()}}function ml(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ml(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function u0(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let i=0;iws(v,t&&(rt(t)?t[h]:t),n,o,r));return}if(Os(o)&&!r){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&ws(e,t,n,o.component.subTree);return}const i=o.shapeFlag&4?np(o.component):o.el,l=r?null:i,{i:a,r:s}=e,u=t&&t.r,c=a.refs===Tt?a.refs={}:a.refs,d=a.setupState,f=Je(d),g=d===Tt?B4:v=>Ot(f,v);if(u!=null&&u!==s){if(X1(t),Wt(u))c[u]=null,g(u)&&(d[u]=null);else if(kt(u)){u.value=null;const v=t;v.k&&(c[v.k]=null)}}if(at(s))xc(s,a,12,[l,c]);else{const v=Wt(s),h=kt(s);if(v||h){const b=()=>{if(e.f){const y=v?g(s)?d[s]:c[s]:s.value;if(r)rt(y)&&Qm(y,i);else if(rt(y))y.includes(i)||y.push(i);else if(v)c[s]=[i],g(s)&&(d[s]=c[s]);else{const S=[i];s.value=S,e.k&&(c[e.k]=S)}}else v?(c[s]=l,g(s)&&(d[s]=l)):h&&(s.value=l,e.k&&(c[e.k]=l))};if(l){const y=()=>{b(),Rd.delete(e)};y.id=-1,Rd.set(e,y),Bn(y,n)}else X1(e),b()}}}function X1(e){const t=Rd.get(e);t&&(t.flags|=8,Rd.delete(e))}Kf().requestIdleCallback;Kf().cancelIdleCallback;const Os=e=>!!e.type.__asyncLoader,qf=e=>e.type.__isKeepAlive;function Zf(e,t){E3(e,"a",t)}function T3(e,t){E3(e,"da",t)}function E3(e,t,n=In){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Qf(t,o,n),n){let r=n.parent;for(;r&&r.parent;)qf(r.parent.vnode)&&FM(o,t,n,r),r=r.parent}}function FM(e,t,n,o){const r=Qf(t,e,o,!0);$n(()=>{Qm(o[t],r)},n)}function Qf(e,t,n=In,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...l)=>{zr();const a=wc(n),s=Go(t,n,e,l);return a(),Hr(),s});return o?r.unshift(i):r.push(i),i}}const Xr=e=>(t,n=In)=>{(!Qs||e==="sp")&&Qf(e,(...o)=>t(...o),n)},Jf=Xr("bm"),je=Xr("m"),ep=Xr("bu"),An=Xr("u"),Qe=Xr("bum"),$n=Xr("um"),LM=Xr("sp"),zM=Xr("rtg"),HM=Xr("rtc");function jM(e,t=In){Qf("ec",e,t)}const M3="components",VM="directives";function ln(e,t){return _3(M3,e,!0,t)||e}const WM=Symbol.for("v-ndc");function KM(e){return _3(VM,e)}function _3(e,t,n=!0,o=!1){const r=lo||In;if(r){const i=r.type;if(e===M3){const a=N7(i,!1);if(a&&(a===t||a===Eo(t)||a===Wf(Eo(t))))return i}const l=U1(r[e]||i[e],t)||U1(r.appContext[e],t);return!l&&o?i:l}}function U1(e,t){return e&&(e[t]||e[Eo(t)]||e[Wf(Eo(t))])}function zfe(e,t,n,o){let r;const i=n,l=rt(e);if(l||Wt(e)){const a=l&&Fr(e);let s=!1,u=!1;a&&(s=!co(e),u=jr(e),e=Xf(e)),r=new Array(e.length);for(let c=0,d=e.length;ct(a,s,void 0,i));else{const a=Object.keys(e);r=new Array(a.length);for(let s=0,u=a.length;se?Y3(e)?np(e):dv(e.parent):null,Ps=sn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>dv(e.parent),$root:e=>dv(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>R3(e),$forceUpdate:e=>e.f||(e.f=()=>{s0(e.update)}),$nextTick:e=>e.n||(e.n=ot.bind(e.proxy)),$watch:e=>i7.bind(e)}),Rg=(e,t)=>e!==Tt&&!e.__isScriptSetup&&Ot(e,t),GM={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:r,props:i,accessCache:l,type:a,appContext:s}=e;if(t[0]!=="$"){const f=l[t];if(f!==void 0)switch(f){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Rg(o,t))return l[t]=1,o[t];if(r!==Tt&&Ot(r,t))return l[t]=2,r[t];if(Ot(i,t))return l[t]=3,i[t];if(n!==Tt&&Ot(n,t))return l[t]=4,n[t];fv&&(l[t]=0)}}const u=Ps[t];let c,d;if(u)return t==="$attrs"&&On(e.attrs,"get",""),u(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(n!==Tt&&Ot(n,t))return l[t]=4,n[t];if(d=s.config.globalProperties,Ot(d,t))return d[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return Rg(r,t)?(r[t]=n,!0):o!==Tt&&Ot(o,t)?(o[t]=n,!0):Ot(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,props:i,type:l}},a){let s;return!!(n[a]||e!==Tt&&a[0]!=="$"&&Ot(e,a)||Rg(t,a)||Ot(i,a)||Ot(o,a)||Ot(Ps,a)||Ot(r.config.globalProperties,a)||(s=l.__cssModules)&&s[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ot(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function XM(){return UM().attrs}function UM(e){const t=pn();return t.setupContext||(t.setupContext=Z3(t))}function Y1(e){return rt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let fv=!0;function YM(e){const t=R3(e),n=e.proxy,o=e.ctx;fv=!1,t.beforeCreate&&q1(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:l,watch:a,provide:s,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:g,updated:v,activated:h,deactivated:b,beforeDestroy:y,beforeUnmount:S,destroyed:$,unmounted:x,render:C,renderTracked:O,renderTriggered:w,errorCaptured:I,serverPrefetch:T,expose:M,inheritAttrs:E,components:A,directives:R,filters:z}=t;if(u&&qM(u,o,null),l)for(const B in l){const k=l[B];at(k)&&(o[B]=k.bind(n))}if(r){const B=r.call(n,n);Mt(B)&&(e.data=ct(B))}if(fv=!0,i)for(const B in i){const k=i[B],F=at(k)?k.bind(n,n):at(k.get)?k.get.bind(n,n):dr,L=!at(k)&&at(k.set)?k.set.bind(n):dr,H=P({get:F,set:L});Object.defineProperty(o,B,{enumerable:!0,configurable:!0,get:()=>H.value,set:j=>H.value=j})}if(a)for(const B in a)A3(a[B],o,n,B);if(s){const B=at(s)?s.call(n):s;Reflect.ownKeys(B).forEach(k=>{Xe(k,B[k])})}c&&q1(c,e,"c");function N(B,k){rt(k)?k.forEach(F=>B(F.bind(n))):k&&B(k.bind(n))}if(N(Jf,d),N(je,f),N(ep,g),N(An,v),N(Zf,h),N(T3,b),N(jM,I),N(HM,O),N(zM,w),N(Qe,S),N($n,x),N(LM,T),rt(M))if(M.length){const B=e.exposed||(e.exposed={});M.forEach(k=>{Object.defineProperty(B,k,{get:()=>n[k],set:F=>n[k]=F,enumerable:!0})})}else e.exposed||(e.exposed={});C&&e.render===dr&&(e.render=C),E!=null&&(e.inheritAttrs=E),A&&(e.components=A),R&&(e.directives=R),T&&I3(e)}function qM(e,t,n=dr){rt(e)&&(e=pv(e));for(const o in e){const r=e[o];let i;Mt(r)?"default"in r?i=He(r.from||o,r.default,!0):i=He(r.from||o):i=He(r),kt(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:l=>i.value=l}):t[o]=i}}function q1(e,t,n){Go(rt(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function A3(e,t,n,o){let r=o.includes(".")?N3(n,o):()=>n[o];if(Wt(e)){const i=t[e];at(i)&&ye(r,i)}else if(at(e))ye(r,e.bind(n));else if(Mt(e))if(rt(e))e.forEach(i=>A3(i,t,n,o));else{const i=at(e.handler)?e.handler.bind(n):t[e.handler];at(i)&&ye(r,i,e)}}function R3(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,a=i.get(t);let s;return a?s=a:!r.length&&!n&&!o?s=t:(s={},r.length&&r.forEach(u=>Dd(s,u,l,!0)),Dd(s,t,l)),Mt(t)&&i.set(t,s),s}function Dd(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Dd(e,i,n,!0),r&&r.forEach(l=>Dd(e,l,n,!0));for(const l in t)if(!(o&&l==="expose")){const a=ZM[l]||n&&n[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const ZM={data:Z1,props:Q1,emits:Q1,methods:gs,computed:gs,beforeCreate:Nn,created:Nn,beforeMount:Nn,mounted:Nn,beforeUpdate:Nn,updated:Nn,beforeDestroy:Nn,beforeUnmount:Nn,destroyed:Nn,unmounted:Nn,activated:Nn,deactivated:Nn,errorCaptured:Nn,serverPrefetch:Nn,components:gs,directives:gs,watch:JM,provide:Z1,inject:QM};function Z1(e,t){return t?e?function(){return sn(at(e)?e.call(this,this):e,at(t)?t.call(this,this):t)}:t:e}function QM(e,t){return gs(pv(e),pv(t))}function pv(e){if(rt(e)){const t={};for(let n=0;n1)return n&&at(t)?t.call(o&&o.proxy):t}}function n7(){return!!(pn()||sl)}const o7=Symbol.for("v-scx"),r7=()=>He(o7);function Le(e,t){return d0(e,null,t)}function ye(e,t,n){return d0(e,t,n)}function d0(e,t,n=Tt){const{immediate:o,deep:r,flush:i,once:l}=n,a=sn({},n),s=t&&o||!t&&i!=="post";let u;if(Qs){if(i==="sync"){const g=r7();u=g.__watcherHandles||(g.__watcherHandles=[])}else if(!s){const g=()=>{};return g.stop=dr,g.resume=dr,g.pause=dr,g}}const c=In;a.call=(g,v,h)=>Go(g,c,v,h);let d=!1;i==="post"?a.scheduler=g=>{Bn(g,c&&c.suspense)}:i!=="sync"&&(d=!0,a.scheduler=(g,v)=>{v?g():s0(g)}),a.augmentJob=g=>{t&&(g.flags|=4),d&&(g.flags|=2,c&&(g.id=c.uid,g.i=c))};const f=_M(e,t,a);return Qs&&(u?u.push(f):s&&f()),f}function i7(e,t,n){const o=this.proxy,r=Wt(e)?e.includes(".")?N3(o,e):()=>o[e]:e.bind(o,o);let i;at(t)?i=t:(i=t.handler,n=t);const l=wc(this),a=d0(r,i.bind(o),n);return l(),a}function N3(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;rt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Eo(t)}Modifiers`]||e[`${Pl(t)}Modifiers`];function a7(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||Tt;let r=n;const i=t.startsWith("update:"),l=i&&l7(o,t.slice(7));l&&(l.trim&&(r=n.map(c=>Wt(c)?c.trim():c)),l.number&&(r=n.map(qE)));let a,s=o[a=Pg(t)]||o[a=Pg(Eo(t))];!s&&i&&(s=o[a=Pg(Pl(t))]),s&&Go(s,e,6,r);const u=o[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Go(u,e,6,r)}}const s7=new WeakMap;function B3(e,t,n=!1){const o=n?s7:t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let l={},a=!1;if(!at(e)){const s=u=>{const c=B3(u,t,!0);c&&(a=!0,sn(l,c))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!a?(Mt(e)&&o.set(e,null),null):(rt(i)?i.forEach(s=>l[s]=null):sn(l,i),Mt(e)&&o.set(e,l),l)}function tp(e,t){return!e||!zf(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ot(e,t[0].toLowerCase()+t.slice(1))||Ot(e,Pl(t))||Ot(e,t))}function J1(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[i],slots:l,attrs:a,emit:s,render:u,renderCache:c,props:d,data:f,setupState:g,ctx:v,inheritAttrs:h}=e,b=Ad(e);let y,S;try{if(n.shapeFlag&4){const x=r||o,C=x;y=cr(u.call(C,x,c,d,g,f,v)),S=a}else{const x=t;y=cr(x.length>1?x(d,{attrs:a,slots:l,emit:s}):x(d,null)),S=t.props?a:c7(a)}}catch(x){Is.length=0,Yf(x,e,1),y=p(mn)}let $=y;if(S&&h!==!1){const x=Object.keys(S),{shapeFlag:C}=$;x.length&&C&7&&(i&&x.some(Zm)&&(S=u7(S,i)),$=cn($,S,!1,!0))}return n.dirs&&($=cn($,null,!1,!0),$.dirs=$.dirs?$.dirs.concat(n.dirs):n.dirs),n.transition&&ml($,n.transition),y=$,Ad(b),y}const c7=e=>{let t;for(const n in e)(n==="class"||n==="style"||zf(n))&&((t||(t={}))[n]=e[n]);return t},u7=(e,t)=>{const n={};for(const o in e)(!Zm(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function d7(e,t,n){const{props:o,children:r,component:i}=e,{props:l,children:a,patchFlag:s}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return o?eS(o,l,u):!!l;if(s&8){const c=t.dynamicProps;for(let d=0;dObject.create(k3),L3=e=>Object.getPrototypeOf(e)===k3;function p7(e,t,n,o=!1){const r={},i=F3();e.propsDefaults=Object.create(null),z3(e,t,r,i);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);n?e.props=o?r:s3(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function g7(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:l}}=e,a=Je(r),[s]=e.propsOptions;let u=!1;if((o||l>0)&&!(l&16)){if(l&8){const c=e.vnode.dynamicProps;for(let d=0;d{s=!0;const[f,g]=H3(d,t,!0);sn(l,f),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!s)return Mt(e)&&o.set(e,aa),aa;if(rt(i))for(let c=0;ce==="_"||e==="_ctx"||e==="$stable",p0=e=>rt(e)?e.map(cr):[cr(e)],v7=(e,t,n)=>{if(t._n)return t;const o=xt((...r)=>p0(t(...r)),n);return o._c=!1,o},j3=(e,t,n)=>{const o=e._ctx;for(const r in e){if(f0(r))continue;const i=e[r];if(at(i))t[r]=v7(r,i,o);else if(i!=null){const l=p0(i);t[r]=()=>l}}},V3=(e,t)=>{const n=p0(t);e.slots.default=()=>n},W3=(e,t,n)=>{for(const o in t)(n||!f0(o))&&(e[o]=t[o])},m7=(e,t,n)=>{const o=e.slots=F3();if(e.vnode.shapeFlag&32){const r=t._;r?(W3(o,t,n),n&&H4(o,"_",r,!0)):j3(t,o)}else t&&V3(e,t)},b7=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,l=Tt;if(o.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:W3(r,t,n):(i=!t.$stable,j3(t,r)),l=t}else t&&(V3(e,t),l={default:1});if(i)for(const a in r)!f0(a)&&l[a]==null&&delete r[a]},Bn=x7;function y7(e){return S7(e)}function S7(e,t){const n=Kf();n.__VUE__=!0;const{insert:o,remove:r,patchProp:i,createElement:l,createText:a,createComment:s,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:g=dr,insertStaticContent:v}=e,h=(V,K,te,ue=null,ie=null,ae=null,ce=void 0,se=null,pe=!!K.dynamicChildren)=>{if(V===K)return;V&&!qi(V,K)&&(ue=X(V),j(V,ie,ae,!0),V=null),K.patchFlag===-2&&(pe=!1,K.dynamicChildren=null);const{type:ge,ref:he,shapeFlag:me}=K;switch(ge){case Ei:b(V,K,te,ue);break;case mn:y(V,K,te,ue);break;case Ng:V==null&&S(K,te,ue,ce);break;case Ve:A(V,K,te,ue,ie,ae,ce,se,pe);break;default:me&1?C(V,K,te,ue,ie,ae,ce,se,pe):me&6?R(V,K,te,ue,ie,ae,ce,se,pe):(me&64||me&128)&&ge.process(V,K,te,ue,ie,ae,ce,se,pe,G)}he!=null&&ie?ws(he,V&&V.ref,ae,K||V,!K):he==null&&V&&V.ref!=null&&ws(V.ref,null,ae,V,!0)},b=(V,K,te,ue)=>{if(V==null)o(K.el=a(K.children),te,ue);else{const ie=K.el=V.el;K.children!==V.children&&u(ie,K.children)}},y=(V,K,te,ue)=>{V==null?o(K.el=s(K.children||""),te,ue):K.el=V.el},S=(V,K,te,ue)=>{[V.el,V.anchor]=v(V.children,K,te,ue,V.el,V.anchor)},$=({el:V,anchor:K},te,ue)=>{let ie;for(;V&&V!==K;)ie=f(V),o(V,te,ue),V=ie;o(K,te,ue)},x=({el:V,anchor:K})=>{let te;for(;V&&V!==K;)te=f(V),r(V),V=te;r(K)},C=(V,K,te,ue,ie,ae,ce,se,pe)=>{if(K.type==="svg"?ce="svg":K.type==="math"&&(ce="mathml"),V==null)O(K,te,ue,ie,ae,ce,se,pe);else{const ge=V.el&&V.el._isVueCE?V.el:null;try{ge&&ge._beginPatch(),T(V,K,ie,ae,ce,se,pe)}finally{ge&&ge._endPatch()}}},O=(V,K,te,ue,ie,ae,ce,se)=>{let pe,ge;const{props:he,shapeFlag:me,transition:xe,dirs:fe}=V;if(pe=V.el=l(V.type,ae,he&&he.is,he),me&8?c(pe,V.children):me&16&&I(V.children,pe,null,ue,ie,Dg(V,ae),ce,se),fe&&Li(V,null,ue,"created"),w(pe,V,V.scopeId,ce,ue),he){for(const be in he)be!=="value"&&!Ss(be)&&i(pe,be,null,he[be],ae,ue);"value"in he&&i(pe,"value",null,he.value,ae),(ge=he.onVnodeBeforeMount)&&nr(ge,ue,V)}fe&&Li(V,null,ue,"beforeMount");const de=$7(ie,xe);de&&xe.beforeEnter(pe),o(pe,K,te),((ge=he&&he.onVnodeMounted)||de||fe)&&Bn(()=>{ge&&nr(ge,ue,V),de&&xe.enter(pe),fe&&Li(V,null,ue,"mounted")},ie)},w=(V,K,te,ue,ie)=>{if(te&&g(V,te),ue)for(let ae=0;ae{for(let ge=pe;ge{const se=K.el=V.el;let{patchFlag:pe,dynamicChildren:ge,dirs:he}=K;pe|=V.patchFlag&16;const me=V.props||Tt,xe=K.props||Tt;let fe;if(te&&zi(te,!1),(fe=xe.onVnodeBeforeUpdate)&&nr(fe,te,K,V),he&&Li(K,V,te,"beforeUpdate"),te&&zi(te,!0),(me.innerHTML&&xe.innerHTML==null||me.textContent&&xe.textContent==null)&&c(se,""),ge?M(V.dynamicChildren,ge,se,te,ue,Dg(K,ie),ae):ce||k(V,K,se,null,te,ue,Dg(K,ie),ae,!1),pe>0){if(pe&16)E(se,me,xe,te,ie);else if(pe&2&&me.class!==xe.class&&i(se,"class",null,xe.class,ie),pe&4&&i(se,"style",me.style,xe.style,ie),pe&8){const de=K.dynamicProps;for(let be=0;be{fe&&nr(fe,te,K,V),he&&Li(K,V,te,"updated")},ue)},M=(V,K,te,ue,ie,ae,ce)=>{for(let se=0;se{if(K!==te){if(K!==Tt)for(const ae in K)!Ss(ae)&&!(ae in te)&&i(V,ae,K[ae],null,ie,ue);for(const ae in te){if(Ss(ae))continue;const ce=te[ae],se=K[ae];ce!==se&&ae!=="value"&&i(V,ae,se,ce,ie,ue)}"value"in te&&i(V,"value",K.value,te.value,ie)}},A=(V,K,te,ue,ie,ae,ce,se,pe)=>{const ge=K.el=V?V.el:a(""),he=K.anchor=V?V.anchor:a("");let{patchFlag:me,dynamicChildren:xe,slotScopeIds:fe}=K;fe&&(se=se?se.concat(fe):fe),V==null?(o(ge,te,ue),o(he,te,ue),I(K.children||[],te,he,ie,ae,ce,se,pe)):me>0&&me&64&&xe&&V.dynamicChildren?(M(V.dynamicChildren,xe,te,ie,ae,ce,se),(K.key!=null||ie&&K===ie.subTree)&&g0(V,K,!0)):k(V,K,te,he,ie,ae,ce,se,pe)},R=(V,K,te,ue,ie,ae,ce,se,pe)=>{K.slotScopeIds=se,V==null?K.shapeFlag&512?ie.ctx.activate(K,te,ue,ce,pe):z(K,te,ue,ie,ae,ce,pe):_(V,K,pe)},z=(V,K,te,ue,ie,ae,ce)=>{const se=V.component=_7(V,ue,ie);if(qf(V)&&(se.ctx.renderer=G),A7(se,!1,ce),se.asyncDep){if(ie&&ie.registerDep(se,N,ce),!V.el){const pe=se.subTree=p(mn);y(null,pe,K,te),V.placeholder=pe.el}}else N(se,V,K,te,ie,ae,ce)},_=(V,K,te)=>{const ue=K.component=V.component;if(d7(V,K,te))if(ue.asyncDep&&!ue.asyncResolved){B(ue,K,te);return}else ue.next=K,ue.update();else K.el=V.el,ue.vnode=K},N=(V,K,te,ue,ie,ae,ce)=>{const se=()=>{if(V.isMounted){let{next:me,bu:xe,u:fe,parent:de,vnode:be}=V;{const Ce=K3(V);if(Ce){me&&(me.el=be.el,B(V,me,ce)),Ce.asyncDep.then(()=>{V.isUnmounted||se()});return}}let we=me,Ie;zi(V,!1),me?(me.el=be.el,B(V,me,ce)):me=be,xe&&Ig(xe),(Ie=me.props&&me.props.onVnodeBeforeUpdate)&&nr(Ie,de,me,be),zi(V,!0);const Ae=J1(V),Se=V.subTree;V.subTree=Ae,h(Se,Ae,d(Se.el),X(Se),V,ie,ae),me.el=Ae.el,we===null&&f7(V,Ae.el),fe&&Bn(fe,ie),(Ie=me.props&&me.props.onVnodeUpdated)&&Bn(()=>nr(Ie,de,me,be),ie)}else{let me;const{el:xe,props:fe}=K,{bm:de,m:be,parent:we,root:Ie,type:Ae}=V,Se=Os(K);zi(V,!1),de&&Ig(de),!Se&&(me=fe&&fe.onVnodeBeforeMount)&&nr(me,we,K),zi(V,!0);{Ie.ce&&Ie.ce._def.shadowRoot!==!1&&Ie.ce._injectChildStyle(Ae);const Ce=V.subTree=J1(V);h(null,Ce,te,ue,V,ie,ae),K.el=Ce.el}if(be&&Bn(be,ie),!Se&&(me=fe&&fe.onVnodeMounted)){const Ce=K;Bn(()=>nr(me,we,Ce),ie)}(K.shapeFlag&256||we&&Os(we.vnode)&&we.vnode.shapeFlag&256)&&V.a&&Bn(V.a,ie),V.isMounted=!0,K=te=ue=null}};V.scope.on();const pe=V.effect=new U4(se);V.scope.off();const ge=V.update=pe.run.bind(pe),he=V.job=pe.runIfDirty.bind(pe);he.i=V,he.id=V.uid,pe.scheduler=()=>s0(he),zi(V,!0),ge()},B=(V,K,te)=>{K.component=V;const ue=V.vnode.props;V.vnode=K,V.next=null,g7(V,K.props,ue,te),b7(V,K.children,te),zr(),j1(V),Hr()},k=(V,K,te,ue,ie,ae,ce,se,pe=!1)=>{const ge=V&&V.children,he=V?V.shapeFlag:0,me=K.children,{patchFlag:xe,shapeFlag:fe}=K;if(xe>0){if(xe&128){L(ge,me,te,ue,ie,ae,ce,se,pe);return}else if(xe&256){F(ge,me,te,ue,ie,ae,ce,se,pe);return}}fe&8?(he&16&&ee(ge,ie,ae),me!==ge&&c(te,me)):he&16?fe&16?L(ge,me,te,ue,ie,ae,ce,se,pe):ee(ge,ie,ae,!0):(he&8&&c(te,""),fe&16&&I(me,te,ue,ie,ae,ce,se,pe))},F=(V,K,te,ue,ie,ae,ce,se,pe)=>{V=V||aa,K=K||aa;const ge=V.length,he=K.length,me=Math.min(ge,he);let xe;for(xe=0;xehe?ee(V,ie,ae,!0,!1,me):I(K,te,ue,ie,ae,ce,se,pe,me)},L=(V,K,te,ue,ie,ae,ce,se,pe)=>{let ge=0;const he=K.length;let me=V.length-1,xe=he-1;for(;ge<=me&&ge<=xe;){const fe=V[ge],de=K[ge]=pe?ui(K[ge]):cr(K[ge]);if(qi(fe,de))h(fe,de,te,null,ie,ae,ce,se,pe);else break;ge++}for(;ge<=me&&ge<=xe;){const fe=V[me],de=K[xe]=pe?ui(K[xe]):cr(K[xe]);if(qi(fe,de))h(fe,de,te,null,ie,ae,ce,se,pe);else break;me--,xe--}if(ge>me){if(ge<=xe){const fe=xe+1,de=fexe)for(;ge<=me;)j(V[ge],ie,ae,!0),ge++;else{const fe=ge,de=ge,be=new Map;for(ge=de;ge<=xe;ge++){const Re=K[ge]=pe?ui(K[ge]):cr(K[ge]);Re.key!=null&&be.set(Re.key,ge)}let we,Ie=0;const Ae=xe-de+1;let Se=!1,Ce=0;const Oe=new Array(Ae);for(ge=0;ge=Ae){j(Re,ie,ae,!0);continue}let _e;if(Re.key!=null)_e=be.get(Re.key);else for(we=de;we<=xe;we++)if(Oe[we-de]===0&&qi(Re,K[we])){_e=we;break}_e===void 0?j(Re,ie,ae,!0):(Oe[_e-de]=ge+1,_e>=Ce?Ce=_e:Se=!0,h(Re,K[_e],te,null,ie,ae,ce,se,pe),Ie++)}const Me=Se?C7(Oe):aa;for(we=Me.length-1,ge=Ae-1;ge>=0;ge--){const Re=de+ge,_e=K[Re],Be=K[Re+1],et=Re+1{const{el:ae,type:ce,transition:se,children:pe,shapeFlag:ge}=V;if(ge&6){H(V.component.subTree,K,te,ue);return}if(ge&128){V.suspense.move(K,te,ue);return}if(ge&64){ce.move(V,K,te,G);return}if(ce===Ve){o(ae,K,te);for(let me=0;mese.enter(ae),ie);else{const{leave:me,delayLeave:xe,afterLeave:fe}=se,de=()=>{V.ctx.isUnmounted?r(ae):o(ae,K,te)},be=()=>{ae._isLeaving&&ae[Er](!0),me(ae,()=>{de(),fe&&fe()})};xe?xe(ae,de,be):be()}else o(ae,K,te)},j=(V,K,te,ue=!1,ie=!1)=>{const{type:ae,props:ce,ref:se,children:pe,dynamicChildren:ge,shapeFlag:he,patchFlag:me,dirs:xe,cacheIndex:fe}=V;if(me===-2&&(ie=!1),se!=null&&(zr(),ws(se,null,te,V,!0),Hr()),fe!=null&&(K.renderCache[fe]=void 0),he&256){K.ctx.deactivate(V);return}const de=he&1&&xe,be=!Os(V);let we;if(be&&(we=ce&&ce.onVnodeBeforeUnmount)&&nr(we,K,V),he&6)U(V.component,te,ue);else{if(he&128){V.suspense.unmount(te,ue);return}de&&Li(V,null,K,"beforeUnmount"),he&64?V.type.remove(V,K,te,G,ue):ge&&!ge.hasOnce&&(ae!==Ve||me>0&&me&64)?ee(ge,K,te,!1,!0):(ae===Ve&&me&384||!ie&&he&16)&&ee(pe,K,te),ue&&Y(V)}(be&&(we=ce&&ce.onVnodeUnmounted)||de)&&Bn(()=>{we&&nr(we,K,V),de&&Li(V,null,K,"unmounted")},te)},Y=V=>{const{type:K,el:te,anchor:ue,transition:ie}=V;if(K===Ve){Q(te,ue);return}if(K===Ng){x(V);return}const ae=()=>{r(te),ie&&!ie.persisted&&ie.afterLeave&&ie.afterLeave()};if(V.shapeFlag&1&&ie&&!ie.persisted){const{leave:ce,delayLeave:se}=ie,pe=()=>ce(te,ae);se?se(V.el,ae,pe):pe()}else ae()},Q=(V,K)=>{let te;for(;V!==K;)te=f(V),r(V),V=te;r(K)},U=(V,K,te)=>{const{bum:ue,scope:ie,job:ae,subTree:ce,um:se,m:pe,a:ge}=V;nS(pe),nS(ge),ue&&Ig(ue),ie.stop(),ae&&(ae.flags|=8,j(ce,V,K,te)),se&&Bn(se,K),Bn(()=>{V.isUnmounted=!0},K)},ee=(V,K,te,ue=!1,ie=!1,ae=0)=>{for(let ce=ae;ce{if(V.shapeFlag&6)return X(V.component.subTree);if(V.shapeFlag&128)return V.suspense.next();const K=f(V.anchor||V.el),te=K&&K[b3];return te?f(te):K};let J=!1;const Z=(V,K,te)=>{V==null?K._vnode&&j(K._vnode,null,null,!0):h(K._vnode||null,V,K,null,null,null,te),K._vnode=V,J||(J=!0,j1(),h3(),J=!1)},G={p:h,um:j,m:H,r:Y,mt:z,mc:I,pc:k,pbc:M,n:X,o:e};return{render:Z,hydrate:void 0,createApp:t7(Z)}}function Dg({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function zi({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function $7(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function g0(e,t,n=!1){const o=e.children,r=t.children;if(rt(o)&&rt(r))for(let i=0;i>1,e[n[a]]0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,l=n[i-1];i-- >0;)n[i]=l,l=t[l];return n}function K3(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:K3(t)}function nS(e){if(e)for(let t=0;te.__isSuspense;function x7(e,t){t&&t.pendingBranch?rt(e)?t.effects.push(...e):t.effects.push(e):DM(e)}const Ve=Symbol.for("v-fgt"),Ei=Symbol.for("v-txt"),mn=Symbol.for("v-cmt"),Ng=Symbol.for("v-stc"),Is=[];let ao=null;function Nd(e=!1){Is.push(ao=e?null:[])}function w7(){Is.pop(),ao=Is[Is.length-1]||null}let Zs=1;function Bd(e,t=!1){Zs+=e,e<0&&ao&&t&&(ao.hasOnce=!0)}function X3(e){return e.dynamicChildren=Zs>0?ao||aa:null,w7(),Zs>0&&ao&&ao.push(e),e}function O7(e,t,n,o,r,i){return X3(qn(e,t,n,o,r,i,!0))}function h0(e,t,n,o,r){return X3(p(e,t,n,o,r,!0))}function qt(e){return e?e.__v_isVNode===!0:!1}function qi(e,t){return e.type===t.type&&e.key===t.key}const U3=({key:e})=>e??null,Du=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Wt(e)||kt(e)||at(e)?{i:lo,r:e,k:t,f:!!n}:e:null);function qn(e,t=null,n=null,o=0,r=null,i=e===Ve?0:1,l=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&U3(t),ref:t&&Du(t),scopeId:m3,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:lo};return a?(v0(s,n),i&128&&e.normalize(s)):n&&(s.shapeFlag|=Wt(n)?8:16),Zs>0&&!l&&ao&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&ao.push(s),s}const p=P7;function P7(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===WM)&&(e=mn),qt(e)){const a=cn(e,t,!0);return n&&v0(a,n),Zs>0&&!i&&ao&&(a.shapeFlag&6?ao[ao.indexOf(e)]=a:ao.push(a)),a.patchFlag=-2,a}if(B7(e)&&(e=e.__vccOpts),t){t=I7(t);let{class:a,style:s}=t;a&&!Wt(a)&&(t.class=Jm(a)),Mt(s)&&(Uf(s)&&!rt(s)&&(s=sn({},s)),t.style=Gf(s))}const l=Wt(e)?1:G3(e)?128:y3(e)?64:Mt(e)?4:at(e)?2:0;return qn(e,t,n,o,r,l,i,!0)}function I7(e){return e?Uf(e)||L3(e)?sn({},e):e:null}function cn(e,t,n=!1,o=!1){const{props:r,ref:i,patchFlag:l,children:a,transition:s}=e,u=t?T7(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&U3(u),ref:t&&t.ref?n&&i?rt(i)?i.concat(Du(t)):[i,Du(t)]:Du(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ve?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cn(e.ssContent),ssFallback:e.ssFallback&&cn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&o&&ml(c,s.clone(c)),c}function Ft(e=" ",t=0){return p(Ei,null,e,t)}function Hfe(e="",t=!1){return t?(Nd(),h0(mn,null,e)):p(mn,null,e)}function cr(e){return e==null||typeof e=="boolean"?p(mn):rt(e)?p(Ve,null,e.slice()):qt(e)?ui(e):p(Ei,null,String(e))}function ui(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:cn(e)}function v0(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(rt(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),v0(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!L3(t)?t._ctx=lo:r===3&&lo&&(lo.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else at(t)?(t={default:t,_ctx:lo},n=32):(t=String(t),o&64?(n=16,t=[Ft(t)]):n=8);e.children=t,e.shapeFlag|=n}function T7(...e){const t={};for(let n=0;nIn||lo;let kd,hv;{const e=Kf(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),i=>{r.length>1?r.forEach(l=>l(i)):r[0](i)}};kd=t("__VUE_INSTANCE_SETTERS__",n=>In=n),hv=t("__VUE_SSR_SETTERS__",n=>Qs=n)}const wc=e=>{const t=In;return kd(e),e.scope.on(),()=>{e.scope.off(),kd(t)}},oS=()=>{In&&In.scope.off(),kd(null)};function Y3(e){return e.vnode.shapeFlag&4}let Qs=!1;function A7(e,t=!1,n=!1){t&&hv(t);const{props:o,children:r}=e.vnode,i=Y3(e);p7(e,o,i,t),m7(e,r,n||t);const l=i?R7(e,t):void 0;return t&&hv(!1),l}function R7(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,GM);const{setup:o}=n;if(o){zr();const r=e.setupContext=o.length>1?Z3(e):null,i=wc(e),l=xc(o,e,0,[e.props,r]),a=F4(l);if(Hr(),i(),(a||e.sp)&&!Os(e)&&I3(e),a){if(l.then(oS,oS),t)return l.then(s=>{rS(e,s)}).catch(s=>{Yf(s,e,0)});e.asyncDep=l}else rS(e,l)}else q3(e)}function rS(e,t,n){at(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Mt(t)&&(e.setupState=d3(t)),q3(e)}function q3(e,t,n){const o=e.type;e.render||(e.render=o.render||dr);{const r=wc(e);zr();try{YM(e)}finally{Hr(),r()}}}const D7={get(e,t){return On(e,"get",""),e[t]}};function Z3(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,D7),slots:e.slots,emit:e.emit,expose:t}}function np(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(d3(a0(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ps)return Ps[n](e)},has(t,n){return n in t||n in Ps}})):e.proxy}function N7(e,t=!0){return at(e)?e.displayName||e.name:e.name||t&&e.__name}function B7(e){return at(e)&&"__vccOpts"in e}const P=(e,t)=>EM(e,t,Qs);function Vr(e,t,n){try{Bd(-1);const o=arguments.length;return o===2?Mt(t)&&!rt(t)?qt(t)?p(e,null,[t]):p(e,t):p(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&qt(n)&&(n=[n]),p(e,t,n))}finally{Bd(1)}}const k7="3.5.25";let vv;const iS=typeof window<"u"&&window.trustedTypes;if(iS)try{vv=iS.createPolicy("vue",{createHTML:e=>e})}catch{}const Q3=vv?e=>vv.createHTML(e):e=>e,F7="http://www.w3.org/2000/svg",L7="http://www.w3.org/1998/Math/MathML",Pr=typeof document<"u"?document:null,lS=Pr&&Pr.createElement("template"),z7={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t==="svg"?Pr.createElementNS(F7,e):t==="mathml"?Pr.createElementNS(L7,e):n?Pr.createElement(e,{is:n}):Pr.createElement(e);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Pr.createTextNode(e),createComment:e=>Pr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Pr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const l=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{lS.innerHTML=Q3(o==="svg"?`${e}`:o==="mathml"?`${e}`:e);const a=lS.content;if(o==="svg"||o==="mathml"){const s=a.firstChild;for(;s.firstChild;)a.appendChild(s.firstChild);a.removeChild(s)}t.insertBefore(a,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ni="transition",rs="animation",wa=Symbol("_vtc"),J3={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},eO=sn({},x3,J3),H7=e=>(e.displayName="Transition",e.props=eO,e),un=H7((e,{slots:t})=>Vr(kM,tO(e),t)),Hi=(e,t=[])=>{rt(e)?e.forEach(n=>n(...t)):e&&e(...t)},aS=e=>e?rt(e)?e.some(t=>t.length>1):e.length>1:!1;function tO(e){const t={};for(const A in e)A in J3||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:s=i,appearActiveClass:u=l,appearToClass:c=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,v=j7(r),h=v&&v[0],b=v&&v[1],{onBeforeEnter:y,onEnter:S,onEnterCancelled:$,onLeave:x,onLeaveCancelled:C,onBeforeAppear:O=y,onAppear:w=S,onAppearCancelled:I=$}=t,T=(A,R,z,_)=>{A._enterCancelled=_,ii(A,R?c:a),ii(A,R?u:l),z&&z()},M=(A,R)=>{A._isLeaving=!1,ii(A,d),ii(A,g),ii(A,f),R&&R()},E=A=>(R,z)=>{const _=A?w:S,N=()=>T(R,A,z);Hi(_,[R,N]),sS(()=>{ii(R,A?s:i),or(R,A?c:a),aS(_)||cS(R,o,h,N)})};return sn(t,{onBeforeEnter(A){Hi(y,[A]),or(A,i),or(A,l)},onBeforeAppear(A){Hi(O,[A]),or(A,s),or(A,u)},onEnter:E(!1),onAppear:E(!0),onLeave(A,R){A._isLeaving=!0;const z=()=>M(A,R);or(A,d),A._enterCancelled?(or(A,f),mv(A)):(mv(A),or(A,f)),sS(()=>{A._isLeaving&&(ii(A,d),or(A,g),aS(x)||cS(A,o,b,z))}),Hi(x,[A,z])},onEnterCancelled(A){T(A,!1,void 0,!0),Hi($,[A])},onAppearCancelled(A){T(A,!0,void 0,!0),Hi(I,[A])},onLeaveCancelled(A){M(A),Hi(C,[A])}})}function j7(e){if(e==null)return null;if(Mt(e))return[Bg(e.enter),Bg(e.leave)];{const t=Bg(e);return[t,t]}}function Bg(e){return ZE(e)}function or(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[wa]||(e[wa]=new Set)).add(t)}function ii(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[wa];n&&(n.delete(t),n.size||(e[wa]=void 0))}function sS(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let V7=0;function cS(e,t,n,o){const r=e._endId=++V7,i=()=>{r===e._endId&&o()};if(n!=null)return setTimeout(i,n);const{type:l,timeout:a,propCount:s}=nO(e,t);if(!l)return o();const u=l+"end";let c=0;const d=()=>{e.removeEventListener(u,f),i()},f=g=>{g.target===e&&++c>=s&&d()};setTimeout(()=>{c(n[v]||"").split(", "),r=o(`${ni}Delay`),i=o(`${ni}Duration`),l=uS(r,i),a=o(`${rs}Delay`),s=o(`${rs}Duration`),u=uS(a,s);let c=null,d=0,f=0;t===ni?l>0&&(c=ni,d=l,f=i.length):t===rs?u>0&&(c=rs,d=u,f=s.length):(d=Math.max(l,u),c=d>0?l>u?ni:rs:null,f=c?c===ni?i.length:s.length:0);const g=c===ni&&/\b(?:transform|all)(?:,|$)/.test(o(`${ni}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:g}}function uS(e,t){for(;e.lengthdS(n)+dS(e[o])))}function dS(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function mv(e){return(e?e.ownerDocument:document).body.offsetHeight}function W7(e,t,n){const o=e[wa];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Fd=Symbol("_vod"),oO=Symbol("_vsh"),jn={name:"show",beforeMount(e,{value:t},{transition:n}){e[Fd]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):is(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),is(e,!0),o.enter(e)):o.leave(e,()=>{is(e,!1)}):is(e,t))},beforeUnmount(e,{value:t}){is(e,t)}};function is(e,t){e.style.display=t?e[Fd]:"none",e[oO]=!t}const K7=Symbol(""),G7=/(?:^|;)\s*display\s*:/;function X7(e,t,n){const o=e.style,r=Wt(n);let i=!1;if(n&&!r){if(t)if(Wt(t))for(const l of t.split(";")){const a=l.slice(0,l.indexOf(":")).trim();n[a]==null&&Nu(o,a,"")}else for(const l in t)n[l]==null&&Nu(o,l,"");for(const l in n)l==="display"&&(i=!0),Nu(o,l,n[l])}else if(r){if(t!==n){const l=o[K7];l&&(n+=";"+l),o.cssText=n,i=G7.test(n)}}else t&&e.removeAttribute("style");Fd in e&&(e[Fd]=i?o.display:"",e[oO]&&(o.display="none"))}const fS=/\s*!important$/;function Nu(e,t,n){if(rt(n))n.forEach(o=>Nu(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=U7(e,t);fS.test(n)?e.setProperty(Pl(o),n.replace(fS,""),"important"):e[o]=n}}const pS=["Webkit","Moz","ms"],kg={};function U7(e,t){const n=kg[t];if(n)return n;let o=Eo(t);if(o!=="filter"&&o in e)return kg[t]=o;o=Wf(o);for(let r=0;rFg||(J7.then(()=>Fg=0),Fg=Date.now());function t_(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Go(n_(o,n.value),t,5,[o])};return n.value=e,n.attached=e_(),n}function n_(e,t){if(rt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const yS=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,o_=(e,t,n,o,r,i)=>{const l=r==="svg";t==="class"?W7(e,o,l):t==="style"?X7(e,n,o):zf(t)?Zm(t)||Z7(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):r_(e,t,o,l))?(vS(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&hS(e,t,o,l,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Wt(o))?vS(e,Eo(t),o,i,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),hS(e,t,o,l))};function r_(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&yS(t)&&at(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return yS(t)&&Wt(n)?!1:t in e}const rO=new WeakMap,iO=new WeakMap,Ld=Symbol("_moveCb"),SS=Symbol("_enterCb"),i_=e=>(delete e.props.mode,e),l_=i_({name:"TransitionGroup",props:sn({},eO,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=pn(),o=C3();let r,i;return An(()=>{if(!r.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!u_(r[0].el,n.vnode.el,l)){r=[];return}r.forEach(a_),r.forEach(s_);const a=r.filter(c_);mv(n.vnode.el),a.forEach(s=>{const u=s.el,c=u.style;or(u,l),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[Ld]=f=>{f&&f.target!==u||(!f||f.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",d),u[Ld]=null,ii(u,l))};u.addEventListener("transitionend",d)}),r=[]}),()=>{const l=Je(e),a=tO(l);let s=l.tag||Ve;if(r=[],i)for(let u=0;u{a.split(/\s+/).forEach(s=>s&&o.classList.remove(s))}),n.split(/\s+/).forEach(a=>a&&o.classList.add(a)),o.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(o);const{hasTransform:l}=nO(o);return i.removeChild(o),l}const d_=["ctrl","shift","alt","meta"],f_={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>d_.some(n=>e[`${n}Key`]&&!t.includes(n))},$S=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=((r,...i)=>{for(let l=0;l{lO().render(...e)}),aO=((...e)=>{const t=lO().createApp(...e),{mount:n}=t;return t.mount=o=>{const r=h_(o);if(!r)return;const i=t._component;!at(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const l=n(r,!1,g_(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t});function g_(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function h_(e){return Wt(e)?document.querySelector(e):e}let sO;const rp=e=>sO=e,cO=Symbol();function bv(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ts;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ts||(Ts={}));function v_(){const e=G4(!0),t=e.run(()=>re({}));let n=[],o=[];const r=a0({install(i){rp(r),r._a=i,i.provide(cO,r),i.config.globalProperties.$pinia=r,o.forEach(l=>n.push(l)),o=[]},use(i){return this._a?n.push(i):o.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const uO=()=>{};function xS(e,t,n,o=uO){e.add(t);const r=()=>{e.delete(t)&&o()};return!n&&e0()&&X4(r),r}function Hl(e,...t){e.forEach(n=>{n(...t)})}const m_=e=>e(),wS=Symbol(),Lg=Symbol();function yv(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,o)=>e.set(o,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];bv(r)&&bv(o)&&e.hasOwnProperty(n)&&!kt(o)&&!Fr(o)?e[n]=yv(r,o):e[n]=o}return e}const b_=Symbol();function y_(e){return!bv(e)||!Object.prototype.hasOwnProperty.call(e,b_)}const{assign:li}=Object;function S_(e){return!!(kt(e)&&e.effect)}function $_(e,t,n,o){const{state:r,actions:i,getters:l}=t,a=n.state.value[e];let s;function u(){a||(n.state.value[e]=r?r():{});const c=jo(n.state.value[e]);return li(c,i,Object.keys(l||{}).reduce((d,f)=>(d[f]=a0(P(()=>{rp(n);const g=n._s.get(e);return l[f].call(g,g)})),d),{}))}return s=dO(e,u,t,n,o,!0),s}function dO(e,t,n={},o,r,i){let l;const a=li({actions:{}},n),s={deep:!0};let u,c,d=new Set,f=new Set,g;const v=o.state.value[e];!i&&!v&&(o.state.value[e]={}),re({});let h;function b(I){let T;u=c=!1,typeof I=="function"?(I(o.state.value[e]),T={type:Ts.patchFunction,storeId:e,events:g}):(yv(o.state.value[e],I),T={type:Ts.patchObject,payload:I,storeId:e,events:g});const M=h=Symbol();ot().then(()=>{h===M&&(u=!0)}),c=!0,Hl(d,T,o.state.value[e])}const y=i?function(){const{state:T}=n,M=T?T():{};this.$patch(E=>{li(E,M)})}:uO;function S(){l.stop(),d.clear(),f.clear(),o._s.delete(e)}const $=(I,T="")=>{if(wS in I)return I[Lg]=T,I;const M=function(){rp(o);const E=Array.from(arguments),A=new Set,R=new Set;function z(B){A.add(B)}function _(B){R.add(B)}Hl(f,{args:E,name:M[Lg],store:C,after:z,onError:_});let N;try{N=I.apply(this&&this.$id===e?this:C,E)}catch(B){throw Hl(R,B),B}return N instanceof Promise?N.then(B=>(Hl(A,B),B)).catch(B=>(Hl(R,B),Promise.reject(B))):(Hl(A,N),N)};return M[wS]=!0,M[Lg]=T,M},x={_p:o,$id:e,$onAction:xS.bind(null,f),$patch:b,$reset:y,$subscribe(I,T={}){const M=xS(d,I,T.detached,()=>E()),E=l.run(()=>ye(()=>o.state.value[e],A=>{(T.flush==="sync"?c:u)&&I({storeId:e,type:Ts.direct,events:g},A)},li({},s,T)));return M},$dispose:S},C=ct(x);o._s.set(e,C);const w=(o._a&&o._a.runWithContext||m_)(()=>o._e.run(()=>(l=G4()).run(()=>t({action:$}))));for(const I in w){const T=w[I];if(kt(T)&&!S_(T)||Fr(T))i||(v&&y_(T)&&(kt(T)?T.value=v[I]:yv(T,v[I])),o.state.value[e][I]=T);else if(typeof T=="function"){const M=$(T,I);w[I]=M,a.actions[I]=T}}return li(C,w),li(Je(C),w),Object.defineProperty(C,"$state",{get:()=>o.state.value[e],set:I=>{b(T=>{li(T,I)})}}),o._p.forEach(I=>{li(C,l.run(()=>I({store:C,app:o._a,pinia:o,options:a})))}),v&&i&&n.hydrate&&n.hydrate(C.$state,v),u=!0,c=!0,C}function C_(e,t,n){let o;const r=typeof t=="function";o=r?n:t;function i(l,a){const s=n7();return l=l||(s?He(cO,null):null),l&&rp(l),l=sO,l._s.has(e)||(r?dO(e,t,o,l):$_(e,o,l)),l._s.get(e)}return i.$id=e,i}function Js(e){"@babel/helpers - typeof";return Js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Js(e)}function x_(e,t){if(Js(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t);if(Js(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function w_(e){var t=x_(e,"string");return Js(t)=="symbol"?t:t+""}function O_(e,t,n){return(t=w_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function D(e){for(var t=1;ttypeof e=="function",P_=Array.isArray,I_=e=>typeof e=="string",T_=e=>e!==null&&typeof e=="object",E_=/^on[^a-z]/,M_=e=>E_.test(e),m0=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},__=/-(\w)/g,ka=m0(e=>e.replace(__,(t,n)=>n?n.toUpperCase():"")),A_=/\B([A-Z])/g,R_=m0(e=>e.replace(A_,"-$1").toLowerCase()),D_=m0(e=>e.charAt(0).toUpperCase()+e.slice(1)),N_=Object.prototype.hasOwnProperty,PS=(e,t)=>N_.call(e,t);function B_(e,t,n,o){const r=e[n];if(r!=null){const i=PS(r,"default");if(i&&o===void 0){const l=r.default;o=r.type!==Function&&Sv(l)?l():l}r.type===Boolean&&(!PS(t,n)&&!i?o=!1:o===""&&(o=!0))}return o}function k_(e){return Object.keys(e).reduce((t,n)=>((n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n]),t),{})}function Zi(e){return typeof e=="number"?`${e}px`:e}function ta(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return typeof e=="function"?e(t):e??n}function F_(e){let t;const n=new Promise(r=>{t=e(()=>{r(!0)})}),o=()=>{t?.()};return o.then=(r,i)=>n.then(r,i),o.promise=n,o}function le(){const e=[];for(let t=0;t0},e.prototype.connect_=function(){!$v||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),W_?(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(){!$v||!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(t){var n=t.propertyName,o=n===void 0?"":n,r=V_.some(function(i){return!!~o.indexOf(i)});r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),pO=(function(e,t){for(var n=0,o=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Oa(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new J_(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Oa(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(o){return new eA(o.target,o.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),hO=typeof WeakMap<"u"?new WeakMap:new fO,vO=(function(){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=K_.getInstance(),o=new tA(t,n,this);hO.set(this,o)}return e})();["observe","unobserve","disconnect"].forEach(function(e){vO.prototype[e]=function(){var t;return(t=hO.get(this))[e].apply(t,arguments)}});var b0=(function(){return typeof zd.ResizeObserver<"u"?zd.ResizeObserver:vO})();const Cv=e=>e!=null&&e!=="",Ze=(e,t)=>{const n=m({},e);return Object.keys(t).forEach(o=>{const r=n[o];if(r)r.type||r.default?r.default=t[o]:r.def?r.def(t[o]):n[o]={type:r,default:t[o]};else throw new Error(`not have ${o} prop`)}),n},y0=e=>{const t=Object.keys(e),n={},o={},r={};for(let i=0,l=t.length;i0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n={},o=/;(?![^(]*\))/g,r=/:(.+)/;return typeof e=="object"?e:(e.split(o).forEach(function(i){if(i){const l=i.split(r);if(l.length>1){const a=t?ka(l[0].trim()):l[0].trim();n[a]=l[1].trim()}}}),n)},Ar=(e,t)=>e[t]!==void 0,mO=Symbol("skipFlatten"),bt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=Array.isArray(e)?e:[e],o=[];return n.forEach(r=>{Array.isArray(r)?o.push(...bt(r,t)):r&&r.type===Ve?r.key===mO?o.push(r):o.push(...bt(r.children,t)):r&&qt(r)?t&&!Oc(r)?o.push(r):t||o.push(r):Cv(r)&&o.push(r)}),o},lp=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(qt(e))return e.type===Ve?t==="default"?bt(e.children):[]:e.children&&e.children[t]?bt(e.children[t](n)):[];{const o=e.$slots[t]&&e.$slots[t](n);return bt(o)}},Hn=e=>{var t;let n=((t=e?.vnode)===null||t===void 0?void 0:t.el)||e&&(e.$el||e);for(;n&&!n.tagName;)n=n.nextSibling;return n},bO=e=>{const t={};if(e.$&&e.$.vnode){const n=e.$.vnode.props||{};Object.keys(e.$props).forEach(o=>{const r=e.$props[o],i=R_(o);(r!==void 0||i in n)&&(t[o]=r)})}else if(qt(e)&&typeof e.type=="object"){const n=e.props||{},o={};Object.keys(n).forEach(i=>{o[ka(i)]=n[i]});const r=e.type.props||{};Object.keys(r).forEach(i=>{const l=B_(r,o,i,o[i]);(l!==void 0||i in o)&&(t[i]=l)})}return t},yO=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,r;if(e.$){const i=e[t];if(i!==void 0)return typeof i=="function"&&o?i(n):i;r=e.$slots[t],r=o&&r?r(n):r}else if(qt(e)){const i=e.props&&e.props[t];if(i!==void 0&&e.props!==null)return typeof i=="function"&&o?i(n):i;e.type===Ve?r=e.children:e.children&&e.children[t]&&(r=e.children[t],r=o&&r?r(n):r)}return Array.isArray(r)&&(r=bt(r),r=r.length===1?r[0]:r,r=r.length===0?void 0:r),r};function TS(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n={};return e.$?n=m(m({},n),e.$attrs):n=m(m({},n),e.props),y0(n)[t?"onEvents":"events"]}function oA(e){const n=((qt(e)?e.props:e.$attrs)||{}).class||{};let o={};return typeof n=="string"?n.split(" ").forEach(r=>{o[r.trim()]=!0}):Array.isArray(n)?le(n).split(" ").forEach(r=>{o[r.trim()]=!0}):o=m(m({},o),n),o}function SO(e,t){let o=((qt(e)?e.props:e.$attrs)||{}).style||{};return typeof o=="string"&&(o=nA(o,t)),o}function rA(e){return e.length===1&&e[0].type===Ve}function iA(e){return e==null||e===""||Array.isArray(e)&&e.length===0}function Oc(e){return e&&(e.type===mn||e.type===Ve&&e.children.length===0||e.type===Ei&&e.children.trim()==="")}function lA(e){return e&&e.type===Ei}function _t(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=[];return e.forEach(n=>{Array.isArray(n)?t.push(...n):n?.type===Ve?t.push(..._t(n.children)):t.push(n)}),t.filter(n=>!Oc(n))}function ls(e){if(e){const t=_t(e);return t.length?t:void 0}else return e}function Kt(e){return Array.isArray(e)&&e.length===1&&(e=e[0]),e&&e.__v_isVNode&&typeof e.type!="symbol"}function Zt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";var o,r;return(o=t[n])!==null&&o!==void 0?o:(r=e[n])===null||r===void 0?void 0:r.call(e)}const Mo=oe({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(e,t){let{slots:n}=t;const o=ct({width:0,height:0,offsetHeight:0,offsetWidth:0});let r=null,i=null;const l=()=>{i&&(i.disconnect(),i=null)},a=c=>{const{onResize:d}=e,f=c[0].target,{width:g,height:v}=f.getBoundingClientRect(),{offsetWidth:h,offsetHeight:b}=f,y=Math.floor(g),S=Math.floor(v);if(o.width!==y||o.height!==S||o.offsetWidth!==h||o.offsetHeight!==b){const $={width:y,height:S,offsetWidth:h,offsetHeight:b};m(o,$),d&&Promise.resolve().then(()=>{d(m(m({},$),{offsetWidth:h,offsetHeight:b}),f)})}},s=pn(),u=()=>{const{disabled:c}=e;if(c){l();return}const d=Hn(s);d!==r&&(l(),r=d),!i&&d&&(i=new b0(a),i.observe(d))};return je(()=>{u()}),An(()=>{u()}),$n(()=>{l()}),ye(()=>e.disabled,()=>{u()},{flush:"post"}),()=>{var c;return(c=n.default)===null||c===void 0?void 0:c.call(n)[0]}}});let $O=e=>setTimeout(e,16),CO=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&($O=e=>window.requestAnimationFrame(e),CO=e=>window.cancelAnimationFrame(e));let ES=0;const S0=new Map;function xO(e){S0.delete(e)}function qe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ES+=1;const n=ES;function o(r){if(r===0)xO(n),e();else{const i=$O(()=>{o(r-1)});S0.set(n,i)}}return o(t),n}qe.cancel=e=>{const t=S0.get(e);return xO(t),CO(t)};function xv(e){let t;const n=r=>()=>{t=null,e(...r)},o=function(){if(t==null){for(var r=arguments.length,i=new Array(r),l=0;l{qe.cancel(t),t=null},o}const Sn=function(){for(var e=arguments.length,t=new Array(e),n=0;n{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function bl(){return{type:[Function,Array]}}function De(e){return{type:Object,default:e}}function $e(e){return{type:Boolean,default:e}}function ve(e){return{type:Function,default:e}}function yt(e,t){return{validator:()=>!0,default:e}}function Pn(){return{validator:()=>!0}}function lt(e){return{type:Array,default:e}}function Ne(e){return{type:String,default:e}}function Fe(e,t){return e?{type:e,default:t}:yt(t)}let Yt=!1;try{const e=Object.defineProperty({},"passive",{get(){Yt=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch{}function Et(e,t,n,o){if(e&&e.addEventListener){let r=o;r===void 0&&Yt&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(r={passive:!1}),e.addEventListener(t,n,r)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(t,n)}}}function Jc(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function MS(e,t,n){if(n!==void 0&&t.top>e.top-n)return`${n+t.top}px`}function _S(e,t,n){if(n!==void 0&&t.bottomo.target===e);n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},Es.push(n),wO.forEach(o=>{n.eventHandlers[o]=Et(e,o,()=>{n.affixList.forEach(r=>{const{lazyUpdatePosition:i}=r.exposed;i()},(o==="touchstart"||o==="touchmove")&&Yt?{passive:!0}:!1)})}))}function RS(e){const t=Es.find(n=>{const o=n.affixList.some(r=>r===e);return o&&(n.affixList=n.affixList.filter(r=>r!==e)),o});t&&t.affixList.length===0&&(Es=Es.filter(n=>n!==t),wO.forEach(n=>{const o=t.eventHandlers[n];o&&o.remove&&o.remove()}))}const $0="anticon",OO=Symbol("GlobalFormContextKey"),sA=e=>{Xe(OO,e)},cA=()=>He(OO,{validateMessages:P(()=>{})}),uA=()=>({iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:De(),input:De(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:De(),pageHeader:De(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:"ltr"},space:De(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:De(),pagination:De(),theme:De(),select:De(),wave:De()}),C0=Symbol("configProvider"),PO={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:P(()=>$0),getPopupContainer:P(()=>()=>document.body),direction:P(()=>"ltr")},ap=()=>He(C0,PO),dA=e=>Xe(C0,e),IO=Symbol("DisabledContextKey"),Jn=()=>He(IO,re(void 0)),TO=e=>{const t=Jn();return Xe(IO,P(()=>{var n;return(n=e.value)!==null&&n!==void 0?n:t.value})),e},EO={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",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"},fA={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"},MO={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},ec={lang:m({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"]},fA),timePickerLocale:m({},MO)},to="${label} is not a valid ${type}",Vn={locale:"en",Pagination:EO,DatePicker:ec,TimePicker:MO,Calendar:ec,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"},PageHeader:{back:"Back"},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:to,method:to,array:to,object:to,number:to,date:to,boolean:to,integer:to,float:to,regexp:to,email:to,url:to,hex:to},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"}},Il=oe({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(e,t){let{slots:n}=t;const o=He("localeData",{}),r=P(()=>{const{componentName:l="global",defaultLocale:a}=e,s=a||Vn[l||"global"],{antLocale:u}=o,c=l&&u?u[l]:{};return m(m({},typeof s=="function"?s():s),c||{})}),i=P(()=>{const{antLocale:l}=o,a=l&&l.locale;return l&&l.exist&&!a?Vn.locale:a});return()=>{const l=e.children||n.default,{antLocale:a}=o;return l?.(r.value,i.value,a)}}});function Do(e,t,n){const o=He("localeData",{});return[P(()=>{const{antLocale:i}=o,l=St(t)||Vn[e||"global"],a=e&&i?i[e]:{};return m(m(m({},typeof l=="function"?l():l),a||{}),St(n)||{})})]}function x0(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}const DS="%";class pA{constructor(t){this.cache=new Map,this.instanceId=t}get(t){return this.cache.get(Array.isArray(t)?t.join(DS):t)||null}update(t,n){const o=Array.isArray(t)?t.join(DS):t,r=this.cache.get(o),i=n(r);i===null?this.cache.delete(o):this.cache.set(o,i)}}const _O="data-token-hash",cl="data-css-hash",na="__cssinjs_instance__";function tc(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${cl}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(r=>{r[na]=r[na]||e,r[na]===e&&document.head.insertBefore(r,n)});const o={};Array.from(document.querySelectorAll(`style[${cl}]`)).forEach(r=>{var i;const l=r.getAttribute(cl);o[l]?r[na]===e&&((i=r.parentNode)===null||i===void 0||i.removeChild(r)):o[l]=!0})}return new pA(e)}const AO=Symbol("StyleContextKey"),gA=()=>{var e,t,n;const o=pn();let r;if(o&&o.appContext){const i=(n=(t=(e=o.appContext)===null||e===void 0?void 0:e.config)===null||t===void 0?void 0:t.globalProperties)===null||n===void 0?void 0:n.__ANTDV_CSSINJS_CACHE__;i?r=i:(r=tc(),o.appContext.config.globalProperties&&(o.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=r))}else r=tc();return r},RO={cache:tc(),defaultCache:!0,hashPriority:"low"},sp=()=>{const e=gA();return He(AO,ne(m(m({},RO),{cache:e})))},hA=e=>{const t=sp(),n=ne(m(m({},RO),{cache:tc()}));return ye([()=>St(e),t],()=>{const o=m({},t.value),r=St(e);Object.keys(r).forEach(l=>{const a=r[l];r[l]!==void 0&&(o[l]=a)});const{cache:i}=r;o.cache=o.cache||tc(),o.defaultCache=!i&&t.value.defaultCache,n.value=o},{immediate:!0}),Xe(AO,n),n},vA=()=>({autoClear:$e(),mock:Ne(),cache:De(),defaultCache:$e(),hashPriority:Ne(),container:Fe(),ssrInline:$e(),transformers:lt(),linters:lt()}),mA=It(oe({name:"AStyleProvider",inheritAttrs:!1,props:vA(),setup(e,t){let{slots:n}=t;return hA(e),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}));function DO(e,t,n,o){const r=sp(),i=ne(""),l=ne();Le(()=>{i.value=[e,...t.value].join("%")});const a=s=>{r.value.cache.update(s,u=>{const[c=0,d]=u||[];return c-1===0?(o?.(d,!1),null):[c-1,d]})};return ye(i,(s,u)=>{u&&a(u),r.value.cache.update(s,c=>{const[d=0,f]=c||[],v=f||n();return[d+1,v]}),l.value=r.value.cache.get(i.value)[1]},{immediate:!0}),Qe(()=>{a(i.value)}),l}function Mn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function pi(e,t){return e&&e.contains?e.contains(t):!1}const NS="data-vc-order",bA="vc-util-key",wv=new Map;function NO(){let{mark:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:bA}function cp(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function yA(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function BO(e){return Array.from((wv.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function kO(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Mn())return null;const{csp:n,prepend:o}=t,r=document.createElement("style");r.setAttribute(NS,yA(o)),n?.nonce&&(r.nonce=n?.nonce),r.innerHTML=e;const i=cp(t),{firstChild:l}=i;if(o){if(o==="queue"){const a=BO(i).filter(s=>["prepend","prependQueue"].includes(s.getAttribute(NS)));if(a.length)return i.insertBefore(r,a[a.length-1].nextSibling),r}i.insertBefore(r,l)}else i.appendChild(r);return r}function FO(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=cp(t);return BO(n).find(o=>o.getAttribute(NO(t))===e)}function jd(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=FO(e,t);n&&cp(t).removeChild(n)}function SA(e,t){const n=wv.get(e);if(!n||!pi(document,n)){const o=kO("",t),{parentNode:r}=o;wv.set(e,r),e.removeChild(o)}}function nc(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var o,r,i;const l=cp(n);SA(l,n);const a=FO(t,n);if(a)return!((o=n.csp)===null||o===void 0)&&o.nonce&&a.nonce!==((r=n.csp)===null||r===void 0?void 0:r.nonce)&&(a.nonce=(i=n.csp)===null||i===void 0?void 0:i.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;const s=kO(e,n);return s.setAttribute(NO(n),t),s}function $A(e,t){if(e.length!==t.length)return!1;for(let n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return t.forEach(r=>{var i;o?o=(i=o?.map)===null||i===void 0?void 0:i.get(r):o=void 0}),o?.value&&n&&(o.value[1]=this.cacheCallTimes++),o?.value}get(t){var n;return(n=this.internalGet(t,!0))===null||n===void 0?void 0:n[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>Pa.MAX_CACHE_SIZE+Pa.MAX_CACHE_OFFSET){const[r]=this.keys.reduce((i,l)=>{const[,a]=i;return this.internalGet(l)[1]{if(i===t.length-1)o.set(r,{value:[n,this.cacheCallTimes++]});else{const l=o.get(r);l?l.map||(l.map=new Map):o.set(r,{map:new Map}),o=o.get(r).map}})}deleteByPath(t,n){var o;const r=t.get(n[0]);if(n.length===1)return r.map?t.set(n[0],{map:r.map}):t.delete(n[0]),(o=r.value)===null||o===void 0?void 0:o[0];const i=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),i}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!$A(n,t)),this.deleteByPath(this.cache,t)}}Pa.MAX_CACHE_SIZE=20;Pa.MAX_CACHE_OFFSET=5;let BS={};function CA(e,t){}function xA(e,t){}function LO(e,t,n){!t&&!BS[n]&&(e(!1,n),BS[n]=!0)}function w0(e,t){LO(CA,e,t)}function wA(e,t){LO(xA,e,t)}function OA(){}let fo=OA,kS=0;class zO{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=kS,t.length===0&&fo(t.length>0),kS+=1}getDerivativeToken(t){return this.derivatives.reduce((n,o)=>o(t,n),void 0)}}const zg=new Pa;function HO(e){const t=Array.isArray(e)?e:[e];return zg.has(t)||zg.set(t,new zO(t)),zg.get(t)}const FS=new WeakMap;function Vd(e){let t=FS.get(e)||"";return t||(Object.keys(e).forEach(n=>{const o=e[n];t+=n,o instanceof zO?t+=o.id:o&&typeof o=="object"?t+=Vd(o):t+=o}),FS.set(e,t)),t}function PA(e,t){return x0(`${t}_${Vd(e)}`)}const Ms=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),jO="_bAmBoO_";function IA(e,t,n){var o,r;if(Mn()){nc(e,Ms);const i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",t?.(i),document.body.appendChild(i);const l=n?n(i):(o=getComputedStyle(i).content)===null||o===void 0?void 0:o.includes(jO);return(r=i.parentNode)===null||r===void 0||r.removeChild(i),jd(Ms),l}return!1}let Hg;function TA(){return Hg===void 0&&(Hg=IA(`@layer ${Ms} { .${Ms} { content: "${jO}"!important; } }`,e=>{e.className=Ms})),Hg}const LS={},EA="css",Qi=new Map;function MA(e){Qi.set(e,(Qi.get(e)||0)+1)}function _A(e,t){typeof document<"u"&&document.querySelectorAll(`style[${_O}="${e}"]`).forEach(o=>{var r;o[na]===t&&((r=o.parentNode)===null||r===void 0||r.removeChild(o))})}const AA=0;function RA(e,t){Qi.set(e,(Qi.get(e)||0)-1);const n=Array.from(Qi.keys()),o=n.filter(r=>(Qi.get(r)||0)<=0);n.length-o.length>AA&&o.forEach(r=>{_A(r,t),Qi.delete(r)})}const DA=(e,t,n,o)=>{const r=n.getDerivativeToken(e);let i=m(m({},r),t);return o&&(i=o(i)),i};function NA(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:re({});const o=sp(),r=P(()=>m({},...t.value)),i=P(()=>Vd(r.value)),l=P(()=>Vd(n.value.override||LS));return DO("token",P(()=>[n.value.salt||"",e.value.id,i.value,l.value]),()=>{const{salt:s="",override:u=LS,formatToken:c,getComputedToken:d}=n.value,f=d?d(r.value,u,e.value):DA(r.value,u,e.value,c),g=PA(f,s);f._tokenKey=g,MA(g);const v=`${EA}-${x0(g)}`;return f._hashId=v,[f,v]},s=>{var u;RA(s[0]._tokenKey,(u=o.value)===null||u===void 0?void 0:u.cache.instanceId)})}var BA={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},VO="comm",WO="rule",KO="decl",kA="@import",FA="@namespace",LA="@keyframes",zA="@layer",GO=Math.abs,O0=String.fromCharCode;function XO(e){return e.trim()}function Bu(e,t,n){return e.replace(t,n)}function HA(e,t,n){return e.indexOf(t,n)}function ua(e,t){return e.charCodeAt(t)|0}function Ia(e,t,n){return e.slice(t,n)}function sr(e){return e.length}function jA(e){return e.length}function eu(e,t){return t.push(e),e}var up=1,Ta=1,UO=0,_o=0,nn=0,Fa="";function P0(e,t,n,o,r,i,l,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:up,column:Ta,length:l,return:"",siblings:a}}function VA(){return nn}function WA(){return nn=_o>0?ua(Fa,--_o):0,Ta--,nn===10&&(Ta=1,up--),nn}function Vo(){return nn=_o2||oc(nn)>3?"":" "}function UA(e,t){for(;--t&&Vo()&&!(nn<48||nn>102||nn>57&&nn<65||nn>70&&nn<97););return dp(e,ku()+(t<6&&vi()==32&&Vo()==32))}function Ov(e){for(;Vo();)switch(nn){case e:return _o;case 34:case 39:e!==34&&e!==39&&Ov(nn);break;case 40:e===41&&Ov(e);break;case 92:Vo();break}return _o}function YA(e,t){for(;Vo()&&e+nn!==57;)if(e+nn===84&&vi()===47)break;return"/*"+dp(t,_o-1)+"*"+O0(e===47?e:Vo())}function qA(e){for(;!oc(vi());)Vo();return dp(e,_o)}function ZA(e){return GA(Fu("",null,null,null,[""],e=KA(e),0,[0],e))}function Fu(e,t,n,o,r,i,l,a,s){for(var u=0,c=0,d=l,f=0,g=0,v=0,h=1,b=1,y=1,S=0,$="",x=r,C=i,O=o,w=$;b;)switch(v=S,S=Vo()){case 40:if(v!=108&&ua(w,d-1)==58){HA(w+=Bu(jg(S),"&","&\f"),"&\f",GO(u?a[u-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:w+=jg(S);break;case 9:case 10:case 13:case 32:w+=XA(v);break;case 92:w+=UA(ku()-1,7);continue;case 47:switch(vi()){case 42:case 47:eu(QA(YA(Vo(),ku()),t,n,s),s),(oc(v||1)==5||oc(vi()||1)==5)&&sr(w)&&Ia(w,-1,void 0)!==" "&&(w+=" ");break;default:w+="/"}break;case 123*h:a[u++]=sr(w)*y;case 125*h:case 59:case 0:switch(S){case 0:case 125:b=0;case 59+c:y==-1&&(w=Bu(w,/\f/g,"")),g>0&&(sr(w)-d||h===0&&v===47)&&eu(g>32?HS(w+";",o,n,d-1,s):HS(Bu(w," ","")+";",o,n,d-2,s),s);break;case 59:w+=";";default:if(eu(O=zS(w,t,n,u,c,r,a,$,x=[],C=[],d,i),i),S===123)if(c===0)Fu(w,t,O,O,x,i,d,a,C);else{switch(f){case 99:if(ua(w,3)===110)break;case 108:if(ua(w,2)===97)break;default:c=0;case 100:case 109:case 115:}c?Fu(e,O,O,o&&eu(zS(e,O,O,0,0,r,a,$,r,x=[],d,C),C),r,C,d,a,o?x:C):Fu(w,O,O,O,[""],C,0,a,C)}}u=c=g=0,h=y=1,$=w="",d=l;break;case 58:d=1+sr(w),g=v;default:if(h<1){if(S==123)--h;else if(S==125&&h++==0&&WA()==125)continue}switch(w+=O0(S),S*h){case 38:y=c>0?1:(w+="\f",-1);break;case 44:a[u++]=(sr(w)-1)*y,y=1;break;case 64:vi()===45&&(w+=jg(Vo())),f=vi(),c=d=sr($=w+=qA(ku())),S++;break;case 45:v===45&&sr(w)==2&&(h=0)}}return i}function zS(e,t,n,o,r,i,l,a,s,u,c,d){for(var f=r-1,g=r===0?i:[""],v=jA(g),h=0,b=0,y=0;h0?g[S]+" "+$:Bu($,/&\f/g,g[S])))&&(s[y++]=x);return P0(e,t,n,r===0?WO:a,s,u,c,d)}function QA(e,t,n,o){return P0(e,t,n,VO,O0(VA()),Ia(e,2,-2),0,o)}function HS(e,t,n,o,r){return P0(e,t,n,KO,Ia(e,0,o),Ia(e,o+1,-1),o,r)}function Pv(e,t){for(var n="",o=0;o{const[i,l]=r.split(":");ul[i]=l});const o=document.querySelector(`style[${jS}]`);o&&(YO=!1,(e=o.parentNode)===null||e===void 0||e.removeChild(o)),document.body.removeChild(t)}}function nR(e){return tR(),!!ul[e]}function oR(e){const t=ul[e];let n=null;if(t&&Mn())if(YO)n=eR;else{const o=document.querySelector(`style[${cl}="${ul[e]}"]`);o?n=o.innerHTML:delete ul[e]}return[n,t]}const VS=Mn(),rR="_skip_check_",qO="_multi_value_";function WS(e){return Pv(ZA(e),JA).replace(/\{%%%\:[^;];}/g,";")}function iR(e){return typeof e=="object"&&e&&(rR in e||qO in e)}function lR(e,t,n){if(!t)return e;const o=`.${t}`,r=n==="low"?`:where(${o})`:o;return e.split(",").map(l=>{var a;const s=l.trim().split(/\s+/);let u=s[0]||"";const c=((a=u.match(/^\w+/))===null||a===void 0?void 0:a[0])||"";return u=`${c}${r}${u.slice(c.length)}`,[u,...s.slice(1)].join(" ")}).join(",")}const KS=new Set,Iv=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{root:n,injectHash:o,parentSelectors:r}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:i,layer:l,path:a,hashPriority:s,transformers:u=[],linters:c=[]}=t;let d="",f={};function g(b){const y=b.getName(i);if(!f[y]){const[S]=Iv(b.style,t,{root:!1,parentSelectors:r});f[y]=`@keyframes ${b.getName(i)}${S}`}}function v(b){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(S=>{Array.isArray(S)?v(S,y):S&&y.push(S)}),y}if(v(Array.isArray(e)?e:[e]).forEach(b=>{const y=typeof b=="string"&&!n?{}:b;if(typeof y=="string")d+=`${y} -`;else if(y._keyframe)g(y);else{const S=u.reduce(($,x)=>{var C;return((C=x?.visit)===null||C===void 0?void 0:C.call(x,$))||$},y);Object.keys(S).forEach($=>{var x;const C=S[$];if(typeof C=="object"&&C&&($!=="animationName"||!C._keyframe)&&!iR(C)){let O=!1,w=$.trim(),I=!1;(n||o)&&i?w.startsWith("@")?O=!0:w=lR($,i,s):n&&!i&&(w==="&"||w==="")&&(w="",I=!0);const[T,M]=Iv(C,t,{root:I,injectHash:O,parentSelectors:[...r,w]});f=m(m({},f),M),d+=`${w}${T}`}else{let O=function(I,T){const M=I.replace(/[A-Z]/g,A=>`-${A.toLowerCase()}`);let E=T;!BA[I]&&typeof E=="number"&&E!==0&&(E=`${E}px`),I==="animationName"&&T?._keyframe&&(g(T),E=T.getName(i)),d+=`${M}:${E};`};const w=(x=C?.value)!==null&&x!==void 0?x:C;typeof C=="object"&&C?.[qO]&&Array.isArray(w)?w.forEach(I=>{O($,I)}):O($,w)}})}}),!n)d=`{${d}}`;else if(l&&TA()){const b=l.split(",");d=`@layer ${b[b.length-1].trim()} {${d}}`,b.length>1&&(d=`@layer ${l}{%%%:%}${d}`)}return[d,f]};function aR(e,t){return x0(`${e.join("%")}${t}`)}function Tv(e,t){const n=sp(),o=P(()=>e.value.token._tokenKey),r=P(()=>[o.value,...e.value.path]);let i=VS;return DO("style",r,()=>{const{path:l,hashId:a,layer:s,nonce:u,clientOnly:c,order:d=0}=e.value,f=r.value.join("|");if(nR(f)){const[w,I]=oR(f);if(w)return[w,o.value,I,{},c,d]}const g=t(),{hashPriority:v,container:h,transformers:b,linters:y,cache:S}=n.value,[$,x]=Iv(g,{hashId:a,hashPriority:v,layer:s,path:l.join("-"),transformers:b,linters:y}),C=WS($),O=aR(r.value,C);if(i){const w={mark:cl,prepend:"queue",attachTo:h,priority:d},I=typeof u=="function"?u():u;I&&(w.csp={nonce:I});const T=nc(C,O,w);T[na]=S.instanceId,T.setAttribute(_O,o.value),Object.keys(x).forEach(M=>{KS.has(M)||(KS.add(M),nc(WS(x[M]),`_effect-${M}`,{mark:cl,prepend:"queue",attachTo:h}))})}return[C,o.value,O,x,c,d]},(l,a)=>{let[,,s]=l;(a||n.value.autoClear)&&VS&&jd(s,{mark:cl})}),l=>l}class nt{constructor(t,n){this._keyframe=!0,this.name=t,this.style=n}getName(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t?`${t}-${this.name}`:this.name}}const sR={StyleProvider:mA},ZO="4.2.6",rc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function yn(e,t){cR(e)&&(e="100%");var n=uR(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function tu(e){return Math.min(1,Math.max(0,e))}function cR(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function uR(e){return typeof e=="string"&&e.indexOf("%")!==-1}function QO(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function nu(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ol(e){return e.length===1?"0"+e:String(e)}function dR(e,t,n){return{r:yn(e,255)*255,g:yn(t,255)*255,b:yn(n,255)*255}}function GS(e,t,n){e=yn(e,255),t=yn(t,255),n=yn(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,l=0,a=(o+r)/2;if(o===r)l=0,i=0;else{var s=o-r;switch(l=a>.5?s/(2-o-r):s/(o+r),o){case e:i=(t-n)/s+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function fR(e,t,n){var o,r,i;if(e=yn(e,360),t=yn(t,100),n=yn(n,100),t===0)r=n,i=n,o=n;else{var l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;o=Vg(a,l,e+1/3),r=Vg(a,l,e),i=Vg(a,l,e-1/3)}return{r:o*255,g:r*255,b:i*255}}function Ev(e,t,n){e=yn(e,255),t=yn(t,255),n=yn(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,l=o,a=o-r,s=o===0?0:a/o;if(o===r)i=0;else{switch(o){case e:i=(t-n)/a+(t>16,g:(e&65280)>>8,b:e&255}}var _v={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"};function ql(e){var t={r:0,g:0,b:0},n=1,o=null,r=null,i=null,l=!1,a=!1;return typeof e=="string"&&(e=yR(e)),typeof e=="object"&&($r(e.r)&&$r(e.g)&&$r(e.b)?(t=dR(e.r,e.g,e.b),l=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):$r(e.h)&&$r(e.s)&&$r(e.v)?(o=nu(e.s),r=nu(e.v),t=pR(e.h,o,r),l=!0,a="hsv"):$r(e.h)&&$r(e.s)&&$r(e.l)&&(o=nu(e.s),i=nu(e.l),t=fR(e.h,o,i),l=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=QO(n),{ok:l,format:e.format||a,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 mR="[-\\+]?\\d+%?",bR="[-\\+]?\\d*\\.\\d+%?",mi="(?:".concat(bR,")|(?:").concat(mR,")"),Wg="[\\s|\\(]+(".concat(mi,")[,|\\s]+(").concat(mi,")[,|\\s]+(").concat(mi,")\\s*\\)?"),Kg="[\\s|\\(]+(".concat(mi,")[,|\\s]+(").concat(mi,")[,|\\s]+(").concat(mi,")[,|\\s]+(").concat(mi,")\\s*\\)?"),Lo={CSS_UNIT:new RegExp(mi),rgb:new RegExp("rgb"+Wg),rgba:new RegExp("rgba"+Kg),hsl:new RegExp("hsl"+Wg),hsla:new RegExp("hsla"+Kg),hsv:new RegExp("hsv"+Wg),hsva:new RegExp("hsva"+Kg),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 yR(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(_v[e])e=_v[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Lo.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Lo.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Lo.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Lo.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Lo.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Lo.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Lo.hex8.exec(e),n?{r:ro(n[1]),g:ro(n[2]),b:ro(n[3]),a:XS(n[4]),format:t?"name":"hex8"}:(n=Lo.hex6.exec(e),n?{r:ro(n[1]),g:ro(n[2]),b:ro(n[3]),format:t?"name":"hex"}:(n=Lo.hex4.exec(e),n?{r:ro(n[1]+n[1]),g:ro(n[2]+n[2]),b:ro(n[3]+n[3]),a:XS(n[4]+n[4]),format:t?"name":"hex8"}:(n=Lo.hex3.exec(e),n?{r:ro(n[1]+n[1]),g:ro(n[2]+n[2]),b:ro(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function $r(e){return!!Lo.CSS_UNIT.exec(String(e))}var pt=(function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var o;if(t instanceof e)return t;typeof t=="number"&&(t=vR(t)),this.originalInput=t;var r=ql(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=n.format)!==null&&o!==void 0?o:r.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=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,o,r,i=t.r/255,l=t.g/255,a=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*o+.0722*r},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=QO(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Ev(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Ev(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsva(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=GS(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=GS(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsla(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Mv(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),gR(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},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 t=Math.round(this.r),n=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(o,")"):"rgba(".concat(t,", ").concat(n,", ").concat(o,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(yn(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(yn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Mv(this.r,this.g,this.b,!1),n=0,o=Object.entries(_v);n=0,i=!n&&r&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(o=this.toRgbString()),t==="prgb"&&(o=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(o=this.toHexString()),t==="hex3"&&(o=this.toHexString(!0)),t==="hex4"&&(o=this.toHex8String(!0)),t==="hex8"&&(o=this.toHex8String()),t==="name"&&(o=this.toName()),t==="hsl"&&(o=this.toHslString()),t==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},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){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=tu(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=tu(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=tu(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=tu(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),i=n/100,l={r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b,a:(r.a-o.a)*i+o.a};return new e(l)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var o=this.toHsl(),r=360/n,i=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,i.push(new e(o));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){t===void 0&&(t=6);for(var n=this.toHsv(),o=n.h,r=n.s,i=n.v,l=[],a=1/t;t--;)l.push(new e({h:o,s:r,v:i})),i=(i+a)%1;return l},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(),o=new e(t).toRgb(),r=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/r,g:(n.g*n.a+o.g*o.a*(1-n.a))/r,b:(n.b*n.a+o.b*o.a*(1-n.a))/r,a:r})},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(),o=n.h,r=[this],i=360/t,l=1;l=60&&Math.round(e.h)<=240?o=n?Math.round(e.h)-ou*t:Math.round(e.h)+ou*t:o=n?Math.round(e.h)+ou*t:Math.round(e.h)-ou*t,o<0?o+=360:o>=360&&(o-=360),o}function ZS(e,t,n){if(e.h===0&&e.s===0)return e.s;var o;return n?o=e.s-US*t:t===eP?o=e.s+US:o=e.s+SR*t,o>1&&(o=1),n&&t===JO&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2))}function QS(e,t,n){var o;return n?o=e.v+$R*t:o=e.v-CR*t,o>1&&(o=1),Number(o.toFixed(2))}function yl(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],o=ql(e),r=JO;r>0;r-=1){var i=YS(o),l=ru(ql({h:qS(i,r,!0),s:ZS(i,r,!0),v:QS(i,r,!0)}));n.push(l)}n.push(ru(o));for(var a=1;a<=eP;a+=1){var s=YS(o),u=ru(ql({h:qS(s,a),s:ZS(s,a),v:QS(s,a)}));n.push(u)}return t.theme==="dark"?xR.map(function(c){var d=c.index,f=c.opacity,g=ru(wR(ql(t.backgroundColor||"#141414"),ql(n[d]),f*100));return g}):n}var da={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},_s={},Gg={};Object.keys(da).forEach(function(e){_s[e]=yl(da[e]),_s[e].primary=_s[e][5],Gg[e]=yl(da[e],{theme:"dark",backgroundColor:"#141414"}),Gg[e].primary=Gg[e][5]});var OR=_s.gold,PR=_s.blue;const IR=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function TR(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)}}const tP={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"},fp=m(m({},tP),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dash-C1BS1PJi.js","assets/system-C2wy1aIP.js","assets/DesktopOutlined-DmRiuvy2.js","assets/server-BIrLgehb.js","assets/server-D1vV5anY.css","assets/display-CU0V30l_.js","assets/cache-DYoxhx9q.js"])))=>i.map(i=>d[i]); +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&o(l)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();const WE="modulepreload",KE=function(e){return"/"+e},F1={},Fi=function(t,n,o){let r=Promise.resolve();if(n&&n.length>0){let s=function(u){return Promise.all(u.map(c=>Promise.resolve(c).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),a=l?.nonce||l?.getAttribute("nonce");r=s(n.map(u=>{if(u=KE(u),u in F1)return;F1[u]=!0;const c=u.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${d}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":WE,c||(f.as="script"),f.crossOrigin="",f.href=u,a&&f.setAttribute("nonce",a),document.head.appendChild(f),c)return new Promise((g,v)=>{f.addEventListener("load",g),f.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${u}`)))})}))}function i(l){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=l,window.dispatchEvent(a),!a.defaultPrevented)throw l}return r.then(l=>{for(const a of l||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})};function qm(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Tt={},aa=[],dr=()=>{},B4=()=>!1,zf=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Zm=e=>e.startsWith("onUpdate:"),sn=Object.assign,Qm=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},GE=Object.prototype.hasOwnProperty,Ot=(e,t)=>GE.call(e,t),rt=Array.isArray,sa=e=>Hf(e)==="[object Map]",k4=e=>Hf(e)==="[object Set]",at=e=>typeof e=="function",Wt=e=>typeof e=="string",Ti=e=>typeof e=="symbol",_t=e=>e!==null&&typeof e=="object",F4=e=>(_t(e)||at(e))&&at(e.then)&&at(e.catch),L4=Object.prototype.toString,Hf=e=>L4.call(e),XE=e=>Hf(e).slice(8,-1),z4=e=>Hf(e)==="[object Object]",jf=e=>Wt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ss=qm(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Vf=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},UE=/-\w/g,Eo=Vf(e=>e.replace(UE,t=>t.slice(1).toUpperCase())),YE=/\B([A-Z])/g,Pl=Vf(e=>e.replace(YE,"-$1").toLowerCase()),Wf=Vf(e=>e.charAt(0).toUpperCase()+e.slice(1)),Pg=Vf(e=>e?`on${Wf(e)}`:""),Si=(e,t)=>!Object.is(e,t),Ig=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})},qE=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ZE=e=>{const t=Wt(e)?Number(e):NaN;return isNaN(t)?e:t};let L1;const Kf=()=>L1||(L1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Gf(e){if(rt(e)){const t={};for(let n=0;n{if(n){const o=n.split(JE);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Jm(e){let t="";if(Wt(e))t=e;else if(rt(e))for(let n=0;n!!(e&&e.__v_isRef===!0),rM=e=>Wt(e)?e:e==null?"":rt(e)||_t(e)&&(e.toString===L4||!at(e.toString))?V4(e)?rM(e.value):JSON.stringify(e,W4,2):String(e),W4=(e,t)=>V4(t)?W4(e,t.value):sa(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,r],i)=>(n[Tg(o,i)+" =>"]=r,n),{})}:k4(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Tg(n))}:Ti(t)?Tg(t):_t(t)&&!rt(t)&&!z4(t)?String(t):t,Tg=(e,t="")=>{var n;return Ti(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let xn;class K4{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=xn,!t&&xn&&(this.index=(xn.scopes||(xn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(xn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,o;for(n=0,o=this.effects.length;n0)return;if(Cs){let t=Cs;for(Cs=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;$s;){let t=$s;for($s=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(o){e||(e=o)}t=n}}if(e)throw e}function Z4(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Q4(e){let t,n=e.depsTail,o=n;for(;o;){const r=o.prevDep;o.version===-1?(o===n&&(n=r),o0(o),iM(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=r}e.deps=t,e.depsTail=n}function lv(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(J4(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function J4(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Xs)||(e.globalVersion=Xs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!lv(e))))return;e.flags|=2;const t=e.dep,n=Nt,o=Ho;Nt=e,Ho=!0;try{Z4(e);const r=e.fn(e._value);(t.version===0||Si(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{Nt=n,Ho=o,Q4(e),e.flags&=-3}}function o0(e,t=!1){const{dep:n,prevSub:o,nextSub:r}=e;if(o&&(o.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=o,e.nextSub=void 0),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)o0(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function iM(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ho=!0;const e3=[];function zr(){e3.push(Ho),Ho=!1}function Hr(){const e=e3.pop();Ho=e===void 0?!0:e}function z1(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Nt;Nt=void 0;try{t()}finally{Nt=n}}}let Xs=0,lM=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class r0{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Nt||!Ho||Nt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Nt)n=this.activeLink=new lM(Nt,this),Nt.deps?(n.prevDep=Nt.depsTail,Nt.depsTail.nextDep=n,Nt.depsTail=n):Nt.deps=Nt.depsTail=n,t3(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const o=n.nextDep;o.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=o),n.prevDep=Nt.depsTail,n.nextDep=void 0,Nt.depsTail.nextDep=n,Nt.depsTail=n,Nt.deps===n&&(Nt.deps=o)}return n}trigger(t){this.version++,Xs++,this.notify(t)}notify(t){t0();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{n0()}}}function t3(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let o=t.deps;o;o=o.nextDep)t3(o)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ed=new WeakMap,al=Symbol(""),av=Symbol(""),Us=Symbol("");function On(e,t,n){if(Ho&&Nt){let o=Ed.get(e);o||Ed.set(e,o=new Map);let r=o.get(n);r||(o.set(n,r=new r0),r.map=o,r.key=n),r.track()}}function Mr(e,t,n,o,r,i){const l=Ed.get(e);if(!l){Xs++;return}const a=s=>{s&&s.trigger()};if(t0(),t==="clear")l.forEach(a);else{const s=rt(e),u=s&&jf(n);if(s&&n==="length"){const c=Number(o);l.forEach((d,f)=>{(f==="length"||f===Us||!Ti(f)&&f>=c)&&a(d)})}else switch((n!==void 0||l.has(void 0))&&a(l.get(n)),u&&a(l.get(Us)),t){case"add":s?u&&a(l.get("length")):(a(l.get(al)),sa(e)&&a(l.get(av)));break;case"delete":s||(a(l.get(al)),sa(e)&&a(l.get(av)));break;case"set":sa(e)&&a(l.get(al));break}}n0()}function aM(e,t){const n=Ed.get(e);return n&&n.get(t)}function zl(e){const t=Je(e);return t===e?t:(On(t,"iterate",Us),co(e)?t:t.map(Ko))}function Xf(e){return On(e=Je(e),"iterate",Us),e}function si(e,t){return jr(e)?Fr(e)?xa(Ko(t)):xa(t):Ko(t)}const sM={__proto__:null,[Symbol.iterator](){return Mg(this,Symbol.iterator,e=>si(this,e))},concat(...e){return zl(this).concat(...e.map(t=>rt(t)?zl(t):t))},entries(){return Mg(this,"entries",e=>(e[1]=si(this,e[1]),e))},every(e,t){return Sr(this,"every",e,t,void 0,arguments)},filter(e,t){return Sr(this,"filter",e,t,n=>n.map(o=>si(this,o)),arguments)},find(e,t){return Sr(this,"find",e,t,n=>si(this,n),arguments)},findIndex(e,t){return Sr(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Sr(this,"findLast",e,t,n=>si(this,n),arguments)},findLastIndex(e,t){return Sr(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Sr(this,"forEach",e,t,void 0,arguments)},includes(...e){return _g(this,"includes",e)},indexOf(...e){return _g(this,"indexOf",e)},join(e){return zl(this).join(e)},lastIndexOf(...e){return _g(this,"lastIndexOf",e)},map(e,t){return Sr(this,"map",e,t,void 0,arguments)},pop(){return os(this,"pop")},push(...e){return os(this,"push",e)},reduce(e,...t){return H1(this,"reduce",e,t)},reduceRight(e,...t){return H1(this,"reduceRight",e,t)},shift(){return os(this,"shift")},some(e,t){return Sr(this,"some",e,t,void 0,arguments)},splice(...e){return os(this,"splice",e)},toReversed(){return zl(this).toReversed()},toSorted(e){return zl(this).toSorted(e)},toSpliced(...e){return zl(this).toSpliced(...e)},unshift(...e){return os(this,"unshift",e)},values(){return Mg(this,"values",e=>si(this,e))}};function Mg(e,t,n){const o=Xf(e),r=o[t]();return o!==e&&!co(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=n(i.value)),i}),r}const cM=Array.prototype;function Sr(e,t,n,o,r,i){const l=Xf(e),a=l!==e&&!co(e),s=l[t];if(s!==cM[t]){const d=s.apply(e,i);return a?Ko(d):d}let u=n;l!==e&&(a?u=function(d,f){return n.call(this,si(e,d),f,e)}:n.length>2&&(u=function(d,f){return n.call(this,d,f,e)}));const c=s.call(l,u,o);return a&&r?r(c):c}function H1(e,t,n,o){const r=Xf(e);let i=n;return r!==e&&(co(e)?n.length>3&&(i=function(l,a,s){return n.call(this,l,a,s,e)}):i=function(l,a,s){return n.call(this,l,si(e,a),s,e)}),r[t](i,...o)}function _g(e,t,n){const o=Je(e);On(o,"iterate",Us);const r=o[t](...n);return(r===-1||r===!1)&&Uf(n[0])?(n[0]=Je(n[0]),o[t](...n)):r}function os(e,t,n=[]){zr(),t0();const o=Je(e)[t].apply(e,n);return n0(),Hr(),o}const uM=qm("__proto__,__v_isRef,__isVue"),n3=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ti));function dM(e){Ti(e)||(e=String(e));const t=Je(this);return On(t,"has",e),t.hasOwnProperty(e)}class o3{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,o){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return o===(r?i?$M:a3:i?l3:i3).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(o)?t:void 0;const l=rt(t);if(!r){let s;if(l&&(s=sM[n]))return s;if(n==="hasOwnProperty")return dM}const a=Reflect.get(t,n,kt(t)?t:o);if((Ti(n)?n3.has(n):uM(n))||(r||On(t,"get",n),i))return a;if(kt(a)){const s=l&&jf(n)?a:a.value;return r&&_t(s)?cv(s):s}return _t(a)?r?cv(a):ct(a):a}}class r3 extends o3{constructor(t=!1){super(!1,t)}set(t,n,o,r){let i=t[n];const l=rt(t)&&jf(n);if(!this._isShallow){const u=jr(i);if(!co(o)&&!jr(o)&&(i=Je(i),o=Je(o)),!l&&kt(i)&&!kt(o))return u||(i.value=o),!0}const a=l?Number(n)e,Uc=e=>Reflect.getPrototypeOf(e);function vM(e,t,n){return function(...o){const r=this.__v_raw,i=Je(r),l=sa(i),a=e==="entries"||e===Symbol.iterator&&l,s=e==="keys"&&l,u=r[e](...o),c=n?sv:t?xa:Ko;return!t&&On(i,"iterate",s?av:al),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:a?[c(d[0]),c(d[1])]:c(d),done:f}},[Symbol.iterator](){return this}}}}function Yc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function mM(e,t){const n={get(r){const i=this.__v_raw,l=Je(i),a=Je(r);e||(Si(r,a)&&On(l,"get",r),On(l,"get",a));const{has:s}=Uc(l),u=t?sv:e?xa:Ko;if(s.call(l,r))return u(i.get(r));if(s.call(l,a))return u(i.get(a));i!==l&&i.get(r)},get size(){const r=this.__v_raw;return!e&&On(Je(r),"iterate",al),r.size},has(r){const i=this.__v_raw,l=Je(i),a=Je(r);return e||(Si(r,a)&&On(l,"has",r),On(l,"has",a)),r===a?i.has(r):i.has(r)||i.has(a)},forEach(r,i){const l=this,a=l.__v_raw,s=Je(a),u=t?sv:e?xa:Ko;return!e&&On(s,"iterate",al),a.forEach((c,d)=>r.call(i,u(c),u(d),l))}};return sn(n,e?{add:Yc("add"),set:Yc("set"),delete:Yc("delete"),clear:Yc("clear")}:{add(r){!t&&!co(r)&&!jr(r)&&(r=Je(r));const i=Je(this);return Uc(i).has.call(i,r)||(i.add(r),Mr(i,"add",r,r)),this},set(r,i){!t&&!co(i)&&!jr(i)&&(i=Je(i));const l=Je(this),{has:a,get:s}=Uc(l);let u=a.call(l,r);u||(r=Je(r),u=a.call(l,r));const c=s.call(l,r);return l.set(r,i),u?Si(i,c)&&Mr(l,"set",r,i):Mr(l,"add",r,i),this},delete(r){const i=Je(this),{has:l,get:a}=Uc(i);let s=l.call(i,r);s||(r=Je(r),s=l.call(i,r)),a&&a.call(i,r);const u=i.delete(r);return s&&Mr(i,"delete",r,void 0),u},clear(){const r=Je(this),i=r.size!==0,l=r.clear();return i&&Mr(r,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=vM(r,e,t)}),n}function i0(e,t){const n=mM(e,t);return(o,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?o:Reflect.get(Ot(n,r)&&r in o?n:o,r,i)}const bM={get:i0(!1,!1)},yM={get:i0(!1,!0)},SM={get:i0(!0,!1)};const i3=new WeakMap,l3=new WeakMap,a3=new WeakMap,$M=new WeakMap;function CM(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function xM(e){return e.__v_skip||!Object.isExtensible(e)?0:CM(XE(e))}function ct(e){return jr(e)?e:l0(e,!1,pM,bM,i3)}function s3(e){return l0(e,!1,hM,yM,l3)}function cv(e){return l0(e,!0,gM,SM,a3)}function l0(e,t,n,o,r){if(!_t(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=xM(e);if(i===0)return e;const l=r.get(e);if(l)return l;const a=new Proxy(e,i===2?o:n);return r.set(e,a),a}function Fr(e){return jr(e)?Fr(e.__v_raw):!!(e&&e.__v_isReactive)}function jr(e){return!!(e&&e.__v_isReadonly)}function co(e){return!!(e&&e.__v_isShallow)}function Uf(e){return e?!!e.__v_raw:!1}function Je(e){const t=e&&e.__v_raw;return t?Je(t):e}function a0(e){return!Ot(e,"__v_skip")&&Object.isExtensible(e)&&H4(e,"__v_skip",!0),e}const Ko=e=>_t(e)?ct(e):e,xa=e=>_t(e)?cv(e):e;function kt(e){return e?e.__v_isRef===!0:!1}function re(e){return c3(e,!1)}function ne(e){return c3(e,!0)}function c3(e,t){return kt(e)?e:new wM(e,t)}class wM{constructor(t,n){this.dep=new r0,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Je(t),this._value=n?t:Ko(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,o=this.__v_isShallow||co(t)||jr(t);t=o?t:Je(t),Si(t,n)&&(this._rawValue=t,this._value=o?t:Ko(t),this.dep.trigger())}}function u3(e){e.dep&&e.dep.trigger()}function St(e){return kt(e)?e.value:e}const OM={get:(e,t,n)=>t==="__v_raw"?e:St(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return kt(r)&&!kt(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function d3(e){return Fr(e)?e:new Proxy(e,OM)}function jo(e){const t=rt(e)?new Array(e.length):{};for(const n in e)t[n]=f3(e,n);return t}class PM{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,this.__v_isRef=!0,this._value=void 0,this._raw=Je(t);let r=!0,i=t;if(!rt(t)||!jf(String(n)))do r=!Uf(i)||co(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=St(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&kt(this._raw[this._key])){const n=this._object[this._key];if(kt(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return aM(this._raw,this._key)}}class IM{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ze(e,t,n){return kt(e)?e:at(e)?new IM(e):_t(e)&&arguments.length>1?f3(e,t,n):re(e)}function f3(e,t,n){return new PM(e,t,n)}class TM{constructor(t,n,o){this.fn=t,this.setter=n,this._value=void 0,this.dep=new r0(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Xs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=o}notify(){if(this.flags|=16,!(this.flags&8)&&Nt!==this)return q4(this,!0),!0}get value(){const t=this.dep.track();return J4(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function EM(e,t,n=!1){let o,r;return at(e)?o=e:(o=e.get,r=e.set),new TM(o,r,n)}const qc={},Md=new WeakMap;let Ui;function MM(e,t=!1,n=Ui){if(n){let o=Md.get(n);o||Md.set(n,o=[]),o.push(e)}}function _M(e,t,n=Tt){const{immediate:o,deep:r,once:i,scheduler:l,augmentJob:a,call:s}=n,u=x=>r?x:co(x)||r===!1||r===0?_r(x,1):_r(x);let c,d,f,g,v=!1,h=!1;if(kt(e)?(d=()=>e.value,v=co(e)):Fr(e)?(d=()=>u(e),v=!0):rt(e)?(h=!0,v=e.some(x=>Fr(x)||co(x)),d=()=>e.map(x=>{if(kt(x))return x.value;if(Fr(x))return u(x);if(at(x))return s?s(x,2):x()})):at(e)?t?d=s?()=>s(e,2):e:d=()=>{if(f){zr();try{f()}finally{Hr()}}const x=Ui;Ui=c;try{return s?s(e,3,[g]):e(g)}finally{Ui=x}}:d=dr,t&&r){const x=d,C=r===!0?1/0:r;d=()=>_r(x(),C)}const b=e0(),y=()=>{c.stop(),b&&b.active&&Qm(b.effects,c)};if(i&&t){const x=t;t=(...C)=>{x(...C),y()}}let S=h?new Array(e.length).fill(qc):qc;const $=x=>{if(!(!(c.flags&1)||!c.dirty&&!x))if(t){const C=c.run();if(r||v||(h?C.some((O,w)=>Si(O,S[w])):Si(C,S))){f&&f();const O=Ui;Ui=c;try{const w=[C,S===qc?void 0:h&&S[0]===qc?[]:S,g];S=C,s?s(t,3,w):t(...w)}finally{Ui=O}}}else c.run()};return a&&a($),c=new U4(d),c.scheduler=l?()=>l($,!1):$,g=x=>MM(x,!1,c),f=c.onStop=()=>{const x=Md.get(c);if(x){if(s)s(x,4);else for(const C of x)C();Md.delete(c)}},t?o?$(!0):S=c.run():l?l($.bind(null,!0),!0):c.run(),y.pause=c.pause.bind(c),y.resume=c.resume.bind(c),y.stop=y,y}function _r(e,t=1/0,n){if(t<=0||!_t(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,kt(e))_r(e.value,t,n);else if(rt(e))for(let o=0;o{_r(o,t,n)});else if(z4(e)){for(const o in e)_r(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&_r(e[o],t,n)}return e}function xc(e,t,n,o){try{return o?e(...o):e()}catch(r){Yf(r,t,n)}}function Go(e,t,n,o){if(at(e)){const r=xc(e,t,n,o);return r&&F4(r)&&r.catch(i=>{Yf(i,t,n)}),r}if(rt(e)){const r=[];for(let i=0;i>>1,r=Ln[o],i=Ys(r);i=Ys(n)?Ln.push(e):Ln.splice(RM(t),0,e),e.flags|=1,g3()}}function g3(){_d||(_d=p3.then(v3))}function DM(e){rt(e)?ca.push(...e):ci&&e.id===-1?ci.splice(Yl+1,0,e):e.flags&1||(ca.push(e),e.flags|=1),g3()}function j1(e,t,n=lr+1){for(;nYs(n)-Ys(o));if(ca.length=0,ci){ci.push(...t);return}for(ci=t,Yl=0;Yle.id==null?e.flags&2?-1:1/0:e.id;function v3(e){try{for(lr=0;lr{o._d&&Bd(-1);const i=Ad(t);let l;try{l=e(...r)}finally{Ad(i),o._d&&Bd(1)}return l};return o._n=!0,o._c=!0,o._d=!0,o}function En(e,t){if(lo===null)return e;const n=np(lo),o=e.dirs||(e.dirs=[]);for(let r=0;re.__isTeleport,xs=e=>e&&(e.disabled||e.disabled===""),V1=e=>e&&(e.defer||e.defer===""),W1=e=>typeof SVGElement<"u"&&e instanceof SVGElement,K1=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,uv=(e,t)=>{const n=e&&e.to;return Wt(n)?t?t(n):null:n},S3={name:"Teleport",__isTeleport:!0,process(e,t,n,o,r,i,l,a,s,u){const{mc:c,pc:d,pbc:f,o:{insert:g,querySelector:v,createText:h,createComment:b}}=u,y=xs(t.props);let{shapeFlag:S,children:$,dynamicChildren:x}=t;if(e==null){const C=t.el=h(""),O=t.anchor=h("");g(C,n,o),g(O,n,o);const w=(T,_)=>{S&16&&c($,T,_,r,i,l,a,s)},I=()=>{const T=t.target=uv(t.props,v),_=$3(T,t,h,g);T&&(l!=="svg"&&W1(T)?l="svg":l!=="mathml"&&K1(T)&&(l="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(T),y||(w(T,_),Ru(t,!1)))};y&&(w(n,O),Ru(t,!0)),V1(t.props)?(t.el.__isMounted=!1,Bn(()=>{I(),delete t.el.__isMounted},i)):I()}else{if(V1(t.props)&&e.el.__isMounted===!1){Bn(()=>{S3.process(e,t,n,o,r,i,l,a,s,u)},i);return}t.el=e.el,t.targetStart=e.targetStart;const C=t.anchor=e.anchor,O=t.target=e.target,w=t.targetAnchor=e.targetAnchor,I=xs(e.props),T=I?n:O,_=I?C:w;if(l==="svg"||W1(O)?l="svg":(l==="mathml"||K1(O))&&(l="mathml"),x?(f(e.dynamicChildren,x,T,r,i,l,a),g0(e,t,!0)):s||d(e,t,T,_,r,i,l,a,!1),y)I?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Zc(t,n,C,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const E=t.target=uv(t.props,v);E&&Zc(t,E,null,u,0)}else I&&Zc(t,O,w,u,1);Ru(t,y)}},remove(e,t,n,{um:o,o:{remove:r}},i){const{shapeFlag:l,children:a,anchor:s,targetStart:u,targetAnchor:c,target:d,props:f}=e;if(d&&(r(u),r(c)),i&&r(s),l&16){const g=i||!xs(f);for(let v=0;v{e.isMounted=!0}),Qe(()=>{e.isUnmounting=!0}),e}const yo=[Function,Array],x3={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:yo,onEnter:yo,onAfterEnter:yo,onEnterCancelled:yo,onBeforeLeave:yo,onLeave:yo,onAfterLeave:yo,onLeaveCancelled:yo,onBeforeAppear:yo,onAppear:yo,onAfterAppear:yo,onAppearCancelled:yo},w3=e=>{const t=e.subTree;return t.component?w3(t.component):t},BM={name:"BaseTransition",props:x3,setup(e,{slots:t}){const n=pn(),o=C3();return()=>{const r=t.default&&u0(t.default(),!0);if(!r||!r.length)return;const i=O3(r),l=Je(e),{mode:a}=l;if(o.isLeaving)return Ag(i);const s=G1(i);if(!s)return Ag(i);let u=qs(s,l,o,n,d=>u=d);s.type!==mn&&ml(s,u);let c=n.subTree&&G1(n.subTree);if(c&&c.type!==mn&&!qi(c,s)&&w3(n).type!==mn){let d=qs(c,l,o,n);if(ml(c,d),a==="out-in"&&s.type!==mn)return o.isLeaving=!0,d.afterLeave=()=>{o.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,c=void 0},Ag(i);a==="in-out"&&s.type!==mn?d.delayLeave=(f,g,v)=>{const h=P3(o,c);h[String(c.key)]=c,f[Er]=()=>{g(),f[Er]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{v(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function O3(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==mn){t=n;break}}return t}const kM=BM;function P3(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function qs(e,t,n,o,r){const{appear:i,mode:l,persisted:a=!1,onBeforeEnter:s,onEnter:u,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:f,onLeave:g,onAfterLeave:v,onLeaveCancelled:h,onBeforeAppear:b,onAppear:y,onAfterAppear:S,onAppearCancelled:$}=t,x=String(e.key),C=P3(n,e),O=(T,_)=>{T&&Go(T,o,9,_)},w=(T,_)=>{const E=_[1];O(T,_),rt(T)?T.every(A=>A.length<=1)&&E():T.length<=1&&E()},I={mode:l,persisted:a,beforeEnter(T){let _=s;if(!n.isMounted)if(i)_=b||s;else return;T[Er]&&T[Er](!0);const E=C[x];E&&qi(e,E)&&E.el[Er]&&E.el[Er](),O(_,[T])},enter(T){let _=u,E=c,A=d;if(!n.isMounted)if(i)_=y||u,E=S||c,A=$||d;else return;let R=!1;const z=T[Qc]=M=>{R||(R=!0,M?O(A,[T]):O(E,[T]),I.delayedLeave&&I.delayedLeave(),T[Qc]=void 0)};_?w(_,[T,z]):z()},leave(T,_){const E=String(e.key);if(T[Qc]&&T[Qc](!0),n.isUnmounting)return _();O(f,[T]);let A=!1;const R=T[Er]=z=>{A||(A=!0,_(),z?O(h,[T]):O(v,[T]),T[Er]=void 0,C[E]===e&&delete C[E])};C[E]=e,g?w(g,[T,R]):R()},clone(T){const _=qs(T,t,n,o,r);return r&&r(_),_}};return I}function Ag(e){if(qf(e))return e=cn(e),e.children=null,e}function G1(e){if(!qf(e))return y3(e.type)&&e.children?O3(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&at(n.default))return n.default()}}function ml(e,t){e.shapeFlag&6&&e.component?(e.transition=t,ml(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function u0(e,t=!1,n){let o=[],r=0;for(let i=0;i1)for(let i=0;iws(v,t&&(rt(t)?t[h]:t),n,o,r));return}if(Os(o)&&!r){o.shapeFlag&512&&o.type.__asyncResolved&&o.component.subTree.component&&ws(e,t,n,o.component.subTree);return}const i=o.shapeFlag&4?np(o.component):o.el,l=r?null:i,{i:a,r:s}=e,u=t&&t.r,c=a.refs===Tt?a.refs={}:a.refs,d=a.setupState,f=Je(d),g=d===Tt?B4:v=>Ot(f,v);if(u!=null&&u!==s){if(X1(t),Wt(u))c[u]=null,g(u)&&(d[u]=null);else if(kt(u)){u.value=null;const v=t;v.k&&(c[v.k]=null)}}if(at(s))xc(s,a,12,[l,c]);else{const v=Wt(s),h=kt(s);if(v||h){const b=()=>{if(e.f){const y=v?g(s)?d[s]:c[s]:s.value;if(r)rt(y)&&Qm(y,i);else if(rt(y))y.includes(i)||y.push(i);else if(v)c[s]=[i],g(s)&&(d[s]=c[s]);else{const S=[i];s.value=S,e.k&&(c[e.k]=S)}}else v?(c[s]=l,g(s)&&(d[s]=l)):h&&(s.value=l,e.k&&(c[e.k]=l))};if(l){const y=()=>{b(),Rd.delete(e)};y.id=-1,Rd.set(e,y),Bn(y,n)}else X1(e),b()}}}function X1(e){const t=Rd.get(e);t&&(t.flags|=8,Rd.delete(e))}Kf().requestIdleCallback;Kf().cancelIdleCallback;const Os=e=>!!e.type.__asyncLoader,qf=e=>e.type.__isKeepAlive;function Zf(e,t){E3(e,"a",t)}function T3(e,t){E3(e,"da",t)}function E3(e,t,n=In){const o=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Qf(t,o,n),n){let r=n.parent;for(;r&&r.parent;)qf(r.parent.vnode)&&FM(o,t,n,r),r=r.parent}}function FM(e,t,n,o){const r=Qf(t,e,o,!0);$n(()=>{Qm(o[t],r)},n)}function Qf(e,t,n=In,o=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...l)=>{zr();const a=wc(n),s=Go(t,n,e,l);return a(),Hr(),s});return o?r.unshift(i):r.push(i),i}}const Xr=e=>(t,n=In)=>{(!Qs||e==="sp")&&Qf(e,(...o)=>t(...o),n)},Jf=Xr("bm"),je=Xr("m"),ep=Xr("bu"),An=Xr("u"),Qe=Xr("bum"),$n=Xr("um"),LM=Xr("sp"),zM=Xr("rtg"),HM=Xr("rtc");function jM(e,t=In){Qf("ec",e,t)}const M3="components",VM="directives";function ln(e,t){return _3(M3,e,!0,t)||e}const WM=Symbol.for("v-ndc");function KM(e){return _3(VM,e)}function _3(e,t,n=!0,o=!1){const r=lo||In;if(r){const i=r.type;if(e===M3){const a=N7(i,!1);if(a&&(a===t||a===Eo(t)||a===Wf(Eo(t))))return i}const l=U1(r[e]||i[e],t)||U1(r.appContext[e],t);return!l&&o?i:l}}function U1(e,t){return e&&(e[t]||e[Eo(t)]||e[Wf(Eo(t))])}function zfe(e,t,n,o){let r;const i=n,l=rt(e);if(l||Wt(e)){const a=l&&Fr(e);let s=!1,u=!1;a&&(s=!co(e),u=jr(e),e=Xf(e)),r=new Array(e.length);for(let c=0,d=e.length;ct(a,s,void 0,i));else{const a=Object.keys(e);r=new Array(a.length);for(let s=0,u=a.length;se?Y3(e)?np(e):dv(e.parent):null,Ps=sn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>dv(e.parent),$root:e=>dv(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>R3(e),$forceUpdate:e=>e.f||(e.f=()=>{s0(e.update)}),$nextTick:e=>e.n||(e.n=ot.bind(e.proxy)),$watch:e=>i7.bind(e)}),Rg=(e,t)=>e!==Tt&&!e.__isScriptSetup&&Ot(e,t),GM={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:o,data:r,props:i,accessCache:l,type:a,appContext:s}=e;if(t[0]!=="$"){const f=l[t];if(f!==void 0)switch(f){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Rg(o,t))return l[t]=1,o[t];if(r!==Tt&&Ot(r,t))return l[t]=2,r[t];if(Ot(i,t))return l[t]=3,i[t];if(n!==Tt&&Ot(n,t))return l[t]=4,n[t];fv&&(l[t]=0)}}const u=Ps[t];let c,d;if(u)return t==="$attrs"&&On(e.attrs,"get",""),u(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(n!==Tt&&Ot(n,t))return l[t]=4,n[t];if(d=s.config.globalProperties,Ot(d,t))return d[t]},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return Rg(r,t)?(r[t]=n,!0):o!==Tt&&Ot(o,t)?(o[t]=n,!0):Ot(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,props:i,type:l}},a){let s;return!!(n[a]||e!==Tt&&a[0]!=="$"&&Ot(e,a)||Rg(t,a)||Ot(i,a)||Ot(o,a)||Ot(Ps,a)||Ot(r.config.globalProperties,a)||(s=l.__cssModules)&&s[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ot(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function XM(){return UM().attrs}function UM(e){const t=pn();return t.setupContext||(t.setupContext=Z3(t))}function Y1(e){return rt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let fv=!0;function YM(e){const t=R3(e),n=e.proxy,o=e.ctx;fv=!1,t.beforeCreate&&q1(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:l,watch:a,provide:s,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:g,updated:v,activated:h,deactivated:b,beforeDestroy:y,beforeUnmount:S,destroyed:$,unmounted:x,render:C,renderTracked:O,renderTriggered:w,errorCaptured:I,serverPrefetch:T,expose:_,inheritAttrs:E,components:A,directives:R,filters:z}=t;if(u&&qM(u,o,null),l)for(const B in l){const k=l[B];at(k)&&(o[B]=k.bind(n))}if(r){const B=r.call(n,n);_t(B)&&(e.data=ct(B))}if(fv=!0,i)for(const B in i){const k=i[B],F=at(k)?k.bind(n,n):at(k.get)?k.get.bind(n,n):dr,L=!at(k)&&at(k.set)?k.set.bind(n):dr,H=P({get:F,set:L});Object.defineProperty(o,B,{enumerable:!0,configurable:!0,get:()=>H.value,set:j=>H.value=j})}if(a)for(const B in a)A3(a[B],o,n,B);if(s){const B=at(s)?s.call(n):s;Reflect.ownKeys(B).forEach(k=>{Xe(k,B[k])})}c&&q1(c,e,"c");function N(B,k){rt(k)?k.forEach(F=>B(F.bind(n))):k&&B(k.bind(n))}if(N(Jf,d),N(je,f),N(ep,g),N(An,v),N(Zf,h),N(T3,b),N(jM,I),N(HM,O),N(zM,w),N(Qe,S),N($n,x),N(LM,T),rt(_))if(_.length){const B=e.exposed||(e.exposed={});_.forEach(k=>{Object.defineProperty(B,k,{get:()=>n[k],set:F=>n[k]=F,enumerable:!0})})}else e.exposed||(e.exposed={});C&&e.render===dr&&(e.render=C),E!=null&&(e.inheritAttrs=E),A&&(e.components=A),R&&(e.directives=R),T&&I3(e)}function qM(e,t,n=dr){rt(e)&&(e=pv(e));for(const o in e){const r=e[o];let i;_t(r)?"default"in r?i=He(r.from||o,r.default,!0):i=He(r.from||o):i=He(r),kt(i)?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:l=>i.value=l}):t[o]=i}}function q1(e,t,n){Go(rt(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function A3(e,t,n,o){let r=o.includes(".")?N3(n,o):()=>n[o];if(Wt(e)){const i=t[e];at(i)&&ye(r,i)}else if(at(e))ye(r,e.bind(n));else if(_t(e))if(rt(e))e.forEach(i=>A3(i,t,n,o));else{const i=at(e.handler)?e.handler.bind(n):t[e.handler];at(i)&&ye(r,i,e)}}function R3(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,a=i.get(t);let s;return a?s=a:!r.length&&!n&&!o?s=t:(s={},r.length&&r.forEach(u=>Dd(s,u,l,!0)),Dd(s,t,l)),_t(t)&&i.set(t,s),s}function Dd(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&Dd(e,i,n,!0),r&&r.forEach(l=>Dd(e,l,n,!0));for(const l in t)if(!(o&&l==="expose")){const a=ZM[l]||n&&n[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const ZM={data:Z1,props:Q1,emits:Q1,methods:gs,computed:gs,beforeCreate:Nn,created:Nn,beforeMount:Nn,mounted:Nn,beforeUpdate:Nn,updated:Nn,beforeDestroy:Nn,beforeUnmount:Nn,destroyed:Nn,unmounted:Nn,activated:Nn,deactivated:Nn,errorCaptured:Nn,serverPrefetch:Nn,components:gs,directives:gs,watch:JM,provide:Z1,inject:QM};function Z1(e,t){return t?e?function(){return sn(at(e)?e.call(this,this):e,at(t)?t.call(this,this):t)}:t:e}function QM(e,t){return gs(pv(e),pv(t))}function pv(e){if(rt(e)){const t={};for(let n=0;n1)return n&&at(t)?t.call(o&&o.proxy):t}}function n7(){return!!(pn()||sl)}const o7=Symbol.for("v-scx"),r7=()=>He(o7);function Le(e,t){return d0(e,null,t)}function ye(e,t,n){return d0(e,t,n)}function d0(e,t,n=Tt){const{immediate:o,deep:r,flush:i,once:l}=n,a=sn({},n),s=t&&o||!t&&i!=="post";let u;if(Qs){if(i==="sync"){const g=r7();u=g.__watcherHandles||(g.__watcherHandles=[])}else if(!s){const g=()=>{};return g.stop=dr,g.resume=dr,g.pause=dr,g}}const c=In;a.call=(g,v,h)=>Go(g,c,v,h);let d=!1;i==="post"?a.scheduler=g=>{Bn(g,c&&c.suspense)}:i!=="sync"&&(d=!0,a.scheduler=(g,v)=>{v?g():s0(g)}),a.augmentJob=g=>{t&&(g.flags|=4),d&&(g.flags|=2,c&&(g.id=c.uid,g.i=c))};const f=_M(e,t,a);return Qs&&(u?u.push(f):s&&f()),f}function i7(e,t,n){const o=this.proxy,r=Wt(e)?e.includes(".")?N3(o,e):()=>o[e]:e.bind(o,o);let i;at(t)?i=t:(i=t.handler,n=t);const l=wc(this),a=d0(r,i.bind(o),n);return l(),a}function N3(e,t){const n=t.split(".");return()=>{let o=e;for(let r=0;rt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Eo(t)}Modifiers`]||e[`${Pl(t)}Modifiers`];function a7(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||Tt;let r=n;const i=t.startsWith("update:"),l=i&&l7(o,t.slice(7));l&&(l.trim&&(r=n.map(c=>Wt(c)?c.trim():c)),l.number&&(r=n.map(qE)));let a,s=o[a=Pg(t)]||o[a=Pg(Eo(t))];!s&&i&&(s=o[a=Pg(Pl(t))]),s&&Go(s,e,6,r);const u=o[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Go(u,e,6,r)}}const s7=new WeakMap;function B3(e,t,n=!1){const o=n?s7:t.emitsCache,r=o.get(e);if(r!==void 0)return r;const i=e.emits;let l={},a=!1;if(!at(e)){const s=u=>{const c=B3(u,t,!0);c&&(a=!0,sn(l,c))};!n&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!a?(_t(e)&&o.set(e,null),null):(rt(i)?i.forEach(s=>l[s]=null):sn(l,i),_t(e)&&o.set(e,l),l)}function tp(e,t){return!e||!zf(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ot(e,t[0].toLowerCase()+t.slice(1))||Ot(e,Pl(t))||Ot(e,t))}function J1(e){const{type:t,vnode:n,proxy:o,withProxy:r,propsOptions:[i],slots:l,attrs:a,emit:s,render:u,renderCache:c,props:d,data:f,setupState:g,ctx:v,inheritAttrs:h}=e,b=Ad(e);let y,S;try{if(n.shapeFlag&4){const x=r||o,C=x;y=cr(u.call(C,x,c,d,g,f,v)),S=a}else{const x=t;y=cr(x.length>1?x(d,{attrs:a,slots:l,emit:s}):x(d,null)),S=t.props?a:c7(a)}}catch(x){Is.length=0,Yf(x,e,1),y=p(mn)}let $=y;if(S&&h!==!1){const x=Object.keys(S),{shapeFlag:C}=$;x.length&&C&7&&(i&&x.some(Zm)&&(S=u7(S,i)),$=cn($,S,!1,!0))}return n.dirs&&($=cn($,null,!1,!0),$.dirs=$.dirs?$.dirs.concat(n.dirs):n.dirs),n.transition&&ml($,n.transition),y=$,Ad(b),y}const c7=e=>{let t;for(const n in e)(n==="class"||n==="style"||zf(n))&&((t||(t={}))[n]=e[n]);return t},u7=(e,t)=>{const n={};for(const o in e)(!Zm(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function d7(e,t,n){const{props:o,children:r,component:i}=e,{props:l,children:a,patchFlag:s}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&s>=0){if(s&1024)return!0;if(s&16)return o?eS(o,l,u):!!l;if(s&8){const c=t.dynamicProps;for(let d=0;dObject.create(k3),L3=e=>Object.getPrototypeOf(e)===k3;function p7(e,t,n,o=!1){const r={},i=F3();e.propsDefaults=Object.create(null),z3(e,t,r,i);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);n?e.props=o?r:s3(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function g7(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:l}}=e,a=Je(r),[s]=e.propsOptions;let u=!1;if((o||l>0)&&!(l&16)){if(l&8){const c=e.vnode.dynamicProps;for(let d=0;d{s=!0;const[f,g]=H3(d,t,!0);sn(l,f),g&&a.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!s)return _t(e)&&o.set(e,aa),aa;if(rt(i))for(let c=0;ce==="_"||e==="_ctx"||e==="$stable",p0=e=>rt(e)?e.map(cr):[cr(e)],v7=(e,t,n)=>{if(t._n)return t;const o=xt((...r)=>p0(t(...r)),n);return o._c=!1,o},j3=(e,t,n)=>{const o=e._ctx;for(const r in e){if(f0(r))continue;const i=e[r];if(at(i))t[r]=v7(r,i,o);else if(i!=null){const l=p0(i);t[r]=()=>l}}},V3=(e,t)=>{const n=p0(t);e.slots.default=()=>n},W3=(e,t,n)=>{for(const o in t)(n||!f0(o))&&(e[o]=t[o])},m7=(e,t,n)=>{const o=e.slots=F3();if(e.vnode.shapeFlag&32){const r=t._;r?(W3(o,t,n),n&&H4(o,"_",r,!0)):j3(t,o)}else t&&V3(e,t)},b7=(e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,l=Tt;if(o.shapeFlag&32){const a=t._;a?n&&a===1?i=!1:W3(r,t,n):(i=!t.$stable,j3(t,r)),l=t}else t&&(V3(e,t),l={default:1});if(i)for(const a in r)!f0(a)&&l[a]==null&&delete r[a]},Bn=x7;function y7(e){return S7(e)}function S7(e,t){const n=Kf();n.__VUE__=!0;const{insert:o,remove:r,patchProp:i,createElement:l,createText:a,createComment:s,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:g=dr,insertStaticContent:v}=e,h=(V,K,te,ue=null,ie=null,ae=null,ce=void 0,se=null,pe=!!K.dynamicChildren)=>{if(V===K)return;V&&!qi(V,K)&&(ue=X(V),j(V,ie,ae,!0),V=null),K.patchFlag===-2&&(pe=!1,K.dynamicChildren=null);const{type:ge,ref:he,shapeFlag:me}=K;switch(ge){case Ei:b(V,K,te,ue);break;case mn:y(V,K,te,ue);break;case Ng:V==null&&S(K,te,ue,ce);break;case Ve:A(V,K,te,ue,ie,ae,ce,se,pe);break;default:me&1?C(V,K,te,ue,ie,ae,ce,se,pe):me&6?R(V,K,te,ue,ie,ae,ce,se,pe):(me&64||me&128)&&ge.process(V,K,te,ue,ie,ae,ce,se,pe,G)}he!=null&&ie?ws(he,V&&V.ref,ae,K||V,!K):he==null&&V&&V.ref!=null&&ws(V.ref,null,ae,V,!0)},b=(V,K,te,ue)=>{if(V==null)o(K.el=a(K.children),te,ue);else{const ie=K.el=V.el;K.children!==V.children&&u(ie,K.children)}},y=(V,K,te,ue)=>{V==null?o(K.el=s(K.children||""),te,ue):K.el=V.el},S=(V,K,te,ue)=>{[V.el,V.anchor]=v(V.children,K,te,ue,V.el,V.anchor)},$=({el:V,anchor:K},te,ue)=>{let ie;for(;V&&V!==K;)ie=f(V),o(V,te,ue),V=ie;o(K,te,ue)},x=({el:V,anchor:K})=>{let te;for(;V&&V!==K;)te=f(V),r(V),V=te;r(K)},C=(V,K,te,ue,ie,ae,ce,se,pe)=>{if(K.type==="svg"?ce="svg":K.type==="math"&&(ce="mathml"),V==null)O(K,te,ue,ie,ae,ce,se,pe);else{const ge=V.el&&V.el._isVueCE?V.el:null;try{ge&&ge._beginPatch(),T(V,K,ie,ae,ce,se,pe)}finally{ge&&ge._endPatch()}}},O=(V,K,te,ue,ie,ae,ce,se)=>{let pe,ge;const{props:he,shapeFlag:me,transition:xe,dirs:fe}=V;if(pe=V.el=l(V.type,ae,he&&he.is,he),me&8?c(pe,V.children):me&16&&I(V.children,pe,null,ue,ie,Dg(V,ae),ce,se),fe&&Li(V,null,ue,"created"),w(pe,V,V.scopeId,ce,ue),he){for(const be in he)be!=="value"&&!Ss(be)&&i(pe,be,null,he[be],ae,ue);"value"in he&&i(pe,"value",null,he.value,ae),(ge=he.onVnodeBeforeMount)&&nr(ge,ue,V)}fe&&Li(V,null,ue,"beforeMount");const de=$7(ie,xe);de&&xe.beforeEnter(pe),o(pe,K,te),((ge=he&&he.onVnodeMounted)||de||fe)&&Bn(()=>{ge&&nr(ge,ue,V),de&&xe.enter(pe),fe&&Li(V,null,ue,"mounted")},ie)},w=(V,K,te,ue,ie)=>{if(te&&g(V,te),ue)for(let ae=0;ae{for(let ge=pe;ge{const se=K.el=V.el;let{patchFlag:pe,dynamicChildren:ge,dirs:he}=K;pe|=V.patchFlag&16;const me=V.props||Tt,xe=K.props||Tt;let fe;if(te&&zi(te,!1),(fe=xe.onVnodeBeforeUpdate)&&nr(fe,te,K,V),he&&Li(K,V,te,"beforeUpdate"),te&&zi(te,!0),(me.innerHTML&&xe.innerHTML==null||me.textContent&&xe.textContent==null)&&c(se,""),ge?_(V.dynamicChildren,ge,se,te,ue,Dg(K,ie),ae):ce||k(V,K,se,null,te,ue,Dg(K,ie),ae,!1),pe>0){if(pe&16)E(se,me,xe,te,ie);else if(pe&2&&me.class!==xe.class&&i(se,"class",null,xe.class,ie),pe&4&&i(se,"style",me.style,xe.style,ie),pe&8){const de=K.dynamicProps;for(let be=0;be{fe&&nr(fe,te,K,V),he&&Li(K,V,te,"updated")},ue)},_=(V,K,te,ue,ie,ae,ce)=>{for(let se=0;se{if(K!==te){if(K!==Tt)for(const ae in K)!Ss(ae)&&!(ae in te)&&i(V,ae,K[ae],null,ie,ue);for(const ae in te){if(Ss(ae))continue;const ce=te[ae],se=K[ae];ce!==se&&ae!=="value"&&i(V,ae,se,ce,ie,ue)}"value"in te&&i(V,"value",K.value,te.value,ie)}},A=(V,K,te,ue,ie,ae,ce,se,pe)=>{const ge=K.el=V?V.el:a(""),he=K.anchor=V?V.anchor:a("");let{patchFlag:me,dynamicChildren:xe,slotScopeIds:fe}=K;fe&&(se=se?se.concat(fe):fe),V==null?(o(ge,te,ue),o(he,te,ue),I(K.children||[],te,he,ie,ae,ce,se,pe)):me>0&&me&64&&xe&&V.dynamicChildren?(_(V.dynamicChildren,xe,te,ie,ae,ce,se),(K.key!=null||ie&&K===ie.subTree)&&g0(V,K,!0)):k(V,K,te,he,ie,ae,ce,se,pe)},R=(V,K,te,ue,ie,ae,ce,se,pe)=>{K.slotScopeIds=se,V==null?K.shapeFlag&512?ie.ctx.activate(K,te,ue,ce,pe):z(K,te,ue,ie,ae,ce,pe):M(V,K,pe)},z=(V,K,te,ue,ie,ae,ce)=>{const se=V.component=_7(V,ue,ie);if(qf(V)&&(se.ctx.renderer=G),A7(se,!1,ce),se.asyncDep){if(ie&&ie.registerDep(se,N,ce),!V.el){const pe=se.subTree=p(mn);y(null,pe,K,te),V.placeholder=pe.el}}else N(se,V,K,te,ie,ae,ce)},M=(V,K,te)=>{const ue=K.component=V.component;if(d7(V,K,te))if(ue.asyncDep&&!ue.asyncResolved){B(ue,K,te);return}else ue.next=K,ue.update();else K.el=V.el,ue.vnode=K},N=(V,K,te,ue,ie,ae,ce)=>{const se=()=>{if(V.isMounted){let{next:me,bu:xe,u:fe,parent:de,vnode:be}=V;{const Ce=K3(V);if(Ce){me&&(me.el=be.el,B(V,me,ce)),Ce.asyncDep.then(()=>{V.isUnmounted||se()});return}}let we=me,Ie;zi(V,!1),me?(me.el=be.el,B(V,me,ce)):me=be,xe&&Ig(xe),(Ie=me.props&&me.props.onVnodeBeforeUpdate)&&nr(Ie,de,me,be),zi(V,!0);const Ae=J1(V),Se=V.subTree;V.subTree=Ae,h(Se,Ae,d(Se.el),X(Se),V,ie,ae),me.el=Ae.el,we===null&&f7(V,Ae.el),fe&&Bn(fe,ie),(Ie=me.props&&me.props.onVnodeUpdated)&&Bn(()=>nr(Ie,de,me,be),ie)}else{let me;const{el:xe,props:fe}=K,{bm:de,m:be,parent:we,root:Ie,type:Ae}=V,Se=Os(K);zi(V,!1),de&&Ig(de),!Se&&(me=fe&&fe.onVnodeBeforeMount)&&nr(me,we,K),zi(V,!0);{Ie.ce&&Ie.ce._def.shadowRoot!==!1&&Ie.ce._injectChildStyle(Ae);const Ce=V.subTree=J1(V);h(null,Ce,te,ue,V,ie,ae),K.el=Ce.el}if(be&&Bn(be,ie),!Se&&(me=fe&&fe.onVnodeMounted)){const Ce=K;Bn(()=>nr(me,we,Ce),ie)}(K.shapeFlag&256||we&&Os(we.vnode)&&we.vnode.shapeFlag&256)&&V.a&&Bn(V.a,ie),V.isMounted=!0,K=te=ue=null}};V.scope.on();const pe=V.effect=new U4(se);V.scope.off();const ge=V.update=pe.run.bind(pe),he=V.job=pe.runIfDirty.bind(pe);he.i=V,he.id=V.uid,pe.scheduler=()=>s0(he),zi(V,!0),ge()},B=(V,K,te)=>{K.component=V;const ue=V.vnode.props;V.vnode=K,V.next=null,g7(V,K.props,ue,te),b7(V,K.children,te),zr(),j1(V),Hr()},k=(V,K,te,ue,ie,ae,ce,se,pe=!1)=>{const ge=V&&V.children,he=V?V.shapeFlag:0,me=K.children,{patchFlag:xe,shapeFlag:fe}=K;if(xe>0){if(xe&128){L(ge,me,te,ue,ie,ae,ce,se,pe);return}else if(xe&256){F(ge,me,te,ue,ie,ae,ce,se,pe);return}}fe&8?(he&16&&ee(ge,ie,ae),me!==ge&&c(te,me)):he&16?fe&16?L(ge,me,te,ue,ie,ae,ce,se,pe):ee(ge,ie,ae,!0):(he&8&&c(te,""),fe&16&&I(me,te,ue,ie,ae,ce,se,pe))},F=(V,K,te,ue,ie,ae,ce,se,pe)=>{V=V||aa,K=K||aa;const ge=V.length,he=K.length,me=Math.min(ge,he);let xe;for(xe=0;xehe?ee(V,ie,ae,!0,!1,me):I(K,te,ue,ie,ae,ce,se,pe,me)},L=(V,K,te,ue,ie,ae,ce,se,pe)=>{let ge=0;const he=K.length;let me=V.length-1,xe=he-1;for(;ge<=me&&ge<=xe;){const fe=V[ge],de=K[ge]=pe?ui(K[ge]):cr(K[ge]);if(qi(fe,de))h(fe,de,te,null,ie,ae,ce,se,pe);else break;ge++}for(;ge<=me&&ge<=xe;){const fe=V[me],de=K[xe]=pe?ui(K[xe]):cr(K[xe]);if(qi(fe,de))h(fe,de,te,null,ie,ae,ce,se,pe);else break;me--,xe--}if(ge>me){if(ge<=xe){const fe=xe+1,de=fexe)for(;ge<=me;)j(V[ge],ie,ae,!0),ge++;else{const fe=ge,de=ge,be=new Map;for(ge=de;ge<=xe;ge++){const Re=K[ge]=pe?ui(K[ge]):cr(K[ge]);Re.key!=null&&be.set(Re.key,ge)}let we,Ie=0;const Ae=xe-de+1;let Se=!1,Ce=0;const Oe=new Array(Ae);for(ge=0;ge=Ae){j(Re,ie,ae,!0);continue}let _e;if(Re.key!=null)_e=be.get(Re.key);else for(we=de;we<=xe;we++)if(Oe[we-de]===0&&qi(Re,K[we])){_e=we;break}_e===void 0?j(Re,ie,ae,!0):(Oe[_e-de]=ge+1,_e>=Ce?Ce=_e:Se=!0,h(Re,K[_e],te,null,ie,ae,ce,se,pe),Ie++)}const Me=Se?C7(Oe):aa;for(we=Me.length-1,ge=Ae-1;ge>=0;ge--){const Re=de+ge,_e=K[Re],Be=K[Re+1],et=Re+1{const{el:ae,type:ce,transition:se,children:pe,shapeFlag:ge}=V;if(ge&6){H(V.component.subTree,K,te,ue);return}if(ge&128){V.suspense.move(K,te,ue);return}if(ge&64){ce.move(V,K,te,G);return}if(ce===Ve){o(ae,K,te);for(let me=0;mese.enter(ae),ie);else{const{leave:me,delayLeave:xe,afterLeave:fe}=se,de=()=>{V.ctx.isUnmounted?r(ae):o(ae,K,te)},be=()=>{ae._isLeaving&&ae[Er](!0),me(ae,()=>{de(),fe&&fe()})};xe?xe(ae,de,be):be()}else o(ae,K,te)},j=(V,K,te,ue=!1,ie=!1)=>{const{type:ae,props:ce,ref:se,children:pe,dynamicChildren:ge,shapeFlag:he,patchFlag:me,dirs:xe,cacheIndex:fe}=V;if(me===-2&&(ie=!1),se!=null&&(zr(),ws(se,null,te,V,!0),Hr()),fe!=null&&(K.renderCache[fe]=void 0),he&256){K.ctx.deactivate(V);return}const de=he&1&&xe,be=!Os(V);let we;if(be&&(we=ce&&ce.onVnodeBeforeUnmount)&&nr(we,K,V),he&6)U(V.component,te,ue);else{if(he&128){V.suspense.unmount(te,ue);return}de&&Li(V,null,K,"beforeUnmount"),he&64?V.type.remove(V,K,te,G,ue):ge&&!ge.hasOnce&&(ae!==Ve||me>0&&me&64)?ee(ge,K,te,!1,!0):(ae===Ve&&me&384||!ie&&he&16)&&ee(pe,K,te),ue&&Y(V)}(be&&(we=ce&&ce.onVnodeUnmounted)||de)&&Bn(()=>{we&&nr(we,K,V),de&&Li(V,null,K,"unmounted")},te)},Y=V=>{const{type:K,el:te,anchor:ue,transition:ie}=V;if(K===Ve){Q(te,ue);return}if(K===Ng){x(V);return}const ae=()=>{r(te),ie&&!ie.persisted&&ie.afterLeave&&ie.afterLeave()};if(V.shapeFlag&1&&ie&&!ie.persisted){const{leave:ce,delayLeave:se}=ie,pe=()=>ce(te,ae);se?se(V.el,ae,pe):pe()}else ae()},Q=(V,K)=>{let te;for(;V!==K;)te=f(V),r(V),V=te;r(K)},U=(V,K,te)=>{const{bum:ue,scope:ie,job:ae,subTree:ce,um:se,m:pe,a:ge}=V;nS(pe),nS(ge),ue&&Ig(ue),ie.stop(),ae&&(ae.flags|=8,j(ce,V,K,te)),se&&Bn(se,K),Bn(()=>{V.isUnmounted=!0},K)},ee=(V,K,te,ue=!1,ie=!1,ae=0)=>{for(let ce=ae;ce{if(V.shapeFlag&6)return X(V.component.subTree);if(V.shapeFlag&128)return V.suspense.next();const K=f(V.anchor||V.el),te=K&&K[b3];return te?f(te):K};let J=!1;const Z=(V,K,te)=>{V==null?K._vnode&&j(K._vnode,null,null,!0):h(K._vnode||null,V,K,null,null,null,te),K._vnode=V,J||(J=!0,j1(),h3(),J=!1)},G={p:h,um:j,m:H,r:Y,mt:z,mc:I,pc:k,pbc:_,n:X,o:e};return{render:Z,hydrate:void 0,createApp:t7(Z)}}function Dg({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function zi({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function $7(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function g0(e,t,n=!1){const o=e.children,r=t.children;if(rt(o)&&rt(r))for(let i=0;i>1,e[n[a]]0&&(t[o]=n[i-1]),n[i]=o)}}for(i=n.length,l=n[i-1];i-- >0;)n[i]=l,l=t[l];return n}function K3(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:K3(t)}function nS(e){if(e)for(let t=0;te.__isSuspense;function x7(e,t){t&&t.pendingBranch?rt(e)?t.effects.push(...e):t.effects.push(e):DM(e)}const Ve=Symbol.for("v-fgt"),Ei=Symbol.for("v-txt"),mn=Symbol.for("v-cmt"),Ng=Symbol.for("v-stc"),Is=[];let ao=null;function Nd(e=!1){Is.push(ao=e?null:[])}function w7(){Is.pop(),ao=Is[Is.length-1]||null}let Zs=1;function Bd(e,t=!1){Zs+=e,e<0&&ao&&t&&(ao.hasOnce=!0)}function X3(e){return e.dynamicChildren=Zs>0?ao||aa:null,w7(),Zs>0&&ao&&ao.push(e),e}function O7(e,t,n,o,r,i){return X3(qn(e,t,n,o,r,i,!0))}function h0(e,t,n,o,r){return X3(p(e,t,n,o,r,!0))}function qt(e){return e?e.__v_isVNode===!0:!1}function qi(e,t){return e.type===t.type&&e.key===t.key}const U3=({key:e})=>e??null,Du=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Wt(e)||kt(e)||at(e)?{i:lo,r:e,k:t,f:!!n}:e:null);function qn(e,t=null,n=null,o=0,r=null,i=e===Ve?0:1,l=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&U3(t),ref:t&&Du(t),scopeId:m3,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:lo};return a?(v0(s,n),i&128&&e.normalize(s)):n&&(s.shapeFlag|=Wt(n)?8:16),Zs>0&&!l&&ao&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&ao.push(s),s}const p=P7;function P7(e,t=null,n=null,o=0,r=null,i=!1){if((!e||e===WM)&&(e=mn),qt(e)){const a=cn(e,t,!0);return n&&v0(a,n),Zs>0&&!i&&ao&&(a.shapeFlag&6?ao[ao.indexOf(e)]=a:ao.push(a)),a.patchFlag=-2,a}if(B7(e)&&(e=e.__vccOpts),t){t=I7(t);let{class:a,style:s}=t;a&&!Wt(a)&&(t.class=Jm(a)),_t(s)&&(Uf(s)&&!rt(s)&&(s=sn({},s)),t.style=Gf(s))}const l=Wt(e)?1:G3(e)?128:y3(e)?64:_t(e)?4:at(e)?2:0;return qn(e,t,n,o,r,l,i,!0)}function I7(e){return e?Uf(e)||L3(e)?sn({},e):e:null}function cn(e,t,n=!1,o=!1){const{props:r,ref:i,patchFlag:l,children:a,transition:s}=e,u=t?T7(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&U3(u),ref:t&&t.ref?n&&i?rt(i)?i.concat(Du(t)):[i,Du(t)]:Du(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ve?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&cn(e.ssContent),ssFallback:e.ssFallback&&cn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&o&&ml(c,s.clone(c)),c}function Ft(e=" ",t=0){return p(Ei,null,e,t)}function Hfe(e="",t=!1){return t?(Nd(),h0(mn,null,e)):p(mn,null,e)}function cr(e){return e==null||typeof e=="boolean"?p(mn):rt(e)?p(Ve,null,e.slice()):qt(e)?ui(e):p(Ei,null,String(e))}function ui(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:cn(e)}function v0(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(rt(t))n=16;else if(typeof t=="object")if(o&65){const r=t.default;r&&(r._c&&(r._d=!1),v0(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!L3(t)?t._ctx=lo:r===3&&lo&&(lo.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else at(t)?(t={default:t,_ctx:lo},n=32):(t=String(t),o&64?(n=16,t=[Ft(t)]):n=8);e.children=t,e.shapeFlag|=n}function T7(...e){const t={};for(let n=0;nIn||lo;let kd,hv;{const e=Kf(),t=(n,o)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(o),i=>{r.length>1?r.forEach(l=>l(i)):r[0](i)}};kd=t("__VUE_INSTANCE_SETTERS__",n=>In=n),hv=t("__VUE_SSR_SETTERS__",n=>Qs=n)}const wc=e=>{const t=In;return kd(e),e.scope.on(),()=>{e.scope.off(),kd(t)}},oS=()=>{In&&In.scope.off(),kd(null)};function Y3(e){return e.vnode.shapeFlag&4}let Qs=!1;function A7(e,t=!1,n=!1){t&&hv(t);const{props:o,children:r}=e.vnode,i=Y3(e);p7(e,o,i,t),m7(e,r,n||t);const l=i?R7(e,t):void 0;return t&&hv(!1),l}function R7(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,GM);const{setup:o}=n;if(o){zr();const r=e.setupContext=o.length>1?Z3(e):null,i=wc(e),l=xc(o,e,0,[e.props,r]),a=F4(l);if(Hr(),i(),(a||e.sp)&&!Os(e)&&I3(e),a){if(l.then(oS,oS),t)return l.then(s=>{rS(e,s)}).catch(s=>{Yf(s,e,0)});e.asyncDep=l}else rS(e,l)}else q3(e)}function rS(e,t,n){at(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:_t(t)&&(e.setupState=d3(t)),q3(e)}function q3(e,t,n){const o=e.type;e.render||(e.render=o.render||dr);{const r=wc(e);zr();try{YM(e)}finally{Hr(),r()}}}const D7={get(e,t){return On(e,"get",""),e[t]}};function Z3(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,D7),slots:e.slots,emit:e.emit,expose:t}}function np(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(d3(a0(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ps)return Ps[n](e)},has(t,n){return n in t||n in Ps}})):e.proxy}function N7(e,t=!0){return at(e)?e.displayName||e.name:e.name||t&&e.__name}function B7(e){return at(e)&&"__vccOpts"in e}const P=(e,t)=>EM(e,t,Qs);function Vr(e,t,n){try{Bd(-1);const o=arguments.length;return o===2?_t(t)&&!rt(t)?qt(t)?p(e,null,[t]):p(e,t):p(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&qt(n)&&(n=[n]),p(e,t,n))}finally{Bd(1)}}const k7="3.5.25";let vv;const iS=typeof window<"u"&&window.trustedTypes;if(iS)try{vv=iS.createPolicy("vue",{createHTML:e=>e})}catch{}const Q3=vv?e=>vv.createHTML(e):e=>e,F7="http://www.w3.org/2000/svg",L7="http://www.w3.org/1998/Math/MathML",Pr=typeof document<"u"?document:null,lS=Pr&&Pr.createElement("template"),z7={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t==="svg"?Pr.createElementNS(F7,e):t==="mathml"?Pr.createElementNS(L7,e):n?Pr.createElement(e,{is:n}):Pr.createElement(e);return e==="select"&&o&&o.multiple!=null&&r.setAttribute("multiple",o.multiple),r},createText:e=>Pr.createTextNode(e),createComment:e=>Pr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Pr.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const l=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{lS.innerHTML=Q3(o==="svg"?`${e}`:o==="mathml"?`${e}`:e);const a=lS.content;if(o==="svg"||o==="mathml"){const s=a.firstChild;for(;s.firstChild;)a.appendChild(s.firstChild);a.removeChild(s)}t.insertBefore(a,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ni="transition",rs="animation",wa=Symbol("_vtc"),J3={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},eO=sn({},x3,J3),H7=e=>(e.displayName="Transition",e.props=eO,e),un=H7((e,{slots:t})=>Vr(kM,tO(e),t)),Hi=(e,t=[])=>{rt(e)?e.forEach(n=>n(...t)):e&&e(...t)},aS=e=>e?rt(e)?e.some(t=>t.length>1):e.length>1:!1;function tO(e){const t={};for(const A in e)A in J3||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:l=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:s=i,appearActiveClass:u=l,appearToClass:c=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,v=j7(r),h=v&&v[0],b=v&&v[1],{onBeforeEnter:y,onEnter:S,onEnterCancelled:$,onLeave:x,onLeaveCancelled:C,onBeforeAppear:O=y,onAppear:w=S,onAppearCancelled:I=$}=t,T=(A,R,z,M)=>{A._enterCancelled=M,ii(A,R?c:a),ii(A,R?u:l),z&&z()},_=(A,R)=>{A._isLeaving=!1,ii(A,d),ii(A,g),ii(A,f),R&&R()},E=A=>(R,z)=>{const M=A?w:S,N=()=>T(R,A,z);Hi(M,[R,N]),sS(()=>{ii(R,A?s:i),or(R,A?c:a),aS(M)||cS(R,o,h,N)})};return sn(t,{onBeforeEnter(A){Hi(y,[A]),or(A,i),or(A,l)},onBeforeAppear(A){Hi(O,[A]),or(A,s),or(A,u)},onEnter:E(!1),onAppear:E(!0),onLeave(A,R){A._isLeaving=!0;const z=()=>_(A,R);or(A,d),A._enterCancelled?(or(A,f),mv(A)):(mv(A),or(A,f)),sS(()=>{A._isLeaving&&(ii(A,d),or(A,g),aS(x)||cS(A,o,b,z))}),Hi(x,[A,z])},onEnterCancelled(A){T(A,!1,void 0,!0),Hi($,[A])},onAppearCancelled(A){T(A,!0,void 0,!0),Hi(I,[A])},onLeaveCancelled(A){_(A),Hi(C,[A])}})}function j7(e){if(e==null)return null;if(_t(e))return[Bg(e.enter),Bg(e.leave)];{const t=Bg(e);return[t,t]}}function Bg(e){return ZE(e)}function or(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[wa]||(e[wa]=new Set)).add(t)}function ii(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const n=e[wa];n&&(n.delete(t),n.size||(e[wa]=void 0))}function sS(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let V7=0;function cS(e,t,n,o){const r=e._endId=++V7,i=()=>{r===e._endId&&o()};if(n!=null)return setTimeout(i,n);const{type:l,timeout:a,propCount:s}=nO(e,t);if(!l)return o();const u=l+"end";let c=0;const d=()=>{e.removeEventListener(u,f),i()},f=g=>{g.target===e&&++c>=s&&d()};setTimeout(()=>{c(n[v]||"").split(", "),r=o(`${ni}Delay`),i=o(`${ni}Duration`),l=uS(r,i),a=o(`${rs}Delay`),s=o(`${rs}Duration`),u=uS(a,s);let c=null,d=0,f=0;t===ni?l>0&&(c=ni,d=l,f=i.length):t===rs?u>0&&(c=rs,d=u,f=s.length):(d=Math.max(l,u),c=d>0?l>u?ni:rs:null,f=c?c===ni?i.length:s.length:0);const g=c===ni&&/\b(?:transform|all)(?:,|$)/.test(o(`${ni}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:g}}function uS(e,t){for(;e.lengthdS(n)+dS(e[o])))}function dS(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function mv(e){return(e?e.ownerDocument:document).body.offsetHeight}function W7(e,t,n){const o=e[wa];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Fd=Symbol("_vod"),oO=Symbol("_vsh"),jn={name:"show",beforeMount(e,{value:t},{transition:n}){e[Fd]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):is(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),is(e,!0),o.enter(e)):o.leave(e,()=>{is(e,!1)}):is(e,t))},beforeUnmount(e,{value:t}){is(e,t)}};function is(e,t){e.style.display=t?e[Fd]:"none",e[oO]=!t}const K7=Symbol(""),G7=/(?:^|;)\s*display\s*:/;function X7(e,t,n){const o=e.style,r=Wt(n);let i=!1;if(n&&!r){if(t)if(Wt(t))for(const l of t.split(";")){const a=l.slice(0,l.indexOf(":")).trim();n[a]==null&&Nu(o,a,"")}else for(const l in t)n[l]==null&&Nu(o,l,"");for(const l in n)l==="display"&&(i=!0),Nu(o,l,n[l])}else if(r){if(t!==n){const l=o[K7];l&&(n+=";"+l),o.cssText=n,i=G7.test(n)}}else t&&e.removeAttribute("style");Fd in e&&(e[Fd]=i?o.display:"",e[oO]&&(o.display="none"))}const fS=/\s*!important$/;function Nu(e,t,n){if(rt(n))n.forEach(o=>Nu(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=U7(e,t);fS.test(n)?e.setProperty(Pl(o),n.replace(fS,""),"important"):e[o]=n}}const pS=["Webkit","Moz","ms"],kg={};function U7(e,t){const n=kg[t];if(n)return n;let o=Eo(t);if(o!=="filter"&&o in e)return kg[t]=o;o=Wf(o);for(let r=0;rFg||(J7.then(()=>Fg=0),Fg=Date.now());function t_(e,t){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;Go(n_(o,n.value),t,5,[o])};return n.value=e,n.attached=e_(),n}function n_(e,t){if(rt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>r=>!r._stopped&&o&&o(r))}else return t}const yS=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,o_=(e,t,n,o,r,i)=>{const l=r==="svg";t==="class"?W7(e,o,l):t==="style"?X7(e,n,o):zf(t)?Zm(t)||Z7(e,t,n,o,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):r_(e,t,o,l))?(vS(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&hS(e,t,o,l,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Wt(o))?vS(e,Eo(t),o,i,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),hS(e,t,o,l))};function r_(e,t,n,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&yS(t)&&at(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return yS(t)&&Wt(n)?!1:t in e}const rO=new WeakMap,iO=new WeakMap,Ld=Symbol("_moveCb"),SS=Symbol("_enterCb"),i_=e=>(delete e.props.mode,e),l_=i_({name:"TransitionGroup",props:sn({},eO,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=pn(),o=C3();let r,i;return An(()=>{if(!r.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!u_(r[0].el,n.vnode.el,l)){r=[];return}r.forEach(a_),r.forEach(s_);const a=r.filter(c_);mv(n.vnode.el),a.forEach(s=>{const u=s.el,c=u.style;or(u,l),c.transform=c.webkitTransform=c.transitionDuration="";const d=u[Ld]=f=>{f&&f.target!==u||(!f||f.propertyName.endsWith("transform"))&&(u.removeEventListener("transitionend",d),u[Ld]=null,ii(u,l))};u.addEventListener("transitionend",d)}),r=[]}),()=>{const l=Je(e),a=tO(l);let s=l.tag||Ve;if(r=[],i)for(let u=0;u{a.split(/\s+/).forEach(s=>s&&o.classList.remove(s))}),n.split(/\s+/).forEach(a=>a&&o.classList.add(a)),o.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(o);const{hasTransform:l}=nO(o);return i.removeChild(o),l}const d_=["ctrl","shift","alt","meta"],f_={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>d_.some(n=>e[`${n}Key`]&&!t.includes(n))},$S=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=((r,...i)=>{for(let l=0;l{lO().render(...e)}),aO=((...e)=>{const t=lO().createApp(...e),{mount:n}=t;return t.mount=o=>{const r=h_(o);if(!r)return;const i=t._component;!at(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const l=n(r,!1,g_(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t});function g_(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function h_(e){return Wt(e)?document.querySelector(e):e}let sO;const rp=e=>sO=e,cO=Symbol();function bv(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ts;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ts||(Ts={}));function v_(){const e=G4(!0),t=e.run(()=>re({}));let n=[],o=[];const r=a0({install(i){rp(r),r._a=i,i.provide(cO,r),i.config.globalProperties.$pinia=r,o.forEach(l=>n.push(l)),o=[]},use(i){return this._a?n.push(i):o.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const uO=()=>{};function xS(e,t,n,o=uO){e.add(t);const r=()=>{e.delete(t)&&o()};return!n&&e0()&&X4(r),r}function Hl(e,...t){e.forEach(n=>{n(...t)})}const m_=e=>e(),wS=Symbol(),Lg=Symbol();function yv(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,o)=>e.set(o,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];bv(r)&&bv(o)&&e.hasOwnProperty(n)&&!kt(o)&&!Fr(o)?e[n]=yv(r,o):e[n]=o}return e}const b_=Symbol();function y_(e){return!bv(e)||!Object.prototype.hasOwnProperty.call(e,b_)}const{assign:li}=Object;function S_(e){return!!(kt(e)&&e.effect)}function $_(e,t,n,o){const{state:r,actions:i,getters:l}=t,a=n.state.value[e];let s;function u(){a||(n.state.value[e]=r?r():{});const c=jo(n.state.value[e]);return li(c,i,Object.keys(l||{}).reduce((d,f)=>(d[f]=a0(P(()=>{rp(n);const g=n._s.get(e);return l[f].call(g,g)})),d),{}))}return s=dO(e,u,t,n,o,!0),s}function dO(e,t,n={},o,r,i){let l;const a=li({actions:{}},n),s={deep:!0};let u,c,d=new Set,f=new Set,g;const v=o.state.value[e];!i&&!v&&(o.state.value[e]={}),re({});let h;function b(I){let T;u=c=!1,typeof I=="function"?(I(o.state.value[e]),T={type:Ts.patchFunction,storeId:e,events:g}):(yv(o.state.value[e],I),T={type:Ts.patchObject,payload:I,storeId:e,events:g});const _=h=Symbol();ot().then(()=>{h===_&&(u=!0)}),c=!0,Hl(d,T,o.state.value[e])}const y=i?function(){const{state:T}=n,_=T?T():{};this.$patch(E=>{li(E,_)})}:uO;function S(){l.stop(),d.clear(),f.clear(),o._s.delete(e)}const $=(I,T="")=>{if(wS in I)return I[Lg]=T,I;const _=function(){rp(o);const E=Array.from(arguments),A=new Set,R=new Set;function z(B){A.add(B)}function M(B){R.add(B)}Hl(f,{args:E,name:_[Lg],store:C,after:z,onError:M});let N;try{N=I.apply(this&&this.$id===e?this:C,E)}catch(B){throw Hl(R,B),B}return N instanceof Promise?N.then(B=>(Hl(A,B),B)).catch(B=>(Hl(R,B),Promise.reject(B))):(Hl(A,N),N)};return _[wS]=!0,_[Lg]=T,_},x={_p:o,$id:e,$onAction:xS.bind(null,f),$patch:b,$reset:y,$subscribe(I,T={}){const _=xS(d,I,T.detached,()=>E()),E=l.run(()=>ye(()=>o.state.value[e],A=>{(T.flush==="sync"?c:u)&&I({storeId:e,type:Ts.direct,events:g},A)},li({},s,T)));return _},$dispose:S},C=ct(x);o._s.set(e,C);const w=(o._a&&o._a.runWithContext||m_)(()=>o._e.run(()=>(l=G4()).run(()=>t({action:$}))));for(const I in w){const T=w[I];if(kt(T)&&!S_(T)||Fr(T))i||(v&&y_(T)&&(kt(T)?T.value=v[I]:yv(T,v[I])),o.state.value[e][I]=T);else if(typeof T=="function"){const _=$(T,I);w[I]=_,a.actions[I]=T}}return li(C,w),li(Je(C),w),Object.defineProperty(C,"$state",{get:()=>o.state.value[e],set:I=>{b(T=>{li(T,I)})}}),o._p.forEach(I=>{li(C,l.run(()=>I({store:C,app:o._a,pinia:o,options:a})))}),v&&i&&n.hydrate&&n.hydrate(C.$state,v),u=!0,c=!0,C}function C_(e,t,n){let o;const r=typeof t=="function";o=r?n:t;function i(l,a){const s=n7();return l=l||(s?He(cO,null):null),l&&rp(l),l=sO,l._s.has(e)||(r?dO(e,t,o,l):$_(e,o,l)),l._s.get(e)}return i.$id=e,i}function Js(e){"@babel/helpers - typeof";return Js=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Js(e)}function x_(e,t){if(Js(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t);if(Js(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function w_(e){var t=x_(e,"string");return Js(t)=="symbol"?t:t+""}function O_(e,t,n){return(t=w_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function D(e){for(var t=1;ttypeof e=="function",P_=Array.isArray,I_=e=>typeof e=="string",T_=e=>e!==null&&typeof e=="object",E_=/^on[^a-z]/,M_=e=>E_.test(e),m0=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},__=/-(\w)/g,ka=m0(e=>e.replace(__,(t,n)=>n?n.toUpperCase():"")),A_=/\B([A-Z])/g,R_=m0(e=>e.replace(A_,"-$1").toLowerCase()),D_=m0(e=>e.charAt(0).toUpperCase()+e.slice(1)),N_=Object.prototype.hasOwnProperty,PS=(e,t)=>N_.call(e,t);function B_(e,t,n,o){const r=e[n];if(r!=null){const i=PS(r,"default");if(i&&o===void 0){const l=r.default;o=r.type!==Function&&Sv(l)?l():l}r.type===Boolean&&(!PS(t,n)&&!i?o=!1:o===""&&(o=!0))}return o}function k_(e){return Object.keys(e).reduce((t,n)=>((n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n]),t),{})}function Zi(e){return typeof e=="number"?`${e}px`:e}function ta(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return typeof e=="function"?e(t):e??n}function F_(e){let t;const n=new Promise(r=>{t=e(()=>{r(!0)})}),o=()=>{t?.()};return o.then=(r,i)=>n.then(r,i),o.promise=n,o}function le(){const e=[];for(let t=0;t0},e.prototype.connect_=function(){!$v||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),W_?(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(){!$v||!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(t){var n=t.propertyName,o=n===void 0?"":n,r=V_.some(function(i){return!!~o.indexOf(i)});r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),pO=(function(e,t){for(var n=0,o=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Oa(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new J_(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Oa(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(o){return new eA(o.target,o.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),hO=typeof WeakMap<"u"?new WeakMap:new fO,vO=(function(){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=K_.getInstance(),o=new tA(t,n,this);hO.set(this,o)}return e})();["observe","unobserve","disconnect"].forEach(function(e){vO.prototype[e]=function(){var t;return(t=hO.get(this))[e].apply(t,arguments)}});var b0=(function(){return typeof zd.ResizeObserver<"u"?zd.ResizeObserver:vO})();const Cv=e=>e!=null&&e!=="",Ze=(e,t)=>{const n=m({},e);return Object.keys(t).forEach(o=>{const r=n[o];if(r)r.type||r.default?r.default=t[o]:r.def?r.def(t[o]):n[o]={type:r,default:t[o]};else throw new Error(`not have ${o} prop`)}),n},y0=e=>{const t=Object.keys(e),n={},o={},r={};for(let i=0,l=t.length;i0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n={},o=/;(?![^(]*\))/g,r=/:(.+)/;return typeof e=="object"?e:(e.split(o).forEach(function(i){if(i){const l=i.split(r);if(l.length>1){const a=t?ka(l[0].trim()):l[0].trim();n[a]=l[1].trim()}}}),n)},Ar=(e,t)=>e[t]!==void 0,mO=Symbol("skipFlatten"),bt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=Array.isArray(e)?e:[e],o=[];return n.forEach(r=>{Array.isArray(r)?o.push(...bt(r,t)):r&&r.type===Ve?r.key===mO?o.push(r):o.push(...bt(r.children,t)):r&&qt(r)?t&&!Oc(r)?o.push(r):t||o.push(r):Cv(r)&&o.push(r)}),o},lp=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(qt(e))return e.type===Ve?t==="default"?bt(e.children):[]:e.children&&e.children[t]?bt(e.children[t](n)):[];{const o=e.$slots[t]&&e.$slots[t](n);return bt(o)}},Hn=e=>{var t;let n=((t=e?.vnode)===null||t===void 0?void 0:t.el)||e&&(e.$el||e);for(;n&&!n.tagName;)n=n.nextSibling;return n},bO=e=>{const t={};if(e.$&&e.$.vnode){const n=e.$.vnode.props||{};Object.keys(e.$props).forEach(o=>{const r=e.$props[o],i=R_(o);(r!==void 0||i in n)&&(t[o]=r)})}else if(qt(e)&&typeof e.type=="object"){const n=e.props||{},o={};Object.keys(n).forEach(i=>{o[ka(i)]=n[i]});const r=e.type.props||{};Object.keys(r).forEach(i=>{const l=B_(r,o,i,o[i]);(l!==void 0||i in o)&&(t[i]=l)})}return t},yO=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,r;if(e.$){const i=e[t];if(i!==void 0)return typeof i=="function"&&o?i(n):i;r=e.$slots[t],r=o&&r?r(n):r}else if(qt(e)){const i=e.props&&e.props[t];if(i!==void 0&&e.props!==null)return typeof i=="function"&&o?i(n):i;e.type===Ve?r=e.children:e.children&&e.children[t]&&(r=e.children[t],r=o&&r?r(n):r)}return Array.isArray(r)&&(r=bt(r),r=r.length===1?r[0]:r,r=r.length===0?void 0:r),r};function TS(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n={};return e.$?n=m(m({},n),e.$attrs):n=m(m({},n),e.props),y0(n)[t?"onEvents":"events"]}function oA(e){const n=((qt(e)?e.props:e.$attrs)||{}).class||{};let o={};return typeof n=="string"?n.split(" ").forEach(r=>{o[r.trim()]=!0}):Array.isArray(n)?le(n).split(" ").forEach(r=>{o[r.trim()]=!0}):o=m(m({},o),n),o}function SO(e,t){let o=((qt(e)?e.props:e.$attrs)||{}).style||{};return typeof o=="string"&&(o=nA(o,t)),o}function rA(e){return e.length===1&&e[0].type===Ve}function iA(e){return e==null||e===""||Array.isArray(e)&&e.length===0}function Oc(e){return e&&(e.type===mn||e.type===Ve&&e.children.length===0||e.type===Ei&&e.children.trim()==="")}function lA(e){return e&&e.type===Ei}function At(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=[];return e.forEach(n=>{Array.isArray(n)?t.push(...n):n?.type===Ve?t.push(...At(n.children)):t.push(n)}),t.filter(n=>!Oc(n))}function ls(e){if(e){const t=At(e);return t.length?t:void 0}else return e}function Kt(e){return Array.isArray(e)&&e.length===1&&(e=e[0]),e&&e.__v_isVNode&&typeof e.type!="symbol"}function Zt(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";var o,r;return(o=t[n])!==null&&o!==void 0?o:(r=e[n])===null||r===void 0?void 0:r.call(e)}const Mo=oe({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(e,t){let{slots:n}=t;const o=ct({width:0,height:0,offsetHeight:0,offsetWidth:0});let r=null,i=null;const l=()=>{i&&(i.disconnect(),i=null)},a=c=>{const{onResize:d}=e,f=c[0].target,{width:g,height:v}=f.getBoundingClientRect(),{offsetWidth:h,offsetHeight:b}=f,y=Math.floor(g),S=Math.floor(v);if(o.width!==y||o.height!==S||o.offsetWidth!==h||o.offsetHeight!==b){const $={width:y,height:S,offsetWidth:h,offsetHeight:b};m(o,$),d&&Promise.resolve().then(()=>{d(m(m({},$),{offsetWidth:h,offsetHeight:b}),f)})}},s=pn(),u=()=>{const{disabled:c}=e;if(c){l();return}const d=Hn(s);d!==r&&(l(),r=d),!i&&d&&(i=new b0(a),i.observe(d))};return je(()=>{u()}),An(()=>{u()}),$n(()=>{l()}),ye(()=>e.disabled,()=>{u()},{flush:"post"}),()=>{var c;return(c=n.default)===null||c===void 0?void 0:c.call(n)[0]}}});let $O=e=>setTimeout(e,16),CO=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&($O=e=>window.requestAnimationFrame(e),CO=e=>window.cancelAnimationFrame(e));let ES=0;const S0=new Map;function xO(e){S0.delete(e)}function qe(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ES+=1;const n=ES;function o(r){if(r===0)xO(n),e();else{const i=$O(()=>{o(r-1)});S0.set(n,i)}}return o(t),n}qe.cancel=e=>{const t=S0.get(e);return xO(t),CO(t)};function xv(e){let t;const n=r=>()=>{t=null,e(...r)},o=function(){if(t==null){for(var r=arguments.length,i=new Array(r),l=0;l{qe.cancel(t),t=null},o}const Sn=function(){for(var e=arguments.length,t=new Array(e),n=0;n{const t=e;return t.install=function(n){n.component(t.displayName||t.name,e)},e};function bl(){return{type:[Function,Array]}}function De(e){return{type:Object,default:e}}function $e(e){return{type:Boolean,default:e}}function ve(e){return{type:Function,default:e}}function yt(e,t){return{validator:()=>!0,default:e}}function Pn(){return{validator:()=>!0}}function lt(e){return{type:Array,default:e}}function Ne(e){return{type:String,default:e}}function Fe(e,t){return e?{type:e,default:t}:yt(t)}let Yt=!1;try{const e=Object.defineProperty({},"passive",{get(){Yt=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch{}function Et(e,t,n,o){if(e&&e.addEventListener){let r=o;r===void 0&&Yt&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(r={passive:!1}),e.addEventListener(t,n,r)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(t,n)}}}function Jc(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function MS(e,t,n){if(n!==void 0&&t.top>e.top-n)return`${n+t.top}px`}function _S(e,t,n){if(n!==void 0&&t.bottomo.target===e);n?n.affixList.push(t):(n={target:e,affixList:[t],eventHandlers:{}},Es.push(n),wO.forEach(o=>{n.eventHandlers[o]=Et(e,o,()=>{n.affixList.forEach(r=>{const{lazyUpdatePosition:i}=r.exposed;i()},(o==="touchstart"||o==="touchmove")&&Yt?{passive:!0}:!1)})}))}function RS(e){const t=Es.find(n=>{const o=n.affixList.some(r=>r===e);return o&&(n.affixList=n.affixList.filter(r=>r!==e)),o});t&&t.affixList.length===0&&(Es=Es.filter(n=>n!==t),wO.forEach(n=>{const o=t.eventHandlers[n];o&&o.remove&&o.remove()}))}const $0="anticon",OO=Symbol("GlobalFormContextKey"),sA=e=>{Xe(OO,e)},cA=()=>He(OO,{validateMessages:P(()=>{})}),uA=()=>({iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:De(),input:De(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:De(),pageHeader:De(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:"ltr"},space:De(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:De(),pagination:De(),theme:De(),select:De(),wave:De()}),C0=Symbol("configProvider"),PO={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:P(()=>$0),getPopupContainer:P(()=>()=>document.body),direction:P(()=>"ltr")},ap=()=>He(C0,PO),dA=e=>Xe(C0,e),IO=Symbol("DisabledContextKey"),Jn=()=>He(IO,re(void 0)),TO=e=>{const t=Jn();return Xe(IO,P(()=>{var n;return(n=e.value)!==null&&n!==void 0?n:t.value})),e},EO={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",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"},fA={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"},MO={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},ec={lang:m({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"]},fA),timePickerLocale:m({},MO)},to="${label} is not a valid ${type}",Vn={locale:"en",Pagination:EO,DatePicker:ec,TimePicker:MO,Calendar:ec,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"},PageHeader:{back:"Back"},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:to,method:to,array:to,object:to,number:to,date:to,boolean:to,integer:to,float:to,regexp:to,email:to,url:to,hex:to},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"}},Il=oe({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(e,t){let{slots:n}=t;const o=He("localeData",{}),r=P(()=>{const{componentName:l="global",defaultLocale:a}=e,s=a||Vn[l||"global"],{antLocale:u}=o,c=l&&u?u[l]:{};return m(m({},typeof s=="function"?s():s),c||{})}),i=P(()=>{const{antLocale:l}=o,a=l&&l.locale;return l&&l.exist&&!a?Vn.locale:a});return()=>{const l=e.children||n.default,{antLocale:a}=o;return l?.(r.value,i.value,a)}}});function Do(e,t,n){const o=He("localeData",{});return[P(()=>{const{antLocale:i}=o,l=St(t)||Vn[e||"global"],a=e&&i?i[e]:{};return m(m(m({},typeof l=="function"?l():l),a||{}),St(n)||{})})]}function x0(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}const DS="%";class pA{constructor(t){this.cache=new Map,this.instanceId=t}get(t){return this.cache.get(Array.isArray(t)?t.join(DS):t)||null}update(t,n){const o=Array.isArray(t)?t.join(DS):t,r=this.cache.get(o),i=n(r);i===null?this.cache.delete(o):this.cache.set(o,i)}}const _O="data-token-hash",cl="data-css-hash",na="__cssinjs_instance__";function tc(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${cl}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(r=>{r[na]=r[na]||e,r[na]===e&&document.head.insertBefore(r,n)});const o={};Array.from(document.querySelectorAll(`style[${cl}]`)).forEach(r=>{var i;const l=r.getAttribute(cl);o[l]?r[na]===e&&((i=r.parentNode)===null||i===void 0||i.removeChild(r)):o[l]=!0})}return new pA(e)}const AO=Symbol("StyleContextKey"),gA=()=>{var e,t,n;const o=pn();let r;if(o&&o.appContext){const i=(n=(t=(e=o.appContext)===null||e===void 0?void 0:e.config)===null||t===void 0?void 0:t.globalProperties)===null||n===void 0?void 0:n.__ANTDV_CSSINJS_CACHE__;i?r=i:(r=tc(),o.appContext.config.globalProperties&&(o.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=r))}else r=tc();return r},RO={cache:tc(),defaultCache:!0,hashPriority:"low"},sp=()=>{const e=gA();return He(AO,ne(m(m({},RO),{cache:e})))},hA=e=>{const t=sp(),n=ne(m(m({},RO),{cache:tc()}));return ye([()=>St(e),t],()=>{const o=m({},t.value),r=St(e);Object.keys(r).forEach(l=>{const a=r[l];r[l]!==void 0&&(o[l]=a)});const{cache:i}=r;o.cache=o.cache||tc(),o.defaultCache=!i&&t.value.defaultCache,n.value=o},{immediate:!0}),Xe(AO,n),n},vA=()=>({autoClear:$e(),mock:Ne(),cache:De(),defaultCache:$e(),hashPriority:Ne(),container:Fe(),ssrInline:$e(),transformers:lt(),linters:lt()}),mA=It(oe({name:"AStyleProvider",inheritAttrs:!1,props:vA(),setup(e,t){let{slots:n}=t;return hA(e),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}));function DO(e,t,n,o){const r=sp(),i=ne(""),l=ne();Le(()=>{i.value=[e,...t.value].join("%")});const a=s=>{r.value.cache.update(s,u=>{const[c=0,d]=u||[];return c-1===0?(o?.(d,!1),null):[c-1,d]})};return ye(i,(s,u)=>{u&&a(u),r.value.cache.update(s,c=>{const[d=0,f]=c||[],v=f||n();return[d+1,v]}),l.value=r.value.cache.get(i.value)[1]},{immediate:!0}),Qe(()=>{a(i.value)}),l}function Mn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function pi(e,t){return e&&e.contains?e.contains(t):!1}const NS="data-vc-order",bA="vc-util-key",wv=new Map;function NO(){let{mark:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:bA}function cp(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function yA(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function BO(e){return Array.from((wv.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function kO(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Mn())return null;const{csp:n,prepend:o}=t,r=document.createElement("style");r.setAttribute(NS,yA(o)),n?.nonce&&(r.nonce=n?.nonce),r.innerHTML=e;const i=cp(t),{firstChild:l}=i;if(o){if(o==="queue"){const a=BO(i).filter(s=>["prepend","prependQueue"].includes(s.getAttribute(NS)));if(a.length)return i.insertBefore(r,a[a.length-1].nextSibling),r}i.insertBefore(r,l)}else i.appendChild(r);return r}function FO(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=cp(t);return BO(n).find(o=>o.getAttribute(NO(t))===e)}function jd(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=FO(e,t);n&&cp(t).removeChild(n)}function SA(e,t){const n=wv.get(e);if(!n||!pi(document,n)){const o=kO("",t),{parentNode:r}=o;wv.set(e,r),e.removeChild(o)}}function nc(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var o,r,i;const l=cp(n);SA(l,n);const a=FO(t,n);if(a)return!((o=n.csp)===null||o===void 0)&&o.nonce&&a.nonce!==((r=n.csp)===null||r===void 0?void 0:r.nonce)&&(a.nonce=(i=n.csp)===null||i===void 0?void 0:i.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;const s=kO(e,n);return s.setAttribute(NO(n),t),s}function $A(e,t){if(e.length!==t.length)return!1;for(let n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return t.forEach(r=>{var i;o?o=(i=o?.map)===null||i===void 0?void 0:i.get(r):o=void 0}),o?.value&&n&&(o.value[1]=this.cacheCallTimes++),o?.value}get(t){var n;return(n=this.internalGet(t,!0))===null||n===void 0?void 0:n[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>Pa.MAX_CACHE_SIZE+Pa.MAX_CACHE_OFFSET){const[r]=this.keys.reduce((i,l)=>{const[,a]=i;return this.internalGet(l)[1]{if(i===t.length-1)o.set(r,{value:[n,this.cacheCallTimes++]});else{const l=o.get(r);l?l.map||(l.map=new Map):o.set(r,{map:new Map}),o=o.get(r).map}})}deleteByPath(t,n){var o;const r=t.get(n[0]);if(n.length===1)return r.map?t.set(n[0],{map:r.map}):t.delete(n[0]),(o=r.value)===null||o===void 0?void 0:o[0];const i=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),i}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!$A(n,t)),this.deleteByPath(this.cache,t)}}Pa.MAX_CACHE_SIZE=20;Pa.MAX_CACHE_OFFSET=5;let BS={};function CA(e,t){}function xA(e,t){}function LO(e,t,n){!t&&!BS[n]&&(e(!1,n),BS[n]=!0)}function w0(e,t){LO(CA,e,t)}function wA(e,t){LO(xA,e,t)}function OA(){}let fo=OA,kS=0;class zO{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=kS,t.length===0&&fo(t.length>0),kS+=1}getDerivativeToken(t){return this.derivatives.reduce((n,o)=>o(t,n),void 0)}}const zg=new Pa;function HO(e){const t=Array.isArray(e)?e:[e];return zg.has(t)||zg.set(t,new zO(t)),zg.get(t)}const FS=new WeakMap;function Vd(e){let t=FS.get(e)||"";return t||(Object.keys(e).forEach(n=>{const o=e[n];t+=n,o instanceof zO?t+=o.id:o&&typeof o=="object"?t+=Vd(o):t+=o}),FS.set(e,t)),t}function PA(e,t){return x0(`${t}_${Vd(e)}`)}const Ms=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),jO="_bAmBoO_";function IA(e,t,n){var o,r;if(Mn()){nc(e,Ms);const i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",t?.(i),document.body.appendChild(i);const l=n?n(i):(o=getComputedStyle(i).content)===null||o===void 0?void 0:o.includes(jO);return(r=i.parentNode)===null||r===void 0||r.removeChild(i),jd(Ms),l}return!1}let Hg;function TA(){return Hg===void 0&&(Hg=IA(`@layer ${Ms} { .${Ms} { content: "${jO}"!important; } }`,e=>{e.className=Ms})),Hg}const LS={},EA="css",Qi=new Map;function MA(e){Qi.set(e,(Qi.get(e)||0)+1)}function _A(e,t){typeof document<"u"&&document.querySelectorAll(`style[${_O}="${e}"]`).forEach(o=>{var r;o[na]===t&&((r=o.parentNode)===null||r===void 0||r.removeChild(o))})}const AA=0;function RA(e,t){Qi.set(e,(Qi.get(e)||0)-1);const n=Array.from(Qi.keys()),o=n.filter(r=>(Qi.get(r)||0)<=0);n.length-o.length>AA&&o.forEach(r=>{_A(r,t),Qi.delete(r)})}const DA=(e,t,n,o)=>{const r=n.getDerivativeToken(e);let i=m(m({},r),t);return o&&(i=o(i)),i};function NA(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:re({});const o=sp(),r=P(()=>m({},...t.value)),i=P(()=>Vd(r.value)),l=P(()=>Vd(n.value.override||LS));return DO("token",P(()=>[n.value.salt||"",e.value.id,i.value,l.value]),()=>{const{salt:s="",override:u=LS,formatToken:c,getComputedToken:d}=n.value,f=d?d(r.value,u,e.value):DA(r.value,u,e.value,c),g=PA(f,s);f._tokenKey=g,MA(g);const v=`${EA}-${x0(g)}`;return f._hashId=v,[f,v]},s=>{var u;RA(s[0]._tokenKey,(u=o.value)===null||u===void 0?void 0:u.cache.instanceId)})}var BA={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},VO="comm",WO="rule",KO="decl",kA="@import",FA="@namespace",LA="@keyframes",zA="@layer",GO=Math.abs,O0=String.fromCharCode;function XO(e){return e.trim()}function Bu(e,t,n){return e.replace(t,n)}function HA(e,t,n){return e.indexOf(t,n)}function ua(e,t){return e.charCodeAt(t)|0}function Ia(e,t,n){return e.slice(t,n)}function sr(e){return e.length}function jA(e){return e.length}function eu(e,t){return t.push(e),e}var up=1,Ta=1,UO=0,_o=0,nn=0,Fa="";function P0(e,t,n,o,r,i,l,a){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:up,column:Ta,length:l,return:"",siblings:a}}function VA(){return nn}function WA(){return nn=_o>0?ua(Fa,--_o):0,Ta--,nn===10&&(Ta=1,up--),nn}function Vo(){return nn=_o2||oc(nn)>3?"":" "}function UA(e,t){for(;--t&&Vo()&&!(nn<48||nn>102||nn>57&&nn<65||nn>70&&nn<97););return dp(e,ku()+(t<6&&vi()==32&&Vo()==32))}function Ov(e){for(;Vo();)switch(nn){case e:return _o;case 34:case 39:e!==34&&e!==39&&Ov(nn);break;case 40:e===41&&Ov(e);break;case 92:Vo();break}return _o}function YA(e,t){for(;Vo()&&e+nn!==57;)if(e+nn===84&&vi()===47)break;return"/*"+dp(t,_o-1)+"*"+O0(e===47?e:Vo())}function qA(e){for(;!oc(vi());)Vo();return dp(e,_o)}function ZA(e){return GA(Fu("",null,null,null,[""],e=KA(e),0,[0],e))}function Fu(e,t,n,o,r,i,l,a,s){for(var u=0,c=0,d=l,f=0,g=0,v=0,h=1,b=1,y=1,S=0,$="",x=r,C=i,O=o,w=$;b;)switch(v=S,S=Vo()){case 40:if(v!=108&&ua(w,d-1)==58){HA(w+=Bu(jg(S),"&","&\f"),"&\f",GO(u?a[u-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:w+=jg(S);break;case 9:case 10:case 13:case 32:w+=XA(v);break;case 92:w+=UA(ku()-1,7);continue;case 47:switch(vi()){case 42:case 47:eu(QA(YA(Vo(),ku()),t,n,s),s),(oc(v||1)==5||oc(vi()||1)==5)&&sr(w)&&Ia(w,-1,void 0)!==" "&&(w+=" ");break;default:w+="/"}break;case 123*h:a[u++]=sr(w)*y;case 125*h:case 59:case 0:switch(S){case 0:case 125:b=0;case 59+c:y==-1&&(w=Bu(w,/\f/g,"")),g>0&&(sr(w)-d||h===0&&v===47)&&eu(g>32?HS(w+";",o,n,d-1,s):HS(Bu(w," ","")+";",o,n,d-2,s),s);break;case 59:w+=";";default:if(eu(O=zS(w,t,n,u,c,r,a,$,x=[],C=[],d,i),i),S===123)if(c===0)Fu(w,t,O,O,x,i,d,a,C);else{switch(f){case 99:if(ua(w,3)===110)break;case 108:if(ua(w,2)===97)break;default:c=0;case 100:case 109:case 115:}c?Fu(e,O,O,o&&eu(zS(e,O,O,0,0,r,a,$,r,x=[],d,C),C),r,C,d,a,o?x:C):Fu(w,O,O,O,[""],C,0,a,C)}}u=c=g=0,h=y=1,$=w="",d=l;break;case 58:d=1+sr(w),g=v;default:if(h<1){if(S==123)--h;else if(S==125&&h++==0&&WA()==125)continue}switch(w+=O0(S),S*h){case 38:y=c>0?1:(w+="\f",-1);break;case 44:a[u++]=(sr(w)-1)*y,y=1;break;case 64:vi()===45&&(w+=jg(Vo())),f=vi(),c=d=sr($=w+=qA(ku())),S++;break;case 45:v===45&&sr(w)==2&&(h=0)}}return i}function zS(e,t,n,o,r,i,l,a,s,u,c,d){for(var f=r-1,g=r===0?i:[""],v=jA(g),h=0,b=0,y=0;h0?g[S]+" "+$:Bu($,/&\f/g,g[S])))&&(s[y++]=x);return P0(e,t,n,r===0?WO:a,s,u,c,d)}function QA(e,t,n,o){return P0(e,t,n,VO,O0(VA()),Ia(e,2,-2),0,o)}function HS(e,t,n,o,r){return P0(e,t,n,KO,Ia(e,0,o),Ia(e,o+1,-1),o,r)}function Pv(e,t){for(var n="",o=0;o{const[i,l]=r.split(":");ul[i]=l});const o=document.querySelector(`style[${jS}]`);o&&(YO=!1,(e=o.parentNode)===null||e===void 0||e.removeChild(o)),document.body.removeChild(t)}}function nR(e){return tR(),!!ul[e]}function oR(e){const t=ul[e];let n=null;if(t&&Mn())if(YO)n=eR;else{const o=document.querySelector(`style[${cl}="${ul[e]}"]`);o?n=o.innerHTML:delete ul[e]}return[n,t]}const VS=Mn(),rR="_skip_check_",qO="_multi_value_";function WS(e){return Pv(ZA(e),JA).replace(/\{%%%\:[^;];}/g,";")}function iR(e){return typeof e=="object"&&e&&(rR in e||qO in e)}function lR(e,t,n){if(!t)return e;const o=`.${t}`,r=n==="low"?`:where(${o})`:o;return e.split(",").map(l=>{var a;const s=l.trim().split(/\s+/);let u=s[0]||"";const c=((a=u.match(/^\w+/))===null||a===void 0?void 0:a[0])||"";return u=`${c}${r}${u.slice(c.length)}`,[u,...s.slice(1)].join(" ")}).join(",")}const KS=new Set,Iv=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{root:n,injectHash:o,parentSelectors:r}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:i,layer:l,path:a,hashPriority:s,transformers:u=[],linters:c=[]}=t;let d="",f={};function g(b){const y=b.getName(i);if(!f[y]){const[S]=Iv(b.style,t,{root:!1,parentSelectors:r});f[y]=`@keyframes ${b.getName(i)}${S}`}}function v(b){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(S=>{Array.isArray(S)?v(S,y):S&&y.push(S)}),y}if(v(Array.isArray(e)?e:[e]).forEach(b=>{const y=typeof b=="string"&&!n?{}:b;if(typeof y=="string")d+=`${y} +`;else if(y._keyframe)g(y);else{const S=u.reduce(($,x)=>{var C;return((C=x?.visit)===null||C===void 0?void 0:C.call(x,$))||$},y);Object.keys(S).forEach($=>{var x;const C=S[$];if(typeof C=="object"&&C&&($!=="animationName"||!C._keyframe)&&!iR(C)){let O=!1,w=$.trim(),I=!1;(n||o)&&i?w.startsWith("@")?O=!0:w=lR($,i,s):n&&!i&&(w==="&"||w==="")&&(w="",I=!0);const[T,_]=Iv(C,t,{root:I,injectHash:O,parentSelectors:[...r,w]});f=m(m({},f),_),d+=`${w}${T}`}else{let O=function(I,T){const _=I.replace(/[A-Z]/g,A=>`-${A.toLowerCase()}`);let E=T;!BA[I]&&typeof E=="number"&&E!==0&&(E=`${E}px`),I==="animationName"&&T?._keyframe&&(g(T),E=T.getName(i)),d+=`${_}:${E};`};const w=(x=C?.value)!==null&&x!==void 0?x:C;typeof C=="object"&&C?.[qO]&&Array.isArray(w)?w.forEach(I=>{O($,I)}):O($,w)}})}}),!n)d=`{${d}}`;else if(l&&TA()){const b=l.split(",");d=`@layer ${b[b.length-1].trim()} {${d}}`,b.length>1&&(d=`@layer ${l}{%%%:%}${d}`)}return[d,f]};function aR(e,t){return x0(`${e.join("%")}${t}`)}function Tv(e,t){const n=sp(),o=P(()=>e.value.token._tokenKey),r=P(()=>[o.value,...e.value.path]);let i=VS;return DO("style",r,()=>{const{path:l,hashId:a,layer:s,nonce:u,clientOnly:c,order:d=0}=e.value,f=r.value.join("|");if(nR(f)){const[w,I]=oR(f);if(w)return[w,o.value,I,{},c,d]}const g=t(),{hashPriority:v,container:h,transformers:b,linters:y,cache:S}=n.value,[$,x]=Iv(g,{hashId:a,hashPriority:v,layer:s,path:l.join("-"),transformers:b,linters:y}),C=WS($),O=aR(r.value,C);if(i){const w={mark:cl,prepend:"queue",attachTo:h,priority:d},I=typeof u=="function"?u():u;I&&(w.csp={nonce:I});const T=nc(C,O,w);T[na]=S.instanceId,T.setAttribute(_O,o.value),Object.keys(x).forEach(_=>{KS.has(_)||(KS.add(_),nc(WS(x[_]),`_effect-${_}`,{mark:cl,prepend:"queue",attachTo:h}))})}return[C,o.value,O,x,c,d]},(l,a)=>{let[,,s]=l;(a||n.value.autoClear)&&VS&&jd(s,{mark:cl})}),l=>l}class nt{constructor(t,n){this._keyframe=!0,this.name=t,this.style=n}getName(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t?`${t}-${this.name}`:this.name}}const sR={StyleProvider:mA},ZO="4.2.6",rc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function yn(e,t){cR(e)&&(e="100%");var n=uR(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function tu(e){return Math.min(1,Math.max(0,e))}function cR(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function uR(e){return typeof e=="string"&&e.indexOf("%")!==-1}function QO(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function nu(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ol(e){return e.length===1?"0"+e:String(e)}function dR(e,t,n){return{r:yn(e,255)*255,g:yn(t,255)*255,b:yn(n,255)*255}}function GS(e,t,n){e=yn(e,255),t=yn(t,255),n=yn(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,l=0,a=(o+r)/2;if(o===r)l=0,i=0;else{var s=o-r;switch(l=a>.5?s/(2-o-r):s/(o+r),o){case e:i=(t-n)/s+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function fR(e,t,n){var o,r,i;if(e=yn(e,360),t=yn(t,100),n=yn(n,100),t===0)r=n,i=n,o=n;else{var l=n<.5?n*(1+t):n+t-n*t,a=2*n-l;o=Vg(a,l,e+1/3),r=Vg(a,l,e),i=Vg(a,l,e-1/3)}return{r:o*255,g:r*255,b:i*255}}function Ev(e,t,n){e=yn(e,255),t=yn(t,255),n=yn(n,255);var o=Math.max(e,t,n),r=Math.min(e,t,n),i=0,l=o,a=o-r,s=o===0?0:a/o;if(o===r)i=0;else{switch(o){case e:i=(t-n)/a+(t>16,g:(e&65280)>>8,b:e&255}}var _v={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"};function ql(e){var t={r:0,g:0,b:0},n=1,o=null,r=null,i=null,l=!1,a=!1;return typeof e=="string"&&(e=yR(e)),typeof e=="object"&&($r(e.r)&&$r(e.g)&&$r(e.b)?(t=dR(e.r,e.g,e.b),l=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):$r(e.h)&&$r(e.s)&&$r(e.v)?(o=nu(e.s),r=nu(e.v),t=pR(e.h,o,r),l=!0,a="hsv"):$r(e.h)&&$r(e.s)&&$r(e.l)&&(o=nu(e.s),i=nu(e.l),t=fR(e.h,o,i),l=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=QO(n),{ok:l,format:e.format||a,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 mR="[-\\+]?\\d+%?",bR="[-\\+]?\\d*\\.\\d+%?",mi="(?:".concat(bR,")|(?:").concat(mR,")"),Wg="[\\s|\\(]+(".concat(mi,")[,|\\s]+(").concat(mi,")[,|\\s]+(").concat(mi,")\\s*\\)?"),Kg="[\\s|\\(]+(".concat(mi,")[,|\\s]+(").concat(mi,")[,|\\s]+(").concat(mi,")[,|\\s]+(").concat(mi,")\\s*\\)?"),Lo={CSS_UNIT:new RegExp(mi),rgb:new RegExp("rgb"+Wg),rgba:new RegExp("rgba"+Kg),hsl:new RegExp("hsl"+Wg),hsla:new RegExp("hsla"+Kg),hsv:new RegExp("hsv"+Wg),hsva:new RegExp("hsva"+Kg),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 yR(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(_v[e])e=_v[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Lo.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Lo.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Lo.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Lo.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Lo.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Lo.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Lo.hex8.exec(e),n?{r:ro(n[1]),g:ro(n[2]),b:ro(n[3]),a:XS(n[4]),format:t?"name":"hex8"}:(n=Lo.hex6.exec(e),n?{r:ro(n[1]),g:ro(n[2]),b:ro(n[3]),format:t?"name":"hex"}:(n=Lo.hex4.exec(e),n?{r:ro(n[1]+n[1]),g:ro(n[2]+n[2]),b:ro(n[3]+n[3]),a:XS(n[4]+n[4]),format:t?"name":"hex8"}:(n=Lo.hex3.exec(e),n?{r:ro(n[1]+n[1]),g:ro(n[2]+n[2]),b:ro(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function $r(e){return!!Lo.CSS_UNIT.exec(String(e))}var pt=(function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var o;if(t instanceof e)return t;typeof t=="number"&&(t=vR(t)),this.originalInput=t;var r=ql(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=(o=n.format)!==null&&o!==void 0?o:r.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=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,o,r,i=t.r/255,l=t.g/255,a=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),.2126*n+.7152*o+.0722*r},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=QO(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Ev(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Ev(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsva(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=GS(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=GS(this.r,this.g,this.b),n=Math.round(t.h*360),o=Math.round(t.s*100),r=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(o,"%, ").concat(r,"%)"):"hsla(".concat(n,", ").concat(o,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Mv(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),gR(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},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 t=Math.round(this.r),n=Math.round(this.g),o=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(o,")"):"rgba(".concat(t,", ").concat(n,", ").concat(o,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(yn(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(yn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Mv(this.r,this.g,this.b,!1),n=0,o=Object.entries(_v);n=0,i=!n&&r&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(o=this.toRgbString()),t==="prgb"&&(o=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(o=this.toHexString()),t==="hex3"&&(o=this.toHexString(!0)),t==="hex4"&&(o=this.toHex8String(!0)),t==="hex8"&&(o=this.toHex8String()),t==="name"&&(o=this.toName()),t==="hsl"&&(o=this.toHslString()),t==="hsv"&&(o=this.toHsvString()),o||this.toHexString())},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){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=tu(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=tu(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=tu(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=tu(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),o=(n.h+t)%360;return n.h=o<0?360+o:o,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var o=this.toRgb(),r=new e(t).toRgb(),i=n/100,l={r:(r.r-o.r)*i+o.r,g:(r.g-o.g)*i+o.g,b:(r.b-o.b)*i+o.b,a:(r.a-o.a)*i+o.a};return new e(l)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var o=this.toHsl(),r=360/n,i=[this];for(o.h=(o.h-(r*t>>1)+720)%360;--t;)o.h=(o.h+r)%360,i.push(new e(o));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){t===void 0&&(t=6);for(var n=this.toHsv(),o=n.h,r=n.s,i=n.v,l=[],a=1/t;t--;)l.push(new e({h:o,s:r,v:i})),i=(i+a)%1;return l},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(),o=new e(t).toRgb(),r=n.a+o.a*(1-n.a);return new e({r:(n.r*n.a+o.r*o.a*(1-n.a))/r,g:(n.g*n.a+o.g*o.a*(1-n.a))/r,b:(n.b*n.a+o.b*o.a*(1-n.a))/r,a:r})},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(),o=n.h,r=[this],i=360/t,l=1;l=60&&Math.round(e.h)<=240?o=n?Math.round(e.h)-ou*t:Math.round(e.h)+ou*t:o=n?Math.round(e.h)+ou*t:Math.round(e.h)-ou*t,o<0?o+=360:o>=360&&(o-=360),o}function ZS(e,t,n){if(e.h===0&&e.s===0)return e.s;var o;return n?o=e.s-US*t:t===eP?o=e.s+US:o=e.s+SR*t,o>1&&(o=1),n&&t===JO&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2))}function QS(e,t,n){var o;return n?o=e.v+$R*t:o=e.v-CR*t,o>1&&(o=1),Number(o.toFixed(2))}function yl(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],o=ql(e),r=JO;r>0;r-=1){var i=YS(o),l=ru(ql({h:qS(i,r,!0),s:ZS(i,r,!0),v:QS(i,r,!0)}));n.push(l)}n.push(ru(o));for(var a=1;a<=eP;a+=1){var s=YS(o),u=ru(ql({h:qS(s,a),s:ZS(s,a),v:QS(s,a)}));n.push(u)}return t.theme==="dark"?xR.map(function(c){var d=c.index,f=c.opacity,g=ru(wR(ql(t.backgroundColor||"#141414"),ql(n[d]),f*100));return g}):n}var da={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},_s={},Gg={};Object.keys(da).forEach(function(e){_s[e]=yl(da[e]),_s[e].primary=_s[e][5],Gg[e]=yl(da[e],{theme:"dark",backgroundColor:"#141414"}),Gg[e].primary=Gg[e][5]});var OR=_s.gold,PR=_s.blue;const IR=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function TR(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)}}const tP={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"},fp=m(m({},tP),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'`,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});function ER(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t;const{colorSuccess:r,colorWarning:i,colorError:l,colorInfo:a,colorPrimary:s,colorBgBase:u,colorTextBase:c}=e,d=n(s),f=n(r),g=n(i),v=n(l),h=n(a),b=o(u,c);return m(m({},b),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:h[1],colorInfoBgHover:h[2],colorInfoBorder:h[3],colorInfoBorderHover:h[4],colorInfoHover:h[4],colorInfo:h[6],colorInfoActive:h[7],colorInfoTextHover:h[8],colorInfoText:h[9],colorInfoTextActive:h[10],colorBgMask:new pt("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const MR=e=>{let t=e,n=e,o=e,r=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?o=1:e>=6&&(o=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e>16?16:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:r}};function _R(e){const{motionUnit:t,motionBase:n,borderRadius:o,lineWidth:r}=e;return m({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:r+1},MR(o))}const Cr=(e,t)=>new pt(e).setAlpha(t).toRgbString(),as=(e,t)=>new pt(e).darken(t).toHexString(),AR=e=>{const t=yl(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]}},RR=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:Cr(o,.88),colorTextSecondary:Cr(o,.65),colorTextTertiary:Cr(o,.45),colorTextQuaternary:Cr(o,.25),colorFill:Cr(o,.15),colorFillSecondary:Cr(o,.06),colorFillTertiary:Cr(o,.04),colorFillQuaternary:Cr(o,.02),colorBgLayout:as(n,4),colorBgContainer:as(n,0),colorBgElevated:as(n,0),colorBgSpotlight:Cr(o,.85),colorBorder:as(n,15),colorBorderSecondary:as(n,6)}};function DR(e){const t=new Array(10).fill(null).map((n,o)=>{const r=o-1,i=e*Math.pow(2.71828,r/5),l=o>1?Math.floor(i):Math.ceil(i);return Math.floor(l/2)*2});return t[1]=e,t.map(n=>{const o=n+8;return{size:n,lineHeight:o/n}})}const NR=e=>{const t=DR(e),n=t.map(r=>r.size),o=t.map(r=>r.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:o[1],lineHeightLG:o[2],lineHeightSM:o[0],lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};function BR(e){const t=Object.keys(tP).map(n=>{const o=yl(e[n]);return new Array(10).fill(1).reduce((r,i,l)=>(r[`${n}-${l+1}`]=o[l],r),{})}).reduce((n,o)=>(n=m(m({},n),o),n),{});return m(m(m(m(m(m(m({},e),t),ER(e,{generateColorPalettes:AR,generateNeutralColorPalettes:RR})),NR(e.fontSize)),TR(e)),IR(e)),_R(e))}function Xg(e){return e>=0&&e<=255}function iu(e,t){const{r:n,g:o,b:r,a:i}=new pt(e).toRgb();if(i<1)return e;const{r:l,g:a,b:s}=new pt(t).toRgb();for(let u=.01;u<=1;u+=.01){const c=Math.round((n-l*(1-u))/u),d=Math.round((o-a*(1-u))/u),f=Math.round((r-s*(1-u))/u);if(Xg(c)&&Xg(d)&&Xg(f))return new pt({r:c,g:d,b:f,a:Math.round(u*100)/100}).toRgbString()}return new pt({r:n,g:o,b:r,a:1}).toRgbString()}var kR=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{delete o[g]});const r=m(m({},n),o),i=480,l=576,a=768,s=992,u=1200,c=1600,d=2e3;return m(m(m({},r),{colorLink:r.colorInfoText,colorLinkHover:r.colorInfoHover,colorLinkActive:r.colorInfoActive,colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:iu(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:iu(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:iu(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidth:r.lineWidth,controlOutlineWidth:r.lineWidth*2,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:iu(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:` 0 1px 2px 0 rgba(0, 0, 0, 0.03), @@ -34,18 +34,18 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dash-BUMZuoA4.j 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,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)"}),o)}const pp=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),I0=(e,t,n,o,r)=>{const i=e/2,l=0,a=i,s=n*1/Math.sqrt(2),u=i-n*(1-1/Math.sqrt(2)),c=i-t*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),f=2*i-c,g=d,v=2*i-s,h=u,b=2*i-l,y=a,S=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),$=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::after":{content:'""',position:"absolute",width:S,height:S,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:o,clipPath:{_multi_value_:!0,value:[`polygon(${$}px 100%, 50% ${$}px, ${2*i-$}px 100%, ${$}px 100%)`,`path('M ${l} ${a} A ${n} ${n} 0 0 0 ${s} ${u} L ${c} ${d} A ${t} ${t} 0 0 1 ${f} ${g} L ${v} ${h} A ${n} ${n} 0 0 0 ${b} ${y} Z')`]},content:'""'}}};function Wd(e,t){return rc.reduce((n,o)=>{const r=e[`${o}-1`],i=e[`${o}-3`],l=e[`${o}-6`],a=e[`${o}-7`];return m(m({},n),t(o,{lightColor:r,lightBorderColor:i,darkColor:l,textColor:a}))},{})}const Gt={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ue=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),Tl=()=>({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"}}),Xo=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),LR=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"}}}),zR=(e,t)=>{const{fontFamily:n,fontSize:o}=e,r=`[class^="${t}"], [class*=" ${t}"]`;return{[r]:{fontFamily:n,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[r]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Wr=e=>({outline:`${e.lineWidthBold}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Kr=e=>({"&:focus-visible":m({},Wr(e))});function Ke(e,t,n){return o=>{const r=P(()=>o?.value),[i,l,a]=Ur(),{getPrefixCls:s,iconPrefixCls:u}=ap(),c=P(()=>s()),d=P(()=>({theme:i.value,token:l.value,hashId:a.value,path:["Shared",c.value]}));Tv(d,()=>[{"&":LR(l.value)}]);const f=P(()=>({theme:i.value,token:l.value,hashId:a.value,path:[e,r.value,u.value]}));return[Tv(f,()=>{const{token:g,flush:v}=jR(l.value),h=typeof n=="function"?n(g):n,b=m(m({},h),l.value[e]),y=`.${r.value}`,S=ke(g,{componentCls:y,prefixCls:r.value,iconCls:`.${u.value}`,antCls:`.${c.value}`},b),$=t(S,{hashId:a.value,prefixCls:r.value,rootPrefixCls:c.value,iconPrefixCls:u.value,overrideComponentToken:l.value[e]});return v(e,b),[zR(l.value,r.value),$]}),a]}}const nP=typeof CSSINJS_STATISTIC<"u";let Av=!0;function ke(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(r).forEach(l=>{Object.defineProperty(o,l,{configurable:!0,enumerable:!0,get:()=>r[l]})})}),Av=!0,o}function HR(){}function jR(e){let t,n=e,o=HR;return nP&&(t=new Set,n=new Proxy(e,{get(r,i){return Av&&t.add(i),r[i]}}),o=(r,i)=>{Array.from(t)}),{token:n,keys:t,flush:o}}const VR=HO(BR),oP={token:fp,hashed:!0},rP=Symbol("DesignTokenContext"),Rv=ne(),WR=e=>{Xe(rP,e),ye(e,()=>{Rv.value=St(e),u3(Rv)},{immediate:!0,deep:!0})},KR=oe({props:{value:De()},setup(e,t){let{slots:n}=t;return WR(P(()=>e.value)),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}});function Ur(){const e=He(rP,P(()=>Rv.value||oP)),t=P(()=>`${ZO}-${e.value.hashed||""}`),n=P(()=>e.value.theme||VR),o=NA(n,P(()=>[fp,e.value.token]),P(()=>({salt:t.value,override:m({override:e.value.token},e.value.components),formatToken:FR})));return[n,P(()=>o.value[0]),P(()=>e.value.hashed?o.value[1]:"")]}const T0=oe({compatConfig:{MODE:3},setup(){const[,e]=Ur(),t=P(()=>new pt(e.value.colorBgBase).toHsl().l<.5?{opacity:.65}:{});return()=>p("svg",{style:t.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[p("g",{fill:"none","fill-rule":"evenodd"},[p("g",{transform:"translate(24 31.67)"},[p("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),p("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"},null),p("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)"},null),p("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"},null),p("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"},null)]),p("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"},null),p("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[p("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),p("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});T0.PRESENTED_IMAGE_DEFAULT=!0;const iP=oe({compatConfig:{MODE:3},setup(){const[,e]=Ur(),t=P(()=>{const{colorFill:n,colorFillTertiary:o,colorFillQuaternary:r,colorBgContainer:i}=e.value;return{borderColor:new pt(n).onBackground(i).toHexString(),shadowColor:new pt(o).onBackground(i).toHexString(),contentColor:new pt(r).onBackground(i).toHexString()}});return()=>p("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[p("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[p("ellipse",{fill:t.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),p("g",{"fill-rule":"nonzero",stroke:t.value.borderColor},[p("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"},null),p("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:t.value.contentColor},null)])])])}});iP.PRESENTED_IMAGE_SIMPLE=!0;const GR=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:i,lineHeight:l}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:l,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},XR=Ke("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,o=ke(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return[GR(o)]});var UR=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,imageStyle:De(),image:yt(),description:yt()}),E0=oe({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:YR(),setup(e,t){let{slots:n={},attrs:o}=t;const{direction:r,prefixCls:i}=Te("empty",e),[l,a]=XR(i);return()=>{var s,u;const c=i.value,d=m(m({},e),o),{image:f=((s=n.image)===null||s===void 0?void 0:s.call(n))||Vr(T0),description:g=((u=n.description)===null||u===void 0?void 0:u.call(n))||void 0,imageStyle:v,class:h=""}=d,b=UR(d,["image","description","imageStyle","class"]),y=typeof f=="function"?f():f,S=typeof y=="object"&&"type"in y&&y.type.PRESENTED_IMAGE_SIMPLE;return l(p(Il,{componentName:"Empty",children:$=>{const x=typeof g<"u"?g:$.description,C=typeof x=="string"?x:"empty";let O=null;return typeof y=="string"?O=p("img",{alt:C,src:y},null):O=y,p("div",D({class:le(c,h,a.value,{[`${c}-normal`]:S,[`${c}-rtl`]:r.value==="rtl"})},b),[p("div",{class:`${c}-image`,style:v},[O]),x&&p("p",{class:`${c}-description`},[x]),n.default&&p("div",{class:`${c}-footer`},[_t(n.default())])])}},null))}}});E0.PRESENTED_IMAGE_DEFAULT=()=>Vr(T0);E0.PRESENTED_IMAGE_SIMPLE=()=>Vr(iP);const gi=It(E0),M0=e=>{const{prefixCls:t}=Te("empty",e);return(o=>{switch(o){case"Table":case"List":return p(gi,{image:gi.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return p(gi,{image:gi.PRESENTED_IMAGE_SIMPLE,class:`${t.value}-small`},null);default:return p(gi,null,null)}})(e.componentName)};function qR(e){return p(M0,{componentName:e},null)}const lP=Symbol("SizeContextKey"),aP=()=>He(lP,re(void 0)),sP=e=>{const t=aP();return Xe(lP,P(()=>e.value||t.value)),e},Te=((e,t)=>{const n=aP(),o=Jn(),r=He(C0,m(m({},PO),{renderEmpty:w=>Vr(M0,{componentName:w})})),i=P(()=>r.getPrefixCls(e,t.prefixCls)),l=P(()=>{var w,I;return(w=t.direction)!==null&&w!==void 0?w:(I=r.direction)===null||I===void 0?void 0:I.value}),a=P(()=>{var w;return(w=t.iconPrefixCls)!==null&&w!==void 0?w:r.iconPrefixCls.value}),s=P(()=>r.getPrefixCls()),u=P(()=>{var w;return(w=r.autoInsertSpaceInButton)===null||w===void 0?void 0:w.value}),c=r.renderEmpty,d=r.space,f=r.pageHeader,g=r.form,v=P(()=>{var w,I;return(w=t.getTargetContainer)!==null&&w!==void 0?w:(I=r.getTargetContainer)===null||I===void 0?void 0:I.value}),h=P(()=>{var w,I,T;return(I=(w=t.getContainer)!==null&&w!==void 0?w:t.getPopupContainer)!==null&&I!==void 0?I:(T=r.getPopupContainer)===null||T===void 0?void 0:T.value}),b=P(()=>{var w,I;return(w=t.dropdownMatchSelectWidth)!==null&&w!==void 0?w:(I=r.dropdownMatchSelectWidth)===null||I===void 0?void 0:I.value}),y=P(()=>{var w;return(t.virtual===void 0?((w=r.virtual)===null||w===void 0?void 0:w.value)!==!1:t.virtual!==!1)&&b.value!==!1}),S=P(()=>t.size||n.value),$=P(()=>{var w,I,T;return(w=t.autocomplete)!==null&&w!==void 0?w:(T=(I=r.input)===null||I===void 0?void 0:I.value)===null||T===void 0?void 0:T.autocomplete}),x=P(()=>{var w;return(w=t.disabled)!==null&&w!==void 0?w:o.value}),C=P(()=>{var w;return(w=t.csp)!==null&&w!==void 0?w:r.csp}),O=P(()=>{var w,I;return(w=t.wave)!==null&&w!==void 0?w:(I=r.wave)===null||I===void 0?void 0:I.value});return{configProvider:r,prefixCls:i,direction:l,size:S,getTargetContainer:v,getPopupContainer:h,space:d,pageHeader:f,form:g,autoInsertSpaceInButton:u,renderEmpty:c,virtual:y,dropdownMatchSelectWidth:b,rootPrefixCls:s,getPrefixCls:r.getPrefixCls,autocomplete:$,csp:C,iconPrefixCls:a,disabled:x,select:r.select,wave:O}});function tt(e,t){const n=m({},e);for(let o=0;o{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}},QR=Ke("Affix",e=>{const t=ke(e,{zIndexPopup:e.zIndexBase+10});return[ZR(t)]});function JR(){return typeof window<"u"?window:null}var oa;(function(e){e[e.None=0]="None",e[e.Prepare=1]="Prepare"})(oa||(oa={}));const e9=()=>({offsetTop:Number,offsetBottom:Number,target:{type:Function,default:JR},prefixCls:String,onChange:Function,onTestUpdatePosition:Function}),t9=oe({compatConfig:{MODE:3},name:"AAffix",inheritAttrs:!1,props:e9(),setup(e,t){let{slots:n,emit:o,expose:r,attrs:i}=t;const l=ne(),a=ne(),s=ct({affixStyle:void 0,placeholderStyle:void 0,status:oa.None,lastAffix:!1,prevTarget:null,timeout:null}),u=pn(),c=P(()=>e.offsetBottom===void 0&&e.offsetTop===void 0?0:e.offsetTop),d=P(()=>e.offsetBottom),f=()=>{const{status:$,lastAffix:x}=s,{target:C}=e;if($!==oa.Prepare||!a.value||!l.value||!C)return;const O=C();if(!O)return;const w={status:oa.None},I=Jc(l.value);if(I.top===0&&I.left===0&&I.width===0&&I.height===0)return;const T=Jc(O),M=MS(I,T,c.value),E=_S(I,T,d.value);if(!(I.top===0&&I.left===0&&I.width===0&&I.height===0)){if(M!==void 0){const A=`${I.width}px`,R=`${I.height}px`;w.affixStyle={position:"fixed",top:M,width:A,height:R},w.placeholderStyle={width:A,height:R}}else if(E!==void 0){const A=`${I.width}px`,R=`${I.height}px`;w.affixStyle={position:"fixed",bottom:E,width:A,height:R},w.placeholderStyle={width:A,height:R}}w.lastAffix=!!w.affixStyle,x!==w.lastAffix&&o("change",w.lastAffix),m(s,w)}},g=()=>{m(s,{status:oa.Prepare,affixStyle:void 0,placeholderStyle:void 0})},v=xv(()=>{g()}),h=xv(()=>{const{target:$}=e,{affixStyle:x}=s;if($&&x){const C=$();if(C&&l.value){const O=Jc(C),w=Jc(l.value),I=MS(w,O,c.value),T=_S(w,O,d.value);if(I!==void 0&&x.top===I||T!==void 0&&x.bottom===T)return}}g()});r({updatePosition:v,lazyUpdatePosition:h}),ye(()=>e.target,$=>{const x=$?.()||null;s.prevTarget!==x&&(RS(u),x&&(AS(x,u),v()),s.prevTarget=x)}),ye(()=>[e.offsetTop,e.offsetBottom],v),je(()=>{const{target:$}=e;$&&(s.timeout=setTimeout(()=>{AS($(),u),v()}))}),An(()=>{f()}),$n(()=>{clearTimeout(s.timeout),RS(u),v.cancel(),h.cancel()});const{prefixCls:b}=Te("affix",e),[y,S]=QR(b);return()=>{var $;const{affixStyle:x,placeholderStyle:C,status:O}=s,w=le({[b.value]:x,[S.value]:!0}),I=tt(e,["prefixCls","offsetTop","offsetBottom","target","onChange","onTestUpdatePosition"]);return y(p(Mo,{onResize:v},{default:()=>[p("div",D(D(D({},I),i),{},{ref:l,"data-measure-status":O}),[x&&p("div",{style:C,"aria-hidden":"true"},null),p("div",{class:w,ref:a,style:x},[($=n.default)===null||$===void 0?void 0:$.call(n)])])]}))}}}),cP=It(t9);function JS(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function e$(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function Ug(e,t){if(e.clientHeightt||i>e&&l=t&&a>=n?i-e-o:l>t&&an?l-t+r:0}var t$=function(e,t){var n=window,o=t.scrollMode,r=t.block,i=t.inline,l=t.boundary,a=t.skipOverflowHiddenElements,s=typeof l=="function"?l:function(te){return te!==l};if(!JS(e))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,f=[],g=e;JS(g)&&s(g);){if((g=(c=(u=g).parentElement)==null?u.getRootNode().host||null:c)===d){f.push(g);break}g!=null&&g===document.body&&Ug(g)&&!Ug(document.documentElement)||g!=null&&Ug(g,a)&&f.push(g)}for(var v=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,S=e.getBoundingClientRect(),$=S.height,x=S.width,C=S.top,O=S.right,w=S.bottom,I=S.left,T=r==="start"||r==="nearest"?C:r==="end"?w:C+$/2,M=i==="center"?I+x/2:i==="end"?O:I,E=[],A=0;A=0&&I>=0&&w<=h&&O<=v&&C>=B&&w<=F&&I>=L&&O<=k)return E;var H=getComputedStyle(R),j=parseInt(H.borderLeftWidth,10),Y=parseInt(H.borderTopWidth,10),Q=parseInt(H.borderRightWidth,10),U=parseInt(H.borderBottomWidth,10),ee=0,X=0,J="offsetWidth"in R?R.offsetWidth-R.clientWidth-j-Q:0,Z="offsetHeight"in R?R.offsetHeight-R.clientHeight-Y-U:0,G="offsetWidth"in R?R.offsetWidth===0?0:N/R.offsetWidth:0,q="offsetHeight"in R?R.offsetHeight===0?0:_/R.offsetHeight:0;if(d===R)ee=r==="start"?T:r==="end"?T-h:r==="nearest"?lu(y,y+h,h,Y,U,y+T,y+T+$,$):T-h/2,X=i==="start"?M:i==="center"?M-v/2:i==="end"?M-v:lu(b,b+v,v,j,Q,b+M,b+M+x,x),ee=Math.max(0,ee+y),X=Math.max(0,X+b);else{ee=r==="start"?T-B-Y:r==="end"?T-F+U+Z:r==="nearest"?lu(B,F,_,Y,U+Z,T,T+$,$):T-(B+_/2)+Z/2,X=i==="start"?M-L-j:i==="center"?M-(L+N/2)+J/2:i==="end"?M-k+Q+J:lu(L,k,N,j,Q+J,M,M+x,x);var V=R.scrollLeft,K=R.scrollTop;T+=K-(ee=Math.max(0,Math.min(K+ee/q,R.scrollHeight-_/q+Z))),M+=V-(X=Math.max(0,Math.min(V+X/G,R.scrollWidth-N/G+J)))}E.push({el:R,top:ee,left:X})}return E};function uP(e){return e===Object(e)&&Object.keys(e).length!==0}function n9(e,t){t===void 0&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(o){var r=o.el,i=o.top,l=o.left;r.scroll&&n?r.scroll({top:i,left:l,behavior:t}):(r.scrollTop=i,r.scrollLeft=l)})}function o9(e){return e===!1?{block:"end",inline:"nearest"}:uP(e)?e:{block:"start",inline:"nearest"}}function dP(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(uP(t)&&typeof t.behavior=="function")return t.behavior(n?t$(e,t):[]);if(n){var o=o9(t);return n9(t$(e,o),o.behavior)}}function r9(e,t,n,o){const r=n-t;return e/=o/2,e<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}function Dv(e){return e!=null&&e===e.window}function _0(e,t){var n,o;if(typeof window>"u")return 0;const r="scrollTop";let i=0;return Dv(e)?i=e.scrollY:e instanceof Document?i=e.documentElement[r]:(e instanceof HTMLElement||e)&&(i=e[r]),e&&!Dv(e)&&typeof i!="number"&&(i=(o=((n=e.ownerDocument)!==null&&n!==void 0?n:e).documentElement)===null||o===void 0?void 0:o[r]),i}function A0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:o,duration:r=450}=t,i=n(),l=_0(i),a=Date.now(),s=()=>{const c=Date.now()-a,d=r9(c>r?r:c,l,e,r);Dv(i)?i.scrollTo(window.scrollX,d):i instanceof Document?i.documentElement.scrollTop=d:i.scrollTop=d,c{Xe(fP,e)},l9=()=>He(fP,{registerLink:au,unregisterLink:au,scrollTo:au,activeLink:P(()=>""),handleClick:au,direction:P(()=>"vertical")}),a9=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:o,lineWidthBold:r,colorPrimary:i,lineType:l,colorSplit:a}=e;return{[`${t}-wrapper`]:{marginBlockStart:-n,paddingBlockStart:n,backgroundColor:"transparent",[t]:m(m({},Ue(e)),{position:"relative",paddingInlineStart:r,[`${t}-link`]:{paddingBlock:e.anchorPaddingBlock,paddingInline:`${e.anchorPaddingInline}px 0`,"&-title":m(m({},Gt),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",left:{_skip_check_:!0,value:0},top:0,height:"100%",borderInlineStart:`${r}px ${l} ${a}`,content:'" "'},[`${t}-ink`]:{position:"absolute",left:{_skip_check_:!0,value:0},display:"none",transform:"translateY(-50%)",transition:`top ${o} ease-in-out`,width:r,backgroundColor:i,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},s9=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:o,colorPrimary:r}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:o,backgroundColor:r}}}}},c9=Ke("Anchor",e=>{const{fontSize:t,fontSizeLG:n,padding:o,paddingXXS:r}=e,i=ke(e,{holderOffsetBlock:r,anchorPaddingBlock:r,anchorPaddingBlockSecondary:r/2,anchorPaddingInline:o,anchorTitleBlock:t/14*3,anchorBallSize:n/2});return[a9(i),s9(i)]}),u9=()=>({prefixCls:String,href:String,title:yt(),target:String,customTitleProps:De()}),R0=oe({compatConfig:{MODE:3},name:"AAnchorLink",inheritAttrs:!1,props:Ze(u9(),{href:"#"}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t,r=null;const{handleClick:i,scrollTo:l,unregisterLink:a,registerLink:s,activeLink:u}=l9(),{prefixCls:c}=Te("anchor",e),d=f=>{const{href:g}=e;i(f,{title:r,href:g}),l(g)};return ye(()=>e.href,(f,g)=>{ot(()=>{a(g),s(f)})}),je(()=>{s(e.href)}),Qe(()=>{a(e.href)}),()=>{var f;const{href:g,target:v,title:h=n.title,customTitleProps:b={}}=e,y=c.value;r=typeof h=="function"?h(b):h;const S=u.value===g,$=le(`${y}-link`,{[`${y}-link-active`]:S},o.class),x=le(`${y}-link-title`,{[`${y}-link-title-active`]:S});return p("div",D(D({},o),{},{class:$}),[p("a",{class:x,href:g,title:typeof r=="string"?r:"",target:v,onClick:d},[n.customTitle?n.customTitle(b):r]),(f=n.default)===null||f===void 0?void 0:f.call(n)])}}});function d9(e,t){for(var n=0;n=0||(r[n]=e[n]);return r}function n$(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var vP=Object.prototype,mP=vP.toString,f9=vP.hasOwnProperty,bP=/^\s*function (\w+)/;function o$(e){var t,n=(t=e?.type)!==null&&t!==void 0?t:e;if(n){var o=n.toString().match(bP);return o?o[1]:""}return""}var Sl=function(e){var t,n;return n$(e)!==!1&&typeof(t=e.constructor)=="function"&&n$(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1},p9=function(e){return e},uo=p9,ic=function(e,t){return f9.call(e,t)},g9=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},Ea=Array.isArray||function(e){return mP.call(e)==="[object Array]"},Ma=function(e){return mP.call(e)==="[object Function]"},Kd=function(e){return Sl(e)&&ic(e,"_vueTypes_name")},yP=function(e){return Sl(e)&&(ic(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return ic(e,t)}))};function D0(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function El(e,t,n){var o,r=!0,i="";o=Sl(e)?e:{type:e};var l=Kd(o)?o._vueTypes_name+" - ":"";if(yP(o)&&o.type!==null){if(o.type===void 0||o.type===!0||!o.required&&t===void 0)return r;Ea(o.type)?(r=o.type.some(function(d){return El(d,t)===!0}),i=o.type.map(function(d){return o$(d)}).join(" or ")):r=(i=o$(o))==="Array"?Ea(t):i==="Object"?Sl(t):i==="String"||i==="Number"||i==="Boolean"||i==="Function"?(function(d){if(d==null)return"";var f=d.constructor.toString().match(bP);return f?f[1]:""})(t)===i:t instanceof o.type}if(!r){var a=l+'value "'+t+'" should be of type "'+i+'"';return a}if(ic(o,"validator")&&Ma(o.validator)){var s=uo,u=[];if(uo=function(d){u.push(d)},r=o.validator(t),uo=s,!r){var c=(u.length>1?"* ":"")+u.join(` + `,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)"}),o)}const pp=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),I0=(e,t,n,o,r)=>{const i=e/2,l=0,a=i,s=n*1/Math.sqrt(2),u=i-n*(1-1/Math.sqrt(2)),c=i-t*(1/Math.sqrt(2)),d=n*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),f=2*i-c,g=d,v=2*i-s,h=u,b=2*i-l,y=a,S=i*Math.sqrt(2)+n*(Math.sqrt(2)-2),$=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:e,height:e,overflow:"hidden","&::after":{content:'""',position:"absolute",width:S,height:S,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e,height:e/2,background:o,clipPath:{_multi_value_:!0,value:[`polygon(${$}px 100%, 50% ${$}px, ${2*i-$}px 100%, ${$}px 100%)`,`path('M ${l} ${a} A ${n} ${n} 0 0 0 ${s} ${u} L ${c} ${d} A ${t} ${t} 0 0 1 ${f} ${g} L ${v} ${h} A ${n} ${n} 0 0 0 ${b} ${y} Z')`]},content:'""'}}};function Wd(e,t){return rc.reduce((n,o)=>{const r=e[`${o}-1`],i=e[`${o}-3`],l=e[`${o}-6`],a=e[`${o}-7`];return m(m({},n),t(o,{lightColor:r,lightBorderColor:i,darkColor:l,textColor:a}))},{})}const Gt={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ue=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),Tl=()=>({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"}}),Xo=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),LR=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"}}}),zR=(e,t)=>{const{fontFamily:n,fontSize:o}=e,r=`[class^="${t}"], [class*=" ${t}"]`;return{[r]:{fontFamily:n,fontSize:o,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[r]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Wr=e=>({outline:`${e.lineWidthBold}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),Kr=e=>({"&:focus-visible":m({},Wr(e))});function Ke(e,t,n){return o=>{const r=P(()=>o?.value),[i,l,a]=Ur(),{getPrefixCls:s,iconPrefixCls:u}=ap(),c=P(()=>s()),d=P(()=>({theme:i.value,token:l.value,hashId:a.value,path:["Shared",c.value]}));Tv(d,()=>[{"&":LR(l.value)}]);const f=P(()=>({theme:i.value,token:l.value,hashId:a.value,path:[e,r.value,u.value]}));return[Tv(f,()=>{const{token:g,flush:v}=jR(l.value),h=typeof n=="function"?n(g):n,b=m(m({},h),l.value[e]),y=`.${r.value}`,S=ke(g,{componentCls:y,prefixCls:r.value,iconCls:`.${u.value}`,antCls:`.${c.value}`},b),$=t(S,{hashId:a.value,prefixCls:r.value,rootPrefixCls:c.value,iconPrefixCls:u.value,overrideComponentToken:l.value[e]});return v(e,b),[zR(l.value,r.value),$]}),a]}}const nP=typeof CSSINJS_STATISTIC<"u";let Av=!0;function ke(){for(var e=arguments.length,t=new Array(e),n=0;n{Object.keys(r).forEach(l=>{Object.defineProperty(o,l,{configurable:!0,enumerable:!0,get:()=>r[l]})})}),Av=!0,o}function HR(){}function jR(e){let t,n=e,o=HR;return nP&&(t=new Set,n=new Proxy(e,{get(r,i){return Av&&t.add(i),r[i]}}),o=(r,i)=>{Array.from(t)}),{token:n,keys:t,flush:o}}const VR=HO(BR),oP={token:fp,hashed:!0},rP=Symbol("DesignTokenContext"),Rv=ne(),WR=e=>{Xe(rP,e),ye(e,()=>{Rv.value=St(e),u3(Rv)},{immediate:!0,deep:!0})},KR=oe({props:{value:De()},setup(e,t){let{slots:n}=t;return WR(P(()=>e.value)),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}});function Ur(){const e=He(rP,P(()=>Rv.value||oP)),t=P(()=>`${ZO}-${e.value.hashed||""}`),n=P(()=>e.value.theme||VR),o=NA(n,P(()=>[fp,e.value.token]),P(()=>({salt:t.value,override:m({override:e.value.token},e.value.components),formatToken:FR})));return[n,P(()=>o.value[0]),P(()=>e.value.hashed?o.value[1]:"")]}const T0=oe({compatConfig:{MODE:3},setup(){const[,e]=Ur(),t=P(()=>new pt(e.value.colorBgBase).toHsl().l<.5?{opacity:.65}:{});return()=>p("svg",{style:t.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[p("g",{fill:"none","fill-rule":"evenodd"},[p("g",{transform:"translate(24 31.67)"},[p("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),p("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"},null),p("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)"},null),p("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"},null),p("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"},null)]),p("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"},null),p("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[p("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),p("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});T0.PRESENTED_IMAGE_DEFAULT=!0;const iP=oe({compatConfig:{MODE:3},setup(){const[,e]=Ur(),t=P(()=>{const{colorFill:n,colorFillTertiary:o,colorFillQuaternary:r,colorBgContainer:i}=e.value;return{borderColor:new pt(n).onBackground(i).toHexString(),shadowColor:new pt(o).onBackground(i).toHexString(),contentColor:new pt(r).onBackground(i).toHexString()}});return()=>p("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[p("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[p("ellipse",{fill:t.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),p("g",{"fill-rule":"nonzero",stroke:t.value.borderColor},[p("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"},null),p("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:t.value.contentColor},null)])])])}});iP.PRESENTED_IMAGE_SIMPLE=!0;const GR=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:i,lineHeight:l}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:l,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},XR=Ke("Empty",e=>{const{componentCls:t,controlHeightLG:n}=e,o=ke(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return[GR(o)]});var UR=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,imageStyle:De(),image:yt(),description:yt()}),E0=oe({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:YR(),setup(e,t){let{slots:n={},attrs:o}=t;const{direction:r,prefixCls:i}=Te("empty",e),[l,a]=XR(i);return()=>{var s,u;const c=i.value,d=m(m({},e),o),{image:f=((s=n.image)===null||s===void 0?void 0:s.call(n))||Vr(T0),description:g=((u=n.description)===null||u===void 0?void 0:u.call(n))||void 0,imageStyle:v,class:h=""}=d,b=UR(d,["image","description","imageStyle","class"]),y=typeof f=="function"?f():f,S=typeof y=="object"&&"type"in y&&y.type.PRESENTED_IMAGE_SIMPLE;return l(p(Il,{componentName:"Empty",children:$=>{const x=typeof g<"u"?g:$.description,C=typeof x=="string"?x:"empty";let O=null;return typeof y=="string"?O=p("img",{alt:C,src:y},null):O=y,p("div",D({class:le(c,h,a.value,{[`${c}-normal`]:S,[`${c}-rtl`]:r.value==="rtl"})},b),[p("div",{class:`${c}-image`,style:v},[O]),x&&p("p",{class:`${c}-description`},[x]),n.default&&p("div",{class:`${c}-footer`},[At(n.default())])])}},null))}}});E0.PRESENTED_IMAGE_DEFAULT=()=>Vr(T0);E0.PRESENTED_IMAGE_SIMPLE=()=>Vr(iP);const gi=It(E0),M0=e=>{const{prefixCls:t}=Te("empty",e);return(o=>{switch(o){case"Table":case"List":return p(gi,{image:gi.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return p(gi,{image:gi.PRESENTED_IMAGE_SIMPLE,class:`${t.value}-small`},null);default:return p(gi,null,null)}})(e.componentName)};function qR(e){return p(M0,{componentName:e},null)}const lP=Symbol("SizeContextKey"),aP=()=>He(lP,re(void 0)),sP=e=>{const t=aP();return Xe(lP,P(()=>e.value||t.value)),e},Te=((e,t)=>{const n=aP(),o=Jn(),r=He(C0,m(m({},PO),{renderEmpty:w=>Vr(M0,{componentName:w})})),i=P(()=>r.getPrefixCls(e,t.prefixCls)),l=P(()=>{var w,I;return(w=t.direction)!==null&&w!==void 0?w:(I=r.direction)===null||I===void 0?void 0:I.value}),a=P(()=>{var w;return(w=t.iconPrefixCls)!==null&&w!==void 0?w:r.iconPrefixCls.value}),s=P(()=>r.getPrefixCls()),u=P(()=>{var w;return(w=r.autoInsertSpaceInButton)===null||w===void 0?void 0:w.value}),c=r.renderEmpty,d=r.space,f=r.pageHeader,g=r.form,v=P(()=>{var w,I;return(w=t.getTargetContainer)!==null&&w!==void 0?w:(I=r.getTargetContainer)===null||I===void 0?void 0:I.value}),h=P(()=>{var w,I,T;return(I=(w=t.getContainer)!==null&&w!==void 0?w:t.getPopupContainer)!==null&&I!==void 0?I:(T=r.getPopupContainer)===null||T===void 0?void 0:T.value}),b=P(()=>{var w,I;return(w=t.dropdownMatchSelectWidth)!==null&&w!==void 0?w:(I=r.dropdownMatchSelectWidth)===null||I===void 0?void 0:I.value}),y=P(()=>{var w;return(t.virtual===void 0?((w=r.virtual)===null||w===void 0?void 0:w.value)!==!1:t.virtual!==!1)&&b.value!==!1}),S=P(()=>t.size||n.value),$=P(()=>{var w,I,T;return(w=t.autocomplete)!==null&&w!==void 0?w:(T=(I=r.input)===null||I===void 0?void 0:I.value)===null||T===void 0?void 0:T.autocomplete}),x=P(()=>{var w;return(w=t.disabled)!==null&&w!==void 0?w:o.value}),C=P(()=>{var w;return(w=t.csp)!==null&&w!==void 0?w:r.csp}),O=P(()=>{var w,I;return(w=t.wave)!==null&&w!==void 0?w:(I=r.wave)===null||I===void 0?void 0:I.value});return{configProvider:r,prefixCls:i,direction:l,size:S,getTargetContainer:v,getPopupContainer:h,space:d,pageHeader:f,form:g,autoInsertSpaceInButton:u,renderEmpty:c,virtual:y,dropdownMatchSelectWidth:b,rootPrefixCls:s,getPrefixCls:r.getPrefixCls,autocomplete:$,csp:C,iconPrefixCls:a,disabled:x,select:r.select,wave:O}});function tt(e,t){const n=m({},e);for(let o=0;o{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}},QR=Ke("Affix",e=>{const t=ke(e,{zIndexPopup:e.zIndexBase+10});return[ZR(t)]});function JR(){return typeof window<"u"?window:null}var oa;(function(e){e[e.None=0]="None",e[e.Prepare=1]="Prepare"})(oa||(oa={}));const e9=()=>({offsetTop:Number,offsetBottom:Number,target:{type:Function,default:JR},prefixCls:String,onChange:Function,onTestUpdatePosition:Function}),t9=oe({compatConfig:{MODE:3},name:"AAffix",inheritAttrs:!1,props:e9(),setup(e,t){let{slots:n,emit:o,expose:r,attrs:i}=t;const l=ne(),a=ne(),s=ct({affixStyle:void 0,placeholderStyle:void 0,status:oa.None,lastAffix:!1,prevTarget:null,timeout:null}),u=pn(),c=P(()=>e.offsetBottom===void 0&&e.offsetTop===void 0?0:e.offsetTop),d=P(()=>e.offsetBottom),f=()=>{const{status:$,lastAffix:x}=s,{target:C}=e;if($!==oa.Prepare||!a.value||!l.value||!C)return;const O=C();if(!O)return;const w={status:oa.None},I=Jc(l.value);if(I.top===0&&I.left===0&&I.width===0&&I.height===0)return;const T=Jc(O),_=MS(I,T,c.value),E=_S(I,T,d.value);if(!(I.top===0&&I.left===0&&I.width===0&&I.height===0)){if(_!==void 0){const A=`${I.width}px`,R=`${I.height}px`;w.affixStyle={position:"fixed",top:_,width:A,height:R},w.placeholderStyle={width:A,height:R}}else if(E!==void 0){const A=`${I.width}px`,R=`${I.height}px`;w.affixStyle={position:"fixed",bottom:E,width:A,height:R},w.placeholderStyle={width:A,height:R}}w.lastAffix=!!w.affixStyle,x!==w.lastAffix&&o("change",w.lastAffix),m(s,w)}},g=()=>{m(s,{status:oa.Prepare,affixStyle:void 0,placeholderStyle:void 0})},v=xv(()=>{g()}),h=xv(()=>{const{target:$}=e,{affixStyle:x}=s;if($&&x){const C=$();if(C&&l.value){const O=Jc(C),w=Jc(l.value),I=MS(w,O,c.value),T=_S(w,O,d.value);if(I!==void 0&&x.top===I||T!==void 0&&x.bottom===T)return}}g()});r({updatePosition:v,lazyUpdatePosition:h}),ye(()=>e.target,$=>{const x=$?.()||null;s.prevTarget!==x&&(RS(u),x&&(AS(x,u),v()),s.prevTarget=x)}),ye(()=>[e.offsetTop,e.offsetBottom],v),je(()=>{const{target:$}=e;$&&(s.timeout=setTimeout(()=>{AS($(),u),v()}))}),An(()=>{f()}),$n(()=>{clearTimeout(s.timeout),RS(u),v.cancel(),h.cancel()});const{prefixCls:b}=Te("affix",e),[y,S]=QR(b);return()=>{var $;const{affixStyle:x,placeholderStyle:C,status:O}=s,w=le({[b.value]:x,[S.value]:!0}),I=tt(e,["prefixCls","offsetTop","offsetBottom","target","onChange","onTestUpdatePosition"]);return y(p(Mo,{onResize:v},{default:()=>[p("div",D(D(D({},I),i),{},{ref:l,"data-measure-status":O}),[x&&p("div",{style:C,"aria-hidden":"true"},null),p("div",{class:w,ref:a,style:x},[($=n.default)===null||$===void 0?void 0:$.call(n)])])]}))}}}),cP=It(t9);function JS(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function e$(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function Ug(e,t){if(e.clientHeightt||i>e&&l=t&&a>=n?i-e-o:l>t&&an?l-t+r:0}var t$=function(e,t){var n=window,o=t.scrollMode,r=t.block,i=t.inline,l=t.boundary,a=t.skipOverflowHiddenElements,s=typeof l=="function"?l:function(te){return te!==l};if(!JS(e))throw new TypeError("Invalid target");for(var u,c,d=document.scrollingElement||document.documentElement,f=[],g=e;JS(g)&&s(g);){if((g=(c=(u=g).parentElement)==null?u.getRootNode().host||null:c)===d){f.push(g);break}g!=null&&g===document.body&&Ug(g)&&!Ug(document.documentElement)||g!=null&&Ug(g,a)&&f.push(g)}for(var v=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,b=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,S=e.getBoundingClientRect(),$=S.height,x=S.width,C=S.top,O=S.right,w=S.bottom,I=S.left,T=r==="start"||r==="nearest"?C:r==="end"?w:C+$/2,_=i==="center"?I+x/2:i==="end"?O:I,E=[],A=0;A=0&&I>=0&&w<=h&&O<=v&&C>=B&&w<=F&&I>=L&&O<=k)return E;var H=getComputedStyle(R),j=parseInt(H.borderLeftWidth,10),Y=parseInt(H.borderTopWidth,10),Q=parseInt(H.borderRightWidth,10),U=parseInt(H.borderBottomWidth,10),ee=0,X=0,J="offsetWidth"in R?R.offsetWidth-R.clientWidth-j-Q:0,Z="offsetHeight"in R?R.offsetHeight-R.clientHeight-Y-U:0,G="offsetWidth"in R?R.offsetWidth===0?0:N/R.offsetWidth:0,q="offsetHeight"in R?R.offsetHeight===0?0:M/R.offsetHeight:0;if(d===R)ee=r==="start"?T:r==="end"?T-h:r==="nearest"?lu(y,y+h,h,Y,U,y+T,y+T+$,$):T-h/2,X=i==="start"?_:i==="center"?_-v/2:i==="end"?_-v:lu(b,b+v,v,j,Q,b+_,b+_+x,x),ee=Math.max(0,ee+y),X=Math.max(0,X+b);else{ee=r==="start"?T-B-Y:r==="end"?T-F+U+Z:r==="nearest"?lu(B,F,M,Y,U+Z,T,T+$,$):T-(B+M/2)+Z/2,X=i==="start"?_-L-j:i==="center"?_-(L+N/2)+J/2:i==="end"?_-k+Q+J:lu(L,k,N,j,Q+J,_,_+x,x);var V=R.scrollLeft,K=R.scrollTop;T+=K-(ee=Math.max(0,Math.min(K+ee/q,R.scrollHeight-M/q+Z))),_+=V-(X=Math.max(0,Math.min(V+X/G,R.scrollWidth-N/G+J)))}E.push({el:R,top:ee,left:X})}return E};function uP(e){return e===Object(e)&&Object.keys(e).length!==0}function n9(e,t){t===void 0&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(o){var r=o.el,i=o.top,l=o.left;r.scroll&&n?r.scroll({top:i,left:l,behavior:t}):(r.scrollTop=i,r.scrollLeft=l)})}function o9(e){return e===!1?{block:"end",inline:"nearest"}:uP(e)?e:{block:"start",inline:"nearest"}}function dP(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(uP(t)&&typeof t.behavior=="function")return t.behavior(n?t$(e,t):[]);if(n){var o=o9(t);return n9(t$(e,o),o.behavior)}}function r9(e,t,n,o){const r=n-t;return e/=o/2,e<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}function Dv(e){return e!=null&&e===e.window}function _0(e,t){var n,o;if(typeof window>"u")return 0;const r="scrollTop";let i=0;return Dv(e)?i=e.scrollY:e instanceof Document?i=e.documentElement[r]:(e instanceof HTMLElement||e)&&(i=e[r]),e&&!Dv(e)&&typeof i!="number"&&(i=(o=((n=e.ownerDocument)!==null&&n!==void 0?n:e).documentElement)===null||o===void 0?void 0:o[r]),i}function A0(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:o,duration:r=450}=t,i=n(),l=_0(i),a=Date.now(),s=()=>{const c=Date.now()-a,d=r9(c>r?r:c,l,e,r);Dv(i)?i.scrollTo(window.scrollX,d):i instanceof Document?i.documentElement.scrollTop=d:i.scrollTop=d,c{Xe(fP,e)},l9=()=>He(fP,{registerLink:au,unregisterLink:au,scrollTo:au,activeLink:P(()=>""),handleClick:au,direction:P(()=>"vertical")}),a9=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:o,lineWidthBold:r,colorPrimary:i,lineType:l,colorSplit:a}=e;return{[`${t}-wrapper`]:{marginBlockStart:-n,paddingBlockStart:n,backgroundColor:"transparent",[t]:m(m({},Ue(e)),{position:"relative",paddingInlineStart:r,[`${t}-link`]:{paddingBlock:e.anchorPaddingBlock,paddingInline:`${e.anchorPaddingInline}px 0`,"&-title":m(m({},Gt),{position:"relative",display:"block",marginBlockEnd:e.anchorTitleBlock,color:e.colorText,transition:`all ${e.motionDurationSlow}`,"&:only-child":{marginBlockEnd:0}}),[`&-active > ${t}-link-title`]:{color:e.colorPrimary},[`${t}-link`]:{paddingBlock:e.anchorPaddingBlockSecondary}}}),[`&:not(${t}-wrapper-horizontal)`]:{[t]:{"&::before":{position:"absolute",left:{_skip_check_:!0,value:0},top:0,height:"100%",borderInlineStart:`${r}px ${l} ${a}`,content:'" "'},[`${t}-ink`]:{position:"absolute",left:{_skip_check_:!0,value:0},display:"none",transform:"translateY(-50%)",transition:`top ${o} ease-in-out`,width:r,backgroundColor:i,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},s9=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:o,colorPrimary:r}=e;return{[`${t}-wrapper-horizontal`]:{position:"relative","&::before":{position:"absolute",left:{_skip_check_:!0,value:0},right:{_skip_check_:!0,value:0},bottom:0,borderBottom:`1px ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:o,backgroundColor:r}}}}},c9=Ke("Anchor",e=>{const{fontSize:t,fontSizeLG:n,padding:o,paddingXXS:r}=e,i=ke(e,{holderOffsetBlock:r,anchorPaddingBlock:r,anchorPaddingBlockSecondary:r/2,anchorPaddingInline:o,anchorTitleBlock:t/14*3,anchorBallSize:n/2});return[a9(i),s9(i)]}),u9=()=>({prefixCls:String,href:String,title:yt(),target:String,customTitleProps:De()}),R0=oe({compatConfig:{MODE:3},name:"AAnchorLink",inheritAttrs:!1,props:Ze(u9(),{href:"#"}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t,r=null;const{handleClick:i,scrollTo:l,unregisterLink:a,registerLink:s,activeLink:u}=l9(),{prefixCls:c}=Te("anchor",e),d=f=>{const{href:g}=e;i(f,{title:r,href:g}),l(g)};return ye(()=>e.href,(f,g)=>{ot(()=>{a(g),s(f)})}),je(()=>{s(e.href)}),Qe(()=>{a(e.href)}),()=>{var f;const{href:g,target:v,title:h=n.title,customTitleProps:b={}}=e,y=c.value;r=typeof h=="function"?h(b):h;const S=u.value===g,$=le(`${y}-link`,{[`${y}-link-active`]:S},o.class),x=le(`${y}-link-title`,{[`${y}-link-title-active`]:S});return p("div",D(D({},o),{},{class:$}),[p("a",{class:x,href:g,title:typeof r=="string"?r:"",target:v,onClick:d},[n.customTitle?n.customTitle(b):r]),(f=n.default)===null||f===void 0?void 0:f.call(n)])}}});function d9(e,t){for(var n=0;n=0||(r[n]=e[n]);return r}function n$(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var vP=Object.prototype,mP=vP.toString,f9=vP.hasOwnProperty,bP=/^\s*function (\w+)/;function o$(e){var t,n=(t=e?.type)!==null&&t!==void 0?t:e;if(n){var o=n.toString().match(bP);return o?o[1]:""}return""}var Sl=function(e){var t,n;return n$(e)!==!1&&typeof(t=e.constructor)=="function"&&n$(n=t.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1},p9=function(e){return e},uo=p9,ic=function(e,t){return f9.call(e,t)},g9=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},Ea=Array.isArray||function(e){return mP.call(e)==="[object Array]"},Ma=function(e){return mP.call(e)==="[object Function]"},Kd=function(e){return Sl(e)&&ic(e,"_vueTypes_name")},yP=function(e){return Sl(e)&&(ic(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return ic(e,t)}))};function D0(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function El(e,t,n){var o,r=!0,i="";o=Sl(e)?e:{type:e};var l=Kd(o)?o._vueTypes_name+" - ":"";if(yP(o)&&o.type!==null){if(o.type===void 0||o.type===!0||!o.required&&t===void 0)return r;Ea(o.type)?(r=o.type.some(function(d){return El(d,t)===!0}),i=o.type.map(function(d){return o$(d)}).join(" or ")):r=(i=o$(o))==="Array"?Ea(t):i==="Object"?Sl(t):i==="String"||i==="Number"||i==="Boolean"||i==="Function"?(function(d){if(d==null)return"";var f=d.constructor.toString().match(bP);return f?f[1]:""})(t)===i:t instanceof o.type}if(!r){var a=l+'value "'+t+'" should be of type "'+i+'"';return a}if(ic(o,"validator")&&Ma(o.validator)){var s=uo,u=[];if(uo=function(d){u.push(d)},r=o.validator(t),uo=s,!r){var c=(u.length>1?"* ":"")+u.join(` * `);return u.length=0,c}}return r}function po(e,t){var n=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(r){return r!==void 0||this.default?Ma(r)||El(this,r)===!0?(this.default=Ea(r)?function(){return[].concat(r)}:Sl(r)?function(){return Object.assign({},r)}:r,this):(uo(this._vueTypes_name+' - invalid default value: "'+r+'"'),this):this}}}),o=n.validator;return Ma(o)&&(n.validator=D0(o,n)),n}function hr(e,t){var n=po(e,t);return Object.defineProperty(n,"validate",{value:function(o){return Ma(this.validator)&&uo(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info: `+JSON.stringify(this)),this.validator=D0(o,this),this}})}function r$(e,t,n){var o,r,i=(o=t,r={},Object.getOwnPropertyNames(o).forEach(function(d){r[d]=Object.getOwnPropertyDescriptor(o,d)}),Object.defineProperties({},r));if(i._vueTypes_name=e,!Sl(n))return i;var l,a,s=n.validator,u=hP(n,["validator"]);if(Ma(s)){var c=i.validator;c&&(c=(a=(l=c).__original)!==null&&a!==void 0?a:l),i.validator=D0(c?function(d){return c.call(this,d)&&s.call(this,d)}:s,i)}return Object.assign(i,u)}function gp(e){return e.replace(/^(?!\s*$)/gm," ")}var h9=function(){return hr("any",{})},v9=function(){return hr("function",{type:Function})},m9=function(){return hr("boolean",{type:Boolean})},b9=function(){return hr("string",{type:String})},y9=function(){return hr("number",{type:Number})},S9=function(){return hr("array",{type:Array})},$9=function(){return hr("object",{type:Object})},C9=function(){return po("integer",{type:Number,validator:function(e){return g9(e)}})},x9=function(){return po("symbol",{validator:function(e){return typeof e=="symbol"}})};function w9(e,t){if(t===void 0&&(t="custom validation failed"),typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return po(e.name||"<>",{validator:function(n){var o=e(n);return o||uo(this._vueTypes_name+" - "+t),o}})}function O9(e){if(!Ea(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',n=e.reduce(function(o,r){if(r!=null){var i=r.constructor;o.indexOf(i)===-1&&o.push(i)}return o},[]);return po("oneOf",{type:n.length>0?n:void 0,validator:function(o){var r=e.indexOf(o)!==-1;return r||uo(t),r}})}function P9(e){if(!Ea(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,n=[],o=0;o0&&n.some(function(s){return l.indexOf(s)===-1})){var a=n.filter(function(s){return l.indexOf(s)===-1});return uo(a.length===1?'shape - required property "'+a[0]+'" is not defined.':'shape - required properties "'+a.join('", "')+'" are not defined.'),!1}return l.every(function(s){if(t.indexOf(s)===-1)return i._vueTypes_isLoose===!0||(uo('shape - shape definition does not include a "'+s+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var u=El(e[s],r[s]);return typeof u=="string"&&uo('shape - "'+s+`" property validation error: - `+gp(u)),u===!0})}});return Object.defineProperty(o,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(o,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),o}var rr=(function(){function e(){}return e.extend=function(t){var n=this;if(Ea(t))return t.forEach(function(d){return n.extend(d)}),this;var o=t.name,r=t.validate,i=r!==void 0&&r,l=t.getter,a=l!==void 0&&l,s=hP(t,["name","validate","getter"]);if(ic(this,o))throw new TypeError('[VueTypes error]: Type "'+o+'" already defined');var u,c=s.type;return Kd(c)?(delete s.type,Object.defineProperty(this,o,a?{get:function(){return r$(o,c,s)}}:{value:function(){var d,f=r$(o,c,s);return f.validator&&(f.validator=(d=f.validator).bind.apply(d,[f].concat([].slice.call(arguments)))),f}})):(u=a?{get:function(){var d=Object.assign({},s);return i?hr(o,d):po(o,d)},enumerable:!0}:{value:function(){var d,f,g=Object.assign({},s);return d=i?hr(o,g):po(o,g),g.validator&&(d.validator=(f=g.validator).bind.apply(f,[d].concat([].slice.call(arguments)))),d},enumerable:!0},Object.defineProperty(this,o,u))},pP(e,null,[{key:"any",get:function(){return h9()}},{key:"func",get:function(){return v9().def(this.defaults.func)}},{key:"bool",get:function(){return m9().def(this.defaults.bool)}},{key:"string",get:function(){return b9().def(this.defaults.string)}},{key:"number",get:function(){return y9().def(this.defaults.number)}},{key:"array",get:function(){return S9().def(this.defaults.array)}},{key:"object",get:function(){return $9().def(this.defaults.object)}},{key:"integer",get:function(){return C9().def(this.defaults.integer)}},{key:"symbol",get:function(){return x9()}}]),e})();function SP(e){var t;return e===void 0&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=(function(n){function o(){return n.apply(this,arguments)||this}return gP(o,n),pP(o,null,[{key:"sensibleDefaults",get:function(){return Lu({},this.defaults)},set:function(r){this.defaults=r!==!1?Lu({},r!==!0?r:e):{}}}]),o})(rr)).defaults=Lu({},e),t}rr.defaults={},rr.custom=w9,rr.oneOf=O9,rr.instanceOf=T9,rr.oneOfType=P9,rr.arrayOf=I9,rr.objectOf=E9,rr.shape=M9,rr.utils={validate:function(e,t){return El(t,e)===!0},toType:function(e,t,n){return n===void 0&&(n=!1),n?hr(e,t):po(e,t)}};(function(e){function t(){return e.apply(this,arguments)||this}return gP(t,e),t})(SP());const W=SP({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});W.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);function $P(e){return e.default=void 0,e}const Ct=((e,t,n)=>{w0(e,`[ant-design-vue: ${t}] ${n}`)});function _9(){return window}function i$(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?(t=e.ownerDocument.documentElement,n.top-t.clientTop):n.top-t.getBoundingClientRect().top:n.top}const l$=/#([\S ]+)$/,A9=()=>({prefixCls:String,offsetTop:Number,bounds:Number,affix:{type:Boolean,default:!0},showInkInFixed:{type:Boolean,default:!1},getContainer:Function,wrapperClass:String,wrapperStyle:{type:Object,default:void 0},getCurrentAnchor:Function,targetOffset:Number,items:lt(),direction:W.oneOf(["vertical","horizontal"]).def("vertical"),onChange:Function,onClick:Function}),Ji=oe({compatConfig:{MODE:3},name:"AAnchor",inheritAttrs:!1,props:A9(),setup(e,t){let{emit:n,attrs:o,slots:r,expose:i}=t;const{prefixCls:l,getTargetContainer:a,direction:s}=Te("anchor",e),u=P(()=>{var w;return(w=e.direction)!==null&&w!==void 0?w:"vertical"}),c=re(null),d=re(),f=ct({links:[],scrollContainer:null,scrollEvent:null,animating:!1}),g=re(null),v=P(()=>{const{getContainer:w}=e;return w||a?.value||_9}),h=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;const T=[],M=v.value();return f.links.forEach(E=>{const A=l$.exec(E.toString());if(!A)return;const R=document.getElementById(A[1]);if(R){const z=i$(R,M);zR.top>A.top?R:A).link:""},b=w=>{const{getCurrentAnchor:I}=e;g.value!==w&&(g.value=typeof I=="function"?I(w):w,n("change",w))},y=w=>{const{offsetTop:I,targetOffset:T}=e;b(w);const M=l$.exec(w);if(!M)return;const E=document.getElementById(M[1]);if(!E)return;const A=v.value(),R=_0(A),z=i$(E,A);let _=R+z;_-=T!==void 0?T:I||0,f.animating=!0,A0(_,{callback:()=>{f.animating=!1},getContainer:v.value})};i({scrollTo:y});const S=()=>{if(f.animating)return;const{offsetTop:w,bounds:I,targetOffset:T}=e,M=h(T!==void 0?T:w||0,I);b(M)},$=()=>{const w=d.value.querySelector(`.${l.value}-link-title-active`);if(w&&c.value){const I=u.value==="horizontal";c.value.style.top=I?"":`${w.offsetTop+w.clientHeight/2}px`,c.value.style.height=I?"":`${w.clientHeight}px`,c.value.style.left=I?`${w.offsetLeft}px`:"",c.value.style.width=I?`${w.clientWidth}px`:"",I&&dP(w,{scrollMode:"if-needed",block:"nearest"})}};i9({registerLink:w=>{f.links.includes(w)||f.links.push(w)},unregisterLink:w=>{const I=f.links.indexOf(w);I!==-1&&f.links.splice(I,1)},activeLink:g,scrollTo:y,handleClick:(w,I)=>{n("click",w,I)},direction:u}),je(()=>{ot(()=>{const w=v.value();f.scrollContainer=w,f.scrollEvent=Et(f.scrollContainer,"scroll",S),S()})}),Qe(()=>{f.scrollEvent&&f.scrollEvent.remove()}),An(()=>{if(f.scrollEvent){const w=v.value();f.scrollContainer!==w&&(f.scrollContainer=w,f.scrollEvent.remove(),f.scrollEvent=Et(f.scrollContainer,"scroll",S),S())}$()});const x=w=>Array.isArray(w)?w.map(I=>{const{children:T,key:M,href:E,target:A,class:R,style:z,title:_}=I;return p(R0,{key:M,href:E,target:A,class:R,style:z,title:_,customTitleProps:I},{default:()=>[u.value==="vertical"?x(T):null],customTitle:r.customTitle})}):null,[C,O]=c9(l);return()=>{var w;const{offsetTop:I,affix:T,showInkInFixed:M}=e,E=l.value,A=le(`${E}-ink`,{[`${E}-ink-visible`]:g.value}),R=le(O.value,e.wrapperClass,`${E}-wrapper`,{[`${E}-wrapper-horizontal`]:u.value==="horizontal",[`${E}-rtl`]:s.value==="rtl"}),z=le(E,{[`${E}-fixed`]:!T&&!M}),_=m({maxHeight:I?`calc(100vh - ${I}px)`:"100vh"},e.wrapperStyle),N=p("div",{class:R,style:_,ref:d},[p("div",{class:z},[p("span",{class:A,ref:c},null),Array.isArray(e.items)?x(e.items):(w=r.default)===null||w===void 0?void 0:w.call(r)])]);return C(T?p(cP,D(D({},o),{},{offsetTop:I,target:v.value}),{default:()=>[N]}):N)}}});Ji.Link=R0;Ji.install=function(e){return e.component(Ji.name,Ji),e.component(Ji.Link.name,Ji.Link),e};function a$(e,t){const{key:n}=e;let o;return"value"in e&&({value:o}=e),n??(o!==void 0?o:`rc-index-key-${t}`)}function CP(e,t){const{label:n,value:o,options:r}=e||{};return{label:n||(t?"children":"label"),value:o||"value",options:r||"options"}}function R9(e){let{fieldNames:t,childrenAsData:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=[],{label:r,value:i,options:l}=CP(t,!1);function a(s,u){s.forEach(c=>{const d=c[r];if(u||!(l in c)){const f=c[i];o.push({key:a$(c,o.length),groupOption:u,data:c,label:d,value:f})}else{let f=d;f===void 0&&n&&(f=c.label),o.push({key:a$(c,o.length),group:!0,data:c,label:f}),a(c[l],!0)}})}return a(e,!1),o}function Nv(e){const t=m({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return t}}),t}function D9(e,t){if(!t||!t.length)return null;let n=!1;function o(i,l){let[a,...s]=l;if(!a)return[i];const u=i.split(a);return n=n||u.length>1,u.reduce((c,d)=>[...c,...o(d,s)],[]).filter(c=>c)}const r=o(e,t);return n?r:null}function N9(){return""}function B9(e){return e?e.ownerDocument:window.document}function xP(){}const wP=()=>({action:W.oneOfType([W.string,W.arrayOf(W.string)]).def([]),showAction:W.any.def([]),hideAction:W.any.def([]),getPopupClassNameFromAlign:W.any.def(N9),onPopupVisibleChange:Function,afterPopupVisibleChange:W.func.def(xP),popup:W.any,arrow:W.bool.def(!0),popupStyle:{type:Object,default:void 0},prefixCls:W.string.def("rc-trigger-popup"),popupClassName:W.string.def(""),popupPlacement:String,builtinPlacements:W.object,popupTransitionName:String,popupAnimation:W.any,mouseEnterDelay:W.number.def(0),mouseLeaveDelay:W.number.def(.1),zIndex:Number,focusDelay:W.number.def(0),blurDelay:W.number.def(.15),getPopupContainer:Function,getDocument:W.func.def(B9),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:W.object.def(()=>({})),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function}),N0={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,arrow:{type:Boolean,default:!0},animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},k9=m(m({},N0),{mobile:{type:Object}}),F9=m(m({},N0),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function B0(e){let{prefixCls:t,animation:n,transitionName:o}=e;return n?{name:`${t}-${n}`}:o?{name:o}:{}}function OP(e){const{prefixCls:t,visible:n,zIndex:o,mask:r,maskAnimation:i,maskTransitionName:l}=e;if(!r)return null;let a={};return(l||i)&&(a=B0({prefixCls:t,transitionName:l,animation:i})),p(un,D({appear:!0},a),{default:()=>[En(p("div",{style:{zIndex:o},class:`${t}-mask`},null),[[KM("if"),n]])]})}OP.displayName="Mask";const L9=oe({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:k9,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,slots:o}=t;const r=re();return n({forceAlign:()=>{},getElement:()=>r.value}),()=>{var i;const{zIndex:l,visible:a,prefixCls:s,mobile:{popupClassName:u,popupStyle:c,popupMotion:d={},popupRender:f}={}}=e,g=m({zIndex:l},c);let v=bt((i=o.default)===null||i===void 0?void 0:i.call(o));v.length>1&&(v=p("div",{class:`${s}-content`},[v])),f&&(v=f(v));const h=le(s,u);return p(un,D({ref:r},d),{default:()=>[a?p("div",{class:h,style:g},[v]):null]})}}});var z9=function(e,t,n,o){function r(i){return i instanceof n?i:new n(function(l){l(i)})}return new(n||(n=Promise))(function(i,l){function a(c){try{u(o.next(c))}catch(d){l(d)}}function s(c){try{u(o.throw(c))}catch(d){l(d)}}function u(c){c.done?i(c.value):r(c.value).then(a,s)}u((o=o.apply(e,t||[])).next())})};const s$=["measure","align",null,"motion"],H9=((e,t)=>{const n=ne(null),o=ne(),r=ne(!1);function i(s){r.value||(n.value=s)}function l(){qe.cancel(o.value)}function a(s){l(),o.value=qe(()=>{let u=n.value;switch(n.value){case"align":u="motion";break;case"motion":u="stable";break}i(u),s?.()})}return ye(e,()=>{i("measure")},{immediate:!0,flush:"post"}),je(()=>{ye(n,()=>{n.value==="measure"&&t(),n.value&&(o.value=qe(()=>z9(void 0,void 0,void 0,function*(){const s=s$.indexOf(n.value),u=s$[s+1];u&&s!==-1&&i(u)})))},{immediate:!0,flush:"post"})}),Qe(()=>{r.value=!0,l()}),[n,a]}),j9=(e=>{const t=ne({width:0,height:0});function n(r){t.value={width:r.offsetWidth,height:r.offsetHeight}}return[P(()=>{const r={};if(e.value){const{width:i,height:l}=t.value;e.value.indexOf("height")!==-1&&l?r.height=`${l}px`:e.value.indexOf("minHeight")!==-1&&l&&(r.minHeight=`${l}px`),e.value.indexOf("width")!==-1&&i?r.width=`${i}px`:e.value.indexOf("minWidth")!==-1&&i&&(r.minWidth=`${i}px`)}return r}),n]});function c$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function u$(e){for(var t=1;t=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function dD(e,t,n,o){var r=st.clone(e),i={width:t.width,height:t.height};return o.adjustX&&r.left=n.left&&r.left+i.width>n.right&&(i.width-=r.left+i.width-n.right),o.adjustX&&r.left+i.width>n.right&&(r.left=Math.max(n.right-i.width,n.left)),o.adjustY&&r.top=n.top&&r.top+i.height>n.bottom&&(i.height-=r.top+i.height-n.bottom),o.adjustY&&r.top+i.height>n.bottom&&(r.top=Math.max(n.bottom-i.height,n.top)),st.mix(r,i)}function z0(e){var t,n,o;if(!st.isWindow(e)&&e.nodeType!==9)t=st.offset(e),n=st.outerWidth(e),o=st.outerHeight(e);else{var r=st.getWindow(e);t={left:st.getWindowScrollLeft(r),top:st.getWindowScrollTop(r)},n=st.viewportWidth(r),o=st.viewportHeight(r)}return t.width=n,t.height=o,t}function b$(e,t){var n=t.charAt(0),o=t.charAt(1),r=e.width,i=e.height,l=e.left,a=e.top;return n==="c"?a+=i/2:n==="b"&&(a+=i),o==="c"?l+=r/2:o==="r"&&(l+=r),{left:l,top:a}}function cu(e,t,n,o,r){var i=b$(t,n[1]),l=b$(e,n[0]),a=[l.left-i.left,l.top-i.top];return{left:Math.round(e.left-a[0]+o[0]-r[0]),top:Math.round(e.top-a[1]+o[1]-r[1])}}function y$(e,t,n){return e.leftn.right}function S$(e,t,n){return e.topn.bottom}function fD(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.right||o.top>=n.bottom}function H0(e,t,n){var o=n.target||t,r=z0(o),i=!gD(o,n.overflow&&n.overflow.alwaysByViewport);return RP(e,r,n,i)}H0.__getOffsetParent=Lv;H0.__getVisibleRectForElement=L0;function hD(e,t,n){var o,r,i=st.getDocument(e),l=i.defaultView||i.parentWindow,a=st.getWindowScrollLeft(l),s=st.getWindowScrollTop(l),u=st.viewportWidth(l),c=st.viewportHeight(l);"pageX"in t?o=t.pageX:o=a+t.clientX,"pageY"in t?r=t.pageY:r=s+t.clientY;var d={left:o,top:r,width:0,height:0},f=o>=0&&o<=a+u&&r>=0&&r<=s+c,g=[n.points[0],"cc"];return RP(e,d,u$(u$({},n),{},{points:g}),f)}function ut(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,r=e;if(Array.isArray(e)&&(r=_t(e)[0]),!r)return null;const i=cn(r,t,o);return i.props=n?m(m({},i.props),t):i.props,fo(typeof i.props.class!="object"),i}function vD(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return e.map(o=>ut(o,t,n))}function As(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Array.isArray(e))return e.map(r=>As(r,t,n,o));{if(!qt(e))return e;const r=ut(e,t,n,o);return Array.isArray(r.children)&&(r.children=As(r.children)),r}}function mD(e,t,n){Oi(cn(e,m({},t)),n)}const DP=e=>(e||[]).some(t=>qt(t)?!(t.type===mn||t.type===Ve&&!DP(t.children)):!0)?e:null;function vp(e,t,n,o){var r;const i=(r=e[t])===null||r===void 0?void 0:r.call(e,n);return DP(i)?i:o?.()}const mp=(e=>{if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){const t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){const t=e.getBoundingClientRect();if(t.width||t.height)return!0}return!1});function bD(e,t){return e===t?!0:!e||!t?!1:"pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t?e.clientX===t.clientX&&e.clientY===t.clientY:!1}function yD(e,t){e!==document.activeElement&&pi(t,e)&&typeof e.focus=="function"&&e.focus()}function x$(e,t){let n=null,o=null;function r(l){let[{target:a}]=l;if(!document.documentElement.contains(a))return;const{width:s,height:u}=a.getBoundingClientRect(),c=Math.floor(s),d=Math.floor(u);(n!==c||o!==d)&&Promise.resolve().then(()=>{t({width:c,height:d})}),n=c,o=d}const i=new b0(r);return e&&i.observe(e),()=>{i.disconnect()}}const SD=((e,t)=>{let n=!1,o=null;function r(){clearTimeout(o)}function i(l){if(!n||l===!0){if(e()===!1)return;n=!0,r(),o=setTimeout(()=>{n=!1},t.value)}else r(),o=setTimeout(()=>{n=!1,i()},t.value)}return[i,()=>{n=!1,r()}]});function $D(){this.__data__=[],this.size=0}function j0(e,t){return e===t||e!==e&&t!==t}function bp(e,t){for(var n=e.length;n--;)if(j0(e[n][0],t))return n;return-1}var CD=Array.prototype,xD=CD.splice;function wD(e){var t=this.__data__,n=bp(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():xD.call(t,n,1),--this.size,!0}function OD(e){var t=this.__data__,n=bp(t,e);return n<0?void 0:t[n][1]}function PD(e){return bp(this.__data__,e)>-1}function ID(e,t){var n=this.__data__,o=bp(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function Yr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ta))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,g=n&IN?new _a:void 0;for(i.set(e,t),i.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=tB}var nB="[object Arguments]",oB="[object Array]",rB="[object Boolean]",iB="[object Date]",lB="[object Error]",aB="[object Function]",sB="[object Map]",cB="[object Number]",uB="[object Object]",dB="[object RegExp]",fB="[object Set]",pB="[object String]",gB="[object WeakMap]",hB="[object ArrayBuffer]",vB="[object DataView]",mB="[object Float32Array]",bB="[object Float64Array]",yB="[object Int8Array]",SB="[object Int16Array]",$B="[object Int32Array]",CB="[object Uint8Array]",xB="[object Uint8ClampedArray]",wB="[object Uint16Array]",OB="[object Uint32Array]",Nt={};Nt[mB]=Nt[bB]=Nt[yB]=Nt[SB]=Nt[$B]=Nt[CB]=Nt[xB]=Nt[wB]=Nt[OB]=!0;Nt[nB]=Nt[oB]=Nt[hB]=Nt[rB]=Nt[vB]=Nt[iB]=Nt[lB]=Nt[aB]=Nt[sB]=Nt[cB]=Nt[uB]=Nt[dB]=Nt[fB]=Nt[pB]=Nt[gB]=!1;function PB(e){return Yo(e)&&X0(e.length)&&!!Nt[Mi(e)]}function U0(e){return function(t){return e(t)}}var VP=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Rs=VP&&typeof module=="object"&&module&&!module.nodeType&&module,IB=Rs&&Rs.exports===VP,th=IB&&NP.process,Aa=(function(){try{var e=Rs&&Rs.require&&Rs.require("util").types;return e||th&&th.binding&&th.binding("util")}catch{}})(),_$=Aa&&Aa.isTypedArray,Y0=_$?U0(_$):PB,TB=Object.prototype,EB=TB.hasOwnProperty;function WP(e,t){var n=go(e),o=!n&&Sp(e),r=!n&&!o&&cc(e),i=!n&&!o&&!r&&Y0(e),l=n||o||r||i,a=l?GN(e.length,String):[],s=a.length;for(var u in e)(t||EB.call(e,u))&&!(l&&(u=="length"||r&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||G0(u,s)))&&a.push(u);return a}var MB=Object.prototype;function $p(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||MB;return e===n}function KP(e,t){return function(n){return e(t(n))}}var _B=KP(Object.keys,Object),AB=Object.prototype,RB=AB.hasOwnProperty;function GP(e){if(!$p(e))return _B(e);var t=[];for(var n in Object(e))RB.call(e,n)&&n!="constructor"&&t.push(n);return t}function La(e){return e!=null&&X0(e.length)&&!kP(e)}function za(e){return La(e)?WP(e):GP(e)}function zv(e){return LP(e,za,K0)}var DB=1,NB=Object.prototype,BB=NB.hasOwnProperty;function kB(e,t,n,o,r,i){var l=n&DB,a=zv(e),s=a.length,u=zv(t),c=u.length;if(s!=c&&!l)return!1;for(var d=s;d--;){var f=a[d];if(!(l?f in t:BB.call(t,f)))return!1}var g=i.get(e),v=i.get(t);if(g&&v)return g==t&&v==e;var h=!0;i.set(e,t),i.set(t,e);for(var b=l;++d{const{disabled:f,target:g,align:v,onAlign:h}=e;if(!f&&g&&i.value){const b=i.value;let y;const S=z$(g),$=H$(g);r.value.element=S,r.value.point=$,r.value.align=v;const{activeElement:x}=document;return S&&mp(S)?y=H0(b,S,v):$&&(y=hD(b,$,v)),yD(x,b),h&&y&&h(b,y),!0}return!1},P(()=>e.monitorBufferTime)),s=re({cancel:()=>{}}),u=re({cancel:()=>{}}),c=()=>{const f=e.target,g=z$(f),v=H$(f);i.value!==u.value.element&&(u.value.cancel(),u.value.element=i.value,u.value.cancel=x$(i.value,l)),(r.value.element!==g||!bD(r.value.point,v)||!q0(r.value.align,e.align))&&(l(),s.value.element!==g&&(s.value.cancel(),s.value.element=g,s.value.cancel=x$(g,l)))};je(()=>{ot(()=>{c()})}),An(()=>{ot(()=>{c()})}),ye(()=>e.disabled,f=>{f?a():l()},{immediate:!0,flush:"post"});const d=re(null);return ye(()=>e.monitorWindowResize,f=>{f?d.value||(d.value=Et(window,"resize",l)):d.value&&(d.value.remove(),d.value=null)},{flush:"post"}),$n(()=>{s.value.cancel(),u.value.cancel(),d.value&&d.value.remove(),a()}),n({forceAlign:()=>l(!0)}),()=>{const f=o?.default();return f?ut(f[0],{ref:i},!0,!0):null}}});Sn("bottomLeft","bottomRight","topLeft","topRight");const Z0=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",Ro=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return m(e?{name:e,appear:!0,enterFromClass:`${e}-enter ${e}-enter-prepare ${e}-enter-start`,enterActiveClass:`${e}-enter ${e}-enter-prepare`,enterToClass:`${e}-enter ${e}-enter-active`,leaveFromClass:` ${e}-leave`,leaveActiveClass:`${e}-leave ${e}-leave-active`,leaveToClass:`${e}-leave ${e}-leave-active`}:{css:!1},t)},xp=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return m(e?{name:e,appear:!0,appearActiveClass:`${e}`,appearToClass:`${e}-appear ${e}-appear-active`,enterFromClass:`${e}-appear ${e}-enter ${e}-appear-prepare ${e}-enter-prepare`,enterActiveClass:`${e}`,enterToClass:`${e}-enter ${e}-appear ${e}-appear-active ${e}-enter-active`,leaveActiveClass:`${e} ${e}-leave`,leaveToClass:`${e}-leave-active`}:{css:!1},t)},_n=(e,t,n)=>n!==void 0?n:`${e}-${t}`,YB=oe({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:N0,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,attrs:o,slots:r}=t;const i=ne(),l=ne(),a=ne(),[s,u]=j9(ze(e,"stretch")),c=()=>{e.stretch&&u(e.getRootDomNode())},d=ne(!1);let f;ye(()=>e.visible,O=>{clearTimeout(f),O?f=setTimeout(()=>{d.value=e.visible}):d.value=!1},{immediate:!0});const[g,v]=H9(d,c),h=ne(),b=()=>e.point?e.point:e.getRootDomNode,y=()=>{var O;(O=i.value)===null||O===void 0||O.forceAlign()},S=(O,w)=>{var I;const T=e.getClassNameFromAlign(w),M=a.value;a.value!==T&&(a.value=T),g.value==="align"&&(M!==T?Promise.resolve().then(()=>{y()}):v(()=>{var E;(E=h.value)===null||E===void 0||E.call(h)}),(I=e.onAlign)===null||I===void 0||I.call(e,O,w))},$=P(()=>{const O=typeof e.animation=="object"?e.animation:B0(e);return["onAfterEnter","onAfterLeave"].forEach(w=>{const I=O[w];O[w]=T=>{v(),g.value="stable",I?.(T)}}),O}),x=()=>new Promise(O=>{h.value=O});ye([$,g],()=>{!$.value&&g.value==="motion"&&v()},{immediate:!0}),n({forceAlign:y,getElement:()=>l.value.$el||l.value});const C=P(()=>{var O;return!(!((O=e.align)===null||O===void 0)&&O.points&&(g.value==="align"||g.value==="stable"))});return()=>{var O;const{zIndex:w,align:I,prefixCls:T,destroyPopupOnHide:M,onMouseenter:E,onMouseleave:A,onTouchstart:R=()=>{},onMousedown:z}=e,_=g.value,N=[m(m({},s.value),{zIndex:w,opacity:_==="motion"||_==="stable"||!d.value?null:0,pointerEvents:!d.value&&_!=="stable"?"none":null}),o.style];let B=bt((O=r.default)===null||O===void 0?void 0:O.call(r,{visible:e.visible}));B.length>1&&(B=p("div",{class:`${T}-content`},[B]));const k=le(T,o.class,a.value,!e.arrow&&`${T}-arrow-hidden`),L=d.value||!e.visible?Ro($.value.name,$.value):{};return p(un,D(D({ref:l},L),{},{onBeforeEnter:x}),{default:()=>!M||e.visible?En(p(UB,{target:b(),key:"popup",ref:i,monitorWindowResize:!0,disabled:C.value,align:I,onAlign:S},{default:()=>p("div",{class:k,onMouseenter:E,onMouseleave:A,onMousedown:$S(z,["capture"]),[Yt?"onTouchstartPassive":"onTouchstart"]:$S(R,["capture"]),style:N},[B])}),[[jn,d.value]]):null})}}}),qB=oe({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:F9,setup(e,t){let{attrs:n,slots:o,expose:r}=t;const i=ne(!1),l=ne(!1),a=ne(),s=ne();return ye([()=>e.visible,()=>e.mobile],()=>{i.value=e.visible,e.visible&&e.mobile&&(l.value=!0)},{immediate:!0,flush:"post"}),r({forceAlign:()=>{var u;(u=a.value)===null||u===void 0||u.forceAlign()},getElement:()=>{var u;return(u=a.value)===null||u===void 0?void 0:u.getElement()}}),()=>{const u=m(m(m({},e),n),{visible:i.value}),c=l.value?p(L9,D(D({},u),{},{mobile:e.mobile,ref:a}),{default:o.default}):p(YB,D(D({},u),{},{ref:a}),{default:o.default});return p("div",{ref:s},[p(OP,u,null),c])}}});function ZB(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function j$(e,t,n){const o=e[t]||{};return m(m({},o),n)}function QB(e,t,n,o){const{points:r}=n,i=Object.keys(e);for(let l=0;l0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=typeof e=="function"?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){const o=this.getDerivedStateFromProps(bO(this),m(m({},this.$data),n));if(o===null)return;n=m(m({},n),o||{})}m(this.$data,n),this._.isMounted&&this.$forceUpdate(),ot(()=>{t&&t()})},__emit(){const e=[].slice.call(arguments,0);let t=e[0];t=`on${t[0].toUpperCase()}${t.substring(1)}`;const n=this.$props[t]||this.$attrs[t];if(e.length&&n)if(Array.isArray(n))for(let o=0,r=n.length;o1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};Xe(XP,{inTriggerContext:t.inTriggerContext,shouldRender:P(()=>{const{sPopupVisible:n,popupRef:o,forceRender:r,autoDestroy:i}=e||{};let l=!1;return(n||o||r)&&(l=!0),!n&&i&&(l=!1),l})})},JB=()=>{Q0({},{inTriggerContext:!1});const e=He(XP,{shouldRender:P(()=>!1),inTriggerContext:!1});return{shouldRender:P(()=>e.shouldRender.value||e.inTriggerContext===!1)}},UP=oe({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:W.func.isRequired,didUpdate:Function},setup(e,t){let{slots:n}=t,o=!0,r;const{shouldRender:i}=JB();function l(){i.value&&(r=e.getContainer())}Jf(()=>{o=!1,l()}),je(()=>{r||l()});const a=ye(i,()=>{i.value&&!r&&(r=e.getContainer()),r&&a()});return An(()=>{ot(()=>{var s;i.value&&((s=e.didUpdate)===null||s===void 0||s.call(e,e))})}),()=>{var s;return i.value?o?(s=n.default)===null||s===void 0?void 0:s.call(n):r?p(c0,{to:r},n):null:null}}});let nh;function Yd(e){if(typeof document>"u")return 0;if(nh===void 0){const t=document.createElement("div");t.style.width="100%",t.style.height="200px";const n=document.createElement("div"),o=n.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);const r=t.offsetWidth;n.style.overflow="scroll";let i=t.offsetWidth;r===i&&(i=n.clientWidth),document.body.removeChild(n),nh=r-i}return nh}function V$(e){const t=e.match(/^(.*)px$/),n=Number(t?.[1]);return Number.isNaN(n)?Yd():n}function ek(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};const{width:t,height:n}=getComputedStyle(e,"::-webkit-scrollbar");return{width:V$(t),height:V$(n)}}const tk=`vc-util-locker-${Date.now()}`;let W$=0;function nk(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function ok(e){const t=P(()=>!!e&&!!e.value);W$+=1;const n=`${tk}_${W$}`;Le(o=>{if(Mn()){if(t.value){const r=Yd(),i=nk();nc(` + `+gp(u)),u===!0})}});return Object.defineProperty(o,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(o,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),o}var rr=(function(){function e(){}return e.extend=function(t){var n=this;if(Ea(t))return t.forEach(function(d){return n.extend(d)}),this;var o=t.name,r=t.validate,i=r!==void 0&&r,l=t.getter,a=l!==void 0&&l,s=hP(t,["name","validate","getter"]);if(ic(this,o))throw new TypeError('[VueTypes error]: Type "'+o+'" already defined');var u,c=s.type;return Kd(c)?(delete s.type,Object.defineProperty(this,o,a?{get:function(){return r$(o,c,s)}}:{value:function(){var d,f=r$(o,c,s);return f.validator&&(f.validator=(d=f.validator).bind.apply(d,[f].concat([].slice.call(arguments)))),f}})):(u=a?{get:function(){var d=Object.assign({},s);return i?hr(o,d):po(o,d)},enumerable:!0}:{value:function(){var d,f,g=Object.assign({},s);return d=i?hr(o,g):po(o,g),g.validator&&(d.validator=(f=g.validator).bind.apply(f,[d].concat([].slice.call(arguments)))),d},enumerable:!0},Object.defineProperty(this,o,u))},pP(e,null,[{key:"any",get:function(){return h9()}},{key:"func",get:function(){return v9().def(this.defaults.func)}},{key:"bool",get:function(){return m9().def(this.defaults.bool)}},{key:"string",get:function(){return b9().def(this.defaults.string)}},{key:"number",get:function(){return y9().def(this.defaults.number)}},{key:"array",get:function(){return S9().def(this.defaults.array)}},{key:"object",get:function(){return $9().def(this.defaults.object)}},{key:"integer",get:function(){return C9().def(this.defaults.integer)}},{key:"symbol",get:function(){return x9()}}]),e})();function SP(e){var t;return e===void 0&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=(function(n){function o(){return n.apply(this,arguments)||this}return gP(o,n),pP(o,null,[{key:"sensibleDefaults",get:function(){return Lu({},this.defaults)},set:function(r){this.defaults=r!==!1?Lu({},r!==!0?r:e):{}}}]),o})(rr)).defaults=Lu({},e),t}rr.defaults={},rr.custom=w9,rr.oneOf=O9,rr.instanceOf=T9,rr.oneOfType=P9,rr.arrayOf=I9,rr.objectOf=E9,rr.shape=M9,rr.utils={validate:function(e,t){return El(t,e)===!0},toType:function(e,t,n){return n===void 0&&(n=!1),n?hr(e,t):po(e,t)}};(function(e){function t(){return e.apply(this,arguments)||this}return gP(t,e),t})(SP());const W=SP({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});W.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);function $P(e){return e.default=void 0,e}const Ct=((e,t,n)=>{w0(e,`[ant-design-vue: ${t}] ${n}`)});function _9(){return window}function i$(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?(t=e.ownerDocument.documentElement,n.top-t.clientTop):n.top-t.getBoundingClientRect().top:n.top}const l$=/#([\S ]+)$/,A9=()=>({prefixCls:String,offsetTop:Number,bounds:Number,affix:{type:Boolean,default:!0},showInkInFixed:{type:Boolean,default:!1},getContainer:Function,wrapperClass:String,wrapperStyle:{type:Object,default:void 0},getCurrentAnchor:Function,targetOffset:Number,items:lt(),direction:W.oneOf(["vertical","horizontal"]).def("vertical"),onChange:Function,onClick:Function}),Ji=oe({compatConfig:{MODE:3},name:"AAnchor",inheritAttrs:!1,props:A9(),setup(e,t){let{emit:n,attrs:o,slots:r,expose:i}=t;const{prefixCls:l,getTargetContainer:a,direction:s}=Te("anchor",e),u=P(()=>{var w;return(w=e.direction)!==null&&w!==void 0?w:"vertical"}),c=re(null),d=re(),f=ct({links:[],scrollContainer:null,scrollEvent:null,animating:!1}),g=re(null),v=P(()=>{const{getContainer:w}=e;return w||a?.value||_9}),h=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5;const T=[],_=v.value();return f.links.forEach(E=>{const A=l$.exec(E.toString());if(!A)return;const R=document.getElementById(A[1]);if(R){const z=i$(R,_);zR.top>A.top?R:A).link:""},b=w=>{const{getCurrentAnchor:I}=e;g.value!==w&&(g.value=typeof I=="function"?I(w):w,n("change",w))},y=w=>{const{offsetTop:I,targetOffset:T}=e;b(w);const _=l$.exec(w);if(!_)return;const E=document.getElementById(_[1]);if(!E)return;const A=v.value(),R=_0(A),z=i$(E,A);let M=R+z;M-=T!==void 0?T:I||0,f.animating=!0,A0(M,{callback:()=>{f.animating=!1},getContainer:v.value})};i({scrollTo:y});const S=()=>{if(f.animating)return;const{offsetTop:w,bounds:I,targetOffset:T}=e,_=h(T!==void 0?T:w||0,I);b(_)},$=()=>{const w=d.value.querySelector(`.${l.value}-link-title-active`);if(w&&c.value){const I=u.value==="horizontal";c.value.style.top=I?"":`${w.offsetTop+w.clientHeight/2}px`,c.value.style.height=I?"":`${w.clientHeight}px`,c.value.style.left=I?`${w.offsetLeft}px`:"",c.value.style.width=I?`${w.clientWidth}px`:"",I&&dP(w,{scrollMode:"if-needed",block:"nearest"})}};i9({registerLink:w=>{f.links.includes(w)||f.links.push(w)},unregisterLink:w=>{const I=f.links.indexOf(w);I!==-1&&f.links.splice(I,1)},activeLink:g,scrollTo:y,handleClick:(w,I)=>{n("click",w,I)},direction:u}),je(()=>{ot(()=>{const w=v.value();f.scrollContainer=w,f.scrollEvent=Et(f.scrollContainer,"scroll",S),S()})}),Qe(()=>{f.scrollEvent&&f.scrollEvent.remove()}),An(()=>{if(f.scrollEvent){const w=v.value();f.scrollContainer!==w&&(f.scrollContainer=w,f.scrollEvent.remove(),f.scrollEvent=Et(f.scrollContainer,"scroll",S),S())}$()});const x=w=>Array.isArray(w)?w.map(I=>{const{children:T,key:_,href:E,target:A,class:R,style:z,title:M}=I;return p(R0,{key:_,href:E,target:A,class:R,style:z,title:M,customTitleProps:I},{default:()=>[u.value==="vertical"?x(T):null],customTitle:r.customTitle})}):null,[C,O]=c9(l);return()=>{var w;const{offsetTop:I,affix:T,showInkInFixed:_}=e,E=l.value,A=le(`${E}-ink`,{[`${E}-ink-visible`]:g.value}),R=le(O.value,e.wrapperClass,`${E}-wrapper`,{[`${E}-wrapper-horizontal`]:u.value==="horizontal",[`${E}-rtl`]:s.value==="rtl"}),z=le(E,{[`${E}-fixed`]:!T&&!_}),M=m({maxHeight:I?`calc(100vh - ${I}px)`:"100vh"},e.wrapperStyle),N=p("div",{class:R,style:M,ref:d},[p("div",{class:z},[p("span",{class:A,ref:c},null),Array.isArray(e.items)?x(e.items):(w=r.default)===null||w===void 0?void 0:w.call(r)])]);return C(T?p(cP,D(D({},o),{},{offsetTop:I,target:v.value}),{default:()=>[N]}):N)}}});Ji.Link=R0;Ji.install=function(e){return e.component(Ji.name,Ji),e.component(Ji.Link.name,Ji.Link),e};function a$(e,t){const{key:n}=e;let o;return"value"in e&&({value:o}=e),n??(o!==void 0?o:`rc-index-key-${t}`)}function CP(e,t){const{label:n,value:o,options:r}=e||{};return{label:n||(t?"children":"label"),value:o||"value",options:r||"options"}}function R9(e){let{fieldNames:t,childrenAsData:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const o=[],{label:r,value:i,options:l}=CP(t,!1);function a(s,u){s.forEach(c=>{const d=c[r];if(u||!(l in c)){const f=c[i];o.push({key:a$(c,o.length),groupOption:u,data:c,label:d,value:f})}else{let f=d;f===void 0&&n&&(f=c.label),o.push({key:a$(c,o.length),group:!0,data:c,label:f}),a(c[l],!0)}})}return a(e,!1),o}function Nv(e){const t=m({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return t}}),t}function D9(e,t){if(!t||!t.length)return null;let n=!1;function o(i,l){let[a,...s]=l;if(!a)return[i];const u=i.split(a);return n=n||u.length>1,u.reduce((c,d)=>[...c,...o(d,s)],[]).filter(c=>c)}const r=o(e,t);return n?r:null}function N9(){return""}function B9(e){return e?e.ownerDocument:window.document}function xP(){}const wP=()=>({action:W.oneOfType([W.string,W.arrayOf(W.string)]).def([]),showAction:W.any.def([]),hideAction:W.any.def([]),getPopupClassNameFromAlign:W.any.def(N9),onPopupVisibleChange:Function,afterPopupVisibleChange:W.func.def(xP),popup:W.any,arrow:W.bool.def(!0),popupStyle:{type:Object,default:void 0},prefixCls:W.string.def("rc-trigger-popup"),popupClassName:W.string.def(""),popupPlacement:String,builtinPlacements:W.object,popupTransitionName:String,popupAnimation:W.any,mouseEnterDelay:W.number.def(0),mouseLeaveDelay:W.number.def(.1),zIndex:Number,focusDelay:W.number.def(0),blurDelay:W.number.def(.15),getPopupContainer:Function,getDocument:W.func.def(B9),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:W.object.def(()=>({})),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function}),N0={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,arrow:{type:Boolean,default:!0},animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},k9=m(m({},N0),{mobile:{type:Object}}),F9=m(m({},N0),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function B0(e){let{prefixCls:t,animation:n,transitionName:o}=e;return n?{name:`${t}-${n}`}:o?{name:o}:{}}function OP(e){const{prefixCls:t,visible:n,zIndex:o,mask:r,maskAnimation:i,maskTransitionName:l}=e;if(!r)return null;let a={};return(l||i)&&(a=B0({prefixCls:t,transitionName:l,animation:i})),p(un,D({appear:!0},a),{default:()=>[En(p("div",{style:{zIndex:o},class:`${t}-mask`},null),[[KM("if"),n]])]})}OP.displayName="Mask";const L9=oe({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:k9,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,slots:o}=t;const r=re();return n({forceAlign:()=>{},getElement:()=>r.value}),()=>{var i;const{zIndex:l,visible:a,prefixCls:s,mobile:{popupClassName:u,popupStyle:c,popupMotion:d={},popupRender:f}={}}=e,g=m({zIndex:l},c);let v=bt((i=o.default)===null||i===void 0?void 0:i.call(o));v.length>1&&(v=p("div",{class:`${s}-content`},[v])),f&&(v=f(v));const h=le(s,u);return p(un,D({ref:r},d),{default:()=>[a?p("div",{class:h,style:g},[v]):null]})}}});var z9=function(e,t,n,o){function r(i){return i instanceof n?i:new n(function(l){l(i)})}return new(n||(n=Promise))(function(i,l){function a(c){try{u(o.next(c))}catch(d){l(d)}}function s(c){try{u(o.throw(c))}catch(d){l(d)}}function u(c){c.done?i(c.value):r(c.value).then(a,s)}u((o=o.apply(e,t||[])).next())})};const s$=["measure","align",null,"motion"],H9=((e,t)=>{const n=ne(null),o=ne(),r=ne(!1);function i(s){r.value||(n.value=s)}function l(){qe.cancel(o.value)}function a(s){l(),o.value=qe(()=>{let u=n.value;switch(n.value){case"align":u="motion";break;case"motion":u="stable";break}i(u),s?.()})}return ye(e,()=>{i("measure")},{immediate:!0,flush:"post"}),je(()=>{ye(n,()=>{n.value==="measure"&&t(),n.value&&(o.value=qe(()=>z9(void 0,void 0,void 0,function*(){const s=s$.indexOf(n.value),u=s$[s+1];u&&s!==-1&&i(u)})))},{immediate:!0,flush:"post"})}),Qe(()=>{r.value=!0,l()}),[n,a]}),j9=(e=>{const t=ne({width:0,height:0});function n(r){t.value={width:r.offsetWidth,height:r.offsetHeight}}return[P(()=>{const r={};if(e.value){const{width:i,height:l}=t.value;e.value.indexOf("height")!==-1&&l?r.height=`${l}px`:e.value.indexOf("minHeight")!==-1&&l&&(r.minHeight=`${l}px`),e.value.indexOf("width")!==-1&&i?r.width=`${i}px`:e.value.indexOf("minWidth")!==-1&&i&&(r.minWidth=`${i}px`)}return r}),n]});function c$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function u$(e){for(var t=1;t=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function dD(e,t,n,o){var r=st.clone(e),i={width:t.width,height:t.height};return o.adjustX&&r.left=n.left&&r.left+i.width>n.right&&(i.width-=r.left+i.width-n.right),o.adjustX&&r.left+i.width>n.right&&(r.left=Math.max(n.right-i.width,n.left)),o.adjustY&&r.top=n.top&&r.top+i.height>n.bottom&&(i.height-=r.top+i.height-n.bottom),o.adjustY&&r.top+i.height>n.bottom&&(r.top=Math.max(n.bottom-i.height,n.top)),st.mix(r,i)}function z0(e){var t,n,o;if(!st.isWindow(e)&&e.nodeType!==9)t=st.offset(e),n=st.outerWidth(e),o=st.outerHeight(e);else{var r=st.getWindow(e);t={left:st.getWindowScrollLeft(r),top:st.getWindowScrollTop(r)},n=st.viewportWidth(r),o=st.viewportHeight(r)}return t.width=n,t.height=o,t}function b$(e,t){var n=t.charAt(0),o=t.charAt(1),r=e.width,i=e.height,l=e.left,a=e.top;return n==="c"?a+=i/2:n==="b"&&(a+=i),o==="c"?l+=r/2:o==="r"&&(l+=r),{left:l,top:a}}function cu(e,t,n,o,r){var i=b$(t,n[1]),l=b$(e,n[0]),a=[l.left-i.left,l.top-i.top];return{left:Math.round(e.left-a[0]+o[0]-r[0]),top:Math.round(e.top-a[1]+o[1]-r[1])}}function y$(e,t,n){return e.leftn.right}function S$(e,t,n){return e.topn.bottom}function fD(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.right||o.top>=n.bottom}function H0(e,t,n){var o=n.target||t,r=z0(o),i=!gD(o,n.overflow&&n.overflow.alwaysByViewport);return RP(e,r,n,i)}H0.__getOffsetParent=Lv;H0.__getVisibleRectForElement=L0;function hD(e,t,n){var o,r,i=st.getDocument(e),l=i.defaultView||i.parentWindow,a=st.getWindowScrollLeft(l),s=st.getWindowScrollTop(l),u=st.viewportWidth(l),c=st.viewportHeight(l);"pageX"in t?o=t.pageX:o=a+t.clientX,"pageY"in t?r=t.pageY:r=s+t.clientY;var d={left:o,top:r,width:0,height:0},f=o>=0&&o<=a+u&&r>=0&&r<=s+c,g=[n.points[0],"cc"];return RP(e,d,u$(u$({},n),{},{points:g}),f)}function ut(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,r=e;if(Array.isArray(e)&&(r=At(e)[0]),!r)return null;const i=cn(r,t,o);return i.props=n?m(m({},i.props),t):i.props,fo(typeof i.props.class!="object"),i}function vD(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return e.map(o=>ut(o,t,n))}function As(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Array.isArray(e))return e.map(r=>As(r,t,n,o));{if(!qt(e))return e;const r=ut(e,t,n,o);return Array.isArray(r.children)&&(r.children=As(r.children)),r}}function mD(e,t,n){Oi(cn(e,m({},t)),n)}const DP=e=>(e||[]).some(t=>qt(t)?!(t.type===mn||t.type===Ve&&!DP(t.children)):!0)?e:null;function vp(e,t,n,o){var r;const i=(r=e[t])===null||r===void 0?void 0:r.call(e,n);return DP(i)?i:o?.()}const mp=(e=>{if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){const t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){const t=e.getBoundingClientRect();if(t.width||t.height)return!0}return!1});function bD(e,t){return e===t?!0:!e||!t?!1:"pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t?e.clientX===t.clientX&&e.clientY===t.clientY:!1}function yD(e,t){e!==document.activeElement&&pi(t,e)&&typeof e.focus=="function"&&e.focus()}function x$(e,t){let n=null,o=null;function r(l){let[{target:a}]=l;if(!document.documentElement.contains(a))return;const{width:s,height:u}=a.getBoundingClientRect(),c=Math.floor(s),d=Math.floor(u);(n!==c||o!==d)&&Promise.resolve().then(()=>{t({width:c,height:d})}),n=c,o=d}const i=new b0(r);return e&&i.observe(e),()=>{i.disconnect()}}const SD=((e,t)=>{let n=!1,o=null;function r(){clearTimeout(o)}function i(l){if(!n||l===!0){if(e()===!1)return;n=!0,r(),o=setTimeout(()=>{n=!1},t.value)}else r(),o=setTimeout(()=>{n=!1,i()},t.value)}return[i,()=>{n=!1,r()}]});function $D(){this.__data__=[],this.size=0}function j0(e,t){return e===t||e!==e&&t!==t}function bp(e,t){for(var n=e.length;n--;)if(j0(e[n][0],t))return n;return-1}var CD=Array.prototype,xD=CD.splice;function wD(e){var t=this.__data__,n=bp(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():xD.call(t,n,1),--this.size,!0}function OD(e){var t=this.__data__,n=bp(t,e);return n<0?void 0:t[n][1]}function PD(e){return bp(this.__data__,e)>-1}function ID(e,t){var n=this.__data__,o=bp(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function Yr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++ta))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,g=n&IN?new _a:void 0;for(i.set(e,t),i.set(t,e);++d-1&&e%1==0&&e-1&&e%1==0&&e<=tB}var nB="[object Arguments]",oB="[object Array]",rB="[object Boolean]",iB="[object Date]",lB="[object Error]",aB="[object Function]",sB="[object Map]",cB="[object Number]",uB="[object Object]",dB="[object RegExp]",fB="[object Set]",pB="[object String]",gB="[object WeakMap]",hB="[object ArrayBuffer]",vB="[object DataView]",mB="[object Float32Array]",bB="[object Float64Array]",yB="[object Int8Array]",SB="[object Int16Array]",$B="[object Int32Array]",CB="[object Uint8Array]",xB="[object Uint8ClampedArray]",wB="[object Uint16Array]",OB="[object Uint32Array]",Bt={};Bt[mB]=Bt[bB]=Bt[yB]=Bt[SB]=Bt[$B]=Bt[CB]=Bt[xB]=Bt[wB]=Bt[OB]=!0;Bt[nB]=Bt[oB]=Bt[hB]=Bt[rB]=Bt[vB]=Bt[iB]=Bt[lB]=Bt[aB]=Bt[sB]=Bt[cB]=Bt[uB]=Bt[dB]=Bt[fB]=Bt[pB]=Bt[gB]=!1;function PB(e){return Yo(e)&&X0(e.length)&&!!Bt[Mi(e)]}function U0(e){return function(t){return e(t)}}var VP=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Rs=VP&&typeof module=="object"&&module&&!module.nodeType&&module,IB=Rs&&Rs.exports===VP,th=IB&&NP.process,Aa=(function(){try{var e=Rs&&Rs.require&&Rs.require("util").types;return e||th&&th.binding&&th.binding("util")}catch{}})(),_$=Aa&&Aa.isTypedArray,Y0=_$?U0(_$):PB,TB=Object.prototype,EB=TB.hasOwnProperty;function WP(e,t){var n=go(e),o=!n&&Sp(e),r=!n&&!o&&cc(e),i=!n&&!o&&!r&&Y0(e),l=n||o||r||i,a=l?GN(e.length,String):[],s=a.length;for(var u in e)(t||EB.call(e,u))&&!(l&&(u=="length"||r&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||G0(u,s)))&&a.push(u);return a}var MB=Object.prototype;function $p(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||MB;return e===n}function KP(e,t){return function(n){return e(t(n))}}var _B=KP(Object.keys,Object),AB=Object.prototype,RB=AB.hasOwnProperty;function GP(e){if(!$p(e))return _B(e);var t=[];for(var n in Object(e))RB.call(e,n)&&n!="constructor"&&t.push(n);return t}function La(e){return e!=null&&X0(e.length)&&!kP(e)}function za(e){return La(e)?WP(e):GP(e)}function zv(e){return LP(e,za,K0)}var DB=1,NB=Object.prototype,BB=NB.hasOwnProperty;function kB(e,t,n,o,r,i){var l=n&DB,a=zv(e),s=a.length,u=zv(t),c=u.length;if(s!=c&&!l)return!1;for(var d=s;d--;){var f=a[d];if(!(l?f in t:BB.call(t,f)))return!1}var g=i.get(e),v=i.get(t);if(g&&v)return g==t&&v==e;var h=!0;i.set(e,t),i.set(t,e);for(var b=l;++d{const{disabled:f,target:g,align:v,onAlign:h}=e;if(!f&&g&&i.value){const b=i.value;let y;const S=z$(g),$=H$(g);r.value.element=S,r.value.point=$,r.value.align=v;const{activeElement:x}=document;return S&&mp(S)?y=H0(b,S,v):$&&(y=hD(b,$,v)),yD(x,b),h&&y&&h(b,y),!0}return!1},P(()=>e.monitorBufferTime)),s=re({cancel:()=>{}}),u=re({cancel:()=>{}}),c=()=>{const f=e.target,g=z$(f),v=H$(f);i.value!==u.value.element&&(u.value.cancel(),u.value.element=i.value,u.value.cancel=x$(i.value,l)),(r.value.element!==g||!bD(r.value.point,v)||!q0(r.value.align,e.align))&&(l(),s.value.element!==g&&(s.value.cancel(),s.value.element=g,s.value.cancel=x$(g,l)))};je(()=>{ot(()=>{c()})}),An(()=>{ot(()=>{c()})}),ye(()=>e.disabled,f=>{f?a():l()},{immediate:!0,flush:"post"});const d=re(null);return ye(()=>e.monitorWindowResize,f=>{f?d.value||(d.value=Et(window,"resize",l)):d.value&&(d.value.remove(),d.value=null)},{flush:"post"}),$n(()=>{s.value.cancel(),u.value.cancel(),d.value&&d.value.remove(),a()}),n({forceAlign:()=>l(!0)}),()=>{const f=o?.default();return f?ut(f[0],{ref:i},!0,!0):null}}});Sn("bottomLeft","bottomRight","topLeft","topRight");const Z0=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",Ro=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return m(e?{name:e,appear:!0,enterFromClass:`${e}-enter ${e}-enter-prepare ${e}-enter-start`,enterActiveClass:`${e}-enter ${e}-enter-prepare`,enterToClass:`${e}-enter ${e}-enter-active`,leaveFromClass:` ${e}-leave`,leaveActiveClass:`${e}-leave ${e}-leave-active`,leaveToClass:`${e}-leave ${e}-leave-active`}:{css:!1},t)},xp=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return m(e?{name:e,appear:!0,appearActiveClass:`${e}`,appearToClass:`${e}-appear ${e}-appear-active`,enterFromClass:`${e}-appear ${e}-enter ${e}-appear-prepare ${e}-enter-prepare`,enterActiveClass:`${e}`,enterToClass:`${e}-enter ${e}-appear ${e}-appear-active ${e}-enter-active`,leaveActiveClass:`${e} ${e}-leave`,leaveToClass:`${e}-leave-active`}:{css:!1},t)},_n=(e,t,n)=>n!==void 0?n:`${e}-${t}`,YB=oe({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:N0,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:n,attrs:o,slots:r}=t;const i=ne(),l=ne(),a=ne(),[s,u]=j9(ze(e,"stretch")),c=()=>{e.stretch&&u(e.getRootDomNode())},d=ne(!1);let f;ye(()=>e.visible,O=>{clearTimeout(f),O?f=setTimeout(()=>{d.value=e.visible}):d.value=!1},{immediate:!0});const[g,v]=H9(d,c),h=ne(),b=()=>e.point?e.point:e.getRootDomNode,y=()=>{var O;(O=i.value)===null||O===void 0||O.forceAlign()},S=(O,w)=>{var I;const T=e.getClassNameFromAlign(w),_=a.value;a.value!==T&&(a.value=T),g.value==="align"&&(_!==T?Promise.resolve().then(()=>{y()}):v(()=>{var E;(E=h.value)===null||E===void 0||E.call(h)}),(I=e.onAlign)===null||I===void 0||I.call(e,O,w))},$=P(()=>{const O=typeof e.animation=="object"?e.animation:B0(e);return["onAfterEnter","onAfterLeave"].forEach(w=>{const I=O[w];O[w]=T=>{v(),g.value="stable",I?.(T)}}),O}),x=()=>new Promise(O=>{h.value=O});ye([$,g],()=>{!$.value&&g.value==="motion"&&v()},{immediate:!0}),n({forceAlign:y,getElement:()=>l.value.$el||l.value});const C=P(()=>{var O;return!(!((O=e.align)===null||O===void 0)&&O.points&&(g.value==="align"||g.value==="stable"))});return()=>{var O;const{zIndex:w,align:I,prefixCls:T,destroyPopupOnHide:_,onMouseenter:E,onMouseleave:A,onTouchstart:R=()=>{},onMousedown:z}=e,M=g.value,N=[m(m({},s.value),{zIndex:w,opacity:M==="motion"||M==="stable"||!d.value?null:0,pointerEvents:!d.value&&M!=="stable"?"none":null}),o.style];let B=bt((O=r.default)===null||O===void 0?void 0:O.call(r,{visible:e.visible}));B.length>1&&(B=p("div",{class:`${T}-content`},[B]));const k=le(T,o.class,a.value,!e.arrow&&`${T}-arrow-hidden`),L=d.value||!e.visible?Ro($.value.name,$.value):{};return p(un,D(D({ref:l},L),{},{onBeforeEnter:x}),{default:()=>!_||e.visible?En(p(UB,{target:b(),key:"popup",ref:i,monitorWindowResize:!0,disabled:C.value,align:I,onAlign:S},{default:()=>p("div",{class:k,onMouseenter:E,onMouseleave:A,onMousedown:$S(z,["capture"]),[Yt?"onTouchstartPassive":"onTouchstart"]:$S(R,["capture"]),style:N},[B])}),[[jn,d.value]]):null})}}}),qB=oe({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:F9,setup(e,t){let{attrs:n,slots:o,expose:r}=t;const i=ne(!1),l=ne(!1),a=ne(),s=ne();return ye([()=>e.visible,()=>e.mobile],()=>{i.value=e.visible,e.visible&&e.mobile&&(l.value=!0)},{immediate:!0,flush:"post"}),r({forceAlign:()=>{var u;(u=a.value)===null||u===void 0||u.forceAlign()},getElement:()=>{var u;return(u=a.value)===null||u===void 0?void 0:u.getElement()}}),()=>{const u=m(m(m({},e),n),{visible:i.value}),c=l.value?p(L9,D(D({},u),{},{mobile:e.mobile,ref:a}),{default:o.default}):p(YB,D(D({},u),{},{ref:a}),{default:o.default});return p("div",{ref:s},[p(OP,u,null),c])}}});function ZB(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function j$(e,t,n){const o=e[t]||{};return m(m({},o),n)}function QB(e,t,n,o){const{points:r}=n,i=Object.keys(e);for(let l=0;l0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=typeof e=="function"?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){const o=this.getDerivedStateFromProps(bO(this),m(m({},this.$data),n));if(o===null)return;n=m(m({},n),o||{})}m(this.$data,n),this._.isMounted&&this.$forceUpdate(),ot(()=>{t&&t()})},__emit(){const e=[].slice.call(arguments,0);let t=e[0];t=`on${t[0].toUpperCase()}${t.substring(1)}`;const n=this.$props[t]||this.$attrs[t];if(e.length&&n)if(Array.isArray(n))for(let o=0,r=n.length;o1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};Xe(XP,{inTriggerContext:t.inTriggerContext,shouldRender:P(()=>{const{sPopupVisible:n,popupRef:o,forceRender:r,autoDestroy:i}=e||{};let l=!1;return(n||o||r)&&(l=!0),!n&&i&&(l=!1),l})})},JB=()=>{Q0({},{inTriggerContext:!1});const e=He(XP,{shouldRender:P(()=>!1),inTriggerContext:!1});return{shouldRender:P(()=>e.shouldRender.value||e.inTriggerContext===!1)}},UP=oe({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:W.func.isRequired,didUpdate:Function},setup(e,t){let{slots:n}=t,o=!0,r;const{shouldRender:i}=JB();function l(){i.value&&(r=e.getContainer())}Jf(()=>{o=!1,l()}),je(()=>{r||l()});const a=ye(i,()=>{i.value&&!r&&(r=e.getContainer()),r&&a()});return An(()=>{ot(()=>{var s;i.value&&((s=e.didUpdate)===null||s===void 0||s.call(e,e))})}),()=>{var s;return i.value?o?(s=n.default)===null||s===void 0?void 0:s.call(n):r?p(c0,{to:r},n):null:null}}});let nh;function Yd(e){if(typeof document>"u")return 0;if(nh===void 0){const t=document.createElement("div");t.style.width="100%",t.style.height="200px";const n=document.createElement("div"),o=n.style;o.position="absolute",o.top="0",o.left="0",o.pointerEvents="none",o.visibility="hidden",o.width="200px",o.height="150px",o.overflow="hidden",n.appendChild(t),document.body.appendChild(n);const r=t.offsetWidth;n.style.overflow="scroll";let i=t.offsetWidth;r===i&&(i=n.clientWidth),document.body.removeChild(n),nh=r-i}return nh}function V$(e){const t=e.match(/^(.*)px$/),n=Number(t?.[1]);return Number.isNaN(n)?Yd():n}function ek(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};const{width:t,height:n}=getComputedStyle(e,"::-webkit-scrollbar");return{width:V$(t),height:V$(n)}}const tk=`vc-util-locker-${Date.now()}`;let W$=0;function nk(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function ok(e){const t=P(()=>!!e&&!!e.value);W$+=1;const n=`${tk}_${W$}`;Le(o=>{if(Mn()){if(t.value){const r=Yd(),i=nk();nc(` html body { overflow-y: hidden; ${i?`width: calc(100% - ${r}px);`:""} -}`,n)}else jd(n);o(()=>{jd(n)})}},{flush:"post"})}let Vi=0;const zu=Mn(),K$=e=>{if(!zu)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(typeof e=="object"&&e instanceof window.HTMLElement)return e}return document.body},Ic=oe({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:W.any,visible:{type:Boolean,default:void 0},autoLock:$e(),didUpdate:Function},setup(e,t){let{slots:n}=t;const o=ne(),r=ne(),i=ne(),l=ne(1),a=Mn()&&document.createElement("div"),s=()=>{var g,v;o.value===a&&((v=(g=o.value)===null||g===void 0?void 0:g.parentNode)===null||v===void 0||v.removeChild(o.value)),o.value=null};let u=null;const c=function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)||o.value&&!o.value.parentNode?(u=K$(e.getContainer),u?(u.appendChild(o.value),!0):!1):!0},d=()=>zu?(o.value||(o.value=a,c(!0)),f(),o.value):null,f=()=>{const{wrapperClassName:g}=e;o.value&&g&&g!==o.value.className&&(o.value.className=g)};return An(()=>{f(),c()}),ok(P(()=>e.autoLock&&e.visible&&Mn()&&(o.value===document.body||o.value===a))),je(()=>{let g=!1;ye([()=>e.visible,()=>e.getContainer],(v,h)=>{let[b,y]=v,[S,$]=h;zu&&(u=K$(e.getContainer),u===document.body&&(b&&!S?Vi+=1:g&&(Vi-=1))),g&&(typeof y=="function"&&typeof $=="function"?y.toString()!==$.toString():y!==$)&&s(),g=!0},{immediate:!0,flush:"post"}),ot(()=>{c()||(i.value=qe(()=>{l.value+=1}))})}),Qe(()=>{const{visible:g}=e;zu&&u===document.body&&(Vi=g&&Vi?Vi-1:Vi),s(),qe.cancel(i.value)}),()=>{const{forceRender:g,visible:v}=e;let h=null;const b={getOpenCount:()=>Vi,getContainer:d};return l.value&&(g||v||r.value)&&(h=p(UP,{getContainer:d,ref:r,didUpdate:e.didUpdate},{default:()=>{var y;return(y=n.default)===null||y===void 0?void 0:y.call(n,b)}})),h}}}),rk=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"],Rl=oe({compatConfig:{MODE:3},name:"Trigger",mixins:[Al],inheritAttrs:!1,props:wP(),setup(e){const t=P(()=>{const{popupPlacement:r,popupAlign:i,builtinPlacements:l}=e;return r&&l?j$(l,r,i):i}),n=ne(null),o=r=>{n.value=r};return{vcTriggerContext:He("vcTriggerContext",{}),popupRef:n,setPopupRef:o,triggerRef:ne(null),align:t,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data(){const e=this.$props;let t;return this.popupVisible!==void 0?t=!!e.popupVisible:t=!!e.defaultPopupVisible,rk.forEach(n=>{this[`fire${n}`]=o=>{this.fireEvents(n,o)}}),{prevPopupVisible:t,sPopupVisible:t,point:null}},watch:{popupVisible(e){e!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created(){Xe("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),Q0(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick(()=>{this.updatedCal()})},updated(){this.$nextTick(()=>{this.updatedCal()})},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),qe.cancel(this.attachId)},methods:{updatedCal(){const e=this.$props;if(this.$data.sPopupVisible){let n;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(n=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Et(n,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(n=n||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Et(n,"touchstart",this.onDocumentClick,Yt?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(n=n||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=Et(n,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=Et(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(e){const{mouseEnterDelay:t}=this.$props;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,t,t?null:e)},onMouseMove(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter(){const{vcTriggerContext:e={}}=this;e.onPopupMouseenter&&e.onPopupMouseenter(),this.clearDelayTimer()},onPopupMouseleave(e){var t;if(e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&pi((t=this.popupRef)===null||t===void 0?void 0:t.getElement(),e.relatedTarget))return;this.isMouseLeaveToHide()&&this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);const{vcTriggerContext:n={}}=this;n.onPopupMouseleave&&n.onPopupMouseleave(e)},onFocus(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur(e){pi(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose(){this.isContextmenuToShow()&&this.close()},onClick(e){if(this.fireEvents("onClick",e),this.focusTime){let n;if(this.preClickTime&&this.preTouchTime?n=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?n=this.preClickTime:this.preTouchTime&&(n=this.preTouchTime),Math.abs(n-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();const t=!this.$data.sPopupVisible;(this.isClickToHide()&&!t||t&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown(){const{vcTriggerContext:e={}}=this;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(()=>{this.hasPopupMouseDown=!1},0),e.onPopupMouseDown&&e.onPopupMouseDown(...arguments)},onDocumentClick(e){if(this.$props.mask&&!this.$props.maskClosable)return;const t=e.target,n=this.getRootDomNode(),o=this.getPopupDomNode();(!pi(n,t)||this.isContextMenuOnly())&&!pi(o,t)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){var e;return((e=this.popupRef)===null||e===void 0?void 0:e.getElement())||null},getRootDomNode(){var e,t,n,o;const{getTriggerDOMNode:r}=this.$props;if(r){const i=((t=(e=this.triggerRef)===null||e===void 0?void 0:e.$el)===null||t===void 0?void 0:t.nodeName)==="#comment"?null:Hn(this.triggerRef);return Hn(r(i))}try{const i=((o=(n=this.triggerRef)===null||n===void 0?void 0:n.$el)===null||o===void 0?void 0:o.nodeName)==="#comment"?null:Hn(this.triggerRef);if(i)return i}catch{}return Hn(this)},handleGetPopupClassFromAlign(e){const t=[],n=this.$props,{popupPlacement:o,builtinPlacements:r,prefixCls:i,alignPoint:l,getPopupClassNameFromAlign:a}=n;return o&&r&&t.push(QB(r,i,e,l)),a&&t.push(a(e)),t.join(" ")},getPopupAlign(){const e=this.$props,{popupPlacement:t,popupAlign:n,builtinPlacements:o}=e;return t&&o?j$(o,t,n):n},getComponent(){const e={};this.isMouseEnterToShow()&&(e.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(e.onMouseleave=this.onPopupMouseleave),e.onMousedown=this.onPopupMouseDown,e[Yt?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:t,getRootDomNode:n,$attrs:o}=this,{prefixCls:r,destroyPopupOnHide:i,popupClassName:l,popupAnimation:a,popupTransitionName:s,popupStyle:u,mask:c,maskAnimation:d,maskTransitionName:f,zIndex:g,stretch:v,alignPoint:h,mobile:b,arrow:y,forceRender:S}=this.$props,{sPopupVisible:$,point:x}=this.$data,C=m(m({prefixCls:r,arrow:y,destroyPopupOnHide:i,visible:$,point:h?x:null,align:this.align,animation:a,getClassNameFromAlign:t,stretch:v,getRootDomNode:n,mask:c,zIndex:g,transitionName:s,maskAnimation:d,maskTransitionName:f,class:l,style:u,onAlign:o.onPopupAlign||xP},e),{ref:this.setPopupRef,mobile:b,forceRender:S});return p(qB,C,{default:this.$slots.popup||(()=>yO(this,"popup"))})},attachParent(e){qe.cancel(this.attachId);const{getPopupContainer:t,getDocument:n}=this.$props,o=this.getRootDomNode();let r;t?(o||t.length===0)&&(r=t(o)):r=n(this.getRootDomNode()).body,r?r.appendChild(e):this.attachId=qe(()=>{this.attachParent(e)})},getContainer(){const{$props:e}=this,{getDocument:t}=e,n=t(this.getRootDomNode()).createElement("div");return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",this.attachParent(n),n},setPopupVisible(e,t){const{alignPoint:n,sPopupVisible:o,onPopupVisibleChange:r}=this;this.clearDelayTimer(),o!==e&&(Ar(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:o}),r&&r(e)),n&&t&&e&&this.setPoint(t)},setPoint(e){const{alignPoint:t}=this.$props;!t||!e||this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(e,t,n){const o=t*1e3;if(this.clearDelayTimer(),o){const r=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout(()=>{this.setPopupVisible(e,r),this.clearDelayTimer()},o)}else this.setPopupVisible(e,n)},clearDelayTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},clearOutsideHandler(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains(e){let t=()=>{};const n=TS(this);return this.childOriginEvents[e]&&n[e]?this[`fire${e}`]:(t=this.childOriginEvents[e]||n[e]||t,t)},isClickToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("click")!==-1||t.indexOf("click")!==-1},isContextMenuOnly(){const{action:e}=this.$props;return e==="contextmenu"||e.length===1&&e[0]==="contextmenu"},isContextmenuToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("contextmenu")!==-1||t.indexOf("contextmenu")!==-1},isClickToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("click")!==-1||t.indexOf("click")!==-1},isMouseEnterToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("hover")!==-1||t.indexOf("mouseenter")!==-1},isMouseLeaveToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("hover")!==-1||t.indexOf("mouseleave")!==-1},isFocusToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("focus")!==-1||t.indexOf("focus")!==-1},isBlurToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("focus")!==-1||t.indexOf("blur")!==-1},forcePopupAlign(){var e;this.$data.sPopupVisible&&((e=this.popupRef)===null||e===void 0||e.forceAlign())},fireEvents(e,t){this.childOriginEvents[e]&&this.childOriginEvents[e](t);const n=this.$props[e]||this.$attrs[e];n&&n(t)},close(){this.setPopupVisible(!1)}},render(){const{$attrs:e}=this,t=_t(lp(this)),{alignPoint:n,getPopupContainer:o}=this.$props,r=t[0];this.childOriginEvents=TS(r);const i={key:"trigger"};this.isContextmenuToShow()?i.onContextmenu=this.onContextmenu:i.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(i.onClick=this.onClick,i.onMousedown=this.onMousedown,i[Yt?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(i.onClick=this.createTwoChains("onClick"),i.onMousedown=this.createTwoChains("onMousedown"),i[Yt?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(i.onMouseenter=this.onMouseenter,n&&(i.onMousemove=this.onMouseMove)):i.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?i.onMouseleave=this.onMouseleave:i.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(i.onFocus=this.onFocus,i.onBlur=this.onBlur):(i.onFocus=this.createTwoChains("onFocus"),i.onBlur=u=>{u&&(!u.relatedTarget||!pi(u.target,u.relatedTarget))&&this.createTwoChains("onBlur")(u)});const l=le(r&&r.props&&r.props.class,e.class);l&&(i.class=l);const a=ut(r,m(m({},i),{ref:"triggerRef"}),!0,!0),s=p(Ic,{key:"portal",getContainer:o&&(()=>o(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return p(Ve,null,[a,s])}});var ik=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},ak=oe({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:W.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:W.oneOfType([Number,Boolean]).def(!0),popupElement:W.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(e,t){let{slots:n,attrs:o,expose:r}=t;const i=P(()=>{const{dropdownMatchSelectWidth:a}=e;return lk(a)}),l=re();return r({getPopupElement:()=>l.value}),()=>{const a=m(m({},e),o),{empty:s=!1}=a,u=ik(a,["empty"]),{visible:c,dropdownAlign:d,prefixCls:f,popupElement:g,dropdownClassName:v,dropdownStyle:h,direction:b="ltr",placement:y,dropdownMatchSelectWidth:S,containerWidth:$,dropdownRender:x,animation:C,transitionName:O,getPopupContainer:w,getTriggerDOMNode:I,onPopupVisibleChange:T,onPopupMouseEnter:M,onPopupFocusin:E,onPopupFocusout:A}=u,R=`${f}-dropdown`;let z=g;x&&(z=x({menuNode:g,props:e}));const _=C?`${R}-${C}`:O,N=m({minWidth:`${$}px`},h);return typeof S=="number"?N.width=`${S}px`:S&&(N.width=`${$}px`),p(Rl,D(D({},e),{},{showAction:T?["click"]:[],hideAction:T?["click"]:[],popupPlacement:y||(b==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:i.value,prefixCls:R,popupTransitionName:_,popupAlign:d,popupVisible:c,getPopupContainer:w,popupClassName:le(v,{[`${R}-empty`]:s}),popupStyle:N,getTriggerDOMNode:I,onPopupVisibleChange:T}),{default:n.default,popup:()=>p("div",{ref:l,onMouseenter:M,onFocusin:E,onFocusout:A},[z])})}}}),Pe={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,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,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},Cl=(e,t)=>{let{slots:n}=t;var o;const{class:r,customizeIcon:i,customizeIconProps:l,onMousedown:a,onClick:s}=e;let u;return typeof i=="function"?u=i(l):u=qt(i)?cn(i):i,p("span",{class:r,onMousedown:c=>{c.preventDefault(),a&&a(c)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},[u!==void 0?u:p("span",{class:r.split(/\s+/).map(c=>`${c}-icon`)},[(o=n.default)===null||o===void 0?void 0:o.call(n)])])};Cl.inheritAttrs=!1;Cl.displayName="TransBtn";Cl.props={class:String,customizeIcon:W.any,customizeIconProps:W.any,onMousedown:Function,onClick:Function};var sk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{o.value&&o.value.focus()},blur:()=>{o.value&&o.value.blur()},input:o,setSelectionRange:(s,u,c)=>{var d;(d=o.value)===null||d===void 0||d.setSelectionRange(s,u,c)},select:()=>{var s;(s=o.value)===null||s===void 0||s.select()},getSelectionStart:()=>{var s;return(s=o.value)===null||s===void 0?void 0:s.selectionStart},getSelectionEnd:()=>{var s;return(s=o.value)===null||s===void 0?void 0:s.selectionEnd},getScrollTop:()=>{var s;return(s=o.value)===null||s===void 0?void 0:s.scrollTop}}),()=>{const{tag:s,value:u}=e,c=sk(e,["tag","value"]);return p(s,D(D({},c),{},{ref:o,value:u}),null)}}});function uk(){const e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function qd(e){const t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.scrollX||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.scrollY||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function dk(e){return Array.prototype.slice.apply(e).map(n=>`${n}: ${e.getPropertyValue(n)};`).join("")}function fk(e){return Object.keys(e).reduce((t,n)=>{const o=e[n];return typeof o>"u"||o===null||(t+=`${n}: ${e[n]};`),t},"")}var pk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.value,a],()=>{a.value||(l.value=e.value)},{immediate:!0});const s=w=>{n("change",w)},u=w=>{a.value=!0,w.target.composing=!0,n("compositionstart",w)},c=w=>{a.value=!1,w.target.composing=!1,n("compositionend",w);const I=document.createEvent("HTMLEvents");I.initEvent("input",!0,!0),w.target.dispatchEvent(I),s(w)},d=w=>{if(a.value&&e.lazy){l.value=w.target.value;return}n("input",w)},f=w=>{n("blur",w)},g=w=>{n("focus",w)},v=()=>{i.value&&i.value.focus()},h=()=>{i.value&&i.value.blur()},b=w=>{n("keydown",w)},y=w=>{n("keyup",w)},S=(w,I,T)=>{var M;(M=i.value)===null||M===void 0||M.setSelectionRange(w,I,T)},$=()=>{var w;(w=i.value)===null||w===void 0||w.select()};r({focus:v,blur:h,input:P(()=>{var w;return(w=i.value)===null||w===void 0?void 0:w.input}),setSelectionRange:S,select:$,getSelectionStart:()=>{var w;return(w=i.value)===null||w===void 0?void 0:w.getSelectionStart()},getSelectionEnd:()=>{var w;return(w=i.value)===null||w===void 0?void 0:w.getSelectionEnd()},getScrollTop:()=>{var w;return(w=i.value)===null||w===void 0?void 0:w.getScrollTop()}});const x=w=>{n("mousedown",w)},C=w=>{n("paste",w)},O=P(()=>e.style&&typeof e.style!="string"?fk(e.style):e.style);return()=>{const{style:w,lazy:I}=e,T=pk(e,["style","lazy"]);return p(ck,D(D(D({},T),o),{},{style:O.value,onInput:d,onChange:s,onBlur:f,onFocus:g,ref:i,value:l.value,onCompositionstart:u,onCompositionend:c,onKeyup:y,onKeydown:b,onPaste:C,onMousedown:x}),null)}}}),gk={inputRef:W.any,prefixCls:String,id:String,inputElement:W.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:W.oneOfType([W.number,W.string]),attrs:W.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},YP=oe({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:gk,setup(e){let t=null;const n=He("VCSelectContainerEvent");return()=>{var o;const{prefixCls:r,id:i,inputElement:l,disabled:a,tabindex:s,autofocus:u,autocomplete:c,editable:d,activeDescendantId:f,value:g,onKeydown:v,onMousedown:h,onChange:b,onPaste:y,onCompositionstart:S,onCompositionend:$,onFocus:x,onBlur:C,open:O,inputRef:w,attrs:I}=e;let T=l||p(Ha,null,null);const M=T.props||{},{onKeydown:E,onInput:A,onFocus:R,onBlur:z,onMousedown:_,onCompositionstart:N,onCompositionend:B,style:k}=M;return T=ut(T,m(m(m(m(m({type:"search"},M),{id:i,ref:w,disabled:a,tabindex:s,lazy:!1,autocomplete:c||"off",autofocus:u,class:le(`${r}-selection-search-input`,(o=T?.props)===null||o===void 0?void 0:o.class),role:"combobox","aria-expanded":O,"aria-haspopup":"listbox","aria-owns":`${i}_list`,"aria-autocomplete":"list","aria-controls":`${i}_list`,"aria-activedescendant":f}),I),{value:d?g:"",readonly:!d,unselectable:d?null:"on",style:m(m({},k),{opacity:d?null:0}),onKeydown:F=>{v(F),E&&E(F)},onMousedown:F=>{h(F),_&&_(F)},onInput:F=>{b(F),A&&A(F)},onCompositionstart(F){S(F),N&&N(F)},onCompositionend(F){$(F),B&&B(F)},onPaste:y,onFocus:function(){clearTimeout(t),R&&R(arguments.length<=0?void 0:arguments[0]),x&&x(arguments.length<=0?void 0:arguments[0]),n?.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var F=arguments.length,L=new Array(F),H=0;H{z&&z(L[0]),C&&C(L[0]),n?.blur(L[0])},100)}}),T.type==="textarea"?{}:{type:"search"}),!0,!0),T}}}),hk=`accept acceptcharset accesskey action allowfullscreen allowtransparency +}`,n)}else jd(n);o(()=>{jd(n)})}},{flush:"post"})}let Vi=0;const zu=Mn(),K$=e=>{if(!zu)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(typeof e=="object"&&e instanceof window.HTMLElement)return e}return document.body},Ic=oe({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:W.any,visible:{type:Boolean,default:void 0},autoLock:$e(),didUpdate:Function},setup(e,t){let{slots:n}=t;const o=ne(),r=ne(),i=ne(),l=ne(1),a=Mn()&&document.createElement("div"),s=()=>{var g,v;o.value===a&&((v=(g=o.value)===null||g===void 0?void 0:g.parentNode)===null||v===void 0||v.removeChild(o.value)),o.value=null};let u=null;const c=function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)||o.value&&!o.value.parentNode?(u=K$(e.getContainer),u?(u.appendChild(o.value),!0):!1):!0},d=()=>zu?(o.value||(o.value=a,c(!0)),f(),o.value):null,f=()=>{const{wrapperClassName:g}=e;o.value&&g&&g!==o.value.className&&(o.value.className=g)};return An(()=>{f(),c()}),ok(P(()=>e.autoLock&&e.visible&&Mn()&&(o.value===document.body||o.value===a))),je(()=>{let g=!1;ye([()=>e.visible,()=>e.getContainer],(v,h)=>{let[b,y]=v,[S,$]=h;zu&&(u=K$(e.getContainer),u===document.body&&(b&&!S?Vi+=1:g&&(Vi-=1))),g&&(typeof y=="function"&&typeof $=="function"?y.toString()!==$.toString():y!==$)&&s(),g=!0},{immediate:!0,flush:"post"}),ot(()=>{c()||(i.value=qe(()=>{l.value+=1}))})}),Qe(()=>{const{visible:g}=e;zu&&u===document.body&&(Vi=g&&Vi?Vi-1:Vi),s(),qe.cancel(i.value)}),()=>{const{forceRender:g,visible:v}=e;let h=null;const b={getOpenCount:()=>Vi,getContainer:d};return l.value&&(g||v||r.value)&&(h=p(UP,{getContainer:d,ref:r,didUpdate:e.didUpdate},{default:()=>{var y;return(y=n.default)===null||y===void 0?void 0:y.call(n,b)}})),h}}}),rk=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"],Rl=oe({compatConfig:{MODE:3},name:"Trigger",mixins:[Al],inheritAttrs:!1,props:wP(),setup(e){const t=P(()=>{const{popupPlacement:r,popupAlign:i,builtinPlacements:l}=e;return r&&l?j$(l,r,i):i}),n=ne(null),o=r=>{n.value=r};return{vcTriggerContext:He("vcTriggerContext",{}),popupRef:n,setPopupRef:o,triggerRef:ne(null),align:t,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data(){const e=this.$props;let t;return this.popupVisible!==void 0?t=!!e.popupVisible:t=!!e.defaultPopupVisible,rk.forEach(n=>{this[`fire${n}`]=o=>{this.fireEvents(n,o)}}),{prevPopupVisible:t,sPopupVisible:t,point:null}},watch:{popupVisible(e){e!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created(){Xe("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),Q0(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick(()=>{this.updatedCal()})},updated(){this.$nextTick(()=>{this.updatedCal()})},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),qe.cancel(this.attachId)},methods:{updatedCal(){const e=this.$props;if(this.$data.sPopupVisible){let n;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(n=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Et(n,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(n=n||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Et(n,"touchstart",this.onDocumentClick,Yt?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(n=n||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=Et(n,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=Et(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(e){const{mouseEnterDelay:t}=this.$props;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,t,t?null:e)},onMouseMove(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter(){const{vcTriggerContext:e={}}=this;e.onPopupMouseenter&&e.onPopupMouseenter(),this.clearDelayTimer()},onPopupMouseleave(e){var t;if(e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&pi((t=this.popupRef)===null||t===void 0?void 0:t.getElement(),e.relatedTarget))return;this.isMouseLeaveToHide()&&this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);const{vcTriggerContext:n={}}=this;n.onPopupMouseleave&&n.onPopupMouseleave(e)},onFocus(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur(e){pi(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose(){this.isContextmenuToShow()&&this.close()},onClick(e){if(this.fireEvents("onClick",e),this.focusTime){let n;if(this.preClickTime&&this.preTouchTime?n=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?n=this.preClickTime:this.preTouchTime&&(n=this.preTouchTime),Math.abs(n-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();const t=!this.$data.sPopupVisible;(this.isClickToHide()&&!t||t&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown(){const{vcTriggerContext:e={}}=this;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(()=>{this.hasPopupMouseDown=!1},0),e.onPopupMouseDown&&e.onPopupMouseDown(...arguments)},onDocumentClick(e){if(this.$props.mask&&!this.$props.maskClosable)return;const t=e.target,n=this.getRootDomNode(),o=this.getPopupDomNode();(!pi(n,t)||this.isContextMenuOnly())&&!pi(o,t)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){var e;return((e=this.popupRef)===null||e===void 0?void 0:e.getElement())||null},getRootDomNode(){var e,t,n,o;const{getTriggerDOMNode:r}=this.$props;if(r){const i=((t=(e=this.triggerRef)===null||e===void 0?void 0:e.$el)===null||t===void 0?void 0:t.nodeName)==="#comment"?null:Hn(this.triggerRef);return Hn(r(i))}try{const i=((o=(n=this.triggerRef)===null||n===void 0?void 0:n.$el)===null||o===void 0?void 0:o.nodeName)==="#comment"?null:Hn(this.triggerRef);if(i)return i}catch{}return Hn(this)},handleGetPopupClassFromAlign(e){const t=[],n=this.$props,{popupPlacement:o,builtinPlacements:r,prefixCls:i,alignPoint:l,getPopupClassNameFromAlign:a}=n;return o&&r&&t.push(QB(r,i,e,l)),a&&t.push(a(e)),t.join(" ")},getPopupAlign(){const e=this.$props,{popupPlacement:t,popupAlign:n,builtinPlacements:o}=e;return t&&o?j$(o,t,n):n},getComponent(){const e={};this.isMouseEnterToShow()&&(e.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(e.onMouseleave=this.onPopupMouseleave),e.onMousedown=this.onPopupMouseDown,e[Yt?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:t,getRootDomNode:n,$attrs:o}=this,{prefixCls:r,destroyPopupOnHide:i,popupClassName:l,popupAnimation:a,popupTransitionName:s,popupStyle:u,mask:c,maskAnimation:d,maskTransitionName:f,zIndex:g,stretch:v,alignPoint:h,mobile:b,arrow:y,forceRender:S}=this.$props,{sPopupVisible:$,point:x}=this.$data,C=m(m({prefixCls:r,arrow:y,destroyPopupOnHide:i,visible:$,point:h?x:null,align:this.align,animation:a,getClassNameFromAlign:t,stretch:v,getRootDomNode:n,mask:c,zIndex:g,transitionName:s,maskAnimation:d,maskTransitionName:f,class:l,style:u,onAlign:o.onPopupAlign||xP},e),{ref:this.setPopupRef,mobile:b,forceRender:S});return p(qB,C,{default:this.$slots.popup||(()=>yO(this,"popup"))})},attachParent(e){qe.cancel(this.attachId);const{getPopupContainer:t,getDocument:n}=this.$props,o=this.getRootDomNode();let r;t?(o||t.length===0)&&(r=t(o)):r=n(this.getRootDomNode()).body,r?r.appendChild(e):this.attachId=qe(()=>{this.attachParent(e)})},getContainer(){const{$props:e}=this,{getDocument:t}=e,n=t(this.getRootDomNode()).createElement("div");return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",this.attachParent(n),n},setPopupVisible(e,t){const{alignPoint:n,sPopupVisible:o,onPopupVisibleChange:r}=this;this.clearDelayTimer(),o!==e&&(Ar(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:o}),r&&r(e)),n&&t&&e&&this.setPoint(t)},setPoint(e){const{alignPoint:t}=this.$props;!t||!e||this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(e,t,n){const o=t*1e3;if(this.clearDelayTimer(),o){const r=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout(()=>{this.setPopupVisible(e,r),this.clearDelayTimer()},o)}else this.setPopupVisible(e,n)},clearDelayTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},clearOutsideHandler(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains(e){let t=()=>{};const n=TS(this);return this.childOriginEvents[e]&&n[e]?this[`fire${e}`]:(t=this.childOriginEvents[e]||n[e]||t,t)},isClickToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("click")!==-1||t.indexOf("click")!==-1},isContextMenuOnly(){const{action:e}=this.$props;return e==="contextmenu"||e.length===1&&e[0]==="contextmenu"},isContextmenuToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("contextmenu")!==-1||t.indexOf("contextmenu")!==-1},isClickToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("click")!==-1||t.indexOf("click")!==-1},isMouseEnterToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("hover")!==-1||t.indexOf("mouseenter")!==-1},isMouseLeaveToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("hover")!==-1||t.indexOf("mouseleave")!==-1},isFocusToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("focus")!==-1||t.indexOf("focus")!==-1},isBlurToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("focus")!==-1||t.indexOf("blur")!==-1},forcePopupAlign(){var e;this.$data.sPopupVisible&&((e=this.popupRef)===null||e===void 0||e.forceAlign())},fireEvents(e,t){this.childOriginEvents[e]&&this.childOriginEvents[e](t);const n=this.$props[e]||this.$attrs[e];n&&n(t)},close(){this.setPopupVisible(!1)}},render(){const{$attrs:e}=this,t=At(lp(this)),{alignPoint:n,getPopupContainer:o}=this.$props,r=t[0];this.childOriginEvents=TS(r);const i={key:"trigger"};this.isContextmenuToShow()?i.onContextmenu=this.onContextmenu:i.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(i.onClick=this.onClick,i.onMousedown=this.onMousedown,i[Yt?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(i.onClick=this.createTwoChains("onClick"),i.onMousedown=this.createTwoChains("onMousedown"),i[Yt?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(i.onMouseenter=this.onMouseenter,n&&(i.onMousemove=this.onMouseMove)):i.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?i.onMouseleave=this.onMouseleave:i.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(i.onFocus=this.onFocus,i.onBlur=this.onBlur):(i.onFocus=this.createTwoChains("onFocus"),i.onBlur=u=>{u&&(!u.relatedTarget||!pi(u.target,u.relatedTarget))&&this.createTwoChains("onBlur")(u)});const l=le(r&&r.props&&r.props.class,e.class);l&&(i.class=l);const a=ut(r,m(m({},i),{ref:"triggerRef"}),!0,!0),s=p(Ic,{key:"portal",getContainer:o&&(()=>o(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return p(Ve,null,[a,s])}});var ik=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},ak=oe({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:W.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:W.oneOfType([Number,Boolean]).def(!0),popupElement:W.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(e,t){let{slots:n,attrs:o,expose:r}=t;const i=P(()=>{const{dropdownMatchSelectWidth:a}=e;return lk(a)}),l=re();return r({getPopupElement:()=>l.value}),()=>{const a=m(m({},e),o),{empty:s=!1}=a,u=ik(a,["empty"]),{visible:c,dropdownAlign:d,prefixCls:f,popupElement:g,dropdownClassName:v,dropdownStyle:h,direction:b="ltr",placement:y,dropdownMatchSelectWidth:S,containerWidth:$,dropdownRender:x,animation:C,transitionName:O,getPopupContainer:w,getTriggerDOMNode:I,onPopupVisibleChange:T,onPopupMouseEnter:_,onPopupFocusin:E,onPopupFocusout:A}=u,R=`${f}-dropdown`;let z=g;x&&(z=x({menuNode:g,props:e}));const M=C?`${R}-${C}`:O,N=m({minWidth:`${$}px`},h);return typeof S=="number"?N.width=`${S}px`:S&&(N.width=`${$}px`),p(Rl,D(D({},e),{},{showAction:T?["click"]:[],hideAction:T?["click"]:[],popupPlacement:y||(b==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:i.value,prefixCls:R,popupTransitionName:M,popupAlign:d,popupVisible:c,getPopupContainer:w,popupClassName:le(v,{[`${R}-empty`]:s}),popupStyle:N,getTriggerDOMNode:I,onPopupVisibleChange:T}),{default:n.default,popup:()=>p("div",{ref:l,onMouseenter:_,onFocusin:E,onFocusout:A},[z])})}}}),Pe={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,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,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},Cl=(e,t)=>{let{slots:n}=t;var o;const{class:r,customizeIcon:i,customizeIconProps:l,onMousedown:a,onClick:s}=e;let u;return typeof i=="function"?u=i(l):u=qt(i)?cn(i):i,p("span",{class:r,onMousedown:c=>{c.preventDefault(),a&&a(c)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},[u!==void 0?u:p("span",{class:r.split(/\s+/).map(c=>`${c}-icon`)},[(o=n.default)===null||o===void 0?void 0:o.call(n)])])};Cl.inheritAttrs=!1;Cl.displayName="TransBtn";Cl.props={class:String,customizeIcon:W.any,customizeIconProps:W.any,onMousedown:Function,onClick:Function};var sk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{o.value&&o.value.focus()},blur:()=>{o.value&&o.value.blur()},input:o,setSelectionRange:(s,u,c)=>{var d;(d=o.value)===null||d===void 0||d.setSelectionRange(s,u,c)},select:()=>{var s;(s=o.value)===null||s===void 0||s.select()},getSelectionStart:()=>{var s;return(s=o.value)===null||s===void 0?void 0:s.selectionStart},getSelectionEnd:()=>{var s;return(s=o.value)===null||s===void 0?void 0:s.selectionEnd},getScrollTop:()=>{var s;return(s=o.value)===null||s===void 0?void 0:s.scrollTop}}),()=>{const{tag:s,value:u}=e,c=sk(e,["tag","value"]);return p(s,D(D({},c),{},{ref:o,value:u}),null)}}});function uk(){const e=document.documentElement.clientWidth,t=window.innerHeight||document.documentElement.clientHeight;return{width:e,height:t}}function qd(e){const t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.scrollX||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.scrollY||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function dk(e){return Array.prototype.slice.apply(e).map(n=>`${n}: ${e.getPropertyValue(n)};`).join("")}function fk(e){return Object.keys(e).reduce((t,n)=>{const o=e[n];return typeof o>"u"||o===null||(t+=`${n}: ${e[n]};`),t},"")}var pk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.value,a],()=>{a.value||(l.value=e.value)},{immediate:!0});const s=w=>{n("change",w)},u=w=>{a.value=!0,w.target.composing=!0,n("compositionstart",w)},c=w=>{a.value=!1,w.target.composing=!1,n("compositionend",w);const I=document.createEvent("HTMLEvents");I.initEvent("input",!0,!0),w.target.dispatchEvent(I),s(w)},d=w=>{if(a.value&&e.lazy){l.value=w.target.value;return}n("input",w)},f=w=>{n("blur",w)},g=w=>{n("focus",w)},v=()=>{i.value&&i.value.focus()},h=()=>{i.value&&i.value.blur()},b=w=>{n("keydown",w)},y=w=>{n("keyup",w)},S=(w,I,T)=>{var _;(_=i.value)===null||_===void 0||_.setSelectionRange(w,I,T)},$=()=>{var w;(w=i.value)===null||w===void 0||w.select()};r({focus:v,blur:h,input:P(()=>{var w;return(w=i.value)===null||w===void 0?void 0:w.input}),setSelectionRange:S,select:$,getSelectionStart:()=>{var w;return(w=i.value)===null||w===void 0?void 0:w.getSelectionStart()},getSelectionEnd:()=>{var w;return(w=i.value)===null||w===void 0?void 0:w.getSelectionEnd()},getScrollTop:()=>{var w;return(w=i.value)===null||w===void 0?void 0:w.getScrollTop()}});const x=w=>{n("mousedown",w)},C=w=>{n("paste",w)},O=P(()=>e.style&&typeof e.style!="string"?fk(e.style):e.style);return()=>{const{style:w,lazy:I}=e,T=pk(e,["style","lazy"]);return p(ck,D(D(D({},T),o),{},{style:O.value,onInput:d,onChange:s,onBlur:f,onFocus:g,ref:i,value:l.value,onCompositionstart:u,onCompositionend:c,onKeyup:y,onKeydown:b,onPaste:C,onMousedown:x}),null)}}}),gk={inputRef:W.any,prefixCls:String,id:String,inputElement:W.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:W.oneOfType([W.number,W.string]),attrs:W.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},YP=oe({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:gk,setup(e){let t=null;const n=He("VCSelectContainerEvent");return()=>{var o;const{prefixCls:r,id:i,inputElement:l,disabled:a,tabindex:s,autofocus:u,autocomplete:c,editable:d,activeDescendantId:f,value:g,onKeydown:v,onMousedown:h,onChange:b,onPaste:y,onCompositionstart:S,onCompositionend:$,onFocus:x,onBlur:C,open:O,inputRef:w,attrs:I}=e;let T=l||p(Ha,null,null);const _=T.props||{},{onKeydown:E,onInput:A,onFocus:R,onBlur:z,onMousedown:M,onCompositionstart:N,onCompositionend:B,style:k}=_;return T=ut(T,m(m(m(m(m({type:"search"},_),{id:i,ref:w,disabled:a,tabindex:s,lazy:!1,autocomplete:c||"off",autofocus:u,class:le(`${r}-selection-search-input`,(o=T?.props)===null||o===void 0?void 0:o.class),role:"combobox","aria-expanded":O,"aria-haspopup":"listbox","aria-owns":`${i}_list`,"aria-autocomplete":"list","aria-controls":`${i}_list`,"aria-activedescendant":f}),I),{value:d?g:"",readonly:!d,unselectable:d?null:"on",style:m(m({},k),{opacity:d?null:0}),onKeydown:F=>{v(F),E&&E(F)},onMousedown:F=>{h(F),M&&M(F)},onInput:F=>{b(F),A&&A(F)},onCompositionstart(F){S(F),N&&N(F)},onCompositionend(F){$(F),B&&B(F)},onPaste:y,onFocus:function(){clearTimeout(t),R&&R(arguments.length<=0?void 0:arguments[0]),x&&x(arguments.length<=0?void 0:arguments[0]),n?.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var F=arguments.length,L=new Array(F),H=0;H{z&&z(L[0]),C&&C(L[0]),n?.blur(L[0])},100)}}),T.type==="textarea"?{}:{type:"search"}),!0,!0),T}}}),hk=`accept acceptcharset accesskey action allowfullscreen allowtransparency alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge charset checked classid classname colspan cols content contenteditable contextmenu controls coords crossorigin data datetime default defer dir disabled download draggable @@ -62,9 +62,9 @@ summary tabindex target title type usemap value width wmode wrap`,vk=`onCopy onC onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata - onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`,G$=`${hk} ${vk}`.split(/[\s\n]+/),mk="aria-",bk="data-";function X$(e,t){return e.indexOf(t)===0}function _i(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=m({},t);const o={};return Object.keys(e).forEach(r=>{(n.aria&&(r==="role"||X$(r,mk))||n.data&&X$(r,bk)||n.attr&&(G$.includes(r)||G$.includes(r.toLowerCase())))&&(o[r]=e[r])}),o}const qP=Symbol("OverflowContextProviderKey"),Wv=oe({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return Xe(qP,P(()=>e.value)),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),yk=()=>He(qP,P(()=>null));var Sk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.responsive&&!e.display),i=re();o({itemNodeRef:i});function l(a){e.registerSize(e.itemKey,a)}return $n(()=>{l(null)}),()=>{var a;const{prefixCls:s,invalidate:u,item:c,renderItem:d,responsive:f,registerSize:g,itemKey:v,display:h,order:b,component:y="div"}=e,S=Sk(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"]),$=(a=n.default)===null||a===void 0?void 0:a.call(n),x=d&&c!==jl?d(c):$;let C;u||(C={opacity:r.value?0:1,height:r.value?0:jl,overflowY:r.value?"hidden":jl,order:f?b:jl,pointerEvents:r.value?"none":jl,position:r.value?"absolute":jl});const O={};return r.value&&(O["aria-hidden"]=!0),p(Mo,{disabled:!f,onResize:w=>{let{offsetWidth:I}=w;l(I)}},{default:()=>p(y,D(D(D({class:le(!u&&s),style:C},O),S),{},{ref:i}),{default:()=>[x]})})}}});var oh=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var i;if(!r.value){const{component:d="div"}=e,f=oh(e,["component"]);return p(d,D(D({},f),o),{default:()=>[(i=n.default)===null||i===void 0?void 0:i.call(n)]})}const l=r.value,{className:a}=l,s=oh(l,["className"]),{class:u}=o,c=oh(o,["class"]);return p(Wv,{value:null},{default:()=>[p(Hu,D(D(D({class:le(a,u)},s),c),e),n)]})}}});var Ck=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:W.any,component:String,itemComponent:W.any,onVisibleChange:Function,ssr:String,onMousedown:Function,role:String}),Lr=oe({name:"Overflow",inheritAttrs:!1,props:wk(),emits:["visibleChange"],setup(e,t){let{attrs:n,emit:o,slots:r}=t;const i=P(()=>e.ssr==="full"),l=ne(null),a=P(()=>l.value||0),s=ne(new Map),u=ne(0),c=ne(0),d=ne(0),f=ne(null),g=ne(null),v=P(()=>g.value===null&&i.value?Number.MAX_SAFE_INTEGER:g.value||0),h=ne(!1),b=P(()=>`${e.prefixCls}-item`),y=P(()=>Math.max(u.value,c.value)),S=P(()=>!!(e.data.length&&e.maxCount===ZP)),$=P(()=>e.maxCount===QP),x=P(()=>S.value||typeof e.maxCount=="number"&&e.data.length>e.maxCount),C=P(()=>{let _=e.data;return S.value?l.value===null&&i.value?_=e.data:_=e.data.slice(0,Math.min(e.data.length,a.value/e.itemWidth)):typeof e.maxCount=="number"&&(_=e.data.slice(0,e.maxCount)),_}),O=P(()=>S.value?e.data.slice(v.value+1):e.data.slice(C.value.length)),w=(_,N)=>{var B;return typeof e.itemKey=="function"?e.itemKey(_):(B=e.itemKey&&_?.[e.itemKey])!==null&&B!==void 0?B:N},I=P(()=>e.renderItem||(_=>_)),T=(_,N)=>{g.value=_,N||(h.value=_{l.value=N.clientWidth},E=(_,N)=>{const B=new Map(s.value);N===null?B.delete(_):B.set(_,N),s.value=B},A=(_,N)=>{u.value=c.value,c.value=N},R=(_,N)=>{d.value=N},z=_=>s.value.get(w(C.value[_],_));return ye([a,s,c,d,()=>e.itemKey,C],()=>{if(a.value&&y.value&&C.value){let _=d.value;const N=C.value.length,B=N-1;if(!N){T(0),f.value=null;return}for(let k=0;ka.value){T(k-1),f.value=_-F-d.value+c.value;break}}e.suffix&&z(0)+d.value>a.value&&(f.value=null)}}),()=>{const _=h.value&&!!O.value.length,{itemComponent:N,renderRawItem:B,renderRawRest:k,renderRest:F,prefixCls:L="rc-overflow",suffix:H,component:j="div",id:Y,onMousedown:Q}=e,{class:U,style:ee}=n,X=Ck(n,["class","style"]);let J={};f.value!==null&&S.value&&(J={position:"absolute",left:`${f.value}px`,top:0});const Z={prefixCls:b.value,responsive:S.value,component:N,invalidate:$.value},G=B?(te,ue)=>{const ie=w(te,ue);return p(Wv,{key:ie,value:m(m({},Z),{order:ue,item:te,itemKey:ie,registerSize:E,display:ue<=v.value})},{default:()=>[B(te,ue)]})}:(te,ue)=>{const ie=w(te,ue);return p(Hu,D(D({},Z),{},{order:ue,key:ie,item:te,renderItem:I.value,itemKey:ie,registerSize:E,display:ue<=v.value}),null)};let q=()=>null;const V={order:_?v.value:Number.MAX_SAFE_INTEGER,className:`${b.value} ${b.value}-rest`,registerSize:A,display:_};if(k)k&&(q=()=>p(Wv,{value:m(m({},Z),V)},{default:()=>[k(O.value)]}));else{const te=F||xk;q=()=>p(Hu,D(D({},Z),V),{default:()=>typeof te=="function"?te(O.value):te})}const K=()=>{var te;return p(j,D({id:Y,class:le(!$.value&&L,U),style:ee,onMousedown:Q,role:e.role},X),{default:()=>[C.value.map(G),x.value?q():null,H&&p(Hu,D(D({},Z),{},{order:v.value,class:`${b.value}-suffix`,registerSize:R,display:!0,style:J}),{default:()=>H}),(te=r.default)===null||te===void 0?void 0:te.call(r)]})};return p(Mo,{disabled:!S.value,onResize:M},{default:K})}}});Lr.Item=$k;Lr.RESPONSIVE=ZP;Lr.INVALIDATE=QP;const JP=Symbol("TreeSelectLegacyContextPropsKey");function Ok(e){return Xe(JP,e)}function wp(){return He(JP,{})}const Pk={id:String,prefixCls:String,values:W.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:W.any,placeholder:W.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:W.oneOfType([W.number,W.string]),compositionStatus:Boolean,removeIcon:W.any,choiceTransitionName:String,maxTagCount:W.oneOfType([W.number,W.string]),maxTagTextLength:Number,maxTagPlaceholder:W.any.def(()=>e=>`+ ${e.length} ...`),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},U$=e=>{e.preventDefault(),e.stopPropagation()},Ik=oe({name:"MultipleSelectSelector",inheritAttrs:!1,props:Pk,setup(e){const t=ne(),n=ne(0),o=ne(!1),r=wp(),i=P(()=>`${e.prefixCls}-selection`),l=P(()=>e.open||e.mode==="tags"?e.searchValue:""),a=P(()=>e.mode==="tags"||e.showSearch&&(e.open||o.value)),s=re("");Le(()=>{s.value=l.value}),je(()=>{ye(s,()=>{n.value=t.value.scrollWidth},{flush:"post",immediate:!0})});function u(v,h,b,y,S){return p("span",{class:le(`${i.value}-item`,{[`${i.value}-item-disabled`]:b}),title:typeof v=="string"||typeof v=="number"?v.toString():void 0},[p("span",{class:`${i.value}-item-content`},[h]),y&&p(Cl,{class:`${i.value}-item-remove`,onMousedown:U$,onClick:S,customizeIcon:e.removeIcon},{default:()=>[Ft("×")]})])}function c(v,h,b,y,S,$){var x;const C=w=>{U$(w),e.onToggleOpen(!open)};let O=$;return r.keyEntities&&(O=((x=r.keyEntities[v])===null||x===void 0?void 0:x.node)||{}),p("span",{key:v,onMousedown:C},[e.tagRender({label:h,value:v,disabled:b,closable:y,onClose:S,option:O})])}function d(v){const{disabled:h,label:b,value:y,option:S}=v,$=!e.disabled&&!h;let x=b;if(typeof e.maxTagTextLength=="number"&&(typeof b=="string"||typeof b=="number")){const O=String(x);O.length>e.maxTagTextLength&&(x=`${O.slice(0,e.maxTagTextLength)}...`)}const C=O=>{var w;O&&O.stopPropagation(),(w=e.onRemove)===null||w===void 0||w.call(e,v)};return typeof e.tagRender=="function"?c(y,x,h,$,C,S):u(b,x,h,$,C)}function f(v){const{maxTagPlaceholder:h=y=>`+ ${y.length} ...`}=e,b=typeof h=="function"?h(v):h;return u(b,b,!1)}const g=v=>{const h=v.target.composing;s.value=v.target.value,h||e.onInputChange(v)};return()=>{const{id:v,prefixCls:h,values:b,open:y,inputRef:S,placeholder:$,disabled:x,autofocus:C,autocomplete:O,activeDescendantId:w,tabindex:I,compositionStatus:T,onInputPaste:M,onInputKeyDown:E,onInputMouseDown:A,onInputCompositionStart:R,onInputCompositionEnd:z}=e,_=p("div",{class:`${i.value}-search`,style:{width:n.value+"px"},key:"input"},[p(YP,{inputRef:S,open:y,prefixCls:h,id:v,inputElement:null,disabled:x,autofocus:C,autocomplete:O,editable:a.value,activeDescendantId:w,value:s.value,onKeydown:E,onMousedown:A,onChange:g,onPaste:M,onCompositionstart:R,onCompositionend:z,tabindex:I,attrs:_i(e,!0),onFocus:()=>o.value=!0,onBlur:()=>o.value=!1},null),p("span",{ref:t,class:`${i.value}-search-mirror`,"aria-hidden":!0},[s.value,Ft(" ")])]),N=p(Lr,{prefixCls:`${i.value}-overflow`,data:b,renderItem:d,renderRest:f,suffix:_,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return p(Ve,null,[N,!b.length&&!l.value&&!T&&p("span",{class:`${i.value}-placeholder`},[$])])}}}),Tk={inputElement:W.any,id:String,prefixCls:String,values:W.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:W.any,placeholder:W.any,compositionStatus:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:W.oneOfType([W.number,W.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},J0=oe({name:"SingleSelector",setup(e){const t=ne(!1),n=P(()=>e.mode==="combobox"),o=P(()=>n.value||e.showSearch),r=P(()=>{let c=e.searchValue||"";return n.value&&e.activeValue&&!t.value&&(c=e.activeValue),c}),i=wp();ye([n,()=>e.activeValue],()=>{n.value&&(t.value=!1)},{immediate:!0});const l=P(()=>e.mode!=="combobox"&&!e.open&&!e.showSearch?!1:!!r.value||e.compositionStatus),a=P(()=>{const c=e.values[0];return c&&(typeof c.label=="string"||typeof c.label=="number")?c.label.toString():void 0}),s=()=>{if(e.values[0])return null;const c=l.value?{visibility:"hidden"}:void 0;return p("span",{class:`${e.prefixCls}-selection-placeholder`,style:c},[e.placeholder])},u=c=>{c.target.composing||(t.value=!0,e.onInputChange(c))};return()=>{var c,d,f,g;const{inputElement:v,prefixCls:h,id:b,values:y,inputRef:S,disabled:$,autofocus:x,autocomplete:C,activeDescendantId:O,open:w,tabindex:I,optionLabelRender:T,onInputKeyDown:M,onInputMouseDown:E,onInputPaste:A,onInputCompositionStart:R,onInputCompositionEnd:z}=e,_=y[0];let N=null;if(_&&i.customSlots){const B=(c=_.key)!==null&&c!==void 0?c:_.value,k=((d=i.keyEntities[B])===null||d===void 0?void 0:d.node)||{};N=i.customSlots[(f=k.slots)===null||f===void 0?void 0:f.title]||i.customSlots.title||_.label,typeof N=="function"&&(N=N(k))}else N=T&&_?T(_.option):_?.label;return p(Ve,null,[p("span",{class:`${h}-selection-search`},[p(YP,{inputRef:S,prefixCls:h,id:b,open:w,inputElement:v,disabled:$,autofocus:x,autocomplete:C,editable:o.value,activeDescendantId:O,value:r.value,onKeydown:M,onMousedown:E,onChange:u,onPaste:A,onCompositionstart:R,onCompositionend:z,tabindex:I,attrs:_i(e,!0)},null)]),!n.value&&_&&!l.value&&p("span",{class:`${h}-selection-item`,title:a.value},[p(Ve,{key:(g=_.key)!==null&&g!==void 0?g:_.value},[N])]),s()])}}});J0.props=Tk;J0.inheritAttrs=!1;function Ek(e){return![Pe.ESC,Pe.SHIFT,Pe.BACKSPACE,Pe.TAB,Pe.WIN_KEY,Pe.ALT,Pe.META,Pe.WIN_KEY_RIGHT,Pe.CTRL,Pe.SEMICOLON,Pe.EQUALS,Pe.CAPS_LOCK,Pe.CONTEXT_MENU,Pe.F1,Pe.F2,Pe.F3,Pe.F4,Pe.F5,Pe.F6,Pe.F7,Pe.F8,Pe.F9,Pe.F10,Pe.F11,Pe.F12].includes(e)}function e6(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=null,n;Qe(()=>{clearTimeout(n)});function o(r){(r||t===null)&&(t=r),clearTimeout(n),n=setTimeout(()=>{t=null},e)}return[()=>t,o]}function uc(){const e=t=>{e.current=t};return e}const Mk=oe({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:W.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:W.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:W.oneOfType([W.number,W.string]),disabled:{type:Boolean,default:void 0},placeholder:W.any,removeIcon:W.any,maxTagCount:W.oneOfType([W.number,W.string]),maxTagTextLength:Number,maxTagPlaceholder:W.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(e,t){let{expose:n}=t;const o=uc(),r=re(!1),[i,l]=e6(0),a=y=>{const{which:S}=y;(S===Pe.UP||S===Pe.DOWN)&&y.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(y),S===Pe.ENTER&&e.mode==="tags"&&!r.value&&!e.open&&e.onSearchSubmit(y.target.value),Ek(S)&&e.onToggleOpen(!0)},s=()=>{l(!0)};let u=null;const c=y=>{e.onSearch(y,!0,r.value)!==!1&&e.onToggleOpen(!0)},d=()=>{r.value=!0},f=y=>{r.value=!1,e.mode!=="combobox"&&c(y.target.value)},g=y=>{let{target:{value:S}}=y;if(e.tokenWithEnter&&u&&/[\r\n]/.test(u)){const $=u.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");S=S.replace($,u)}u=null,c(S)},v=y=>{const{clipboardData:S}=y;u=S.getData("text")},h=y=>{let{target:S}=y;S!==o.current&&(document.body.style.msTouchAction!==void 0?setTimeout(()=>{o.current.focus()}):o.current.focus())},b=y=>{const S=i();y.target!==o.current&&!S&&y.preventDefault(),(e.mode!=="combobox"&&(!e.showSearch||!S)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return n({focus:()=>{o.current.focus()},blur:()=>{o.current.blur()}}),()=>{const{prefixCls:y,domRef:S,mode:$}=e,x={inputRef:o,onInputKeyDown:a,onInputMouseDown:s,onInputChange:g,onInputPaste:v,compositionStatus:r.value,onInputCompositionStart:d,onInputCompositionEnd:f},C=$==="multiple"||$==="tags"?p(Ik,D(D({},e),x),null):p(J0,D(D({},e),x),null);return p("div",{ref:S,class:`${y}-selector`,onClick:h,onMousedown:b},[C])}}});function _k(e,t,n){function o(r){var i,l,a;let s=r.target;s.shadowRoot&&r.composed&&(s=r.composedPath()[0]||s);const u=[(i=e[0])===null||i===void 0?void 0:i.value,(a=(l=e[1])===null||l===void 0?void 0:l.value)===null||a===void 0?void 0:a.getPopupElement()];t.value&&u.every(c=>c&&!c.contains(s)&&c!==s)&&n(!1)}je(()=>{window.addEventListener("mousedown",o)}),Qe(()=>{window.removeEventListener("mousedown",o)})}function Ak(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;const t=ne(!1);let n;const o=()=>{clearTimeout(n)};return je(()=>{o()}),[t,(i,l)=>{o(),n=setTimeout(()=>{t.value=i,l&&l()},e)},o]}const t6=Symbol("BaseSelectContextKey");function Rk(e){return Xe(t6,e)}function Tc(){return He(t6,{})}const eb=(()=>{if(typeof navigator>"u"||typeof window>"u")return!1;const 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(e?.substring(0,4))});function Zd(e){if(!kt(e))return ct(e);const t=new Proxy({},{get(n,o,r){return Reflect.get(e.value,o,r)},set(n,o,r){return e.value[o]=r,!0},deleteProperty(n,o){return Reflect.deleteProperty(e.value,o)},has(n,o){return Reflect.has(e.value,o)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return ct(t)}var Dk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:W.any,emptyOptions:Boolean}),Op=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:W.any,placeholder:W.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:W.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:W.any,clearIcon:W.any,removeIcon:W.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}),kk=()=>m(m({},Bk()),Op());function n6(e){return e==="tags"||e==="multiple"}const tb=oe({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:Ze(kk(),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:n,expose:o,slots:r}=t;const i=P(()=>n6(e.mode)),l=P(()=>e.showSearch!==void 0?e.showSearch:i.value||e.mode==="combobox"),a=ne(!1);je(()=>{a.value=eb()});const s=wp(),u=ne(null),c=uc(),d=ne(null),f=ne(null),g=ne(null),v=re(!1),[h,b,y]=Ak();o({focus:()=>{var G;(G=f.value)===null||G===void 0||G.focus()},blur:()=>{var G;(G=f.value)===null||G===void 0||G.blur()},scrollTo:G=>{var q;return(q=g.value)===null||q===void 0?void 0:q.scrollTo(G)}});const x=P(()=>{var G;if(e.mode!=="combobox")return e.searchValue;const q=(G=e.displayValues[0])===null||G===void 0?void 0:G.value;return typeof q=="string"||typeof q=="number"?String(q):""}),C=e.open!==void 0?e.open:e.defaultOpen,O=ne(C),w=ne(C),I=G=>{O.value=e.open!==void 0?e.open:G,w.value=O.value};ye(()=>e.open,()=>{I(e.open)});const T=P(()=>!e.notFoundContent&&e.emptyOptions);Le(()=>{w.value=O.value,(e.disabled||T.value&&w.value&&e.mode==="combobox")&&(w.value=!1)});const M=P(()=>T.value?!1:w.value),E=G=>{const q=G!==void 0?G:!w.value;w.value!==q&&!e.disabled&&(I(q),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(q),!q&&j.value&&(j.value=!1,b(!1,()=>{L.value=!1,v.value=!1})))},A=P(()=>(e.tokenSeparators||[]).some(G=>[` + onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`,G$=`${hk} ${vk}`.split(/[\s\n]+/),mk="aria-",bk="data-";function X$(e,t){return e.indexOf(t)===0}function _i(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=m({},t);const o={};return Object.keys(e).forEach(r=>{(n.aria&&(r==="role"||X$(r,mk))||n.data&&X$(r,bk)||n.attr&&(G$.includes(r)||G$.includes(r.toLowerCase())))&&(o[r]=e[r])}),o}const qP=Symbol("OverflowContextProviderKey"),Wv=oe({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return Xe(qP,P(()=>e.value)),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),yk=()=>He(qP,P(()=>null));var Sk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.responsive&&!e.display),i=re();o({itemNodeRef:i});function l(a){e.registerSize(e.itemKey,a)}return $n(()=>{l(null)}),()=>{var a;const{prefixCls:s,invalidate:u,item:c,renderItem:d,responsive:f,registerSize:g,itemKey:v,display:h,order:b,component:y="div"}=e,S=Sk(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"]),$=(a=n.default)===null||a===void 0?void 0:a.call(n),x=d&&c!==jl?d(c):$;let C;u||(C={opacity:r.value?0:1,height:r.value?0:jl,overflowY:r.value?"hidden":jl,order:f?b:jl,pointerEvents:r.value?"none":jl,position:r.value?"absolute":jl});const O={};return r.value&&(O["aria-hidden"]=!0),p(Mo,{disabled:!f,onResize:w=>{let{offsetWidth:I}=w;l(I)}},{default:()=>p(y,D(D(D({class:le(!u&&s),style:C},O),S),{},{ref:i}),{default:()=>[x]})})}}});var oh=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var i;if(!r.value){const{component:d="div"}=e,f=oh(e,["component"]);return p(d,D(D({},f),o),{default:()=>[(i=n.default)===null||i===void 0?void 0:i.call(n)]})}const l=r.value,{className:a}=l,s=oh(l,["className"]),{class:u}=o,c=oh(o,["class"]);return p(Wv,{value:null},{default:()=>[p(Hu,D(D(D({class:le(a,u)},s),c),e),n)]})}}});var Ck=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:W.any,component:String,itemComponent:W.any,onVisibleChange:Function,ssr:String,onMousedown:Function,role:String}),Lr=oe({name:"Overflow",inheritAttrs:!1,props:wk(),emits:["visibleChange"],setup(e,t){let{attrs:n,emit:o,slots:r}=t;const i=P(()=>e.ssr==="full"),l=ne(null),a=P(()=>l.value||0),s=ne(new Map),u=ne(0),c=ne(0),d=ne(0),f=ne(null),g=ne(null),v=P(()=>g.value===null&&i.value?Number.MAX_SAFE_INTEGER:g.value||0),h=ne(!1),b=P(()=>`${e.prefixCls}-item`),y=P(()=>Math.max(u.value,c.value)),S=P(()=>!!(e.data.length&&e.maxCount===ZP)),$=P(()=>e.maxCount===QP),x=P(()=>S.value||typeof e.maxCount=="number"&&e.data.length>e.maxCount),C=P(()=>{let M=e.data;return S.value?l.value===null&&i.value?M=e.data:M=e.data.slice(0,Math.min(e.data.length,a.value/e.itemWidth)):typeof e.maxCount=="number"&&(M=e.data.slice(0,e.maxCount)),M}),O=P(()=>S.value?e.data.slice(v.value+1):e.data.slice(C.value.length)),w=(M,N)=>{var B;return typeof e.itemKey=="function"?e.itemKey(M):(B=e.itemKey&&M?.[e.itemKey])!==null&&B!==void 0?B:N},I=P(()=>e.renderItem||(M=>M)),T=(M,N)=>{g.value=M,N||(h.value=M{l.value=N.clientWidth},E=(M,N)=>{const B=new Map(s.value);N===null?B.delete(M):B.set(M,N),s.value=B},A=(M,N)=>{u.value=c.value,c.value=N},R=(M,N)=>{d.value=N},z=M=>s.value.get(w(C.value[M],M));return ye([a,s,c,d,()=>e.itemKey,C],()=>{if(a.value&&y.value&&C.value){let M=d.value;const N=C.value.length,B=N-1;if(!N){T(0),f.value=null;return}for(let k=0;ka.value){T(k-1),f.value=M-F-d.value+c.value;break}}e.suffix&&z(0)+d.value>a.value&&(f.value=null)}}),()=>{const M=h.value&&!!O.value.length,{itemComponent:N,renderRawItem:B,renderRawRest:k,renderRest:F,prefixCls:L="rc-overflow",suffix:H,component:j="div",id:Y,onMousedown:Q}=e,{class:U,style:ee}=n,X=Ck(n,["class","style"]);let J={};f.value!==null&&S.value&&(J={position:"absolute",left:`${f.value}px`,top:0});const Z={prefixCls:b.value,responsive:S.value,component:N,invalidate:$.value},G=B?(te,ue)=>{const ie=w(te,ue);return p(Wv,{key:ie,value:m(m({},Z),{order:ue,item:te,itemKey:ie,registerSize:E,display:ue<=v.value})},{default:()=>[B(te,ue)]})}:(te,ue)=>{const ie=w(te,ue);return p(Hu,D(D({},Z),{},{order:ue,key:ie,item:te,renderItem:I.value,itemKey:ie,registerSize:E,display:ue<=v.value}),null)};let q=()=>null;const V={order:M?v.value:Number.MAX_SAFE_INTEGER,className:`${b.value} ${b.value}-rest`,registerSize:A,display:M};if(k)k&&(q=()=>p(Wv,{value:m(m({},Z),V)},{default:()=>[k(O.value)]}));else{const te=F||xk;q=()=>p(Hu,D(D({},Z),V),{default:()=>typeof te=="function"?te(O.value):te})}const K=()=>{var te;return p(j,D({id:Y,class:le(!$.value&&L,U),style:ee,onMousedown:Q,role:e.role},X),{default:()=>[C.value.map(G),x.value?q():null,H&&p(Hu,D(D({},Z),{},{order:v.value,class:`${b.value}-suffix`,registerSize:R,display:!0,style:J}),{default:()=>H}),(te=r.default)===null||te===void 0?void 0:te.call(r)]})};return p(Mo,{disabled:!S.value,onResize:_},{default:K})}}});Lr.Item=$k;Lr.RESPONSIVE=ZP;Lr.INVALIDATE=QP;const JP=Symbol("TreeSelectLegacyContextPropsKey");function Ok(e){return Xe(JP,e)}function wp(){return He(JP,{})}const Pk={id:String,prefixCls:String,values:W.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:W.any,placeholder:W.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:W.oneOfType([W.number,W.string]),compositionStatus:Boolean,removeIcon:W.any,choiceTransitionName:String,maxTagCount:W.oneOfType([W.number,W.string]),maxTagTextLength:Number,maxTagPlaceholder:W.any.def(()=>e=>`+ ${e.length} ...`),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},U$=e=>{e.preventDefault(),e.stopPropagation()},Ik=oe({name:"MultipleSelectSelector",inheritAttrs:!1,props:Pk,setup(e){const t=ne(),n=ne(0),o=ne(!1),r=wp(),i=P(()=>`${e.prefixCls}-selection`),l=P(()=>e.open||e.mode==="tags"?e.searchValue:""),a=P(()=>e.mode==="tags"||e.showSearch&&(e.open||o.value)),s=re("");Le(()=>{s.value=l.value}),je(()=>{ye(s,()=>{n.value=t.value.scrollWidth},{flush:"post",immediate:!0})});function u(v,h,b,y,S){return p("span",{class:le(`${i.value}-item`,{[`${i.value}-item-disabled`]:b}),title:typeof v=="string"||typeof v=="number"?v.toString():void 0},[p("span",{class:`${i.value}-item-content`},[h]),y&&p(Cl,{class:`${i.value}-item-remove`,onMousedown:U$,onClick:S,customizeIcon:e.removeIcon},{default:()=>[Ft("×")]})])}function c(v,h,b,y,S,$){var x;const C=w=>{U$(w),e.onToggleOpen(!open)};let O=$;return r.keyEntities&&(O=((x=r.keyEntities[v])===null||x===void 0?void 0:x.node)||{}),p("span",{key:v,onMousedown:C},[e.tagRender({label:h,value:v,disabled:b,closable:y,onClose:S,option:O})])}function d(v){const{disabled:h,label:b,value:y,option:S}=v,$=!e.disabled&&!h;let x=b;if(typeof e.maxTagTextLength=="number"&&(typeof b=="string"||typeof b=="number")){const O=String(x);O.length>e.maxTagTextLength&&(x=`${O.slice(0,e.maxTagTextLength)}...`)}const C=O=>{var w;O&&O.stopPropagation(),(w=e.onRemove)===null||w===void 0||w.call(e,v)};return typeof e.tagRender=="function"?c(y,x,h,$,C,S):u(b,x,h,$,C)}function f(v){const{maxTagPlaceholder:h=y=>`+ ${y.length} ...`}=e,b=typeof h=="function"?h(v):h;return u(b,b,!1)}const g=v=>{const h=v.target.composing;s.value=v.target.value,h||e.onInputChange(v)};return()=>{const{id:v,prefixCls:h,values:b,open:y,inputRef:S,placeholder:$,disabled:x,autofocus:C,autocomplete:O,activeDescendantId:w,tabindex:I,compositionStatus:T,onInputPaste:_,onInputKeyDown:E,onInputMouseDown:A,onInputCompositionStart:R,onInputCompositionEnd:z}=e,M=p("div",{class:`${i.value}-search`,style:{width:n.value+"px"},key:"input"},[p(YP,{inputRef:S,open:y,prefixCls:h,id:v,inputElement:null,disabled:x,autofocus:C,autocomplete:O,editable:a.value,activeDescendantId:w,value:s.value,onKeydown:E,onMousedown:A,onChange:g,onPaste:_,onCompositionstart:R,onCompositionend:z,tabindex:I,attrs:_i(e,!0),onFocus:()=>o.value=!0,onBlur:()=>o.value=!1},null),p("span",{ref:t,class:`${i.value}-search-mirror`,"aria-hidden":!0},[s.value,Ft(" ")])]),N=p(Lr,{prefixCls:`${i.value}-overflow`,data:b,renderItem:d,renderRest:f,suffix:M,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return p(Ve,null,[N,!b.length&&!l.value&&!T&&p("span",{class:`${i.value}-placeholder`},[$])])}}}),Tk={inputElement:W.any,id:String,prefixCls:String,values:W.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:W.any,placeholder:W.any,compositionStatus:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:W.oneOfType([W.number,W.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},J0=oe({name:"SingleSelector",setup(e){const t=ne(!1),n=P(()=>e.mode==="combobox"),o=P(()=>n.value||e.showSearch),r=P(()=>{let c=e.searchValue||"";return n.value&&e.activeValue&&!t.value&&(c=e.activeValue),c}),i=wp();ye([n,()=>e.activeValue],()=>{n.value&&(t.value=!1)},{immediate:!0});const l=P(()=>e.mode!=="combobox"&&!e.open&&!e.showSearch?!1:!!r.value||e.compositionStatus),a=P(()=>{const c=e.values[0];return c&&(typeof c.label=="string"||typeof c.label=="number")?c.label.toString():void 0}),s=()=>{if(e.values[0])return null;const c=l.value?{visibility:"hidden"}:void 0;return p("span",{class:`${e.prefixCls}-selection-placeholder`,style:c},[e.placeholder])},u=c=>{c.target.composing||(t.value=!0,e.onInputChange(c))};return()=>{var c,d,f,g;const{inputElement:v,prefixCls:h,id:b,values:y,inputRef:S,disabled:$,autofocus:x,autocomplete:C,activeDescendantId:O,open:w,tabindex:I,optionLabelRender:T,onInputKeyDown:_,onInputMouseDown:E,onInputPaste:A,onInputCompositionStart:R,onInputCompositionEnd:z}=e,M=y[0];let N=null;if(M&&i.customSlots){const B=(c=M.key)!==null&&c!==void 0?c:M.value,k=((d=i.keyEntities[B])===null||d===void 0?void 0:d.node)||{};N=i.customSlots[(f=k.slots)===null||f===void 0?void 0:f.title]||i.customSlots.title||M.label,typeof N=="function"&&(N=N(k))}else N=T&&M?T(M.option):M?.label;return p(Ve,null,[p("span",{class:`${h}-selection-search`},[p(YP,{inputRef:S,prefixCls:h,id:b,open:w,inputElement:v,disabled:$,autofocus:x,autocomplete:C,editable:o.value,activeDescendantId:O,value:r.value,onKeydown:_,onMousedown:E,onChange:u,onPaste:A,onCompositionstart:R,onCompositionend:z,tabindex:I,attrs:_i(e,!0)},null)]),!n.value&&M&&!l.value&&p("span",{class:`${h}-selection-item`,title:a.value},[p(Ve,{key:(g=M.key)!==null&&g!==void 0?g:M.value},[N])]),s()])}}});J0.props=Tk;J0.inheritAttrs=!1;function Ek(e){return![Pe.ESC,Pe.SHIFT,Pe.BACKSPACE,Pe.TAB,Pe.WIN_KEY,Pe.ALT,Pe.META,Pe.WIN_KEY_RIGHT,Pe.CTRL,Pe.SEMICOLON,Pe.EQUALS,Pe.CAPS_LOCK,Pe.CONTEXT_MENU,Pe.F1,Pe.F2,Pe.F3,Pe.F4,Pe.F5,Pe.F6,Pe.F7,Pe.F8,Pe.F9,Pe.F10,Pe.F11,Pe.F12].includes(e)}function e6(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=null,n;Qe(()=>{clearTimeout(n)});function o(r){(r||t===null)&&(t=r),clearTimeout(n),n=setTimeout(()=>{t=null},e)}return[()=>t,o]}function uc(){const e=t=>{e.current=t};return e}const Mk=oe({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:W.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:W.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:W.oneOfType([W.number,W.string]),disabled:{type:Boolean,default:void 0},placeholder:W.any,removeIcon:W.any,maxTagCount:W.oneOfType([W.number,W.string]),maxTagTextLength:Number,maxTagPlaceholder:W.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(e,t){let{expose:n}=t;const o=uc(),r=re(!1),[i,l]=e6(0),a=y=>{const{which:S}=y;(S===Pe.UP||S===Pe.DOWN)&&y.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(y),S===Pe.ENTER&&e.mode==="tags"&&!r.value&&!e.open&&e.onSearchSubmit(y.target.value),Ek(S)&&e.onToggleOpen(!0)},s=()=>{l(!0)};let u=null;const c=y=>{e.onSearch(y,!0,r.value)!==!1&&e.onToggleOpen(!0)},d=()=>{r.value=!0},f=y=>{r.value=!1,e.mode!=="combobox"&&c(y.target.value)},g=y=>{let{target:{value:S}}=y;if(e.tokenWithEnter&&u&&/[\r\n]/.test(u)){const $=u.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");S=S.replace($,u)}u=null,c(S)},v=y=>{const{clipboardData:S}=y;u=S.getData("text")},h=y=>{let{target:S}=y;S!==o.current&&(document.body.style.msTouchAction!==void 0?setTimeout(()=>{o.current.focus()}):o.current.focus())},b=y=>{const S=i();y.target!==o.current&&!S&&y.preventDefault(),(e.mode!=="combobox"&&(!e.showSearch||!S)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return n({focus:()=>{o.current.focus()},blur:()=>{o.current.blur()}}),()=>{const{prefixCls:y,domRef:S,mode:$}=e,x={inputRef:o,onInputKeyDown:a,onInputMouseDown:s,onInputChange:g,onInputPaste:v,compositionStatus:r.value,onInputCompositionStart:d,onInputCompositionEnd:f},C=$==="multiple"||$==="tags"?p(Ik,D(D({},e),x),null):p(J0,D(D({},e),x),null);return p("div",{ref:S,class:`${y}-selector`,onClick:h,onMousedown:b},[C])}}});function _k(e,t,n){function o(r){var i,l,a;let s=r.target;s.shadowRoot&&r.composed&&(s=r.composedPath()[0]||s);const u=[(i=e[0])===null||i===void 0?void 0:i.value,(a=(l=e[1])===null||l===void 0?void 0:l.value)===null||a===void 0?void 0:a.getPopupElement()];t.value&&u.every(c=>c&&!c.contains(s)&&c!==s)&&n(!1)}je(()=>{window.addEventListener("mousedown",o)}),Qe(()=>{window.removeEventListener("mousedown",o)})}function Ak(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;const t=ne(!1);let n;const o=()=>{clearTimeout(n)};return je(()=>{o()}),[t,(i,l)=>{o(),n=setTimeout(()=>{t.value=i,l&&l()},e)},o]}const t6=Symbol("BaseSelectContextKey");function Rk(e){return Xe(t6,e)}function Tc(){return He(t6,{})}const eb=(()=>{if(typeof navigator>"u"||typeof window>"u")return!1;const 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(e?.substring(0,4))});function Zd(e){if(!kt(e))return ct(e);const t=new Proxy({},{get(n,o,r){return Reflect.get(e.value,o,r)},set(n,o,r){return e.value[o]=r,!0},deleteProperty(n,o){return Reflect.deleteProperty(e.value,o)},has(n,o){return Reflect.has(e.value,o)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return ct(t)}var Dk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:W.any,emptyOptions:Boolean}),Op=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:W.any,placeholder:W.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:W.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:W.any,clearIcon:W.any,removeIcon:W.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}),kk=()=>m(m({},Bk()),Op());function n6(e){return e==="tags"||e==="multiple"}const tb=oe({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:Ze(kk(),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:n,expose:o,slots:r}=t;const i=P(()=>n6(e.mode)),l=P(()=>e.showSearch!==void 0?e.showSearch:i.value||e.mode==="combobox"),a=ne(!1);je(()=>{a.value=eb()});const s=wp(),u=ne(null),c=uc(),d=ne(null),f=ne(null),g=ne(null),v=re(!1),[h,b,y]=Ak();o({focus:()=>{var G;(G=f.value)===null||G===void 0||G.focus()},blur:()=>{var G;(G=f.value)===null||G===void 0||G.blur()},scrollTo:G=>{var q;return(q=g.value)===null||q===void 0?void 0:q.scrollTo(G)}});const x=P(()=>{var G;if(e.mode!=="combobox")return e.searchValue;const q=(G=e.displayValues[0])===null||G===void 0?void 0:G.value;return typeof q=="string"||typeof q=="number"?String(q):""}),C=e.open!==void 0?e.open:e.defaultOpen,O=ne(C),w=ne(C),I=G=>{O.value=e.open!==void 0?e.open:G,w.value=O.value};ye(()=>e.open,()=>{I(e.open)});const T=P(()=>!e.notFoundContent&&e.emptyOptions);Le(()=>{w.value=O.value,(e.disabled||T.value&&w.value&&e.mode==="combobox")&&(w.value=!1)});const _=P(()=>T.value?!1:w.value),E=G=>{const q=G!==void 0?G:!w.value;w.value!==q&&!e.disabled&&(I(q),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(q),!q&&j.value&&(j.value=!1,b(!1,()=>{L.value=!1,v.value=!1})))},A=P(()=>(e.tokenSeparators||[]).some(G=>[` `,`\r -`].includes(G))),R=(G,q,V)=>{var K,te;let ue=!0,ie=G;(K=e.onActiveValueChange)===null||K===void 0||K.call(e,null);const ae=V?null:D9(G,e.tokenSeparators);return e.mode!=="combobox"&&ae&&(ie="",(te=e.onSearchSplit)===null||te===void 0||te.call(e,ae),E(!1),ue=!1),e.onSearch&&x.value!==ie&&e.onSearch(ie,{source:q?"typing":"effect"}),ue},z=G=>{var q;!G||!G.trim()||(q=e.onSearch)===null||q===void 0||q.call(e,G,{source:"submit"})};ye(w,()=>{!w.value&&!i.value&&e.mode!=="combobox"&&R("",!1,!1)},{immediate:!0,flush:"post"}),ye(()=>e.disabled,()=>{O.value&&e.disabled&&I(!1),e.disabled&&!v.value&&b(!1)},{immediate:!0});const[_,N]=e6(),B=function(G){var q;const V=_(),{which:K}=G;if(K===Pe.ENTER&&(e.mode!=="combobox"&&G.preventDefault(),w.value||E(!0)),N(!!x.value),K===Pe.BACKSPACE&&!V&&i.value&&!x.value&&e.displayValues.length){const ae=[...e.displayValues];let ce=null;for(let se=ae.length-1;se>=0;se-=1){const pe=ae[se];if(!pe.disabled){ae.splice(se,1),ce=pe;break}}ce&&e.onDisplayValuesChange(ae,{type:"remove",values:[ce]})}for(var te=arguments.length,ue=new Array(te>1?te-1:0),ie=1;ie1?q-1:0),K=1;K{const q=e.displayValues.filter(V=>V!==G);e.onDisplayValuesChange(q,{type:"remove",values:[G]})},L=ne(!1),H=function(){b(!0),e.disabled||(e.onFocus&&!L.value&&e.onFocus(...arguments),e.showAction&&e.showAction.includes("focus")&&E(!0)),L.value=!0},j=re(!1),Y=function(){if(j.value||(v.value=!0,b(!1,()=>{L.value=!1,v.value=!1,E(!1)}),e.disabled))return;const G=x.value;G&&(e.mode==="tags"?e.onSearch(G,{source:"submit"}):e.mode==="multiple"&&e.onSearch("",{source:"blur"})),e.onBlur&&e.onBlur(...arguments)},Q=()=>{j.value=!0},U=()=>{j.value=!1};Xe("VCSelectContainerEvent",{focus:H,blur:Y});const ee=[];je(()=>{ee.forEach(G=>clearTimeout(G)),ee.splice(0,ee.length)}),Qe(()=>{ee.forEach(G=>clearTimeout(G)),ee.splice(0,ee.length)});const X=function(G){var q,V;const{target:K}=G,te=(q=d.value)===null||q===void 0?void 0:q.getPopupElement();if(te&&te.contains(K)){const ce=setTimeout(()=>{var se;const pe=ee.indexOf(ce);pe!==-1&&ee.splice(pe,1),y(),!a.value&&!te.contains(document.activeElement)&&((se=f.value)===null||se===void 0||se.focus())});ee.push(ce)}for(var ue=arguments.length,ie=new Array(ue>1?ue-1:0),ae=1;ae{};return je(()=>{ye(M,()=>{var G;if(M.value){const q=Math.ceil((G=u.value)===null||G===void 0?void 0:G.offsetWidth);J.value!==q&&!Number.isNaN(q)&&(J.value=q)}},{immediate:!0,flush:"post"})}),_k([u,d],M,E),Rk(Zd(m(m({},jo(e)),{open:w,triggerOpen:M,showSearch:l,multiple:i,toggleOpen:E}))),()=>{const G=m(m({},e),n),{prefixCls:q,id:V,open:K,defaultOpen:te,mode:ue,showSearch:ie,searchValue:ae,onSearch:ce,allowClear:se,clearIcon:pe,showArrow:ge,inputIcon:he,disabled:me,loading:xe,getInputElement:fe,getPopupContainer:de,placement:be,animation:we,transitionName:Ie,dropdownStyle:Ae,dropdownClassName:Se,dropdownMatchSelectWidth:Ce,dropdownRender:Oe,dropdownAlign:Me,showAction:Re,direction:_e,tokenSeparators:Be,tagRender:et,optionLabelRender:dt,onPopupScroll:it,onDropdownVisibleChange:ft,onFocus:gt,onBlur:Ut,onKeyup:Jt,onKeydown:on,onMousedown:zt,onClear:Cn,omitDomProps:Kn,getRawInputElement:vo,displayValues:No,onDisplayValuesChange:Gn,emptyOptions:ki,activeDescendantId:Ee,activeValue:Ye,OptionList:Ge}=G,$t=Dk(G,["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"]),en=ue==="combobox"&&fe&&fe()||null,Ht=typeof vo=="function"&&vo(),Xn=m({},$t);let hn;Ht&&(hn=ko=>{E(ko)}),Nk.forEach(ko=>{delete Xn[ko]}),Kn?.forEach(ko=>{delete Xn[ko]});const tr=ge!==void 0?ge:xe||!i.value&&ue!=="combobox";let eo;tr&&(eo=p(Cl,{class:le(`${q}-arrow`,{[`${q}-arrow-loading`]:xe}),customizeIcon:he,customizeIconProps:{loading:xe,searchValue:x.value,open:w.value,focused:h.value,showSearch:l.value}},null));let mo;const At=()=>{Cn?.(),Gn([],{type:"clear",values:No}),R("",!1,!1)};!me&&se&&(No.length||x.value)&&(mo=p(Cl,{class:`${q}-clear`,onMousedown:At,customizeIcon:pe},{default:()=>[Ft("×")]}));const Bo=p(Ge,{ref:g},m(m({},s.customSlots),{option:r.option})),bo=le(q,n.class,{[`${q}-focused`]:h.value,[`${q}-multiple`]:i.value,[`${q}-single`]:!i.value,[`${q}-allow-clear`]:se,[`${q}-show-arrow`]:tr,[`${q}-disabled`]:me,[`${q}-loading`]:xe,[`${q}-open`]:w.value,[`${q}-customize-input`]:en,[`${q}-show-search`]:l.value}),Qr=p(ak,{ref:d,disabled:me,prefixCls:q,visible:M.value,popupElement:Bo,containerWidth:J.value,animation:we,transitionName:Ie,dropdownStyle:Ae,dropdownClassName:Se,direction:_e,dropdownMatchSelectWidth:Ce,dropdownRender:Oe,dropdownAlign:Me,placement:be,getPopupContainer:de,empty:ki,getTriggerDOMNode:()=>c.current,onPopupVisibleChange:hn,onPopupMouseEnter:Z,onPopupFocusin:Q,onPopupFocusout:U},{default:()=>Ht?Kt(Ht)&&ut(Ht,{ref:c},!1,!0):p(Mk,D(D({},e),{},{domRef:c,prefixCls:q,inputElement:en,ref:f,id:V,showSearch:l.value,mode:ue,activeDescendantId:Ee,tagRender:et,optionLabelRender:dt,values:No,open:w.value,onToggleOpen:E,activeValue:Ye,searchValue:x.value,onSearch:R,onSearchSubmit:z,onRemove:F,tokenWithEnter:A.value}),null)});let Jr;return Ht?Jr=Qr:Jr=p("div",D(D({},Xn),{},{class:bo,ref:u,onMousedown:X,onKeydown:B,onKeyup:k}),[h.value&&!w.value&&p("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${No.map(ko=>{let{label:Ll,value:Fo}=ko;return["number","string"].includes(typeof Ll)?Ll:Fo}).join(", ")}`]),Qr,eo,mo]),Jr}}}),Pp=(e,t)=>{let{height:n,offset:o,prefixCls:r,onInnerResize:i}=e,{slots:l}=t;var a;let s={},u={display:"flex",flexDirection:"column"};return o!==void 0&&(s={height:`${n}px`,position:"relative",overflow:"hidden"},u=m(m({},u),{transform:`translateY(${o}px)`,position:"absolute",left:0,right:0,top:0})),p("div",{style:s},[p(Mo,{onResize:c=>{let{offsetHeight:d}=c;d&&i&&i()}},{default:()=>[p("div",{style:u,class:le({[`${r}-holder-inner`]:r})},[(a=l.default)===null||a===void 0?void 0:a.call(l)])]})])};Pp.displayName="Filter";Pp.inheritAttrs=!1;Pp.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const o6=(e,t)=>{let{setRef:n}=e,{slots:o}=t;var r;const i=bt((r=o.default)===null||r===void 0?void 0:r.call(o));return i&&i.length?cn(i[0],{ref:n}):i};o6.props={setRef:{type:Function,default:()=>{}}};const Fk=20;function Y$(e){return"touches"in e?e.touches[0].pageY:e.pageY}const Lk=oe({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup(){return{moveRaf:null,scrollbarRef:uc(),thumbRef:uc(),visibleTimeout:null,state:ct({dragging:!1,pageY:null,startTop:null,visible:!1})}},watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var e,t;(e=this.scrollbarRef.current)===null||e===void 0||e.addEventListener("touchstart",this.onScrollbarTouchStart,Yt?{passive:!1}:!1),(t=this.thumbRef.current)===null||t===void 0||t.addEventListener("touchstart",this.onMouseDown,Yt?{passive:!1}:!1)},beforeUnmount(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden(){clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout(()=>{this.state.visible=!1},2e3)},onScrollbarTouchStart(e){e.preventDefault()},onContainerMouseDown(e){e.stopPropagation(),e.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,Yt?{passive:!1}:!1),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,Yt?{passive:!1}:!1),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,Yt?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,Yt?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),qe.cancel(this.moveRaf)},onMouseDown(e){const{onStartMove:t}=this.$props;m(this.state,{dragging:!0,pageY:Y$(e),startTop:this.getTop()}),t(),this.patchEvents(),e.stopPropagation(),e.preventDefault()},onMouseMove(e){const{dragging:t,pageY:n,startTop:o}=this.state,{onScroll:r}=this.$props;if(qe.cancel(this.moveRaf),t){const i=Y$(e)-n,l=o+i,a=this.getEnableScrollRange(),s=this.getEnableHeightRange(),u=s?l/s:0,c=Math.ceil(u*a);this.moveRaf=qe(()=>{r(c)})}},onMouseUp(){const{onStopMove:e}=this.$props;this.state.dragging=!1,e(),this.removeEvents()},getSpinHeight(){const{height:e,scrollHeight:t}=this.$props;let n=e/t*100;return n=Math.max(n,Fk),n=Math.min(n,e/2),Math.floor(n)},getEnableScrollRange(){const{scrollHeight:e,height:t}=this.$props;return e-t||0},getEnableHeightRange(){const{height:e}=this.$props,t=this.getSpinHeight();return e-t||0},getTop(){const{scrollTop:e}=this.$props,t=this.getEnableScrollRange(),n=this.getEnableHeightRange();return e===0||t===0?0:e/t*n},showScroll(){const{height:e,scrollHeight:t}=this.$props;return t>e}},render(){const{dragging:e,visible:t}=this.state,{prefixCls:n}=this.$props,o=this.getSpinHeight()+"px",r=this.getTop()+"px",i=this.showScroll(),l=i&&t;return p("div",{ref:this.scrollbarRef,class:le(`${n}-scrollbar`,{[`${n}-scrollbar-show`]:i}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:l?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[p("div",{ref:this.thumbRef,class:le(`${n}-scrollbar-thumb`,{[`${n}-scrollbar-thumb-moving`]:e}),style:{width:"100%",height:o,top:r,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function zk(e,t,n,o){const r=new Map,i=new Map,l=re(Symbol("update"));ye(e,()=>{l.value=Symbol("update")});let a;function s(){qe.cancel(a)}function u(){s(),a=qe(()=>{r.forEach((d,f)=>{if(d&&d.offsetParent){const{offsetHeight:g}=d;i.get(f)!==g&&(l.value=Symbol("update"),i.set(f,d.offsetHeight))}})})}function c(d,f){const g=t(d);r.get(g),f?(r.set(g,f.$el||f),u()):r.delete(g)}return $n(()=>{s()}),[c,u,i,l]}function Hk(e,t,n,o,r,i,l,a){let s;return u=>{if(u==null){a();return}qe.cancel(s);const c=t.value,d=o.itemHeight;if(typeof u=="number")l(u);else if(u&&typeof u=="object"){let f;const{align:g}=u;"index"in u?{index:f}=u:f=c.findIndex(b=>r(b)===u.key);const{offset:v=0}=u,h=(b,y)=>{if(b<0||!e.value)return;const S=e.value.clientHeight;let $=!1,x=y;if(S){const C=y||g;let O=0,w=0,I=0;const T=Math.min(c.length,f);for(let A=0;A<=T;A+=1){const R=r(c[A]);w=O;const z=n.get(R);I=w+(z===void 0?d:z),O=I,A===f&&z===void 0&&($=!0)}const M=e.value.scrollTop;let E=null;switch(C){case"top":E=w-v;break;case"bottom":E=I-S+v;break;default:{const A=M+S;wA&&(x="bottom")}}E!==null&&E!==M&&l(E)}s=qe(()=>{$&&i(),h(b-1,x)},2)};h(5)}}}const jk=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),r6=((e,t)=>{let n=!1,o=null;function r(){clearTimeout(o),n=!0,o=setTimeout(()=>{n=!1},50)}return function(i){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const a=i<0&&e.value||i>0&&t.value;return l&&a?(clearTimeout(o),n=!1):(!a||n)&&r(),!n&&a}});function Vk(e,t,n,o){let r=0,i=null,l=null,a=!1;const s=r6(t,n);function u(d){if(!e.value)return;qe.cancel(i);const{deltaY:f}=d;r+=f,l=f,!s(f)&&(jk||d.preventDefault(),i=qe(()=>{o(r*(a?10:1)),r=0}))}function c(d){e.value&&(a=d.detail===l)}return[u,c]}const Wk=14/15;function Kk(e,t,n){let o=!1,r=0,i=null,l=null;const a=()=>{i&&(i.removeEventListener("touchmove",s),i.removeEventListener("touchend",u))},s=f=>{if(o){const g=Math.ceil(f.touches[0].pageY);let v=r-g;r=g,n(v)&&f.preventDefault(),clearInterval(l),l=setInterval(()=>{v*=Wk,(!n(v,!0)||Math.abs(v)<=.1)&&clearInterval(l)},16)}},u=()=>{o=!1,a()},c=f=>{a(),f.touches.length===1&&!o&&(o=!0,r=Math.ceil(f.touches[0].pageY),i=f.target,i.addEventListener("touchmove",s,{passive:!1}),i.addEventListener("touchend",u))},d=()=>{};je(()=>{document.addEventListener("touchmove",d,{passive:!1}),ye(e,f=>{t.value.removeEventListener("touchstart",c),a(),clearInterval(l),f&&t.value.addEventListener("touchstart",c,{passive:!1})},{immediate:!0})}),Qe(()=>{document.removeEventListener("touchmove",d)})}var Gk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const u=t+s,c=r(a,u,{}),d=l(a);return p(o6,{key:d,setRef:f=>o(a,f)},{default:()=>[c]})})}const i6=oe({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:W.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup(e,t){let{expose:n}=t;const o=P(()=>{const{height:F,itemHeight:L,virtual:H}=e;return!!(H!==!1&&F&&L)}),r=P(()=>{const{height:F,itemHeight:L,data:H}=e;return o.value&&H&&L*H.length>F}),i=ct({scrollTop:0,scrollMoving:!1}),l=P(()=>e.data||Xk),a=ne([]);ye(l,()=>{a.value=Je(l.value).slice()},{immediate:!0});const s=ne(F=>{});ye(()=>e.itemKey,F=>{typeof F=="function"?s.value=F:s.value=L=>L?.[F]},{immediate:!0});const u=ne(),c=ne(),d=ne(),f=F=>s.value(F),g={getKey:f};function v(F){let L;typeof F=="function"?L=F(i.scrollTop):L=F;const H=O(L);u.value&&(u.value.scrollTop=H),i.scrollTop=H}const[h,b,y,S]=zk(a,f),$=ct({scrollHeight:void 0,start:0,end:0,offset:void 0}),x=ne(0);je(()=>{ot(()=>{var F;x.value=((F=c.value)===null||F===void 0?void 0:F.offsetHeight)||0})}),An(()=>{ot(()=>{var F;x.value=((F=c.value)===null||F===void 0?void 0:F.offsetHeight)||0})}),ye([o,a],()=>{o.value||m($,{scrollHeight:void 0,start:0,end:a.value.length-1,offset:void 0})},{immediate:!0}),ye([o,a,x,r],()=>{o.value&&!r.value&&m($,{scrollHeight:x.value,start:0,end:a.value.length-1,offset:void 0}),u.value&&(i.scrollTop=u.value.scrollTop)},{immediate:!0}),ye([r,o,()=>i.scrollTop,a,S,()=>e.height,x],()=>{if(!o.value||!r.value)return;let F=0,L,H,j;const Y=a.value.length,Q=a.value,U=i.scrollTop,{itemHeight:ee,height:X}=e,J=U+X;for(let Z=0;Z=U&&(L=Z,H=F),j===void 0&&K>J&&(j=Z),F=K}L===void 0&&(L=0,H=0,j=Math.ceil(X/ee)),j===void 0&&(j=Y-1),j=Math.min(j+1,Y),m($,{scrollHeight:F,start:L,end:j,offset:H})},{immediate:!0});const C=P(()=>$.scrollHeight-e.height);function O(F){let L=F;return Number.isNaN(C.value)||(L=Math.min(L,C.value)),L=Math.max(L,0),L}const w=P(()=>i.scrollTop<=0),I=P(()=>i.scrollTop>=C.value),T=r6(w,I);function M(F){v(F)}function E(F){var L;const{scrollTop:H}=F.currentTarget;H!==i.scrollTop&&v(H),(L=e.onScroll)===null||L===void 0||L.call(e,F)}const[A,R]=Vk(o,w,I,F=>{v(L=>L+F)});Kk(o,u,(F,L)=>T(F,L)?!1:(A({preventDefault(){},deltaY:F}),!0));function z(F){o.value&&F.preventDefault()}const _=()=>{u.value&&(u.value.removeEventListener("wheel",A,Yt?{passive:!1}:!1),u.value.removeEventListener("DOMMouseScroll",R),u.value.removeEventListener("MozMousePixelScroll",z))};Le(()=>{ot(()=>{u.value&&(_(),u.value.addEventListener("wheel",A,Yt?{passive:!1}:!1),u.value.addEventListener("DOMMouseScroll",R),u.value.addEventListener("MozMousePixelScroll",z))})}),Qe(()=>{_()});const N=Hk(u,a,y,e,f,b,v,()=>{var F;(F=d.value)===null||F===void 0||F.delayHidden()});n({scrollTo:N});const B=P(()=>{let F=null;return e.height&&(F=m({[e.fullHeight?"height":"maxHeight"]:e.height+"px"},Uk),o.value&&(F.overflowY="hidden",i.scrollMoving&&(F.pointerEvents="none"))),F});return ye([()=>$.start,()=>$.end,a],()=>{if(e.onVisibleChange){const F=a.value.slice($.start,$.end+1);e.onVisibleChange(F,a.value)}},{flush:"post"}),{state:i,mergedData:a,componentStyle:B,onFallbackScroll:E,onScrollBar:M,componentRef:u,useVirtual:o,calRes:$,collectHeight:b,setInstance:h,sharedConfig:g,scrollBarRef:d,fillerInnerRef:c,delayHideScrollBar:()=>{var F;(F=d.value)===null||F===void 0||F.delayHidden()}}},render(){const e=m(m({},this.$props),this.$attrs),{prefixCls:t="rc-virtual-list",height:n,itemHeight:o,fullHeight:r,data:i,itemKey:l,virtual:a,component:s="div",onScroll:u,children:c=this.$slots.default,style:d,class:f}=e,g=Gk(e,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),v=le(t,f),{scrollTop:h}=this.state,{scrollHeight:b,offset:y,start:S,end:$}=this.calRes,{componentStyle:x,onFallbackScroll:C,onScrollBar:O,useVirtual:w,collectHeight:I,sharedConfig:T,setInstance:M,mergedData:E,delayHideScrollBar:A}=this;return p("div",D({style:m(m({},d),{position:"relative"}),class:v},g),[p(s,{class:`${t}-holder`,style:x,ref:"componentRef",onScroll:C,onMouseenter:A},{default:()=>[p(Pp,{prefixCls:t,height:b,offset:y,onInnerResize:I,ref:"fillerInnerRef"},{default:()=>Yk(E,S,$,M,c,T)})]}),w&&p(Lk,{ref:"scrollBarRef",prefixCls:t,scrollTop:h,height:n,scrollHeight:b,count:E.length,onScroll:O,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}});function nb(e,t,n){const o=re(e());return ye(t,(r,i)=>{n?n(r,i)&&(o.value=e()):o.value=e()}),o}function qk(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}const l6=Symbol("SelectContextKey");function Zk(e){return Xe(l6,e)}function Qk(){return He(l6,{})}var Jk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r`${r.prefixCls}-item`),a=nb(()=>i.flattenOptions,[()=>r.open,()=>i.flattenOptions],C=>C[0]),s=uc(),u=C=>{C.preventDefault()},c=C=>{s.current&&s.current.scrollTo(typeof C=="number"?{index:C}:C)},d=function(C){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const w=a.value.length;for(let I=0;I1&&arguments[1]!==void 0?arguments[1]:!1;f.activeIndex=C;const w={source:O?"keyboard":"mouse"},I=a.value[C];if(!I){i.onActiveValue(null,-1,w);return}i.onActiveValue(I.value,C,w)};ye([()=>a.value.length,()=>r.searchValue],()=>{g(i.defaultActiveFirstOption!==!1?d(0):-1)},{immediate:!0});const v=C=>i.rawValues.has(C)&&r.mode!=="combobox";ye([()=>r.open,()=>r.searchValue],()=>{if(!r.multiple&&r.open&&i.rawValues.size===1){const C=Array.from(i.rawValues)[0],O=Je(a.value).findIndex(w=>{let{data:I}=w;return I[i.fieldNames.value]===C});O!==-1&&(g(O),ot(()=>{c(O)}))}r.open&&ot(()=>{var C;(C=s.current)===null||C===void 0||C.scrollTo(void 0)})},{immediate:!0,flush:"post"});const h=C=>{C!==void 0&&i.onSelect(C,{selected:!i.rawValues.has(C)}),r.multiple||r.toggleOpen(!1)},b=C=>typeof C.label=="function"?C.label():C.label;function y(C){const O=a.value[C];if(!O)return null;const w=O.data||{},{value:I}=w,{group:T}=O,M=_i(w,!0),E=b(O);return O?p("div",D(D({"aria-label":typeof E=="string"&&!T?E:null},M),{},{key:C,role:T?"presentation":"option",id:`${r.id}_list_${C}`,"aria-selected":v(I)}),[I]):null}return n({onKeydown:C=>{const{which:O,ctrlKey:w}=C;switch(O){case Pe.N:case Pe.P:case Pe.UP:case Pe.DOWN:{let I=0;if(O===Pe.UP?I=-1:O===Pe.DOWN?I=1:qk()&&w&&(O===Pe.N?I=1:O===Pe.P&&(I=-1)),I!==0){const T=d(f.activeIndex+I,I);c(T),g(T,!0)}break}case Pe.ENTER:{const I=a.value[f.activeIndex];I&&!I.data.disabled?h(I.value):h(void 0),r.open&&C.preventDefault();break}case Pe.ESC:r.toggleOpen(!1),r.open&&C.stopPropagation()}},onKeyup:()=>{},scrollTo:C=>{c(C)}}),()=>{const{id:C,notFoundContent:O,onPopupScroll:w}=r,{menuItemSelectedIcon:I,fieldNames:T,virtual:M,listHeight:E,listItemHeight:A}=i,R=o.option,{activeIndex:z}=f,_=Object.keys(T).map(N=>T[N]);return a.value.length===0?p("div",{role:"listbox",id:`${C}_list`,class:`${l.value}-empty`,onMousedown:u},[O]):p(Ve,null,[p("div",{role:"listbox",id:`${C}_list`,style:{height:0,width:0,overflow:"hidden"}},[y(z-1),y(z),y(z+1)]),p(i6,{itemKey:"key",ref:s,data:a.value,height:E,itemHeight:A,fullHeight:!1,onMousedown:u,onScroll:w,virtual:M},{default:(N,B)=>{var k;const{group:F,groupOption:L,data:H,value:j}=N,{key:Y}=H,Q=typeof N.label=="function"?N.label():N.label;if(F){const pe=(k=H.title)!==null&&k!==void 0?k:q$(Q)&&Q;return p("div",{class:le(l.value,`${l.value}-group`),title:pe},[R?R(H):Q!==void 0?Q:Y])}const{disabled:U,title:ee,children:X,style:J,class:Z,className:G}=H,q=Jk(H,["disabled","title","children","style","class","className"]),V=tt(q,_),K=v(j),te=`${l.value}-option`,ue=le(l.value,te,Z,G,{[`${te}-grouped`]:L,[`${te}-active`]:z===B&&!U,[`${te}-disabled`]:U,[`${te}-selected`]:K}),ie=b(N),ae=!I||typeof I=="function"||K,ce=typeof ie=="number"?ie:ie||j;let se=q$(ce)?ce.toString():void 0;return ee!==void 0&&(se=ee),p("div",D(D({},V),{},{"aria-selected":K,class:ue,title:se,onMousemove:pe=>{q.onMousemove&&q.onMousemove(pe),!(z===B||U)&&g(B)},onClick:pe=>{U||h(j),q.onClick&&q.onClick(pe)},style:J}),[p("div",{class:`${te}-content`},[R?R(H):ce]),Kt(I)||K,ae&&p(Cl,{class:`${l.value}-option-state`,customizeIcon:I,customizeIconProps:{isSelected:K}},{default:()=>[K?"✓":null]})])}})])}}});var tF=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r1&&arguments[1]!==void 0?arguments[1]:!1;return bt(e).map((o,r)=>{var i;if(!Kt(o)||!o.type)return null;const{type:{isSelectOptGroup:l},key:a,children:s,props:u}=o;if(t||!l)return nF(o);const c=s&&s.default?s.default():void 0,d=u?.label||((i=s.label)===null||i===void 0?void 0:i.call(s))||a;return m(m({key:`__RC_SELECT_GRP__${a===null?r:String(a)}__`},u),{label:d,options:a6(c||[])})}).filter(o=>o)}function oF(e,t,n){const o=ne(),r=ne(),i=ne(),l=ne([]);return ye([e,t],()=>{e.value?l.value=Je(e.value).slice():l.value=a6(t.value)},{immediate:!0,deep:!0}),Le(()=>{const a=l.value,s=new Map,u=new Map,c=n.value;function d(f){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(let v=0;v0&&arguments[0]!==void 0?arguments[0]:re("");const t=`rc_select_${iF()}`;return e.value||t}function s6(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function rh(e,t){return s6(e).join("").toUpperCase().includes(t)}const lF=((e,t,n,o,r)=>P(()=>{const i=n.value,l=r?.value,a=o?.value;if(!i||a===!1)return e.value;const{options:s,label:u,value:c}=t.value,d=[],f=typeof a=="function",g=i.toUpperCase(),v=f?a:(b,y)=>l?rh(y[l],g):y[s]?rh(y[u!=="children"?u:"label"],g):rh(y[c],g),h=f?b=>Nv(b):b=>b;return e.value.forEach(b=>{if(b[s]){if(v(i,h(b)))d.push(b);else{const S=b[s].filter($=>v(i,h($)));S.length&&d.push(m(m({},b),{[s]:S}))}return}v(i,h(b))&&d.push(b)}),d})),aF=((e,t)=>{const n=ne({values:new Map,options:new Map});return[P(()=>{const{values:i,options:l}=n.value,a=e.value.map(c=>{var d;return c.label===void 0?m(m({},c),{label:(d=i.get(c.value))===null||d===void 0?void 0:d.label}):c}),s=new Map,u=new Map;return a.forEach(c=>{s.set(c.value,c),u.set(c.value,t.value.get(c.value)||l.get(c.value))}),n.value.values=s,n.value.options=u,a}),i=>t.value.get(i)||n.value.options.get(i)]});function Pt(e,t){const{defaultValue:n,value:o=re()}=t||{};let r=typeof e=="function"?e():e;o.value!==void 0&&(r=St(o)),n!==void 0&&(r=typeof n=="function"?n():n);const i=re(r),l=re(r);Le(()=>{let s=o.value!==void 0?o.value:i.value;t.postState&&(s=t.postState(s)),l.value=s});function a(s){const u=l.value;i.value=s,Je(l.value)!==s&&t.onChange&&t.onChange(s,u)}return ye(o,()=>{i.value=o.value}),[l,a]}function ht(e){const t=typeof e=="function"?e():e,n=re(t);function o(r){n.value=r}return[n,o]}const sF=["inputValue"];function c6(){return m(m({},Op()),{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:W.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:W.any,defaultValue:W.any,onChange:Function,children:Array})}function cF(e){return!e||typeof e!="object"}const uF=oe({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:Ze(c6(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(e,t){let{expose:n,attrs:o,slots:r}=t;const i=ob(ze(e,"id")),l=P(()=>n6(e.mode)),a=P(()=>!!(!e.options&&e.children)),s=P(()=>e.filterOption===void 0&&e.mode==="combobox"?!1:e.filterOption),u=P(()=>CP(e.fieldNames,a.value)),[c,d]=Pt("",{value:P(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:Z=>Z||""}),f=oF(ze(e,"options"),ze(e,"children"),u),{valueOptions:g,labelOptions:v,options:h}=f,b=Z=>s6(Z).map(q=>{var V,K;let te,ue,ie,ae;cF(q)?te=q:(ie=q.key,ue=q.label,te=(V=q.value)!==null&&V!==void 0?V:ie);const ce=g.value.get(te);return ce&&(ue===void 0&&(ue=ce?.[e.optionLabelProp||u.value.label]),ie===void 0&&(ie=(K=ce?.key)!==null&&K!==void 0?K:te),ae=ce?.disabled),{label:ue,value:te,key:ie,disabled:ae,option:ce}}),[y,S]=Pt(e.defaultValue,{value:ze(e,"value")}),$=P(()=>{var Z;const G=b(y.value);return e.mode==="combobox"&&!(!((Z=G[0])===null||Z===void 0)&&Z.value)?[]:G}),[x,C]=aF($,g),O=P(()=>{if(!e.mode&&x.value.length===1){const Z=x.value[0];if(Z.value===null&&(Z.label===null||Z.label===void 0))return[]}return x.value.map(Z=>{var G;return m(m({},Z),{label:(G=typeof Z.label=="function"?Z.label():Z.label)!==null&&G!==void 0?G:Z.value})})}),w=P(()=>new Set(x.value.map(Z=>Z.value)));Le(()=>{var Z;if(e.mode==="combobox"){const G=(Z=x.value[0])===null||Z===void 0?void 0:Z.value;G!=null&&d(String(G))}},{flush:"post"});const I=(Z,G)=>{const q=G??Z;return{[u.value.value]:Z,[u.value.label]:q}},T=ne();Le(()=>{if(e.mode!=="tags"){T.value=h.value;return}const Z=h.value.slice(),G=q=>g.value.has(q);[...x.value].sort((q,V)=>q.value{const V=q.value;G(V)||Z.push(I(V,q.label))}),T.value=Z});const M=lF(T,u,c,s,ze(e,"optionFilterProp")),E=P(()=>e.mode!=="tags"||!c.value||M.value.some(Z=>Z[e.optionFilterProp||"value"]===c.value)?M.value:[I(c.value),...M.value]),A=P(()=>e.filterSort?[...E.value].sort((Z,G)=>e.filterSort(Z,G)):E.value),R=P(()=>R9(A.value,{fieldNames:u.value,childrenAsData:a.value})),z=Z=>{const G=b(Z);if(S(G),e.onChange&&(G.length!==x.value.length||G.some((q,V)=>{var K;return((K=x.value[V])===null||K===void 0?void 0:K.value)!==q?.value}))){const q=e.labelInValue?G.map(K=>m(m({},K),{originLabel:K.label,label:typeof K.label=="function"?K.label():K.label})):G.map(K=>K.value),V=G.map(K=>Nv(C(K.value)));e.onChange(l.value?q:q[0],l.value?V:V[0])}},[_,N]=ht(null),[B,k]=ht(0),F=P(()=>e.defaultActiveFirstOption!==void 0?e.defaultActiveFirstOption:e.mode!=="combobox"),L=function(Z,G){let{source:q="keyboard"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};k(G),e.backfill&&e.mode==="combobox"&&Z!==null&&q==="keyboard"&&N(String(Z))},H=(Z,G)=>{const q=()=>{var V;const K=C(Z),te=K?.[u.value.label];return[e.labelInValue?{label:typeof te=="function"?te():te,originLabel:te,value:Z,key:(V=K?.key)!==null&&V!==void 0?V:Z}:Z,Nv(K)]};if(G&&e.onSelect){const[V,K]=q();e.onSelect(V,K)}else if(!G&&e.onDeselect){const[V,K]=q();e.onDeselect(V,K)}},j=(Z,G)=>{let q;const V=l.value?G.selected:!0;V?q=l.value?[...x.value,Z]:[Z]:q=x.value.filter(K=>K.value!==Z),z(q),H(Z,V),e.mode==="combobox"?N(""):(!l.value||e.autoClearSearchValue)&&(d(""),N(""))},Y=(Z,G)=>{z(Z),(G.type==="remove"||G.type==="clear")&&G.values.forEach(q=>{H(q.value,!1)})},Q=(Z,G)=>{var q;if(d(Z),N(null),G.source==="submit"){const V=(Z||"").trim();if(V){const K=Array.from(new Set([...w.value,V]));z(K),H(V,!0),d("")}return}G.source!=="blur"&&(e.mode==="combobox"&&z(Z),(q=e.onSearch)===null||q===void 0||q.call(e,Z))},U=Z=>{let G=Z;e.mode!=="tags"&&(G=Z.map(V=>{const K=v.value.get(V);return K?.value}).filter(V=>V!==void 0));const q=Array.from(new Set([...w.value,...G]));z(q),q.forEach(V=>{H(V,!0)})},ee=P(()=>e.virtual!==!1&&e.dropdownMatchSelectWidth!==!1);Zk(Zd(m(m({},f),{flattenOptions:R,onActiveValue:L,defaultActiveFirstOption:F,onSelect:j,menuItemSelectedIcon:ze(e,"menuItemSelectedIcon"),rawValues:w,fieldNames:u,virtual:ee,listHeight:ze(e,"listHeight"),listItemHeight:ze(e,"listItemHeight"),childrenAsData:a})));const X=re();n({focus(){var Z;(Z=X.value)===null||Z===void 0||Z.focus()},blur(){var Z;(Z=X.value)===null||Z===void 0||Z.blur()},scrollTo(Z){var G;(G=X.value)===null||G===void 0||G.scrollTo(Z)}});const J=P(()=>tt(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"]));return()=>p(tb,D(D(D({},J.value),o),{},{id:i,prefixCls:e.prefixCls,ref:X,omitDomProps:sF,mode:e.mode,displayValues:O.value,onDisplayValuesChange:Y,searchValue:c.value,onSearch:Q,onSearchSplit:U,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:eF,emptyOptions:!R.value.length,activeValue:_.value,activeDescendantId:`${i}_list_${B.value}`}),r)}}),rb=()=>null;rb.isSelectOption=!0;rb.displayName="ASelectOption";const ib=()=>null;ib.isSelectOptGroup=!0;ib.displayName="ASelectOptGroup";var dF={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"},fF=Symbol("iconContext"),u6=function(){return He(fF,{prefixCls:re("anticon"),rootClassName:re(""),csp:re()})};function lb(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function pF(e,t){return e&&e.contains?e.contains(t):!1}var Q$="data-vc-order",gF="vc-icon-key",Kv=new Map;function d6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):gF}function ab(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function hF(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function f6(e){return Array.from((Kv.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function p6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!lb())return null;var n=t.csp,o=t.prepend,r=document.createElement("style");r.setAttribute(Q$,hF(o)),n&&n.nonce&&(r.nonce=n.nonce),r.innerHTML=e;var i=ab(t),l=i.firstChild;if(o){if(o==="queue"){var a=f6(i).filter(function(s){return["prepend","prependQueue"].includes(s.getAttribute(Q$))});if(a.length)return i.insertBefore(r,a[a.length-1].nextSibling),r}i.insertBefore(r,l)}else i.appendChild(r);return r}function vF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ab(t);return f6(n).find(function(o){return o.getAttribute(d6(t))===e})}function mF(e,t){var n=Kv.get(e);if(!n||!pF(document,n)){var o=p6("",t),r=o.parentNode;Kv.set(e,r),e.removeChild(o)}}function bF(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=ab(n);mF(o,n);var r=vF(t,n);if(r)return n.csp&&n.csp.nonce&&r.nonce!==n.csp.nonce&&(r.nonce=n.csp.nonce),r.innerHTML!==e&&(r.innerHTML=e),r;var i=p6(e,n);return i.setAttribute(d6(n),t),i}function J$(e){for(var t=1;t{var K,te;let ue=!0,ie=G;(K=e.onActiveValueChange)===null||K===void 0||K.call(e,null);const ae=V?null:D9(G,e.tokenSeparators);return e.mode!=="combobox"&&ae&&(ie="",(te=e.onSearchSplit)===null||te===void 0||te.call(e,ae),E(!1),ue=!1),e.onSearch&&x.value!==ie&&e.onSearch(ie,{source:q?"typing":"effect"}),ue},z=G=>{var q;!G||!G.trim()||(q=e.onSearch)===null||q===void 0||q.call(e,G,{source:"submit"})};ye(w,()=>{!w.value&&!i.value&&e.mode!=="combobox"&&R("",!1,!1)},{immediate:!0,flush:"post"}),ye(()=>e.disabled,()=>{O.value&&e.disabled&&I(!1),e.disabled&&!v.value&&b(!1)},{immediate:!0});const[M,N]=e6(),B=function(G){var q;const V=M(),{which:K}=G;if(K===Pe.ENTER&&(e.mode!=="combobox"&&G.preventDefault(),w.value||E(!0)),N(!!x.value),K===Pe.BACKSPACE&&!V&&i.value&&!x.value&&e.displayValues.length){const ae=[...e.displayValues];let ce=null;for(let se=ae.length-1;se>=0;se-=1){const pe=ae[se];if(!pe.disabled){ae.splice(se,1),ce=pe;break}}ce&&e.onDisplayValuesChange(ae,{type:"remove",values:[ce]})}for(var te=arguments.length,ue=new Array(te>1?te-1:0),ie=1;ie1?q-1:0),K=1;K{const q=e.displayValues.filter(V=>V!==G);e.onDisplayValuesChange(q,{type:"remove",values:[G]})},L=ne(!1),H=function(){b(!0),e.disabled||(e.onFocus&&!L.value&&e.onFocus(...arguments),e.showAction&&e.showAction.includes("focus")&&E(!0)),L.value=!0},j=re(!1),Y=function(){if(j.value||(v.value=!0,b(!1,()=>{L.value=!1,v.value=!1,E(!1)}),e.disabled))return;const G=x.value;G&&(e.mode==="tags"?e.onSearch(G,{source:"submit"}):e.mode==="multiple"&&e.onSearch("",{source:"blur"})),e.onBlur&&e.onBlur(...arguments)},Q=()=>{j.value=!0},U=()=>{j.value=!1};Xe("VCSelectContainerEvent",{focus:H,blur:Y});const ee=[];je(()=>{ee.forEach(G=>clearTimeout(G)),ee.splice(0,ee.length)}),Qe(()=>{ee.forEach(G=>clearTimeout(G)),ee.splice(0,ee.length)});const X=function(G){var q,V;const{target:K}=G,te=(q=d.value)===null||q===void 0?void 0:q.getPopupElement();if(te&&te.contains(K)){const ce=setTimeout(()=>{var se;const pe=ee.indexOf(ce);pe!==-1&&ee.splice(pe,1),y(),!a.value&&!te.contains(document.activeElement)&&((se=f.value)===null||se===void 0||se.focus())});ee.push(ce)}for(var ue=arguments.length,ie=new Array(ue>1?ue-1:0),ae=1;ae{};return je(()=>{ye(_,()=>{var G;if(_.value){const q=Math.ceil((G=u.value)===null||G===void 0?void 0:G.offsetWidth);J.value!==q&&!Number.isNaN(q)&&(J.value=q)}},{immediate:!0,flush:"post"})}),_k([u,d],_,E),Rk(Zd(m(m({},jo(e)),{open:w,triggerOpen:_,showSearch:l,multiple:i,toggleOpen:E}))),()=>{const G=m(m({},e),n),{prefixCls:q,id:V,open:K,defaultOpen:te,mode:ue,showSearch:ie,searchValue:ae,onSearch:ce,allowClear:se,clearIcon:pe,showArrow:ge,inputIcon:he,disabled:me,loading:xe,getInputElement:fe,getPopupContainer:de,placement:be,animation:we,transitionName:Ie,dropdownStyle:Ae,dropdownClassName:Se,dropdownMatchSelectWidth:Ce,dropdownRender:Oe,dropdownAlign:Me,showAction:Re,direction:_e,tokenSeparators:Be,tagRender:et,optionLabelRender:dt,onPopupScroll:it,onDropdownVisibleChange:ft,onFocus:gt,onBlur:Ut,onKeyup:Jt,onKeydown:on,onMousedown:zt,onClear:Cn,omitDomProps:Kn,getRawInputElement:vo,displayValues:No,onDisplayValuesChange:Gn,emptyOptions:ki,activeDescendantId:Ee,activeValue:Ye,OptionList:Ge}=G,$t=Dk(G,["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"]),en=ue==="combobox"&&fe&&fe()||null,Ht=typeof vo=="function"&&vo(),Xn=m({},$t);let hn;Ht&&(hn=ko=>{E(ko)}),Nk.forEach(ko=>{delete Xn[ko]}),Kn?.forEach(ko=>{delete Xn[ko]});const tr=ge!==void 0?ge:xe||!i.value&&ue!=="combobox";let eo;tr&&(eo=p(Cl,{class:le(`${q}-arrow`,{[`${q}-arrow-loading`]:xe}),customizeIcon:he,customizeIconProps:{loading:xe,searchValue:x.value,open:w.value,focused:h.value,showSearch:l.value}},null));let mo;const Rt=()=>{Cn?.(),Gn([],{type:"clear",values:No}),R("",!1,!1)};!me&&se&&(No.length||x.value)&&(mo=p(Cl,{class:`${q}-clear`,onMousedown:Rt,customizeIcon:pe},{default:()=>[Ft("×")]}));const Bo=p(Ge,{ref:g},m(m({},s.customSlots),{option:r.option})),bo=le(q,n.class,{[`${q}-focused`]:h.value,[`${q}-multiple`]:i.value,[`${q}-single`]:!i.value,[`${q}-allow-clear`]:se,[`${q}-show-arrow`]:tr,[`${q}-disabled`]:me,[`${q}-loading`]:xe,[`${q}-open`]:w.value,[`${q}-customize-input`]:en,[`${q}-show-search`]:l.value}),Qr=p(ak,{ref:d,disabled:me,prefixCls:q,visible:_.value,popupElement:Bo,containerWidth:J.value,animation:we,transitionName:Ie,dropdownStyle:Ae,dropdownClassName:Se,direction:_e,dropdownMatchSelectWidth:Ce,dropdownRender:Oe,dropdownAlign:Me,placement:be,getPopupContainer:de,empty:ki,getTriggerDOMNode:()=>c.current,onPopupVisibleChange:hn,onPopupMouseEnter:Z,onPopupFocusin:Q,onPopupFocusout:U},{default:()=>Ht?Kt(Ht)&&ut(Ht,{ref:c},!1,!0):p(Mk,D(D({},e),{},{domRef:c,prefixCls:q,inputElement:en,ref:f,id:V,showSearch:l.value,mode:ue,activeDescendantId:Ee,tagRender:et,optionLabelRender:dt,values:No,open:w.value,onToggleOpen:E,activeValue:Ye,searchValue:x.value,onSearch:R,onSearchSubmit:z,onRemove:F,tokenWithEnter:A.value}),null)});let Jr;return Ht?Jr=Qr:Jr=p("div",D(D({},Xn),{},{class:bo,ref:u,onMousedown:X,onKeydown:B,onKeyup:k}),[h.value&&!w.value&&p("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${No.map(ko=>{let{label:Ll,value:Fo}=ko;return["number","string"].includes(typeof Ll)?Ll:Fo}).join(", ")}`]),Qr,eo,mo]),Jr}}}),Pp=(e,t)=>{let{height:n,offset:o,prefixCls:r,onInnerResize:i}=e,{slots:l}=t;var a;let s={},u={display:"flex",flexDirection:"column"};return o!==void 0&&(s={height:`${n}px`,position:"relative",overflow:"hidden"},u=m(m({},u),{transform:`translateY(${o}px)`,position:"absolute",left:0,right:0,top:0})),p("div",{style:s},[p(Mo,{onResize:c=>{let{offsetHeight:d}=c;d&&i&&i()}},{default:()=>[p("div",{style:u,class:le({[`${r}-holder-inner`]:r})},[(a=l.default)===null||a===void 0?void 0:a.call(l)])]})])};Pp.displayName="Filter";Pp.inheritAttrs=!1;Pp.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const o6=(e,t)=>{let{setRef:n}=e,{slots:o}=t;var r;const i=bt((r=o.default)===null||r===void 0?void 0:r.call(o));return i&&i.length?cn(i[0],{ref:n}):i};o6.props={setRef:{type:Function,default:()=>{}}};const Fk=20;function Y$(e){return"touches"in e?e.touches[0].pageY:e.pageY}const Lk=oe({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup(){return{moveRaf:null,scrollbarRef:uc(),thumbRef:uc(),visibleTimeout:null,state:ct({dragging:!1,pageY:null,startTop:null,visible:!1})}},watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var e,t;(e=this.scrollbarRef.current)===null||e===void 0||e.addEventListener("touchstart",this.onScrollbarTouchStart,Yt?{passive:!1}:!1),(t=this.thumbRef.current)===null||t===void 0||t.addEventListener("touchstart",this.onMouseDown,Yt?{passive:!1}:!1)},beforeUnmount(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden(){clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout(()=>{this.state.visible=!1},2e3)},onScrollbarTouchStart(e){e.preventDefault()},onContainerMouseDown(e){e.stopPropagation(),e.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,Yt?{passive:!1}:!1),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,Yt?{passive:!1}:!1),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,Yt?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,Yt?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),qe.cancel(this.moveRaf)},onMouseDown(e){const{onStartMove:t}=this.$props;m(this.state,{dragging:!0,pageY:Y$(e),startTop:this.getTop()}),t(),this.patchEvents(),e.stopPropagation(),e.preventDefault()},onMouseMove(e){const{dragging:t,pageY:n,startTop:o}=this.state,{onScroll:r}=this.$props;if(qe.cancel(this.moveRaf),t){const i=Y$(e)-n,l=o+i,a=this.getEnableScrollRange(),s=this.getEnableHeightRange(),u=s?l/s:0,c=Math.ceil(u*a);this.moveRaf=qe(()=>{r(c)})}},onMouseUp(){const{onStopMove:e}=this.$props;this.state.dragging=!1,e(),this.removeEvents()},getSpinHeight(){const{height:e,scrollHeight:t}=this.$props;let n=e/t*100;return n=Math.max(n,Fk),n=Math.min(n,e/2),Math.floor(n)},getEnableScrollRange(){const{scrollHeight:e,height:t}=this.$props;return e-t||0},getEnableHeightRange(){const{height:e}=this.$props,t=this.getSpinHeight();return e-t||0},getTop(){const{scrollTop:e}=this.$props,t=this.getEnableScrollRange(),n=this.getEnableHeightRange();return e===0||t===0?0:e/t*n},showScroll(){const{height:e,scrollHeight:t}=this.$props;return t>e}},render(){const{dragging:e,visible:t}=this.state,{prefixCls:n}=this.$props,o=this.getSpinHeight()+"px",r=this.getTop()+"px",i=this.showScroll(),l=i&&t;return p("div",{ref:this.scrollbarRef,class:le(`${n}-scrollbar`,{[`${n}-scrollbar-show`]:i}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:l?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[p("div",{ref:this.thumbRef,class:le(`${n}-scrollbar-thumb`,{[`${n}-scrollbar-thumb-moving`]:e}),style:{width:"100%",height:o,top:r,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function zk(e,t,n,o){const r=new Map,i=new Map,l=re(Symbol("update"));ye(e,()=>{l.value=Symbol("update")});let a;function s(){qe.cancel(a)}function u(){s(),a=qe(()=>{r.forEach((d,f)=>{if(d&&d.offsetParent){const{offsetHeight:g}=d;i.get(f)!==g&&(l.value=Symbol("update"),i.set(f,d.offsetHeight))}})})}function c(d,f){const g=t(d);r.get(g),f?(r.set(g,f.$el||f),u()):r.delete(g)}return $n(()=>{s()}),[c,u,i,l]}function Hk(e,t,n,o,r,i,l,a){let s;return u=>{if(u==null){a();return}qe.cancel(s);const c=t.value,d=o.itemHeight;if(typeof u=="number")l(u);else if(u&&typeof u=="object"){let f;const{align:g}=u;"index"in u?{index:f}=u:f=c.findIndex(b=>r(b)===u.key);const{offset:v=0}=u,h=(b,y)=>{if(b<0||!e.value)return;const S=e.value.clientHeight;let $=!1,x=y;if(S){const C=y||g;let O=0,w=0,I=0;const T=Math.min(c.length,f);for(let A=0;A<=T;A+=1){const R=r(c[A]);w=O;const z=n.get(R);I=w+(z===void 0?d:z),O=I,A===f&&z===void 0&&($=!0)}const _=e.value.scrollTop;let E=null;switch(C){case"top":E=w-v;break;case"bottom":E=I-S+v;break;default:{const A=_+S;w<_?x="top":I>A&&(x="bottom")}}E!==null&&E!==_&&l(E)}s=qe(()=>{$&&i(),h(b-1,x)},2)};h(5)}}}const jk=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),r6=((e,t)=>{let n=!1,o=null;function r(){clearTimeout(o),n=!0,o=setTimeout(()=>{n=!1},50)}return function(i){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const a=i<0&&e.value||i>0&&t.value;return l&&a?(clearTimeout(o),n=!1):(!a||n)&&r(),!n&&a}});function Vk(e,t,n,o){let r=0,i=null,l=null,a=!1;const s=r6(t,n);function u(d){if(!e.value)return;qe.cancel(i);const{deltaY:f}=d;r+=f,l=f,!s(f)&&(jk||d.preventDefault(),i=qe(()=>{o(r*(a?10:1)),r=0}))}function c(d){e.value&&(a=d.detail===l)}return[u,c]}const Wk=14/15;function Kk(e,t,n){let o=!1,r=0,i=null,l=null;const a=()=>{i&&(i.removeEventListener("touchmove",s),i.removeEventListener("touchend",u))},s=f=>{if(o){const g=Math.ceil(f.touches[0].pageY);let v=r-g;r=g,n(v)&&f.preventDefault(),clearInterval(l),l=setInterval(()=>{v*=Wk,(!n(v,!0)||Math.abs(v)<=.1)&&clearInterval(l)},16)}},u=()=>{o=!1,a()},c=f=>{a(),f.touches.length===1&&!o&&(o=!0,r=Math.ceil(f.touches[0].pageY),i=f.target,i.addEventListener("touchmove",s,{passive:!1}),i.addEventListener("touchend",u))},d=()=>{};je(()=>{document.addEventListener("touchmove",d,{passive:!1}),ye(e,f=>{t.value.removeEventListener("touchstart",c),a(),clearInterval(l),f&&t.value.addEventListener("touchstart",c,{passive:!1})},{immediate:!0})}),Qe(()=>{document.removeEventListener("touchmove",d)})}var Gk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const u=t+s,c=r(a,u,{}),d=l(a);return p(o6,{key:d,setRef:f=>o(a,f)},{default:()=>[c]})})}const i6=oe({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:W.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup(e,t){let{expose:n}=t;const o=P(()=>{const{height:F,itemHeight:L,virtual:H}=e;return!!(H!==!1&&F&&L)}),r=P(()=>{const{height:F,itemHeight:L,data:H}=e;return o.value&&H&&L*H.length>F}),i=ct({scrollTop:0,scrollMoving:!1}),l=P(()=>e.data||Xk),a=ne([]);ye(l,()=>{a.value=Je(l.value).slice()},{immediate:!0});const s=ne(F=>{});ye(()=>e.itemKey,F=>{typeof F=="function"?s.value=F:s.value=L=>L?.[F]},{immediate:!0});const u=ne(),c=ne(),d=ne(),f=F=>s.value(F),g={getKey:f};function v(F){let L;typeof F=="function"?L=F(i.scrollTop):L=F;const H=O(L);u.value&&(u.value.scrollTop=H),i.scrollTop=H}const[h,b,y,S]=zk(a,f),$=ct({scrollHeight:void 0,start:0,end:0,offset:void 0}),x=ne(0);je(()=>{ot(()=>{var F;x.value=((F=c.value)===null||F===void 0?void 0:F.offsetHeight)||0})}),An(()=>{ot(()=>{var F;x.value=((F=c.value)===null||F===void 0?void 0:F.offsetHeight)||0})}),ye([o,a],()=>{o.value||m($,{scrollHeight:void 0,start:0,end:a.value.length-1,offset:void 0})},{immediate:!0}),ye([o,a,x,r],()=>{o.value&&!r.value&&m($,{scrollHeight:x.value,start:0,end:a.value.length-1,offset:void 0}),u.value&&(i.scrollTop=u.value.scrollTop)},{immediate:!0}),ye([r,o,()=>i.scrollTop,a,S,()=>e.height,x],()=>{if(!o.value||!r.value)return;let F=0,L,H,j;const Y=a.value.length,Q=a.value,U=i.scrollTop,{itemHeight:ee,height:X}=e,J=U+X;for(let Z=0;Z=U&&(L=Z,H=F),j===void 0&&K>J&&(j=Z),F=K}L===void 0&&(L=0,H=0,j=Math.ceil(X/ee)),j===void 0&&(j=Y-1),j=Math.min(j+1,Y),m($,{scrollHeight:F,start:L,end:j,offset:H})},{immediate:!0});const C=P(()=>$.scrollHeight-e.height);function O(F){let L=F;return Number.isNaN(C.value)||(L=Math.min(L,C.value)),L=Math.max(L,0),L}const w=P(()=>i.scrollTop<=0),I=P(()=>i.scrollTop>=C.value),T=r6(w,I);function _(F){v(F)}function E(F){var L;const{scrollTop:H}=F.currentTarget;H!==i.scrollTop&&v(H),(L=e.onScroll)===null||L===void 0||L.call(e,F)}const[A,R]=Vk(o,w,I,F=>{v(L=>L+F)});Kk(o,u,(F,L)=>T(F,L)?!1:(A({preventDefault(){},deltaY:F}),!0));function z(F){o.value&&F.preventDefault()}const M=()=>{u.value&&(u.value.removeEventListener("wheel",A,Yt?{passive:!1}:!1),u.value.removeEventListener("DOMMouseScroll",R),u.value.removeEventListener("MozMousePixelScroll",z))};Le(()=>{ot(()=>{u.value&&(M(),u.value.addEventListener("wheel",A,Yt?{passive:!1}:!1),u.value.addEventListener("DOMMouseScroll",R),u.value.addEventListener("MozMousePixelScroll",z))})}),Qe(()=>{M()});const N=Hk(u,a,y,e,f,b,v,()=>{var F;(F=d.value)===null||F===void 0||F.delayHidden()});n({scrollTo:N});const B=P(()=>{let F=null;return e.height&&(F=m({[e.fullHeight?"height":"maxHeight"]:e.height+"px"},Uk),o.value&&(F.overflowY="hidden",i.scrollMoving&&(F.pointerEvents="none"))),F});return ye([()=>$.start,()=>$.end,a],()=>{if(e.onVisibleChange){const F=a.value.slice($.start,$.end+1);e.onVisibleChange(F,a.value)}},{flush:"post"}),{state:i,mergedData:a,componentStyle:B,onFallbackScroll:E,onScrollBar:_,componentRef:u,useVirtual:o,calRes:$,collectHeight:b,setInstance:h,sharedConfig:g,scrollBarRef:d,fillerInnerRef:c,delayHideScrollBar:()=>{var F;(F=d.value)===null||F===void 0||F.delayHidden()}}},render(){const e=m(m({},this.$props),this.$attrs),{prefixCls:t="rc-virtual-list",height:n,itemHeight:o,fullHeight:r,data:i,itemKey:l,virtual:a,component:s="div",onScroll:u,children:c=this.$slots.default,style:d,class:f}=e,g=Gk(e,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),v=le(t,f),{scrollTop:h}=this.state,{scrollHeight:b,offset:y,start:S,end:$}=this.calRes,{componentStyle:x,onFallbackScroll:C,onScrollBar:O,useVirtual:w,collectHeight:I,sharedConfig:T,setInstance:_,mergedData:E,delayHideScrollBar:A}=this;return p("div",D({style:m(m({},d),{position:"relative"}),class:v},g),[p(s,{class:`${t}-holder`,style:x,ref:"componentRef",onScroll:C,onMouseenter:A},{default:()=>[p(Pp,{prefixCls:t,height:b,offset:y,onInnerResize:I,ref:"fillerInnerRef"},{default:()=>Yk(E,S,$,_,c,T)})]}),w&&p(Lk,{ref:"scrollBarRef",prefixCls:t,scrollTop:h,height:n,scrollHeight:b,count:E.length,onScroll:O,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}});function nb(e,t,n){const o=re(e());return ye(t,(r,i)=>{n?n(r,i)&&(o.value=e()):o.value=e()}),o}function qk(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}const l6=Symbol("SelectContextKey");function Zk(e){return Xe(l6,e)}function Qk(){return He(l6,{})}var Jk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r`${r.prefixCls}-item`),a=nb(()=>i.flattenOptions,[()=>r.open,()=>i.flattenOptions],C=>C[0]),s=uc(),u=C=>{C.preventDefault()},c=C=>{s.current&&s.current.scrollTo(typeof C=="number"?{index:C}:C)},d=function(C){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const w=a.value.length;for(let I=0;I1&&arguments[1]!==void 0?arguments[1]:!1;f.activeIndex=C;const w={source:O?"keyboard":"mouse"},I=a.value[C];if(!I){i.onActiveValue(null,-1,w);return}i.onActiveValue(I.value,C,w)};ye([()=>a.value.length,()=>r.searchValue],()=>{g(i.defaultActiveFirstOption!==!1?d(0):-1)},{immediate:!0});const v=C=>i.rawValues.has(C)&&r.mode!=="combobox";ye([()=>r.open,()=>r.searchValue],()=>{if(!r.multiple&&r.open&&i.rawValues.size===1){const C=Array.from(i.rawValues)[0],O=Je(a.value).findIndex(w=>{let{data:I}=w;return I[i.fieldNames.value]===C});O!==-1&&(g(O),ot(()=>{c(O)}))}r.open&&ot(()=>{var C;(C=s.current)===null||C===void 0||C.scrollTo(void 0)})},{immediate:!0,flush:"post"});const h=C=>{C!==void 0&&i.onSelect(C,{selected:!i.rawValues.has(C)}),r.multiple||r.toggleOpen(!1)},b=C=>typeof C.label=="function"?C.label():C.label;function y(C){const O=a.value[C];if(!O)return null;const w=O.data||{},{value:I}=w,{group:T}=O,_=_i(w,!0),E=b(O);return O?p("div",D(D({"aria-label":typeof E=="string"&&!T?E:null},_),{},{key:C,role:T?"presentation":"option",id:`${r.id}_list_${C}`,"aria-selected":v(I)}),[I]):null}return n({onKeydown:C=>{const{which:O,ctrlKey:w}=C;switch(O){case Pe.N:case Pe.P:case Pe.UP:case Pe.DOWN:{let I=0;if(O===Pe.UP?I=-1:O===Pe.DOWN?I=1:qk()&&w&&(O===Pe.N?I=1:O===Pe.P&&(I=-1)),I!==0){const T=d(f.activeIndex+I,I);c(T),g(T,!0)}break}case Pe.ENTER:{const I=a.value[f.activeIndex];I&&!I.data.disabled?h(I.value):h(void 0),r.open&&C.preventDefault();break}case Pe.ESC:r.toggleOpen(!1),r.open&&C.stopPropagation()}},onKeyup:()=>{},scrollTo:C=>{c(C)}}),()=>{const{id:C,notFoundContent:O,onPopupScroll:w}=r,{menuItemSelectedIcon:I,fieldNames:T,virtual:_,listHeight:E,listItemHeight:A}=i,R=o.option,{activeIndex:z}=f,M=Object.keys(T).map(N=>T[N]);return a.value.length===0?p("div",{role:"listbox",id:`${C}_list`,class:`${l.value}-empty`,onMousedown:u},[O]):p(Ve,null,[p("div",{role:"listbox",id:`${C}_list`,style:{height:0,width:0,overflow:"hidden"}},[y(z-1),y(z),y(z+1)]),p(i6,{itemKey:"key",ref:s,data:a.value,height:E,itemHeight:A,fullHeight:!1,onMousedown:u,onScroll:w,virtual:_},{default:(N,B)=>{var k;const{group:F,groupOption:L,data:H,value:j}=N,{key:Y}=H,Q=typeof N.label=="function"?N.label():N.label;if(F){const pe=(k=H.title)!==null&&k!==void 0?k:q$(Q)&&Q;return p("div",{class:le(l.value,`${l.value}-group`),title:pe},[R?R(H):Q!==void 0?Q:Y])}const{disabled:U,title:ee,children:X,style:J,class:Z,className:G}=H,q=Jk(H,["disabled","title","children","style","class","className"]),V=tt(q,M),K=v(j),te=`${l.value}-option`,ue=le(l.value,te,Z,G,{[`${te}-grouped`]:L,[`${te}-active`]:z===B&&!U,[`${te}-disabled`]:U,[`${te}-selected`]:K}),ie=b(N),ae=!I||typeof I=="function"||K,ce=typeof ie=="number"?ie:ie||j;let se=q$(ce)?ce.toString():void 0;return ee!==void 0&&(se=ee),p("div",D(D({},V),{},{"aria-selected":K,class:ue,title:se,onMousemove:pe=>{q.onMousemove&&q.onMousemove(pe),!(z===B||U)&&g(B)},onClick:pe=>{U||h(j),q.onClick&&q.onClick(pe)},style:J}),[p("div",{class:`${te}-content`},[R?R(H):ce]),Kt(I)||K,ae&&p(Cl,{class:`${l.value}-option-state`,customizeIcon:I,customizeIconProps:{isSelected:K}},{default:()=>[K?"✓":null]})])}})])}}});var tF=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r1&&arguments[1]!==void 0?arguments[1]:!1;return bt(e).map((o,r)=>{var i;if(!Kt(o)||!o.type)return null;const{type:{isSelectOptGroup:l},key:a,children:s,props:u}=o;if(t||!l)return nF(o);const c=s&&s.default?s.default():void 0,d=u?.label||((i=s.label)===null||i===void 0?void 0:i.call(s))||a;return m(m({key:`__RC_SELECT_GRP__${a===null?r:String(a)}__`},u),{label:d,options:a6(c||[])})}).filter(o=>o)}function oF(e,t,n){const o=ne(),r=ne(),i=ne(),l=ne([]);return ye([e,t],()=>{e.value?l.value=Je(e.value).slice():l.value=a6(t.value)},{immediate:!0,deep:!0}),Le(()=>{const a=l.value,s=new Map,u=new Map,c=n.value;function d(f){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(let v=0;v0&&arguments[0]!==void 0?arguments[0]:re("");const t=`rc_select_${iF()}`;return e.value||t}function s6(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function rh(e,t){return s6(e).join("").toUpperCase().includes(t)}const lF=((e,t,n,o,r)=>P(()=>{const i=n.value,l=r?.value,a=o?.value;if(!i||a===!1)return e.value;const{options:s,label:u,value:c}=t.value,d=[],f=typeof a=="function",g=i.toUpperCase(),v=f?a:(b,y)=>l?rh(y[l],g):y[s]?rh(y[u!=="children"?u:"label"],g):rh(y[c],g),h=f?b=>Nv(b):b=>b;return e.value.forEach(b=>{if(b[s]){if(v(i,h(b)))d.push(b);else{const S=b[s].filter($=>v(i,h($)));S.length&&d.push(m(m({},b),{[s]:S}))}return}v(i,h(b))&&d.push(b)}),d})),aF=((e,t)=>{const n=ne({values:new Map,options:new Map});return[P(()=>{const{values:i,options:l}=n.value,a=e.value.map(c=>{var d;return c.label===void 0?m(m({},c),{label:(d=i.get(c.value))===null||d===void 0?void 0:d.label}):c}),s=new Map,u=new Map;return a.forEach(c=>{s.set(c.value,c),u.set(c.value,t.value.get(c.value)||l.get(c.value))}),n.value.values=s,n.value.options=u,a}),i=>t.value.get(i)||n.value.options.get(i)]});function Pt(e,t){const{defaultValue:n,value:o=re()}=t||{};let r=typeof e=="function"?e():e;o.value!==void 0&&(r=St(o)),n!==void 0&&(r=typeof n=="function"?n():n);const i=re(r),l=re(r);Le(()=>{let s=o.value!==void 0?o.value:i.value;t.postState&&(s=t.postState(s)),l.value=s});function a(s){const u=l.value;i.value=s,Je(l.value)!==s&&t.onChange&&t.onChange(s,u)}return ye(o,()=>{i.value=o.value}),[l,a]}function ht(e){const t=typeof e=="function"?e():e,n=re(t);function o(r){n.value=r}return[n,o]}const sF=["inputValue"];function c6(){return m(m({},Op()),{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:W.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:W.any,defaultValue:W.any,onChange:Function,children:Array})}function cF(e){return!e||typeof e!="object"}const uF=oe({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:Ze(c6(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(e,t){let{expose:n,attrs:o,slots:r}=t;const i=ob(ze(e,"id")),l=P(()=>n6(e.mode)),a=P(()=>!!(!e.options&&e.children)),s=P(()=>e.filterOption===void 0&&e.mode==="combobox"?!1:e.filterOption),u=P(()=>CP(e.fieldNames,a.value)),[c,d]=Pt("",{value:P(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:Z=>Z||""}),f=oF(ze(e,"options"),ze(e,"children"),u),{valueOptions:g,labelOptions:v,options:h}=f,b=Z=>s6(Z).map(q=>{var V,K;let te,ue,ie,ae;cF(q)?te=q:(ie=q.key,ue=q.label,te=(V=q.value)!==null&&V!==void 0?V:ie);const ce=g.value.get(te);return ce&&(ue===void 0&&(ue=ce?.[e.optionLabelProp||u.value.label]),ie===void 0&&(ie=(K=ce?.key)!==null&&K!==void 0?K:te),ae=ce?.disabled),{label:ue,value:te,key:ie,disabled:ae,option:ce}}),[y,S]=Pt(e.defaultValue,{value:ze(e,"value")}),$=P(()=>{var Z;const G=b(y.value);return e.mode==="combobox"&&!(!((Z=G[0])===null||Z===void 0)&&Z.value)?[]:G}),[x,C]=aF($,g),O=P(()=>{if(!e.mode&&x.value.length===1){const Z=x.value[0];if(Z.value===null&&(Z.label===null||Z.label===void 0))return[]}return x.value.map(Z=>{var G;return m(m({},Z),{label:(G=typeof Z.label=="function"?Z.label():Z.label)!==null&&G!==void 0?G:Z.value})})}),w=P(()=>new Set(x.value.map(Z=>Z.value)));Le(()=>{var Z;if(e.mode==="combobox"){const G=(Z=x.value[0])===null||Z===void 0?void 0:Z.value;G!=null&&d(String(G))}},{flush:"post"});const I=(Z,G)=>{const q=G??Z;return{[u.value.value]:Z,[u.value.label]:q}},T=ne();Le(()=>{if(e.mode!=="tags"){T.value=h.value;return}const Z=h.value.slice(),G=q=>g.value.has(q);[...x.value].sort((q,V)=>q.value{const V=q.value;G(V)||Z.push(I(V,q.label))}),T.value=Z});const _=lF(T,u,c,s,ze(e,"optionFilterProp")),E=P(()=>e.mode!=="tags"||!c.value||_.value.some(Z=>Z[e.optionFilterProp||"value"]===c.value)?_.value:[I(c.value),..._.value]),A=P(()=>e.filterSort?[...E.value].sort((Z,G)=>e.filterSort(Z,G)):E.value),R=P(()=>R9(A.value,{fieldNames:u.value,childrenAsData:a.value})),z=Z=>{const G=b(Z);if(S(G),e.onChange&&(G.length!==x.value.length||G.some((q,V)=>{var K;return((K=x.value[V])===null||K===void 0?void 0:K.value)!==q?.value}))){const q=e.labelInValue?G.map(K=>m(m({},K),{originLabel:K.label,label:typeof K.label=="function"?K.label():K.label})):G.map(K=>K.value),V=G.map(K=>Nv(C(K.value)));e.onChange(l.value?q:q[0],l.value?V:V[0])}},[M,N]=ht(null),[B,k]=ht(0),F=P(()=>e.defaultActiveFirstOption!==void 0?e.defaultActiveFirstOption:e.mode!=="combobox"),L=function(Z,G){let{source:q="keyboard"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};k(G),e.backfill&&e.mode==="combobox"&&Z!==null&&q==="keyboard"&&N(String(Z))},H=(Z,G)=>{const q=()=>{var V;const K=C(Z),te=K?.[u.value.label];return[e.labelInValue?{label:typeof te=="function"?te():te,originLabel:te,value:Z,key:(V=K?.key)!==null&&V!==void 0?V:Z}:Z,Nv(K)]};if(G&&e.onSelect){const[V,K]=q();e.onSelect(V,K)}else if(!G&&e.onDeselect){const[V,K]=q();e.onDeselect(V,K)}},j=(Z,G)=>{let q;const V=l.value?G.selected:!0;V?q=l.value?[...x.value,Z]:[Z]:q=x.value.filter(K=>K.value!==Z),z(q),H(Z,V),e.mode==="combobox"?N(""):(!l.value||e.autoClearSearchValue)&&(d(""),N(""))},Y=(Z,G)=>{z(Z),(G.type==="remove"||G.type==="clear")&&G.values.forEach(q=>{H(q.value,!1)})},Q=(Z,G)=>{var q;if(d(Z),N(null),G.source==="submit"){const V=(Z||"").trim();if(V){const K=Array.from(new Set([...w.value,V]));z(K),H(V,!0),d("")}return}G.source!=="blur"&&(e.mode==="combobox"&&z(Z),(q=e.onSearch)===null||q===void 0||q.call(e,Z))},U=Z=>{let G=Z;e.mode!=="tags"&&(G=Z.map(V=>{const K=v.value.get(V);return K?.value}).filter(V=>V!==void 0));const q=Array.from(new Set([...w.value,...G]));z(q),q.forEach(V=>{H(V,!0)})},ee=P(()=>e.virtual!==!1&&e.dropdownMatchSelectWidth!==!1);Zk(Zd(m(m({},f),{flattenOptions:R,onActiveValue:L,defaultActiveFirstOption:F,onSelect:j,menuItemSelectedIcon:ze(e,"menuItemSelectedIcon"),rawValues:w,fieldNames:u,virtual:ee,listHeight:ze(e,"listHeight"),listItemHeight:ze(e,"listItemHeight"),childrenAsData:a})));const X=re();n({focus(){var Z;(Z=X.value)===null||Z===void 0||Z.focus()},blur(){var Z;(Z=X.value)===null||Z===void 0||Z.blur()},scrollTo(Z){var G;(G=X.value)===null||G===void 0||G.scrollTo(Z)}});const J=P(()=>tt(e,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"]));return()=>p(tb,D(D(D({},J.value),o),{},{id:i,prefixCls:e.prefixCls,ref:X,omitDomProps:sF,mode:e.mode,displayValues:O.value,onDisplayValuesChange:Y,searchValue:c.value,onSearch:Q,onSearchSplit:U,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:eF,emptyOptions:!R.value.length,activeValue:M.value,activeDescendantId:`${i}_list_${B.value}`}),r)}}),rb=()=>null;rb.isSelectOption=!0;rb.displayName="ASelectOption";const ib=()=>null;ib.isSelectOptGroup=!0;ib.displayName="ASelectOptGroup";var dF={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"},fF=Symbol("iconContext"),u6=function(){return He(fF,{prefixCls:re("anticon"),rootClassName:re(""),csp:re()})};function lb(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function pF(e,t){return e&&e.contains?e.contains(t):!1}var Q$="data-vc-order",gF="vc-icon-key",Kv=new Map;function d6(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):gF}function ab(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function hF(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function f6(e){return Array.from((Kv.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function p6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!lb())return null;var n=t.csp,o=t.prepend,r=document.createElement("style");r.setAttribute(Q$,hF(o)),n&&n.nonce&&(r.nonce=n.nonce),r.innerHTML=e;var i=ab(t),l=i.firstChild;if(o){if(o==="queue"){var a=f6(i).filter(function(s){return["prepend","prependQueue"].includes(s.getAttribute(Q$))});if(a.length)return i.insertBefore(r,a[a.length-1].nextSibling),r}i.insertBefore(r,l)}else i.appendChild(r);return r}function vF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ab(t);return f6(n).find(function(o){return o.getAttribute(d6(t))===e})}function mF(e,t){var n=Kv.get(e);if(!n||!pF(document,n)){var o=p6("",t),r=o.parentNode;Kv.set(e,r),e.removeChild(o)}}function bF(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=ab(n);mF(o,n);var r=vF(t,n);if(r)return n.csp&&n.csp.nonce&&r.nonce!==n.csp.nonce&&(r.nonce=n.csp.nonce),r.innerHTML!==e&&(r.innerHTML=e),r;var i=p6(e,n);return i.setAttribute(d6(n),t),i}function J$(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function PF(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,i;for(i=0;i=0)&&(n[r]=e[r]);return n}function ju(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,o=new Array(t);ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function WF(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,i;for(i=0;i=0)&&(n[r]=e[r]);return n}m6(PR.primary);var We=function(t,n){var o,r=oC({},t,n.attrs),i=r.class,l=r.icon,a=r.spin,s=r.rotate,u=r.tabindex,c=r.twoToneColor,d=r.onClick,f=VF(r,kF),g=u6(),v=g.prefixCls,h=g.rootClassName,b=(o={},vs(o,h.value,!!h.value),vs(o,v.value,!0),vs(o,"".concat(v.value,"-").concat(l.name),!!l.name),vs(o,"".concat(v.value,"-spin"),!!a||l.name==="loading"),o),y=u;y===void 0&&d&&(y=-1);var S=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,$=h6(c),x=FF($,2),C=x[0],O=x[1];return p("span",oC({role:"img","aria-label":l.name},f,{onClick:d,class:[b,i],tabindex:y}),[p(Ai,{icon:l,primaryColor:C,secondaryColor:O,style:S},null),p(BF,null,null)])};We.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]};We.displayName="AntdIcon";We.inheritAttrs=!1;We.getTwoToneColor=NF;We.setTwoToneColor=m6;function rC(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};const{loading:n,multiple:o,prefixCls:r,hasFeedback:i,feedbackIcon:l,showArrow:a}=e,s=e.suffixIcon||t.suffixIcon&&t.suffixIcon(),u=e.clearIcon||t.clearIcon&&t.clearIcon(),c=e.menuItemSelectedIcon||t.menuItemSelectedIcon&&t.menuItemSelectedIcon(),d=e.removeIcon||t.removeIcon&&t.removeIcon(),f=u??p(Dn,null,null),g=y=>p(Ve,null,[a!==!1&&y,i&&l]);let v=null;if(s!==void 0)v=g(s);else if(n)v=g(p(Wn,{spin:!0},null));else{const y=`${r}-suffix`;v=S=>{let{open:$,showSearch:x}=S;return g($&&x?p(Va,{class:y},null):p(Dl,{class:y},null))}}let h=null;c!==void 0?h=c:o?h=p(ja,null,null):h=null;let b=null;return d!==void 0?b=d:b=p(Rn,null,null),{clearIcon:f,suffixIcon:v,itemIcon:h,removeIcon:b}}function cb(e){const t=Symbol("contextKey");return{useProvide:(r,i)=>{const l=ct({});return Xe(t,l),Le(()=>{m(l,r,i||{})}),l},useInject:()=>He(t,e)||{}}}const Qd=Symbol("ContextProps"),Jd=Symbol("InternalContextProps"),nL=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P(()=>!0);const n=re(new Map),o=(i,l)=>{n.value.set(i,l),n.value=new Map(n.value)},r=i=>{n.value.delete(i),n.value=new Map(n.value)};ye([t,n],()=>{}),Xe(Qd,e),Xe(Jd,{addFormItemField:o,removeFormItemField:r})},Xv={id:P(()=>{}),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},Uv={addFormItemField:()=>{},removeFormItemField:()=>{}},Qt=()=>{const e=He(Jd,Uv),t=Symbol("FormItemFieldKey"),n=pn();return e.addFormItemField(t,n.type),Qe(()=>{e.removeFormItemField(t)}),Xe(Jd,Uv),Xe(Qd,Xv),He(Qd,Xv)},ef=oe({compatConfig:{MODE:3},name:"AFormItemRest",setup(e,t){let{slots:n}=t;return Xe(Jd,Uv),Xe(Qd,Xv),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),dn=cb({}),tf=oe({name:"NoFormStatus",setup(e,t){let{slots:n}=t;return dn.useProvide({}),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}});function Tn(e,t,n){return le({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Qo=(e,t)=>t||e,oL=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},rL=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"}}}}},b6=Ke("Space",e=>[rL(e),oL(e)]);var iL="[object Symbol]";function Ip(e){return typeof e=="symbol"||Yo(e)&&Mi(e)==iL}function ub(e,t){for(var n=-1,o=e==null?0:e.length,r=Array(o);++n0){if(++t>=$L)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function OL(e){return function(){return e}}var nf=(function(){try{var e=_l(Object,"defineProperty");return e({},"",{}),e}catch{}})(),PL=nf?function(e,t){return nf(e,"toString",{configurable:!0,enumerable:!1,value:OL(t),writable:!0})}:db,S6=wL(PL);function IL(e,t){for(var n=-1,o=e==null?0:e.length;++n-1}function x6(e,t,n){t=="__proto__"&&nf?nf(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var _L=Object.prototype,AL=_L.hasOwnProperty;function fb(e,t,n){var o=e[t];(!(AL.call(e,t)&&j0(o,n))||n===void 0&&!(t in e))&&x6(e,t,n)}function Ec(e,t,n,o){var r=!n;n||(n={});for(var i=-1,l=t.length;++ir?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++o=t||w<0||d&&I>=i}function y(){var O=ih();if(b(O))return S(O);a=setTimeout(y,h(O))}function S(O){return a=void 0,f&&o?g(O):(o=r=void 0,l)}function $(){a!==void 0&&clearTimeout(a),u=0,o=s=r=a=void 0}function x(){return a===void 0?l:S(ih())}function C(){var O=ih(),w=b(O);if(o=arguments,r=this,s=O,w){if(a===void 0)return v(s);if(d)return clearTimeout(a),a=setTimeout(y,t),g(s)}return a===void 0&&(a=setTimeout(y,t)),l}return C.cancel=$,C.flush=x,C}function VH(e){return Yo(e)&&La(e)}function WH(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function KH(e){return function(t,n,o){var r=Object(t);if(!La(t)){var i=yb(n);t=za(t),n=function(a){return i(r[a],a,r)}}var l=e(t,n,o);return l>-1?r[i?t[l]:l]:void 0}}var GH=Math.max;function XH(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var r=n==null?0:vL(n);return r<0&&(r=GH(o+r,0)),$6(e,yb(t),r)}var UH=KH(XH);function YH(e){for(var t=-1,n=e==null?0:e.length,o={};++t=120&&c.length>=120?new _a(l&&c):void 0}c=e[0];var d=-1,f=a[0];e:for(;++d1),i}),Ec(e,E6(e),n),o&&(n=Ns(n,dj|fj|pj,uj));for(var r=t.length;r--;)cj(n,t[r]);return n});function hj(e,t,n,o){if(!Uo(e))return e;t=Wa(t,e);for(var r=-1,i=t.length,l=i-1,a=e;a!=null&&++r=$j){var u=Sj(e);if(u)return V0(u);l=!1,r=Xd,s=new _a}else s=a;e:for(;++o({compactSize:String,compactDirection:W.oneOf(Sn("horizontal","vertical")).def("horizontal"),isFirstItem:$e(),isLastItem:$e()}),Ep=cb(null),Ri=(e,t)=>{const n=Ep.useInject(),o=P(()=>{if(!n||B6(n))return"";const{compactDirection:r,isFirstItem:i,isLastItem:l}=n,a=r==="vertical"?"-vertical-":"-";return le({[`${e.value}-compact${a}item`]:!0,[`${e.value}-compact${a}first-item`]:i,[`${e.value}-compact${a}last-item`]:l,[`${e.value}-compact${a}item-rtl`]:t.value==="rtl"})});return{compactSize:P(()=>n?.compactSize),compactDirection:P(()=>n?.compactDirection),compactItemClassnames:o}},dc=oe({name:"NoCompactStyle",setup(e,t){let{slots:n}=t;return Ep.useProvide(null),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),wj=()=>({prefixCls:String,size:{type:String},direction:W.oneOf(Sn("horizontal","vertical")).def("horizontal"),align:W.oneOf(Sn("start","end","center","baseline")),block:{type:Boolean,default:void 0}}),Oj=oe({name:"CompactItem",props:xj(),setup(e,t){let{slots:n}=t;return Ep.useProvide(e),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),of=oe({name:"ASpaceCompact",inheritAttrs:!1,props:wj(),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,direction:i}=Te("space-compact",e),l=Ep.useInject(),[a,s]=b6(r),u=P(()=>le(r.value,s.value,{[`${r.value}-rtl`]:i.value==="rtl",[`${r.value}-block`]:e.block,[`${r.value}-vertical`]:e.direction==="vertical"}));return()=>{var c;const d=bt(((c=o.default)===null||c===void 0?void 0:c.call(o))||[]);return d.length===0?null:a(p("div",D(D({},n),{},{class:[u.value,n.class]}),[d.map((f,g)=>{var v;const h=f&&f.key||`${r.value}-item-${g}`,b=!l||B6(l);return p(Oj,{key:h,compactSize:(v=e.size)!==null&&v!==void 0?v:"middle",compactDirection:e.direction,isFirstItem:g===0&&(b||l?.isFirstItem),isLastItem:g===d.length-1&&(b||l?.isLastItem)},{default:()=>[f]})})]))}}}),Pj=e=>({animationDuration:e,animationFillMode:"both"}),Ij=e=>({animationDuration:e,animationFillMode:"both"}),Mc=function(e,t,n,o){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zF(e,t){if(e){if(typeof e=="string")return nC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nC(e,t)}}function nC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=0)&&Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function WF(e,t){if(e==null)return{};var n={},o=Object.keys(e),r,i;for(i=0;i=0)&&(n[r]=e[r]);return n}m6(PR.primary);var We=function(t,n){var o,r=oC({},t,n.attrs),i=r.class,l=r.icon,a=r.spin,s=r.rotate,u=r.tabindex,c=r.twoToneColor,d=r.onClick,f=VF(r,kF),g=u6(),v=g.prefixCls,h=g.rootClassName,b=(o={},vs(o,h.value,!!h.value),vs(o,v.value,!0),vs(o,"".concat(v.value,"-").concat(l.name),!!l.name),vs(o,"".concat(v.value,"-spin"),!!a||l.name==="loading"),o),y=u;y===void 0&&d&&(y=-1);var S=s?{msTransform:"rotate(".concat(s,"deg)"),transform:"rotate(".concat(s,"deg)")}:void 0,$=h6(c),x=FF($,2),C=x[0],O=x[1];return p("span",oC({role:"img","aria-label":l.name},f,{onClick:d,class:[b,i],tabindex:y}),[p(Ai,{icon:l,primaryColor:C,secondaryColor:O,style:S},null),p(BF,null,null)])};We.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]};We.displayName="AntdIcon";We.inheritAttrs=!1;We.getTwoToneColor=NF;We.setTwoToneColor=m6;function rC(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};const{loading:n,multiple:o,prefixCls:r,hasFeedback:i,feedbackIcon:l,showArrow:a}=e,s=e.suffixIcon||t.suffixIcon&&t.suffixIcon(),u=e.clearIcon||t.clearIcon&&t.clearIcon(),c=e.menuItemSelectedIcon||t.menuItemSelectedIcon&&t.menuItemSelectedIcon(),d=e.removeIcon||t.removeIcon&&t.removeIcon(),f=u??p(Dn,null,null),g=y=>p(Ve,null,[a!==!1&&y,i&&l]);let v=null;if(s!==void 0)v=g(s);else if(n)v=g(p(Wn,{spin:!0},null));else{const y=`${r}-suffix`;v=S=>{let{open:$,showSearch:x}=S;return g($&&x?p(Va,{class:y},null):p(Dl,{class:y},null))}}let h=null;c!==void 0?h=c:o?h=p(ja,null,null):h=null;let b=null;return d!==void 0?b=d:b=p(Rn,null,null),{clearIcon:f,suffixIcon:v,itemIcon:h,removeIcon:b}}function cb(e){const t=Symbol("contextKey");return{useProvide:(r,i)=>{const l=ct({});return Xe(t,l),Le(()=>{m(l,r,i||{})}),l},useInject:()=>He(t,e)||{}}}const Qd=Symbol("ContextProps"),Jd=Symbol("InternalContextProps"),nL=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P(()=>!0);const n=re(new Map),o=(i,l)=>{n.value.set(i,l),n.value=new Map(n.value)},r=i=>{n.value.delete(i),n.value=new Map(n.value)};ye([t,n],()=>{}),Xe(Qd,e),Xe(Jd,{addFormItemField:o,removeFormItemField:r})},Xv={id:P(()=>{}),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},Uv={addFormItemField:()=>{},removeFormItemField:()=>{}},Qt=()=>{const e=He(Jd,Uv),t=Symbol("FormItemFieldKey"),n=pn();return e.addFormItemField(t,n.type),Qe(()=>{e.removeFormItemField(t)}),Xe(Jd,Uv),Xe(Qd,Xv),He(Qd,Xv)},ef=oe({compatConfig:{MODE:3},name:"AFormItemRest",setup(e,t){let{slots:n}=t;return Xe(Jd,Uv),Xe(Qd,Xv),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),dn=cb({}),tf=oe({name:"NoFormStatus",setup(e,t){let{slots:n}=t;return dn.useProvide({}),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}});function Tn(e,t,n){return le({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const Qo=(e,t)=>t||e,oL=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},rL=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"}}}}},b6=Ke("Space",e=>[rL(e),oL(e)]);var iL="[object Symbol]";function Ip(e){return typeof e=="symbol"||Yo(e)&&Mi(e)==iL}function ub(e,t){for(var n=-1,o=e==null?0:e.length,r=Array(o);++n0){if(++t>=$L)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function OL(e){return function(){return e}}var nf=(function(){try{var e=_l(Object,"defineProperty");return e({},"",{}),e}catch{}})(),PL=nf?function(e,t){return nf(e,"toString",{configurable:!0,enumerable:!1,value:OL(t),writable:!0})}:db,S6=wL(PL);function IL(e,t){for(var n=-1,o=e==null?0:e.length;++n-1}function x6(e,t,n){t=="__proto__"&&nf?nf(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var _L=Object.prototype,AL=_L.hasOwnProperty;function fb(e,t,n){var o=e[t];(!(AL.call(e,t)&&j0(o,n))||n===void 0&&!(t in e))&&x6(e,t,n)}function Ec(e,t,n,o){var r=!n;n||(n={});for(var i=-1,l=t.length;++ir?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++o=t||w<0||d&&I>=i}function y(){var O=ih();if(b(O))return S(O);a=setTimeout(y,h(O))}function S(O){return a=void 0,f&&o?g(O):(o=r=void 0,l)}function $(){a!==void 0&&clearTimeout(a),u=0,o=s=r=a=void 0}function x(){return a===void 0?l:S(ih())}function C(){var O=ih(),w=b(O);if(o=arguments,r=this,s=O,w){if(a===void 0)return v(s);if(d)return clearTimeout(a),a=setTimeout(y,t),g(s)}return a===void 0&&(a=setTimeout(y,t)),l}return C.cancel=$,C.flush=x,C}function VH(e){return Yo(e)&&La(e)}function WH(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function KH(e){return function(t,n,o){var r=Object(t);if(!La(t)){var i=yb(n);t=za(t),n=function(a){return i(r[a],a,r)}}var l=e(t,n,o);return l>-1?r[i?t[l]:l]:void 0}}var GH=Math.max;function XH(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var r=n==null?0:vL(n);return r<0&&(r=GH(o+r,0)),$6(e,yb(t),r)}var UH=KH(XH);function YH(e){for(var t=-1,n=e==null?0:e.length,o={};++t=120&&c.length>=120?new _a(l&&c):void 0}c=e[0];var d=-1,f=a[0];e:for(;++d1),i}),Ec(e,E6(e),n),o&&(n=Ns(n,dj|fj|pj,uj));for(var r=t.length;r--;)cj(n,t[r]);return n});function hj(e,t,n,o){if(!Uo(e))return e;t=Wa(t,e);for(var r=-1,i=t.length,l=i-1,a=e;a!=null&&++r=$j){var u=Sj(e);if(u)return V0(u);l=!1,r=Xd,s=new _a}else s=a;e:for(;++o({compactSize:String,compactDirection:W.oneOf(Sn("horizontal","vertical")).def("horizontal"),isFirstItem:$e(),isLastItem:$e()}),Ep=cb(null),Ri=(e,t)=>{const n=Ep.useInject(),o=P(()=>{if(!n||B6(n))return"";const{compactDirection:r,isFirstItem:i,isLastItem:l}=n,a=r==="vertical"?"-vertical-":"-";return le({[`${e.value}-compact${a}item`]:!0,[`${e.value}-compact${a}first-item`]:i,[`${e.value}-compact${a}last-item`]:l,[`${e.value}-compact${a}item-rtl`]:t.value==="rtl"})});return{compactSize:P(()=>n?.compactSize),compactDirection:P(()=>n?.compactDirection),compactItemClassnames:o}},dc=oe({name:"NoCompactStyle",setup(e,t){let{slots:n}=t;return Ep.useProvide(null),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),wj=()=>({prefixCls:String,size:{type:String},direction:W.oneOf(Sn("horizontal","vertical")).def("horizontal"),align:W.oneOf(Sn("start","end","center","baseline")),block:{type:Boolean,default:void 0}}),Oj=oe({name:"CompactItem",props:xj(),setup(e,t){let{slots:n}=t;return Ep.useProvide(e),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),of=oe({name:"ASpaceCompact",inheritAttrs:!1,props:wj(),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,direction:i}=Te("space-compact",e),l=Ep.useInject(),[a,s]=b6(r),u=P(()=>le(r.value,s.value,{[`${r.value}-rtl`]:i.value==="rtl",[`${r.value}-block`]:e.block,[`${r.value}-vertical`]:e.direction==="vertical"}));return()=>{var c;const d=bt(((c=o.default)===null||c===void 0?void 0:c.call(o))||[]);return d.length===0?null:a(p("div",D(D({},n),{},{class:[u.value,n.class]}),[d.map((f,g)=>{var v;const h=f&&f.key||`${r.value}-item-${g}`,b=!l||B6(l);return p(Oj,{key:h,compactSize:(v=e.size)!==null&&v!==void 0?v:"middle",compactDirection:e.direction,isFirstItem:g===0&&(b||l?.isFirstItem),isLastItem:g===d.length-1&&(b||l?.isLastItem)},{default:()=>[f]})})]))}}}),Pj=e=>({animationDuration:e,animationFillMode:"both"}),Ij=e=>({animationDuration:e,animationFillMode:"both"}),Mc=function(e,t,n,o){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` ${i}${e}-enter, ${i}${e}-appear `]:m(m({},Pj(o)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:m(m({},Ij(o)),{animationPlayState:"paused"}),[` @@ -158,9 +158,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `]:{paddingInlineEnd:l},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${o}px`,[`${n}-selection-search-input`]:{height:i},"&:after":{lineHeight:`${i}px`}}},[`&${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 ${o}px`,"&:after":{display:"none"}}}}}}}function nV(e){const{componentCls:t}=e,n=e.controlPaddingHorizontalSM-e.lineWidth;return[sh(e),sh(ke(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 ${n}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:n+e.fontSize*1.5},[` &${t}-show-arrow ${t}-selection-item, &${t}-show-arrow ${t}-selection-placeholder - `]:{paddingInlineEnd:e.fontSize*1.5}}}},sh(ke(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}function oV(e,t,n){const{focusElCls:o,focus:r,borderElCls:i}=n,l=i?"> *":"",a=["hover",r?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${l}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":m(m({[a]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}function rV(e,t,n){const{borderElCls:o}=n,r=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Xa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:m(m({},oV(e,o,t)),rV(n,o,t))}}const iV=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},ch=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:o,borderHoverColor:r,outlineColor:i,antCls:l}=t,a=n?{[`${o}-selector`]:{borderColor:r}}:{};return{[e]:{[`&:not(${o}-disabled):not(${o}-customize-input):not(${l}-pagination-size-changer)`]:m(m({},a),{[`${o}-focused& ${o}-selector`]:{borderColor:r,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,borderInlineEndWidth:`${t.controlLineWidth}px !important`,outline:0},[`&:hover ${o}-selector`]:{borderColor:r,borderInlineEndWidth:`${t.controlLineWidth}px !important`}})}}},lV=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},aV=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:o}=e;return{[t]:m(m({},Ue(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:m(m({},iV(e)),lV(e)),[`${t}-selection-item`]:m({flex:1,fontWeight:"normal"},Gt),[`${t}-selection-placeholder`]:m(m({},Gt),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:m(m({},Tl()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},sV=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},aV(e),nV(e),tV(e),eV(e),{[`${t}-rtl`]:{direction:"rtl"}},ch(t,ke(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),ch(`${t}-status-error`,ke(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),ch(`${t}-status-warning`,ke(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),Xa(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},xb=Ke("Select",(e,t)=>{let{rootPrefixCls:n}=t;const o=ke(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[sV(o)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),Dp=()=>m(m({},tt(c6(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{value:Fe([Array,Object,String,Number]),defaultValue:Fe([Array,Object,String,Number]),notFoundContent:W.any,suffixIcon:W.any,itemIcon:W.any,size:Ne(),mode:Ne(),bordered:$e(!0),transitionName:String,choiceTransitionName:Ne(""),popupClassName:String,dropdownClassName:String,placement:Ne(),status:Ne(),"onUpdate:value":ve()}),IC="SECRET_COMBOBOX_MODE_DO_NOT_USE",gn=oe({compatConfig:{MODE:3},name:"ASelect",Option:rb,OptGroup:ib,inheritAttrs:!1,props:Ze(Dp(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:IC,slots:Object,setup(e,t){let{attrs:n,emit:o,slots:r,expose:i}=t;const l=re(),a=Qt(),s=dn.useInject(),u=P(()=>Qo(s.status,e.status)),c=()=>{var H;(H=l.value)===null||H===void 0||H.focus()},d=()=>{var H;(H=l.value)===null||H===void 0||H.blur()},f=H=>{var j;(j=l.value)===null||j===void 0||j.scrollTo(H)},g=P(()=>{const{mode:H}=e;if(H!=="combobox")return H===IC?"combobox":H}),{prefixCls:v,direction:h,renderEmpty:b,size:y,getPrefixCls:S,getPopupContainer:$,disabled:x,select:C}=Te("select",e),{compactSize:O,compactItemClassnames:w}=Ri(v,h),I=P(()=>O.value||y.value),T=Jn(),M=P(()=>{var H;return(H=x.value)!==null&&H!==void 0?H:T.value}),[E,A]=xb(v),R=P(()=>S()),z=P(()=>e.placement!==void 0?e.placement:h.value==="rtl"?"bottomRight":"bottomLeft"),_=P(()=>_n(R.value,Z0(z.value),e.transitionName)),N=P(()=>le({[`${v.value}-lg`]:I.value==="large",[`${v.value}-sm`]:I.value==="small",[`${v.value}-rtl`]:h.value==="rtl",[`${v.value}-borderless`]:!e.bordered,[`${v.value}-in-form-item`]:s.isFormItemInput},Tn(v.value,u.value,s.hasFeedback),w.value,A.value)),B=function(){for(var H=arguments.length,j=new Array(H),Y=0;Y{o("blur",H),a.onFieldBlur()};i({blur:d,focus:c,scrollTo:f});const F=P(()=>g.value==="multiple"||g.value==="tags"),L=P(()=>e.showArrow!==void 0?e.showArrow:e.loading||!(F.value||g.value==="combobox"));return()=>{var H,j,Y,Q;const{notFoundContent:U,listHeight:ee=256,listItemHeight:X=24,popupClassName:J,dropdownClassName:Z,virtual:G,dropdownMatchSelectWidth:q,id:V=a.id.value,placeholder:K=(H=r.placeholder)===null||H===void 0?void 0:H.call(r),showArrow:te}=e,{hasFeedback:ue,feedbackIcon:ie}=s;let ae;U!==void 0?ae=U:r.notFoundContent?ae=r.notFoundContent():g.value==="combobox"?ae=null:ae=b?.("Select")||p(M0,{componentName:"Select"},null);const{suffixIcon:ce,itemIcon:se,removeIcon:pe,clearIcon:ge}=sb(m(m({},e),{multiple:F.value,prefixCls:v.value,hasFeedback:ue,feedbackIcon:ie,showArrow:L.value}),r),he=tt(e,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered","status"]),me=le(J||Z,{[`${v.value}-dropdown-${h.value}`]:h.value==="rtl"},A.value);return E(p(uF,D(D(D({ref:l,virtual:G,dropdownMatchSelectWidth:q},he),n),{},{showSearch:(j=e.showSearch)!==null&&j!==void 0?j:(Y=C?.value)===null||Y===void 0?void 0:Y.showSearch,placeholder:K,listHeight:ee,listItemHeight:X,mode:g.value,prefixCls:v.value,direction:h.value,inputIcon:ce,menuItemSelectedIcon:se,removeIcon:pe,clearIcon:ge,notFoundContent:ae,class:[N.value,n.class],getPopupContainer:$?.value,dropdownClassName:me,onChange:B,onBlur:k,id:V,dropdownRender:he.dropdownRender||r.dropdownRender,transitionName:_.value,children:(Q=r.default)===null||Q===void 0?void 0:Q.call(r),tagRender:e.tagRender||r.tagRender,optionLabelRender:r.optionLabel,maxTagPlaceholder:e.maxTagPlaceholder||r.maxTagPlaceholder,showArrow:ue||te,disabled:M.value}),{option:r.option}))}}});gn.install=function(e){return e.component(gn.name,gn),e.component(gn.Option.displayName,gn.Option),e.component(gn.OptGroup.displayName,gn.OptGroup),e};const cV=gn.Option,uV=gn.OptGroup,$i=()=>null;$i.isSelectOption=!0;$i.displayName="AAutoCompleteOption";const ga=()=>null;ga.isSelectOptGroup=!0;ga.displayName="AAutoCompleteOptGroup";function dV(e){var t,n;return((t=e?.type)===null||t===void 0?void 0:t.isSelectOption)||((n=e?.type)===null||n===void 0?void 0:n.isSelectOptGroup)}const fV=()=>m(m({},tt(Dp(),["loading","mode","optionLabelProp","labelInValue"])),{dataSource:Array,dropdownMenuStyle:{type:Object,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},prefixCls:String,showSearch:{type:Boolean,default:void 0},transitionName:String,choiceTransitionName:{type:String,default:"zoom"},autofocus:{type:Boolean,default:void 0},backfill:{type:Boolean,default:void 0},filterOption:{type:[Boolean,Function],default:!1},defaultActiveFirstOption:{type:Boolean,default:!0},status:String}),pV=$i,gV=ga,uh=oe({compatConfig:{MODE:3},name:"AAutoComplete",inheritAttrs:!1,props:fV(),slots:Object,setup(e,t){let{slots:n,attrs:o,expose:r}=t;fo(!e.dropdownClassName);const i=re(),l=()=>{var c;const d=bt((c=n.default)===null||c===void 0?void 0:c.call(n));return d.length?d[0]:void 0};r({focus:()=>{var c;(c=i.value)===null||c===void 0||c.focus()},blur:()=>{var c;(c=i.value)===null||c===void 0||c.blur()}});const{prefixCls:u}=Te("select",e);return()=>{var c,d,f;const{size:g,dataSource:v,notFoundContent:h=(c=n.notFoundContent)===null||c===void 0?void 0:c.call(n)}=e;let b;const{class:y}=o,S={[y]:!!y,[`${u.value}-lg`]:g==="large",[`${u.value}-sm`]:g==="small",[`${u.value}-show-search`]:!0,[`${u.value}-auto-complete`]:!0};if(e.options===void 0){const x=((d=n.dataSource)===null||d===void 0?void 0:d.call(n))||((f=n.options)===null||f===void 0?void 0:f.call(n))||[];x.length&&dV(x[0])?b=x:b=v?v.map(C=>{if(Kt(C))return C;switch(typeof C){case"string":return p($i,{key:C,value:C},{default:()=>[C]});case"object":return p($i,{key:C.value,value:C.value},{default:()=>[C.text]});default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[]}const $=tt(m(m(m({},e),o),{mode:gn.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:l,notFoundContent:h,class:S,popupClassName:e.popupClassName||e.dropdownClassName,ref:i}),["dataSource","loading"]);return p(gn,$,D({default:()=>[b]},tt(n,["default","dataSource","options"])))}}}),hV=m(uh,{Option:$i,OptGroup:ga,install(e){return e.component(uh.name,uh),e.component($i.displayName,$i),e.component(ga.displayName,ga),e}});var vV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};function TC(e){for(var t=1;t({backgroundColor:e,border:`${o.lineWidth}px ${o.lineType} ${t}`,[`${r}-icon`]:{color:n}}),MV=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:o,marginSM:r,fontSize:i,fontSizeLG:l,lineHeight:a,borderRadiusLG:s,motionEaseInOutCirc:u,alertIconSizeLG:c,colorText:d,paddingContentVerticalSM:f,alertPaddingHorizontal:g,paddingMD:v,paddingContentHorizontalLG:h}=e;return{[t]:m(m({},Ue(e)),{position:"relative",display:"flex",alignItems:"center",padding:`${f}px ${g}px`,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:a},"&-message":{color:d},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${u}, opacity ${n} ${u}, + `]:{paddingInlineEnd:e.fontSize*1.5}}}},sh(ke(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}function oV(e,t,n){const{focusElCls:o,focus:r,borderElCls:i}=n,l=i?"> *":"",a=["hover",r?"focus":null,"active"].filter(Boolean).map(s=>`&:${s} ${l}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":m(m({[a]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}function rV(e,t,n){const{borderElCls:o}=n,r=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Xa(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:m(m({},oV(e,o,t)),rV(n,o,t))}}const iV=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},ch=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:o,borderHoverColor:r,outlineColor:i,antCls:l}=t,a=n?{[`${o}-selector`]:{borderColor:r}}:{};return{[e]:{[`&:not(${o}-disabled):not(${o}-customize-input):not(${l}-pagination-size-changer)`]:m(m({},a),{[`${o}-focused& ${o}-selector`]:{borderColor:r,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${i}`,borderInlineEndWidth:`${t.controlLineWidth}px !important`,outline:0},[`&:hover ${o}-selector`]:{borderColor:r,borderInlineEndWidth:`${t.controlLineWidth}px !important`}})}}},lV=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},aV=e=>{const{componentCls:t,inputPaddingHorizontalBase:n,iconCls:o}=e;return{[t]:m(m({},Ue(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:m(m({},iV(e)),lV(e)),[`${t}-selection-item`]:m({flex:1,fontWeight:"normal"},Gt),[`${t}-selection-placeholder`]:m(m({},Gt),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:m(m({},Tl()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:n+e.fontSize+e.paddingXXS}}}},sV=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},aV(e),nV(e),tV(e),eV(e),{[`${t}-rtl`]:{direction:"rtl"}},ch(t,ke(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),ch(`${t}-status-error`,ke(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),ch(`${t}-status-warning`,ke(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),Xa(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},xb=Ke("Select",(e,t)=>{let{rootPrefixCls:n}=t;const o=ke(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.paddingSM-1});return[sV(o)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),Dp=()=>m(m({},tt(c6(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{value:Fe([Array,Object,String,Number]),defaultValue:Fe([Array,Object,String,Number]),notFoundContent:W.any,suffixIcon:W.any,itemIcon:W.any,size:Ne(),mode:Ne(),bordered:$e(!0),transitionName:String,choiceTransitionName:Ne(""),popupClassName:String,dropdownClassName:String,placement:Ne(),status:Ne(),"onUpdate:value":ve()}),IC="SECRET_COMBOBOX_MODE_DO_NOT_USE",gn=oe({compatConfig:{MODE:3},name:"ASelect",Option:rb,OptGroup:ib,inheritAttrs:!1,props:Ze(Dp(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:IC,slots:Object,setup(e,t){let{attrs:n,emit:o,slots:r,expose:i}=t;const l=re(),a=Qt(),s=dn.useInject(),u=P(()=>Qo(s.status,e.status)),c=()=>{var H;(H=l.value)===null||H===void 0||H.focus()},d=()=>{var H;(H=l.value)===null||H===void 0||H.blur()},f=H=>{var j;(j=l.value)===null||j===void 0||j.scrollTo(H)},g=P(()=>{const{mode:H}=e;if(H!=="combobox")return H===IC?"combobox":H}),{prefixCls:v,direction:h,renderEmpty:b,size:y,getPrefixCls:S,getPopupContainer:$,disabled:x,select:C}=Te("select",e),{compactSize:O,compactItemClassnames:w}=Ri(v,h),I=P(()=>O.value||y.value),T=Jn(),_=P(()=>{var H;return(H=x.value)!==null&&H!==void 0?H:T.value}),[E,A]=xb(v),R=P(()=>S()),z=P(()=>e.placement!==void 0?e.placement:h.value==="rtl"?"bottomRight":"bottomLeft"),M=P(()=>_n(R.value,Z0(z.value),e.transitionName)),N=P(()=>le({[`${v.value}-lg`]:I.value==="large",[`${v.value}-sm`]:I.value==="small",[`${v.value}-rtl`]:h.value==="rtl",[`${v.value}-borderless`]:!e.bordered,[`${v.value}-in-form-item`]:s.isFormItemInput},Tn(v.value,u.value,s.hasFeedback),w.value,A.value)),B=function(){for(var H=arguments.length,j=new Array(H),Y=0;Y{o("blur",H),a.onFieldBlur()};i({blur:d,focus:c,scrollTo:f});const F=P(()=>g.value==="multiple"||g.value==="tags"),L=P(()=>e.showArrow!==void 0?e.showArrow:e.loading||!(F.value||g.value==="combobox"));return()=>{var H,j,Y,Q;const{notFoundContent:U,listHeight:ee=256,listItemHeight:X=24,popupClassName:J,dropdownClassName:Z,virtual:G,dropdownMatchSelectWidth:q,id:V=a.id.value,placeholder:K=(H=r.placeholder)===null||H===void 0?void 0:H.call(r),showArrow:te}=e,{hasFeedback:ue,feedbackIcon:ie}=s;let ae;U!==void 0?ae=U:r.notFoundContent?ae=r.notFoundContent():g.value==="combobox"?ae=null:ae=b?.("Select")||p(M0,{componentName:"Select"},null);const{suffixIcon:ce,itemIcon:se,removeIcon:pe,clearIcon:ge}=sb(m(m({},e),{multiple:F.value,prefixCls:v.value,hasFeedback:ue,feedbackIcon:ie,showArrow:L.value}),r),he=tt(e,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered","status"]),me=le(J||Z,{[`${v.value}-dropdown-${h.value}`]:h.value==="rtl"},A.value);return E(p(uF,D(D(D({ref:l,virtual:G,dropdownMatchSelectWidth:q},he),n),{},{showSearch:(j=e.showSearch)!==null&&j!==void 0?j:(Y=C?.value)===null||Y===void 0?void 0:Y.showSearch,placeholder:K,listHeight:ee,listItemHeight:X,mode:g.value,prefixCls:v.value,direction:h.value,inputIcon:ce,menuItemSelectedIcon:se,removeIcon:pe,clearIcon:ge,notFoundContent:ae,class:[N.value,n.class],getPopupContainer:$?.value,dropdownClassName:me,onChange:B,onBlur:k,id:V,dropdownRender:he.dropdownRender||r.dropdownRender,transitionName:M.value,children:(Q=r.default)===null||Q===void 0?void 0:Q.call(r),tagRender:e.tagRender||r.tagRender,optionLabelRender:r.optionLabel,maxTagPlaceholder:e.maxTagPlaceholder||r.maxTagPlaceholder,showArrow:ue||te,disabled:_.value}),{option:r.option}))}}});gn.install=function(e){return e.component(gn.name,gn),e.component(gn.Option.displayName,gn.Option),e.component(gn.OptGroup.displayName,gn.OptGroup),e};const cV=gn.Option,uV=gn.OptGroup,$i=()=>null;$i.isSelectOption=!0;$i.displayName="AAutoCompleteOption";const ga=()=>null;ga.isSelectOptGroup=!0;ga.displayName="AAutoCompleteOptGroup";function dV(e){var t,n;return((t=e?.type)===null||t===void 0?void 0:t.isSelectOption)||((n=e?.type)===null||n===void 0?void 0:n.isSelectOptGroup)}const fV=()=>m(m({},tt(Dp(),["loading","mode","optionLabelProp","labelInValue"])),{dataSource:Array,dropdownMenuStyle:{type:Object,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},prefixCls:String,showSearch:{type:Boolean,default:void 0},transitionName:String,choiceTransitionName:{type:String,default:"zoom"},autofocus:{type:Boolean,default:void 0},backfill:{type:Boolean,default:void 0},filterOption:{type:[Boolean,Function],default:!1},defaultActiveFirstOption:{type:Boolean,default:!0},status:String}),pV=$i,gV=ga,uh=oe({compatConfig:{MODE:3},name:"AAutoComplete",inheritAttrs:!1,props:fV(),slots:Object,setup(e,t){let{slots:n,attrs:o,expose:r}=t;fo(!e.dropdownClassName);const i=re(),l=()=>{var c;const d=bt((c=n.default)===null||c===void 0?void 0:c.call(n));return d.length?d[0]:void 0};r({focus:()=>{var c;(c=i.value)===null||c===void 0||c.focus()},blur:()=>{var c;(c=i.value)===null||c===void 0||c.blur()}});const{prefixCls:u}=Te("select",e);return()=>{var c,d,f;const{size:g,dataSource:v,notFoundContent:h=(c=n.notFoundContent)===null||c===void 0?void 0:c.call(n)}=e;let b;const{class:y}=o,S={[y]:!!y,[`${u.value}-lg`]:g==="large",[`${u.value}-sm`]:g==="small",[`${u.value}-show-search`]:!0,[`${u.value}-auto-complete`]:!0};if(e.options===void 0){const x=((d=n.dataSource)===null||d===void 0?void 0:d.call(n))||((f=n.options)===null||f===void 0?void 0:f.call(n))||[];x.length&&dV(x[0])?b=x:b=v?v.map(C=>{if(Kt(C))return C;switch(typeof C){case"string":return p($i,{key:C,value:C},{default:()=>[C]});case"object":return p($i,{key:C.value,value:C.value},{default:()=>[C.text]});default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[]}const $=tt(m(m(m({},e),o),{mode:gn.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:l,notFoundContent:h,class:S,popupClassName:e.popupClassName||e.dropdownClassName,ref:i}),["dataSource","loading"]);return p(gn,$,D({default:()=>[b]},tt(n,["default","dataSource","options"])))}}}),hV=m(uh,{Option:$i,OptGroup:ga,install(e){return e.component(uh.name,uh),e.component($i.displayName,$i),e.component(ga.displayName,ga),e}});var vV={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};function TC(e){for(var t=1;t({backgroundColor:e,border:`${o.lineWidth}px ${o.lineType} ${t}`,[`${r}-icon`]:{color:n}}),MV=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:o,marginSM:r,fontSize:i,fontSizeLG:l,lineHeight:a,borderRadiusLG:s,motionEaseInOutCirc:u,alertIconSizeLG:c,colorText:d,paddingContentVerticalSM:f,alertPaddingHorizontal:g,paddingMD:v,paddingContentHorizontalLG:h}=e;return{[t]:m(m({},Ue(e)),{position:"relative",display:"flex",alignItems:"center",padding:`${f}px ${g}px`,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:a},"&-message":{color:d},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${u}, opacity ${n} ${u}, padding-top ${n} ${u}, padding-bottom ${n} ${u}, - margin-bottom ${n} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",paddingInline:h,paddingBlock:v,[`${t}-icon`]:{marginInlineEnd:r,fontSize:c,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:o,color:d,fontSize:l},[`${t}-description`]:{display:"block"}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},_V=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:o,colorSuccessBg:r,colorWarning:i,colorWarningBorder:l,colorWarningBg:a,colorError:s,colorErrorBorder:u,colorErrorBg:c,colorInfo:d,colorInfoBorder:f,colorInfoBg:g}=e;return{[t]:{"&-success":pu(r,o,n,e,t),"&-info":pu(g,f,d,e,t),"&-warning":pu(a,l,i,e,t),"&-error":m(m({},pu(c,u,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},AV=e=>{const{componentCls:t,iconCls:n,motionDurationMid:o,marginXS:r,fontSizeIcon:i,colorIcon:l,colorIconHover:a}=e;return{[t]:{"&-action":{marginInlineStart:r},[`${t}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:i,lineHeight:`${i}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:l,transition:`color ${o}`,"&:hover":{color:a}}},"&-close-text":{color:l,transition:`color ${o}`,"&:hover":{color:a}}}}},RV=e=>[MV(e),_V(e),AV(e)],DV=Ke("Alert",e=>{const{fontSizeHeading3:t}=e,n=ke(e,{alertIconSizeLG:t,alertPaddingHorizontal:12});return[RV(n)]}),NV={success:Jo,info:Di,error:Dn,warning:er},BV={success:Np,info:kp,error:Fp,warning:Bp},kV=Sn("success","info","warning","error"),FV=()=>({type:W.oneOf(kV),closable:{type:Boolean,default:void 0},closeText:W.any,message:W.any,description:W.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:W.any,closeIcon:W.any,onClose:Function}),LV=oe({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:FV(),setup(e,t){let{slots:n,emit:o,attrs:r,expose:i}=t;const{prefixCls:l,direction:a}=Te("alert",e),[s,u]=DV(l),c=ne(!1),d=ne(!1),f=ne(),g=y=>{y.preventDefault();const S=f.value;S.style.height=`${S.offsetHeight}px`,S.style.height=`${S.offsetHeight}px`,c.value=!0,o("close",y)},v=()=>{var y;c.value=!1,d.value=!0,(y=e.afterClose)===null||y===void 0||y.call(e)},h=P(()=>{const{type:y}=e;return y!==void 0?y:e.banner?"warning":"info"});i({animationEnd:v});const b=ne({});return()=>{var y,S,$,x,C,O,w,I,T,M;const{banner:E,closeIcon:A=(y=n.closeIcon)===null||y===void 0?void 0:y.call(n)}=e;let{closable:R,showIcon:z}=e;const _=(S=e.closeText)!==null&&S!==void 0?S:($=n.closeText)===null||$===void 0?void 0:$.call(n),N=(x=e.description)!==null&&x!==void 0?x:(C=n.description)===null||C===void 0?void 0:C.call(n),B=(O=e.message)!==null&&O!==void 0?O:(w=n.message)===null||w===void 0?void 0:w.call(n),k=(I=e.icon)!==null&&I!==void 0?I:(T=n.icon)===null||T===void 0?void 0:T.call(n),F=(M=n.action)===null||M===void 0?void 0:M.call(n);z=E&&z===void 0?!0:z;const L=(N?BV:NV)[h.value]||null;_&&(R=!0);const H=l.value,j=le(H,{[`${H}-${h.value}`]:!0,[`${H}-closing`]:c.value,[`${H}-with-description`]:!!N,[`${H}-no-icon`]:!z,[`${H}-banner`]:!!E,[`${H}-closable`]:R,[`${H}-rtl`]:a.value==="rtl",[u.value]:!0}),Y=R?p("button",{type:"button",onClick:g,class:`${H}-close-icon`,tabindex:0},[_?p("span",{class:`${H}-close-text`},[_]):A===void 0?p(Rn,null,null):A]):null,Q=k&&(Kt(k)?ut(k,{class:`${H}-icon`}):p("span",{class:`${H}-icon`},[k]))||p(L,{class:`${H}-icon`},null),U=Ro(`${H}-motion`,{appear:!1,css:!0,onAfterLeave:v,onBeforeLeave:ee=>{ee.style.maxHeight=`${ee.offsetHeight}px`},onLeave:ee=>{ee.style.maxHeight="0px"}});return s(d.value?null:p(un,U,{default:()=>[En(p("div",D(D({role:"alert"},r),{},{style:[r.style,b.value],class:[r.class,j],"data-show":!c.value,ref:f}),[z?Q:null,p("div",{class:`${H}-content`},[B?p("div",{class:`${H}-message`},[B]):null,N?p("div",{class:`${H}-description`},[N]):null]),F?p("div",{class:`${H}-action`},[F]):null,Y]),[[jn,!c.value]])]}))}}}),zV=It(LV),Dr=["xxxl","xxl","xl","lg","md","sm","xs"],HV=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)`,xxxl:`{min-width: ${e.screenXXXL}px}`});function wb(){const[,e]=Ur();return P(()=>{const t=HV(e.value),n=new Map;let o=-1,r={};return{matchHandlers:{},dispatch(i){return r=i,n.forEach(l=>l(r)),n.size>=1},subscribe(i){return n.size||this.register(),o+=1,n.set(o,i),i(r),o},unsubscribe(i){n.delete(i),n.size||this.unregister()},unregister(){Object.keys(t).forEach(i=>{const l=t[i],a=this.matchHandlers[l];a?.mql.removeListener(a?.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const l=t[i],a=u=>{let{matches:c}=u;this.dispatch(m(m({},r),{[i]:c}))},s=window.matchMedia(l);s.addListener(a),this.matchHandlers[l]={mql:s,listener:a},a(s)})},responsiveMap:t}})}function Ua(){const e=ne({});let t=null;const n=wb();return je(()=>{t=n.value.subscribe(o=>{e.value=o})}),$n(()=>{n.value.unsubscribe(t)}),e}function io(e){const t=ne();return Le(()=>{t.value=e()},{flush:"sync"}),t}const jV=e=>{const{antCls:t,componentCls:n,iconCls:o,avatarBg:r,avatarColor:i,containerSize:l,containerSizeLG:a,containerSizeSM:s,textFontSize:u,textFontSizeLG:c,textFontSizeSM:d,borderRadius:f,borderRadiusLG:g,borderRadiusSM:v,lineWidth:h,lineType:b}=e,y=(S,$,x)=>({width:S,height:S,lineHeight:`${S-h*2}px`,borderRadius:"50%",[`&${n}-square`]:{borderRadius:x},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:$,[`> ${o}`]:{margin:0}}});return{[n]:m(m(m(m({},Ue(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:r,border:`${h}px ${b} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),y(l,u,f)),{"&-lg":m({},y(a,c,g)),"&-sm":m({},y(s,d,v)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},VV=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:o,groupSpace:r}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:o}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:r}}}},L6=Ke("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,o=ke(e,{avatarBg:n,avatarColor:t});return[jV(o),VV(o)]},e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:o,fontSize:r,fontSizeLG:i,fontSizeXL:l,fontSizeHeading3:a,marginXS:s,marginXXS:u,colorBorderBg:c}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:o,textFontSize:Math.round((i+l)/2),textFontSizeLG:a,textFontSizeSM:r,groupSpace:u,groupOverlapping:-s,groupBorderColor:c}}),z6=Symbol("AvatarContextKey"),WV=()=>He(z6,{}),KV=e=>Xe(z6,e),GV=()=>({prefixCls:String,shape:{type:String,default:"circle"},size:{type:[Number,String,Object],default:()=>"default"},src:String,srcset:String,icon:W.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}}),dl=oe({compatConfig:{MODE:3},name:"AAvatar",inheritAttrs:!1,props:GV(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const r=ne(!0),i=ne(!1),l=ne(1),a=ne(null),s=ne(null),{prefixCls:u}=Te("avatar",e),[c,d]=L6(u),f=WV(),g=P(()=>e.size==="default"?f.size:e.size),v=Ua(),h=io(()=>{if(typeof e.size!="object")return;const $=Dr.find(C=>v.value[C]);return e.size[$]}),b=$=>h.value?{width:`${h.value}px`,height:`${h.value}px`,lineHeight:`${h.value}px`,fontSize:`${$?h.value/2:18}px`}:{},y=()=>{if(!a.value||!s.value)return;const $=a.value.offsetWidth,x=s.value.offsetWidth;if($!==0&&x!==0){const{gap:C=4}=e;C*2{const{loadError:$}=e;$?.()!==!1&&(r.value=!1)};return ye(()=>e.src,()=>{ot(()=>{r.value=!0,l.value=1})}),ye(()=>e.gap,()=>{ot(()=>{y()})}),je(()=>{ot(()=>{y(),i.value=!0})}),()=>{var $,x;const{shape:C,src:O,alt:w,srcset:I,draggable:T,crossOrigin:M}=e,E=($=f.shape)!==null&&$!==void 0?$:C,A=Zt(n,e,"icon"),R=u.value,z={[`${o.class}`]:!!o.class,[R]:!0,[`${R}-lg`]:g.value==="large",[`${R}-sm`]:g.value==="small",[`${R}-${E}`]:!0,[`${R}-image`]:O&&r.value,[`${R}-icon`]:A,[d.value]:!0},_=typeof g.value=="number"?{width:`${g.value}px`,height:`${g.value}px`,lineHeight:`${g.value}px`,fontSize:A?`${g.value/2}px`:"18px"}:{},N=(x=n.default)===null||x===void 0?void 0:x.call(n);let B;if(O&&r.value)B=p("img",{draggable:T,src:O,srcset:I,onError:S,alt:w,crossorigin:M},null);else if(A)B=A;else if(i.value||l.value!==1){const k=`scale(${l.value}) translateX(-50%)`,F={msTransform:k,WebkitTransform:k,transform:k},L=typeof g.value=="number"?{lineHeight:`${g.value}px`}:{};B=p(Mo,{onResize:y},{default:()=>[p("span",{class:`${R}-string`,ref:a,style:m(m({},L),F)},[N])]})}else B=p("span",{class:`${R}-string`,ref:a,style:{opacity:0}},[N]);return c(p("span",D(D({},o),{},{ref:s,class:z,style:[_,b(!!A),o.style]}),[B]))}}}),So={adjustX:1,adjustY:1},$o=[0,0],H6={left:{points:["cr","cl"],overflow:So,offset:[-4,0],targetOffset:$o},right:{points:["cl","cr"],overflow:So,offset:[4,0],targetOffset:$o},top:{points:["bc","tc"],overflow:So,offset:[0,-4],targetOffset:$o},bottom:{points:["tc","bc"],overflow:So,offset:[0,4],targetOffset:$o},topLeft:{points:["bl","tl"],overflow:So,offset:[0,-4],targetOffset:$o},leftTop:{points:["tr","tl"],overflow:So,offset:[-4,0],targetOffset:$o},topRight:{points:["br","tr"],overflow:So,offset:[0,-4],targetOffset:$o},rightTop:{points:["tl","tr"],overflow:So,offset:[4,0],targetOffset:$o},bottomRight:{points:["tr","br"],overflow:So,offset:[0,4],targetOffset:$o},rightBottom:{points:["bl","br"],overflow:So,offset:[4,0],targetOffset:$o},bottomLeft:{points:["tl","bl"],overflow:So,offset:[0,4],targetOffset:$o},leftBottom:{points:["br","bl"],overflow:So,offset:[-4,0],targetOffset:$o}},XV={prefixCls:String,id:String,overlayInnerStyle:W.any},UV=oe({compatConfig:{MODE:3},name:"TooltipContent",props:XV,setup(e,t){let{slots:n}=t;return()=>{var o;return p("div",{class:`${e.prefixCls}-inner`,id:e.id,role:"tooltip",style:e.overlayInnerStyle},[(o=n.overlay)===null||o===void 0?void 0:o.call(n)])}}});var YV=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:W.string.def("rc-tooltip"),mouseEnterDelay:W.number.def(.1),mouseLeaveDelay:W.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:W.object.def(()=>({})),arrowContent:W.any.def(null),tipId:String,builtinPlacements:W.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function,arrow:{type:Boolean,default:!0}},setup(e,t){let{slots:n,attrs:o,expose:r}=t;const i=ne(),l=()=>{const{prefixCls:c,tipId:d,overlayInnerStyle:f}=e;return[e.arrow?p("div",{class:`${c}-arrow`,key:"arrow"},[Zt(n,e,"arrowContent")]):null,p(UV,{key:"content",prefixCls:c,id:d,overlayInnerStyle:f},{overlay:n.overlay})]};r({getPopupDomNode:()=>i.value.getPopupDomNode(),triggerDOM:i,forcePopupAlign:()=>{var c;return(c=i.value)===null||c===void 0?void 0:c.forcePopupAlign()}});const s=ne(!1),u=ne(!1);return Le(()=>{const{destroyTooltipOnHide:c}=e;if(typeof c=="boolean")s.value=c;else if(c&&typeof c=="object"){const{keepParent:d}=c;s.value=d===!0,u.value=d===!1}}),()=>{const{overlayClassName:c,trigger:d,mouseEnterDelay:f,mouseLeaveDelay:g,overlayStyle:v,prefixCls:h,afterVisibleChange:b,transitionName:y,animation:S,placement:$,align:x,destroyTooltipOnHide:C,defaultVisible:O}=e,w=YV(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"]),I=m({},w);e.visible!==void 0&&(I.popupVisible=e.visible);const T=m(m(m({popupClassName:c,prefixCls:h,action:d,builtinPlacements:H6,popupPlacement:$,popupAlign:x,afterPopupVisibleChange:b,popupTransitionName:y,popupAnimation:S,defaultPopupVisible:O,destroyPopupOnHide:s.value,autoDestroy:u.value,mouseLeaveDelay:g,popupStyle:v,mouseEnterDelay:f},I),o),{onPopupVisibleChange:e.onVisibleChange||NC,onPopupAlign:e.onPopupAlign||NC,ref:i,arrow:!!e.arrow,popup:l()});return p(Rl,T,{default:n.default})}}}),Ob=(()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:De(),overlayInnerStyle:De(),overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},arrow:{type:[Boolean,Object],default:!0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:De(),builtinPlacements:De(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function})),ZV={adjustX:1,adjustY:1},BC={adjustX:0,adjustY:0},QV=[0,0];function kC(e){return typeof e=="boolean"?e?ZV:BC:m(m({},BC),e)}function Pb(e){const{arrowWidth:t=4,horizontalArrowShift:n=16,verticalArrowShift:o=8,autoAdjustOverflow:r,arrowPointAtCenter:i}=e,l={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(n+t),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(o+t)]},topRight:{points:["br","tc"],offset:[n+t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(o+t)]},bottomRight:{points:["tr","bc"],offset:[n+t,4]},rightBottom:{points:["bl","cr"],offset:[4,o+t]},bottomLeft:{points:["tl","bc"],offset:[-(n+t),4]},leftBottom:{points:["br","cl"],offset:[-4,o+t]}};return Object.keys(l).forEach(a=>{l[a]=i?m(m({},l[a]),{overflow:kC(r),targetOffset:QV}):m(m({},H6[a]),{overflow:kC(r)}),l[a].ignoreShake=!0}),l}function rf(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(let t=0,n=e.length;t`${e}-inverse`),eW=["success","processing","error","default","warning"];function Lp(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[...JV,...rc].includes(e):rc.includes(e)}function tW(e){return eW.includes(e)}function nW(e,t){const n=Lp(t),o=le({[`${e}-${t}`]:t&&n}),r={},i={};return t&&!n&&(r.background=t,i["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:i}}function gu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return e.map(n=>`${t}${n}`).join(",")}const Ib=8;function j6(e){const t=Ib,{sizePopupArrow:n,contentRadius:o,borderRadiusOuter:r,limitVerticalRadius:i}=e,l=n/2-Math.ceil(r*(Math.sqrt(2)-1)),a=(o>12?o+2:12)-l,s=i?t-l:a;return{dropdownArrowOffset:a,dropdownArrowOffsetVertical:s}}function Tb(e,t){const{componentCls:n,sizePopupArrow:o,marginXXS:r,borderRadiusXS:i,borderRadiusOuter:l,boxShadowPopoverArrow:a}=e,{colorBg:s,showArrowCls:u,contentRadius:c=e.borderRadiusLG,limitVerticalRadius:d}=t,{dropdownArrowOffsetVertical:f,dropdownArrowOffset:g}=j6({sizePopupArrow:o,contentRadius:c,borderRadiusOuter:l,limitVerticalRadius:d}),v=o/2+r;return{[n]:{[`${n}-arrow`]:[m(m({position:"absolute",zIndex:1,display:"block"},I0(o,i,l,s,a)),{"&:before":{background:s}})],[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:g}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:g}},[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:g}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:g}},[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:f},[`&-placement-leftBottom ${n}-arrow`]:{bottom:f},[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:f},[`&-placement-rightBottom ${n}-arrow`]:{bottom:f},[gu(["&-placement-topLeft","&-placement-top","&-placement-topRight"].map(h=>h+=":not(&-arrow-hidden)"),u)]:{paddingBottom:v},[gu(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"].map(h=>h+=":not(&-arrow-hidden)"),u)]:{paddingTop:v},[gu(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"].map(h=>h+=":not(&-arrow-hidden)"),u)]:{paddingRight:{_skip_check_:!0,value:v}},[gu(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"].map(h=>h+=":not(&-arrow-hidden)"),u)]:{paddingLeft:{_skip_check_:!0,value:v}}}}}const oW=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:r,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:a,boxShadowSecondary:s,paddingSM:u,paddingXS:c,tooltipRadiusOuter:d}=e;return[{[t]:m(m(m(m({},Ue(e)),{position:"absolute",zIndex:l,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${t}-inner`]:{minWidth:a,minHeight:a,padding:`${u/2}px ${c}px`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:i,boxShadow:s},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,Ib)}},[`${t}-content`]:{position:"relative"}}),Wd(e,(f,g)=>{let{darkColor:v}=g;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:v},[`${t}-arrow`]:{"--antd-arrow-background-color":v}}}})),{"&-rtl":{direction:"rtl"}})},Tb(ke(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none"}}]},rW=((e,t)=>Ke("Tooltip",o=>{if(t?.value===!1)return[];const{borderRadius:r,colorTextLightSolid:i,colorBgDefault:l,borderRadiusOuter:a}=o,s=ke(o,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:r,tooltipBg:l,tooltipRadiusOuter:a>4?4:a});return[oW(s),Ga(o,"zoom-big-fast")]},o=>{let{zIndexPopupBase:r,colorBgSpotlight:i}=o;return{zIndexPopup:r+70,colorBgDefault:i}})(e)),iW=(e,t)=>{const n={},o=m({},e);return t.forEach(r=>{e&&r in e&&(n[r]=e[r],delete o[r])}),{picked:n,omitted:o}},V6=()=>m(m({},Ob()),{title:W.any}),W6=()=>({trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),lW=oe({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:Ze(V6(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r,expose:i}=t;const{prefixCls:l,getPopupContainer:a,direction:s,rootPrefixCls:u}=Te("tooltip",e),c=P(()=>{var M;return(M=e.open)!==null&&M!==void 0?M:e.visible}),d=re(rf([e.open,e.visible])),f=re();let g;ye(c,M=>{qe.cancel(g),g=qe(()=>{d.value=!!M})});const v=()=>{var M;const E=(M=e.title)!==null&&M!==void 0?M:n.title;return!E&&E!==0},h=M=>{const E=v();c.value===void 0&&(d.value=E?!1:M),E||(o("update:visible",M),o("visibleChange",M),o("update:open",M),o("openChange",M))};i({getPopupDomNode:()=>f.value.getPopupDomNode(),open:d,forcePopupAlign:()=>{var M;return(M=f.value)===null||M===void 0?void 0:M.forcePopupAlign()}});const y=P(()=>{var M;const{builtinPlacements:E,autoAdjustOverflow:A,arrow:R,arrowPointAtCenter:z}=e;let _=z;return typeof R=="object"&&(_=(M=R.pointAtCenter)!==null&&M!==void 0?M:z),E||Pb({arrowPointAtCenter:_,autoAdjustOverflow:A})}),S=M=>M||M==="",$=M=>{const E=M.type;if(typeof E=="object"&&M.props&&((E.__ANT_BUTTON===!0||E==="button")&&S(M.props.disabled)||E.__ANT_SWITCH===!0&&(S(M.props.disabled)||S(M.props.loading))||E.__ANT_RADIO===!0&&S(M.props.disabled))){const{picked:A,omitted:R}=iW(SO(M),["position","left","right","top","bottom","float","display","zIndex"]),z=m(m({display:"inline-block"},A),{cursor:"not-allowed",lineHeight:1,width:M.props&&M.props.block?"100%":void 0}),_=m(m({},R),{pointerEvents:"none"}),N=ut(M,{style:_},!0);return p("span",{style:z,class:`${l.value}-disabled-compatible-wrapper`},[N])}return M},x=()=>{var M,E;return(M=e.title)!==null&&M!==void 0?M:(E=n.title)===null||E===void 0?void 0:E.call(n)},C=(M,E)=>{const A=y.value,R=Object.keys(A).find(z=>{var _,N;return A[z].points[0]===((_=E.points)===null||_===void 0?void 0:_[0])&&A[z].points[1]===((N=E.points)===null||N===void 0?void 0:N[1])});if(R){const z=M.getBoundingClientRect(),_={top:"50%",left:"50%"};R.indexOf("top")>=0||R.indexOf("Bottom")>=0?_.top=`${z.height-E.offset[1]}px`:(R.indexOf("Top")>=0||R.indexOf("bottom")>=0)&&(_.top=`${-E.offset[1]}px`),R.indexOf("left")>=0||R.indexOf("Right")>=0?_.left=`${z.width-E.offset[0]}px`:(R.indexOf("right")>=0||R.indexOf("Left")>=0)&&(_.left=`${-E.offset[0]}px`),M.style.transformOrigin=`${_.left} ${_.top}`}},O=P(()=>nW(l.value,e.color)),w=P(()=>r["data-popover-inject"]),[I,T]=rW(l,P(()=>!w.value));return()=>{var M,E;const{openClassName:A,overlayClassName:R,overlayStyle:z,overlayInnerStyle:_}=e;let N=(E=_t((M=n.default)===null||M===void 0?void 0:M.call(n)))!==null&&E!==void 0?E:null;N=N.length===1?N[0]:N;let B=d.value;if(c.value===void 0&&v()&&(B=!1),!N)return null;const k=$(Kt(N)&&!rA(N)?N:p("span",null,[N])),F=le({[A||`${l.value}-open`]:!0,[k.props&&k.props.class]:k.props&&k.props.class}),L=le(R,{[`${l.value}-rtl`]:s.value==="rtl"},O.value.className,T.value),H=m(m({},O.value.overlayStyle),_),j=O.value.arrowStyle,Y=m(m(m({},r),e),{prefixCls:l.value,arrow:!!e.arrow,getPopupContainer:a?.value,builtinPlacements:y.value,visible:B,ref:f,overlayClassName:L,overlayStyle:m(m({},j),z),overlayInnerStyle:H,onVisibleChange:h,onPopupAlign:C,transitionName:_n(u.value,"zoom-big-fast",e.transitionName)});return I(p(qV,Y,{default:()=>[d.value?ut(k,{class:F}):k],arrowContent:()=>p("span",{class:`${l.value}-arrow-content`},null),overlay:x}))}}}),Qn=It(lW),aW=e=>{const{componentCls:t,popoverBg:n,popoverColor:o,width:r,fontWeightStrong:i,popoverPadding:l,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:u,zIndexPopup:c,marginXS:d,colorBgElevated:f}=e;return[{[t]:m(m({},Ue(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--antd-arrow-background-color":f,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:n,backgroundClip:"padding-box",borderRadius:u,boxShadow:a,padding:l},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:i},[`${t}-inner-content`]:{color:o}})},Tb(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",[`${t}-content`]:{display:"inline-block"}}}]},sW=e=>{const{componentCls:t}=e;return{[t]:rc.map(n=>{const o=e[`${n}-6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}})}},cW=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorSplit:r,paddingSM:i,controlHeight:l,fontSize:a,lineHeight:s,padding:u}=e,c=l-Math.round(a*s),d=c/2,f=c/2-n,g=u;return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${g}px ${f}px`,borderBottom:`${n}px ${o} ${r}`},[`${t}-inner-content`]:{padding:`${i}px ${g}px`}}}},uW=Ke("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:o}=e,r=ke(e,{popoverBg:t,popoverColor:n,popoverPadding:12});return[aW(r),sW(r),o&&cW(r),Ga(r,"zoom-big")]},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+30,width:177}}),dW=()=>m(m({},Ob()),{content:yt(),title:yt()}),fW=oe({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:Ze(dW(),m(m({},W6()),{trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(e,t){let{expose:n,slots:o,attrs:r}=t;const i=re();fo(e.visible===void 0),n({getPopupDomNode:()=>{var f,g;return(g=(f=i.value)===null||f===void 0?void 0:f.getPopupDomNode)===null||g===void 0?void 0:g.call(f)}});const{prefixCls:l,configProvider:a}=Te("popover",e),[s,u]=uW(l),c=P(()=>a.getPrefixCls()),d=()=>{var f,g;const{title:v=_t((f=o.title)===null||f===void 0?void 0:f.call(o)),content:h=_t((g=o.content)===null||g===void 0?void 0:g.call(o))}=e,b=!!(Array.isArray(v)?v.length:v),y=!!(Array.isArray(h)?h.length:v);return!b&&!y?null:p(Ve,null,[b&&p("div",{class:`${l.value}-title`},[v]),p("div",{class:`${l.value}-inner-content`},[h])])};return()=>{const f=le(e.overlayClassName,u.value);return s(p(Qn,D(D(D({},tt(e,["title","content"])),r),{},{prefixCls:l.value,ref:i,overlayClassName:f,transitionName:_n(c.value,"zoom-big",e.transitionName),"data-popover-inject":!0}),{title:d,default:o.default}))}}}),Eb=It(fW),pW=()=>({prefixCls:String,maxCount:Number,maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:"top"},maxPopoverTrigger:String,size:{type:[Number,String,Object],default:"default"},shape:{type:String,default:"circle"}}),lf=oe({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:pW(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Te("avatar",e),l=P(()=>`${r.value}-group`),[a,s]=L6(r);return Le(()=>{const u={size:e.size,shape:e.shape};KV(u)}),()=>{const{maxPopoverPlacement:u="top",maxCount:c,maxStyle:d,maxPopoverTrigger:f="hover",shape:g}=e,v={[l.value]:!0,[`${l.value}-rtl`]:i.value==="rtl",[`${o.class}`]:!!o.class,[s.value]:!0},h=Zt(n,e),b=bt(h).map((S,$)=>ut(S,{key:`avatar-key-${$}`})),y=b.length;if(c&&c[p(dl,{style:d,shape:g},{default:()=>[`+${y-c}`]})]})),a(p("div",D(D({},o),{},{class:v,style:o.style}),[S]))}return a(p("div",D(D({},o),{},{class:v,style:o.style}),[b]))}}});dl.Group=lf;dl.install=function(e){return e.component(dl.name,dl),e.component(lf.name,lf),e};function FC(e){let{prefixCls:t,value:n,current:o,offset:r=0}=e,i;return r&&(i={position:"absolute",top:`${r}00%`,left:0}),p("p",{style:i,class:le(`${t}-only-unit`,{current:o})},[n])}function gW(e,t,n){let o=e,r=0;for(;(o+10)%10!==t;)o+=n,r+=n;return r}const hW=oe({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup(e){const t=P(()=>Number(e.value)),n=P(()=>Math.abs(e.count)),o=ct({prevValue:t.value,prevCount:n.value}),r=()=>{o.prevValue=t.value,o.prevCount=n.value},i=re();return ye(t,()=>{clearTimeout(i.value),i.value=setTimeout(()=>{r()},1e3)},{flush:"post"}),$n(()=>{clearTimeout(i.value)}),()=>{let l,a={};const s=t.value;if(o.prevValue===s||Number.isNaN(s)||Number.isNaN(o.prevValue))l=[FC(m(m({},e),{current:!0}))],a={transition:"none"};else{l=[];const u=s+10,c=[];for(let g=s;g<=u;g+=1)c.push(g);const d=c.findIndex(g=>g%10===o.prevValue);l=c.map((g,v)=>{const h=g%10;return FC(m(m({},e),{value:h,offset:v-d,current:v===d}))});const f=o.prevCountr()},[l])}}});var vW=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var i;const l=m(m({},e),n),{prefixCls:a,count:s,title:u,show:c,component:d="sup",class:f,style:g}=l,v=vW(l,["prefixCls","count","title","show","component","class","style"]),h=m(m({},v),{style:g,"data-show":e.show,class:le(r.value,f),title:u});let b=s;if(s&&Number(s)%1===0){const S=String(s).split("");b=S.map(($,x)=>p(hW,{prefixCls:r.value,count:Number(s),value:$,key:S.length-x},null))}g&&g.borderColor&&(h.style=m(m({},g),{boxShadow:`0 0 0 1px ${g.borderColor} inset`}));const y=_t((i=o.default)===null||i===void 0?void 0:i.call(o));return y&&y.length?ut(y,{class:le(`${r.value}-custom-component`)},!1):p(d,h,{default:()=>[b]})}}}),yW=new nt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),SW=new nt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),$W=new nt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),CW=new nt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),xW=new nt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),wW=new nt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),OW=e=>{const{componentCls:t,iconCls:n,antCls:o,badgeFontHeight:r,badgeShadowSize:i,badgeHeightSm:l,motionDurationSlow:a,badgeStatusSize:s,marginXS:u,badgeRibbonOffset:c}=e,d=`${o}-scroll-number`,f=`${o}-ribbon`,g=`${o}-ribbon-wrapper`,v=Wd(e,(b,y)=>{let{darkColor:S}=y;return{[`&${t} ${t}-color-${b}`]:{background:S,[`&:not(${t}-count)`]:{color:S}}}}),h=Wd(e,(b,y)=>{let{darkColor:S}=y;return{[`&${f}-color-${b}`]:{background:S,color:S}}});return{[t]:m(m(m(m({},Ue(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.badgeZIndex,minWidth:e.badgeHeight,height:e.badgeHeight,color:e.badgeTextColor,fontWeight:e.badgeFontWeight,fontSize:e.badgeFontSize,lineHeight:`${e.badgeHeight}px`,whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:e.badgeHeight/2,boxShadow:`0 0 0 ${i}px ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:l,height:l,fontSize:e.badgeFontSizeSm,lineHeight:`${l}px`,borderRadius:l/2},[`${t}-multiple-words`]:{padding:`0 ${e.paddingXS}px`},[`${t}-dot`]:{zIndex:e.badgeZIndex,width:e.badgeDotSize,minWidth:e.badgeDotSize,height:e.badgeDotSize,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${i}px ${e.badgeShadowColor}`},[`${t}-dot${d}`]:{transition:`background ${a}`},[`${t}-count, ${t}-dot, ${d}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:wW,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:yW,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:u,color:e.colorText,fontSize:e.fontSize}}}),v),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:SW,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:$W,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:CW,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:xW,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${d}-custom-component, ${t}-count`]:{transform:"none"},[`${d}-custom-component, ${d}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${d}`]:{overflow:"hidden",[`${d}-only`]:{position:"relative",display:"inline-block",height:e.badgeHeight,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${d}-only-unit`]:{height:e.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${d}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${d}-custom-component`]:{transform:"translate(-50%, -50%)"}}}),[`${g}`]:{position:"relative"},[`${f}`]:m(m(m(m({},Ue(e)),{position:"absolute",top:u,padding:`0 ${e.paddingXS}px`,color:e.colorPrimary,lineHeight:`${r}px`,whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${f}-text`]:{color:e.colorTextLightSolid},[`${f}-corner`]:{position:"absolute",top:"100%",width:c,height:c,color:"currentcolor",border:`${c/2}px solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),h),{[`&${f}-placement-end`]:{insetInlineEnd:-c,borderEndEndRadius:0,[`${f}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${f}-placement-start`]:{insetInlineStart:-c,borderEndStartRadius:0,[`${f}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},K6=Ke("Badge",e=>{const{fontSize:t,lineHeight:n,fontSizeSM:o,lineWidth:r,marginXS:i,colorBorderBg:l}=e,a=Math.round(t*n),s=r,u="auto",c=a-2*s,d=e.colorBgContainer,f="normal",g=o,v=e.colorError,h=e.colorErrorHover,b=t,y=o/2,S=o,$=o/2,x=ke(e,{badgeFontHeight:a,badgeShadowSize:s,badgeZIndex:u,badgeHeight:c,badgeTextColor:d,badgeFontWeight:f,badgeFontSize:g,badgeColor:v,badgeColorHover:h,badgeShadowColor:l,badgeHeightSm:b,badgeDotSize:y,badgeFontSizeSm:S,badgeStatusSize:$,badgeProcessingDuration:"1.2s",badgeRibbonOffset:i,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return[OW(x)]});var PW=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefix:String,color:{type:String},text:W.any,placement:{type:String,default:"end"}}),af=oe({compatConfig:{MODE:3},name:"ABadgeRibbon",inheritAttrs:!1,props:IW(),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,direction:i}=Te("ribbon",e),[l,a]=K6(r),s=P(()=>Lp(e.color,!1)),u=P(()=>[r.value,`${r.value}-placement-${e.placement}`,{[`${r.value}-rtl`]:i.value==="rtl",[`${r.value}-color-${e.color}`]:s.value}]);return()=>{var c,d;const{class:f,style:g}=n,v=PW(n,["class","style"]),h={},b={};return e.color&&!s.value&&(h.background=e.color,b.color=e.color),l(p("div",D({class:`${r.value}-wrapper ${a.value}`},v),[(c=o.default)===null||c===void 0?void 0:c.call(o),p("div",{class:[u.value,f,a.value],style:m(m({},h),g)},[p("span",{class:`${r.value}-text`},[e.text||((d=o.text)===null||d===void 0?void 0:d.call(o))]),p("div",{class:`${r.value}-corner`,style:b},null)])]))}}}),sf=e=>!isNaN(parseFloat(e))&&isFinite(e),TW=()=>({count:W.any.def(null),showZero:{type:Boolean,default:void 0},overflowCount:{type:Number,default:99},dot:{type:Boolean,default:void 0},prefixCls:String,scrollNumberPrefixCls:String,status:{type:String},size:{type:String,default:"default"},color:String,text:W.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String}),Bs=oe({compatConfig:{MODE:3},name:"ABadge",Ribbon:af,inheritAttrs:!1,props:TW(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Te("badge",e),[l,a]=K6(r),s=P(()=>e.count>e.overflowCount?`${e.overflowCount}+`:e.count),u=P(()=>s.value==="0"||s.value===0),c=P(()=>e.count===null||u.value&&!e.showZero),d=P(()=>(e.status!==null&&e.status!==void 0||e.color!==null&&e.color!==void 0)&&c.value),f=P(()=>e.dot&&!u.value),g=P(()=>f.value?"":s.value),v=P(()=>(g.value===null||g.value===void 0||g.value===""||u.value&&!e.showZero)&&!f.value),h=re(e.count),b=re(g.value),y=re(f.value);ye([()=>e.count,g,f],()=>{v.value||(h.value=e.count,b.value=g.value,y.value=f.value)},{immediate:!0});const S=P(()=>Lp(e.color,!1)),$=P(()=>({[`${r.value}-status-dot`]:d.value,[`${r.value}-status-${e.status}`]:!!e.status,[`${r.value}-color-${e.color}`]:S.value})),x=P(()=>e.color&&!S.value?{background:e.color,color:e.color}:{}),C=P(()=>({[`${r.value}-dot`]:y.value,[`${r.value}-count`]:!y.value,[`${r.value}-count-sm`]:e.size==="small",[`${r.value}-multiple-words`]:!y.value&&b.value&&b.value.toString().length>1,[`${r.value}-status-${e.status}`]:!!e.status,[`${r.value}-color-${e.color}`]:S.value}));return()=>{var O,w;const{offset:I,title:T,color:M}=e,E=o.style,A=Zt(n,e,"text"),R=r.value,z=h.value;let _=bt((O=n.default)===null||O===void 0?void 0:O.call(n));_=_.length?_:null;const N=!!(!v.value||n.count),B=(()=>{if(!I)return m({},E);const Q={marginTop:sf(I[1])?`${I[1]}px`:I[1]};return i.value==="rtl"?Q.left=`${parseInt(I[0],10)}px`:Q.right=`${-parseInt(I[0],10)}px`,m(m({},Q),E)})(),k=T??(typeof z=="string"||typeof z=="number"?z:void 0),F=N||!A?null:p("span",{class:`${R}-status-text`},[A]),L=typeof z=="object"||z===void 0&&n.count?ut(z??((w=n.count)===null||w===void 0?void 0:w.call(n)),{style:B},!1):null,H=le(R,{[`${R}-status`]:d.value,[`${R}-not-a-wrapper`]:!_,[`${R}-rtl`]:i.value==="rtl"},o.class,a.value);if(!_&&d.value){const Q=B.color;return l(p("span",D(D({},o),{},{class:H,style:B}),[p("span",{class:$.value,style:x.value},null),p("span",{style:{color:Q},class:`${R}-status-text`},[A])]))}const j=Ro(_?`${R}-zoom`:"",{appear:!1});let Y=m(m({},B),e.numberStyle);return M&&!S.value&&(Y=Y||{},Y.background=M),l(p("span",D(D({},o),{},{class:H}),[_,p(un,j,{default:()=>[En(p(bW,{prefixCls:e.scrollNumberPrefixCls,show:N,class:C.value,count:b.value,title:k,style:Y,key:"scrollNumber"},{default:()=>[L]}),[[jn,N]])]}),F]))}}});Bs.install=function(e){return e.component(Bs.name,Bs),e.component(af.name,af),e};const Wl={adjustX:1,adjustY:1},Kl=[0,0],EW={topLeft:{points:["bl","tl"],overflow:Wl,offset:[0,-4],targetOffset:Kl},topCenter:{points:["bc","tc"],overflow:Wl,offset:[0,-4],targetOffset:Kl},topRight:{points:["br","tr"],overflow:Wl,offset:[0,-4],targetOffset:Kl},bottomLeft:{points:["tl","bl"],overflow:Wl,offset:[0,4],targetOffset:Kl},bottomCenter:{points:["tc","bc"],overflow:Wl,offset:[0,4],targetOffset:Kl},bottomRight:{points:["tr","br"],overflow:Wl,offset:[0,4],targetOffset:Kl}};var MW=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.visible,g=>{g!==void 0&&(i.value=g)});const l=re();r({triggerRef:l});const a=g=>{e.visible===void 0&&(i.value=!1),o("overlayClick",g)},s=g=>{e.visible===void 0&&(i.value=g),o("visibleChange",g)},u=()=>{var g;const v=(g=n.overlay)===null||g===void 0?void 0:g.call(n),h={prefixCls:`${e.prefixCls}-menu`,onClick:a};return p(Ve,{key:mO},[e.arrow&&p("div",{class:`${e.prefixCls}-arrow`},null),ut(v,h,!1)])},c=P(()=>{const{minOverlayWidthMatchTrigger:g=!e.alignPoint}=e;return g}),d=()=>{var g;const v=(g=n.default)===null||g===void 0?void 0:g.call(n);return i.value&&v?ut(v[0],{class:e.openClassName||`${e.prefixCls}-open`},!1):v},f=P(()=>!e.hideAction&&e.trigger.indexOf("contextmenu")!==-1?["click"]:e.hideAction);return()=>{const{prefixCls:g,arrow:v,showAction:h,overlayStyle:b,trigger:y,placement:S,align:$,getPopupContainer:x,transitionName:C,animation:O,overlayClassName:w}=e,I=MW(e,["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"]);return p(Rl,D(D({},I),{},{prefixCls:g,ref:l,popupClassName:le(w,{[`${g}-show-arrow`]:v}),popupStyle:b,builtinPlacements:EW,action:y,showAction:h,hideAction:f.value||[],popupPlacement:S,popupAlign:$,popupTransitionName:C,popupAnimation:O,popupVisible:i.value,stretch:c.value?"minWidth":"",onPopupVisibleChange:s,getPopupContainer:x}),{popup:u,default:d})}}}),_W=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}}}}},AW=Ke("Wave",e=>[_W(e)]);function RW(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]):!0}function dh(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&RW(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function DW(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return dh(t)?t:dh(n)?n:dh(o)?o:null}function fh(e){return Number.isNaN(e)?0:e}const NW=oe({props:{target:De(),className:String},setup(e){const t=ne(null),[n,o]=ht(null),[r,i]=ht([]),[l,a]=ht(0),[s,u]=ht(0),[c,d]=ht(0),[f,g]=ht(0),[v,h]=ht(!1);function b(){const{target:w}=e,I=getComputedStyle(w);o(DW(w));const T=I.position==="static",{borderLeftWidth:M,borderTopWidth:E}=I;a(T?w.offsetLeft:fh(-parseFloat(M))),u(T?w.offsetTop:fh(-parseFloat(E))),d(w.offsetWidth),g(w.offsetHeight);const{borderTopLeftRadius:A,borderTopRightRadius:R,borderBottomLeftRadius:z,borderBottomRightRadius:_}=I;i([A,R,_,z].map(N=>fh(parseFloat(N))))}let y,S,$;const x=()=>{clearTimeout($),qe.cancel(S),y?.disconnect()},C=()=>{var w;const I=(w=t.value)===null||w===void 0?void 0:w.parentElement;I&&(Oi(null,I),I.parentElement&&I.parentElement.removeChild(I))};je(()=>{x(),$=setTimeout(()=>{C()},5e3);const{target:w}=e;w&&(S=qe(()=>{b(),h(!0)}),typeof ResizeObserver<"u"&&(y=new ResizeObserver(b),y.observe(w)))}),Qe(()=>{x()});const O=w=>{w.propertyName==="opacity"&&C()};return()=>{if(!v.value)return null;const w={left:`${l.value}px`,top:`${s.value}px`,width:`${c.value}px`,height:`${f.value}px`,borderRadius:r.value.map(I=>`${I}px`).join(" ")};return n&&(w["--wave-color"]=n.value),p(un,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[p("div",{ref:t,class:e.className,style:w,onTransitionend:O},null)]})}}});function BW(e,t){const n=document.createElement("div");return n.style.position="absolute",n.style.left="0px",n.style.top="0px",e?.insertBefore(n,e?.firstChild),Oi(p(NW,{target:e,className:t},null),n),()=>{Oi(null,n),n.parentElement&&n.parentElement.removeChild(n)}}function kW(e,t){const n=pn();let o;function r(){var i;const l=Hn(n);o?.(),!(!((i=t?.value)===null||i===void 0)&&i.disabled||!l)&&(o=BW(l,e.value))}return Qe(()=>{o?.()}),r}const Mb=oe({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(e,t){let{slots:n}=t;const o=pn(),{prefixCls:r,wave:i}=Te("wave",e),[,l]=AW(r),a=kW(P(()=>le(r.value,l.value)),i);let s;const u=()=>{Hn(o).removeEventListener("click",s,!0)};return je(()=>{ye(()=>e.disabled,()=>{u(),ot(()=>{const c=Hn(o);c?.removeEventListener("click",s,!0),!(!c||c.nodeType!==1||e.disabled)&&(s=d=>{d.target.tagName==="INPUT"||!mp(d.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||a()},c.addEventListener("click",s,!0))})},{immediate:!0,flush:"post"})}),Qe(()=>{u()}),()=>{var c;return(c=n.default)===null||c===void 0?void 0:c.call(n)[0]}}});function cf(e){return e==="danger"?{danger:!0}:{type:e}}const X6=()=>({prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:()=>!1},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:W.any,href:String,target:String,title:String,onClick:bl(),onMousedown:bl()}),LC=e=>{e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},zC=e=>{ot(()=>{e&&(e.style.width=`${e.scrollWidth}px`,e.style.opacity="1",e.style.transform="scale(1)")})},HC=e=>{e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)},FW=oe({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup(e){return()=>{const{existIcon:t,prefixCls:n,loading:o}=e;if(t)return p("span",{class:`${n}-loading-icon`},[p(Wn,null,null)]);const r=!!o;return p(un,{name:`${n}-loading-icon-motion`,onBeforeEnter:LC,onEnter:zC,onAfterEnter:HC,onBeforeLeave:zC,onLeave:i=>{setTimeout(()=>{LC(i)})},onAfterLeave:HC},{default:()=>[r?p("span",{class:`${n}-loading-icon`},[p(Wn,null,null)]):null]})}}}),jC=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),LW=e=>{const{componentCls:t,fontSize:n,lineWidth:o,colorPrimaryHover:r,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:-o,[`&, & > ${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}},jC(`${t}-primary`,r),jC(`${t}-danger`,i)]}};function zW(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function HW(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function jW(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:m(m({},zW(e,t)),HW(e.componentCls,t))}}const VW=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":m({},Kr(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,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:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Gr=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),WW=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),KW=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),qv=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),uf=(e,t,n,o,r,i,l)=>({[`&${e}-background-ghost`]:m(m({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},Gr(m({backgroundColor:"transparent"},i),m({backgroundColor:"transparent"},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:r||void 0}})}),_b=e=>({"&:disabled":m({},qv(e))}),U6=e=>m({},_b(e)),df=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),Y6=e=>m(m(m(m(m({},U6(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),Gr({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),uf(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:m(m(m({color:e.colorError,borderColor:e.colorError},Gr({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),uf(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),_b(e))}),GW=e=>m(m(m(m(m({},U6(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),Gr({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),uf(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:m(m(m({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},Gr({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),uf(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),_b(e))}),XW=e=>m(m({},Y6(e)),{borderStyle:"dashed"}),UW=e=>m(m(m({color:e.colorLink},Gr({color:e.colorLinkHover},{color:e.colorLinkActive})),df(e)),{[`&${e.componentCls}-dangerous`]:m(m({color:e.colorError},Gr({color:e.colorErrorHover},{color:e.colorErrorActive})),df(e))}),YW=e=>m(m(m({},Gr({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),df(e)),{[`&${e.componentCls}-dangerous`]:m(m({color:e.colorError},df(e)),Gr({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),qW=e=>m(m({},qv(e)),{[`&${e.componentCls}:hover`]:m({},qv(e))}),ZW=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Y6(e),[`${t}-primary`]:GW(e),[`${t}-dashed`]:XW(e),[`${t}-link`]:UW(e),[`${t}-text`]:YW(e),[`${t}-disabled`]:qW(e)}},Ab=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,iconCls:o,controlHeight:r,fontSize:i,lineHeight:l,lineWidth:a,borderRadius:s,buttonPaddingHorizontal:u}=e,c=Math.max(0,(r-i*l)/2-a),d=u-a,f=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:i,height:r,padding:`${c}px ${d}px`,borderRadius:s,[`&${f}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${f}) ${n}-loading-icon > ${o}`]:{marginInlineEnd:e.marginXS}}},{[`${n}${n}-circle${t}`]:WW(e)},{[`${n}${n}-round${t}`]:KW(e)}]},QW=e=>Ab(e),JW=e=>{const t=ke(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return Ab(t,`${e.componentCls}-sm`)},eK=e=>{const t=ke(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return Ab(t,`${e.componentCls}-lg`)},tK=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},nK=Ke("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,o=ke(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n});return[VW(o),JW(o),QW(o),eK(o),tK(o),ZW(o),LW(o),Xa(e,{focus:!1}),jW(e)]}),oK=()=>({prefixCls:String,size:{type:String}}),q6=cb(),ff=oe({compatConfig:{MODE:3},name:"AButtonGroup",props:oK(),setup(e,t){let{slots:n}=t;const{prefixCls:o,direction:r}=Te("btn-group",e),[,,i]=Ur();q6.useProvide(ct({size:P(()=>e.size)}));const l=P(()=>{const{size:a}=e;let s="";switch(a){case"large":s="lg";break;case"small":s="sm";break;case"middle":case void 0:break;default:Ct(!a,"Button.Group","Invalid prop `size`.")}return{[`${o.value}`]:!0,[`${o.value}-${s}`]:s,[`${o.value}-rtl`]:r.value==="rtl",[i.value]:!0}});return()=>{var a;return p("div",{class:l.value},[bt((a=n.default)===null||a===void 0?void 0:a.call(n))])}}}),VC=/^[\u4e00-\u9fa5]{2}$/,WC=VC.test.bind(VC);function hu(e){return e==="text"||e==="link"}const Lt=oe({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:Ze(X6(),{type:"default"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r,expose:i}=t;const{prefixCls:l,autoInsertSpaceInButton:a,direction:s,size:u}=Te("btn",e),[c,d]=nK(l),f=q6.useInject(),g=Jn(),v=P(()=>{var _;return(_=e.disabled)!==null&&_!==void 0?_:g.value}),h=ne(null),b=ne(void 0);let y=!1;const S=ne(!1),$=ne(!1),x=P(()=>a.value!==!1),{compactSize:C,compactItemClassnames:O}=Ri(l,s),w=P(()=>typeof e.loading=="object"&&e.loading.delay?e.loading.delay||!0:!!e.loading);ye(w,_=>{clearTimeout(b.value),typeof w.value=="number"?b.value=setTimeout(()=>{S.value=_},w.value):S.value=_},{immediate:!0});const I=P(()=>{const{type:_,shape:N="default",ghost:B,block:k,danger:F}=e,L=l.value,H={large:"lg",small:"sm",middle:void 0},j=C.value||f?.size||u.value,Y=j&&H[j]||"";return[O.value,{[d.value]:!0,[`${L}`]:!0,[`${L}-${N}`]:N!=="default"&&N,[`${L}-${_}`]:_,[`${L}-${Y}`]:Y,[`${L}-loading`]:S.value,[`${L}-background-ghost`]:B&&!hu(_),[`${L}-two-chinese-chars`]:$.value&&x.value,[`${L}-block`]:k,[`${L}-dangerous`]:!!F,[`${L}-rtl`]:s.value==="rtl"}]}),T=()=>{const _=h.value;if(!_||a.value===!1)return;const N=_.textContent;y&&WC(N)?$.value||($.value=!0):$.value&&($.value=!1)},M=_=>{if(S.value||v.value){_.preventDefault();return}r("click",_)},E=_=>{r("mousedown",_)},A=(_,N)=>{const B=N?" ":"";if(_.type===Ei){let k=_.children.trim();return WC(k)&&(k=k.split("").join(B)),p("span",null,[k])}return _};return Le(()=>{Ct(!(e.ghost&&hu(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),je(T),An(T),Qe(()=>{b.value&&clearTimeout(b.value)}),i({focus:()=>{var _;(_=h.value)===null||_===void 0||_.focus()},blur:()=>{var _;(_=h.value)===null||_===void 0||_.blur()}}),()=>{var _,N;const{icon:B=(_=n.icon)===null||_===void 0?void 0:_.call(n)}=e,k=bt((N=n.default)===null||N===void 0?void 0:N.call(n));y=k.length===1&&!B&&!hu(e.type);const{type:F,htmlType:L,href:H,title:j,target:Y}=e,Q=S.value?"loading":B,U=m(m({},o),{title:j,disabled:v.value,class:[I.value,o.class,{[`${l.value}-icon-only`]:k.length===0&&!!Q}],onClick:M,onMousedown:E});v.value||delete U.disabled;const ee=B&&!S.value?B:p(FW,{existIcon:!!B,prefixCls:l.value,loading:!!S.value},null),X=k.map(Z=>A(Z,y&&x.value));if(H!==void 0)return c(p("a",D(D({},U),{},{href:H,target:Y,ref:h}),[ee,X]));let J=p("button",D(D({},U),{},{ref:h,type:L}),[ee,X]);if(!hu(F)){const Z=(function(){return J})();J=p(Mb,{ref:"wave",disabled:!!S.value},{default:()=>[Z]})}return c(J)}}});Lt.Group=ff;Lt.install=function(e){return e.component(Lt.name,Lt),e.component(ff.name,ff),e};const Z6=()=>({arrow:Fe([Boolean,Object]),trigger:{type:[Array,String]},menu:De(),overlay:W.any,visible:$e(),open:$e(),disabled:$e(),danger:$e(),autofocus:$e(),align:De(),getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:De(),forceRender:$e(),mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:$e(),destroyPopupOnHide:$e(),onVisibleChange:{type:Function},"onUpdate:visible":{type:Function},onOpenChange:{type:Function},"onUpdate:open":{type:Function}}),ph=X6(),rK=()=>m(m({},Z6()),{type:ph.type,size:String,htmlType:ph.htmlType,href:String,disabled:$e(),prefixCls:String,icon:W.any,title:String,loading:ph.loading,onClick:bl()});var iK={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"};function KC(e){for(var t=1;t{const{componentCls:t,antCls:n,paddingXS:o,opacityLoading:r}=e;return{[`${t}-button`]:{whiteSpace:"nowrap",[`&${n}-btn-group > ${n}-btn`]:{[`&-loading, &-loading + ${n}-btn`]:{cursor:"default",pointerEvents:"none",opacity:r},[`&:last-child:not(:first-child):not(${n}-btn-icon-only)`]:{paddingInline:o}}}}},sK=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:r}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}},cK=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:r,dropdownArrowOffset:i,sizePopupArrow:l,antCls:a,iconCls:s,motionDurationMid:u,dropdownPaddingVertical:c,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:g,fontSizeIcon:v,controlPaddingHorizontal:h,colorBgElevated:b,boxShadowPopoverArrow:y}=e;return[{[t]:m(m({},Ue(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:-r+l/2,zIndex:-9999,opacity:1e-4,content:'""'},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:v},[`${s}-down::before`]:{transition:`transform ${u}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[` + margin-bottom ${n} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",paddingInline:h,paddingBlock:v,[`${t}-icon`]:{marginInlineEnd:r,fontSize:c,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:o,color:d,fontSize:l},[`${t}-description`]:{display:"block"}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},_V=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:o,colorSuccessBg:r,colorWarning:i,colorWarningBorder:l,colorWarningBg:a,colorError:s,colorErrorBorder:u,colorErrorBg:c,colorInfo:d,colorInfoBorder:f,colorInfoBg:g}=e;return{[t]:{"&-success":pu(r,o,n,e,t),"&-info":pu(g,f,d,e,t),"&-warning":pu(a,l,i,e,t),"&-error":m(m({},pu(c,u,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},AV=e=>{const{componentCls:t,iconCls:n,motionDurationMid:o,marginXS:r,fontSizeIcon:i,colorIcon:l,colorIconHover:a}=e;return{[t]:{"&-action":{marginInlineStart:r},[`${t}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:i,lineHeight:`${i}px`,backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:l,transition:`color ${o}`,"&:hover":{color:a}}},"&-close-text":{color:l,transition:`color ${o}`,"&:hover":{color:a}}}}},RV=e=>[MV(e),_V(e),AV(e)],DV=Ke("Alert",e=>{const{fontSizeHeading3:t}=e,n=ke(e,{alertIconSizeLG:t,alertPaddingHorizontal:12});return[RV(n)]}),NV={success:Jo,info:Di,error:Dn,warning:er},BV={success:Np,info:kp,error:Fp,warning:Bp},kV=Sn("success","info","warning","error"),FV=()=>({type:W.oneOf(kV),closable:{type:Boolean,default:void 0},closeText:W.any,message:W.any,description:W.any,afterClose:Function,showIcon:{type:Boolean,default:void 0},prefixCls:String,banner:{type:Boolean,default:void 0},icon:W.any,closeIcon:W.any,onClose:Function}),LV=oe({compatConfig:{MODE:3},name:"AAlert",inheritAttrs:!1,props:FV(),setup(e,t){let{slots:n,emit:o,attrs:r,expose:i}=t;const{prefixCls:l,direction:a}=Te("alert",e),[s,u]=DV(l),c=ne(!1),d=ne(!1),f=ne(),g=y=>{y.preventDefault();const S=f.value;S.style.height=`${S.offsetHeight}px`,S.style.height=`${S.offsetHeight}px`,c.value=!0,o("close",y)},v=()=>{var y;c.value=!1,d.value=!0,(y=e.afterClose)===null||y===void 0||y.call(e)},h=P(()=>{const{type:y}=e;return y!==void 0?y:e.banner?"warning":"info"});i({animationEnd:v});const b=ne({});return()=>{var y,S,$,x,C,O,w,I,T,_;const{banner:E,closeIcon:A=(y=n.closeIcon)===null||y===void 0?void 0:y.call(n)}=e;let{closable:R,showIcon:z}=e;const M=(S=e.closeText)!==null&&S!==void 0?S:($=n.closeText)===null||$===void 0?void 0:$.call(n),N=(x=e.description)!==null&&x!==void 0?x:(C=n.description)===null||C===void 0?void 0:C.call(n),B=(O=e.message)!==null&&O!==void 0?O:(w=n.message)===null||w===void 0?void 0:w.call(n),k=(I=e.icon)!==null&&I!==void 0?I:(T=n.icon)===null||T===void 0?void 0:T.call(n),F=(_=n.action)===null||_===void 0?void 0:_.call(n);z=E&&z===void 0?!0:z;const L=(N?BV:NV)[h.value]||null;M&&(R=!0);const H=l.value,j=le(H,{[`${H}-${h.value}`]:!0,[`${H}-closing`]:c.value,[`${H}-with-description`]:!!N,[`${H}-no-icon`]:!z,[`${H}-banner`]:!!E,[`${H}-closable`]:R,[`${H}-rtl`]:a.value==="rtl",[u.value]:!0}),Y=R?p("button",{type:"button",onClick:g,class:`${H}-close-icon`,tabindex:0},[M?p("span",{class:`${H}-close-text`},[M]):A===void 0?p(Rn,null,null):A]):null,Q=k&&(Kt(k)?ut(k,{class:`${H}-icon`}):p("span",{class:`${H}-icon`},[k]))||p(L,{class:`${H}-icon`},null),U=Ro(`${H}-motion`,{appear:!1,css:!0,onAfterLeave:v,onBeforeLeave:ee=>{ee.style.maxHeight=`${ee.offsetHeight}px`},onLeave:ee=>{ee.style.maxHeight="0px"}});return s(d.value?null:p(un,U,{default:()=>[En(p("div",D(D({role:"alert"},r),{},{style:[r.style,b.value],class:[r.class,j],"data-show":!c.value,ref:f}),[z?Q:null,p("div",{class:`${H}-content`},[B?p("div",{class:`${H}-message`},[B]):null,N?p("div",{class:`${H}-description`},[N]):null]),F?p("div",{class:`${H}-action`},[F]):null,Y]),[[jn,!c.value]])]}))}}}),zV=It(LV),Dr=["xxxl","xxl","xl","lg","md","sm","xs"],HV=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)`,xxxl:`{min-width: ${e.screenXXXL}px}`});function wb(){const[,e]=Ur();return P(()=>{const t=HV(e.value),n=new Map;let o=-1,r={};return{matchHandlers:{},dispatch(i){return r=i,n.forEach(l=>l(r)),n.size>=1},subscribe(i){return n.size||this.register(),o+=1,n.set(o,i),i(r),o},unsubscribe(i){n.delete(i),n.size||this.unregister()},unregister(){Object.keys(t).forEach(i=>{const l=t[i],a=this.matchHandlers[l];a?.mql.removeListener(a?.listener)}),n.clear()},register(){Object.keys(t).forEach(i=>{const l=t[i],a=u=>{let{matches:c}=u;this.dispatch(m(m({},r),{[i]:c}))},s=window.matchMedia(l);s.addListener(a),this.matchHandlers[l]={mql:s,listener:a},a(s)})},responsiveMap:t}})}function Ua(){const e=ne({});let t=null;const n=wb();return je(()=>{t=n.value.subscribe(o=>{e.value=o})}),$n(()=>{n.value.unsubscribe(t)}),e}function io(e){const t=ne();return Le(()=>{t.value=e()},{flush:"sync"}),t}const jV=e=>{const{antCls:t,componentCls:n,iconCls:o,avatarBg:r,avatarColor:i,containerSize:l,containerSizeLG:a,containerSizeSM:s,textFontSize:u,textFontSizeLG:c,textFontSizeSM:d,borderRadius:f,borderRadiusLG:g,borderRadiusSM:v,lineWidth:h,lineType:b}=e,y=(S,$,x)=>({width:S,height:S,lineHeight:`${S-h*2}px`,borderRadius:"50%",[`&${n}-square`]:{borderRadius:x},[`${n}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${n}-icon`]:{fontSize:$,[`> ${o}`]:{margin:0}}});return{[n]:m(m(m(m({},Ue(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:r,border:`${h}px ${b} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),y(l,u,f)),{"&-lg":m({},y(a,c,g)),"&-sm":m({},y(s,d,v)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},VV=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:o,groupSpace:r}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:o}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:r}}}},L6=Ke("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,o=ke(e,{avatarBg:n,avatarColor:t});return[jV(o),VV(o)]},e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:o,fontSize:r,fontSizeLG:i,fontSizeXL:l,fontSizeHeading3:a,marginXS:s,marginXXS:u,colorBorderBg:c}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:o,textFontSize:Math.round((i+l)/2),textFontSizeLG:a,textFontSizeSM:r,groupSpace:u,groupOverlapping:-s,groupBorderColor:c}}),z6=Symbol("AvatarContextKey"),WV=()=>He(z6,{}),KV=e=>Xe(z6,e),GV=()=>({prefixCls:String,shape:{type:String,default:"circle"},size:{type:[Number,String,Object],default:()=>"default"},src:String,srcset:String,icon:W.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}}),dl=oe({compatConfig:{MODE:3},name:"AAvatar",inheritAttrs:!1,props:GV(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const r=ne(!0),i=ne(!1),l=ne(1),a=ne(null),s=ne(null),{prefixCls:u}=Te("avatar",e),[c,d]=L6(u),f=WV(),g=P(()=>e.size==="default"?f.size:e.size),v=Ua(),h=io(()=>{if(typeof e.size!="object")return;const $=Dr.find(C=>v.value[C]);return e.size[$]}),b=$=>h.value?{width:`${h.value}px`,height:`${h.value}px`,lineHeight:`${h.value}px`,fontSize:`${$?h.value/2:18}px`}:{},y=()=>{if(!a.value||!s.value)return;const $=a.value.offsetWidth,x=s.value.offsetWidth;if($!==0&&x!==0){const{gap:C=4}=e;C*2{const{loadError:$}=e;$?.()!==!1&&(r.value=!1)};return ye(()=>e.src,()=>{ot(()=>{r.value=!0,l.value=1})}),ye(()=>e.gap,()=>{ot(()=>{y()})}),je(()=>{ot(()=>{y(),i.value=!0})}),()=>{var $,x;const{shape:C,src:O,alt:w,srcset:I,draggable:T,crossOrigin:_}=e,E=($=f.shape)!==null&&$!==void 0?$:C,A=Zt(n,e,"icon"),R=u.value,z={[`${o.class}`]:!!o.class,[R]:!0,[`${R}-lg`]:g.value==="large",[`${R}-sm`]:g.value==="small",[`${R}-${E}`]:!0,[`${R}-image`]:O&&r.value,[`${R}-icon`]:A,[d.value]:!0},M=typeof g.value=="number"?{width:`${g.value}px`,height:`${g.value}px`,lineHeight:`${g.value}px`,fontSize:A?`${g.value/2}px`:"18px"}:{},N=(x=n.default)===null||x===void 0?void 0:x.call(n);let B;if(O&&r.value)B=p("img",{draggable:T,src:O,srcset:I,onError:S,alt:w,crossorigin:_},null);else if(A)B=A;else if(i.value||l.value!==1){const k=`scale(${l.value}) translateX(-50%)`,F={msTransform:k,WebkitTransform:k,transform:k},L=typeof g.value=="number"?{lineHeight:`${g.value}px`}:{};B=p(Mo,{onResize:y},{default:()=>[p("span",{class:`${R}-string`,ref:a,style:m(m({},L),F)},[N])]})}else B=p("span",{class:`${R}-string`,ref:a,style:{opacity:0}},[N]);return c(p("span",D(D({},o),{},{ref:s,class:z,style:[M,b(!!A),o.style]}),[B]))}}}),So={adjustX:1,adjustY:1},$o=[0,0],H6={left:{points:["cr","cl"],overflow:So,offset:[-4,0],targetOffset:$o},right:{points:["cl","cr"],overflow:So,offset:[4,0],targetOffset:$o},top:{points:["bc","tc"],overflow:So,offset:[0,-4],targetOffset:$o},bottom:{points:["tc","bc"],overflow:So,offset:[0,4],targetOffset:$o},topLeft:{points:["bl","tl"],overflow:So,offset:[0,-4],targetOffset:$o},leftTop:{points:["tr","tl"],overflow:So,offset:[-4,0],targetOffset:$o},topRight:{points:["br","tr"],overflow:So,offset:[0,-4],targetOffset:$o},rightTop:{points:["tl","tr"],overflow:So,offset:[4,0],targetOffset:$o},bottomRight:{points:["tr","br"],overflow:So,offset:[0,4],targetOffset:$o},rightBottom:{points:["bl","br"],overflow:So,offset:[4,0],targetOffset:$o},bottomLeft:{points:["tl","bl"],overflow:So,offset:[0,4],targetOffset:$o},leftBottom:{points:["br","bl"],overflow:So,offset:[-4,0],targetOffset:$o}},XV={prefixCls:String,id:String,overlayInnerStyle:W.any},UV=oe({compatConfig:{MODE:3},name:"TooltipContent",props:XV,setup(e,t){let{slots:n}=t;return()=>{var o;return p("div",{class:`${e.prefixCls}-inner`,id:e.id,role:"tooltip",style:e.overlayInnerStyle},[(o=n.overlay)===null||o===void 0?void 0:o.call(n)])}}});var YV=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:W.string.def("rc-tooltip"),mouseEnterDelay:W.number.def(.1),mouseLeaveDelay:W.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:W.object.def(()=>({})),arrowContent:W.any.def(null),tipId:String,builtinPlacements:W.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function,arrow:{type:Boolean,default:!0}},setup(e,t){let{slots:n,attrs:o,expose:r}=t;const i=ne(),l=()=>{const{prefixCls:c,tipId:d,overlayInnerStyle:f}=e;return[e.arrow?p("div",{class:`${c}-arrow`,key:"arrow"},[Zt(n,e,"arrowContent")]):null,p(UV,{key:"content",prefixCls:c,id:d,overlayInnerStyle:f},{overlay:n.overlay})]};r({getPopupDomNode:()=>i.value.getPopupDomNode(),triggerDOM:i,forcePopupAlign:()=>{var c;return(c=i.value)===null||c===void 0?void 0:c.forcePopupAlign()}});const s=ne(!1),u=ne(!1);return Le(()=>{const{destroyTooltipOnHide:c}=e;if(typeof c=="boolean")s.value=c;else if(c&&typeof c=="object"){const{keepParent:d}=c;s.value=d===!0,u.value=d===!1}}),()=>{const{overlayClassName:c,trigger:d,mouseEnterDelay:f,mouseLeaveDelay:g,overlayStyle:v,prefixCls:h,afterVisibleChange:b,transitionName:y,animation:S,placement:$,align:x,destroyTooltipOnHide:C,defaultVisible:O}=e,w=YV(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"]),I=m({},w);e.visible!==void 0&&(I.popupVisible=e.visible);const T=m(m(m({popupClassName:c,prefixCls:h,action:d,builtinPlacements:H6,popupPlacement:$,popupAlign:x,afterPopupVisibleChange:b,popupTransitionName:y,popupAnimation:S,defaultPopupVisible:O,destroyPopupOnHide:s.value,autoDestroy:u.value,mouseLeaveDelay:g,popupStyle:v,mouseEnterDelay:f},I),o),{onPopupVisibleChange:e.onVisibleChange||NC,onPopupAlign:e.onPopupAlign||NC,ref:i,arrow:!!e.arrow,popup:l()});return p(Rl,T,{default:n.default})}}}),Ob=(()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:De(),overlayInnerStyle:De(),overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},arrow:{type:[Boolean,Object],default:!0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:De(),builtinPlacements:De(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function})),ZV={adjustX:1,adjustY:1},BC={adjustX:0,adjustY:0},QV=[0,0];function kC(e){return typeof e=="boolean"?e?ZV:BC:m(m({},BC),e)}function Pb(e){const{arrowWidth:t=4,horizontalArrowShift:n=16,verticalArrowShift:o=8,autoAdjustOverflow:r,arrowPointAtCenter:i}=e,l={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(n+t),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(o+t)]},topRight:{points:["br","tc"],offset:[n+t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(o+t)]},bottomRight:{points:["tr","bc"],offset:[n+t,4]},rightBottom:{points:["bl","cr"],offset:[4,o+t]},bottomLeft:{points:["tl","bc"],offset:[-(n+t),4]},leftBottom:{points:["br","cl"],offset:[-4,o+t]}};return Object.keys(l).forEach(a=>{l[a]=i?m(m({},l[a]),{overflow:kC(r),targetOffset:QV}):m(m({},H6[a]),{overflow:kC(r)}),l[a].ignoreShake=!0}),l}function rf(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(let t=0,n=e.length;t`${e}-inverse`),eW=["success","processing","error","default","warning"];function Lp(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[...JV,...rc].includes(e):rc.includes(e)}function tW(e){return eW.includes(e)}function nW(e,t){const n=Lp(t),o=le({[`${e}-${t}`]:t&&n}),r={},i={};return t&&!n&&(r.background=t,i["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:i}}function gu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return e.map(n=>`${t}${n}`).join(",")}const Ib=8;function j6(e){const t=Ib,{sizePopupArrow:n,contentRadius:o,borderRadiusOuter:r,limitVerticalRadius:i}=e,l=n/2-Math.ceil(r*(Math.sqrt(2)-1)),a=(o>12?o+2:12)-l,s=i?t-l:a;return{dropdownArrowOffset:a,dropdownArrowOffsetVertical:s}}function Tb(e,t){const{componentCls:n,sizePopupArrow:o,marginXXS:r,borderRadiusXS:i,borderRadiusOuter:l,boxShadowPopoverArrow:a}=e,{colorBg:s,showArrowCls:u,contentRadius:c=e.borderRadiusLG,limitVerticalRadius:d}=t,{dropdownArrowOffsetVertical:f,dropdownArrowOffset:g}=j6({sizePopupArrow:o,contentRadius:c,borderRadiusOuter:l,limitVerticalRadius:d}),v=o/2+r;return{[n]:{[`${n}-arrow`]:[m(m({position:"absolute",zIndex:1,display:"block"},I0(o,i,l,s,a)),{"&:before":{background:s}})],[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:g}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:g}},[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:g}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:g}},[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:f},[`&-placement-leftBottom ${n}-arrow`]:{bottom:f},[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:f},[`&-placement-rightBottom ${n}-arrow`]:{bottom:f},[gu(["&-placement-topLeft","&-placement-top","&-placement-topRight"].map(h=>h+=":not(&-arrow-hidden)"),u)]:{paddingBottom:v},[gu(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"].map(h=>h+=":not(&-arrow-hidden)"),u)]:{paddingTop:v},[gu(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"].map(h=>h+=":not(&-arrow-hidden)"),u)]:{paddingRight:{_skip_check_:!0,value:v}},[gu(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"].map(h=>h+=":not(&-arrow-hidden)"),u)]:{paddingLeft:{_skip_check_:!0,value:v}}}}}const oW=e=>{const{componentCls:t,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:r,tooltipBorderRadius:i,zIndexPopup:l,controlHeight:a,boxShadowSecondary:s,paddingSM:u,paddingXS:c,tooltipRadiusOuter:d}=e;return[{[t]:m(m(m(m({},Ue(e)),{position:"absolute",zIndex:l,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":r,[`${t}-inner`]:{minWidth:a,minHeight:a,padding:`${u/2}px ${c}px`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:r,borderRadius:i,boxShadow:s},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min(i,Ib)}},[`${t}-content`]:{position:"relative"}}),Wd(e,(f,g)=>{let{darkColor:v}=g;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:v},[`${t}-arrow`]:{"--antd-arrow-background-color":v}}}})),{"&-rtl":{direction:"rtl"}})},Tb(ke(e,{borderRadiusOuter:d}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:i,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none"}}]},rW=((e,t)=>Ke("Tooltip",o=>{if(t?.value===!1)return[];const{borderRadius:r,colorTextLightSolid:i,colorBgDefault:l,borderRadiusOuter:a}=o,s=ke(o,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:r,tooltipBg:l,tooltipRadiusOuter:a>4?4:a});return[oW(s),Ga(o,"zoom-big-fast")]},o=>{let{zIndexPopupBase:r,colorBgSpotlight:i}=o;return{zIndexPopup:r+70,colorBgDefault:i}})(e)),iW=(e,t)=>{const n={},o=m({},e);return t.forEach(r=>{e&&r in e&&(n[r]=e[r],delete o[r])}),{picked:n,omitted:o}},V6=()=>m(m({},Ob()),{title:W.any}),W6=()=>({trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),lW=oe({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:Ze(V6(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r,expose:i}=t;const{prefixCls:l,getPopupContainer:a,direction:s,rootPrefixCls:u}=Te("tooltip",e),c=P(()=>{var _;return(_=e.open)!==null&&_!==void 0?_:e.visible}),d=re(rf([e.open,e.visible])),f=re();let g;ye(c,_=>{qe.cancel(g),g=qe(()=>{d.value=!!_})});const v=()=>{var _;const E=(_=e.title)!==null&&_!==void 0?_:n.title;return!E&&E!==0},h=_=>{const E=v();c.value===void 0&&(d.value=E?!1:_),E||(o("update:visible",_),o("visibleChange",_),o("update:open",_),o("openChange",_))};i({getPopupDomNode:()=>f.value.getPopupDomNode(),open:d,forcePopupAlign:()=>{var _;return(_=f.value)===null||_===void 0?void 0:_.forcePopupAlign()}});const y=P(()=>{var _;const{builtinPlacements:E,autoAdjustOverflow:A,arrow:R,arrowPointAtCenter:z}=e;let M=z;return typeof R=="object"&&(M=(_=R.pointAtCenter)!==null&&_!==void 0?_:z),E||Pb({arrowPointAtCenter:M,autoAdjustOverflow:A})}),S=_=>_||_==="",$=_=>{const E=_.type;if(typeof E=="object"&&_.props&&((E.__ANT_BUTTON===!0||E==="button")&&S(_.props.disabled)||E.__ANT_SWITCH===!0&&(S(_.props.disabled)||S(_.props.loading))||E.__ANT_RADIO===!0&&S(_.props.disabled))){const{picked:A,omitted:R}=iW(SO(_),["position","left","right","top","bottom","float","display","zIndex"]),z=m(m({display:"inline-block"},A),{cursor:"not-allowed",lineHeight:1,width:_.props&&_.props.block?"100%":void 0}),M=m(m({},R),{pointerEvents:"none"}),N=ut(_,{style:M},!0);return p("span",{style:z,class:`${l.value}-disabled-compatible-wrapper`},[N])}return _},x=()=>{var _,E;return(_=e.title)!==null&&_!==void 0?_:(E=n.title)===null||E===void 0?void 0:E.call(n)},C=(_,E)=>{const A=y.value,R=Object.keys(A).find(z=>{var M,N;return A[z].points[0]===((M=E.points)===null||M===void 0?void 0:M[0])&&A[z].points[1]===((N=E.points)===null||N===void 0?void 0:N[1])});if(R){const z=_.getBoundingClientRect(),M={top:"50%",left:"50%"};R.indexOf("top")>=0||R.indexOf("Bottom")>=0?M.top=`${z.height-E.offset[1]}px`:(R.indexOf("Top")>=0||R.indexOf("bottom")>=0)&&(M.top=`${-E.offset[1]}px`),R.indexOf("left")>=0||R.indexOf("Right")>=0?M.left=`${z.width-E.offset[0]}px`:(R.indexOf("right")>=0||R.indexOf("Left")>=0)&&(M.left=`${-E.offset[0]}px`),_.style.transformOrigin=`${M.left} ${M.top}`}},O=P(()=>nW(l.value,e.color)),w=P(()=>r["data-popover-inject"]),[I,T]=rW(l,P(()=>!w.value));return()=>{var _,E;const{openClassName:A,overlayClassName:R,overlayStyle:z,overlayInnerStyle:M}=e;let N=(E=At((_=n.default)===null||_===void 0?void 0:_.call(n)))!==null&&E!==void 0?E:null;N=N.length===1?N[0]:N;let B=d.value;if(c.value===void 0&&v()&&(B=!1),!N)return null;const k=$(Kt(N)&&!rA(N)?N:p("span",null,[N])),F=le({[A||`${l.value}-open`]:!0,[k.props&&k.props.class]:k.props&&k.props.class}),L=le(R,{[`${l.value}-rtl`]:s.value==="rtl"},O.value.className,T.value),H=m(m({},O.value.overlayStyle),M),j=O.value.arrowStyle,Y=m(m(m({},r),e),{prefixCls:l.value,arrow:!!e.arrow,getPopupContainer:a?.value,builtinPlacements:y.value,visible:B,ref:f,overlayClassName:L,overlayStyle:m(m({},j),z),overlayInnerStyle:H,onVisibleChange:h,onPopupAlign:C,transitionName:_n(u.value,"zoom-big-fast",e.transitionName)});return I(p(qV,Y,{default:()=>[d.value?ut(k,{class:F}):k],arrowContent:()=>p("span",{class:`${l.value}-arrow-content`},null),overlay:x}))}}}),Qn=It(lW),aW=e=>{const{componentCls:t,popoverBg:n,popoverColor:o,width:r,fontWeightStrong:i,popoverPadding:l,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:u,zIndexPopup:c,marginXS:d,colorBgElevated:f}=e;return[{[t]:m(m({},Ue(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--antd-arrow-background-color":f,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:n,backgroundClip:"padding-box",borderRadius:u,boxShadow:a,padding:l},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:i},[`${t}-inner-content`]:{color:o}})},Tb(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",[`${t}-content`]:{display:"inline-block"}}}]},sW=e=>{const{componentCls:t}=e;return{[t]:rc.map(n=>{const o=e[`${n}-6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}})}},cW=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorSplit:r,paddingSM:i,controlHeight:l,fontSize:a,lineHeight:s,padding:u}=e,c=l-Math.round(a*s),d=c/2,f=c/2-n,g=u;return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${d}px ${g}px ${f}px`,borderBottom:`${n}px ${o} ${r}`},[`${t}-inner-content`]:{padding:`${i}px ${g}px`}}}},uW=Ke("Popover",e=>{const{colorBgElevated:t,colorText:n,wireframe:o}=e,r=ke(e,{popoverBg:t,popoverColor:n,popoverPadding:12});return[aW(r),sW(r),o&&cW(r),Ga(r,"zoom-big")]},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+30,width:177}}),dW=()=>m(m({},Ob()),{content:yt(),title:yt()}),fW=oe({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:Ze(dW(),m(m({},W6()),{trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(e,t){let{expose:n,slots:o,attrs:r}=t;const i=re();fo(e.visible===void 0),n({getPopupDomNode:()=>{var f,g;return(g=(f=i.value)===null||f===void 0?void 0:f.getPopupDomNode)===null||g===void 0?void 0:g.call(f)}});const{prefixCls:l,configProvider:a}=Te("popover",e),[s,u]=uW(l),c=P(()=>a.getPrefixCls()),d=()=>{var f,g;const{title:v=At((f=o.title)===null||f===void 0?void 0:f.call(o)),content:h=At((g=o.content)===null||g===void 0?void 0:g.call(o))}=e,b=!!(Array.isArray(v)?v.length:v),y=!!(Array.isArray(h)?h.length:v);return!b&&!y?null:p(Ve,null,[b&&p("div",{class:`${l.value}-title`},[v]),p("div",{class:`${l.value}-inner-content`},[h])])};return()=>{const f=le(e.overlayClassName,u.value);return s(p(Qn,D(D(D({},tt(e,["title","content"])),r),{},{prefixCls:l.value,ref:i,overlayClassName:f,transitionName:_n(c.value,"zoom-big",e.transitionName),"data-popover-inject":!0}),{title:d,default:o.default}))}}}),Eb=It(fW),pW=()=>({prefixCls:String,maxCount:Number,maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:"top"},maxPopoverTrigger:String,size:{type:[Number,String,Object],default:"default"},shape:{type:String,default:"circle"}}),lf=oe({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:pW(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Te("avatar",e),l=P(()=>`${r.value}-group`),[a,s]=L6(r);return Le(()=>{const u={size:e.size,shape:e.shape};KV(u)}),()=>{const{maxPopoverPlacement:u="top",maxCount:c,maxStyle:d,maxPopoverTrigger:f="hover",shape:g}=e,v={[l.value]:!0,[`${l.value}-rtl`]:i.value==="rtl",[`${o.class}`]:!!o.class,[s.value]:!0},h=Zt(n,e),b=bt(h).map((S,$)=>ut(S,{key:`avatar-key-${$}`})),y=b.length;if(c&&c[p(dl,{style:d,shape:g},{default:()=>[`+${y-c}`]})]})),a(p("div",D(D({},o),{},{class:v,style:o.style}),[S]))}return a(p("div",D(D({},o),{},{class:v,style:o.style}),[b]))}}});dl.Group=lf;dl.install=function(e){return e.component(dl.name,dl),e.component(lf.name,lf),e};function FC(e){let{prefixCls:t,value:n,current:o,offset:r=0}=e,i;return r&&(i={position:"absolute",top:`${r}00%`,left:0}),p("p",{style:i,class:le(`${t}-only-unit`,{current:o})},[n])}function gW(e,t,n){let o=e,r=0;for(;(o+10)%10!==t;)o+=n,r+=n;return r}const hW=oe({compatConfig:{MODE:3},name:"SingleNumber",props:{prefixCls:String,value:String,count:Number},setup(e){const t=P(()=>Number(e.value)),n=P(()=>Math.abs(e.count)),o=ct({prevValue:t.value,prevCount:n.value}),r=()=>{o.prevValue=t.value,o.prevCount=n.value},i=re();return ye(t,()=>{clearTimeout(i.value),i.value=setTimeout(()=>{r()},1e3)},{flush:"post"}),$n(()=>{clearTimeout(i.value)}),()=>{let l,a={};const s=t.value;if(o.prevValue===s||Number.isNaN(s)||Number.isNaN(o.prevValue))l=[FC(m(m({},e),{current:!0}))],a={transition:"none"};else{l=[];const u=s+10,c=[];for(let g=s;g<=u;g+=1)c.push(g);const d=c.findIndex(g=>g%10===o.prevValue);l=c.map((g,v)=>{const h=g%10;return FC(m(m({},e),{value:h,offset:v-d,current:v===d}))});const f=o.prevCountr()},[l])}}});var vW=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var i;const l=m(m({},e),n),{prefixCls:a,count:s,title:u,show:c,component:d="sup",class:f,style:g}=l,v=vW(l,["prefixCls","count","title","show","component","class","style"]),h=m(m({},v),{style:g,"data-show":e.show,class:le(r.value,f),title:u});let b=s;if(s&&Number(s)%1===0){const S=String(s).split("");b=S.map(($,x)=>p(hW,{prefixCls:r.value,count:Number(s),value:$,key:S.length-x},null))}g&&g.borderColor&&(h.style=m(m({},g),{boxShadow:`0 0 0 1px ${g.borderColor} inset`}));const y=At((i=o.default)===null||i===void 0?void 0:i.call(o));return y&&y.length?ut(y,{class:le(`${r.value}-custom-component`)},!1):p(d,h,{default:()=>[b]})}}}),yW=new nt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),SW=new nt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),$W=new nt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),CW=new nt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),xW=new nt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),wW=new nt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),OW=e=>{const{componentCls:t,iconCls:n,antCls:o,badgeFontHeight:r,badgeShadowSize:i,badgeHeightSm:l,motionDurationSlow:a,badgeStatusSize:s,marginXS:u,badgeRibbonOffset:c}=e,d=`${o}-scroll-number`,f=`${o}-ribbon`,g=`${o}-ribbon-wrapper`,v=Wd(e,(b,y)=>{let{darkColor:S}=y;return{[`&${t} ${t}-color-${b}`]:{background:S,[`&:not(${t}-count)`]:{color:S}}}}),h=Wd(e,(b,y)=>{let{darkColor:S}=y;return{[`&${f}-color-${b}`]:{background:S,color:S}}});return{[t]:m(m(m(m({},Ue(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{zIndex:e.badgeZIndex,minWidth:e.badgeHeight,height:e.badgeHeight,color:e.badgeTextColor,fontWeight:e.badgeFontWeight,fontSize:e.badgeFontSize,lineHeight:`${e.badgeHeight}px`,whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:e.badgeHeight/2,boxShadow:`0 0 0 ${i}px ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:l,height:l,fontSize:e.badgeFontSizeSm,lineHeight:`${l}px`,borderRadius:l/2},[`${t}-multiple-words`]:{padding:`0 ${e.paddingXS}px`},[`${t}-dot`]:{zIndex:e.badgeZIndex,width:e.badgeDotSize,minWidth:e.badgeDotSize,height:e.badgeDotSize,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${i}px ${e.badgeShadowColor}`},[`${t}-dot${d}`]:{transition:`background ${a}`},[`${t}-count, ${t}-dot, ${d}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:wW,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorPrimary,backgroundColor:e.colorPrimary,"&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:yW,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:u,color:e.colorText,fontSize:e.fontSize}}}),v),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:SW,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:$W,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:CW,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:xW,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${d}-custom-component, ${t}-count`]:{transform:"none"},[`${d}-custom-component, ${d}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[`${d}`]:{overflow:"hidden",[`${d}-only`]:{position:"relative",display:"inline-block",height:e.badgeHeight,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${d}-only-unit`]:{height:e.badgeHeight,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${d}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${d}-custom-component`]:{transform:"translate(-50%, -50%)"}}}),[`${g}`]:{position:"relative"},[`${f}`]:m(m(m(m({},Ue(e)),{position:"absolute",top:u,padding:`0 ${e.paddingXS}px`,color:e.colorPrimary,lineHeight:`${r}px`,whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${f}-text`]:{color:e.colorTextLightSolid},[`${f}-corner`]:{position:"absolute",top:"100%",width:c,height:c,color:"currentcolor",border:`${c/2}px solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),h),{[`&${f}-placement-end`]:{insetInlineEnd:-c,borderEndEndRadius:0,[`${f}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${f}-placement-start`]:{insetInlineStart:-c,borderEndStartRadius:0,[`${f}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},K6=Ke("Badge",e=>{const{fontSize:t,lineHeight:n,fontSizeSM:o,lineWidth:r,marginXS:i,colorBorderBg:l}=e,a=Math.round(t*n),s=r,u="auto",c=a-2*s,d=e.colorBgContainer,f="normal",g=o,v=e.colorError,h=e.colorErrorHover,b=t,y=o/2,S=o,$=o/2,x=ke(e,{badgeFontHeight:a,badgeShadowSize:s,badgeZIndex:u,badgeHeight:c,badgeTextColor:d,badgeFontWeight:f,badgeFontSize:g,badgeColor:v,badgeColorHover:h,badgeShadowColor:l,badgeHeightSm:b,badgeDotSize:y,badgeFontSizeSm:S,badgeStatusSize:$,badgeProcessingDuration:"1.2s",badgeRibbonOffset:i,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"});return[OW(x)]});var PW=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefix:String,color:{type:String},text:W.any,placement:{type:String,default:"end"}}),af=oe({compatConfig:{MODE:3},name:"ABadgeRibbon",inheritAttrs:!1,props:IW(),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,direction:i}=Te("ribbon",e),[l,a]=K6(r),s=P(()=>Lp(e.color,!1)),u=P(()=>[r.value,`${r.value}-placement-${e.placement}`,{[`${r.value}-rtl`]:i.value==="rtl",[`${r.value}-color-${e.color}`]:s.value}]);return()=>{var c,d;const{class:f,style:g}=n,v=PW(n,["class","style"]),h={},b={};return e.color&&!s.value&&(h.background=e.color,b.color=e.color),l(p("div",D({class:`${r.value}-wrapper ${a.value}`},v),[(c=o.default)===null||c===void 0?void 0:c.call(o),p("div",{class:[u.value,f,a.value],style:m(m({},h),g)},[p("span",{class:`${r.value}-text`},[e.text||((d=o.text)===null||d===void 0?void 0:d.call(o))]),p("div",{class:`${r.value}-corner`,style:b},null)])]))}}}),sf=e=>!isNaN(parseFloat(e))&&isFinite(e),TW=()=>({count:W.any.def(null),showZero:{type:Boolean,default:void 0},overflowCount:{type:Number,default:99},dot:{type:Boolean,default:void 0},prefixCls:String,scrollNumberPrefixCls:String,status:{type:String},size:{type:String,default:"default"},color:String,text:W.any,offset:Array,numberStyle:{type:Object,default:void 0},title:String}),Bs=oe({compatConfig:{MODE:3},name:"ABadge",Ribbon:af,inheritAttrs:!1,props:TW(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Te("badge",e),[l,a]=K6(r),s=P(()=>e.count>e.overflowCount?`${e.overflowCount}+`:e.count),u=P(()=>s.value==="0"||s.value===0),c=P(()=>e.count===null||u.value&&!e.showZero),d=P(()=>(e.status!==null&&e.status!==void 0||e.color!==null&&e.color!==void 0)&&c.value),f=P(()=>e.dot&&!u.value),g=P(()=>f.value?"":s.value),v=P(()=>(g.value===null||g.value===void 0||g.value===""||u.value&&!e.showZero)&&!f.value),h=re(e.count),b=re(g.value),y=re(f.value);ye([()=>e.count,g,f],()=>{v.value||(h.value=e.count,b.value=g.value,y.value=f.value)},{immediate:!0});const S=P(()=>Lp(e.color,!1)),$=P(()=>({[`${r.value}-status-dot`]:d.value,[`${r.value}-status-${e.status}`]:!!e.status,[`${r.value}-color-${e.color}`]:S.value})),x=P(()=>e.color&&!S.value?{background:e.color,color:e.color}:{}),C=P(()=>({[`${r.value}-dot`]:y.value,[`${r.value}-count`]:!y.value,[`${r.value}-count-sm`]:e.size==="small",[`${r.value}-multiple-words`]:!y.value&&b.value&&b.value.toString().length>1,[`${r.value}-status-${e.status}`]:!!e.status,[`${r.value}-color-${e.color}`]:S.value}));return()=>{var O,w;const{offset:I,title:T,color:_}=e,E=o.style,A=Zt(n,e,"text"),R=r.value,z=h.value;let M=bt((O=n.default)===null||O===void 0?void 0:O.call(n));M=M.length?M:null;const N=!!(!v.value||n.count),B=(()=>{if(!I)return m({},E);const Q={marginTop:sf(I[1])?`${I[1]}px`:I[1]};return i.value==="rtl"?Q.left=`${parseInt(I[0],10)}px`:Q.right=`${-parseInt(I[0],10)}px`,m(m({},Q),E)})(),k=T??(typeof z=="string"||typeof z=="number"?z:void 0),F=N||!A?null:p("span",{class:`${R}-status-text`},[A]),L=typeof z=="object"||z===void 0&&n.count?ut(z??((w=n.count)===null||w===void 0?void 0:w.call(n)),{style:B},!1):null,H=le(R,{[`${R}-status`]:d.value,[`${R}-not-a-wrapper`]:!M,[`${R}-rtl`]:i.value==="rtl"},o.class,a.value);if(!M&&d.value){const Q=B.color;return l(p("span",D(D({},o),{},{class:H,style:B}),[p("span",{class:$.value,style:x.value},null),p("span",{style:{color:Q},class:`${R}-status-text`},[A])]))}const j=Ro(M?`${R}-zoom`:"",{appear:!1});let Y=m(m({},B),e.numberStyle);return _&&!S.value&&(Y=Y||{},Y.background=_),l(p("span",D(D({},o),{},{class:H}),[M,p(un,j,{default:()=>[En(p(bW,{prefixCls:e.scrollNumberPrefixCls,show:N,class:C.value,count:b.value,title:k,style:Y,key:"scrollNumber"},{default:()=>[L]}),[[jn,N]])]}),F]))}}});Bs.install=function(e){return e.component(Bs.name,Bs),e.component(af.name,af),e};const Wl={adjustX:1,adjustY:1},Kl=[0,0],EW={topLeft:{points:["bl","tl"],overflow:Wl,offset:[0,-4],targetOffset:Kl},topCenter:{points:["bc","tc"],overflow:Wl,offset:[0,-4],targetOffset:Kl},topRight:{points:["br","tr"],overflow:Wl,offset:[0,-4],targetOffset:Kl},bottomLeft:{points:["tl","bl"],overflow:Wl,offset:[0,4],targetOffset:Kl},bottomCenter:{points:["tc","bc"],overflow:Wl,offset:[0,4],targetOffset:Kl},bottomRight:{points:["tr","br"],overflow:Wl,offset:[0,4],targetOffset:Kl}};var MW=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.visible,g=>{g!==void 0&&(i.value=g)});const l=re();r({triggerRef:l});const a=g=>{e.visible===void 0&&(i.value=!1),o("overlayClick",g)},s=g=>{e.visible===void 0&&(i.value=g),o("visibleChange",g)},u=()=>{var g;const v=(g=n.overlay)===null||g===void 0?void 0:g.call(n),h={prefixCls:`${e.prefixCls}-menu`,onClick:a};return p(Ve,{key:mO},[e.arrow&&p("div",{class:`${e.prefixCls}-arrow`},null),ut(v,h,!1)])},c=P(()=>{const{minOverlayWidthMatchTrigger:g=!e.alignPoint}=e;return g}),d=()=>{var g;const v=(g=n.default)===null||g===void 0?void 0:g.call(n);return i.value&&v?ut(v[0],{class:e.openClassName||`${e.prefixCls}-open`},!1):v},f=P(()=>!e.hideAction&&e.trigger.indexOf("contextmenu")!==-1?["click"]:e.hideAction);return()=>{const{prefixCls:g,arrow:v,showAction:h,overlayStyle:b,trigger:y,placement:S,align:$,getPopupContainer:x,transitionName:C,animation:O,overlayClassName:w}=e,I=MW(e,["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"]);return p(Rl,D(D({},I),{},{prefixCls:g,ref:l,popupClassName:le(w,{[`${g}-show-arrow`]:v}),popupStyle:b,builtinPlacements:EW,action:y,showAction:h,hideAction:f.value||[],popupPlacement:S,popupAlign:$,popupTransitionName:C,popupAnimation:O,popupVisible:i.value,stretch:c.value?"minWidth":"",onPopupVisibleChange:s,getPopupContainer:x}),{popup:u,default:d})}}}),_W=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}}}}},AW=Ke("Wave",e=>[_W(e)]);function RW(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]):!0}function dh(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&RW(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function DW(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return dh(t)?t:dh(n)?n:dh(o)?o:null}function fh(e){return Number.isNaN(e)?0:e}const NW=oe({props:{target:De(),className:String},setup(e){const t=ne(null),[n,o]=ht(null),[r,i]=ht([]),[l,a]=ht(0),[s,u]=ht(0),[c,d]=ht(0),[f,g]=ht(0),[v,h]=ht(!1);function b(){const{target:w}=e,I=getComputedStyle(w);o(DW(w));const T=I.position==="static",{borderLeftWidth:_,borderTopWidth:E}=I;a(T?w.offsetLeft:fh(-parseFloat(_))),u(T?w.offsetTop:fh(-parseFloat(E))),d(w.offsetWidth),g(w.offsetHeight);const{borderTopLeftRadius:A,borderTopRightRadius:R,borderBottomLeftRadius:z,borderBottomRightRadius:M}=I;i([A,R,M,z].map(N=>fh(parseFloat(N))))}let y,S,$;const x=()=>{clearTimeout($),qe.cancel(S),y?.disconnect()},C=()=>{var w;const I=(w=t.value)===null||w===void 0?void 0:w.parentElement;I&&(Oi(null,I),I.parentElement&&I.parentElement.removeChild(I))};je(()=>{x(),$=setTimeout(()=>{C()},5e3);const{target:w}=e;w&&(S=qe(()=>{b(),h(!0)}),typeof ResizeObserver<"u"&&(y=new ResizeObserver(b),y.observe(w)))}),Qe(()=>{x()});const O=w=>{w.propertyName==="opacity"&&C()};return()=>{if(!v.value)return null;const w={left:`${l.value}px`,top:`${s.value}px`,width:`${c.value}px`,height:`${f.value}px`,borderRadius:r.value.map(I=>`${I}px`).join(" ")};return n&&(w["--wave-color"]=n.value),p(un,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[p("div",{ref:t,class:e.className,style:w,onTransitionend:O},null)]})}}});function BW(e,t){const n=document.createElement("div");return n.style.position="absolute",n.style.left="0px",n.style.top="0px",e?.insertBefore(n,e?.firstChild),Oi(p(NW,{target:e,className:t},null),n),()=>{Oi(null,n),n.parentElement&&n.parentElement.removeChild(n)}}function kW(e,t){const n=pn();let o;function r(){var i;const l=Hn(n);o?.(),!(!((i=t?.value)===null||i===void 0)&&i.disabled||!l)&&(o=BW(l,e.value))}return Qe(()=>{o?.()}),r}const Mb=oe({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(e,t){let{slots:n}=t;const o=pn(),{prefixCls:r,wave:i}=Te("wave",e),[,l]=AW(r),a=kW(P(()=>le(r.value,l.value)),i);let s;const u=()=>{Hn(o).removeEventListener("click",s,!0)};return je(()=>{ye(()=>e.disabled,()=>{u(),ot(()=>{const c=Hn(o);c?.removeEventListener("click",s,!0),!(!c||c.nodeType!==1||e.disabled)&&(s=d=>{d.target.tagName==="INPUT"||!mp(d.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||a()},c.addEventListener("click",s,!0))})},{immediate:!0,flush:"post"})}),Qe(()=>{u()}),()=>{var c;return(c=n.default)===null||c===void 0?void 0:c.call(n)[0]}}});function cf(e){return e==="danger"?{danger:!0}:{type:e}}const X6=()=>({prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:()=>!1},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:W.any,href:String,target:String,title:String,onClick:bl(),onMousedown:bl()}),LC=e=>{e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},zC=e=>{ot(()=>{e&&(e.style.width=`${e.scrollWidth}px`,e.style.opacity="1",e.style.transform="scale(1)")})},HC=e=>{e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)},FW=oe({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup(e){return()=>{const{existIcon:t,prefixCls:n,loading:o}=e;if(t)return p("span",{class:`${n}-loading-icon`},[p(Wn,null,null)]);const r=!!o;return p(un,{name:`${n}-loading-icon-motion`,onBeforeEnter:LC,onEnter:zC,onAfterEnter:HC,onBeforeLeave:zC,onLeave:i=>{setTimeout(()=>{LC(i)})},onAfterLeave:HC},{default:()=>[r?p("span",{class:`${n}-loading-icon`},[p(Wn,null,null)]):null]})}}}),jC=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),LW=e=>{const{componentCls:t,fontSize:n,lineWidth:o,colorPrimaryHover:r,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:-o,[`&, & > ${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}},jC(`${t}-primary`,r),jC(`${t}-danger`,i)]}};function zW(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function HW(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function jW(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:m(m({},zW(e,t)),HW(e.componentCls,t))}}const VW=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":m({},Kr(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,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:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Gr=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),WW=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),KW=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),qv=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),uf=(e,t,n,o,r,i,l)=>({[`&${e}-background-ghost`]:m(m({color:t||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},Gr(m({backgroundColor:"transparent"},i),m({backgroundColor:"transparent"},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:r||void 0}})}),_b=e=>({"&:disabled":m({},qv(e))}),U6=e=>m({},_b(e)),df=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),Y6=e=>m(m(m(m(m({},U6(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),Gr({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),uf(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:m(m(m({color:e.colorError,borderColor:e.colorError},Gr({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),uf(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),_b(e))}),GW=e=>m(m(m(m(m({},U6(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),Gr({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),uf(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:m(m(m({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},Gr({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),uf(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),_b(e))}),XW=e=>m(m({},Y6(e)),{borderStyle:"dashed"}),UW=e=>m(m(m({color:e.colorLink},Gr({color:e.colorLinkHover},{color:e.colorLinkActive})),df(e)),{[`&${e.componentCls}-dangerous`]:m(m({color:e.colorError},Gr({color:e.colorErrorHover},{color:e.colorErrorActive})),df(e))}),YW=e=>m(m(m({},Gr({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),df(e)),{[`&${e.componentCls}-dangerous`]:m(m({color:e.colorError},df(e)),Gr({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),qW=e=>m(m({},qv(e)),{[`&${e.componentCls}:hover`]:m({},qv(e))}),ZW=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Y6(e),[`${t}-primary`]:GW(e),[`${t}-dashed`]:XW(e),[`${t}-link`]:UW(e),[`${t}-text`]:YW(e),[`${t}-disabled`]:qW(e)}},Ab=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,iconCls:o,controlHeight:r,fontSize:i,lineHeight:l,lineWidth:a,borderRadius:s,buttonPaddingHorizontal:u}=e,c=Math.max(0,(r-i*l)/2-a),d=u-a,f=`${n}-icon-only`;return[{[`${n}${t}`]:{fontSize:i,height:r,padding:`${c}px ${d}px`,borderRadius:s,[`&${f}`]:{width:r,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${f}) ${n}-loading-icon > ${o}`]:{marginInlineEnd:e.marginXS}}},{[`${n}${n}-circle${t}`]:WW(e)},{[`${n}${n}-round${t}`]:KW(e)}]},QW=e=>Ab(e),JW=e=>{const t=ke(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return Ab(t,`${e.componentCls}-sm`)},eK=e=>{const t=ke(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return Ab(t,`${e.componentCls}-lg`)},tK=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},nK=Ke("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:n}=e,o=ke(e,{colorOutlineDefault:t,buttonPaddingHorizontal:n});return[VW(o),JW(o),QW(o),eK(o),tK(o),ZW(o),LW(o),Xa(e,{focus:!1}),jW(e)]}),oK=()=>({prefixCls:String,size:{type:String}}),q6=cb(),ff=oe({compatConfig:{MODE:3},name:"AButtonGroup",props:oK(),setup(e,t){let{slots:n}=t;const{prefixCls:o,direction:r}=Te("btn-group",e),[,,i]=Ur();q6.useProvide(ct({size:P(()=>e.size)}));const l=P(()=>{const{size:a}=e;let s="";switch(a){case"large":s="lg";break;case"small":s="sm";break;case"middle":case void 0:break;default:Ct(!a,"Button.Group","Invalid prop `size`.")}return{[`${o.value}`]:!0,[`${o.value}-${s}`]:s,[`${o.value}-rtl`]:r.value==="rtl",[i.value]:!0}});return()=>{var a;return p("div",{class:l.value},[bt((a=n.default)===null||a===void 0?void 0:a.call(n))])}}}),VC=/^[\u4e00-\u9fa5]{2}$/,WC=VC.test.bind(VC);function hu(e){return e==="text"||e==="link"}const Lt=oe({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:Ze(X6(),{type:"default"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r,expose:i}=t;const{prefixCls:l,autoInsertSpaceInButton:a,direction:s,size:u}=Te("btn",e),[c,d]=nK(l),f=q6.useInject(),g=Jn(),v=P(()=>{var M;return(M=e.disabled)!==null&&M!==void 0?M:g.value}),h=ne(null),b=ne(void 0);let y=!1;const S=ne(!1),$=ne(!1),x=P(()=>a.value!==!1),{compactSize:C,compactItemClassnames:O}=Ri(l,s),w=P(()=>typeof e.loading=="object"&&e.loading.delay?e.loading.delay||!0:!!e.loading);ye(w,M=>{clearTimeout(b.value),typeof w.value=="number"?b.value=setTimeout(()=>{S.value=M},w.value):S.value=M},{immediate:!0});const I=P(()=>{const{type:M,shape:N="default",ghost:B,block:k,danger:F}=e,L=l.value,H={large:"lg",small:"sm",middle:void 0},j=C.value||f?.size||u.value,Y=j&&H[j]||"";return[O.value,{[d.value]:!0,[`${L}`]:!0,[`${L}-${N}`]:N!=="default"&&N,[`${L}-${M}`]:M,[`${L}-${Y}`]:Y,[`${L}-loading`]:S.value,[`${L}-background-ghost`]:B&&!hu(M),[`${L}-two-chinese-chars`]:$.value&&x.value,[`${L}-block`]:k,[`${L}-dangerous`]:!!F,[`${L}-rtl`]:s.value==="rtl"}]}),T=()=>{const M=h.value;if(!M||a.value===!1)return;const N=M.textContent;y&&WC(N)?$.value||($.value=!0):$.value&&($.value=!1)},_=M=>{if(S.value||v.value){M.preventDefault();return}r("click",M)},E=M=>{r("mousedown",M)},A=(M,N)=>{const B=N?" ":"";if(M.type===Ei){let k=M.children.trim();return WC(k)&&(k=k.split("").join(B)),p("span",null,[k])}return M};return Le(()=>{Ct(!(e.ghost&&hu(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),je(T),An(T),Qe(()=>{b.value&&clearTimeout(b.value)}),i({focus:()=>{var M;(M=h.value)===null||M===void 0||M.focus()},blur:()=>{var M;(M=h.value)===null||M===void 0||M.blur()}}),()=>{var M,N;const{icon:B=(M=n.icon)===null||M===void 0?void 0:M.call(n)}=e,k=bt((N=n.default)===null||N===void 0?void 0:N.call(n));y=k.length===1&&!B&&!hu(e.type);const{type:F,htmlType:L,href:H,title:j,target:Y}=e,Q=S.value?"loading":B,U=m(m({},o),{title:j,disabled:v.value,class:[I.value,o.class,{[`${l.value}-icon-only`]:k.length===0&&!!Q}],onClick:_,onMousedown:E});v.value||delete U.disabled;const ee=B&&!S.value?B:p(FW,{existIcon:!!B,prefixCls:l.value,loading:!!S.value},null),X=k.map(Z=>A(Z,y&&x.value));if(H!==void 0)return c(p("a",D(D({},U),{},{href:H,target:Y,ref:h}),[ee,X]));let J=p("button",D(D({},U),{},{ref:h,type:L}),[ee,X]);if(!hu(F)){const Z=(function(){return J})();J=p(Mb,{ref:"wave",disabled:!!S.value},{default:()=>[Z]})}return c(J)}}});Lt.Group=ff;Lt.install=function(e){return e.component(Lt.name,Lt),e.component(ff.name,ff),e};const Z6=()=>({arrow:Fe([Boolean,Object]),trigger:{type:[Array,String]},menu:De(),overlay:W.any,visible:$e(),open:$e(),disabled:$e(),danger:$e(),autofocus:$e(),align:De(),getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:De(),forceRender:$e(),mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:$e(),destroyPopupOnHide:$e(),onVisibleChange:{type:Function},"onUpdate:visible":{type:Function},onOpenChange:{type:Function},"onUpdate:open":{type:Function}}),ph=X6(),rK=()=>m(m({},Z6()),{type:ph.type,size:String,htmlType:ph.htmlType,href:String,disabled:$e(),prefixCls:String,icon:W.any,title:String,loading:ph.loading,onClick:bl()});var iK={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"};function KC(e){for(var t=1;t{const{componentCls:t,antCls:n,paddingXS:o,opacityLoading:r}=e;return{[`${t}-button`]:{whiteSpace:"nowrap",[`&${n}-btn-group > ${n}-btn`]:{[`&-loading, &-loading + ${n}-btn`]:{cursor:"default",pointerEvents:"none",opacity:r},[`&:last-child:not(:first-child):not(${n}-btn-icon-only)`]:{paddingInline:o}}}}},sK=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:r}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}},cK=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:r,dropdownArrowOffset:i,sizePopupArrow:l,antCls:a,iconCls:s,motionDurationMid:u,dropdownPaddingVertical:c,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:g,fontSizeIcon:v,controlPaddingHorizontal:h,colorBgElevated:b,boxShadowPopoverArrow:y}=e;return[{[t]:m(m({},Ue(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:-r+l/2,zIndex:-9999,opacity:1e-4,content:'""'},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:v},[`${s}-down::before`]:{transition:`transform ${u}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[` &-show-arrow${t}-placement-topLeft, &-show-arrow${t}-placement-top, &-show-arrow${t}-placement-topRight @@ -190,10 +190,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom, &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:_p},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft, &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top, - &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Rp}})},{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul,li":{listStyle:"none"},ul:{marginInline:"0.3em"}},[`${t}, ${t}-menu-submenu`]:{[n]:m(m({padding:f,listStyleType:"none",backgroundColor:b,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Kr(e)),{[`${n}-item-group-title`]:{padding:`${c}px ${h}px`,color:e.colorTextDescription,transition:`all ${u}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center",borderRadius:e.borderRadiusSM},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${u}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:m(m({clear:"both",margin:0,padding:`${c}px ${h}px`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${u}`,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Kr(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:g,cursor:"not-allowed","&:hover":{color:g,backgroundColor:b,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:v,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:h+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:g,backgroundColor:b,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[vr(e,"slide-up"),vr(e,"slide-down"),Ra(e,"move-up"),Ra(e,"move-down"),Ga(e,"zoom-big")]]},Q6=Ke("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:o,sizePopupArrow:r,controlHeight:i,fontSize:l,lineHeight:a,paddingXXS:s,componentCls:u,borderRadiusOuter:c,borderRadiusLG:d}=e,f=(i-l*a)/2,{dropdownArrowOffset:g}=j6({sizePopupArrow:r,contentRadius:d,borderRadiusOuter:c}),v=ke(e,{menuCls:`${u}-menu`,rootPrefixCls:n,dropdownArrowDistance:r/2+o,dropdownArrowOffset:g,dropdownPaddingVertical:f,dropdownEdgeChildPadding:s});return[cK(v),aK(v),sK(v)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));var uK=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{r("update:visible",f),r("visibleChange",f),r("update:open",f),r("openChange",f)},{prefixCls:l,direction:a,getPopupContainer:s}=Te("dropdown",e),u=P(()=>`${l.value}-button`),[c,d]=Q6(l);return()=>{var f,g;const v=m(m({},e),o),{type:h="default",disabled:b,danger:y,loading:S,htmlType:$,class:x="",overlay:C=(f=n.overlay)===null||f===void 0?void 0:f.call(n),trigger:O,align:w,open:I,visible:T,onVisibleChange:M,placement:E=a.value==="rtl"?"bottomLeft":"bottomRight",href:A,title:R,icon:z=((g=n.icon)===null||g===void 0?void 0:g.call(n))||p(Ac,null,null),mouseEnterDelay:_,mouseLeaveDelay:N,overlayClassName:B,overlayStyle:k,destroyPopupOnHide:F,onClick:L,"onUpdate:open":H}=v,j=uK(v,["type","disabled","danger","loading","htmlType","class","overlay","trigger","align","open","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:open"]),Y={align:w,disabled:b,trigger:b?[]:O,placement:E,getPopupContainer:s?.value,onOpenChange:i,mouseEnterDelay:_,mouseLeaveDelay:N,open:I??T,overlayClassName:B,overlayStyle:k,destroyPopupOnHide:F},Q=p(Lt,{danger:y,type:h,disabled:b,loading:S,onClick:L,htmlType:$,href:A,title:R},{default:n.default}),U=p(Lt,{danger:y,type:h,icon:z},null);return c(p(dK,D(D({},j),{},{class:le(u.value,x,d.value)}),{default:()=>[n.leftButton?n.leftButton({button:Q}):Q,p(Wo,Y,{default:()=>[n.rightButton?n.rightButton({button:U}):U],overlay:()=>C})]}))}}});var fK={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"};function GC(e){for(var t=1;tHe(J6,void 0),Rb=e=>{var t,n,o;const{prefixCls:r,mode:i,selectable:l,validator:a,onClick:s,expandIcon:u}=eI()||{};Xe(J6,{prefixCls:P(()=>{var c,d;return(d=(c=e.prefixCls)===null||c===void 0?void 0:c.value)!==null&&d!==void 0?d:r?.value}),mode:P(()=>{var c,d;return(d=(c=e.mode)===null||c===void 0?void 0:c.value)!==null&&d!==void 0?d:i?.value}),selectable:P(()=>{var c,d;return(d=(c=e.selectable)===null||c===void 0?void 0:c.value)!==null&&d!==void 0?d:l?.value}),validator:(t=e.validator)!==null&&t!==void 0?t:a,onClick:(n=e.onClick)!==null&&n!==void 0?n:s,expandIcon:(o=e.expandIcon)!==null&&o!==void 0?o:u?.value})},Wo=oe({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:Ze(Z6(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:i,rootPrefixCls:l,direction:a,getPopupContainer:s}=Te("dropdown",e),[u,c]=Q6(i),d=P(()=>{const{placement:b="",transitionName:y}=e;return y!==void 0?y:b.includes("top")?`${l.value}-slide-down`:`${l.value}-slide-up`});Rb({prefixCls:P(()=>`${i.value}-menu`),expandIcon:P(()=>p("span",{class:`${i.value}-menu-submenu-arrow`},[p(ho,{class:`${i.value}-menu-submenu-arrow-icon`},null)])),mode:P(()=>"vertical"),selectable:P(()=>!1),onClick:()=>{},validator:b=>{let{mode:y}=b}});const f=()=>{var b,y,S;const $=e.overlay||((b=n.overlay)===null||b===void 0?void 0:b.call(n)),x=Array.isArray($)?$[0]:$;if(!x)return null;const C=x.props||{};Ct(!C.mode||C.mode==="vertical","Dropdown",`mode="${C.mode}" is not supported for Dropdown's Menu.`);const{selectable:O=!1,expandIcon:w=(S=(y=x.children)===null||y===void 0?void 0:y.expandIcon)===null||S===void 0?void 0:S.call(y)}=C,I=typeof w<"u"&&Kt(w)?w:p("span",{class:`${i.value}-menu-submenu-arrow`},[p(ho,{class:`${i.value}-menu-submenu-arrow-icon`},null)]);return Kt(x)?ut(x,{mode:"vertical",selectable:O,expandIcon:()=>I}):x},g=P(()=>{const b=e.placement;if(!b)return a.value==="rtl"?"bottomRight":"bottomLeft";if(b.includes("Center")){const y=b.slice(0,b.indexOf("Center"));return Ct(!b.includes("Center"),"Dropdown",`You are using '${b}' placement in Dropdown, which is deprecated. Try to use '${y}' instead.`),y}return b}),v=P(()=>typeof e.visible=="boolean"?e.visible:e.open),h=b=>{r("update:visible",b),r("visibleChange",b),r("update:open",b),r("openChange",b)};return()=>{var b,y;const{arrow:S,trigger:$,disabled:x,overlayClassName:C}=e,O=(b=n.default)===null||b===void 0?void 0:b.call(n)[0],w=ut(O,m({class:le((y=O?.props)===null||y===void 0?void 0:y.class,{[`${i.value}-rtl`]:a.value==="rtl"},`${i.value}-trigger`)},x?{disabled:x}:{})),I=le(C,c.value,{[`${i.value}-rtl`]:a.value==="rtl"}),T=x?[]:$;let M;T&&T.includes("contextmenu")&&(M=!0);const E=Pb({arrowPointAtCenter:typeof S=="object"&&S.pointAtCenter,autoAdjustOverflow:!0}),A=tt(m(m(m({},e),o),{visible:v.value,builtinPlacements:E,overlayClassName:I,arrow:!!S,alignPoint:M,prefixCls:i.value,getPopupContainer:s?.value,transitionName:d.value,trigger:T,onVisibleChange:h,placement:g.value}),["overlay","onUpdate:visible"]);return u(p(G6,A,{default:()=>[w],overlay:f}))}}});Wo.Button=fc;var gK=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,href:String,separator:W.any,dropdownProps:De(),overlay:W.any,onClick:bl()}),pc=oe({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:hK(),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:i}=Te("breadcrumb",e),l=(s,u)=>{const c=Zt(n,e,"overlay");return c?p(Wo,D(D({},e.dropdownProps),{},{overlay:c,placement:"bottom"}),{default:()=>[p("span",{class:`${u}-overlay-link`},[s,p(Dl,null,null)])]}):s},a=s=>{r("click",s)};return()=>{var s;const u=(s=Zt(n,e,"separator"))!==null&&s!==void 0?s:"/",c=Zt(n,e),{class:d,style:f}=o,g=gK(o,["class","style"]);let v;return e.href!==void 0?v=p("a",D({class:`${i.value}-link`,onClick:a},g),[c]):v=p("span",D({class:`${i.value}-link`,onClick:a},g),[c]),v=l(v,i.value),c!=null?p("li",{class:d,style:f},[v,u&&p("span",{class:`${i.value}-separator`},[u])]):null}}});function vK(e,t,n,o){let r;if(r!==void 0)return!!r;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const i=Object.keys(e),l=Object.keys(t);if(i.length!==l.length)return!1;const a=Object.prototype.hasOwnProperty.bind(t);for(let s=0;s{Xe(tI,e)},Zr=()=>He(tI),oI=Symbol("ForceRenderKey"),mK=e=>{Xe(oI,e)},rI=()=>He(oI,!1),iI=Symbol("menuFirstLevelContextKey"),lI=e=>{Xe(iI,e)},bK=()=>He(iI,!0),pf=oe({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(e,t){let{slots:n}=t;const o=Zr(),r=m({},o);return e.mode!==void 0&&(r.mode=ze(e,"mode")),e.overflowDisabled!==void 0&&(r.overflowDisabled=ze(e,"overflowDisabled")),nI(r),()=>{var i;return(i=n.default)===null||i===void 0?void 0:i.call(n)}}}),aI=Symbol("siderCollapsed"),sI=Symbol("siderHookProvider"),vu="$$__vc-menu-more__key",cI=Symbol("KeyPathContext"),Db=()=>He(cI,{parentEventKeys:P(()=>[]),parentKeys:P(()=>[]),parentInfo:{}}),yK=(e,t,n)=>{const{parentEventKeys:o,parentKeys:r}=Db(),i=P(()=>[...o.value,e]),l=P(()=>[...r.value,t]);return Xe(cI,{parentEventKeys:i,parentKeys:l,parentInfo:n}),l},uI=Symbol("measure"),XC=oe({compatConfig:{MODE:3},setup(e,t){let{slots:n}=t;return Xe(uI,!0),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),Nb=()=>He(uI,!1);function dI(e){const{mode:t,rtl:n,inlineIndent:o}=Zr();return P(()=>t.value!=="inline"?null:n.value?{paddingRight:`${e.value*o.value}px`}:{paddingLeft:`${e.value*o.value}px`})}let SK=0;const $K=()=>({id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:W.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:De()}),pr=oe({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:$K(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const i=pn(),l=Nb(),a=typeof i.vnode.key=="symbol"?String(i.vnode.key):i.vnode.key;Ct(typeof i.vnode.key!="symbol","MenuItem",`MenuItem \`:key="${String(a)}"\` not support Symbol type`);const s=`menu_item_${++SK}_$$_${a}`,{parentEventKeys:u,parentKeys:c}=Db(),{prefixCls:d,activeKeys:f,disabled:g,changeActiveKeys:v,rtl:h,inlineCollapsed:b,siderCollapsed:y,onItemClick:S,selectedKeys:$,registerMenuInfo:x,unRegisterMenuInfo:C}=Zr(),O=bK(),w=ne(!1),I=P(()=>[...c.value,a]);x(s,{eventKey:s,key:a,parentEventKeys:u,parentKeys:c,isLeaf:!0}),Qe(()=>{C(s)}),ye(f,()=>{w.value=!!f.value.find(H=>H===a)},{immediate:!0});const M=P(()=>g.value||e.disabled),E=P(()=>$.value.includes(a)),A=P(()=>{const H=`${d.value}-item`;return{[`${H}`]:!0,[`${H}-danger`]:e.danger,[`${H}-active`]:w.value,[`${H}-selected`]:E.value,[`${H}-disabled`]:M.value}}),R=H=>({key:a,eventKey:s,keyPath:I.value,eventKeyPath:[...u.value,s],domEvent:H,item:m(m({},e),r)}),z=H=>{if(M.value)return;const j=R(H);o("click",H),S(j)},_=H=>{M.value||(v(I.value),o("mouseenter",H))},N=H=>{M.value||(v([]),o("mouseleave",H))},B=H=>{if(o("keydown",H),H.which===Pe.ENTER){const j=R(H);o("click",H),S(j)}},k=H=>{v(I.value),o("focus",H)},F=(H,j)=>{const Y=p("span",{class:`${d.value}-title-content`},[j]);return(!H||Kt(j)&&j.type==="span")&&j&&b.value&&O&&typeof j=="string"?p("div",{class:`${d.value}-inline-collapsed-noicon`},[j.charAt(0)]):Y},L=dI(P(()=>I.value.length));return()=>{var H,j,Y,Q,U;if(l)return null;const ee=(H=e.title)!==null&&H!==void 0?H:(j=n.title)===null||j===void 0?void 0:j.call(n),X=bt((Y=n.default)===null||Y===void 0?void 0:Y.call(n)),J=X.length;let Z=ee;typeof ee>"u"?Z=O&&J?X:"":ee===!1&&(Z="");const G={title:Z};!y.value&&!b.value&&(G.title=null,G.open=!1);const q={};e.role==="option"&&(q["aria-selected"]=E.value);const V=(Q=e.icon)!==null&&Q!==void 0?Q:(U=n.icon)===null||U===void 0?void 0:U.call(n,e);return p(Qn,D(D({},G),{},{placement:h.value?"left":"right",overlayClassName:`${d.value}-inline-collapsed-tooltip`}),{default:()=>[p(Lr.Item,D(D(D({component:"li"},r),{},{id:e.id,style:m(m({},r.style||{}),L.value),class:[A.value,{[`${r.class}`]:!!r.class,[`${d.value}-item-only-child`]:(V?J+1:J)===1}],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":a,"aria-disabled":e.disabled},q),{},{onMouseenter:_,onMouseleave:N,onClick:z,onKeydown:B,onFocus:k,title:typeof ee=="string"?ee:void 0}),{default:()=>[ut(typeof V=="function"?V(e.originItemValue):V,{class:`${d.value}-item-icon`},!1),F(V,X)]})]})}}}),bi={adjustX:1,adjustY:1},CK={topLeft:{points:["bl","tl"],overflow:bi,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bi,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:bi,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:bi,offset:[4,0]}},xK={topLeft:{points:["bl","tl"],overflow:bi,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bi,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:bi,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:bi,offset:[4,0]}},wK={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},UC=oe({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:["visibleChange"],setup(e,t){let{slots:n,emit:o}=t;const r=ne(!1),{getPopupContainer:i,rtl:l,subMenuOpenDelay:a,subMenuCloseDelay:s,builtinPlacements:u,triggerSubMenuAction:c,forceSubMenuRender:d,motion:f,defaultMotions:g,rootClassName:v}=Zr(),h=rI(),b=P(()=>l.value?m(m({},xK),u.value):m(m({},CK),u.value)),y=P(()=>wK[e.mode]),S=ne();ye(()=>e.visible,C=>{qe.cancel(S.value),S.value=qe(()=>{r.value=C})},{immediate:!0}),Qe(()=>{qe.cancel(S.value)});const $=C=>{o("visibleChange",C)},x=P(()=>{var C,O;const w=f.value||((C=g.value)===null||C===void 0?void 0:C[e.mode])||((O=g.value)===null||O===void 0?void 0:O.other),I=typeof w=="function"?w():w;return I?Ro(I.name,{css:!0}):void 0});return()=>{const{prefixCls:C,popupClassName:O,mode:w,popupOffset:I,disabled:T}=e;return p(Rl,{prefixCls:C,popupClassName:le(`${C}-popup`,{[`${C}-rtl`]:l.value},O,v.value),stretch:w==="horizontal"?"minWidth":null,getPopupContainer:i.value,builtinPlacements:b.value,popupPlacement:y.value,popupVisible:r.value,popupAlign:I&&{offset:I},action:T?[]:[c.value],mouseEnterDelay:a.value,mouseLeaveDelay:s.value,onPopupVisibleChange:$,forceRender:h||d.value,popupAnimation:x.value},{popup:n.popup,default:n.default})}}}),Bb=(e,t)=>{let{slots:n,attrs:o}=t;var r;const{prefixCls:i,mode:l}=Zr();return p("ul",D(D({},o),{},{class:le(i.value,`${i.value}-sub`,`${i.value}-${l.value==="inline"?"inline":"vertical"}`),"data-menu-list":!0}),[(r=n.default)===null||r===void 0?void 0:r.call(n)])};Bb.displayName="SubMenuList";const OK=oe({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(e,t){let{slots:n}=t;const o=P(()=>"inline"),{motion:r,mode:i,defaultMotions:l}=Zr(),a=P(()=>i.value===o.value),s=re(!a.value),u=P(()=>a.value?e.open:!1);ye(i,()=>{a.value&&(s.value=!1)},{flush:"post"});const c=P(()=>{var d,f;const g=r.value||((d=l.value)===null||d===void 0?void 0:d[o.value])||((f=l.value)===null||f===void 0?void 0:f.other),v=typeof g=="function"?g():g;return m(m({},v),{appear:e.keyPath.length<=1})});return()=>{var d;return s.value?null:p(pf,{mode:o.value},{default:()=>[p(un,c.value,{default:()=>[En(p(Bb,{id:e.id},{default:()=>[(d=n.default)===null||d===void 0?void 0:d.call(n)]}),[[jn,u.value]])]})]})}}});let YC=0;const PK=()=>({icon:W.any,title:W.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:De()}),xl=oe({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:PK(),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;var i,l;lI(!1);const a=Nb(),s=pn(),u=typeof s.vnode.key=="symbol"?String(s.vnode.key):s.vnode.key;Ct(typeof s.vnode.key!="symbol","SubMenu",`SubMenu \`:key="${String(u)}"\` not support Symbol type`);const c=Cv(u)?u:`sub_menu_${++YC}_$$_not_set_key`,d=(i=e.eventKey)!==null&&i!==void 0?i:Cv(u)?`sub_menu_${++YC}_$$_${u}`:c,{parentEventKeys:f,parentInfo:g,parentKeys:v}=Db(),h=P(()=>[...v.value,c]),b=ne([]),y={eventKey:d,key:c,parentEventKeys:f,childrenEventKeys:b,parentKeys:v};(l=g.childrenEventKeys)===null||l===void 0||l.value.push(d),Qe(()=>{var se;g.childrenEventKeys&&(g.childrenEventKeys.value=(se=g.childrenEventKeys)===null||se===void 0?void 0:se.value.filter(pe=>pe!=d))}),yK(d,c,y);const{prefixCls:S,activeKeys:$,disabled:x,changeActiveKeys:C,mode:O,inlineCollapsed:w,openKeys:I,overflowDisabled:T,onOpenChange:M,registerMenuInfo:E,unRegisterMenuInfo:A,selectedSubMenuKeys:R,expandIcon:z,theme:_}=Zr(),N=u!=null,B=!a&&(rI()||!N);mK(B),(a&&N||!a&&!N||B)&&(E(d,y),Qe(()=>{A(d)}));const k=P(()=>`${S.value}-submenu`),F=P(()=>x.value||e.disabled),L=ne(),H=ne(),j=P(()=>I.value.includes(c)),Y=P(()=>!T.value&&j.value),Q=P(()=>R.value.includes(c)),U=ne(!1);ye($,()=>{U.value=!!$.value.find(se=>se===c)},{immediate:!0});const ee=se=>{F.value||(r("titleClick",se,c),O.value==="inline"&&M(c,!j.value))},X=se=>{F.value||(C(h.value),r("mouseenter",se))},J=se=>{F.value||(C([]),r("mouseleave",se))},Z=dI(P(()=>h.value.length)),G=se=>{O.value!=="inline"&&M(c,se)},q=()=>{C(h.value)},V=d&&`${d}-popup`,K=P(()=>le(S.value,`${S.value}-${e.theme||_.value}`,e.popupClassName)),te=(se,pe)=>{if(!pe)return w.value&&!v.value.length&&se&&typeof se=="string"?p("div",{class:`${S.value}-inline-collapsed-noicon`},[se.charAt(0)]):p("span",{class:`${S.value}-title-content`},[se]);const ge=Kt(se)&&se.type==="span";return p(Ve,null,[ut(typeof pe=="function"?pe(e.originItemValue):pe,{class:`${S.value}-item-icon`},!1),ge?se:p("span",{class:`${S.value}-title-content`},[se])])},ue=P(()=>O.value!=="inline"&&h.value.length>1?"vertical":O.value),ie=P(()=>O.value==="horizontal"?"vertical":O.value),ae=P(()=>ue.value==="horizontal"?"vertical":ue.value),ce=()=>{var se,pe;const ge=k.value,he=(se=e.icon)!==null&&se!==void 0?se:(pe=n.icon)===null||pe===void 0?void 0:pe.call(n,e),me=e.expandIcon||n.expandIcon||z.value,xe=te(Zt(n,e,"title"),he);return p("div",{style:Z.value,class:`${ge}-title`,tabindex:F.value?null:-1,ref:L,title:typeof xe=="string"?xe:null,"data-menu-id":c,"aria-expanded":Y.value,"aria-haspopup":!0,"aria-controls":V,"aria-disabled":F.value,onClick:ee,onFocus:q},[xe,O.value!=="horizontal"&&me?me(m(m({},e),{isOpen:Y.value})):p("i",{class:`${ge}-arrow`},null)])};return()=>{var se;if(a)return N?(se=n.default)===null||se===void 0?void 0:se.call(n):null;const pe=k.value;let ge=()=>null;if(!T.value&&O.value!=="inline"){const he=O.value==="horizontal"?[0,8]:[10,0];ge=()=>p(UC,{mode:ue.value,prefixCls:pe,visible:!e.internalPopupClose&&Y.value,popupClassName:K.value,popupOffset:e.popupOffset||he,disabled:F.value,onVisibleChange:G},{default:()=>[ce()],popup:()=>p(pf,{mode:ae.value},{default:()=>[p(Bb,{id:V,ref:H},{default:n.default})]})})}else ge=()=>p(UC,null,{default:ce});return p(pf,{mode:ie.value},{default:()=>[p(Lr.Item,D(D({component:"li"},o),{},{role:"none",class:le(pe,`${pe}-${O.value}`,o.class,{[`${pe}-open`]:Y.value,[`${pe}-active`]:U.value,[`${pe}-selected`]:Q.value,[`${pe}-disabled`]:F.value}),onMouseenter:X,onMouseleave:J,"data-submenu-id":c}),{default:()=>p(Ve,null,[ge(),!T.value&&p(OK,{id:V,open:Y.value,keyPath:h.value},{default:n.default})])})]})}}});function fI(e,t){return e.classList?e.classList.contains(t):` ${e.className} `.indexOf(` ${t} `)>-1}function gf(e,t){e.classList?e.classList.add(t):fI(e,t)||(e.className=`${e.className} ${t}`)}function hf(e,t){if(e.classList)e.classList.remove(t);else if(fI(e,t)){const n=e.className;e.className=` ${n} `.replace(` ${t} `," ")}}const Rc=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:e,appear:t,css:!0,onBeforeEnter:n=>{n.style.height="0px",n.style.opacity="0",gf(n,e)},onEnter:n=>{ot(()=>{n.style.height=`${n.scrollHeight}px`,n.style.opacity="1"})},onAfterEnter:n=>{n&&(hf(n,e),n.style.height=null,n.style.opacity=null)},onBeforeLeave:n=>{gf(n,e),n.style.height=`${n.offsetHeight}px`,n.style.opacity=null},onLeave:n=>{setTimeout(()=>{n.style.height="0px",n.style.opacity="0"})},onAfterLeave:n=>{n&&(hf(n,e),n.style&&(n.style.height=null,n.style.opacity=null))}}},IK=()=>({title:W.any,originItemValue:De()}),gc=oe({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:IK(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=Zr(),i=P(()=>`${r.value}-item-group`),l=Nb();return()=>{var a,s;return l?(a=n.default)===null||a===void 0?void 0:a.call(n):p("li",D(D({},o),{},{onClick:u=>u.stopPropagation(),class:i.value}),[p("div",{title:typeof e.title=="string"?e.title:void 0,class:`${i.value}-title`},[Zt(n,e,"title")]),p("ul",{class:`${i.value}-list`},[(s=n.default)===null||s===void 0?void 0:s.call(n)])])}}}),TK=()=>({prefixCls:String,dashed:Boolean}),hc=oe({compatConfig:{MODE:3},name:"AMenuDivider",props:TK(),setup(e){const{prefixCls:t}=Zr(),n=P(()=>({[`${t.value}-item-divider`]:!0,[`${t.value}-item-divider-dashed`]:!!e.dashed}));return()=>p("li",{class:n.value},null)}});var EK=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{if(o&&typeof o=="object"){const i=o,{label:l,children:a,key:s,type:u}=i,c=EK(i,["label","children","key","type"]),d=s??`tmp-${r}`,f=n?n.parentKeys.slice():[],g=[],v={eventKey:d,key:d,parentEventKeys:re(f),parentKeys:re(f),childrenEventKeys:re(g),isLeaf:!1};if(a||u==="group"){if(u==="group"){const b=Zv(a,t,n);return p(gc,D(D({key:d},c),{},{title:l,originItemValue:o}),{default:()=>[b]})}t.set(d,v),n&&n.childrenEventKeys.push(d);const h=Zv(a,t,{childrenEventKeys:g,parentKeys:[].concat(f,d)});return p(xl,D(D({key:d},c),{},{title:l,originItemValue:o}),{default:()=>[h]})}return u==="divider"?p(hc,D({key:d},c),null):(v.isLeaf=!0,t.set(d,v),p(pr,D(D({key:d},c),{},{originItemValue:o}),{default:()=>[l]}))}return null}).filter(o=>o)}function MK(e){const t=ne([]),n=ne(!1),o=ne(new Map);return ye(()=>e.items,()=>{const r=new Map;n.value=!1,e.items?(n.value=!0,t.value=Zv(e.items,r)):t.value=void 0,o.value=r},{immediate:!0,deep:!0}),{itemsNodes:t,store:o,hasItmes:n}}const _K=e=>{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:o,colorSplit:r,lineWidth:i,lineType:l,menuItemPaddingInline:a}=e;return{[`${t}-horizontal`]:{lineHeight:`${o}px`,border:0,borderBottom:`${i}px ${l} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:a},[`> ${t}-item:hover, + &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Rp}})},{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul,li":{listStyle:"none"},ul:{marginInline:"0.3em"}},[`${t}, ${t}-menu-submenu`]:{[n]:m(m({padding:f,listStyleType:"none",backgroundColor:b,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Kr(e)),{[`${n}-item-group-title`]:{padding:`${c}px ${h}px`,color:e.colorTextDescription,transition:`all ${u}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center",borderRadius:e.borderRadiusSM},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${u}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${n}-item, ${n}-submenu-title`]:m(m({clear:"both",margin:0,padding:`${c}px ${h}px`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${u}`,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Kr(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:g,cursor:"not-allowed","&:hover":{color:g,backgroundColor:b,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:v,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:h+e.fontSizeSM},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:g,backgroundColor:b,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[vr(e,"slide-up"),vr(e,"slide-down"),Ra(e,"move-up"),Ra(e,"move-down"),Ga(e,"zoom-big")]]},Q6=Ke("Dropdown",(e,t)=>{let{rootPrefixCls:n}=t;const{marginXXS:o,sizePopupArrow:r,controlHeight:i,fontSize:l,lineHeight:a,paddingXXS:s,componentCls:u,borderRadiusOuter:c,borderRadiusLG:d}=e,f=(i-l*a)/2,{dropdownArrowOffset:g}=j6({sizePopupArrow:r,contentRadius:d,borderRadiusOuter:c}),v=ke(e,{menuCls:`${u}-menu`,rootPrefixCls:n,dropdownArrowDistance:r/2+o,dropdownArrowOffset:g,dropdownPaddingVertical:f,dropdownEdgeChildPadding:s});return[cK(v),aK(v),sK(v)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));var uK=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{r("update:visible",f),r("visibleChange",f),r("update:open",f),r("openChange",f)},{prefixCls:l,direction:a,getPopupContainer:s}=Te("dropdown",e),u=P(()=>`${l.value}-button`),[c,d]=Q6(l);return()=>{var f,g;const v=m(m({},e),o),{type:h="default",disabled:b,danger:y,loading:S,htmlType:$,class:x="",overlay:C=(f=n.overlay)===null||f===void 0?void 0:f.call(n),trigger:O,align:w,open:I,visible:T,onVisibleChange:_,placement:E=a.value==="rtl"?"bottomLeft":"bottomRight",href:A,title:R,icon:z=((g=n.icon)===null||g===void 0?void 0:g.call(n))||p(Ac,null,null),mouseEnterDelay:M,mouseLeaveDelay:N,overlayClassName:B,overlayStyle:k,destroyPopupOnHide:F,onClick:L,"onUpdate:open":H}=v,j=uK(v,["type","disabled","danger","loading","htmlType","class","overlay","trigger","align","open","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:open"]),Y={align:w,disabled:b,trigger:b?[]:O,placement:E,getPopupContainer:s?.value,onOpenChange:i,mouseEnterDelay:M,mouseLeaveDelay:N,open:I??T,overlayClassName:B,overlayStyle:k,destroyPopupOnHide:F},Q=p(Lt,{danger:y,type:h,disabled:b,loading:S,onClick:L,htmlType:$,href:A,title:R},{default:n.default}),U=p(Lt,{danger:y,type:h,icon:z},null);return c(p(dK,D(D({},j),{},{class:le(u.value,x,d.value)}),{default:()=>[n.leftButton?n.leftButton({button:Q}):Q,p(Wo,Y,{default:()=>[n.rightButton?n.rightButton({button:U}):U],overlay:()=>C})]}))}}});var fK={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"};function GC(e){for(var t=1;tHe(J6,void 0),Rb=e=>{var t,n,o;const{prefixCls:r,mode:i,selectable:l,validator:a,onClick:s,expandIcon:u}=eI()||{};Xe(J6,{prefixCls:P(()=>{var c,d;return(d=(c=e.prefixCls)===null||c===void 0?void 0:c.value)!==null&&d!==void 0?d:r?.value}),mode:P(()=>{var c,d;return(d=(c=e.mode)===null||c===void 0?void 0:c.value)!==null&&d!==void 0?d:i?.value}),selectable:P(()=>{var c,d;return(d=(c=e.selectable)===null||c===void 0?void 0:c.value)!==null&&d!==void 0?d:l?.value}),validator:(t=e.validator)!==null&&t!==void 0?t:a,onClick:(n=e.onClick)!==null&&n!==void 0?n:s,expandIcon:(o=e.expandIcon)!==null&&o!==void 0?o:u?.value})},Wo=oe({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:Ze(Z6(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:i,rootPrefixCls:l,direction:a,getPopupContainer:s}=Te("dropdown",e),[u,c]=Q6(i),d=P(()=>{const{placement:b="",transitionName:y}=e;return y!==void 0?y:b.includes("top")?`${l.value}-slide-down`:`${l.value}-slide-up`});Rb({prefixCls:P(()=>`${i.value}-menu`),expandIcon:P(()=>p("span",{class:`${i.value}-menu-submenu-arrow`},[p(ho,{class:`${i.value}-menu-submenu-arrow-icon`},null)])),mode:P(()=>"vertical"),selectable:P(()=>!1),onClick:()=>{},validator:b=>{let{mode:y}=b}});const f=()=>{var b,y,S;const $=e.overlay||((b=n.overlay)===null||b===void 0?void 0:b.call(n)),x=Array.isArray($)?$[0]:$;if(!x)return null;const C=x.props||{};Ct(!C.mode||C.mode==="vertical","Dropdown",`mode="${C.mode}" is not supported for Dropdown's Menu.`);const{selectable:O=!1,expandIcon:w=(S=(y=x.children)===null||y===void 0?void 0:y.expandIcon)===null||S===void 0?void 0:S.call(y)}=C,I=typeof w<"u"&&Kt(w)?w:p("span",{class:`${i.value}-menu-submenu-arrow`},[p(ho,{class:`${i.value}-menu-submenu-arrow-icon`},null)]);return Kt(x)?ut(x,{mode:"vertical",selectable:O,expandIcon:()=>I}):x},g=P(()=>{const b=e.placement;if(!b)return a.value==="rtl"?"bottomRight":"bottomLeft";if(b.includes("Center")){const y=b.slice(0,b.indexOf("Center"));return Ct(!b.includes("Center"),"Dropdown",`You are using '${b}' placement in Dropdown, which is deprecated. Try to use '${y}' instead.`),y}return b}),v=P(()=>typeof e.visible=="boolean"?e.visible:e.open),h=b=>{r("update:visible",b),r("visibleChange",b),r("update:open",b),r("openChange",b)};return()=>{var b,y;const{arrow:S,trigger:$,disabled:x,overlayClassName:C}=e,O=(b=n.default)===null||b===void 0?void 0:b.call(n)[0],w=ut(O,m({class:le((y=O?.props)===null||y===void 0?void 0:y.class,{[`${i.value}-rtl`]:a.value==="rtl"},`${i.value}-trigger`)},x?{disabled:x}:{})),I=le(C,c.value,{[`${i.value}-rtl`]:a.value==="rtl"}),T=x?[]:$;let _;T&&T.includes("contextmenu")&&(_=!0);const E=Pb({arrowPointAtCenter:typeof S=="object"&&S.pointAtCenter,autoAdjustOverflow:!0}),A=tt(m(m(m({},e),o),{visible:v.value,builtinPlacements:E,overlayClassName:I,arrow:!!S,alignPoint:_,prefixCls:i.value,getPopupContainer:s?.value,transitionName:d.value,trigger:T,onVisibleChange:h,placement:g.value}),["overlay","onUpdate:visible"]);return u(p(G6,A,{default:()=>[w],overlay:f}))}}});Wo.Button=fc;var gK=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,href:String,separator:W.any,dropdownProps:De(),overlay:W.any,onClick:bl()}),pc=oe({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:hK(),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:i}=Te("breadcrumb",e),l=(s,u)=>{const c=Zt(n,e,"overlay");return c?p(Wo,D(D({},e.dropdownProps),{},{overlay:c,placement:"bottom"}),{default:()=>[p("span",{class:`${u}-overlay-link`},[s,p(Dl,null,null)])]}):s},a=s=>{r("click",s)};return()=>{var s;const u=(s=Zt(n,e,"separator"))!==null&&s!==void 0?s:"/",c=Zt(n,e),{class:d,style:f}=o,g=gK(o,["class","style"]);let v;return e.href!==void 0?v=p("a",D({class:`${i.value}-link`,onClick:a},g),[c]):v=p("span",D({class:`${i.value}-link`,onClick:a},g),[c]),v=l(v,i.value),c!=null?p("li",{class:d,style:f},[v,u&&p("span",{class:`${i.value}-separator`},[u])]):null}}});function vK(e,t,n,o){let r;if(r!==void 0)return!!r;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const i=Object.keys(e),l=Object.keys(t);if(i.length!==l.length)return!1;const a=Object.prototype.hasOwnProperty.bind(t);for(let s=0;s{Xe(tI,e)},Zr=()=>He(tI),oI=Symbol("ForceRenderKey"),mK=e=>{Xe(oI,e)},rI=()=>He(oI,!1),iI=Symbol("menuFirstLevelContextKey"),lI=e=>{Xe(iI,e)},bK=()=>He(iI,!0),pf=oe({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(e,t){let{slots:n}=t;const o=Zr(),r=m({},o);return e.mode!==void 0&&(r.mode=ze(e,"mode")),e.overflowDisabled!==void 0&&(r.overflowDisabled=ze(e,"overflowDisabled")),nI(r),()=>{var i;return(i=n.default)===null||i===void 0?void 0:i.call(n)}}}),aI=Symbol("siderCollapsed"),sI=Symbol("siderHookProvider"),vu="$$__vc-menu-more__key",cI=Symbol("KeyPathContext"),Db=()=>He(cI,{parentEventKeys:P(()=>[]),parentKeys:P(()=>[]),parentInfo:{}}),yK=(e,t,n)=>{const{parentEventKeys:o,parentKeys:r}=Db(),i=P(()=>[...o.value,e]),l=P(()=>[...r.value,t]);return Xe(cI,{parentEventKeys:i,parentKeys:l,parentInfo:n}),l},uI=Symbol("measure"),XC=oe({compatConfig:{MODE:3},setup(e,t){let{slots:n}=t;return Xe(uI,!0),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),Nb=()=>He(uI,!1);function dI(e){const{mode:t,rtl:n,inlineIndent:o}=Zr();return P(()=>t.value!=="inline"?null:n.value?{paddingRight:`${e.value*o.value}px`}:{paddingLeft:`${e.value*o.value}px`})}let SK=0;const $K=()=>({id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:W.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:De()}),pr=oe({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:$K(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const i=pn(),l=Nb(),a=typeof i.vnode.key=="symbol"?String(i.vnode.key):i.vnode.key;Ct(typeof i.vnode.key!="symbol","MenuItem",`MenuItem \`:key="${String(a)}"\` not support Symbol type`);const s=`menu_item_${++SK}_$$_${a}`,{parentEventKeys:u,parentKeys:c}=Db(),{prefixCls:d,activeKeys:f,disabled:g,changeActiveKeys:v,rtl:h,inlineCollapsed:b,siderCollapsed:y,onItemClick:S,selectedKeys:$,registerMenuInfo:x,unRegisterMenuInfo:C}=Zr(),O=bK(),w=ne(!1),I=P(()=>[...c.value,a]);x(s,{eventKey:s,key:a,parentEventKeys:u,parentKeys:c,isLeaf:!0}),Qe(()=>{C(s)}),ye(f,()=>{w.value=!!f.value.find(H=>H===a)},{immediate:!0});const _=P(()=>g.value||e.disabled),E=P(()=>$.value.includes(a)),A=P(()=>{const H=`${d.value}-item`;return{[`${H}`]:!0,[`${H}-danger`]:e.danger,[`${H}-active`]:w.value,[`${H}-selected`]:E.value,[`${H}-disabled`]:_.value}}),R=H=>({key:a,eventKey:s,keyPath:I.value,eventKeyPath:[...u.value,s],domEvent:H,item:m(m({},e),r)}),z=H=>{if(_.value)return;const j=R(H);o("click",H),S(j)},M=H=>{_.value||(v(I.value),o("mouseenter",H))},N=H=>{_.value||(v([]),o("mouseleave",H))},B=H=>{if(o("keydown",H),H.which===Pe.ENTER){const j=R(H);o("click",H),S(j)}},k=H=>{v(I.value),o("focus",H)},F=(H,j)=>{const Y=p("span",{class:`${d.value}-title-content`},[j]);return(!H||Kt(j)&&j.type==="span")&&j&&b.value&&O&&typeof j=="string"?p("div",{class:`${d.value}-inline-collapsed-noicon`},[j.charAt(0)]):Y},L=dI(P(()=>I.value.length));return()=>{var H,j,Y,Q,U;if(l)return null;const ee=(H=e.title)!==null&&H!==void 0?H:(j=n.title)===null||j===void 0?void 0:j.call(n),X=bt((Y=n.default)===null||Y===void 0?void 0:Y.call(n)),J=X.length;let Z=ee;typeof ee>"u"?Z=O&&J?X:"":ee===!1&&(Z="");const G={title:Z};!y.value&&!b.value&&(G.title=null,G.open=!1);const q={};e.role==="option"&&(q["aria-selected"]=E.value);const V=(Q=e.icon)!==null&&Q!==void 0?Q:(U=n.icon)===null||U===void 0?void 0:U.call(n,e);return p(Qn,D(D({},G),{},{placement:h.value?"left":"right",overlayClassName:`${d.value}-inline-collapsed-tooltip`}),{default:()=>[p(Lr.Item,D(D(D({component:"li"},r),{},{id:e.id,style:m(m({},r.style||{}),L.value),class:[A.value,{[`${r.class}`]:!!r.class,[`${d.value}-item-only-child`]:(V?J+1:J)===1}],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":a,"aria-disabled":e.disabled},q),{},{onMouseenter:M,onMouseleave:N,onClick:z,onKeydown:B,onFocus:k,title:typeof ee=="string"?ee:void 0}),{default:()=>[ut(typeof V=="function"?V(e.originItemValue):V,{class:`${d.value}-item-icon`},!1),F(V,X)]})]})}}}),bi={adjustX:1,adjustY:1},CK={topLeft:{points:["bl","tl"],overflow:bi,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bi,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:bi,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:bi,offset:[4,0]}},xK={topLeft:{points:["bl","tl"],overflow:bi,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:bi,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:bi,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:bi,offset:[4,0]}},wK={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},UC=oe({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:["visibleChange"],setup(e,t){let{slots:n,emit:o}=t;const r=ne(!1),{getPopupContainer:i,rtl:l,subMenuOpenDelay:a,subMenuCloseDelay:s,builtinPlacements:u,triggerSubMenuAction:c,forceSubMenuRender:d,motion:f,defaultMotions:g,rootClassName:v}=Zr(),h=rI(),b=P(()=>l.value?m(m({},xK),u.value):m(m({},CK),u.value)),y=P(()=>wK[e.mode]),S=ne();ye(()=>e.visible,C=>{qe.cancel(S.value),S.value=qe(()=>{r.value=C})},{immediate:!0}),Qe(()=>{qe.cancel(S.value)});const $=C=>{o("visibleChange",C)},x=P(()=>{var C,O;const w=f.value||((C=g.value)===null||C===void 0?void 0:C[e.mode])||((O=g.value)===null||O===void 0?void 0:O.other),I=typeof w=="function"?w():w;return I?Ro(I.name,{css:!0}):void 0});return()=>{const{prefixCls:C,popupClassName:O,mode:w,popupOffset:I,disabled:T}=e;return p(Rl,{prefixCls:C,popupClassName:le(`${C}-popup`,{[`${C}-rtl`]:l.value},O,v.value),stretch:w==="horizontal"?"minWidth":null,getPopupContainer:i.value,builtinPlacements:b.value,popupPlacement:y.value,popupVisible:r.value,popupAlign:I&&{offset:I},action:T?[]:[c.value],mouseEnterDelay:a.value,mouseLeaveDelay:s.value,onPopupVisibleChange:$,forceRender:h||d.value,popupAnimation:x.value},{popup:n.popup,default:n.default})}}}),Bb=(e,t)=>{let{slots:n,attrs:o}=t;var r;const{prefixCls:i,mode:l}=Zr();return p("ul",D(D({},o),{},{class:le(i.value,`${i.value}-sub`,`${i.value}-${l.value==="inline"?"inline":"vertical"}`),"data-menu-list":!0}),[(r=n.default)===null||r===void 0?void 0:r.call(n)])};Bb.displayName="SubMenuList";const OK=oe({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(e,t){let{slots:n}=t;const o=P(()=>"inline"),{motion:r,mode:i,defaultMotions:l}=Zr(),a=P(()=>i.value===o.value),s=re(!a.value),u=P(()=>a.value?e.open:!1);ye(i,()=>{a.value&&(s.value=!1)},{flush:"post"});const c=P(()=>{var d,f;const g=r.value||((d=l.value)===null||d===void 0?void 0:d[o.value])||((f=l.value)===null||f===void 0?void 0:f.other),v=typeof g=="function"?g():g;return m(m({},v),{appear:e.keyPath.length<=1})});return()=>{var d;return s.value?null:p(pf,{mode:o.value},{default:()=>[p(un,c.value,{default:()=>[En(p(Bb,{id:e.id},{default:()=>[(d=n.default)===null||d===void 0?void 0:d.call(n)]}),[[jn,u.value]])]})]})}}});let YC=0;const PK=()=>({icon:W.any,title:W.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:De()}),xl=oe({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:PK(),slots:Object,setup(e,t){let{slots:n,attrs:o,emit:r}=t;var i,l;lI(!1);const a=Nb(),s=pn(),u=typeof s.vnode.key=="symbol"?String(s.vnode.key):s.vnode.key;Ct(typeof s.vnode.key!="symbol","SubMenu",`SubMenu \`:key="${String(u)}"\` not support Symbol type`);const c=Cv(u)?u:`sub_menu_${++YC}_$$_not_set_key`,d=(i=e.eventKey)!==null&&i!==void 0?i:Cv(u)?`sub_menu_${++YC}_$$_${u}`:c,{parentEventKeys:f,parentInfo:g,parentKeys:v}=Db(),h=P(()=>[...v.value,c]),b=ne([]),y={eventKey:d,key:c,parentEventKeys:f,childrenEventKeys:b,parentKeys:v};(l=g.childrenEventKeys)===null||l===void 0||l.value.push(d),Qe(()=>{var se;g.childrenEventKeys&&(g.childrenEventKeys.value=(se=g.childrenEventKeys)===null||se===void 0?void 0:se.value.filter(pe=>pe!=d))}),yK(d,c,y);const{prefixCls:S,activeKeys:$,disabled:x,changeActiveKeys:C,mode:O,inlineCollapsed:w,openKeys:I,overflowDisabled:T,onOpenChange:_,registerMenuInfo:E,unRegisterMenuInfo:A,selectedSubMenuKeys:R,expandIcon:z,theme:M}=Zr(),N=u!=null,B=!a&&(rI()||!N);mK(B),(a&&N||!a&&!N||B)&&(E(d,y),Qe(()=>{A(d)}));const k=P(()=>`${S.value}-submenu`),F=P(()=>x.value||e.disabled),L=ne(),H=ne(),j=P(()=>I.value.includes(c)),Y=P(()=>!T.value&&j.value),Q=P(()=>R.value.includes(c)),U=ne(!1);ye($,()=>{U.value=!!$.value.find(se=>se===c)},{immediate:!0});const ee=se=>{F.value||(r("titleClick",se,c),O.value==="inline"&&_(c,!j.value))},X=se=>{F.value||(C(h.value),r("mouseenter",se))},J=se=>{F.value||(C([]),r("mouseleave",se))},Z=dI(P(()=>h.value.length)),G=se=>{O.value!=="inline"&&_(c,se)},q=()=>{C(h.value)},V=d&&`${d}-popup`,K=P(()=>le(S.value,`${S.value}-${e.theme||M.value}`,e.popupClassName)),te=(se,pe)=>{if(!pe)return w.value&&!v.value.length&&se&&typeof se=="string"?p("div",{class:`${S.value}-inline-collapsed-noicon`},[se.charAt(0)]):p("span",{class:`${S.value}-title-content`},[se]);const ge=Kt(se)&&se.type==="span";return p(Ve,null,[ut(typeof pe=="function"?pe(e.originItemValue):pe,{class:`${S.value}-item-icon`},!1),ge?se:p("span",{class:`${S.value}-title-content`},[se])])},ue=P(()=>O.value!=="inline"&&h.value.length>1?"vertical":O.value),ie=P(()=>O.value==="horizontal"?"vertical":O.value),ae=P(()=>ue.value==="horizontal"?"vertical":ue.value),ce=()=>{var se,pe;const ge=k.value,he=(se=e.icon)!==null&&se!==void 0?se:(pe=n.icon)===null||pe===void 0?void 0:pe.call(n,e),me=e.expandIcon||n.expandIcon||z.value,xe=te(Zt(n,e,"title"),he);return p("div",{style:Z.value,class:`${ge}-title`,tabindex:F.value?null:-1,ref:L,title:typeof xe=="string"?xe:null,"data-menu-id":c,"aria-expanded":Y.value,"aria-haspopup":!0,"aria-controls":V,"aria-disabled":F.value,onClick:ee,onFocus:q},[xe,O.value!=="horizontal"&&me?me(m(m({},e),{isOpen:Y.value})):p("i",{class:`${ge}-arrow`},null)])};return()=>{var se;if(a)return N?(se=n.default)===null||se===void 0?void 0:se.call(n):null;const pe=k.value;let ge=()=>null;if(!T.value&&O.value!=="inline"){const he=O.value==="horizontal"?[0,8]:[10,0];ge=()=>p(UC,{mode:ue.value,prefixCls:pe,visible:!e.internalPopupClose&&Y.value,popupClassName:K.value,popupOffset:e.popupOffset||he,disabled:F.value,onVisibleChange:G},{default:()=>[ce()],popup:()=>p(pf,{mode:ae.value},{default:()=>[p(Bb,{id:V,ref:H},{default:n.default})]})})}else ge=()=>p(UC,null,{default:ce});return p(pf,{mode:ie.value},{default:()=>[p(Lr.Item,D(D({component:"li"},o),{},{role:"none",class:le(pe,`${pe}-${O.value}`,o.class,{[`${pe}-open`]:Y.value,[`${pe}-active`]:U.value,[`${pe}-selected`]:Q.value,[`${pe}-disabled`]:F.value}),onMouseenter:X,onMouseleave:J,"data-submenu-id":c}),{default:()=>p(Ve,null,[ge(),!T.value&&p(OK,{id:V,open:Y.value,keyPath:h.value},{default:n.default})])})]})}}});function fI(e,t){return e.classList?e.classList.contains(t):` ${e.className} `.indexOf(` ${t} `)>-1}function gf(e,t){e.classList?e.classList.add(t):fI(e,t)||(e.className=`${e.className} ${t}`)}function hf(e,t){if(e.classList)e.classList.remove(t);else if(fI(e,t)){const n=e.className;e.className=` ${n} `.replace(` ${t} `," ")}}const Rc=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:e,appear:t,css:!0,onBeforeEnter:n=>{n.style.height="0px",n.style.opacity="0",gf(n,e)},onEnter:n=>{ot(()=>{n.style.height=`${n.scrollHeight}px`,n.style.opacity="1"})},onAfterEnter:n=>{n&&(hf(n,e),n.style.height=null,n.style.opacity=null)},onBeforeLeave:n=>{gf(n,e),n.style.height=`${n.offsetHeight}px`,n.style.opacity=null},onLeave:n=>{setTimeout(()=>{n.style.height="0px",n.style.opacity="0"})},onAfterLeave:n=>{n&&(hf(n,e),n.style&&(n.style.height=null,n.style.opacity=null))}}},IK=()=>({title:W.any,originItemValue:De()}),gc=oe({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:IK(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=Zr(),i=P(()=>`${r.value}-item-group`),l=Nb();return()=>{var a,s;return l?(a=n.default)===null||a===void 0?void 0:a.call(n):p("li",D(D({},o),{},{onClick:u=>u.stopPropagation(),class:i.value}),[p("div",{title:typeof e.title=="string"?e.title:void 0,class:`${i.value}-title`},[Zt(n,e,"title")]),p("ul",{class:`${i.value}-list`},[(s=n.default)===null||s===void 0?void 0:s.call(n)])])}}}),TK=()=>({prefixCls:String,dashed:Boolean}),hc=oe({compatConfig:{MODE:3},name:"AMenuDivider",props:TK(),setup(e){const{prefixCls:t}=Zr(),n=P(()=>({[`${t.value}-item-divider`]:!0,[`${t.value}-item-divider-dashed`]:!!e.dashed}));return()=>p("li",{class:n.value},null)}});var EK=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{if(o&&typeof o=="object"){const i=o,{label:l,children:a,key:s,type:u}=i,c=EK(i,["label","children","key","type"]),d=s??`tmp-${r}`,f=n?n.parentKeys.slice():[],g=[],v={eventKey:d,key:d,parentEventKeys:re(f),parentKeys:re(f),childrenEventKeys:re(g),isLeaf:!1};if(a||u==="group"){if(u==="group"){const b=Zv(a,t,n);return p(gc,D(D({key:d},c),{},{title:l,originItemValue:o}),{default:()=>[b]})}t.set(d,v),n&&n.childrenEventKeys.push(d);const h=Zv(a,t,{childrenEventKeys:g,parentKeys:[].concat(f,d)});return p(xl,D(D({key:d},c),{},{title:l,originItemValue:o}),{default:()=>[h]})}return u==="divider"?p(hc,D({key:d},c),null):(v.isLeaf=!0,t.set(d,v),p(pr,D(D({key:d},c),{},{originItemValue:o}),{default:()=>[l]}))}return null}).filter(o=>o)}function MK(e){const t=ne([]),n=ne(!1),o=ne(new Map);return ye(()=>e.items,()=>{const r=new Map;n.value=!1,e.items?(n.value=!0,t.value=Zv(e.items,r)):t.value=void 0,o.value=r},{immediate:!0,deep:!0}),{itemsNodes:t,store:o,hasItmes:n}}const _K=e=>{const{componentCls:t,motionDurationSlow:n,menuHorizontalHeight:o,colorSplit:r,lineWidth:i,lineType:l,menuItemPaddingInline:a}=e;return{[`${t}-horizontal`]:{lineHeight:`${o}px`,border:0,borderBottom:`${i}px ${l} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:a},[`> ${t}-item:hover, > ${t}-item-active, > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},AK=e=>{let{componentCls:t,menuArrowOffset:n}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, - ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},qC=e=>m({},Wr(e)),ZC=(e,t)=>{const{componentCls:n,colorItemText:o,colorItemTextSelected:r,colorGroupTitle:i,colorItemBg:l,colorSubItemBg:a,colorItemBgSelected:s,colorActiveBarHeight:u,colorActiveBarWidth:c,colorActiveBarBorderSize:d,motionDurationSlow:f,motionEaseInOut:g,motionEaseOut:v,menuItemPaddingInline:h,motionDurationMid:b,colorItemTextHover:y,lineType:S,colorSplit:$,colorItemTextDisabled:x,colorDangerItemText:C,colorDangerItemTextHover:O,colorDangerItemTextSelected:w,colorDangerItemBgActive:I,colorDangerItemBgSelected:T,colorItemBgHover:M,menuSubMenuBg:E,colorItemTextSelectedHorizontal:A,colorItemBgSelectedHorizontal:R}=e;return{[`${n}-${t}`]:{color:o,background:l,[`&${n}-root:focus-visible`]:m({},qC(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:r}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:s}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:M},"&:active":{backgroundColor:s}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:O}},[`&${n}-item:active`]:{background:I}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:T}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:m({},qC(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:E},[`&${n}-popup > ${n}`]:{backgroundColor:l},[`&${n}-horizontal`]:m(m({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${u}px solid transparent`,transition:`border-color ${f} ${g}`,content:'""'},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:u,borderBottomColor:A}},"&-selected":{color:A,backgroundColor:R,"&::after":{borderBottomWidth:u,borderBottomColor:A}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${S} ${$}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:a},[`${n}-item, ${n}-submenu-title`]:d&&c?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${c}px solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${b} ${v}`,`opacity ${b} ${v}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${b} ${g}`,`opacity ${b} ${g}`].join(",")}}}}}},QC=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:o,padding:r,menuArrowSize:i,marginXS:l,marginXXS:a}=e,s=r+i+l;return{[`${t}-item`]:{position:"relative"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:r,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:a,width:`calc(100% - ${o*2}px)`},[`${t}-submenu`]:{paddingBottom:.02},[`> ${t}-item, + ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},qC=e=>m({},Wr(e)),ZC=(e,t)=>{const{componentCls:n,colorItemText:o,colorItemTextSelected:r,colorGroupTitle:i,colorItemBg:l,colorSubItemBg:a,colorItemBgSelected:s,colorActiveBarHeight:u,colorActiveBarWidth:c,colorActiveBarBorderSize:d,motionDurationSlow:f,motionEaseInOut:g,motionEaseOut:v,menuItemPaddingInline:h,motionDurationMid:b,colorItemTextHover:y,lineType:S,colorSplit:$,colorItemTextDisabled:x,colorDangerItemText:C,colorDangerItemTextHover:O,colorDangerItemTextSelected:w,colorDangerItemBgActive:I,colorDangerItemBgSelected:T,colorItemBgHover:_,menuSubMenuBg:E,colorItemTextSelectedHorizontal:A,colorItemBgSelectedHorizontal:R}=e;return{[`${n}-${t}`]:{color:o,background:l,[`&${n}-root:focus-visible`]:m({},qC(e)),[`${n}-item-group-title`]:{color:i},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:r}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:s}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:s}}},[`${n}-item-danger`]:{color:C,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:O}},[`&${n}-item:active`]:{background:I}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:T}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:m({},qC(e))},[`&${n}-submenu > ${n}`]:{backgroundColor:E},[`&${n}-popup > ${n}`]:{backgroundColor:l},[`&${n}-horizontal`]:m(m({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:d,marginTop:-d,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${u}px solid transparent`,transition:`border-color ${f} ${g}`,content:'""'},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:u,borderBottomColor:A}},"&-selected":{color:A,backgroundColor:R,"&::after":{borderBottomWidth:u,borderBottomColor:A}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${d}px ${S} ${$}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:a},[`${n}-item, ${n}-submenu-title`]:d&&c?{width:`calc(100% + ${d}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${c}px solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${b} ${v}`,`opacity ${b} ${v}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${b} ${g}`,`opacity ${b} ${g}`].join(",")}}}}}},QC=e=>{const{componentCls:t,menuItemHeight:n,itemMarginInline:o,padding:r,menuArrowSize:i,marginXS:l,marginXXS:a}=e,s=r+i+l;return{[`${t}-item`]:{position:"relative"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:r,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:a,width:`calc(100% - ${o*2}px)`},[`${t}-submenu`]:{paddingBottom:.02},[`> ${t}-item, > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${t}-item-group-list ${t}-submenu-title, ${t}-submenu-title`]:{paddingInlineEnd:s}}},RK=e=>{const{componentCls:t,iconCls:n,menuItemHeight:o,colorTextLightSolid:r,dropdownWidth:i,controlHeightLG:l,motionDurationMid:a,motionEaseOut:s,paddingXL:u,fontSizeSM:c,fontSizeLG:d,motionDurationSlow:f,paddingXS:g,boxShadowSecondary:v}=e,h={height:o,lineHeight:`${o}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":m({[`&${t}-root`]:{boxShadow:"none"}},QC(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:m(m({},QC(e)),{boxShadow:v})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${l*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${a} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:h,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:h}},{[`${t}-inline-collapsed`]:{width:o*2,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-item, @@ -202,11 +202,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ${t}-submenu-arrow, ${t}-submenu-expand-icon `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:d,lineHeight:`${o}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:m(m({},Gt),{paddingInline:g})}}]},JC=e=>{const{componentCls:t,fontSize:n,motionDurationSlow:o,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:l,iconCls:a,controlHeightSM:s}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${o}`,`background ${o}`,`padding ${o} ${i}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:n,fontSize:n,transition:[`font-size ${r} ${l}`,`margin ${o} ${i}`,`color ${o}`].join(","),"+ span":{marginInlineStart:s-n,opacity:1,transition:[`opacity ${o} ${i}`,`margin ${o}`,`color ${o}`].join(",")}},[`${t}-item-icon`]:m({},Tl()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},ex=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:r,menuArrowSize:i,menuArrowOffset:l}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${o}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:i*.6,height:i*.15,backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${o}`,`transform ${n} ${o}`,`top ${n} ${o}`,`color ${n} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${l})`},"&::after":{transform:`rotate(-45deg) translateY(${l})`}}}}},DK=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:l,lineHeight:a,paddingXS:s,padding:u,colorSplit:c,lineWidth:d,zIndexPopup:f,borderRadiusLG:g,radiusSubMenuItem:v,menuArrowSize:h,menuArrowOffset:b,lineType:y,menuPanelMaskInset:S}=e;return[{"":{[`${n}`]:m(m({},Xo()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:m(m(m(m(m(m(m({},Ue(e)),Xo()),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.radiusItem},[`${n}-item-group-title`]:{padding:`${s}px ${u}px`,fontSize:o,lineHeight:a,transition:`all ${r}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${r} ${l}`,`background ${r} ${l}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${l}`,`background ${r} ${l}`,`padding ${i} ${l}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${l}`,`padding ${r} ${l}`].join(",")},[`${n}-title-content`]:{transition:`color ${r}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:y,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),JC(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${o*2}px ${u}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,background:"transparent",borderRadius:g,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:`${S}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:S},[`> ${n}`]:m(m(m({borderRadius:g},JC(e)),ex(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:v},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${l}`}})}}),ex(e)),{[`&-inline-collapsed ${n}-submenu-arrow, - &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${b})`},"&::after":{transform:`rotate(45deg) translateX(-${b})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${h*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${b})`},"&::before":{transform:`rotate(45deg) translateX(${b})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},NK=((e,t)=>Ke("Menu",(o,r)=>{let{overrideComponentToken:i}=r;if(t?.value===!1)return[];const{colorBgElevated:l,colorPrimary:a,colorError:s,colorErrorHover:u,colorTextLightSolid:c}=o,{controlHeightLG:d,fontSize:f}=o,g=f/7*5,v=ke(o,{menuItemHeight:d,menuItemPaddingInline:o.margin,menuArrowSize:g,menuHorizontalHeight:d*1.15,menuArrowOffset:`${g*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:l}),h=new pt(c).setAlpha(.65).toRgbString(),b=ke(v,{colorItemText:h,colorItemTextHover:c,colorGroupTitle:h,colorItemTextSelected:c,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:a,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new pt(c).setAlpha(.25).toRgbString(),colorDangerItemText:s,colorDangerItemTextHover:u,colorDangerItemTextSelected:c,colorDangerItemBgActive:s,colorDangerItemBgSelected:s,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:c,colorItemBgSelectedHorizontal:a},m({},i));return[DK(v),_K(v),RK(v),ZC(v,"light"),ZC(b,"dark"),AK(v),_c(v),vr(v,"slide-up"),vr(v,"slide-down"),Ga(v,"zoom-big")]},o=>{const{colorPrimary:r,colorError:i,colorTextDisabled:l,colorErrorBg:a,colorText:s,colorTextDescription:u,colorBgContainer:c,colorFillAlter:d,colorFillContent:f,lineWidth:g,lineWidthBold:v,controlItemBgActive:h,colorBgTextHover:b}=o;return{dropdownWidth:160,zIndexPopup:o.zIndexPopupBase+50,radiusItem:o.borderRadiusLG,radiusSubMenuItem:o.borderRadiusSM,colorItemText:s,colorItemTextHover:s,colorItemTextHoverHorizontal:r,colorGroupTitle:u,colorItemTextSelected:r,colorItemTextSelectedHorizontal:r,colorItemBg:c,colorItemBgHover:b,colorItemBgActive:f,colorSubItemBg:d,colorItemBgSelected:h,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:v,colorActiveBarBorderSize:g,colorItemTextDisabled:l,colorDangerItemText:i,colorDangerItemTextHover:i,colorDangerItemTextSelected:i,colorDangerItemBgActive:a,colorDangerItemBgSelected:a,itemMarginInline:o.marginXXS}})(e)),BK=()=>({id:String,prefixCls:String,items:Array,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},tabindex:{type:[Number,String]},motion:Object,role:String,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:0},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}),tx=[],Vt=oe({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:BK(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{direction:i,getPrefixCls:l}=Te("menu",e),a=eI(),s=P(()=>{var X;return l("menu",e.prefixCls||((X=a?.prefixCls)===null||X===void 0?void 0:X.value))}),[u,c]=NK(s,P(()=>!a)),d=ne(new Map),f=He(aI,re(void 0)),g=P(()=>f.value!==void 0?f.value:e.inlineCollapsed),{itemsNodes:v}=MK(e),h=ne(!1);je(()=>{h.value=!0}),Le(()=>{Ct(!(e.inlineCollapsed===!0&&e.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Ct(!(f.value!==void 0&&e.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});const b=re([]),y=re([]),S=re({});ye(d,()=>{const X={};for(const J of d.value.values())X[J.key]=J;S.value=X},{flush:"post"}),Le(()=>{if(e.activeKey!==void 0){let X=[];const J=e.activeKey?S.value[e.activeKey]:void 0;J&&e.activeKey!==void 0?X=lh([].concat(St(J.parentKeys),e.activeKey)):X=[],Zl(b.value,X)||(b.value=X)}}),ye(()=>e.selectedKeys,X=>{X&&(y.value=X.slice())},{immediate:!0,deep:!0});const $=re([]);ye([S,y],()=>{let X=[];y.value.forEach(J=>{const Z=S.value[J];Z&&(X=X.concat(St(Z.parentKeys)))}),X=lh(X),Zl($.value,X)||($.value=X)},{immediate:!0});const x=X=>{if(e.selectable){const{key:J}=X,Z=y.value.includes(J);let G;e.multiple?Z?G=y.value.filter(V=>V!==J):G=[...y.value,J]:G=[J];const q=m(m({},X),{selectedKeys:G});Zl(G,y.value)||(e.selectedKeys===void 0&&(y.value=G),o("update:selectedKeys",G),Z&&e.multiple?o("deselect",q):o("select",q))}M.value!=="inline"&&!e.multiple&&C.value.length&&R(tx)},C=re([]);ye(()=>e.openKeys,function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:C.value;Zl(C.value,X)||(C.value=X.slice())},{immediate:!0,deep:!0});let O;const w=X=>{clearTimeout(O),O=setTimeout(()=>{e.activeKey===void 0&&(b.value=X),o("update:activeKey",X[X.length-1])})},I=P(()=>!!e.disabled),T=P(()=>i.value==="rtl"),M=re("vertical"),E=ne(!1);Le(()=>{var X;(e.mode==="inline"||e.mode==="vertical")&&g.value?(M.value="vertical",E.value=g.value):(M.value=e.mode,E.value=!1),!((X=a?.mode)===null||X===void 0)&&X.value&&(M.value=a.mode.value)});const A=P(()=>M.value==="inline"),R=X=>{C.value=X,o("update:openKeys",X),o("openChange",X)},z=re(C.value),_=ne(!1);ye(C,()=>{A.value&&(z.value=C.value)},{immediate:!0}),ye(A,()=>{if(!_.value){_.value=!0;return}A.value?C.value=z.value:R(tx)},{immediate:!0});const N=P(()=>({[`${s.value}`]:!0,[`${s.value}-root`]:!0,[`${s.value}-${M.value}`]:!0,[`${s.value}-inline-collapsed`]:E.value,[`${s.value}-rtl`]:T.value,[`${s.value}-${e.theme}`]:!0})),B=P(()=>l()),k=P(()=>({horizontal:{name:`${B.value}-slide-up`},inline:Rc(`${B.value}-motion-collapse`),other:{name:`${B.value}-zoom-big`}}));lI(!0);const F=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const J=[],Z=d.value;return X.forEach(G=>{const{key:q,childrenEventKeys:V}=Z.get(G);J.push(q,...F(St(V)))}),J},L=X=>{var J;o("click",X),x(X),(J=a?.onClick)===null||J===void 0||J.call(a)},H=(X,J)=>{var Z;const G=((Z=S.value[X])===null||Z===void 0?void 0:Z.childrenEventKeys)||[];let q=C.value.filter(V=>V!==X);if(J)q.push(X);else if(M.value!=="inline"){const V=F(St(G));q=lh(q.filter(K=>!V.includes(K)))}Zl(C,q)||R(q)},j=(X,J)=>{d.value.set(X,J),d.value=new Map(d.value)},Y=X=>{d.value.delete(X),d.value=new Map(d.value)},Q=re(0),U=P(()=>{var X;return e.expandIcon||n.expandIcon||!((X=a?.expandIcon)===null||X===void 0)&&X.value?J=>{let Z=e.expandIcon||n.expandIcon;return Z=typeof Z=="function"?Z(J):Z,ut(Z,{class:`${s.value}-submenu-expand-icon`},!1)}:null});nI({prefixCls:s,activeKeys:b,openKeys:C,selectedKeys:y,changeActiveKeys:w,disabled:I,rtl:T,mode:M,inlineIndent:P(()=>e.inlineIndent),subMenuCloseDelay:P(()=>e.subMenuCloseDelay),subMenuOpenDelay:P(()=>e.subMenuOpenDelay),builtinPlacements:P(()=>e.builtinPlacements),triggerSubMenuAction:P(()=>e.triggerSubMenuAction),getPopupContainer:P(()=>e.getPopupContainer),inlineCollapsed:E,theme:P(()=>e.theme),siderCollapsed:f,defaultMotions:P(()=>h.value?k.value:null),motion:P(()=>h.value?e.motion:null),overflowDisabled:ne(void 0),onOpenChange:H,onItemClick:L,registerMenuInfo:j,unRegisterMenuInfo:Y,selectedSubMenuKeys:$,expandIcon:U,forceSubMenuRender:P(()=>e.forceSubMenuRender),rootClassName:c});const ee=()=>{var X;return v.value||bt((X=n.default)===null||X===void 0?void 0:X.call(n))};return()=>{var X;const J=ee(),Z=Q.value>=J.length-1||M.value!=="horizontal"||e.disabledOverflow,G=V=>M.value!=="horizontal"||e.disabledOverflow?V:V.map((K,te)=>p(pf,{key:K.key,overflowDisabled:te>Q.value},{default:()=>K})),q=((X=n.overflowedIndicator)===null||X===void 0?void 0:X.call(n))||p(Ac,null,null);return u(p(Lr,D(D({},r),{},{onMousedown:e.onMousedown,prefixCls:`${s.value}-overflow`,component:"ul",itemComponent:pr,class:[N.value,r.class,c.value],role:"menu",id:e.id,data:G(J),renderRawItem:V=>V,renderRawRest:V=>{const K=V.length,te=K?J.slice(-K):null;return p(Ve,null,[p(xl,{eventKey:vu,key:vu,title:q,disabled:Z,internalPopupClose:K===0},{default:()=>te}),p(XC,null,{default:()=>[p(xl,{eventKey:vu,key:vu,title:q,disabled:Z,internalPopupClose:K===0},{default:()=>te})]})])},maxCount:M.value!=="horizontal"||e.disabledOverflow?Lr.INVALIDATE:Lr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:V=>{Q.value=V}}),{default:()=>[p(c0,{to:"body"},{default:()=>[p("div",{style:{display:"none"},"aria-hidden":!0},[p(XC,null,{default:()=>[G(ee())]})])]})]}))}}});Vt.install=function(e){return e.component(Vt.name,Vt),e.component(pr.name,pr),e.component(xl.name,xl),e.component(hc.name,hc),e.component(gc.name,gc),e};Vt.Item=pr;Vt.Divider=hc;Vt.SubMenu=xl;Vt.ItemGroup=gc;const kK=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:m(m({},Ue(e)),{color:e.breadcrumbBaseColor,fontSize:e.breadcrumbFontSize,[n]:{fontSize:e.breadcrumbIconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:m({color:e.breadcrumbLinkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover}},Kr(e)),"li:last-child":{color:e.breadcrumbLastItemColor,[`& > ${t}-separator`]:{display:"none"}},[`${t}-separator`]:{marginInline:e.breadcrumbSeparatorMargin,color:e.breadcrumbSeparatorColor},[`${t}-link`]:{[` + &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${b})`},"&::after":{transform:`rotate(45deg) translateX(-${b})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${h*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${b})`},"&::before":{transform:`rotate(45deg) translateX(${b})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},NK=((e,t)=>Ke("Menu",(o,r)=>{let{overrideComponentToken:i}=r;if(t?.value===!1)return[];const{colorBgElevated:l,colorPrimary:a,colorError:s,colorErrorHover:u,colorTextLightSolid:c}=o,{controlHeightLG:d,fontSize:f}=o,g=f/7*5,v=ke(o,{menuItemHeight:d,menuItemPaddingInline:o.margin,menuArrowSize:g,menuHorizontalHeight:d*1.15,menuArrowOffset:`${g*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:l}),h=new pt(c).setAlpha(.65).toRgbString(),b=ke(v,{colorItemText:h,colorItemTextHover:c,colorGroupTitle:h,colorItemTextSelected:c,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:a,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new pt(c).setAlpha(.25).toRgbString(),colorDangerItemText:s,colorDangerItemTextHover:u,colorDangerItemTextSelected:c,colorDangerItemBgActive:s,colorDangerItemBgSelected:s,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:c,colorItemBgSelectedHorizontal:a},m({},i));return[DK(v),_K(v),RK(v),ZC(v,"light"),ZC(b,"dark"),AK(v),_c(v),vr(v,"slide-up"),vr(v,"slide-down"),Ga(v,"zoom-big")]},o=>{const{colorPrimary:r,colorError:i,colorTextDisabled:l,colorErrorBg:a,colorText:s,colorTextDescription:u,colorBgContainer:c,colorFillAlter:d,colorFillContent:f,lineWidth:g,lineWidthBold:v,controlItemBgActive:h,colorBgTextHover:b}=o;return{dropdownWidth:160,zIndexPopup:o.zIndexPopupBase+50,radiusItem:o.borderRadiusLG,radiusSubMenuItem:o.borderRadiusSM,colorItemText:s,colorItemTextHover:s,colorItemTextHoverHorizontal:r,colorGroupTitle:u,colorItemTextSelected:r,colorItemTextSelectedHorizontal:r,colorItemBg:c,colorItemBgHover:b,colorItemBgActive:f,colorSubItemBg:d,colorItemBgSelected:h,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:v,colorActiveBarBorderSize:g,colorItemTextDisabled:l,colorDangerItemText:i,colorDangerItemTextHover:i,colorDangerItemTextSelected:i,colorDangerItemBgActive:a,colorDangerItemBgSelected:a,itemMarginInline:o.marginXXS}})(e)),BK=()=>({id:String,prefixCls:String,items:Array,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},tabindex:{type:[Number,String]},motion:Object,role:String,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:0},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}),tx=[],Vt=oe({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:BK(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{direction:i,getPrefixCls:l}=Te("menu",e),a=eI(),s=P(()=>{var X;return l("menu",e.prefixCls||((X=a?.prefixCls)===null||X===void 0?void 0:X.value))}),[u,c]=NK(s,P(()=>!a)),d=ne(new Map),f=He(aI,re(void 0)),g=P(()=>f.value!==void 0?f.value:e.inlineCollapsed),{itemsNodes:v}=MK(e),h=ne(!1);je(()=>{h.value=!0}),Le(()=>{Ct(!(e.inlineCollapsed===!0&&e.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Ct(!(f.value!==void 0&&e.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});const b=re([]),y=re([]),S=re({});ye(d,()=>{const X={};for(const J of d.value.values())X[J.key]=J;S.value=X},{flush:"post"}),Le(()=>{if(e.activeKey!==void 0){let X=[];const J=e.activeKey?S.value[e.activeKey]:void 0;J&&e.activeKey!==void 0?X=lh([].concat(St(J.parentKeys),e.activeKey)):X=[],Zl(b.value,X)||(b.value=X)}}),ye(()=>e.selectedKeys,X=>{X&&(y.value=X.slice())},{immediate:!0,deep:!0});const $=re([]);ye([S,y],()=>{let X=[];y.value.forEach(J=>{const Z=S.value[J];Z&&(X=X.concat(St(Z.parentKeys)))}),X=lh(X),Zl($.value,X)||($.value=X)},{immediate:!0});const x=X=>{if(e.selectable){const{key:J}=X,Z=y.value.includes(J);let G;e.multiple?Z?G=y.value.filter(V=>V!==J):G=[...y.value,J]:G=[J];const q=m(m({},X),{selectedKeys:G});Zl(G,y.value)||(e.selectedKeys===void 0&&(y.value=G),o("update:selectedKeys",G),Z&&e.multiple?o("deselect",q):o("select",q))}_.value!=="inline"&&!e.multiple&&C.value.length&&R(tx)},C=re([]);ye(()=>e.openKeys,function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:C.value;Zl(C.value,X)||(C.value=X.slice())},{immediate:!0,deep:!0});let O;const w=X=>{clearTimeout(O),O=setTimeout(()=>{e.activeKey===void 0&&(b.value=X),o("update:activeKey",X[X.length-1])})},I=P(()=>!!e.disabled),T=P(()=>i.value==="rtl"),_=re("vertical"),E=ne(!1);Le(()=>{var X;(e.mode==="inline"||e.mode==="vertical")&&g.value?(_.value="vertical",E.value=g.value):(_.value=e.mode,E.value=!1),!((X=a?.mode)===null||X===void 0)&&X.value&&(_.value=a.mode.value)});const A=P(()=>_.value==="inline"),R=X=>{C.value=X,o("update:openKeys",X),o("openChange",X)},z=re(C.value),M=ne(!1);ye(C,()=>{A.value&&(z.value=C.value)},{immediate:!0}),ye(A,()=>{if(!M.value){M.value=!0;return}A.value?C.value=z.value:R(tx)},{immediate:!0});const N=P(()=>({[`${s.value}`]:!0,[`${s.value}-root`]:!0,[`${s.value}-${_.value}`]:!0,[`${s.value}-inline-collapsed`]:E.value,[`${s.value}-rtl`]:T.value,[`${s.value}-${e.theme}`]:!0})),B=P(()=>l()),k=P(()=>({horizontal:{name:`${B.value}-slide-up`},inline:Rc(`${B.value}-motion-collapse`),other:{name:`${B.value}-zoom-big`}}));lI(!0);const F=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const J=[],Z=d.value;return X.forEach(G=>{const{key:q,childrenEventKeys:V}=Z.get(G);J.push(q,...F(St(V)))}),J},L=X=>{var J;o("click",X),x(X),(J=a?.onClick)===null||J===void 0||J.call(a)},H=(X,J)=>{var Z;const G=((Z=S.value[X])===null||Z===void 0?void 0:Z.childrenEventKeys)||[];let q=C.value.filter(V=>V!==X);if(J)q.push(X);else if(_.value!=="inline"){const V=F(St(G));q=lh(q.filter(K=>!V.includes(K)))}Zl(C,q)||R(q)},j=(X,J)=>{d.value.set(X,J),d.value=new Map(d.value)},Y=X=>{d.value.delete(X),d.value=new Map(d.value)},Q=re(0),U=P(()=>{var X;return e.expandIcon||n.expandIcon||!((X=a?.expandIcon)===null||X===void 0)&&X.value?J=>{let Z=e.expandIcon||n.expandIcon;return Z=typeof Z=="function"?Z(J):Z,ut(Z,{class:`${s.value}-submenu-expand-icon`},!1)}:null});nI({prefixCls:s,activeKeys:b,openKeys:C,selectedKeys:y,changeActiveKeys:w,disabled:I,rtl:T,mode:_,inlineIndent:P(()=>e.inlineIndent),subMenuCloseDelay:P(()=>e.subMenuCloseDelay),subMenuOpenDelay:P(()=>e.subMenuOpenDelay),builtinPlacements:P(()=>e.builtinPlacements),triggerSubMenuAction:P(()=>e.triggerSubMenuAction),getPopupContainer:P(()=>e.getPopupContainer),inlineCollapsed:E,theme:P(()=>e.theme),siderCollapsed:f,defaultMotions:P(()=>h.value?k.value:null),motion:P(()=>h.value?e.motion:null),overflowDisabled:ne(void 0),onOpenChange:H,onItemClick:L,registerMenuInfo:j,unRegisterMenuInfo:Y,selectedSubMenuKeys:$,expandIcon:U,forceSubMenuRender:P(()=>e.forceSubMenuRender),rootClassName:c});const ee=()=>{var X;return v.value||bt((X=n.default)===null||X===void 0?void 0:X.call(n))};return()=>{var X;const J=ee(),Z=Q.value>=J.length-1||_.value!=="horizontal"||e.disabledOverflow,G=V=>_.value!=="horizontal"||e.disabledOverflow?V:V.map((K,te)=>p(pf,{key:K.key,overflowDisabled:te>Q.value},{default:()=>K})),q=((X=n.overflowedIndicator)===null||X===void 0?void 0:X.call(n))||p(Ac,null,null);return u(p(Lr,D(D({},r),{},{onMousedown:e.onMousedown,prefixCls:`${s.value}-overflow`,component:"ul",itemComponent:pr,class:[N.value,r.class,c.value],role:"menu",id:e.id,data:G(J),renderRawItem:V=>V,renderRawRest:V=>{const K=V.length,te=K?J.slice(-K):null;return p(Ve,null,[p(xl,{eventKey:vu,key:vu,title:q,disabled:Z,internalPopupClose:K===0},{default:()=>te}),p(XC,null,{default:()=>[p(xl,{eventKey:vu,key:vu,title:q,disabled:Z,internalPopupClose:K===0},{default:()=>te})]})])},maxCount:_.value!=="horizontal"||e.disabledOverflow?Lr.INVALIDATE:Lr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:V=>{Q.value=V}}),{default:()=>[p(c0,{to:"body"},{default:()=>[p("div",{style:{display:"none"},"aria-hidden":!0},[p(XC,null,{default:()=>[G(ee())]})])]})]}))}}});Vt.install=function(e){return e.component(Vt.name,Vt),e.component(pr.name,pr),e.component(xl.name,xl),e.component(hc.name,hc),e.component(gc.name,gc),e};Vt.Item=pr;Vt.Divider=hc;Vt.SubMenu=xl;Vt.ItemGroup=gc;const kK=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:m(m({},Ue(e)),{color:e.breadcrumbBaseColor,fontSize:e.breadcrumbFontSize,[n]:{fontSize:e.breadcrumbIconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:m({color:e.breadcrumbLinkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover}},Kr(e)),"li:last-child":{color:e.breadcrumbLastItemColor,[`& > ${t}-separator`]:{display:"none"}},[`${t}-separator`]:{marginInline:e.breadcrumbSeparatorMargin,color:e.breadcrumbSeparatorColor},[`${t}-link`]:{[` > ${n} + span, > ${n} + a - `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover,a:{color:e.breadcrumbLinkColorHover}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},FK=Ke("Breadcrumb",e=>{const t=ke(e,{breadcrumbBaseColor:e.colorTextDescription,breadcrumbFontSize:e.fontSize,breadcrumbIconFontSize:e.fontSize,breadcrumbLinkColor:e.colorTextDescription,breadcrumbLinkColorHover:e.colorText,breadcrumbLastItemColor:e.colorText,breadcrumbSeparatorMargin:e.marginXS,breadcrumbSeparatorColor:e.colorTextDescription});return[kK(t)]}),LK=()=>({prefixCls:String,routes:{type:Array},params:W.any,separator:W.any,itemRender:{type:Function}});function zK(e,t){if(!e.breadcrumbName)return null;const n=Object.keys(t).join("|");return e.breadcrumbName.replace(new RegExp(`:(${n})`,"g"),(r,i)=>t[i]||r)}function nx(e){const{route:t,params:n,routes:o,paths:r}=e,i=o.indexOf(t)===o.length-1,l=zK(t,n);return i?p("span",null,[l]):p("a",{href:`#/${r.join("/")}`},[l])}const fl=oe({compatConfig:{MODE:3},name:"ABreadcrumb",inheritAttrs:!1,props:LK(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Te("breadcrumb",e),[l,a]=FK(r),s=(d,f)=>(d=(d||"").replace(/^\//,""),Object.keys(f).forEach(g=>{d=d.replace(`:${g}`,f[g])}),d),u=(d,f,g)=>{const v=[...d],h=s(f||"",g);return h&&v.push(h),v},c=d=>{let{routes:f=[],params:g={},separator:v,itemRender:h=nx}=d;const b=[];return f.map(y=>{const S=s(y.path,g);S&&b.push(S);const $=[...b];let x=null;y.children&&y.children.length&&(x=p(Vt,{items:y.children.map(O=>({key:O.path||O.breadcrumbName,label:h({route:O,params:g,routes:f,paths:u($,O.path,g)})}))},null));const C={separator:v};return x&&(C.overlay=x),p(pc,D(D({},C),{},{key:S||y.breadcrumbName}),{default:()=>[h({route:y,params:g,routes:f,paths:$})]})})};return()=>{var d;let f;const{routes:g,params:v={}}=e,h=bt(Zt(n,e)),b=(d=Zt(n,e,"separator"))!==null&&d!==void 0?d:"/",y=e.itemRender||n.itemRender||nx;g&&g.length>0?f=c({routes:g,params:v,separator:b,itemRender:y}):h.length&&(f=h.map(($,x)=>(fo(typeof $.type=="object"&&($.type.__ANT_BREADCRUMB_ITEM||$.type.__ANT_BREADCRUMB_SEPARATOR)),cn($,{separator:b,key:x}))));const S={[r.value]:!0,[`${r.value}-rtl`]:i.value==="rtl",[`${o.class}`]:!!o.class,[a.value]:!0};return l(p("nav",D(D({},o),{},{class:S}),[p("ol",null,[f])]))}}});var HK=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String}),vf=oe({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:jK(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=Te("breadcrumb",e);return()=>{var i;const{separator:l,class:a}=o,s=HK(o,["separator","class"]),u=bt((i=n.default)===null||i===void 0?void 0:i.call(n));return p("span",D({class:[`${r.value}-separator`,a]},s),[u.length>0?u:"/"])}}});fl.Item=pc;fl.Separator=vf;fl.install=function(e){return e.component(fl.name,fl),e.component(pc.name,pc),e.component(vf.name,vf),e};function Ni(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wu={exports:{}},VK=Wu.exports,ox;function WK(){return ox||(ox=1,(function(e,t){(function(n,o){e.exports=o()})(VK,(function(){var n=1e3,o=6e4,r=36e5,i="millisecond",l="second",a="minute",s="hour",u="day",c="week",d="month",f="quarter",g="year",v="date",h="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(z){var _=["th","st","nd","rd"],N=z%100;return"["+z+(_[(N-20)%10]||_[N]||_[0])+"]"}},$=function(z,_,N){var B=String(z);return!B||B.length>=_?z:""+Array(_+1-B.length).join(N)+z},x={s:$,z:function(z){var _=-z.utcOffset(),N=Math.abs(_),B=Math.floor(N/60),k=N%60;return(_<=0?"+":"-")+$(B,2,"0")+":"+$(k,2,"0")},m:function z(_,N){if(_.date()1)return z(L[0])}else{var H=_.name;O[H]=_,k=H}return!B&&k&&(C=k),k||!B&&C},M=function(z,_){if(I(z))return z.clone();var N=typeof _=="object"?_:{};return N.date=z,N.args=arguments,new A(N)},E=x;E.l=T,E.i=I,E.w=function(z,_){return M(z,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var A=(function(){function z(N){this.$L=T(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[w]=!0}var _=z.prototype;return _.parse=function(N){this.$d=(function(B){var k=B.date,F=B.utc;if(k===null)return new Date(NaN);if(E.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var L=k.match(b);if(L){var H=L[2]-1||0,j=(L[7]||"0").substring(0,3);return F?new Date(Date.UTC(L[1],H,L[3]||1,L[4]||0,L[5]||0,L[6]||0,j)):new Date(L[1],H,L[3]||1,L[4]||0,L[5]||0,L[6]||0,j)}}return new Date(k)})(N),this.init()},_.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},_.$utils=function(){return E},_.isValid=function(){return this.$d.toString()!==h},_.isSame=function(N,B){var k=M(N);return this.startOf(B)<=k&&k<=this.endOf(B)},_.isAfter=function(N,B){return M(N)25){var c=l(this).startOf(o).add(1,o).date(u),d=l(this).endOf(n);if(c.isBefore(d))return 1}var f=l(this).startOf(o).date(u).startOf(n).subtract(1,"millisecond"),g=this.diff(f,n,!0);return g<0?l(this).startOf("week").week():Math.ceil(g)},a.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}}))})(Xu)),Xu.exports}var nG=tG();const oG=Ni(nG);var Uu={exports:{}},rG=Uu.exports,ax;function iG(){return ax||(ax=1,(function(e,t){(function(n,o){e.exports=o()})(rG,(function(){return function(n,o){o.prototype.weekYear=function(){var r=this.month(),i=this.week(),l=this.year();return i===1&&r===11?l+1:r===0&&i>=52?l-1:l}}}))})(Uu)),Uu.exports}var lG=iG();const aG=Ni(lG);var Yu={exports:{}},sG=Yu.exports,sx;function cG(){return sx||(sx=1,(function(e,t){(function(n,o){e.exports=o()})(sG,(function(){var n="month",o="quarter";return function(r,i){var l=i.prototype;l.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var a=l.add;l.add=function(u,c){return u=Number(u),this.$utils().p(c)===o?this.add(3*u,n):a.bind(this)(u,c)};var s=l.startOf;l.startOf=function(u,c){var d=this.$utils(),f=!!d.u(c)||c;if(d.p(u)===o){var g=this.quarter()-1;return f?this.month(3*g).startOf(n).startOf("day"):this.month(3*g+2).endOf(n).endOf("day")}return s.bind(this)(u,c)}}}))})(Yu)),Yu.exports}var uG=cG();const dG=Ni(uG);var qu={exports:{}},fG=qu.exports,cx;function pG(){return cx||(cx=1,(function(e,t){(function(n,o){e.exports=o()})(fG,(function(){return function(n,o){var r=o.prototype,i=r.format;r.format=function(l){var a=this,s=this.$locale();if(!this.isValid())return i.bind(this)(l);var u=this.$utils(),c=(l||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(d){switch(d){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return s.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return s.ordinal(a.week(),"W");case"w":case"ww":return u.s(a.week(),d==="w"?1:2,"0");case"W":case"WW":return u.s(a.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return u.s(String(a.$H===0?24:a.$H),d==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return d}}));return i.bind(this)(c)}}}))})(qu)),qu.exports}var gG=pG();const hG=Ni(gG);var Zu={exports:{}},vG=Zu.exports,ux;function mG(){return ux||(ux=1,(function(e,t){(function(n,o){e.exports=o()})(vG,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,i=/\d\d/,l=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,s={},u=function(b){return(b=+b)+(b>68?1900:2e3)},c=function(b){return function(y){this[b]=+y}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=(function(y){if(!y||y==="Z")return 0;var S=y.match(/([+-]|\d\d)/g),$=60*S[1]+(+S[2]||0);return $===0?0:S[0]==="+"?-$:$})(b)}],f=function(b){var y=s[b];return y&&(y.indexOf?y:y.s.concat(y.f))},g=function(b,y){var S,$=s.meridiem;if($){for(var x=1;x<=24;x+=1)if(b.indexOf($(x,0,y))>-1){S=x>12;break}}else S=b===(y?"pm":"PM");return S},v={A:[a,function(b){this.afternoon=g(b,!1)}],a:[a,function(b){this.afternoon=g(b,!0)}],Q:[r,function(b){this.month=3*(b-1)+1}],S:[r,function(b){this.milliseconds=100*+b}],SS:[i,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],s:[l,c("seconds")],ss:[l,c("seconds")],m:[l,c("minutes")],mm:[l,c("minutes")],H:[l,c("hours")],h:[l,c("hours")],HH:[l,c("hours")],hh:[l,c("hours")],D:[l,c("day")],DD:[i,c("day")],Do:[a,function(b){var y=s.ordinal,S=b.match(/\d+/);if(this.day=S[0],y)for(var $=1;$<=31;$+=1)y($).replace(/\[|\]/g,"")===b&&(this.day=$)}],w:[l,c("week")],ww:[i,c("week")],M:[l,c("month")],MM:[i,c("month")],MMM:[a,function(b){var y=f("months"),S=(f("monthsShort")||y.map((function($){return $.slice(0,3)}))).indexOf(b)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[a,function(b){var y=f("months").indexOf(b)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,c("year")],YY:[i,function(b){this.year=u(b)}],YYYY:[/\d{4}/,c("year")],Z:d,ZZ:d};function h(b){var y,S;y=b,S=s&&s.formats;for(var $=(b=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(M,E,A){var R=A&&A.toUpperCase();return E||S[A]||n[A]||S[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(z,_,N){return _||N.slice(1)}))}))).match(o),x=$.length,C=0;C-1)return new Date((k==="X"?1e3:1)*B);var H=h(k)(B),j=H.year,Y=H.month,Q=H.day,U=H.hours,ee=H.minutes,X=H.seconds,J=H.milliseconds,Z=H.zone,G=H.week,q=new Date,V=Q||(j||Y?1:q.getDate()),K=j||q.getFullYear(),te=0;j&&!Y||(te=Y>0?Y-1:q.getMonth());var ue,ie=U||0,ae=ee||0,ce=X||0,se=J||0;return Z?new Date(Date.UTC(K,te,V,ie,ae,ce,se+60*Z.offset*1e3)):F?new Date(Date.UTC(K,te,V,ie,ae,ce,se)):(ue=new Date(K,te,V,ie,ae,ce,se),G&&(ue=L(ue).week(G).toDate()),ue)}catch{return new Date("")}})(O,T,w,S),this.init(),R&&R!==!0&&(this.$L=this.locale(R).$L),A&&O!=this.format(T)&&(this.$d=new Date("")),s={}}else if(T instanceof Array)for(var z=T.length,_=1;_<=z;_+=1){I[1]=T[_-1];var N=S.apply(this,I);if(N.isValid()){this.$d=N.$d,this.$L=N.$L,this.init();break}_===z&&(this.$d=new Date(""))}else x.call(this,C)}}}))})(Zu)),Zu.exports}var bG=mG();const yG=Ni(bG);an.extend(yG);an.extend(hG);an.extend(YK);an.extend(JK);an.extend(oG);an.extend(aG);an.extend(dG);an.extend((e,t)=>{const n=t.prototype,o=n.format;n.format=function(i){const l=(i||"").replace("Wo","wo");return o.bind(this)(l)}});const SG={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Wi=e=>SG[e]||e.split("_")[0],dx=()=>{wA(!1,"Not match any format. Please help to fire a issue about this.")},$G=/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|k{1,2}|S/g;function fx(e,t,n){const o=[...new Set(e.split(n))];let r=0;for(let i=0;it)return l;r+=n.length}}const px=(e,t)=>{if(!e)return null;if(an.isDayjs(e))return e;const n=t.matchAll($G);let o=an(e,t);if(n===null)return o;for(const r of n){const i=r[0],l=r.index;if(i==="Q"){const a=e.slice(l-1,l),s=fx(e,l,a).match(/\d+/)[0];o=o.quarter(parseInt(s))}if(i.toLowerCase()==="wo"){const a=e.slice(l-1,l),s=fx(e,l,a).match(/\d+/)[0];o=o.week(parseInt(s))}i.toLowerCase()==="ww"&&(o=o.week(parseInt(e.slice(l,l+i.length)))),i.toLowerCase()==="w"&&(o=o.week(parseInt(e.slice(l,l+i.length+1))))}return o},kb={getNow:()=>an(),getFixedDate:e=>an(e,["YYYY-M-DD","YYYY-MM-DD"]),getEndDate:e=>e.endOf("month"),getWeekDay:e=>{const t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>e.year(),getMonth:e=>e.month(),getDate:e=>e.date(),getHour:e=>e.hour(),getMinute:e=>e.minute(),getSecond:e=>e.second(),addYear:(e,t)=>e.add(t,"year"),addMonth:(e,t)=>e.add(t,"month"),addDate:(e,t)=>e.add(t,"day"),setYear:(e,t)=>e.year(t),setMonth:(e,t)=>e.month(t),setDate:(e,t)=>e.date(t),setHour:(e,t)=>e.hour(t),setMinute:(e,t)=>e.minute(t),setSecond:(e,t)=>e.second(t),isAfter:(e,t)=>e.isAfter(t),isValidate:e=>e.isValid(),locale:{getWeekFirstDay:e=>an().locale(Wi(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>t.locale(Wi(e)).weekday(0),getWeek:(e,t)=>t.locale(Wi(e)).week(),getShortWeekDays:e=>an().locale(Wi(e)).localeData().weekdaysMin(),getShortMonths:e=>an().locale(Wi(e)).localeData().monthsShort(),format:(e,t,n)=>t.locale(Wi(e)).format(n),parse:(e,t,n)=>{const o=Wi(e);for(let r=0;rArray.isArray(e)?e.map(n=>px(n,t)):px(e,t),toString:(e,t)=>Array.isArray(e)?e.map(n=>an.isDayjs(n)?n.format(t):n):an.isDayjs(e)?e.format(t):e};function Xt(e){const t=XM();return m(m({},e),t)}const pI=Symbol("PanelContextProps"),Fb=e=>{Xe(pI,e)},br=()=>He(pI,{}),mu={visibility:"hidden"};function Bi(e,t){let{slots:n}=t;var o;const r=Xt(e),{prefixCls:i,prevIcon:l="‹",nextIcon:a="›",superPrevIcon:s="«",superNextIcon:u="»",onSuperPrev:c,onSuperNext:d,onPrev:f,onNext:g}=r,{hideNextBtn:v,hidePrevBtn:h}=br();return p("div",{class:i},[c&&p("button",{type:"button",onClick:c,tabindex:-1,class:`${i}-super-prev-btn`,style:h.value?mu:{}},[s]),f&&p("button",{type:"button",onClick:f,tabindex:-1,class:`${i}-prev-btn`,style:h.value?mu:{}},[l]),p("div",{class:`${i}-view`},[(o=n.default)===null||o===void 0?void 0:o.call(n)]),g&&p("button",{type:"button",onClick:g,tabindex:-1,class:`${i}-next-btn`,style:v.value?mu:{}},[a]),d&&p("button",{type:"button",onClick:d,tabindex:-1,class:`${i}-super-next-btn`,style:v.value?mu:{}},[u])])}Bi.displayName="Header";Bi.inheritAttrs=!1;function Lb(e){const t=Xt(e),{prefixCls:n,generateConfig:o,viewDate:r,onPrevDecades:i,onNextDecades:l}=t,{hideHeader:a}=br();if(a)return null;const s=`${n}-header`,u=o.getYear(r),c=Math.floor(u/Nr)*Nr,d=c+Nr-1;return p(Bi,D(D({},t),{},{prefixCls:s,onSuperPrev:i,onSuperNext:l}),{default:()=>[c,Ft("-"),d]})}Lb.displayName="DecadeHeader";Lb.inheritAttrs=!1;function gI(e,t,n,o,r){let i=e.setHour(t,n);return i=e.setMinute(i,o),i=e.setSecond(i,r),i}function Qu(e,t,n){if(!n)return t;let o=t;return o=e.setHour(o,e.getHour(n)),o=e.setMinute(o,e.getMinute(n)),o=e.setSecond(o,e.getSecond(n)),o}function CG(e,t,n,o,r,i){const l=Math.floor(e/o)*o;if(l{z.stopPropagation(),A||o(E)},onMouseenter:()=>{!A&&y&&y(E)},onMouseleave:()=>{!A&&S&&S(E)}},[f?f(E):p("div",{class:`${x}-inner`},[d(E)])]))}C.push(p("tr",{key:O,class:s&&s(I)},[w]))}return p("div",{class:`${t}-body`},[p("table",{class:`${t}-content`},[b&&p("thead",null,[p("tr",null,[b])]),p("tbody",null,[C])])])}Nl.displayName="PanelBody";Nl.inheritAttrs=!1;const Qv=3,gx=4;function zb(e){const t=Xt(e),n=zo-1,{prefixCls:o,viewDate:r,generateConfig:i}=t,l=`${o}-cell`,a=i.getYear(r),s=Math.floor(a/zo)*zo,u=Math.floor(a/Nr)*Nr,c=u+Nr-1,d=i.setYear(r,u-Math.ceil((Qv*gx*zo-Nr)/2)),f=g=>{const v=i.getYear(g),h=v+n;return{[`${l}-in-view`]:u<=v&&h<=c,[`${l}-selected`]:v===s}};return p(Nl,D(D({},t),{},{rowNum:gx,colNum:Qv,baseDate:d,getCellText:g=>{const v=i.getYear(g);return`${v}-${v+n}`},getCellClassName:f,getCellDate:(g,v)=>i.addYear(g,v*zo)}),null)}zb.displayName="DecadeBody";zb.inheritAttrs=!1;const bu=new Map;function wG(e,t){let n;function o(){mp(e)?t():n=qe(()=>{o()})}return o(),()=>{qe.cancel(n)}}function Jv(e,t,n){if(bu.get(e)&&qe.cancel(bu.get(e)),n<=0){bu.set(e,qe(()=>{e.scrollTop=t}));return}const r=(t-e.scrollTop)/n*10;bu.set(e,qe(()=>{e.scrollTop+=r,e.scrollTop!==t&&Jv(e,t,n-10)}))}function Ya(e,t){let{onLeftRight:n,onCtrlLeftRight:o,onUpDown:r,onPageUpDown:i,onEnter:l}=t;const{which:a,ctrlKey:s,metaKey:u}=e;switch(a){case Pe.LEFT:if(s||u){if(o)return o(-1),!0}else if(n)return n(-1),!0;break;case Pe.RIGHT:if(s||u){if(o)return o(1),!0}else if(n)return n(1),!0;break;case Pe.UP:if(r)return r(-1),!0;break;case Pe.DOWN:if(r)return r(1),!0;break;case Pe.PAGE_UP:if(i)return i(-1),!0;break;case Pe.PAGE_DOWN:if(i)return i(1),!0;break;case Pe.ENTER:if(l)return l(),!0;break}return!1}function hI(e,t,n,o){let r=e;if(!r)switch(t){case"time":r=o?"hh:mm:ss a":"HH:mm:ss";break;case"week":r="gggg-wo";break;case"month":r="YYYY-MM";break;case"quarter":r="YYYY-[Q]Q";break;case"year":r="YYYY";break;default:r=n?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return r}function vI(e,t,n){const o=e==="time"?8:10,r=typeof t=="function"?t(n.getNow()).length:t.length;return Math.max(o,r)+2}let us=null;const yu=new Set;function OG(e){return!us&&typeof window<"u"&&window.addEventListener&&(us=t=>{[...yu].forEach(n=>{n(t)})},window.addEventListener("mousedown",us)),yu.add(e),()=>{yu.delete(e),yu.size===0&&(window.removeEventListener("mousedown",us),us=null)}}function PG(e){var t;const n=e.target;return e.composed&&n.shadowRoot&&((t=e.composedPath)===null||t===void 0?void 0:t.call(e)[0])||n}const IG=e=>e==="month"||e==="date"?"year":e,TG=e=>e==="date"?"month":e,EG=e=>e==="month"||e==="date"?"quarter":e,MG=e=>e==="date"?"week":e,_G={year:IG,month:TG,quarter:EG,week:MG,time:null,date:null};function mI(e,t){return e.some(n=>n&&n.contains(t))}const zo=10,Nr=zo*10;function Hb(e){const t=Xt(e),{prefixCls:n,onViewDateChange:o,generateConfig:r,viewDate:i,operationRef:l,onSelect:a,onPanelChange:s}=t,u=`${n}-decade-panel`;l.value={onKeydown:f=>Ya(f,{onLeftRight:g=>{a(r.addYear(i,g*zo),"key")},onCtrlLeftRight:g=>{a(r.addYear(i,g*Nr),"key")},onUpDown:g=>{a(r.addYear(i,g*zo*Qv),"key")},onEnter:()=>{s("year",i)}})};const c=f=>{const g=r.addYear(i,f*Nr);o(g),s(null,g)},d=f=>{a(f,"mouse"),s("year",f)};return p("div",{class:u},[p(Lb,D(D({},t),{},{prefixCls:n,onPrevDecades:()=>{c(-1)},onNextDecades:()=>{c(1)}}),null),p(zb,D(D({},t),{},{prefixCls:n,onSelect:d}),null)])}Hb.displayName="DecadePanel";Hb.inheritAttrs=!1;const Ju=7;function Bl(e,t){if(!e&&!t)return!0;if(!e||!t)return!1}function AG(e,t,n){const o=Bl(t,n);if(typeof o=="boolean")return o;const r=Math.floor(e.getYear(t)/10),i=Math.floor(e.getYear(n)/10);return r===i}function zp(e,t,n){const o=Bl(t,n);return typeof o=="boolean"?o:e.getYear(t)===e.getYear(n)}function em(e,t){return Math.floor(e.getMonth(t)/3)+1}function bI(e,t,n){const o=Bl(t,n);return typeof o=="boolean"?o:zp(e,t,n)&&em(e,t)===em(e,n)}function jb(e,t,n){const o=Bl(t,n);return typeof o=="boolean"?o:zp(e,t,n)&&e.getMonth(t)===e.getMonth(n)}function Br(e,t,n){const o=Bl(t,n);return typeof o=="boolean"?o:e.getYear(t)===e.getYear(n)&&e.getMonth(t)===e.getMonth(n)&&e.getDate(t)===e.getDate(n)}function RG(e,t,n){const o=Bl(t,n);return typeof o=="boolean"?o:e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}function yI(e,t,n,o){const r=Bl(n,o);return typeof r=="boolean"?r:e.locale.getWeek(t,n)===e.locale.getWeek(t,o)}function ha(e,t,n){return Br(e,t,n)&&RG(e,t,n)}function Su(e,t,n,o){return!t||!n||!o?!1:!Br(e,t,o)&&!Br(e,n,o)&&e.isAfter(o,t)&&e.isAfter(n,o)}function DG(e,t,n){const o=t.locale.getWeekFirstDay(e),r=t.setDate(n,1),i=t.getWeekDay(r);let l=t.addDate(r,o-i);return t.getMonth(l)===t.getMonth(n)&&t.getDate(l)>1&&(l=t.addDate(l,-7)),l}function ks(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(t){case"year":return n.addYear(e,o*10);case"quarter":case"month":return n.addYear(e,o);default:return n.addMonth(e,o)}}function bn(e,t){let{generateConfig:n,locale:o,format:r}=t;return typeof r=="function"?r(e):n.locale.format(o.locale,e,r)}function SI(e,t){let{generateConfig:n,locale:o,formatList:r}=t;return!e||typeof r[0]=="function"?null:n.locale.parse(o.locale,e,r)}function tm(e){let{cellDate:t,mode:n,disabledDate:o,generateConfig:r}=e;if(!o)return!1;const i=(l,a,s)=>{let u=a;for(;u<=s;){let c;switch(l){case"date":{if(c=r.setDate(t,u),!o(c))return!1;break}case"month":{if(c=r.setMonth(t,u),!tm({cellDate:c,mode:"month",generateConfig:r,disabledDate:o}))return!1;break}case"year":{if(c=r.setYear(t,u),!tm({cellDate:c,mode:"year",generateConfig:r,disabledDate:o}))return!1;break}}u+=1}return!0};switch(n){case"date":case"week":return o(t);case"month":{const a=r.getDate(r.getEndDate(t));return i("date",1,a)}case"quarter":{const l=Math.floor(r.getMonth(t)/3)*3,a=l+2;return i("month",l,a)}case"year":return i("month",0,11);case"decade":{const l=r.getYear(t),a=Math.floor(l/zo)*zo,s=a+zo-1;return i("year",a,s)}}}function Vb(e){const t=Xt(e),{hideHeader:n}=br();if(n.value)return null;const{prefixCls:o,generateConfig:r,locale:i,value:l,format:a}=t,s=`${o}-header`;return p(Bi,{prefixCls:s},{default:()=>[l?bn(l,{locale:i,format:a,generateConfig:r}):" "]})}Vb.displayName="TimeHeader";Vb.inheritAttrs=!1;const $u=oe({name:"TimeUnitColumn",props:["prefixCls","units","onSelect","value","active","hideDisabledOptions"],setup(e){const{open:t}=br(),n=ne(null),o=re(new Map),r=re();return ye(()=>e.value,()=>{const i=o.value.get(e.value);i&&t.value!==!1&&Jv(n.value,i.offsetTop,120)}),Qe(()=>{var i;(i=r.value)===null||i===void 0||i.call(r)}),ye(t,()=>{var i;(i=r.value)===null||i===void 0||i.call(r),ot(()=>{if(t.value){const l=o.value.get(e.value);l&&(r.value=wG(l,()=>{Jv(n.value,l.offsetTop,0)}))}})},{immediate:!0,flush:"post"}),()=>{const{prefixCls:i,units:l,onSelect:a,value:s,active:u,hideDisabledOptions:c}=e,d=`${i}-cell`;return p("ul",{class:le(`${i}-column`,{[`${i}-column-active`]:u}),ref:n,style:{position:"relative"}},[l.map(f=>c&&f.disabled?null:p("li",{key:f.value,ref:g=>{o.value.set(f.value,g)},class:le(d,{[`${d}-disabled`]:f.disabled,[`${d}-selected`]:s===f.value}),onClick:()=>{f.disabled||a(f.value)}},[p("div",{class:`${d}-inner`},[f.label])]))])}}});function $I(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",o=String(e);for(;o.length{(n.startsWith("data-")||n.startsWith("aria-")||n==="role"||n==="name")&&!n.startsWith("data-__")&&(t[n]=e[n])}),t}function vt(e,t){return e?e[t]:null}function xo(e,t,n){const o=[vt(e,0),vt(e,1)];return o[n]=typeof t=="function"?t(o[n]):t,!o[0]&&!o[1]?null:o}function gh(e,t,n,o){const r=[];for(let i=e;i<=t;i+=n)r.push({label:$I(i,2),value:i,disabled:(o||[]).includes(i)});return r}const BG=oe({compatConfig:{MODE:3},name:"TimeBody",inheritAttrs:!1,props:["generateConfig","prefixCls","operationRef","activeColumnIndex","value","showHour","showMinute","showSecond","use12Hours","hourStep","minuteStep","secondStep","disabledHours","disabledMinutes","disabledSeconds","disabledTime","hideDisabledOptions","onSelect"],setup(e){const t=P(()=>e.value?e.generateConfig.getHour(e.value):-1),n=P(()=>e.use12Hours?t.value>=12:!1),o=P(()=>e.use12Hours?t.value%12:t.value),r=P(()=>e.value?e.generateConfig.getMinute(e.value):-1),i=P(()=>e.value?e.generateConfig.getSecond(e.value):-1),l=re(e.generateConfig.getNow()),a=re(),s=re(),u=re();ep(()=>{l.value=e.generateConfig.getNow()}),Le(()=>{if(e.disabledTime){const b=e.disabledTime(l);[a.value,s.value,u.value]=[b.disabledHours,b.disabledMinutes,b.disabledSeconds]}else[a.value,s.value,u.value]=[e.disabledHours,e.disabledMinutes,e.disabledSeconds]});const c=(b,y,S,$)=>{let x=e.value||e.generateConfig.getNow();const C=Math.max(0,y),O=Math.max(0,S),w=Math.max(0,$);return x=gI(e.generateConfig,x,!e.use12Hours||!b?C:C+12,O,w),x},d=P(()=>{var b;return gh(0,23,(b=e.hourStep)!==null&&b!==void 0?b:1,a.value&&a.value())}),f=P(()=>{if(!e.use12Hours)return[!1,!1];const b=[!0,!0];return d.value.forEach(y=>{let{disabled:S,value:$}=y;S||($>=12?b[1]=!1:b[0]=!1)}),b}),g=P(()=>e.use12Hours?d.value.filter(n.value?b=>b.value>=12:b=>b.value<12).map(b=>{const y=b.value%12,S=y===0?"12":$I(y,2);return m(m({},b),{label:S,value:y})}):d.value),v=P(()=>{var b;return gh(0,59,(b=e.minuteStep)!==null&&b!==void 0?b:1,s.value&&s.value(t.value))}),h=P(()=>{var b;return gh(0,59,(b=e.secondStep)!==null&&b!==void 0?b:1,u.value&&u.value(t.value,r.value))});return()=>{const{prefixCls:b,operationRef:y,activeColumnIndex:S,showHour:$,showMinute:x,showSecond:C,use12Hours:O,hideDisabledOptions:w,onSelect:I}=e,T=[],M=`${b}-content`,E=`${b}-time-panel`;y.value={onUpDown:z=>{const _=T[S];if(_){const N=_.units.findIndex(k=>k.value===_.value),B=_.units.length;for(let k=1;k{I(c(n.value,z,r.value,i.value),"mouse")}),A(x,p($u,{key:"minute"},null),r.value,v.value,z=>{I(c(n.value,o.value,z,i.value),"mouse")}),A(C,p($u,{key:"second"},null),i.value,h.value,z=>{I(c(n.value,o.value,r.value,z),"mouse")});let R=-1;return typeof n.value=="boolean"&&(R=n.value?1:0),A(O===!0,p($u,{key:"12hours"},null),R,[{label:"AM",value:0,disabled:f.value[0]},{label:"PM",value:1,disabled:f.value[1]}],z=>{I(c(!!z,o.value,r.value,i.value),"mouse")}),p("div",{class:M},[T.map(z=>{let{node:_}=z;return _})])}}}),kG=e=>e.filter(t=>t!==!1).length;function Hp(e){const t=Xt(e),{generateConfig:n,format:o="HH:mm:ss",prefixCls:r,active:i,operationRef:l,showHour:a,showMinute:s,showSecond:u,use12Hours:c=!1,onSelect:d,value:f}=t,g=`${r}-time-panel`,v=re(),h=re(-1),b=kG([a,s,u,c]);return l.value={onKeydown:y=>Ya(y,{onLeftRight:S=>{h.value=(h.value+S+b)%b},onUpDown:S=>{h.value===-1?h.value=0:v.value&&v.value.onUpDown(S)},onEnter:()=>{d(f||n.getNow(),"key"),h.value=-1}}),onBlur:()=>{h.value=-1}},p("div",{class:le(g,{[`${g}-active`]:i})},[p(Vb,D(D({},t),{},{format:o,prefixCls:r}),null),p(BG,D(D({},t),{},{prefixCls:r,activeColumnIndex:h.value,operationRef:v}),null)])}Hp.displayName="TimePanel";Hp.inheritAttrs=!1;function jp(e){let{cellPrefixCls:t,generateConfig:n,rangedValue:o,hoverRangedValue:r,isInView:i,isSameCell:l,offsetCell:a,today:s,value:u}=e;function c(d){const f=a(d,-1),g=a(d,1),v=vt(o,0),h=vt(o,1),b=vt(r,0),y=vt(r,1),S=Su(n,b,y,d);function $(T){return l(v,T)}function x(T){return l(h,T)}const C=l(b,d),O=l(y,d),w=(S||O)&&(!i(f)||x(f)),I=(S||C)&&(!i(g)||$(g));return{[`${t}-in-view`]:i(d),[`${t}-in-range`]:Su(n,v,h,d),[`${t}-range-start`]:$(d),[`${t}-range-end`]:x(d),[`${t}-range-start-single`]:$(d)&&!h,[`${t}-range-end-single`]:x(d)&&!v,[`${t}-range-start-near-hover`]:$(d)&&(l(f,b)||Su(n,b,y,f)),[`${t}-range-end-near-hover`]:x(d)&&(l(g,y)||Su(n,b,y,g)),[`${t}-range-hover`]:S,[`${t}-range-hover-start`]:C,[`${t}-range-hover-end`]:O,[`${t}-range-hover-edge-start`]:w,[`${t}-range-hover-edge-end`]:I,[`${t}-range-hover-edge-start-near-range`]:w&&l(f,h),[`${t}-range-hover-edge-end-near-range`]:I&&l(g,v),[`${t}-today`]:l(s,d),[`${t}-selected`]:l(u,d)}}return c}const wI=Symbol("RangeContextProps"),FG=e=>{Xe(wI,e)},Dc=()=>He(wI,{rangedValue:re(),hoverRangedValue:re(),inRange:re(),panelPosition:re()}),LG=oe({compatConfig:{MODE:3},name:"PanelContextProvider",inheritAttrs:!1,props:{value:{type:Object,default:()=>({})}},setup(e,t){let{slots:n}=t;const o={rangedValue:re(e.value.rangedValue),hoverRangedValue:re(e.value.hoverRangedValue),inRange:re(e.value.inRange),panelPosition:re(e.value.panelPosition)};return FG(o),ye(()=>e.value,()=>{Object.keys(e.value).forEach(r=>{o[r]&&(o[r].value=e.value[r])})}),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});function Vp(e){const t=Xt(e),{prefixCls:n,generateConfig:o,prefixColumn:r,locale:i,rowCount:l,viewDate:a,value:s,dateRender:u}=t,{rangedValue:c,hoverRangedValue:d}=Dc(),f=DG(i.locale,o,a),g=`${n}-cell`,v=o.locale.getWeekFirstDay(i.locale),h=o.getNow(),b=[],y=i.shortWeekDays||(o.locale.getShortWeekDays?o.locale.getShortWeekDays(i.locale):[]);r&&b.push(p("th",{key:"empty","aria-label":"empty cell"},null));for(let x=0;xBr(o,x,C),isInView:x=>jb(o,x,a),offsetCell:(x,C)=>o.addDate(x,C)}),$=u?x=>u({current:x,today:h}):void 0;return p(Nl,D(D({},t),{},{rowNum:l,colNum:Ju,baseDate:f,getCellNode:$,getCellText:o.getDate,getCellClassName:S,getCellDate:o.addDate,titleCell:x=>bn(x,{locale:i,format:"YYYY-MM-DD",generateConfig:o}),headerCells:b}),null)}Vp.displayName="DateBody";Vp.inheritAttrs=!1;Vp.props=["prefixCls","generateConfig","value?","viewDate","locale","rowCount","onSelect","dateRender?","disabledDate?","prefixColumn?","rowClassName?"];function Wb(e){const t=Xt(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:i,onNextMonth:l,onPrevMonth:a,onNextYear:s,onPrevYear:u,onYearClick:c,onMonthClick:d}=t,{hideHeader:f}=br();if(f.value)return null;const g=`${n}-header`,v=r.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(r.locale):[]),h=o.getMonth(i),b=p("button",{type:"button",key:"year",onClick:c,tabindex:-1,class:`${n}-year-btn`},[bn(i,{locale:r,format:r.yearFormat,generateConfig:o})]),y=p("button",{type:"button",key:"month",onClick:d,tabindex:-1,class:`${n}-month-btn`},[r.monthFormat?bn(i,{locale:r,format:r.monthFormat,generateConfig:o}):v[h]]),S=r.monthBeforeYear?[y,b]:[b,y];return p(Bi,D(D({},t),{},{prefixCls:g,onSuperPrev:u,onPrev:a,onNext:l,onSuperNext:s}),{default:()=>[S]})}Wb.displayName="DateHeader";Wb.inheritAttrs=!1;const zG=6;function Nc(e){const t=Xt(e),{prefixCls:n,panelName:o="date",keyboardConfig:r,active:i,operationRef:l,generateConfig:a,value:s,viewDate:u,onViewDateChange:c,onPanelChange:d,onSelect:f}=t,g=`${n}-${o}-panel`;l.value={onKeydown:b=>Ya(b,m({onLeftRight:y=>{f(a.addDate(s||u,y),"key")},onCtrlLeftRight:y=>{f(a.addYear(s||u,y),"key")},onUpDown:y=>{f(a.addDate(s||u,y*Ju),"key")},onPageUpDown:y=>{f(a.addMonth(s||u,y),"key")}},r))};const v=b=>{const y=a.addYear(u,b);c(y),d(null,y)},h=b=>{const y=a.addMonth(u,b);c(y),d(null,y)};return p("div",{class:le(g,{[`${g}-active`]:i})},[p(Wb,D(D({},t),{},{prefixCls:n,value:s,viewDate:u,onPrevYear:()=>{v(-1)},onNextYear:()=>{v(1)},onPrevMonth:()=>{h(-1)},onNextMonth:()=>{h(1)},onMonthClick:()=>{d("month",u)},onYearClick:()=>{d("year",u)}}),null),p(Vp,D(D({},t),{},{onSelect:b=>f(b,"mouse"),prefixCls:n,value:s,viewDate:u,rowCount:zG}),null)])}Nc.displayName="DatePanel";Nc.inheritAttrs=!1;const hx=NG("date","time");function Kb(e){const t=Xt(e),{prefixCls:n,operationRef:o,generateConfig:r,value:i,defaultValue:l,disabledTime:a,showTime:s,onSelect:u}=t,c=`${n}-datetime-panel`,d=re(null),f=re({}),g=re({}),v=typeof s=="object"?m({},s):{};function h($){const x=hx.indexOf(d.value)+$;return hx[x]||null}const b=$=>{g.value.onBlur&&g.value.onBlur($),d.value=null};o.value={onKeydown:$=>{if($.which===Pe.TAB){const x=h($.shiftKey?-1:1);return d.value=x,x&&$.preventDefault(),!0}if(d.value){const x=d.value==="date"?f:g;return x.value&&x.value.onKeydown&&x.value.onKeydown($),!0}return[Pe.LEFT,Pe.RIGHT,Pe.UP,Pe.DOWN].includes($.which)?(d.value="date",!0):!1},onBlur:b,onClose:b};const y=($,x)=>{let C=$;x==="date"&&!i&&v.defaultValue?(C=r.setHour(C,r.getHour(v.defaultValue)),C=r.setMinute(C,r.getMinute(v.defaultValue)),C=r.setSecond(C,r.getSecond(v.defaultValue))):x==="time"&&!i&&l&&(C=r.setYear(C,r.getYear(l)),C=r.setMonth(C,r.getMonth(l)),C=r.setDate(C,r.getDate(l))),u&&u(C,"mouse")},S=a?a(i||null):{};return p("div",{class:le(c,{[`${c}-active`]:d.value})},[p(Nc,D(D({},t),{},{operationRef:f,active:d.value==="date",onSelect:$=>{y(Qu(r,$,!i&&typeof s=="object"?s.defaultValue:null),"date")}}),null),p(Hp,D(D(D(D({},t),{},{format:void 0},v),S),{},{disabledTime:null,defaultValue:void 0,operationRef:g,active:d.value==="time",onSelect:$=>{y($,"time")}}),null)])}Kb.displayName="DatetimePanel";Kb.inheritAttrs=!1;function Gb(e){const t=Xt(e),{prefixCls:n,generateConfig:o,locale:r,value:i}=t,l=`${n}-cell`,a=c=>p("td",{key:"week",class:le(l,`${l}-week`)},[o.locale.getWeek(r.locale,c)]),s=`${n}-week-panel-row`,u=c=>le(s,{[`${s}-selected`]:yI(o,r.locale,i,c)});return p(Nc,D(D({},t),{},{panelName:"week",prefixColumn:a,rowClassName:u,keyboardConfig:{onLeftRight:null}}),null)}Gb.displayName="WeekPanel";Gb.inheritAttrs=!1;function Xb(e){const t=Xt(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:i,onNextYear:l,onPrevYear:a,onYearClick:s}=t,{hideHeader:u}=br();if(u.value)return null;const c=`${n}-header`;return p(Bi,D(D({},t),{},{prefixCls:c,onSuperPrev:a,onSuperNext:l}),{default:()=>[p("button",{type:"button",onClick:s,class:`${n}-year-btn`},[bn(i,{locale:r,format:r.yearFormat,generateConfig:o})])]})}Xb.displayName="MonthHeader";Xb.inheritAttrs=!1;const OI=3,HG=4;function Ub(e){const t=Xt(e),{prefixCls:n,locale:o,value:r,viewDate:i,generateConfig:l,monthCellRender:a}=t,{rangedValue:s,hoverRangedValue:u}=Dc(),c=`${n}-cell`,d=jp({cellPrefixCls:c,value:r,generateConfig:l,rangedValue:s.value,hoverRangedValue:u.value,isSameCell:(h,b)=>jb(l,h,b),isInView:()=>!0,offsetCell:(h,b)=>l.addMonth(h,b)}),f=o.shortMonths||(l.locale.getShortMonths?l.locale.getShortMonths(o.locale):[]),g=l.setMonth(i,0),v=a?h=>a({current:h,locale:o}):void 0;return p(Nl,D(D({},t),{},{rowNum:HG,colNum:OI,baseDate:g,getCellNode:v,getCellText:h=>o.monthFormat?bn(h,{locale:o,format:o.monthFormat,generateConfig:l}):f[l.getMonth(h)],getCellClassName:d,getCellDate:l.addMonth,titleCell:h=>bn(h,{locale:o,format:"YYYY-MM",generateConfig:l})}),null)}Ub.displayName="MonthBody";Ub.inheritAttrs=!1;function Yb(e){const t=Xt(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:i,value:l,viewDate:a,onPanelChange:s,onSelect:u}=t,c=`${n}-month-panel`;o.value={onKeydown:f=>Ya(f,{onLeftRight:g=>{u(i.addMonth(l||a,g),"key")},onCtrlLeftRight:g=>{u(i.addYear(l||a,g),"key")},onUpDown:g=>{u(i.addMonth(l||a,g*OI),"key")},onEnter:()=>{s("date",l||a)}})};const d=f=>{const g=i.addYear(a,f);r(g),s(null,g)};return p("div",{class:c},[p(Xb,D(D({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{s("year",a)}}),null),p(Ub,D(D({},t),{},{prefixCls:n,onSelect:f=>{u(f,"mouse"),s("date",f)}}),null)])}Yb.displayName="MonthPanel";Yb.inheritAttrs=!1;function qb(e){const t=Xt(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:i,onNextYear:l,onPrevYear:a,onYearClick:s}=t,{hideHeader:u}=br();if(u.value)return null;const c=`${n}-header`;return p(Bi,D(D({},t),{},{prefixCls:c,onSuperPrev:a,onSuperNext:l}),{default:()=>[p("button",{type:"button",onClick:s,class:`${n}-year-btn`},[bn(i,{locale:r,format:r.yearFormat,generateConfig:o})])]})}qb.displayName="QuarterHeader";qb.inheritAttrs=!1;const jG=4,VG=1;function Zb(e){const t=Xt(e),{prefixCls:n,locale:o,value:r,viewDate:i,generateConfig:l}=t,{rangedValue:a,hoverRangedValue:s}=Dc(),u=`${n}-cell`,c=jp({cellPrefixCls:u,value:r,generateConfig:l,rangedValue:a.value,hoverRangedValue:s.value,isSameCell:(f,g)=>bI(l,f,g),isInView:()=>!0,offsetCell:(f,g)=>l.addMonth(f,g*3)}),d=l.setDate(l.setMonth(i,0),1);return p(Nl,D(D({},t),{},{rowNum:VG,colNum:jG,baseDate:d,getCellText:f=>bn(f,{locale:o,format:o.quarterFormat||"[Q]Q",generateConfig:l}),getCellClassName:c,getCellDate:(f,g)=>l.addMonth(f,g*3),titleCell:f=>bn(f,{locale:o,format:"YYYY-[Q]Q",generateConfig:l})}),null)}Zb.displayName="QuarterBody";Zb.inheritAttrs=!1;function Qb(e){const t=Xt(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:i,value:l,viewDate:a,onPanelChange:s,onSelect:u}=t,c=`${n}-quarter-panel`;o.value={onKeydown:f=>Ya(f,{onLeftRight:g=>{u(i.addMonth(l||a,g*3),"key")},onCtrlLeftRight:g=>{u(i.addYear(l||a,g),"key")},onUpDown:g=>{u(i.addYear(l||a,g),"key")}})};const d=f=>{const g=i.addYear(a,f);r(g),s(null,g)};return p("div",{class:c},[p(qb,D(D({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{s("year",a)}}),null),p(Zb,D(D({},t),{},{prefixCls:n,onSelect:f=>{u(f,"mouse")}}),null)])}Qb.displayName="QuarterPanel";Qb.inheritAttrs=!1;function Jb(e){const t=Xt(e),{prefixCls:n,generateConfig:o,viewDate:r,onPrevDecade:i,onNextDecade:l,onDecadeClick:a}=t,{hideHeader:s}=br();if(s.value)return null;const u=`${n}-header`,c=o.getYear(r),d=Math.floor(c/yi)*yi,f=d+yi-1;return p(Bi,D(D({},t),{},{prefixCls:u,onSuperPrev:i,onSuperNext:l}),{default:()=>[p("button",{type:"button",onClick:a,class:`${n}-decade-btn`},[d,Ft("-"),f])]})}Jb.displayName="YearHeader";Jb.inheritAttrs=!1;const nm=3,vx=4;function ey(e){const t=Xt(e),{prefixCls:n,value:o,viewDate:r,locale:i,generateConfig:l}=t,{rangedValue:a,hoverRangedValue:s}=Dc(),u=`${n}-cell`,c=l.getYear(r),d=Math.floor(c/yi)*yi,f=d+yi-1,g=l.setYear(r,d-Math.ceil((nm*vx-yi)/2)),v=b=>{const y=l.getYear(b);return d<=y&&y<=f},h=jp({cellPrefixCls:u,value:o,generateConfig:l,rangedValue:a.value,hoverRangedValue:s.value,isSameCell:(b,y)=>zp(l,b,y),isInView:v,offsetCell:(b,y)=>l.addYear(b,y)});return p(Nl,D(D({},t),{},{rowNum:vx,colNum:nm,baseDate:g,getCellText:l.getYear,getCellClassName:h,getCellDate:l.addYear,titleCell:b=>bn(b,{locale:i,format:"YYYY",generateConfig:l})}),null)}ey.displayName="YearBody";ey.inheritAttrs=!1;const yi=10;function ty(e){const t=Xt(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:i,value:l,viewDate:a,sourceMode:s,onSelect:u,onPanelChange:c}=t,d=`${n}-year-panel`;o.value={onKeydown:g=>Ya(g,{onLeftRight:v=>{u(i.addYear(l||a,v),"key")},onCtrlLeftRight:v=>{u(i.addYear(l||a,v*yi),"key")},onUpDown:v=>{u(i.addYear(l||a,v*nm),"key")},onEnter:()=>{c(s==="date"?"date":"month",l||a)}})};const f=g=>{const v=i.addYear(a,g*10);r(v),c(null,v)};return p("div",{class:d},[p(Jb,D(D({},t),{},{prefixCls:n,onPrevDecade:()=>{f(-1)},onNextDecade:()=>{f(1)},onDecadeClick:()=>{c("decade",a)}}),null),p(ey,D(D({},t),{},{prefixCls:n,onSelect:g=>{c(s==="date"?"date":"month",g),u(g,"mouse")}}),null)])}ty.displayName="YearPanel";ty.inheritAttrs=!1;function PI(e,t,n){return n?p("div",{class:`${e}-footer-extra`},[n(t)]):null}function II(e){let{prefixCls:t,components:n={},needConfirmButton:o,onNow:r,onOk:i,okDisabled:l,showNow:a,locale:s}=e,u,c;if(o){const d=n.button||"button";r&&a!==!1&&(u=p("li",{class:`${t}-now`},[p("a",{class:`${t}-now-btn`,onClick:r},[s.now])])),c=o&&p("li",{class:`${t}-ok`},[p(d,{disabled:l,onClick:f=>{f.stopPropagation(),i&&i()}},{default:()=>[s.ok]})])}return!u&&!c?null:p("ul",{class:`${t}-ranges`},[u,c])}function WG(){return oe({name:"PickerPanel",inheritAttrs:!1,props:{prefixCls:String,locale:Object,generateConfig:Object,value:Object,defaultValue:Object,pickerValue:Object,defaultPickerValue:Object,disabledDate:Function,mode:String,picker:{type:String,default:"date"},tabindex:{type:[Number,String],default:0},showNow:{type:Boolean,default:void 0},showTime:[Boolean,Object],showToday:Boolean,renderExtraFooter:Function,dateRender:Function,hideHeader:{type:Boolean,default:void 0},onSelect:Function,onChange:Function,onPanelChange:Function,onMousedown:Function,onPickerValueChange:Function,onOk:Function,components:Object,direction:String,hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1}},setup(e,t){let{attrs:n}=t;const o=P(()=>e.picker==="date"&&!!e.showTime||e.picker==="time"),r=P(()=>24%e.hourStep===0),i=P(()=>60%e.minuteStep===0),l=P(()=>60%e.secondStep===0),a=br(),{operationRef:s,onSelect:u,hideRanges:c,defaultOpenValue:d}=a,{inRange:f,panelPosition:g,rangedValue:v,hoverRangedValue:h}=Dc(),b=re({}),[y,S]=Pt(null,{value:ze(e,"value"),defaultValue:e.defaultValue,postState:B=>!B&&d?.value&&e.picker==="time"?d.value:B}),[$,x]=Pt(null,{value:ze(e,"pickerValue"),defaultValue:e.defaultPickerValue||y.value,postState:B=>{const{generateConfig:k,showTime:F,defaultValue:L}=e,H=k.getNow();return B?!y.value&&e.showTime?typeof F=="object"?Qu(k,Array.isArray(B)?B[0]:B,F.defaultValue||H):L?Qu(k,Array.isArray(B)?B[0]:B,L):Qu(k,Array.isArray(B)?B[0]:B,H):B:H}}),C=B=>{x(B),e.onPickerValueChange&&e.onPickerValueChange(B)},O=B=>{const k=_G[e.picker];return k?k(B):B},[w,I]=Pt(()=>e.picker==="time"?"time":O("date"),{value:ze(e,"mode")});ye(()=>e.picker,()=>{I(e.picker)});const T=re(w.value),M=B=>{T.value=B},E=(B,k)=>{const{onPanelChange:F,generateConfig:L}=e,H=O(B||w.value);M(w.value),I(H),F&&(w.value!==H||ha(L,$.value,$.value))&&F(k,H)},A=function(B,k){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{picker:L,generateConfig:H,onSelect:j,onChange:Y,disabledDate:Q}=e;(w.value===L||F)&&(S(B),j&&j(B),u&&u(B,k),Y&&!ha(H,B,y.value)&&!Q?.(B)&&Y(B))},R=B=>b.value&&b.value.onKeydown?([Pe.LEFT,Pe.RIGHT,Pe.UP,Pe.DOWN,Pe.PAGE_UP,Pe.PAGE_DOWN,Pe.ENTER].includes(B.which)&&B.preventDefault(),b.value.onKeydown(B)):!1,z=B=>{b.value&&b.value.onBlur&&b.value.onBlur(B)},_=()=>{const{generateConfig:B,hourStep:k,minuteStep:F,secondStep:L}=e,H=B.getNow(),j=CG(B.getHour(H),B.getMinute(H),B.getSecond(H),r.value?k:1,i.value?F:1,l.value?L:1),Y=gI(B,H,j[0],j[1],j[2]);A(Y,"submit")},N=P(()=>{const{prefixCls:B,direction:k}=e;return le(`${B}-panel`,{[`${B}-panel-has-range`]:v&&v.value&&v.value[0]&&v.value[1],[`${B}-panel-has-range-hover`]:h&&h.value&&h.value[0]&&h.value[1],[`${B}-panel-rtl`]:k==="rtl"})});return Fb(m(m({},a),{mode:w,hideHeader:P(()=>{var B;return e.hideHeader!==void 0?e.hideHeader:(B=a.hideHeader)===null||B===void 0?void 0:B.value}),hidePrevBtn:P(()=>f.value&&g.value==="right"),hideNextBtn:P(()=>f.value&&g.value==="left")})),ye(()=>e.value,()=>{e.value&&x(e.value)}),()=>{const{prefixCls:B="ant-picker",locale:k,generateConfig:F,disabledDate:L,picker:H="date",tabindex:j=0,showNow:Y,showTime:Q,showToday:U,renderExtraFooter:ee,onMousedown:X,onOk:J,components:Z}=e;s&&g.value!=="right"&&(s.value={onKeydown:R,onClose:()=>{b.value&&b.value.onClose&&b.value.onClose()}});let G;const q=m(m(m({},n),e),{operationRef:b,prefixCls:B,viewDate:$.value,value:y.value,onViewDateChange:C,sourceMode:T.value,onPanelChange:E,disabledDate:L});switch(delete q.onChange,delete q.onSelect,w.value){case"decade":G=p(Hb,D(D({},q),{},{onSelect:(ue,ie)=>{C(ue),A(ue,ie)}}),null);break;case"year":G=p(ty,D(D({},q),{},{onSelect:(ue,ie)=>{C(ue),A(ue,ie)}}),null);break;case"month":G=p(Yb,D(D({},q),{},{onSelect:(ue,ie)=>{C(ue),A(ue,ie)}}),null);break;case"quarter":G=p(Qb,D(D({},q),{},{onSelect:(ue,ie)=>{C(ue),A(ue,ie)}}),null);break;case"week":G=p(Gb,D(D({},q),{},{onSelect:(ue,ie)=>{C(ue),A(ue,ie)}}),null);break;case"time":delete q.showTime,G=p(Hp,D(D(D({},q),typeof Q=="object"?Q:null),{},{onSelect:(ue,ie)=>{C(ue),A(ue,ie)}}),null);break;default:Q?G=p(Kb,D(D({},q),{},{onSelect:(ue,ie)=>{C(ue),A(ue,ie)}}),null):G=p(Nc,D(D({},q),{},{onSelect:(ue,ie)=>{C(ue),A(ue,ie)}}),null)}let V,K;c?.value||(V=PI(B,w.value,ee),K=II({prefixCls:B,components:Z,needConfirmButton:o.value,okDisabled:!y.value||L&&L(y.value),locale:k,showNow:Y,onNow:o.value&&_,onOk:()=>{y.value&&(A(y.value,"submit",!0),J&&J(y.value))}}));let te;if(U&&w.value==="date"&&H==="date"&&!Q){const ue=F.getNow(),ie=`${B}-today-btn`,ae=L&&L(ue);te=p("a",{class:le(ie,ae&&`${ie}-disabled`),"aria-disabled":ae,onClick:()=>{ae||A(ue,"mouse",!0)}},[k.today])}return p("div",{tabindex:j,class:le(N.value,n.class),style:n.style,onKeydown:R,onBlur:z,onMousedown:X},[G,V||K||te?p("div",{class:`${B}-footer`},[V,K,te]):null])}}})}const KG=WG(),ny=(e=>p(KG,e)),GG={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function TI(e,t){let{slots:n}=t;const{prefixCls:o,popupStyle:r,visible:i,dropdownClassName:l,dropdownAlign:a,transitionName:s,getPopupContainer:u,range:c,popupPlacement:d,direction:f}=Xt(e),g=`${o}-dropdown`;return p(Rl,{showAction:[],hideAction:[],popupPlacement:d!==void 0?d:f==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:GG,prefixCls:g,popupTransitionName:s,popupAlign:a,popupVisible:i,popupClassName:le(l,{[`${g}-range`]:c,[`${g}-rtl`]:f==="rtl"}),popupStyle:r,getPopupContainer:u},{default:n.default,popup:n.popupElement})}const EI=oe({name:"PresetPanel",props:{prefixCls:String,presets:{type:Array,default:()=>[]},onClick:Function,onHover:Function},setup(e){return()=>e.presets.length?p("div",{class:`${e.prefixCls}-presets`},[p("ul",null,[e.presets.map((t,n)=>{let{label:o,value:r}=t;return p("li",{key:n,onClick:i=>{i.stopPropagation(),e.onClick(r)},onMouseenter:()=>{var i;(i=e.onHover)===null||i===void 0||i.call(e,r)},onMouseleave:()=>{var i;(i=e.onHover)===null||i===void 0||i.call(e,null)}},[o])})])]):null}});function om(e){let{open:t,value:n,isClickOutside:o,triggerOpen:r,forwardKeydown:i,onKeydown:l,blurToCancel:a,onSubmit:s,onCancel:u,onFocus:c,onBlur:d}=e;const f=ne(!1),g=ne(!1),v=ne(!1),h=ne(!1),b=ne(!1),y=P(()=>({onMousedown:()=>{f.value=!0,r(!0)},onKeydown:$=>{if(l($,()=>{b.value=!0}),!b.value){switch($.which){case Pe.ENTER:{t.value?s()!==!1&&(f.value=!0):r(!0),$.preventDefault();return}case Pe.TAB:{f.value&&t.value&&!$.shiftKey?(f.value=!1,$.preventDefault()):!f.value&&t.value&&!i($)&&$.shiftKey&&(f.value=!0,$.preventDefault());return}case Pe.ESC:{f.value=!0,u();return}}!t.value&&![Pe.SHIFT].includes($.which)?r(!0):f.value||i($)}},onFocus:$=>{f.value=!0,g.value=!0,c&&c($)},onBlur:$=>{if(v.value||!o(document.activeElement)){v.value=!1;return}a.value?setTimeout(()=>{let{activeElement:x}=document;for(;x&&x.shadowRoot;)x=x.shadowRoot.activeElement;o(x)&&u()},0):t.value&&(r(!1),h.value&&s()),g.value=!1,d&&d($)}}));ye(t,()=>{h.value=!1}),ye(n,()=>{h.value=!0});const S=ne();return je(()=>{S.value=OG($=>{const x=PG($);if(t.value){const C=o(x);C?(!g.value||C)&&r(!1):(v.value=!0,qe(()=>{v.value=!1}))}})}),Qe(()=>{S.value&&S.value()}),[y,{focused:g,typing:f}]}function rm(e){let{valueTexts:t,onTextChange:n}=e;const o=re("");function r(l){o.value=l,n(l)}function i(){o.value=t.value[0]}return ye(()=>[...t.value],function(l){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];l.join("||")!==a.join("||")&&t.value.every(s=>s!==o.value)&&i()},{immediate:!0}),[o,r,i]}function mf(e,t){let{formatList:n,generateConfig:o,locale:r}=t;const i=nb(()=>{if(!e.value)return[[""],""];let s="";const u=[];for(let c=0;cu[0]!==s[0]||!Zl(u[1],s[1])),l=P(()=>i.value[0]),a=P(()=>i.value[1]);return[l,a]}function im(e,t){let{formatList:n,generateConfig:o,locale:r}=t;const i=re(null);let l;function a(d){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(qe.cancel(l),f){i.value=d;return}l=qe(()=>{i.value=d})}const[,s]=mf(i,{formatList:n,generateConfig:o,locale:r});function u(d){a(d)}function c(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;a(null,d)}return ye(e,()=>{c(!0)}),Qe(()=>{qe.cancel(l)}),[s,u,c]}function MI(e,t){return P(()=>e?.value?e.value:t?.value?(w0(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.keys(t.value).map(o=>{const r=t.value[o],i=typeof r=="function"?r():r;return{label:o,value:i}})):[])}function XG(){return oe({name:"Picker",inheritAttrs:!1,props:["prefixCls","id","tabindex","dropdownClassName","dropdownAlign","popupStyle","transitionName","generateConfig","locale","inputReadOnly","allowClear","autofocus","showTime","showNow","showHour","showMinute","showSecond","picker","format","use12Hours","value","defaultValue","open","defaultOpen","defaultOpenValue","suffixIcon","presets","clearIcon","disabled","disabledDate","placeholder","getPopupContainer","panelRender","inputRender","onChange","onOpenChange","onPanelChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onContextmenu","onClick","onKeydown","onSelect","direction","autocomplete","showToday","renderExtraFooter","dateRender","minuteStep","hourStep","secondStep","hideDisabledOptions"],setup(e,t){let{attrs:n,expose:o}=t;const r=re(null),i=P(()=>e.presets),l=MI(i),a=P(()=>{var L;return(L=e.picker)!==null&&L!==void 0?L:"date"}),s=P(()=>a.value==="date"&&!!e.showTime||a.value==="time"),u=P(()=>CI(hI(e.format,a.value,e.showTime,e.use12Hours))),c=re(null),d=re(null),f=re(null),[g,v]=Pt(null,{value:ze(e,"value"),defaultValue:e.defaultValue}),h=re(g.value),b=L=>{h.value=L},y=re(null),[S,$]=Pt(!1,{value:ze(e,"open"),defaultValue:e.defaultOpen,postState:L=>e.disabled?!1:L,onChange:L=>{e.onOpenChange&&e.onOpenChange(L),!L&&y.value&&y.value.onClose&&y.value.onClose()}}),[x,C]=mf(h,{formatList:u,generateConfig:ze(e,"generateConfig"),locale:ze(e,"locale")}),[O,w,I]=rm({valueTexts:x,onTextChange:L=>{const H=SI(L,{locale:e.locale,formatList:u.value,generateConfig:e.generateConfig});H&&(!e.disabledDate||!e.disabledDate(H))&&b(H)}}),T=L=>{const{onChange:H,generateConfig:j,locale:Y}=e;b(L),v(L),H&&!ha(j,g.value,L)&&H(L,L?bn(L,{generateConfig:j,locale:Y,format:u.value[0]}):"")},M=L=>{e.disabled&&L||$(L)},E=L=>S.value&&y.value&&y.value.onKeydown?y.value.onKeydown(L):!1,A=function(){e.onMouseup&&e.onMouseup(...arguments),r.value&&(r.value.focus(),M(!0))},[R,{focused:z,typing:_}]=om({blurToCancel:s,open:S,value:O,triggerOpen:M,forwardKeydown:E,isClickOutside:L=>!mI([c.value,d.value,f.value],L),onSubmit:()=>!h.value||e.disabledDate&&e.disabledDate(h.value)?!1:(T(h.value),M(!1),I(),!0),onCancel:()=>{M(!1),b(g.value),I()},onKeydown:(L,H)=>{var j;(j=e.onKeydown)===null||j===void 0||j.call(e,L,H)},onFocus:L=>{var H;(H=e.onFocus)===null||H===void 0||H.call(e,L)},onBlur:L=>{var H;(H=e.onBlur)===null||H===void 0||H.call(e,L)}});ye([S,x],()=>{S.value||(b(g.value),!x.value.length||x.value[0]===""?w(""):C.value!==O.value&&I())}),ye(a,()=>{S.value||I()}),ye(g,()=>{b(g.value)});const[N,B,k]=im(O,{formatList:u,generateConfig:ze(e,"generateConfig"),locale:ze(e,"locale")}),F=(L,H)=>{(H==="submit"||H!=="key"&&!s.value)&&(T(L),M(!1))};return Fb({operationRef:y,hideHeader:P(()=>a.value==="time"),onSelect:F,open:S,defaultOpenValue:ze(e,"defaultOpenValue"),onDateMouseenter:B,onDateMouseleave:k}),o({focus:()=>{r.value&&r.value.focus()},blur:()=>{r.value&&r.value.blur()}}),()=>{const{prefixCls:L="rc-picker",id:H,tabindex:j,dropdownClassName:Y,dropdownAlign:Q,popupStyle:U,transitionName:ee,generateConfig:X,locale:J,inputReadOnly:Z,allowClear:G,autofocus:q,picker:V="date",defaultOpenValue:K,suffixIcon:te,clearIcon:ue,disabled:ie,placeholder:ae,getPopupContainer:ce,panelRender:se,onMousedown:pe,onMouseenter:ge,onMouseleave:he,onContextmenu:me,onClick:xe,onSelect:fe,direction:de,autocomplete:be="off"}=e,we=m(m(m({},e),n),{class:le({[`${L}-panel-focused`]:!_.value}),style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null});let Ie=p("div",{class:`${L}-panel-layout`},[p(EI,{prefixCls:L,presets:l.value,onClick:_e=>{T(_e),M(!1)}},null),p(ny,D(D({},we),{},{generateConfig:X,value:h.value,locale:J,tabindex:-1,onSelect:_e=>{fe?.(_e),b(_e)},direction:de,onPanelChange:(_e,Be)=>{const{onPanelChange:et}=e;k(!0),et?.(_e,Be)}}),null)]);se&&(Ie=se(Ie));const Ae=p("div",{class:`${L}-panel-container`,ref:c,onMousedown:_e=>{_e.preventDefault()}},[Ie]);let Se;te&&(Se=p("span",{class:`${L}-suffix`},[te]));let Ce;G&&g.value&&!ie&&(Ce=p("span",{onMousedown:_e=>{_e.preventDefault(),_e.stopPropagation()},onMouseup:_e=>{_e.preventDefault(),_e.stopPropagation(),T(null),M(!1)},class:`${L}-clear`,role:"button"},[ue||p("span",{class:`${L}-clear-btn`},null)]));const Oe=m(m(m(m({id:H,tabindex:j,disabled:ie,readonly:Z||typeof u.value[0]=="function"||!_.value,value:N.value||O.value,onInput:_e=>{w(_e.target.value)},autofocus:q,placeholder:ae,ref:r,title:O.value},R.value),{size:vI(V,u.value[0],X)}),xI(e)),{autocomplete:be}),Me=e.inputRender?e.inputRender(Oe):p("input",Oe,null),Re=de==="rtl"?"bottomRight":"bottomLeft";return p("div",{ref:f,class:le(L,n.class,{[`${L}-disabled`]:ie,[`${L}-focused`]:z.value,[`${L}-rtl`]:de==="rtl"}),style:n.style,onMousedown:pe,onMouseup:A,onMouseenter:ge,onMouseleave:he,onContextmenu:me,onClick:xe},[p("div",{class:le(`${L}-input`,{[`${L}-input-placeholder`]:!!N.value}),ref:d},[Me,Se,Ce]),p(TI,{visible:S.value,popupStyle:U,prefixCls:L,dropdownClassName:Y,dropdownAlign:Q,getPopupContainer:ce,transitionName:ee,popupPlacement:Re,direction:de},{default:()=>[p("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>Ae})])}}})}const UG=XG();function YG(e,t){let{picker:n,locale:o,selectedValue:r,disabledDate:i,disabled:l,generateConfig:a}=e;const s=P(()=>vt(r.value,0)),u=P(()=>vt(r.value,1));function c(h){return a.value.locale.getWeekFirstDate(o.value.locale,h)}function d(h){const b=a.value.getYear(h),y=a.value.getMonth(h);return b*100+y}function f(h){const b=a.value.getYear(h),y=em(a.value,h);return b*10+y}return[h=>{var b;if(i&&(!((b=i?.value)===null||b===void 0)&&b.call(i,h)))return!0;if(l[1]&&u)return!Br(a.value,h,u.value)&&a.value.isAfter(h,u.value);if(t.value[1]&&u.value)switch(n.value){case"quarter":return f(h)>f(u.value);case"month":return d(h)>d(u.value);case"week":return c(h)>c(u.value);default:return!Br(a.value,h,u.value)&&a.value.isAfter(h,u.value)}return!1},h=>{var b;if(!((b=i.value)===null||b===void 0)&&b.call(i,h))return!0;if(l[0]&&s)return!Br(a.value,h,u.value)&&a.value.isAfter(s.value,h);if(t.value[0]&&s.value)switch(n.value){case"quarter":return f(h)AG(o,l,a));case"quarter":case"month":return i((l,a)=>zp(o,l,a));default:return i((l,a)=>jb(o,l,a))}}function ZG(e,t,n,o){const r=vt(e,0),i=vt(e,1);if(t===0)return r;if(r&&i)switch(qG(r,i,n,o)){case"same":return r;case"closing":return r;default:return ks(i,n,o,-1)}return r}function QG(e){let{values:t,picker:n,defaultDates:o,generateConfig:r}=e;const i=re([vt(o,0),vt(o,1)]),l=re(null),a=P(()=>vt(t.value,0)),s=P(()=>vt(t.value,1)),u=g=>i.value[g]?i.value[g]:vt(l.value,g)||ZG(t.value,g,n.value,r.value)||a.value||s.value||r.value.getNow(),c=re(null),d=re(null);Le(()=>{c.value=u(0),d.value=u(1)});function f(g,v){if(g){let h=xo(l.value,g,v);i.value=xo(i.value,null,v)||[null,null];const b=(v+1)%2;vt(t.value,b)||(h=xo(h,g,b)),l.value=h}else(a.value||s.value)&&(l.value=null)}return[c,d,f]}function _I(e){return e0()?(X4(e),!0):!1}function JG(e){return typeof e=="function"?e():St(e)}function oy(e){var t;const n=JG(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function eX(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;pn()?je(e):t?e():ot(e)}function AI(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=ne(),o=()=>n.value=!!e();return o(),eX(o,t),n}var hh;const RI=typeof window<"u";RI&&(!((hh=window?.navigator)===null||hh===void 0)&&hh.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const DI=RI?window:void 0;var tX=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r2&&arguments[2]!==void 0?arguments[2]:{};const{window:o=DI}=n,r=tX(n,["window"]);let i;const l=AI(()=>o&&"ResizeObserver"in o),a=()=>{i&&(i.disconnect(),i=void 0)},s=ye(()=>oy(e),c=>{a(),l.value&&o&&c&&(i=new ResizeObserver(t),i.observe(c,r))},{immediate:!0,flush:"post"}),u=()=>{a(),s()};return _I(u),{isSupported:l,stop:u}}function ds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{width:0,height:0},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{box:o="content-box"}=n,r=ne(t.width),i=ne(t.height);return nX(e,l=>{let[a]=l;const s=o==="border-box"?a.borderBoxSize:o==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;s?(r.value=s.reduce((u,c)=>{let{inlineSize:d}=c;return u+d},0),i.value=s.reduce((u,c)=>{let{blockSize:d}=c;return u+d},0)):(r.value=a.contentRect.width,i.value=a.contentRect.height)},n),ye(()=>oy(e),l=>{r.value=l?t.width:0,i.value=l?t.height:0}),{width:r,height:i}}function mx(e,t){return e&&e[0]&&e[1]&&t.isAfter(e[0],e[1])?[e[1],e[0]]:e}function bx(e,t,n,o){return!!(e||o&&o[t]||n[(t+1)%2])}function oX(){return oe({name:"RangerPicker",inheritAttrs:!1,props:["prefixCls","id","popupStyle","dropdownClassName","transitionName","dropdownAlign","getPopupContainer","generateConfig","locale","placeholder","autofocus","disabled","format","picker","showTime","showNow","showHour","showMinute","showSecond","use12Hours","separator","value","defaultValue","defaultPickerValue","open","defaultOpen","disabledDate","disabledTime","dateRender","panelRender","ranges","allowEmpty","allowClear","suffixIcon","clearIcon","pickerRef","inputReadOnly","mode","renderExtraFooter","onChange","onOpenChange","onPanelChange","onCalendarChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onClick","onOk","onKeydown","components","order","direction","activePickerIndex","autocomplete","minuteStep","hourStep","secondStep","hideDisabledOptions","disabledMinutes","presets","prevIcon","nextIcon","superPrevIcon","superNextIcon"],setup(e,t){let{attrs:n,expose:o}=t;const r=P(()=>e.picker==="date"&&!!e.showTime||e.picker==="time"),i=P(()=>e.presets),l=P(()=>e.ranges),a=MI(i,l),s=re({}),u=re(null),c=re(null),d=re(null),f=re(null),g=re(null),v=re(null),h=re(null),b=re(null),y=P(()=>CI(hI(e.format,e.picker,e.showTime,e.use12Hours))),[S,$]=Pt(0,{value:ze(e,"activePickerIndex")}),x=re(null),C=P(()=>{const{disabled:Ee}=e;return Array.isArray(Ee)?Ee:[Ee||!1,Ee||!1]}),[O,w]=Pt(null,{value:ze(e,"value"),defaultValue:e.defaultValue,postState:Ee=>e.picker==="time"&&!e.order?Ee:mx(Ee,e.generateConfig)}),[I,T,M]=QG({values:O,picker:ze(e,"picker"),defaultDates:e.defaultPickerValue,generateConfig:ze(e,"generateConfig")}),[E,A]=Pt(O.value,{postState:Ee=>{let Ye=Ee;if(C.value[0]&&C.value[1])return Ye;for(let Ge=0;Ge<2;Ge+=1)C.value[Ge]&&!vt(Ye,Ge)&&!vt(e.allowEmpty,Ge)&&(Ye=xo(Ye,e.generateConfig.getNow(),Ge));return Ye}}),[R,z]=Pt([e.picker,e.picker],{value:ze(e,"mode")});ye(()=>e.picker,()=>{z([e.picker,e.picker])});const _=(Ee,Ye)=>{var Ge;z(Ee),(Ge=e.onPanelChange)===null||Ge===void 0||Ge.call(e,Ye,Ee)},[N,B]=YG({picker:ze(e,"picker"),selectedValue:E,locale:ze(e,"locale"),disabled:C,disabledDate:ze(e,"disabledDate"),generateConfig:ze(e,"generateConfig")},s),[k,F]=Pt(!1,{value:ze(e,"open"),defaultValue:e.defaultOpen,postState:Ee=>C.value[S.value]?!1:Ee,onChange:Ee=>{var Ye;(Ye=e.onOpenChange)===null||Ye===void 0||Ye.call(e,Ee),!Ee&&x.value&&x.value.onClose&&x.value.onClose()}}),L=P(()=>k.value&&S.value===0),H=P(()=>k.value&&S.value===1),j=re(0),Y=re(0),Q=re(0),{width:U}=ds(u);ye([k,U],()=>{!k.value&&u.value&&(Q.value=U.value)});const{width:ee}=ds(c),{width:X}=ds(b),{width:J}=ds(d),{width:Z}=ds(g);ye([S,k,ee,X,J,Z,()=>e.direction],()=>{Y.value=0,S.value?d.value&&g.value&&(Y.value=J.value+Z.value,ee.value&&X.value&&Y.value>ee.value-X.value-(e.direction==="rtl"||b.value.offsetLeft>Y.value?0:b.value.offsetLeft)&&(j.value=Y.value)):S.value===0&&(j.value=0)},{immediate:!0});const G=re();function q(Ee,Ye){if(Ee)clearTimeout(G.value),s.value[Ye]=!0,$(Ye),F(Ee),k.value||M(null,Ye);else if(S.value===Ye){F(Ee);const Ge=s.value;G.value=setTimeout(()=>{Ge===s.value&&(s.value={})})}}function V(Ee){q(!0,Ee),setTimeout(()=>{const Ye=[v,h][Ee];Ye.value&&Ye.value.focus()},0)}function K(Ee,Ye){let Ge=Ee,$t=vt(Ge,0),en=vt(Ge,1);const{generateConfig:Ht,locale:Xn,picker:hn,order:tr,onCalendarChange:eo,allowEmpty:mo,onChange:At,showTime:Bo}=e;$t&&en&&Ht.isAfter($t,en)&&(hn==="week"&&!yI(Ht,Xn.locale,$t,en)||hn==="quarter"&&!bI(Ht,$t,en)||hn!=="week"&&hn!=="quarter"&&hn!=="time"&&!(Bo?ha(Ht,$t,en):Br(Ht,$t,en))?(Ye===0?(Ge=[$t,null],en=null):($t=null,Ge=[null,en]),s.value={[Ye]:!0}):(hn!=="time"||tr!==!1)&&(Ge=mx(Ge,Ht))),A(Ge);const bo=Ge&&Ge[0]?bn(Ge[0],{generateConfig:Ht,locale:Xn,format:y.value[0]}):"",Qr=Ge&&Ge[1]?bn(Ge[1],{generateConfig:Ht,locale:Xn,format:y.value[0]}):"";eo&&eo(Ge,[bo,Qr],{range:Ye===0?"start":"end"});const Jr=bx($t,0,C.value,mo),ko=bx(en,1,C.value,mo);(Ge===null||Jr&&ko)&&(w(Ge),At&&(!ha(Ht,vt(O.value,0),$t)||!ha(Ht,vt(O.value,1),en))&&At(Ge,[bo,Qr]));let Fo=null;Ye===0&&!C.value[1]?Fo=1:Ye===1&&!C.value[0]&&(Fo=0),Fo!==null&&Fo!==S.value&&(!s.value[Fo]||!vt(Ge,Fo))&&vt(Ge,Ye)?V(Fo):q(!1,Ye)}const te=Ee=>k&&x.value&&x.value.onKeydown?x.value.onKeydown(Ee):!1,ue={formatList:y,generateConfig:ze(e,"generateConfig"),locale:ze(e,"locale")},[ie,ae]=mf(P(()=>vt(E.value,0)),ue),[ce,se]=mf(P(()=>vt(E.value,1)),ue),pe=(Ee,Ye)=>{const Ge=SI(Ee,{locale:e.locale,formatList:y.value,generateConfig:e.generateConfig});Ge&&!(Ye===0?N:B)(Ge)&&(A(xo(E.value,Ge,Ye)),M(Ge,Ye))},[ge,he,me]=rm({valueTexts:ie,onTextChange:Ee=>pe(Ee,0)}),[xe,fe,de]=rm({valueTexts:ce,onTextChange:Ee=>pe(Ee,1)}),[be,we]=ht(null),[Ie,Ae]=ht(null),[Se,Ce,Oe]=im(ge,ue),[Me,Re,_e]=im(xe,ue),Be=Ee=>{Ae(xo(E.value,Ee,S.value)),S.value===0?Ce(Ee):Re(Ee)},et=()=>{Ae(xo(E.value,null,S.value)),S.value===0?Oe():_e()},dt=(Ee,Ye)=>({forwardKeydown:te,onBlur:Ge=>{var $t;($t=e.onBlur)===null||$t===void 0||$t.call(e,Ge)},isClickOutside:Ge=>!mI([c.value,d.value,f.value,u.value],Ge),onFocus:Ge=>{var $t;$(Ee),($t=e.onFocus)===null||$t===void 0||$t.call(e,Ge)},triggerOpen:Ge=>{q(Ge,Ee)},onSubmit:()=>{if(!E.value||e.disabledDate&&e.disabledDate(E.value[Ee]))return!1;K(E.value,Ee),Ye()},onCancel:()=>{q(!1,Ee),A(O.value),Ye()}}),[it,{focused:ft,typing:gt}]=om(m(m({},dt(0,me)),{blurToCancel:r,open:L,value:ge,onKeydown:(Ee,Ye)=>{var Ge;(Ge=e.onKeydown)===null||Ge===void 0||Ge.call(e,Ee,Ye)}})),[Ut,{focused:Jt,typing:on}]=om(m(m({},dt(1,de)),{blurToCancel:r,open:H,value:xe,onKeydown:(Ee,Ye)=>{var Ge;(Ge=e.onKeydown)===null||Ge===void 0||Ge.call(e,Ee,Ye)}})),zt=Ee=>{var Ye;(Ye=e.onClick)===null||Ye===void 0||Ye.call(e,Ee),!k.value&&!v.value.contains(Ee.target)&&!h.value.contains(Ee.target)&&(C.value[0]?C.value[1]||V(1):V(0))},Cn=Ee=>{var Ye;(Ye=e.onMousedown)===null||Ye===void 0||Ye.call(e,Ee),k.value&&(ft.value||Jt.value)&&!v.value.contains(Ee.target)&&!h.value.contains(Ee.target)&&Ee.preventDefault()},Kn=P(()=>{var Ee;return!((Ee=O.value)===null||Ee===void 0)&&Ee[0]?bn(O.value[0],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""}),vo=P(()=>{var Ee;return!((Ee=O.value)===null||Ee===void 0)&&Ee[1]?bn(O.value[1],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""});ye([k,ie,ce],()=>{k.value||(A(O.value),!ie.value.length||ie.value[0]===""?he(""):ae.value!==ge.value&&me(),!ce.value.length||ce.value[0]===""?fe(""):se.value!==xe.value&&de())}),ye([Kn,vo],()=>{A(O.value)}),o({focus:()=>{v.value&&v.value.focus()},blur:()=>{v.value&&v.value.blur(),h.value&&h.value.blur()}});const No=P(()=>k.value&&Ie.value&&Ie.value[0]&&Ie.value[1]&&e.generateConfig.isAfter(Ie.value[1],Ie.value[0])?Ie.value:null);function Gn(){let Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{generateConfig:Ge,showTime:$t,dateRender:en,direction:Ht,disabledTime:Xn,prefixCls:hn,locale:tr}=e;let eo=$t;if($t&&typeof $t=="object"&&$t.defaultValue){const At=$t.defaultValue;eo=m(m({},$t),{defaultValue:vt(At,S.value)||void 0})}let mo=null;return en&&(mo=At=>{let{current:Bo,today:bo}=At;return en({current:Bo,today:bo,info:{range:S.value?"end":"start"}})}),p(LG,{value:{inRange:!0,panelPosition:Ee,rangedValue:be.value||E.value,hoverRangedValue:No.value}},{default:()=>[p(ny,D(D(D({},e),Ye),{},{dateRender:mo,showTime:eo,mode:R.value[S.value],generateConfig:Ge,style:void 0,direction:Ht,disabledDate:S.value===0?N:B,disabledTime:At=>Xn?Xn(At,S.value===0?"start":"end"):!1,class:le({[`${hn}-panel-focused`]:S.value===0?!gt.value:!on.value}),value:vt(E.value,S.value),locale:tr,tabIndex:-1,onPanelChange:(At,Bo)=>{S.value===0&&Oe(!0),S.value===1&&_e(!0),_(xo(R.value,Bo,S.value),xo(E.value,At,S.value));let bo=At;Ee==="right"&&R.value[S.value]===Bo&&(bo=ks(bo,Bo,Ge,-1)),M(bo,S.value)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:S.value===0?vt(E.value,1):vt(E.value,0)}),null)]})}const ki=(Ee,Ye)=>{const Ge=xo(E.value,Ee,S.value);Ye==="submit"||Ye!=="key"&&!r.value?(K(Ge,S.value),S.value===0?Oe():_e()):A(Ge)};return Fb({operationRef:x,hideHeader:P(()=>e.picker==="time"),onDateMouseenter:Be,onDateMouseleave:et,hideRanges:P(()=>!0),onSelect:ki,open:k}),()=>{const{prefixCls:Ee="rc-picker",id:Ye,popupStyle:Ge,dropdownClassName:$t,transitionName:en,dropdownAlign:Ht,getPopupContainer:Xn,generateConfig:hn,locale:tr,placeholder:eo,autofocus:mo,picker:At="date",showTime:Bo,separator:bo="~",disabledDate:Qr,panelRender:Jr,allowClear:ko,suffixIcon:Ll,clearIcon:Fo,inputReadOnly:Sg,renderExtraFooter:DE,onMouseenter:NE,onMouseleave:BE,onMouseup:kE,onOk:M1,components:FE,direction:ns,autocomplete:_1="off"}=e,LE=ns==="rtl"?{right:`${Y.value}px`}:{left:`${Y.value}px`};function zE(){let Un;const ei=PI(Ee,R.value[S.value],DE),N1=II({prefixCls:Ee,components:FE,needConfirmButton:r.value,okDisabled:!vt(E.value,S.value)||Qr&&Qr(E.value[S.value]),locale:tr,onOk:()=>{vt(E.value,S.value)&&(K(E.value,S.value),M1&&M1(E.value))}});if(At!=="time"&&!Bo){const ti=S.value===0?I.value:T.value,VE=ks(ti,At,hn),wg=R.value[S.value]===At,B1=Gn(wg?"left":!1,{pickerValue:ti,onPickerValueChange:Og=>{M(Og,S.value)}}),k1=Gn("right",{pickerValue:VE,onPickerValueChange:Og=>{M(ks(Og,At,hn,-1),S.value)}});ns==="rtl"?Un=p(Ve,null,[k1,wg&&B1]):Un=p(Ve,null,[B1,wg&&k1])}else Un=Gn();let xg=p("div",{class:`${Ee}-panel-layout`},[p(EI,{prefixCls:Ee,presets:a.value,onClick:ti=>{K(ti,null),q(!1,S.value)},onHover:ti=>{we(ti)}},null),p("div",null,[p("div",{class:`${Ee}-panels`},[Un]),(ei||N1)&&p("div",{class:`${Ee}-footer`},[ei,N1])])]);return Jr&&(xg=Jr(xg)),p("div",{class:`${Ee}-panel-container`,style:{marginLeft:`${j.value}px`},ref:c,onMousedown:ti=>{ti.preventDefault()}},[xg])}const HE=p("div",{class:le(`${Ee}-range-wrapper`,`${Ee}-${At}-range-wrapper`),style:{minWidth:`${Q.value}px`}},[p("div",{ref:b,class:`${Ee}-range-arrow`,style:LE},null),zE()]);let A1;Ll&&(A1=p("span",{class:`${Ee}-suffix`},[Ll]));let R1;ko&&(vt(O.value,0)&&!C.value[0]||vt(O.value,1)&&!C.value[1])&&(R1=p("span",{onMousedown:Un=>{Un.preventDefault(),Un.stopPropagation()},onMouseup:Un=>{Un.preventDefault(),Un.stopPropagation();let ei=O.value;C.value[0]||(ei=xo(ei,null,0)),C.value[1]||(ei=xo(ei,null,1)),K(ei,null),q(!1,S.value)},class:`${Ee}-clear`},[Fo||p("span",{class:`${Ee}-clear-btn`},null)]));const D1={size:vI(At,y.value[0],hn)};let $g=0,Cg=0;d.value&&f.value&&g.value&&(S.value===0?Cg=d.value.offsetWidth:($g=Y.value,Cg=f.value.offsetWidth));const jE=ns==="rtl"?{right:`${$g}px`}:{left:`${$g}px`};return p("div",D({ref:u,class:le(Ee,`${Ee}-range`,n.class,{[`${Ee}-disabled`]:C.value[0]&&C.value[1],[`${Ee}-focused`]:S.value===0?ft.value:Jt.value,[`${Ee}-rtl`]:ns==="rtl"}),style:n.style,onClick:zt,onMouseenter:NE,onMouseleave:BE,onMousedown:Cn,onMouseup:kE},xI(e)),[p("div",{class:le(`${Ee}-input`,{[`${Ee}-input-active`]:S.value===0,[`${Ee}-input-placeholder`]:!!Se.value}),ref:d},[p("input",D(D(D({id:Ye,disabled:C.value[0],readonly:Sg||typeof y.value[0]=="function"||!gt.value,value:Se.value||ge.value,onInput:Un=>{he(Un.target.value)},autofocus:mo,placeholder:vt(eo,0)||"",ref:v},it.value),D1),{},{autocomplete:_1}),null)]),p("div",{class:`${Ee}-range-separator`,ref:g},[bo]),p("div",{class:le(`${Ee}-input`,{[`${Ee}-input-active`]:S.value===1,[`${Ee}-input-placeholder`]:!!Me.value}),ref:f},[p("input",D(D(D({disabled:C.value[1],readonly:Sg||typeof y.value[0]=="function"||!on.value,value:Me.value||xe.value,onInput:Un=>{fe(Un.target.value)},placeholder:vt(eo,1)||"",ref:h},Ut.value),D1),{},{autocomplete:_1}),null)]),p("div",{class:`${Ee}-active-bar`,style:m(m({},jE),{width:`${Cg}px`,position:"absolute"})},null),A1,R1,p(TI,{visible:k.value,popupStyle:Ge,prefixCls:Ee,dropdownClassName:$t,dropdownAlign:Ht,getPopupContainer:Xn,transitionName:en,range:!0,direction:ns},{default:()=>[p("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>HE})])}}})}const rX=oX();var iX=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.checked,()=>{i.value=e.checked}),r({focus(){var c;(c=l.value)===null||c===void 0||c.focus()},blur(){var c;(c=l.value)===null||c===void 0||c.blur()}});const a=re(),s=c=>{if(e.disabled)return;e.checked===void 0&&(i.value=c.target.checked),c.shiftKey=a.value;const d={target:m(m({},e),{checked:c.target.checked}),stopPropagation(){c.stopPropagation()},preventDefault(){c.preventDefault()},nativeEvent:c};e.checked!==void 0&&(l.value.checked=!!e.checked),o("change",d),a.value=!1},u=c=>{o("click",c),a.value=c.shiftKey};return()=>{const{prefixCls:c,name:d,id:f,type:g,disabled:v,readonly:h,tabindex:b,autofocus:y,value:S,required:$}=e,x=iX(e,["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"]),{class:C,onFocus:O,onBlur:w,onKeydown:I,onKeypress:T,onKeyup:M}=n,E=m(m({},x),n),A=Object.keys(E).reduce((_,N)=>((N.startsWith("data-")||N.startsWith("aria-")||N==="role")&&(_[N]=E[N]),_),{}),R=le(c,C,{[`${c}-checked`]:i.value,[`${c}-disabled`]:v}),z=m(m({name:d,id:f,type:g,readonly:h,disabled:v,tabindex:b,class:`${c}-input`,checked:!!i.value,autofocus:y,value:S},A),{onChange:s,onClick:u,onFocus:O,onBlur:w,onKeydown:I,onKeypress:T,onKeyup:M,required:$});return p("span",{class:R},[p("input",D({ref:l},z),null),p("span",{class:`${c}-inner`},null)])}}}),BI=Symbol("radioGroupContextKey"),aX=e=>{Xe(BI,e)},sX=()=>He(BI,void 0),kI=Symbol("radioOptionTypeContextKey"),cX=e=>{Xe(kI,e)},uX=()=>He(kI,void 0),dX=new nt("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),fX=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-group`;return{[o]:m(m({},Ue(e)),{display:"inline-block",fontSize:0,[`&${o}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},pX=e=>{const{componentCls:t,radioWrapperMarginRight:n,radioCheckedColor:o,radioSize:r,motionDurationSlow:i,motionDurationMid:l,motionEaseInOut:a,motionEaseInOutCirc:s,radioButtonBg:u,colorBorder:c,lineWidth:d,radioDotSize:f,colorBgContainerDisabled:g,colorTextDisabled:v,paddingXS:h,radioDotDisabledColor:b,lineType:y,radioDotDisabledSize:S,wireframe:$,colorWhite:x}=e,C=`${t}-inner`;return{[`${t}-wrapper`]:m(m({},Ue(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${d}px ${y} ${o}`,borderRadius:"50%",visibility:"hidden",animationName:dX,animationDuration:i,animationTimingFunction:a,animationFillMode:"both",content:'""'},[t]:m(m({},Ue(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &, - &:hover ${C}`]:{borderColor:o},[`${t}-input:focus-visible + ${C}`]:m({},Wr(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:r,height:r,marginBlockStart:r/-2,marginInlineStart:r/-2,backgroundColor:$?o:x,borderBlockStart:0,borderInlineStart:0,borderRadius:r,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:r,height:r,backgroundColor:u,borderColor:c,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${l}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[C]:{borderColor:o,backgroundColor:$?u:o,"&::after":{transform:`scale(${f/r})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[C]:{backgroundColor:g,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:b}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${t}-checked`]:{[C]:{"&::after":{transform:`scale(${S/r})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},gX=e=>{const{radioButtonColor:t,controlHeight:n,componentCls:o,lineWidth:r,lineType:i,colorBorder:l,motionDurationSlow:a,motionDurationMid:s,radioButtonPaddingHorizontal:u,fontSize:c,radioButtonBg:d,fontSizeLG:f,controlHeightLG:g,controlHeightSM:v,paddingXS:h,borderRadius:b,borderRadiusSM:y,borderRadiusLG:S,radioCheckedColor:$,radioButtonCheckedBg:x,radioButtonHoverColor:C,radioButtonActiveColor:O,radioSolidCheckedColor:w,colorTextDisabled:I,colorBgContainerDisabled:T,radioDisabledButtonCheckedColor:M,radioDisabledButtonCheckedBg:E}=e;return{[`${o}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:c,lineHeight:`${n-r*2}px`,background:d,border:`${r}px ${i} ${l}`,borderBlockStartWidth:r+.02,borderInlineStartWidth:0,borderInlineEndWidth:r,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`border-color ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${o}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-r,insetInlineStart:-r,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:r,paddingInline:0,backgroundColor:l,transition:`background-color ${a}`,content:'""'}},"&:first-child":{borderInlineStart:`${r}px ${i} ${l}`,borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b},"&:first-child:last-child":{borderRadius:b},[`${o}-group-large &`]:{height:g,fontSize:f,lineHeight:`${g-r*2}px`,"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},[`${o}-group-small &`]:{height:v,paddingInline:h-r,paddingBlock:0,lineHeight:`${v-r*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":m({},Wr(e)),[`${o}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${o}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:x,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:C,borderColor:C,"&::before":{backgroundColor:C}},"&:active":{color:O,borderColor:O,"&::before":{backgroundColor:O}}},[`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]:{color:w,background:$,borderColor:$,"&:hover":{color:w,background:C,borderColor:C},"&:active":{color:w,background:O,borderColor:O}},"&-disabled":{color:I,backgroundColor:T,borderColor:l,cursor:"not-allowed","&:first-child, &:hover":{color:I,backgroundColor:T,borderColor:l}},[`&-disabled${o}-button-wrapper-checked`]:{color:M,backgroundColor:E,borderColor:l,boxShadow:"none"}}}},FI=Ke("Radio",e=>{const{padding:t,lineWidth:n,controlItemBgActiveDisabled:o,colorTextDisabled:r,colorBgContainer:i,fontSizeLG:l,controlOutline:a,colorPrimaryHover:s,colorPrimaryActive:u,colorText:c,colorPrimary:d,marginXS:f,controlOutlineWidth:g,colorTextLightSolid:v,wireframe:h}=e,b=`0 0 0 ${g}px ${a}`,y=b,S=l,$=4,x=S-$*2,C=h?x:S-($+n)*2,O=d,w=c,I=s,T=u,M=t-n,R=ke(e,{radioFocusShadow:b,radioButtonFocusShadow:y,radioSize:S,radioDotSize:C,radioDotDisabledSize:x,radioCheckedColor:O,radioDotDisabledColor:r,radioSolidCheckedColor:v,radioButtonBg:i,radioButtonCheckedBg:i,radioButtonColor:w,radioButtonHoverColor:I,radioButtonActiveColor:T,radioButtonPaddingHorizontal:M,radioDisabledButtonCheckedBg:o,radioDisabledButtonCheckedColor:r,radioWrapperMarginRight:f});return[fX(R),pX(R),gX(R)]});var hX=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,checked:$e(),disabled:$e(),isGroup:$e(),value:W.any,name:String,id:String,autofocus:$e(),onChange:ve(),onFocus:ve(),onBlur:ve(),onClick:ve(),"onUpdate:checked":ve(),"onUpdate:value":ve()}),Fn=oe({compatConfig:{MODE:3},name:"ARadio",inheritAttrs:!1,props:LI(),setup(e,t){let{emit:n,expose:o,slots:r,attrs:i}=t;const l=Qt(),a=dn.useInject(),s=uX(),u=sX(),c=Jn(),d=P(()=>{var I;return(I=h.value)!==null&&I!==void 0?I:c.value}),f=re(),{prefixCls:g,direction:v,disabled:h}=Te("radio",e),b=P(()=>u?.optionType.value==="button"||s==="button"?`${g.value}-button`:g.value),y=Jn(),[S,$]=FI(g);o({focus:()=>{f.value.focus()},blur:()=>{f.value.blur()}});const O=I=>{const T=I.target.checked;n("update:checked",T),n("update:value",T),n("change",I),l.onFieldChange()},w=I=>{n("change",I),u&&u.onChange&&u.onChange(I)};return()=>{var I;const T=u,{prefixCls:M,id:E=l.id.value}=e,A=hX(e,["prefixCls","id"]),R=m(m({prefixCls:b.value,id:E},tt(A,["onUpdate:checked","onUpdate:value"])),{disabled:(I=h.value)!==null&&I!==void 0?I:y.value});T?(R.name=T.name.value,R.onChange=w,R.checked=e.value===T.value.value,R.disabled=d.value||T.disabled.value):R.onChange=O;const z=le({[`${b.value}-wrapper`]:!0,[`${b.value}-wrapper-checked`]:R.checked,[`${b.value}-wrapper-disabled`]:R.disabled,[`${b.value}-wrapper-rtl`]:v.value==="rtl",[`${b.value}-wrapper-in-form-item`]:a.isFormItemInput},i.class,$.value);return S(p("label",D(D({},i),{},{class:z}),[p(NI,D(D({},R),{},{type:"radio",ref:f}),null),r.default&&p("span",null,[r.default()])]))}}}),vX=()=>({prefixCls:String,value:W.any,size:Ne(),options:lt(),disabled:$e(),name:String,buttonStyle:Ne("outline"),id:String,optionType:Ne("default"),onChange:ve(),"onUpdate:value":ve()}),ry=oe({compatConfig:{MODE:3},name:"ARadioGroup",inheritAttrs:!1,props:vX(),setup(e,t){let{slots:n,emit:o,attrs:r}=t;const i=Qt(),{prefixCls:l,direction:a,size:s}=Te("radio",e),[u,c]=FI(l),d=re(e.value),f=re(!1);return ye(()=>e.value,v=>{d.value=v,f.value=!1}),aX({onChange:v=>{const h=d.value,{value:b}=v.target;"value"in e||(d.value=b),!f.value&&b!==h&&(f.value=!0,o("update:value",b),o("change",v),i.onFieldChange()),ot(()=>{f.value=!1})},value:d,disabled:P(()=>e.disabled),name:P(()=>e.name),optionType:P(()=>e.optionType)}),()=>{var v;const{options:h,buttonStyle:b,id:y=i.id.value}=e,S=`${l.value}-group`,$=le(S,`${S}-${b}`,{[`${S}-${s.value}`]:s.value,[`${S}-rtl`]:a.value==="rtl"},r.class,c.value);let x=null;return h&&h.length>0?x=h.map(C=>{if(typeof C=="string"||typeof C=="number")return p(Fn,{key:C,prefixCls:l.value,disabled:e.disabled,value:C,checked:d.value===C},{default:()=>[C]});const{value:O,disabled:w,label:I}=C;return p(Fn,{key:`radio-group-value-options-${O}`,prefixCls:l.value,disabled:w||e.disabled,value:O,checked:d.value===O},{default:()=>[I]})}):x=(v=n.default)===null||v===void 0?void 0:v.call(n),u(p("div",D(D({},r),{},{class:$,id:y}),[x]))}}}),bf=oe({compatConfig:{MODE:3},name:"ARadioButton",inheritAttrs:!1,props:LI(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=Te("radio",e);return cX("button"),()=>{var i;return p(Fn,D(D(D({},o),e),{},{prefixCls:r.value}),{default:()=>[(i=n.default)===null||i===void 0?void 0:i.call(n)]})}}});Fn.Group=ry;Fn.Button=bf;Fn.install=function(e){return e.component(Fn.name,Fn),e.component(Fn.Group.name,Fn.Group),e.component(Fn.Button.name,Fn.Button),e};const mX=10,bX=20;function zI(e){const{fullscreen:t,validRange:n,generateConfig:o,locale:r,prefixCls:i,value:l,onChange:a,divRef:s}=e,u=o.getYear(l||o.getNow());let c=u-mX,d=c+bX;n&&(c=o.getYear(n[0]),d=o.getYear(n[1])+1);const f=r&&r.year==="年"?"年":"",g=[];for(let v=c;v{let h=o.setYear(l,v);if(n){const[b,y]=n,S=o.getYear(h),$=o.getMonth(h);S===o.getYear(y)&&$>o.getMonth(y)&&(h=o.setMonth(h,o.getMonth(y))),S===o.getYear(b)&&$s.value},null)}zI.inheritAttrs=!1;function HI(e){const{prefixCls:t,fullscreen:n,validRange:o,value:r,generateConfig:i,locale:l,onChange:a,divRef:s}=e,u=i.getMonth(r||i.getNow());let c=0,d=11;if(o){const[v,h]=o,b=i.getYear(r);i.getYear(h)===b&&(d=i.getMonth(h)),i.getYear(v)===b&&(c=i.getMonth(v))}const f=l.shortMonths||i.locale.getShortMonths(l.locale),g=[];for(let v=c;v<=d;v+=1)g.push({label:f[v],value:v});return p(gn,{size:n?void 0:"small",class:`${t}-month-select`,value:u,options:g,onChange:v=>{a(i.setMonth(r,v))},getPopupContainer:()=>s.value},null)}HI.inheritAttrs=!1;function jI(e){const{prefixCls:t,locale:n,mode:o,fullscreen:r,onModeChange:i}=e;return p(ry,{onChange:l=>{let{target:{value:a}}=l;i(a)},value:o,size:r?void 0:"small",class:`${t}-mode-switch`},{default:()=>[p(bf,{value:"month"},{default:()=>[n.month]}),p(bf,{value:"year"},{default:()=>[n.year]})]})}jI.inheritAttrs=!1;const yX=oe({name:"CalendarHeader",inheritAttrs:!1,props:["mode","prefixCls","value","validRange","generateConfig","locale","mode","fullscreen"],setup(e,t){let{attrs:n}=t;const o=re(null),r=dn.useInject();return dn.useProvide(r,{isFormItemInput:!1}),()=>{const i=m(m({},e),n),{prefixCls:l,fullscreen:a,mode:s,onChange:u,onModeChange:c}=i,d=m(m({},i),{fullscreen:a,divRef:o});return p("div",{class:`${l}-header`,ref:o},[p(zI,D(D({},d),{},{onChange:f=>{u(f,"year")}}),null),s==="month"&&p(HI,D(D({},d),{},{onChange:f=>{u(f,"month")}}),null),p(jI,D(D({},d),{},{onModeChange:c}),null)])}}}),iy=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),qa=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),Pi=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),ly=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":m({},qa(ke(e,{inputBorderHoverColor:e.colorBorder})))}),VI=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:o,borderRadiusLG:r,inputPaddingHorizontalLG:i}=e;return{padding:`${t}px ${i}px`,fontSize:n,lineHeight:o,borderRadius:r}},ay=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),Bc=(e,t)=>{const{componentCls:n,colorError:o,colorWarning:r,colorErrorOutline:i,colorWarningOutline:l,colorErrorBorderHover:a,colorWarningBorderHover:s}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:a},"&:focus, &-focused":m({},Pi(ke(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:i}))),[`${n}-prefix`]:{color:o}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":m({},Pi(ke(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:l}))),[`${n}-prefix`]:{color:r}}}},kl=e=>m(m({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},iy(e.colorTextPlaceholder)),{"&:hover":m({},qa(e)),"&:focus, &-focused":m({},Pi(e)),"&-disabled, &[disabled]":m({},ly(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":m({},VI(e)),"&-sm":m({},ay(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),WI=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`]:m({},VI(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:m({},ay(e)),[`> ${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 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{float:"inline-start",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`]:m(m({display:"block"},Xo()),{[`${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},[`& > ${t}-affix-wrapper`]:{display:"inline-flex"},[`& > ${n}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, + `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${n}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover,a:{color:e.breadcrumbLinkColorHover}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},FK=Ke("Breadcrumb",e=>{const t=ke(e,{breadcrumbBaseColor:e.colorTextDescription,breadcrumbFontSize:e.fontSize,breadcrumbIconFontSize:e.fontSize,breadcrumbLinkColor:e.colorTextDescription,breadcrumbLinkColorHover:e.colorText,breadcrumbLastItemColor:e.colorText,breadcrumbSeparatorMargin:e.marginXS,breadcrumbSeparatorColor:e.colorTextDescription});return[kK(t)]}),LK=()=>({prefixCls:String,routes:{type:Array},params:W.any,separator:W.any,itemRender:{type:Function}});function zK(e,t){if(!e.breadcrumbName)return null;const n=Object.keys(t).join("|");return e.breadcrumbName.replace(new RegExp(`:(${n})`,"g"),(r,i)=>t[i]||r)}function nx(e){const{route:t,params:n,routes:o,paths:r}=e,i=o.indexOf(t)===o.length-1,l=zK(t,n);return i?p("span",null,[l]):p("a",{href:`#/${r.join("/")}`},[l])}const fl=oe({compatConfig:{MODE:3},name:"ABreadcrumb",inheritAttrs:!1,props:LK(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Te("breadcrumb",e),[l,a]=FK(r),s=(d,f)=>(d=(d||"").replace(/^\//,""),Object.keys(f).forEach(g=>{d=d.replace(`:${g}`,f[g])}),d),u=(d,f,g)=>{const v=[...d],h=s(f||"",g);return h&&v.push(h),v},c=d=>{let{routes:f=[],params:g={},separator:v,itemRender:h=nx}=d;const b=[];return f.map(y=>{const S=s(y.path,g);S&&b.push(S);const $=[...b];let x=null;y.children&&y.children.length&&(x=p(Vt,{items:y.children.map(O=>({key:O.path||O.breadcrumbName,label:h({route:O,params:g,routes:f,paths:u($,O.path,g)})}))},null));const C={separator:v};return x&&(C.overlay=x),p(pc,D(D({},C),{},{key:S||y.breadcrumbName}),{default:()=>[h({route:y,params:g,routes:f,paths:$})]})})};return()=>{var d;let f;const{routes:g,params:v={}}=e,h=bt(Zt(n,e)),b=(d=Zt(n,e,"separator"))!==null&&d!==void 0?d:"/",y=e.itemRender||n.itemRender||nx;g&&g.length>0?f=c({routes:g,params:v,separator:b,itemRender:y}):h.length&&(f=h.map(($,x)=>(fo(typeof $.type=="object"&&($.type.__ANT_BREADCRUMB_ITEM||$.type.__ANT_BREADCRUMB_SEPARATOR)),cn($,{separator:b,key:x}))));const S={[r.value]:!0,[`${r.value}-rtl`]:i.value==="rtl",[`${o.class}`]:!!o.class,[a.value]:!0};return l(p("nav",D(D({},o),{},{class:S}),[p("ol",null,[f])]))}}});var HK=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String}),vf=oe({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:jK(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=Te("breadcrumb",e);return()=>{var i;const{separator:l,class:a}=o,s=HK(o,["separator","class"]),u=bt((i=n.default)===null||i===void 0?void 0:i.call(n));return p("span",D({class:[`${r.value}-separator`,a]},s),[u.length>0?u:"/"])}}});fl.Item=pc;fl.Separator=vf;fl.install=function(e){return e.component(fl.name,fl),e.component(pc.name,pc),e.component(vf.name,vf),e};function Ni(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wu={exports:{}},VK=Wu.exports,ox;function WK(){return ox||(ox=1,(function(e,t){(function(n,o){e.exports=o()})(VK,(function(){var n=1e3,o=6e4,r=36e5,i="millisecond",l="second",a="minute",s="hour",u="day",c="week",d="month",f="quarter",g="year",v="date",h="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,S={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(z){var M=["th","st","nd","rd"],N=z%100;return"["+z+(M[(N-20)%10]||M[N]||M[0])+"]"}},$=function(z,M,N){var B=String(z);return!B||B.length>=M?z:""+Array(M+1-B.length).join(N)+z},x={s:$,z:function(z){var M=-z.utcOffset(),N=Math.abs(M),B=Math.floor(N/60),k=N%60;return(M<=0?"+":"-")+$(B,2,"0")+":"+$(k,2,"0")},m:function z(M,N){if(M.date()1)return z(L[0])}else{var H=M.name;O[H]=M,k=H}return!B&&k&&(C=k),k||!B&&C},_=function(z,M){if(I(z))return z.clone();var N=typeof M=="object"?M:{};return N.date=z,N.args=arguments,new A(N)},E=x;E.l=T,E.i=I,E.w=function(z,M){return _(z,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var A=(function(){function z(N){this.$L=T(N.locale,null,!0),this.parse(N),this.$x=this.$x||N.x||{},this[w]=!0}var M=z.prototype;return M.parse=function(N){this.$d=(function(B){var k=B.date,F=B.utc;if(k===null)return new Date(NaN);if(E.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var L=k.match(b);if(L){var H=L[2]-1||0,j=(L[7]||"0").substring(0,3);return F?new Date(Date.UTC(L[1],H,L[3]||1,L[4]||0,L[5]||0,L[6]||0,j)):new Date(L[1],H,L[3]||1,L[4]||0,L[5]||0,L[6]||0,j)}}return new Date(k)})(N),this.init()},M.init=function(){var N=this.$d;this.$y=N.getFullYear(),this.$M=N.getMonth(),this.$D=N.getDate(),this.$W=N.getDay(),this.$H=N.getHours(),this.$m=N.getMinutes(),this.$s=N.getSeconds(),this.$ms=N.getMilliseconds()},M.$utils=function(){return E},M.isValid=function(){return this.$d.toString()!==h},M.isSame=function(N,B){var k=_(N);return this.startOf(B)<=k&&k<=this.endOf(B)},M.isAfter=function(N,B){return _(N)25){var c=l(this).startOf(o).add(1,o).date(u),d=l(this).endOf(n);if(c.isBefore(d))return 1}var f=l(this).startOf(o).date(u).startOf(n).subtract(1,"millisecond"),g=this.diff(f,n,!0);return g<0?l(this).startOf("week").week():Math.ceil(g)},a.weeks=function(s){return s===void 0&&(s=null),this.week(s)}}}))})(Xu)),Xu.exports}var nG=tG();const oG=Ni(nG);var Uu={exports:{}},rG=Uu.exports,ax;function iG(){return ax||(ax=1,(function(e,t){(function(n,o){e.exports=o()})(rG,(function(){return function(n,o){o.prototype.weekYear=function(){var r=this.month(),i=this.week(),l=this.year();return i===1&&r===11?l+1:r===0&&i>=52?l-1:l}}}))})(Uu)),Uu.exports}var lG=iG();const aG=Ni(lG);var Yu={exports:{}},sG=Yu.exports,sx;function cG(){return sx||(sx=1,(function(e,t){(function(n,o){e.exports=o()})(sG,(function(){var n="month",o="quarter";return function(r,i){var l=i.prototype;l.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var a=l.add;l.add=function(u,c){return u=Number(u),this.$utils().p(c)===o?this.add(3*u,n):a.bind(this)(u,c)};var s=l.startOf;l.startOf=function(u,c){var d=this.$utils(),f=!!d.u(c)||c;if(d.p(u)===o){var g=this.quarter()-1;return f?this.month(3*g).startOf(n).startOf("day"):this.month(3*g+2).endOf(n).endOf("day")}return s.bind(this)(u,c)}}}))})(Yu)),Yu.exports}var uG=cG();const dG=Ni(uG);var qu={exports:{}},fG=qu.exports,cx;function pG(){return cx||(cx=1,(function(e,t){(function(n,o){e.exports=o()})(fG,(function(){return function(n,o){var r=o.prototype,i=r.format;r.format=function(l){var a=this,s=this.$locale();if(!this.isValid())return i.bind(this)(l);var u=this.$utils(),c=(l||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(d){switch(d){case"Q":return Math.ceil((a.$M+1)/3);case"Do":return s.ordinal(a.$D);case"gggg":return a.weekYear();case"GGGG":return a.isoWeekYear();case"wo":return s.ordinal(a.week(),"W");case"w":case"ww":return u.s(a.week(),d==="w"?1:2,"0");case"W":case"WW":return u.s(a.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return u.s(String(a.$H===0?24:a.$H),d==="k"?1:2,"0");case"X":return Math.floor(a.$d.getTime()/1e3);case"x":return a.$d.getTime();case"z":return"["+a.offsetName()+"]";case"zzz":return"["+a.offsetName("long")+"]";default:return d}}));return i.bind(this)(c)}}}))})(qu)),qu.exports}var gG=pG();const hG=Ni(gG);var Zu={exports:{}},vG=Zu.exports,ux;function mG(){return ux||(ux=1,(function(e,t){(function(n,o){e.exports=o()})(vG,(function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,i=/\d\d/,l=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,s={},u=function(b){return(b=+b)+(b>68?1900:2e3)},c=function(b){return function(y){this[b]=+y}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=(function(y){if(!y||y==="Z")return 0;var S=y.match(/([+-]|\d\d)/g),$=60*S[1]+(+S[2]||0);return $===0?0:S[0]==="+"?-$:$})(b)}],f=function(b){var y=s[b];return y&&(y.indexOf?y:y.s.concat(y.f))},g=function(b,y){var S,$=s.meridiem;if($){for(var x=1;x<=24;x+=1)if(b.indexOf($(x,0,y))>-1){S=x>12;break}}else S=b===(y?"pm":"PM");return S},v={A:[a,function(b){this.afternoon=g(b,!1)}],a:[a,function(b){this.afternoon=g(b,!0)}],Q:[r,function(b){this.month=3*(b-1)+1}],S:[r,function(b){this.milliseconds=100*+b}],SS:[i,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],s:[l,c("seconds")],ss:[l,c("seconds")],m:[l,c("minutes")],mm:[l,c("minutes")],H:[l,c("hours")],h:[l,c("hours")],HH:[l,c("hours")],hh:[l,c("hours")],D:[l,c("day")],DD:[i,c("day")],Do:[a,function(b){var y=s.ordinal,S=b.match(/\d+/);if(this.day=S[0],y)for(var $=1;$<=31;$+=1)y($).replace(/\[|\]/g,"")===b&&(this.day=$)}],w:[l,c("week")],ww:[i,c("week")],M:[l,c("month")],MM:[i,c("month")],MMM:[a,function(b){var y=f("months"),S=(f("monthsShort")||y.map((function($){return $.slice(0,3)}))).indexOf(b)+1;if(S<1)throw new Error;this.month=S%12||S}],MMMM:[a,function(b){var y=f("months").indexOf(b)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,c("year")],YY:[i,function(b){this.year=u(b)}],YYYY:[/\d{4}/,c("year")],Z:d,ZZ:d};function h(b){var y,S;y=b,S=s&&s.formats;for(var $=(b=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(_,E,A){var R=A&&A.toUpperCase();return E||S[A]||n[A]||S[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(z,M,N){return M||N.slice(1)}))}))).match(o),x=$.length,C=0;C-1)return new Date((k==="X"?1e3:1)*B);var H=h(k)(B),j=H.year,Y=H.month,Q=H.day,U=H.hours,ee=H.minutes,X=H.seconds,J=H.milliseconds,Z=H.zone,G=H.week,q=new Date,V=Q||(j||Y?1:q.getDate()),K=j||q.getFullYear(),te=0;j&&!Y||(te=Y>0?Y-1:q.getMonth());var ue,ie=U||0,ae=ee||0,ce=X||0,se=J||0;return Z?new Date(Date.UTC(K,te,V,ie,ae,ce,se+60*Z.offset*1e3)):F?new Date(Date.UTC(K,te,V,ie,ae,ce,se)):(ue=new Date(K,te,V,ie,ae,ce,se),G&&(ue=L(ue).week(G).toDate()),ue)}catch{return new Date("")}})(O,T,w,S),this.init(),R&&R!==!0&&(this.$L=this.locale(R).$L),A&&O!=this.format(T)&&(this.$d=new Date("")),s={}}else if(T instanceof Array)for(var z=T.length,M=1;M<=z;M+=1){I[1]=T[M-1];var N=S.apply(this,I);if(N.isValid()){this.$d=N.$d,this.$L=N.$L,this.init();break}M===z&&(this.$d=new Date(""))}else x.call(this,C)}}}))})(Zu)),Zu.exports}var bG=mG();const yG=Ni(bG);an.extend(yG);an.extend(hG);an.extend(YK);an.extend(JK);an.extend(oG);an.extend(aG);an.extend(dG);an.extend((e,t)=>{const n=t.prototype,o=n.format;n.format=function(i){const l=(i||"").replace("Wo","wo");return o.bind(this)(l)}});const SG={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Wi=e=>SG[e]||e.split("_")[0],dx=()=>{wA(!1,"Not match any format. Please help to fire a issue about this.")},$G=/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|k{1,2}|S/g;function fx(e,t,n){const o=[...new Set(e.split(n))];let r=0;for(let i=0;it)return l;r+=n.length}}const px=(e,t)=>{if(!e)return null;if(an.isDayjs(e))return e;const n=t.matchAll($G);let o=an(e,t);if(n===null)return o;for(const r of n){const i=r[0],l=r.index;if(i==="Q"){const a=e.slice(l-1,l),s=fx(e,l,a).match(/\d+/)[0];o=o.quarter(parseInt(s))}if(i.toLowerCase()==="wo"){const a=e.slice(l-1,l),s=fx(e,l,a).match(/\d+/)[0];o=o.week(parseInt(s))}i.toLowerCase()==="ww"&&(o=o.week(parseInt(e.slice(l,l+i.length)))),i.toLowerCase()==="w"&&(o=o.week(parseInt(e.slice(l,l+i.length+1))))}return o},kb={getNow:()=>an(),getFixedDate:e=>an(e,["YYYY-M-DD","YYYY-MM-DD"]),getEndDate:e=>e.endOf("month"),getWeekDay:e=>{const t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>e.year(),getMonth:e=>e.month(),getDate:e=>e.date(),getHour:e=>e.hour(),getMinute:e=>e.minute(),getSecond:e=>e.second(),addYear:(e,t)=>e.add(t,"year"),addMonth:(e,t)=>e.add(t,"month"),addDate:(e,t)=>e.add(t,"day"),setYear:(e,t)=>e.year(t),setMonth:(e,t)=>e.month(t),setDate:(e,t)=>e.date(t),setHour:(e,t)=>e.hour(t),setMinute:(e,t)=>e.minute(t),setSecond:(e,t)=>e.second(t),isAfter:(e,t)=>e.isAfter(t),isValidate:e=>e.isValid(),locale:{getWeekFirstDay:e=>an().locale(Wi(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>t.locale(Wi(e)).weekday(0),getWeek:(e,t)=>t.locale(Wi(e)).week(),getShortWeekDays:e=>an().locale(Wi(e)).localeData().weekdaysMin(),getShortMonths:e=>an().locale(Wi(e)).localeData().monthsShort(),format:(e,t,n)=>t.locale(Wi(e)).format(n),parse:(e,t,n)=>{const o=Wi(e);for(let r=0;rArray.isArray(e)?e.map(n=>px(n,t)):px(e,t),toString:(e,t)=>Array.isArray(e)?e.map(n=>an.isDayjs(n)?n.format(t):n):an.isDayjs(e)?e.format(t):e};function Xt(e){const t=XM();return m(m({},e),t)}const pI=Symbol("PanelContextProps"),Fb=e=>{Xe(pI,e)},br=()=>He(pI,{}),mu={visibility:"hidden"};function Bi(e,t){let{slots:n}=t;var o;const r=Xt(e),{prefixCls:i,prevIcon:l="‹",nextIcon:a="›",superPrevIcon:s="«",superNextIcon:u="»",onSuperPrev:c,onSuperNext:d,onPrev:f,onNext:g}=r,{hideNextBtn:v,hidePrevBtn:h}=br();return p("div",{class:i},[c&&p("button",{type:"button",onClick:c,tabindex:-1,class:`${i}-super-prev-btn`,style:h.value?mu:{}},[s]),f&&p("button",{type:"button",onClick:f,tabindex:-1,class:`${i}-prev-btn`,style:h.value?mu:{}},[l]),p("div",{class:`${i}-view`},[(o=n.default)===null||o===void 0?void 0:o.call(n)]),g&&p("button",{type:"button",onClick:g,tabindex:-1,class:`${i}-next-btn`,style:v.value?mu:{}},[a]),d&&p("button",{type:"button",onClick:d,tabindex:-1,class:`${i}-super-next-btn`,style:v.value?mu:{}},[u])])}Bi.displayName="Header";Bi.inheritAttrs=!1;function Lb(e){const t=Xt(e),{prefixCls:n,generateConfig:o,viewDate:r,onPrevDecades:i,onNextDecades:l}=t,{hideHeader:a}=br();if(a)return null;const s=`${n}-header`,u=o.getYear(r),c=Math.floor(u/Nr)*Nr,d=c+Nr-1;return p(Bi,D(D({},t),{},{prefixCls:s,onSuperPrev:i,onSuperNext:l}),{default:()=>[c,Ft("-"),d]})}Lb.displayName="DecadeHeader";Lb.inheritAttrs=!1;function gI(e,t,n,o,r){let i=e.setHour(t,n);return i=e.setMinute(i,o),i=e.setSecond(i,r),i}function Qu(e,t,n){if(!n)return t;let o=t;return o=e.setHour(o,e.getHour(n)),o=e.setMinute(o,e.getMinute(n)),o=e.setSecond(o,e.getSecond(n)),o}function CG(e,t,n,o,r,i){const l=Math.floor(e/o)*o;if(l{z.stopPropagation(),A||o(E)},onMouseenter:()=>{!A&&y&&y(E)},onMouseleave:()=>{!A&&S&&S(E)}},[f?f(E):p("div",{class:`${x}-inner`},[d(E)])]))}C.push(p("tr",{key:O,class:s&&s(I)},[w]))}return p("div",{class:`${t}-body`},[p("table",{class:`${t}-content`},[b&&p("thead",null,[p("tr",null,[b])]),p("tbody",null,[C])])])}Nl.displayName="PanelBody";Nl.inheritAttrs=!1;const Qv=3,gx=4;function zb(e){const t=Xt(e),n=zo-1,{prefixCls:o,viewDate:r,generateConfig:i}=t,l=`${o}-cell`,a=i.getYear(r),s=Math.floor(a/zo)*zo,u=Math.floor(a/Nr)*Nr,c=u+Nr-1,d=i.setYear(r,u-Math.ceil((Qv*gx*zo-Nr)/2)),f=g=>{const v=i.getYear(g),h=v+n;return{[`${l}-in-view`]:u<=v&&h<=c,[`${l}-selected`]:v===s}};return p(Nl,D(D({},t),{},{rowNum:gx,colNum:Qv,baseDate:d,getCellText:g=>{const v=i.getYear(g);return`${v}-${v+n}`},getCellClassName:f,getCellDate:(g,v)=>i.addYear(g,v*zo)}),null)}zb.displayName="DecadeBody";zb.inheritAttrs=!1;const bu=new Map;function wG(e,t){let n;function o(){mp(e)?t():n=qe(()=>{o()})}return o(),()=>{qe.cancel(n)}}function Jv(e,t,n){if(bu.get(e)&&qe.cancel(bu.get(e)),n<=0){bu.set(e,qe(()=>{e.scrollTop=t}));return}const r=(t-e.scrollTop)/n*10;bu.set(e,qe(()=>{e.scrollTop+=r,e.scrollTop!==t&&Jv(e,t,n-10)}))}function Ya(e,t){let{onLeftRight:n,onCtrlLeftRight:o,onUpDown:r,onPageUpDown:i,onEnter:l}=t;const{which:a,ctrlKey:s,metaKey:u}=e;switch(a){case Pe.LEFT:if(s||u){if(o)return o(-1),!0}else if(n)return n(-1),!0;break;case Pe.RIGHT:if(s||u){if(o)return o(1),!0}else if(n)return n(1),!0;break;case Pe.UP:if(r)return r(-1),!0;break;case Pe.DOWN:if(r)return r(1),!0;break;case Pe.PAGE_UP:if(i)return i(-1),!0;break;case Pe.PAGE_DOWN:if(i)return i(1),!0;break;case Pe.ENTER:if(l)return l(),!0;break}return!1}function hI(e,t,n,o){let r=e;if(!r)switch(t){case"time":r=o?"hh:mm:ss a":"HH:mm:ss";break;case"week":r="gggg-wo";break;case"month":r="YYYY-MM";break;case"quarter":r="YYYY-[Q]Q";break;case"year":r="YYYY";break;default:r=n?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return r}function vI(e,t,n){const o=e==="time"?8:10,r=typeof t=="function"?t(n.getNow()).length:t.length;return Math.max(o,r)+2}let us=null;const yu=new Set;function OG(e){return!us&&typeof window<"u"&&window.addEventListener&&(us=t=>{[...yu].forEach(n=>{n(t)})},window.addEventListener("mousedown",us)),yu.add(e),()=>{yu.delete(e),yu.size===0&&(window.removeEventListener("mousedown",us),us=null)}}function PG(e){var t;const n=e.target;return e.composed&&n.shadowRoot&&((t=e.composedPath)===null||t===void 0?void 0:t.call(e)[0])||n}const IG=e=>e==="month"||e==="date"?"year":e,TG=e=>e==="date"?"month":e,EG=e=>e==="month"||e==="date"?"quarter":e,MG=e=>e==="date"?"week":e,_G={year:IG,month:TG,quarter:EG,week:MG,time:null,date:null};function mI(e,t){return e.some(n=>n&&n.contains(t))}const zo=10,Nr=zo*10;function Hb(e){const t=Xt(e),{prefixCls:n,onViewDateChange:o,generateConfig:r,viewDate:i,operationRef:l,onSelect:a,onPanelChange:s}=t,u=`${n}-decade-panel`;l.value={onKeydown:f=>Ya(f,{onLeftRight:g=>{a(r.addYear(i,g*zo),"key")},onCtrlLeftRight:g=>{a(r.addYear(i,g*Nr),"key")},onUpDown:g=>{a(r.addYear(i,g*zo*Qv),"key")},onEnter:()=>{s("year",i)}})};const c=f=>{const g=r.addYear(i,f*Nr);o(g),s(null,g)},d=f=>{a(f,"mouse"),s("year",f)};return p("div",{class:u},[p(Lb,D(D({},t),{},{prefixCls:n,onPrevDecades:()=>{c(-1)},onNextDecades:()=>{c(1)}}),null),p(zb,D(D({},t),{},{prefixCls:n,onSelect:d}),null)])}Hb.displayName="DecadePanel";Hb.inheritAttrs=!1;const Ju=7;function Bl(e,t){if(!e&&!t)return!0;if(!e||!t)return!1}function AG(e,t,n){const o=Bl(t,n);if(typeof o=="boolean")return o;const r=Math.floor(e.getYear(t)/10),i=Math.floor(e.getYear(n)/10);return r===i}function zp(e,t,n){const o=Bl(t,n);return typeof o=="boolean"?o:e.getYear(t)===e.getYear(n)}function em(e,t){return Math.floor(e.getMonth(t)/3)+1}function bI(e,t,n){const o=Bl(t,n);return typeof o=="boolean"?o:zp(e,t,n)&&em(e,t)===em(e,n)}function jb(e,t,n){const o=Bl(t,n);return typeof o=="boolean"?o:zp(e,t,n)&&e.getMonth(t)===e.getMonth(n)}function Br(e,t,n){const o=Bl(t,n);return typeof o=="boolean"?o:e.getYear(t)===e.getYear(n)&&e.getMonth(t)===e.getMonth(n)&&e.getDate(t)===e.getDate(n)}function RG(e,t,n){const o=Bl(t,n);return typeof o=="boolean"?o:e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)}function yI(e,t,n,o){const r=Bl(n,o);return typeof r=="boolean"?r:e.locale.getWeek(t,n)===e.locale.getWeek(t,o)}function ha(e,t,n){return Br(e,t,n)&&RG(e,t,n)}function Su(e,t,n,o){return!t||!n||!o?!1:!Br(e,t,o)&&!Br(e,n,o)&&e.isAfter(o,t)&&e.isAfter(n,o)}function DG(e,t,n){const o=t.locale.getWeekFirstDay(e),r=t.setDate(n,1),i=t.getWeekDay(r);let l=t.addDate(r,o-i);return t.getMonth(l)===t.getMonth(n)&&t.getDate(l)>1&&(l=t.addDate(l,-7)),l}function ks(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(t){case"year":return n.addYear(e,o*10);case"quarter":case"month":return n.addYear(e,o);default:return n.addMonth(e,o)}}function bn(e,t){let{generateConfig:n,locale:o,format:r}=t;return typeof r=="function"?r(e):n.locale.format(o.locale,e,r)}function SI(e,t){let{generateConfig:n,locale:o,formatList:r}=t;return!e||typeof r[0]=="function"?null:n.locale.parse(o.locale,e,r)}function tm(e){let{cellDate:t,mode:n,disabledDate:o,generateConfig:r}=e;if(!o)return!1;const i=(l,a,s)=>{let u=a;for(;u<=s;){let c;switch(l){case"date":{if(c=r.setDate(t,u),!o(c))return!1;break}case"month":{if(c=r.setMonth(t,u),!tm({cellDate:c,mode:"month",generateConfig:r,disabledDate:o}))return!1;break}case"year":{if(c=r.setYear(t,u),!tm({cellDate:c,mode:"year",generateConfig:r,disabledDate:o}))return!1;break}}u+=1}return!0};switch(n){case"date":case"week":return o(t);case"month":{const a=r.getDate(r.getEndDate(t));return i("date",1,a)}case"quarter":{const l=Math.floor(r.getMonth(t)/3)*3,a=l+2;return i("month",l,a)}case"year":return i("month",0,11);case"decade":{const l=r.getYear(t),a=Math.floor(l/zo)*zo,s=a+zo-1;return i("year",a,s)}}}function Vb(e){const t=Xt(e),{hideHeader:n}=br();if(n.value)return null;const{prefixCls:o,generateConfig:r,locale:i,value:l,format:a}=t,s=`${o}-header`;return p(Bi,{prefixCls:s},{default:()=>[l?bn(l,{locale:i,format:a,generateConfig:r}):" "]})}Vb.displayName="TimeHeader";Vb.inheritAttrs=!1;const $u=oe({name:"TimeUnitColumn",props:["prefixCls","units","onSelect","value","active","hideDisabledOptions"],setup(e){const{open:t}=br(),n=ne(null),o=re(new Map),r=re();return ye(()=>e.value,()=>{const i=o.value.get(e.value);i&&t.value!==!1&&Jv(n.value,i.offsetTop,120)}),Qe(()=>{var i;(i=r.value)===null||i===void 0||i.call(r)}),ye(t,()=>{var i;(i=r.value)===null||i===void 0||i.call(r),ot(()=>{if(t.value){const l=o.value.get(e.value);l&&(r.value=wG(l,()=>{Jv(n.value,l.offsetTop,0)}))}})},{immediate:!0,flush:"post"}),()=>{const{prefixCls:i,units:l,onSelect:a,value:s,active:u,hideDisabledOptions:c}=e,d=`${i}-cell`;return p("ul",{class:le(`${i}-column`,{[`${i}-column-active`]:u}),ref:n,style:{position:"relative"}},[l.map(f=>c&&f.disabled?null:p("li",{key:f.value,ref:g=>{o.value.set(f.value,g)},class:le(d,{[`${d}-disabled`]:f.disabled,[`${d}-selected`]:s===f.value}),onClick:()=>{f.disabled||a(f.value)}},[p("div",{class:`${d}-inner`},[f.label])]))])}}});function $I(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",o=String(e);for(;o.length{(n.startsWith("data-")||n.startsWith("aria-")||n==="role"||n==="name")&&!n.startsWith("data-__")&&(t[n]=e[n])}),t}function vt(e,t){return e?e[t]:null}function xo(e,t,n){const o=[vt(e,0),vt(e,1)];return o[n]=typeof t=="function"?t(o[n]):t,!o[0]&&!o[1]?null:o}function gh(e,t,n,o){const r=[];for(let i=e;i<=t;i+=n)r.push({label:$I(i,2),value:i,disabled:(o||[]).includes(i)});return r}const BG=oe({compatConfig:{MODE:3},name:"TimeBody",inheritAttrs:!1,props:["generateConfig","prefixCls","operationRef","activeColumnIndex","value","showHour","showMinute","showSecond","use12Hours","hourStep","minuteStep","secondStep","disabledHours","disabledMinutes","disabledSeconds","disabledTime","hideDisabledOptions","onSelect"],setup(e){const t=P(()=>e.value?e.generateConfig.getHour(e.value):-1),n=P(()=>e.use12Hours?t.value>=12:!1),o=P(()=>e.use12Hours?t.value%12:t.value),r=P(()=>e.value?e.generateConfig.getMinute(e.value):-1),i=P(()=>e.value?e.generateConfig.getSecond(e.value):-1),l=re(e.generateConfig.getNow()),a=re(),s=re(),u=re();ep(()=>{l.value=e.generateConfig.getNow()}),Le(()=>{if(e.disabledTime){const b=e.disabledTime(l);[a.value,s.value,u.value]=[b.disabledHours,b.disabledMinutes,b.disabledSeconds]}else[a.value,s.value,u.value]=[e.disabledHours,e.disabledMinutes,e.disabledSeconds]});const c=(b,y,S,$)=>{let x=e.value||e.generateConfig.getNow();const C=Math.max(0,y),O=Math.max(0,S),w=Math.max(0,$);return x=gI(e.generateConfig,x,!e.use12Hours||!b?C:C+12,O,w),x},d=P(()=>{var b;return gh(0,23,(b=e.hourStep)!==null&&b!==void 0?b:1,a.value&&a.value())}),f=P(()=>{if(!e.use12Hours)return[!1,!1];const b=[!0,!0];return d.value.forEach(y=>{let{disabled:S,value:$}=y;S||($>=12?b[1]=!1:b[0]=!1)}),b}),g=P(()=>e.use12Hours?d.value.filter(n.value?b=>b.value>=12:b=>b.value<12).map(b=>{const y=b.value%12,S=y===0?"12":$I(y,2);return m(m({},b),{label:S,value:y})}):d.value),v=P(()=>{var b;return gh(0,59,(b=e.minuteStep)!==null&&b!==void 0?b:1,s.value&&s.value(t.value))}),h=P(()=>{var b;return gh(0,59,(b=e.secondStep)!==null&&b!==void 0?b:1,u.value&&u.value(t.value,r.value))});return()=>{const{prefixCls:b,operationRef:y,activeColumnIndex:S,showHour:$,showMinute:x,showSecond:C,use12Hours:O,hideDisabledOptions:w,onSelect:I}=e,T=[],_=`${b}-content`,E=`${b}-time-panel`;y.value={onUpDown:z=>{const M=T[S];if(M){const N=M.units.findIndex(k=>k.value===M.value),B=M.units.length;for(let k=1;k{I(c(n.value,z,r.value,i.value),"mouse")}),A(x,p($u,{key:"minute"},null),r.value,v.value,z=>{I(c(n.value,o.value,z,i.value),"mouse")}),A(C,p($u,{key:"second"},null),i.value,h.value,z=>{I(c(n.value,o.value,r.value,z),"mouse")});let R=-1;return typeof n.value=="boolean"&&(R=n.value?1:0),A(O===!0,p($u,{key:"12hours"},null),R,[{label:"AM",value:0,disabled:f.value[0]},{label:"PM",value:1,disabled:f.value[1]}],z=>{I(c(!!z,o.value,r.value,i.value),"mouse")}),p("div",{class:_},[T.map(z=>{let{node:M}=z;return M})])}}}),kG=e=>e.filter(t=>t!==!1).length;function Hp(e){const t=Xt(e),{generateConfig:n,format:o="HH:mm:ss",prefixCls:r,active:i,operationRef:l,showHour:a,showMinute:s,showSecond:u,use12Hours:c=!1,onSelect:d,value:f}=t,g=`${r}-time-panel`,v=re(),h=re(-1),b=kG([a,s,u,c]);return l.value={onKeydown:y=>Ya(y,{onLeftRight:S=>{h.value=(h.value+S+b)%b},onUpDown:S=>{h.value===-1?h.value=0:v.value&&v.value.onUpDown(S)},onEnter:()=>{d(f||n.getNow(),"key"),h.value=-1}}),onBlur:()=>{h.value=-1}},p("div",{class:le(g,{[`${g}-active`]:i})},[p(Vb,D(D({},t),{},{format:o,prefixCls:r}),null),p(BG,D(D({},t),{},{prefixCls:r,activeColumnIndex:h.value,operationRef:v}),null)])}Hp.displayName="TimePanel";Hp.inheritAttrs=!1;function jp(e){let{cellPrefixCls:t,generateConfig:n,rangedValue:o,hoverRangedValue:r,isInView:i,isSameCell:l,offsetCell:a,today:s,value:u}=e;function c(d){const f=a(d,-1),g=a(d,1),v=vt(o,0),h=vt(o,1),b=vt(r,0),y=vt(r,1),S=Su(n,b,y,d);function $(T){return l(v,T)}function x(T){return l(h,T)}const C=l(b,d),O=l(y,d),w=(S||O)&&(!i(f)||x(f)),I=(S||C)&&(!i(g)||$(g));return{[`${t}-in-view`]:i(d),[`${t}-in-range`]:Su(n,v,h,d),[`${t}-range-start`]:$(d),[`${t}-range-end`]:x(d),[`${t}-range-start-single`]:$(d)&&!h,[`${t}-range-end-single`]:x(d)&&!v,[`${t}-range-start-near-hover`]:$(d)&&(l(f,b)||Su(n,b,y,f)),[`${t}-range-end-near-hover`]:x(d)&&(l(g,y)||Su(n,b,y,g)),[`${t}-range-hover`]:S,[`${t}-range-hover-start`]:C,[`${t}-range-hover-end`]:O,[`${t}-range-hover-edge-start`]:w,[`${t}-range-hover-edge-end`]:I,[`${t}-range-hover-edge-start-near-range`]:w&&l(f,h),[`${t}-range-hover-edge-end-near-range`]:I&&l(g,v),[`${t}-today`]:l(s,d),[`${t}-selected`]:l(u,d)}}return c}const wI=Symbol("RangeContextProps"),FG=e=>{Xe(wI,e)},Dc=()=>He(wI,{rangedValue:re(),hoverRangedValue:re(),inRange:re(),panelPosition:re()}),LG=oe({compatConfig:{MODE:3},name:"PanelContextProvider",inheritAttrs:!1,props:{value:{type:Object,default:()=>({})}},setup(e,t){let{slots:n}=t;const o={rangedValue:re(e.value.rangedValue),hoverRangedValue:re(e.value.hoverRangedValue),inRange:re(e.value.inRange),panelPosition:re(e.value.panelPosition)};return FG(o),ye(()=>e.value,()=>{Object.keys(e.value).forEach(r=>{o[r]&&(o[r].value=e.value[r])})}),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});function Vp(e){const t=Xt(e),{prefixCls:n,generateConfig:o,prefixColumn:r,locale:i,rowCount:l,viewDate:a,value:s,dateRender:u}=t,{rangedValue:c,hoverRangedValue:d}=Dc(),f=DG(i.locale,o,a),g=`${n}-cell`,v=o.locale.getWeekFirstDay(i.locale),h=o.getNow(),b=[],y=i.shortWeekDays||(o.locale.getShortWeekDays?o.locale.getShortWeekDays(i.locale):[]);r&&b.push(p("th",{key:"empty","aria-label":"empty cell"},null));for(let x=0;xBr(o,x,C),isInView:x=>jb(o,x,a),offsetCell:(x,C)=>o.addDate(x,C)}),$=u?x=>u({current:x,today:h}):void 0;return p(Nl,D(D({},t),{},{rowNum:l,colNum:Ju,baseDate:f,getCellNode:$,getCellText:o.getDate,getCellClassName:S,getCellDate:o.addDate,titleCell:x=>bn(x,{locale:i,format:"YYYY-MM-DD",generateConfig:o}),headerCells:b}),null)}Vp.displayName="DateBody";Vp.inheritAttrs=!1;Vp.props=["prefixCls","generateConfig","value?","viewDate","locale","rowCount","onSelect","dateRender?","disabledDate?","prefixColumn?","rowClassName?"];function Wb(e){const t=Xt(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:i,onNextMonth:l,onPrevMonth:a,onNextYear:s,onPrevYear:u,onYearClick:c,onMonthClick:d}=t,{hideHeader:f}=br();if(f.value)return null;const g=`${n}-header`,v=r.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(r.locale):[]),h=o.getMonth(i),b=p("button",{type:"button",key:"year",onClick:c,tabindex:-1,class:`${n}-year-btn`},[bn(i,{locale:r,format:r.yearFormat,generateConfig:o})]),y=p("button",{type:"button",key:"month",onClick:d,tabindex:-1,class:`${n}-month-btn`},[r.monthFormat?bn(i,{locale:r,format:r.monthFormat,generateConfig:o}):v[h]]),S=r.monthBeforeYear?[y,b]:[b,y];return p(Bi,D(D({},t),{},{prefixCls:g,onSuperPrev:u,onPrev:a,onNext:l,onSuperNext:s}),{default:()=>[S]})}Wb.displayName="DateHeader";Wb.inheritAttrs=!1;const zG=6;function Nc(e){const t=Xt(e),{prefixCls:n,panelName:o="date",keyboardConfig:r,active:i,operationRef:l,generateConfig:a,value:s,viewDate:u,onViewDateChange:c,onPanelChange:d,onSelect:f}=t,g=`${n}-${o}-panel`;l.value={onKeydown:b=>Ya(b,m({onLeftRight:y=>{f(a.addDate(s||u,y),"key")},onCtrlLeftRight:y=>{f(a.addYear(s||u,y),"key")},onUpDown:y=>{f(a.addDate(s||u,y*Ju),"key")},onPageUpDown:y=>{f(a.addMonth(s||u,y),"key")}},r))};const v=b=>{const y=a.addYear(u,b);c(y),d(null,y)},h=b=>{const y=a.addMonth(u,b);c(y),d(null,y)};return p("div",{class:le(g,{[`${g}-active`]:i})},[p(Wb,D(D({},t),{},{prefixCls:n,value:s,viewDate:u,onPrevYear:()=>{v(-1)},onNextYear:()=>{v(1)},onPrevMonth:()=>{h(-1)},onNextMonth:()=>{h(1)},onMonthClick:()=>{d("month",u)},onYearClick:()=>{d("year",u)}}),null),p(Vp,D(D({},t),{},{onSelect:b=>f(b,"mouse"),prefixCls:n,value:s,viewDate:u,rowCount:zG}),null)])}Nc.displayName="DatePanel";Nc.inheritAttrs=!1;const hx=NG("date","time");function Kb(e){const t=Xt(e),{prefixCls:n,operationRef:o,generateConfig:r,value:i,defaultValue:l,disabledTime:a,showTime:s,onSelect:u}=t,c=`${n}-datetime-panel`,d=re(null),f=re({}),g=re({}),v=typeof s=="object"?m({},s):{};function h($){const x=hx.indexOf(d.value)+$;return hx[x]||null}const b=$=>{g.value.onBlur&&g.value.onBlur($),d.value=null};o.value={onKeydown:$=>{if($.which===Pe.TAB){const x=h($.shiftKey?-1:1);return d.value=x,x&&$.preventDefault(),!0}if(d.value){const x=d.value==="date"?f:g;return x.value&&x.value.onKeydown&&x.value.onKeydown($),!0}return[Pe.LEFT,Pe.RIGHT,Pe.UP,Pe.DOWN].includes($.which)?(d.value="date",!0):!1},onBlur:b,onClose:b};const y=($,x)=>{let C=$;x==="date"&&!i&&v.defaultValue?(C=r.setHour(C,r.getHour(v.defaultValue)),C=r.setMinute(C,r.getMinute(v.defaultValue)),C=r.setSecond(C,r.getSecond(v.defaultValue))):x==="time"&&!i&&l&&(C=r.setYear(C,r.getYear(l)),C=r.setMonth(C,r.getMonth(l)),C=r.setDate(C,r.getDate(l))),u&&u(C,"mouse")},S=a?a(i||null):{};return p("div",{class:le(c,{[`${c}-active`]:d.value})},[p(Nc,D(D({},t),{},{operationRef:f,active:d.value==="date",onSelect:$=>{y(Qu(r,$,!i&&typeof s=="object"?s.defaultValue:null),"date")}}),null),p(Hp,D(D(D(D({},t),{},{format:void 0},v),S),{},{disabledTime:null,defaultValue:void 0,operationRef:g,active:d.value==="time",onSelect:$=>{y($,"time")}}),null)])}Kb.displayName="DatetimePanel";Kb.inheritAttrs=!1;function Gb(e){const t=Xt(e),{prefixCls:n,generateConfig:o,locale:r,value:i}=t,l=`${n}-cell`,a=c=>p("td",{key:"week",class:le(l,`${l}-week`)},[o.locale.getWeek(r.locale,c)]),s=`${n}-week-panel-row`,u=c=>le(s,{[`${s}-selected`]:yI(o,r.locale,i,c)});return p(Nc,D(D({},t),{},{panelName:"week",prefixColumn:a,rowClassName:u,keyboardConfig:{onLeftRight:null}}),null)}Gb.displayName="WeekPanel";Gb.inheritAttrs=!1;function Xb(e){const t=Xt(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:i,onNextYear:l,onPrevYear:a,onYearClick:s}=t,{hideHeader:u}=br();if(u.value)return null;const c=`${n}-header`;return p(Bi,D(D({},t),{},{prefixCls:c,onSuperPrev:a,onSuperNext:l}),{default:()=>[p("button",{type:"button",onClick:s,class:`${n}-year-btn`},[bn(i,{locale:r,format:r.yearFormat,generateConfig:o})])]})}Xb.displayName="MonthHeader";Xb.inheritAttrs=!1;const OI=3,HG=4;function Ub(e){const t=Xt(e),{prefixCls:n,locale:o,value:r,viewDate:i,generateConfig:l,monthCellRender:a}=t,{rangedValue:s,hoverRangedValue:u}=Dc(),c=`${n}-cell`,d=jp({cellPrefixCls:c,value:r,generateConfig:l,rangedValue:s.value,hoverRangedValue:u.value,isSameCell:(h,b)=>jb(l,h,b),isInView:()=>!0,offsetCell:(h,b)=>l.addMonth(h,b)}),f=o.shortMonths||(l.locale.getShortMonths?l.locale.getShortMonths(o.locale):[]),g=l.setMonth(i,0),v=a?h=>a({current:h,locale:o}):void 0;return p(Nl,D(D({},t),{},{rowNum:HG,colNum:OI,baseDate:g,getCellNode:v,getCellText:h=>o.monthFormat?bn(h,{locale:o,format:o.monthFormat,generateConfig:l}):f[l.getMonth(h)],getCellClassName:d,getCellDate:l.addMonth,titleCell:h=>bn(h,{locale:o,format:"YYYY-MM",generateConfig:l})}),null)}Ub.displayName="MonthBody";Ub.inheritAttrs=!1;function Yb(e){const t=Xt(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:i,value:l,viewDate:a,onPanelChange:s,onSelect:u}=t,c=`${n}-month-panel`;o.value={onKeydown:f=>Ya(f,{onLeftRight:g=>{u(i.addMonth(l||a,g),"key")},onCtrlLeftRight:g=>{u(i.addYear(l||a,g),"key")},onUpDown:g=>{u(i.addMonth(l||a,g*OI),"key")},onEnter:()=>{s("date",l||a)}})};const d=f=>{const g=i.addYear(a,f);r(g),s(null,g)};return p("div",{class:c},[p(Xb,D(D({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{s("year",a)}}),null),p(Ub,D(D({},t),{},{prefixCls:n,onSelect:f=>{u(f,"mouse"),s("date",f)}}),null)])}Yb.displayName="MonthPanel";Yb.inheritAttrs=!1;function qb(e){const t=Xt(e),{prefixCls:n,generateConfig:o,locale:r,viewDate:i,onNextYear:l,onPrevYear:a,onYearClick:s}=t,{hideHeader:u}=br();if(u.value)return null;const c=`${n}-header`;return p(Bi,D(D({},t),{},{prefixCls:c,onSuperPrev:a,onSuperNext:l}),{default:()=>[p("button",{type:"button",onClick:s,class:`${n}-year-btn`},[bn(i,{locale:r,format:r.yearFormat,generateConfig:o})])]})}qb.displayName="QuarterHeader";qb.inheritAttrs=!1;const jG=4,VG=1;function Zb(e){const t=Xt(e),{prefixCls:n,locale:o,value:r,viewDate:i,generateConfig:l}=t,{rangedValue:a,hoverRangedValue:s}=Dc(),u=`${n}-cell`,c=jp({cellPrefixCls:u,value:r,generateConfig:l,rangedValue:a.value,hoverRangedValue:s.value,isSameCell:(f,g)=>bI(l,f,g),isInView:()=>!0,offsetCell:(f,g)=>l.addMonth(f,g*3)}),d=l.setDate(l.setMonth(i,0),1);return p(Nl,D(D({},t),{},{rowNum:VG,colNum:jG,baseDate:d,getCellText:f=>bn(f,{locale:o,format:o.quarterFormat||"[Q]Q",generateConfig:l}),getCellClassName:c,getCellDate:(f,g)=>l.addMonth(f,g*3),titleCell:f=>bn(f,{locale:o,format:"YYYY-[Q]Q",generateConfig:l})}),null)}Zb.displayName="QuarterBody";Zb.inheritAttrs=!1;function Qb(e){const t=Xt(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:i,value:l,viewDate:a,onPanelChange:s,onSelect:u}=t,c=`${n}-quarter-panel`;o.value={onKeydown:f=>Ya(f,{onLeftRight:g=>{u(i.addMonth(l||a,g*3),"key")},onCtrlLeftRight:g=>{u(i.addYear(l||a,g),"key")},onUpDown:g=>{u(i.addYear(l||a,g),"key")}})};const d=f=>{const g=i.addYear(a,f);r(g),s(null,g)};return p("div",{class:c},[p(qb,D(D({},t),{},{prefixCls:n,onPrevYear:()=>{d(-1)},onNextYear:()=>{d(1)},onYearClick:()=>{s("year",a)}}),null),p(Zb,D(D({},t),{},{prefixCls:n,onSelect:f=>{u(f,"mouse")}}),null)])}Qb.displayName="QuarterPanel";Qb.inheritAttrs=!1;function Jb(e){const t=Xt(e),{prefixCls:n,generateConfig:o,viewDate:r,onPrevDecade:i,onNextDecade:l,onDecadeClick:a}=t,{hideHeader:s}=br();if(s.value)return null;const u=`${n}-header`,c=o.getYear(r),d=Math.floor(c/yi)*yi,f=d+yi-1;return p(Bi,D(D({},t),{},{prefixCls:u,onSuperPrev:i,onSuperNext:l}),{default:()=>[p("button",{type:"button",onClick:a,class:`${n}-decade-btn`},[d,Ft("-"),f])]})}Jb.displayName="YearHeader";Jb.inheritAttrs=!1;const nm=3,vx=4;function ey(e){const t=Xt(e),{prefixCls:n,value:o,viewDate:r,locale:i,generateConfig:l}=t,{rangedValue:a,hoverRangedValue:s}=Dc(),u=`${n}-cell`,c=l.getYear(r),d=Math.floor(c/yi)*yi,f=d+yi-1,g=l.setYear(r,d-Math.ceil((nm*vx-yi)/2)),v=b=>{const y=l.getYear(b);return d<=y&&y<=f},h=jp({cellPrefixCls:u,value:o,generateConfig:l,rangedValue:a.value,hoverRangedValue:s.value,isSameCell:(b,y)=>zp(l,b,y),isInView:v,offsetCell:(b,y)=>l.addYear(b,y)});return p(Nl,D(D({},t),{},{rowNum:vx,colNum:nm,baseDate:g,getCellText:l.getYear,getCellClassName:h,getCellDate:l.addYear,titleCell:b=>bn(b,{locale:i,format:"YYYY",generateConfig:l})}),null)}ey.displayName="YearBody";ey.inheritAttrs=!1;const yi=10;function ty(e){const t=Xt(e),{prefixCls:n,operationRef:o,onViewDateChange:r,generateConfig:i,value:l,viewDate:a,sourceMode:s,onSelect:u,onPanelChange:c}=t,d=`${n}-year-panel`;o.value={onKeydown:g=>Ya(g,{onLeftRight:v=>{u(i.addYear(l||a,v),"key")},onCtrlLeftRight:v=>{u(i.addYear(l||a,v*yi),"key")},onUpDown:v=>{u(i.addYear(l||a,v*nm),"key")},onEnter:()=>{c(s==="date"?"date":"month",l||a)}})};const f=g=>{const v=i.addYear(a,g*10);r(v),c(null,v)};return p("div",{class:d},[p(Jb,D(D({},t),{},{prefixCls:n,onPrevDecade:()=>{f(-1)},onNextDecade:()=>{f(1)},onDecadeClick:()=>{c("decade",a)}}),null),p(ey,D(D({},t),{},{prefixCls:n,onSelect:g=>{c(s==="date"?"date":"month",g),u(g,"mouse")}}),null)])}ty.displayName="YearPanel";ty.inheritAttrs=!1;function PI(e,t,n){return n?p("div",{class:`${e}-footer-extra`},[n(t)]):null}function II(e){let{prefixCls:t,components:n={},needConfirmButton:o,onNow:r,onOk:i,okDisabled:l,showNow:a,locale:s}=e,u,c;if(o){const d=n.button||"button";r&&a!==!1&&(u=p("li",{class:`${t}-now`},[p("a",{class:`${t}-now-btn`,onClick:r},[s.now])])),c=o&&p("li",{class:`${t}-ok`},[p(d,{disabled:l,onClick:f=>{f.stopPropagation(),i&&i()}},{default:()=>[s.ok]})])}return!u&&!c?null:p("ul",{class:`${t}-ranges`},[u,c])}function WG(){return oe({name:"PickerPanel",inheritAttrs:!1,props:{prefixCls:String,locale:Object,generateConfig:Object,value:Object,defaultValue:Object,pickerValue:Object,defaultPickerValue:Object,disabledDate:Function,mode:String,picker:{type:String,default:"date"},tabindex:{type:[Number,String],default:0},showNow:{type:Boolean,default:void 0},showTime:[Boolean,Object],showToday:Boolean,renderExtraFooter:Function,dateRender:Function,hideHeader:{type:Boolean,default:void 0},onSelect:Function,onChange:Function,onPanelChange:Function,onMousedown:Function,onPickerValueChange:Function,onOk:Function,components:Object,direction:String,hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1}},setup(e,t){let{attrs:n}=t;const o=P(()=>e.picker==="date"&&!!e.showTime||e.picker==="time"),r=P(()=>24%e.hourStep===0),i=P(()=>60%e.minuteStep===0),l=P(()=>60%e.secondStep===0),a=br(),{operationRef:s,onSelect:u,hideRanges:c,defaultOpenValue:d}=a,{inRange:f,panelPosition:g,rangedValue:v,hoverRangedValue:h}=Dc(),b=re({}),[y,S]=Pt(null,{value:ze(e,"value"),defaultValue:e.defaultValue,postState:B=>!B&&d?.value&&e.picker==="time"?d.value:B}),[$,x]=Pt(null,{value:ze(e,"pickerValue"),defaultValue:e.defaultPickerValue||y.value,postState:B=>{const{generateConfig:k,showTime:F,defaultValue:L}=e,H=k.getNow();return B?!y.value&&e.showTime?typeof F=="object"?Qu(k,Array.isArray(B)?B[0]:B,F.defaultValue||H):L?Qu(k,Array.isArray(B)?B[0]:B,L):Qu(k,Array.isArray(B)?B[0]:B,H):B:H}}),C=B=>{x(B),e.onPickerValueChange&&e.onPickerValueChange(B)},O=B=>{const k=_G[e.picker];return k?k(B):B},[w,I]=Pt(()=>e.picker==="time"?"time":O("date"),{value:ze(e,"mode")});ye(()=>e.picker,()=>{I(e.picker)});const T=re(w.value),_=B=>{T.value=B},E=(B,k)=>{const{onPanelChange:F,generateConfig:L}=e,H=O(B||w.value);_(w.value),I(H),F&&(w.value!==H||ha(L,$.value,$.value))&&F(k,H)},A=function(B,k){let F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{picker:L,generateConfig:H,onSelect:j,onChange:Y,disabledDate:Q}=e;(w.value===L||F)&&(S(B),j&&j(B),u&&u(B,k),Y&&!ha(H,B,y.value)&&!Q?.(B)&&Y(B))},R=B=>b.value&&b.value.onKeydown?([Pe.LEFT,Pe.RIGHT,Pe.UP,Pe.DOWN,Pe.PAGE_UP,Pe.PAGE_DOWN,Pe.ENTER].includes(B.which)&&B.preventDefault(),b.value.onKeydown(B)):!1,z=B=>{b.value&&b.value.onBlur&&b.value.onBlur(B)},M=()=>{const{generateConfig:B,hourStep:k,minuteStep:F,secondStep:L}=e,H=B.getNow(),j=CG(B.getHour(H),B.getMinute(H),B.getSecond(H),r.value?k:1,i.value?F:1,l.value?L:1),Y=gI(B,H,j[0],j[1],j[2]);A(Y,"submit")},N=P(()=>{const{prefixCls:B,direction:k}=e;return le(`${B}-panel`,{[`${B}-panel-has-range`]:v&&v.value&&v.value[0]&&v.value[1],[`${B}-panel-has-range-hover`]:h&&h.value&&h.value[0]&&h.value[1],[`${B}-panel-rtl`]:k==="rtl"})});return Fb(m(m({},a),{mode:w,hideHeader:P(()=>{var B;return e.hideHeader!==void 0?e.hideHeader:(B=a.hideHeader)===null||B===void 0?void 0:B.value}),hidePrevBtn:P(()=>f.value&&g.value==="right"),hideNextBtn:P(()=>f.value&&g.value==="left")})),ye(()=>e.value,()=>{e.value&&x(e.value)}),()=>{const{prefixCls:B="ant-picker",locale:k,generateConfig:F,disabledDate:L,picker:H="date",tabindex:j=0,showNow:Y,showTime:Q,showToday:U,renderExtraFooter:ee,onMousedown:X,onOk:J,components:Z}=e;s&&g.value!=="right"&&(s.value={onKeydown:R,onClose:()=>{b.value&&b.value.onClose&&b.value.onClose()}});let G;const q=m(m(m({},n),e),{operationRef:b,prefixCls:B,viewDate:$.value,value:y.value,onViewDateChange:C,sourceMode:T.value,onPanelChange:E,disabledDate:L});switch(delete q.onChange,delete q.onSelect,w.value){case"decade":G=p(Hb,D(D({},q),{},{onSelect:(ue,ie)=>{C(ue),A(ue,ie)}}),null);break;case"year":G=p(ty,D(D({},q),{},{onSelect:(ue,ie)=>{C(ue),A(ue,ie)}}),null);break;case"month":G=p(Yb,D(D({},q),{},{onSelect:(ue,ie)=>{C(ue),A(ue,ie)}}),null);break;case"quarter":G=p(Qb,D(D({},q),{},{onSelect:(ue,ie)=>{C(ue),A(ue,ie)}}),null);break;case"week":G=p(Gb,D(D({},q),{},{onSelect:(ue,ie)=>{C(ue),A(ue,ie)}}),null);break;case"time":delete q.showTime,G=p(Hp,D(D(D({},q),typeof Q=="object"?Q:null),{},{onSelect:(ue,ie)=>{C(ue),A(ue,ie)}}),null);break;default:Q?G=p(Kb,D(D({},q),{},{onSelect:(ue,ie)=>{C(ue),A(ue,ie)}}),null):G=p(Nc,D(D({},q),{},{onSelect:(ue,ie)=>{C(ue),A(ue,ie)}}),null)}let V,K;c?.value||(V=PI(B,w.value,ee),K=II({prefixCls:B,components:Z,needConfirmButton:o.value,okDisabled:!y.value||L&&L(y.value),locale:k,showNow:Y,onNow:o.value&&M,onOk:()=>{y.value&&(A(y.value,"submit",!0),J&&J(y.value))}}));let te;if(U&&w.value==="date"&&H==="date"&&!Q){const ue=F.getNow(),ie=`${B}-today-btn`,ae=L&&L(ue);te=p("a",{class:le(ie,ae&&`${ie}-disabled`),"aria-disabled":ae,onClick:()=>{ae||A(ue,"mouse",!0)}},[k.today])}return p("div",{tabindex:j,class:le(N.value,n.class),style:n.style,onKeydown:R,onBlur:z,onMousedown:X},[G,V||K||te?p("div",{class:`${B}-footer`},[V,K,te]):null])}}})}const KG=WG(),ny=(e=>p(KG,e)),GG={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function TI(e,t){let{slots:n}=t;const{prefixCls:o,popupStyle:r,visible:i,dropdownClassName:l,dropdownAlign:a,transitionName:s,getPopupContainer:u,range:c,popupPlacement:d,direction:f}=Xt(e),g=`${o}-dropdown`;return p(Rl,{showAction:[],hideAction:[],popupPlacement:d!==void 0?d:f==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:GG,prefixCls:g,popupTransitionName:s,popupAlign:a,popupVisible:i,popupClassName:le(l,{[`${g}-range`]:c,[`${g}-rtl`]:f==="rtl"}),popupStyle:r,getPopupContainer:u},{default:n.default,popup:n.popupElement})}const EI=oe({name:"PresetPanel",props:{prefixCls:String,presets:{type:Array,default:()=>[]},onClick:Function,onHover:Function},setup(e){return()=>e.presets.length?p("div",{class:`${e.prefixCls}-presets`},[p("ul",null,[e.presets.map((t,n)=>{let{label:o,value:r}=t;return p("li",{key:n,onClick:i=>{i.stopPropagation(),e.onClick(r)},onMouseenter:()=>{var i;(i=e.onHover)===null||i===void 0||i.call(e,r)},onMouseleave:()=>{var i;(i=e.onHover)===null||i===void 0||i.call(e,null)}},[o])})])]):null}});function om(e){let{open:t,value:n,isClickOutside:o,triggerOpen:r,forwardKeydown:i,onKeydown:l,blurToCancel:a,onSubmit:s,onCancel:u,onFocus:c,onBlur:d}=e;const f=ne(!1),g=ne(!1),v=ne(!1),h=ne(!1),b=ne(!1),y=P(()=>({onMousedown:()=>{f.value=!0,r(!0)},onKeydown:$=>{if(l($,()=>{b.value=!0}),!b.value){switch($.which){case Pe.ENTER:{t.value?s()!==!1&&(f.value=!0):r(!0),$.preventDefault();return}case Pe.TAB:{f.value&&t.value&&!$.shiftKey?(f.value=!1,$.preventDefault()):!f.value&&t.value&&!i($)&&$.shiftKey&&(f.value=!0,$.preventDefault());return}case Pe.ESC:{f.value=!0,u();return}}!t.value&&![Pe.SHIFT].includes($.which)?r(!0):f.value||i($)}},onFocus:$=>{f.value=!0,g.value=!0,c&&c($)},onBlur:$=>{if(v.value||!o(document.activeElement)){v.value=!1;return}a.value?setTimeout(()=>{let{activeElement:x}=document;for(;x&&x.shadowRoot;)x=x.shadowRoot.activeElement;o(x)&&u()},0):t.value&&(r(!1),h.value&&s()),g.value=!1,d&&d($)}}));ye(t,()=>{h.value=!1}),ye(n,()=>{h.value=!0});const S=ne();return je(()=>{S.value=OG($=>{const x=PG($);if(t.value){const C=o(x);C?(!g.value||C)&&r(!1):(v.value=!0,qe(()=>{v.value=!1}))}})}),Qe(()=>{S.value&&S.value()}),[y,{focused:g,typing:f}]}function rm(e){let{valueTexts:t,onTextChange:n}=e;const o=re("");function r(l){o.value=l,n(l)}function i(){o.value=t.value[0]}return ye(()=>[...t.value],function(l){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];l.join("||")!==a.join("||")&&t.value.every(s=>s!==o.value)&&i()},{immediate:!0}),[o,r,i]}function mf(e,t){let{formatList:n,generateConfig:o,locale:r}=t;const i=nb(()=>{if(!e.value)return[[""],""];let s="";const u=[];for(let c=0;cu[0]!==s[0]||!Zl(u[1],s[1])),l=P(()=>i.value[0]),a=P(()=>i.value[1]);return[l,a]}function im(e,t){let{formatList:n,generateConfig:o,locale:r}=t;const i=re(null);let l;function a(d){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(qe.cancel(l),f){i.value=d;return}l=qe(()=>{i.value=d})}const[,s]=mf(i,{formatList:n,generateConfig:o,locale:r});function u(d){a(d)}function c(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;a(null,d)}return ye(e,()=>{c(!0)}),Qe(()=>{qe.cancel(l)}),[s,u,c]}function MI(e,t){return P(()=>e?.value?e.value:t?.value?(w0(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.keys(t.value).map(o=>{const r=t.value[o],i=typeof r=="function"?r():r;return{label:o,value:i}})):[])}function XG(){return oe({name:"Picker",inheritAttrs:!1,props:["prefixCls","id","tabindex","dropdownClassName","dropdownAlign","popupStyle","transitionName","generateConfig","locale","inputReadOnly","allowClear","autofocus","showTime","showNow","showHour","showMinute","showSecond","picker","format","use12Hours","value","defaultValue","open","defaultOpen","defaultOpenValue","suffixIcon","presets","clearIcon","disabled","disabledDate","placeholder","getPopupContainer","panelRender","inputRender","onChange","onOpenChange","onPanelChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onContextmenu","onClick","onKeydown","onSelect","direction","autocomplete","showToday","renderExtraFooter","dateRender","minuteStep","hourStep","secondStep","hideDisabledOptions"],setup(e,t){let{attrs:n,expose:o}=t;const r=re(null),i=P(()=>e.presets),l=MI(i),a=P(()=>{var L;return(L=e.picker)!==null&&L!==void 0?L:"date"}),s=P(()=>a.value==="date"&&!!e.showTime||a.value==="time"),u=P(()=>CI(hI(e.format,a.value,e.showTime,e.use12Hours))),c=re(null),d=re(null),f=re(null),[g,v]=Pt(null,{value:ze(e,"value"),defaultValue:e.defaultValue}),h=re(g.value),b=L=>{h.value=L},y=re(null),[S,$]=Pt(!1,{value:ze(e,"open"),defaultValue:e.defaultOpen,postState:L=>e.disabled?!1:L,onChange:L=>{e.onOpenChange&&e.onOpenChange(L),!L&&y.value&&y.value.onClose&&y.value.onClose()}}),[x,C]=mf(h,{formatList:u,generateConfig:ze(e,"generateConfig"),locale:ze(e,"locale")}),[O,w,I]=rm({valueTexts:x,onTextChange:L=>{const H=SI(L,{locale:e.locale,formatList:u.value,generateConfig:e.generateConfig});H&&(!e.disabledDate||!e.disabledDate(H))&&b(H)}}),T=L=>{const{onChange:H,generateConfig:j,locale:Y}=e;b(L),v(L),H&&!ha(j,g.value,L)&&H(L,L?bn(L,{generateConfig:j,locale:Y,format:u.value[0]}):"")},_=L=>{e.disabled&&L||$(L)},E=L=>S.value&&y.value&&y.value.onKeydown?y.value.onKeydown(L):!1,A=function(){e.onMouseup&&e.onMouseup(...arguments),r.value&&(r.value.focus(),_(!0))},[R,{focused:z,typing:M}]=om({blurToCancel:s,open:S,value:O,triggerOpen:_,forwardKeydown:E,isClickOutside:L=>!mI([c.value,d.value,f.value],L),onSubmit:()=>!h.value||e.disabledDate&&e.disabledDate(h.value)?!1:(T(h.value),_(!1),I(),!0),onCancel:()=>{_(!1),b(g.value),I()},onKeydown:(L,H)=>{var j;(j=e.onKeydown)===null||j===void 0||j.call(e,L,H)},onFocus:L=>{var H;(H=e.onFocus)===null||H===void 0||H.call(e,L)},onBlur:L=>{var H;(H=e.onBlur)===null||H===void 0||H.call(e,L)}});ye([S,x],()=>{S.value||(b(g.value),!x.value.length||x.value[0]===""?w(""):C.value!==O.value&&I())}),ye(a,()=>{S.value||I()}),ye(g,()=>{b(g.value)});const[N,B,k]=im(O,{formatList:u,generateConfig:ze(e,"generateConfig"),locale:ze(e,"locale")}),F=(L,H)=>{(H==="submit"||H!=="key"&&!s.value)&&(T(L),_(!1))};return Fb({operationRef:y,hideHeader:P(()=>a.value==="time"),onSelect:F,open:S,defaultOpenValue:ze(e,"defaultOpenValue"),onDateMouseenter:B,onDateMouseleave:k}),o({focus:()=>{r.value&&r.value.focus()},blur:()=>{r.value&&r.value.blur()}}),()=>{const{prefixCls:L="rc-picker",id:H,tabindex:j,dropdownClassName:Y,dropdownAlign:Q,popupStyle:U,transitionName:ee,generateConfig:X,locale:J,inputReadOnly:Z,allowClear:G,autofocus:q,picker:V="date",defaultOpenValue:K,suffixIcon:te,clearIcon:ue,disabled:ie,placeholder:ae,getPopupContainer:ce,panelRender:se,onMousedown:pe,onMouseenter:ge,onMouseleave:he,onContextmenu:me,onClick:xe,onSelect:fe,direction:de,autocomplete:be="off"}=e,we=m(m(m({},e),n),{class:le({[`${L}-panel-focused`]:!M.value}),style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null});let Ie=p("div",{class:`${L}-panel-layout`},[p(EI,{prefixCls:L,presets:l.value,onClick:_e=>{T(_e),_(!1)}},null),p(ny,D(D({},we),{},{generateConfig:X,value:h.value,locale:J,tabindex:-1,onSelect:_e=>{fe?.(_e),b(_e)},direction:de,onPanelChange:(_e,Be)=>{const{onPanelChange:et}=e;k(!0),et?.(_e,Be)}}),null)]);se&&(Ie=se(Ie));const Ae=p("div",{class:`${L}-panel-container`,ref:c,onMousedown:_e=>{_e.preventDefault()}},[Ie]);let Se;te&&(Se=p("span",{class:`${L}-suffix`},[te]));let Ce;G&&g.value&&!ie&&(Ce=p("span",{onMousedown:_e=>{_e.preventDefault(),_e.stopPropagation()},onMouseup:_e=>{_e.preventDefault(),_e.stopPropagation(),T(null),_(!1)},class:`${L}-clear`,role:"button"},[ue||p("span",{class:`${L}-clear-btn`},null)]));const Oe=m(m(m(m({id:H,tabindex:j,disabled:ie,readonly:Z||typeof u.value[0]=="function"||!M.value,value:N.value||O.value,onInput:_e=>{w(_e.target.value)},autofocus:q,placeholder:ae,ref:r,title:O.value},R.value),{size:vI(V,u.value[0],X)}),xI(e)),{autocomplete:be}),Me=e.inputRender?e.inputRender(Oe):p("input",Oe,null),Re=de==="rtl"?"bottomRight":"bottomLeft";return p("div",{ref:f,class:le(L,n.class,{[`${L}-disabled`]:ie,[`${L}-focused`]:z.value,[`${L}-rtl`]:de==="rtl"}),style:n.style,onMousedown:pe,onMouseup:A,onMouseenter:ge,onMouseleave:he,onContextmenu:me,onClick:xe},[p("div",{class:le(`${L}-input`,{[`${L}-input-placeholder`]:!!N.value}),ref:d},[Me,Se,Ce]),p(TI,{visible:S.value,popupStyle:U,prefixCls:L,dropdownClassName:Y,dropdownAlign:Q,getPopupContainer:ce,transitionName:ee,popupPlacement:Re,direction:de},{default:()=>[p("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>Ae})])}}})}const UG=XG();function YG(e,t){let{picker:n,locale:o,selectedValue:r,disabledDate:i,disabled:l,generateConfig:a}=e;const s=P(()=>vt(r.value,0)),u=P(()=>vt(r.value,1));function c(h){return a.value.locale.getWeekFirstDate(o.value.locale,h)}function d(h){const b=a.value.getYear(h),y=a.value.getMonth(h);return b*100+y}function f(h){const b=a.value.getYear(h),y=em(a.value,h);return b*10+y}return[h=>{var b;if(i&&(!((b=i?.value)===null||b===void 0)&&b.call(i,h)))return!0;if(l[1]&&u)return!Br(a.value,h,u.value)&&a.value.isAfter(h,u.value);if(t.value[1]&&u.value)switch(n.value){case"quarter":return f(h)>f(u.value);case"month":return d(h)>d(u.value);case"week":return c(h)>c(u.value);default:return!Br(a.value,h,u.value)&&a.value.isAfter(h,u.value)}return!1},h=>{var b;if(!((b=i.value)===null||b===void 0)&&b.call(i,h))return!0;if(l[0]&&s)return!Br(a.value,h,u.value)&&a.value.isAfter(s.value,h);if(t.value[0]&&s.value)switch(n.value){case"quarter":return f(h)AG(o,l,a));case"quarter":case"month":return i((l,a)=>zp(o,l,a));default:return i((l,a)=>jb(o,l,a))}}function ZG(e,t,n,o){const r=vt(e,0),i=vt(e,1);if(t===0)return r;if(r&&i)switch(qG(r,i,n,o)){case"same":return r;case"closing":return r;default:return ks(i,n,o,-1)}return r}function QG(e){let{values:t,picker:n,defaultDates:o,generateConfig:r}=e;const i=re([vt(o,0),vt(o,1)]),l=re(null),a=P(()=>vt(t.value,0)),s=P(()=>vt(t.value,1)),u=g=>i.value[g]?i.value[g]:vt(l.value,g)||ZG(t.value,g,n.value,r.value)||a.value||s.value||r.value.getNow(),c=re(null),d=re(null);Le(()=>{c.value=u(0),d.value=u(1)});function f(g,v){if(g){let h=xo(l.value,g,v);i.value=xo(i.value,null,v)||[null,null];const b=(v+1)%2;vt(t.value,b)||(h=xo(h,g,b)),l.value=h}else(a.value||s.value)&&(l.value=null)}return[c,d,f]}function _I(e){return e0()?(X4(e),!0):!1}function JG(e){return typeof e=="function"?e():St(e)}function oy(e){var t;const n=JG(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function eX(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;pn()?je(e):t?e():ot(e)}function AI(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=ne(),o=()=>n.value=!!e();return o(),eX(o,t),n}var hh;const RI=typeof window<"u";RI&&(!((hh=window?.navigator)===null||hh===void 0)&&hh.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const DI=RI?window:void 0;var tX=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r2&&arguments[2]!==void 0?arguments[2]:{};const{window:o=DI}=n,r=tX(n,["window"]);let i;const l=AI(()=>o&&"ResizeObserver"in o),a=()=>{i&&(i.disconnect(),i=void 0)},s=ye(()=>oy(e),c=>{a(),l.value&&o&&c&&(i=new ResizeObserver(t),i.observe(c,r))},{immediate:!0,flush:"post"}),u=()=>{a(),s()};return _I(u),{isSupported:l,stop:u}}function ds(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{width:0,height:0},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{box:o="content-box"}=n,r=ne(t.width),i=ne(t.height);return nX(e,l=>{let[a]=l;const s=o==="border-box"?a.borderBoxSize:o==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;s?(r.value=s.reduce((u,c)=>{let{inlineSize:d}=c;return u+d},0),i.value=s.reduce((u,c)=>{let{blockSize:d}=c;return u+d},0)):(r.value=a.contentRect.width,i.value=a.contentRect.height)},n),ye(()=>oy(e),l=>{r.value=l?t.width:0,i.value=l?t.height:0}),{width:r,height:i}}function mx(e,t){return e&&e[0]&&e[1]&&t.isAfter(e[0],e[1])?[e[1],e[0]]:e}function bx(e,t,n,o){return!!(e||o&&o[t]||n[(t+1)%2])}function oX(){return oe({name:"RangerPicker",inheritAttrs:!1,props:["prefixCls","id","popupStyle","dropdownClassName","transitionName","dropdownAlign","getPopupContainer","generateConfig","locale","placeholder","autofocus","disabled","format","picker","showTime","showNow","showHour","showMinute","showSecond","use12Hours","separator","value","defaultValue","defaultPickerValue","open","defaultOpen","disabledDate","disabledTime","dateRender","panelRender","ranges","allowEmpty","allowClear","suffixIcon","clearIcon","pickerRef","inputReadOnly","mode","renderExtraFooter","onChange","onOpenChange","onPanelChange","onCalendarChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onClick","onOk","onKeydown","components","order","direction","activePickerIndex","autocomplete","minuteStep","hourStep","secondStep","hideDisabledOptions","disabledMinutes","presets","prevIcon","nextIcon","superPrevIcon","superNextIcon"],setup(e,t){let{attrs:n,expose:o}=t;const r=P(()=>e.picker==="date"&&!!e.showTime||e.picker==="time"),i=P(()=>e.presets),l=P(()=>e.ranges),a=MI(i,l),s=re({}),u=re(null),c=re(null),d=re(null),f=re(null),g=re(null),v=re(null),h=re(null),b=re(null),y=P(()=>CI(hI(e.format,e.picker,e.showTime,e.use12Hours))),[S,$]=Pt(0,{value:ze(e,"activePickerIndex")}),x=re(null),C=P(()=>{const{disabled:Ee}=e;return Array.isArray(Ee)?Ee:[Ee||!1,Ee||!1]}),[O,w]=Pt(null,{value:ze(e,"value"),defaultValue:e.defaultValue,postState:Ee=>e.picker==="time"&&!e.order?Ee:mx(Ee,e.generateConfig)}),[I,T,_]=QG({values:O,picker:ze(e,"picker"),defaultDates:e.defaultPickerValue,generateConfig:ze(e,"generateConfig")}),[E,A]=Pt(O.value,{postState:Ee=>{let Ye=Ee;if(C.value[0]&&C.value[1])return Ye;for(let Ge=0;Ge<2;Ge+=1)C.value[Ge]&&!vt(Ye,Ge)&&!vt(e.allowEmpty,Ge)&&(Ye=xo(Ye,e.generateConfig.getNow(),Ge));return Ye}}),[R,z]=Pt([e.picker,e.picker],{value:ze(e,"mode")});ye(()=>e.picker,()=>{z([e.picker,e.picker])});const M=(Ee,Ye)=>{var Ge;z(Ee),(Ge=e.onPanelChange)===null||Ge===void 0||Ge.call(e,Ye,Ee)},[N,B]=YG({picker:ze(e,"picker"),selectedValue:E,locale:ze(e,"locale"),disabled:C,disabledDate:ze(e,"disabledDate"),generateConfig:ze(e,"generateConfig")},s),[k,F]=Pt(!1,{value:ze(e,"open"),defaultValue:e.defaultOpen,postState:Ee=>C.value[S.value]?!1:Ee,onChange:Ee=>{var Ye;(Ye=e.onOpenChange)===null||Ye===void 0||Ye.call(e,Ee),!Ee&&x.value&&x.value.onClose&&x.value.onClose()}}),L=P(()=>k.value&&S.value===0),H=P(()=>k.value&&S.value===1),j=re(0),Y=re(0),Q=re(0),{width:U}=ds(u);ye([k,U],()=>{!k.value&&u.value&&(Q.value=U.value)});const{width:ee}=ds(c),{width:X}=ds(b),{width:J}=ds(d),{width:Z}=ds(g);ye([S,k,ee,X,J,Z,()=>e.direction],()=>{Y.value=0,S.value?d.value&&g.value&&(Y.value=J.value+Z.value,ee.value&&X.value&&Y.value>ee.value-X.value-(e.direction==="rtl"||b.value.offsetLeft>Y.value?0:b.value.offsetLeft)&&(j.value=Y.value)):S.value===0&&(j.value=0)},{immediate:!0});const G=re();function q(Ee,Ye){if(Ee)clearTimeout(G.value),s.value[Ye]=!0,$(Ye),F(Ee),k.value||_(null,Ye);else if(S.value===Ye){F(Ee);const Ge=s.value;G.value=setTimeout(()=>{Ge===s.value&&(s.value={})})}}function V(Ee){q(!0,Ee),setTimeout(()=>{const Ye=[v,h][Ee];Ye.value&&Ye.value.focus()},0)}function K(Ee,Ye){let Ge=Ee,$t=vt(Ge,0),en=vt(Ge,1);const{generateConfig:Ht,locale:Xn,picker:hn,order:tr,onCalendarChange:eo,allowEmpty:mo,onChange:Rt,showTime:Bo}=e;$t&&en&&Ht.isAfter($t,en)&&(hn==="week"&&!yI(Ht,Xn.locale,$t,en)||hn==="quarter"&&!bI(Ht,$t,en)||hn!=="week"&&hn!=="quarter"&&hn!=="time"&&!(Bo?ha(Ht,$t,en):Br(Ht,$t,en))?(Ye===0?(Ge=[$t,null],en=null):($t=null,Ge=[null,en]),s.value={[Ye]:!0}):(hn!=="time"||tr!==!1)&&(Ge=mx(Ge,Ht))),A(Ge);const bo=Ge&&Ge[0]?bn(Ge[0],{generateConfig:Ht,locale:Xn,format:y.value[0]}):"",Qr=Ge&&Ge[1]?bn(Ge[1],{generateConfig:Ht,locale:Xn,format:y.value[0]}):"";eo&&eo(Ge,[bo,Qr],{range:Ye===0?"start":"end"});const Jr=bx($t,0,C.value,mo),ko=bx(en,1,C.value,mo);(Ge===null||Jr&&ko)&&(w(Ge),Rt&&(!ha(Ht,vt(O.value,0),$t)||!ha(Ht,vt(O.value,1),en))&&Rt(Ge,[bo,Qr]));let Fo=null;Ye===0&&!C.value[1]?Fo=1:Ye===1&&!C.value[0]&&(Fo=0),Fo!==null&&Fo!==S.value&&(!s.value[Fo]||!vt(Ge,Fo))&&vt(Ge,Ye)?V(Fo):q(!1,Ye)}const te=Ee=>k&&x.value&&x.value.onKeydown?x.value.onKeydown(Ee):!1,ue={formatList:y,generateConfig:ze(e,"generateConfig"),locale:ze(e,"locale")},[ie,ae]=mf(P(()=>vt(E.value,0)),ue),[ce,se]=mf(P(()=>vt(E.value,1)),ue),pe=(Ee,Ye)=>{const Ge=SI(Ee,{locale:e.locale,formatList:y.value,generateConfig:e.generateConfig});Ge&&!(Ye===0?N:B)(Ge)&&(A(xo(E.value,Ge,Ye)),_(Ge,Ye))},[ge,he,me]=rm({valueTexts:ie,onTextChange:Ee=>pe(Ee,0)}),[xe,fe,de]=rm({valueTexts:ce,onTextChange:Ee=>pe(Ee,1)}),[be,we]=ht(null),[Ie,Ae]=ht(null),[Se,Ce,Oe]=im(ge,ue),[Me,Re,_e]=im(xe,ue),Be=Ee=>{Ae(xo(E.value,Ee,S.value)),S.value===0?Ce(Ee):Re(Ee)},et=()=>{Ae(xo(E.value,null,S.value)),S.value===0?Oe():_e()},dt=(Ee,Ye)=>({forwardKeydown:te,onBlur:Ge=>{var $t;($t=e.onBlur)===null||$t===void 0||$t.call(e,Ge)},isClickOutside:Ge=>!mI([c.value,d.value,f.value,u.value],Ge),onFocus:Ge=>{var $t;$(Ee),($t=e.onFocus)===null||$t===void 0||$t.call(e,Ge)},triggerOpen:Ge=>{q(Ge,Ee)},onSubmit:()=>{if(!E.value||e.disabledDate&&e.disabledDate(E.value[Ee]))return!1;K(E.value,Ee),Ye()},onCancel:()=>{q(!1,Ee),A(O.value),Ye()}}),[it,{focused:ft,typing:gt}]=om(m(m({},dt(0,me)),{blurToCancel:r,open:L,value:ge,onKeydown:(Ee,Ye)=>{var Ge;(Ge=e.onKeydown)===null||Ge===void 0||Ge.call(e,Ee,Ye)}})),[Ut,{focused:Jt,typing:on}]=om(m(m({},dt(1,de)),{blurToCancel:r,open:H,value:xe,onKeydown:(Ee,Ye)=>{var Ge;(Ge=e.onKeydown)===null||Ge===void 0||Ge.call(e,Ee,Ye)}})),zt=Ee=>{var Ye;(Ye=e.onClick)===null||Ye===void 0||Ye.call(e,Ee),!k.value&&!v.value.contains(Ee.target)&&!h.value.contains(Ee.target)&&(C.value[0]?C.value[1]||V(1):V(0))},Cn=Ee=>{var Ye;(Ye=e.onMousedown)===null||Ye===void 0||Ye.call(e,Ee),k.value&&(ft.value||Jt.value)&&!v.value.contains(Ee.target)&&!h.value.contains(Ee.target)&&Ee.preventDefault()},Kn=P(()=>{var Ee;return!((Ee=O.value)===null||Ee===void 0)&&Ee[0]?bn(O.value[0],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""}),vo=P(()=>{var Ee;return!((Ee=O.value)===null||Ee===void 0)&&Ee[1]?bn(O.value[1],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""});ye([k,ie,ce],()=>{k.value||(A(O.value),!ie.value.length||ie.value[0]===""?he(""):ae.value!==ge.value&&me(),!ce.value.length||ce.value[0]===""?fe(""):se.value!==xe.value&&de())}),ye([Kn,vo],()=>{A(O.value)}),o({focus:()=>{v.value&&v.value.focus()},blur:()=>{v.value&&v.value.blur(),h.value&&h.value.blur()}});const No=P(()=>k.value&&Ie.value&&Ie.value[0]&&Ie.value[1]&&e.generateConfig.isAfter(Ie.value[1],Ie.value[0])?Ie.value:null);function Gn(){let Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{generateConfig:Ge,showTime:$t,dateRender:en,direction:Ht,disabledTime:Xn,prefixCls:hn,locale:tr}=e;let eo=$t;if($t&&typeof $t=="object"&&$t.defaultValue){const Rt=$t.defaultValue;eo=m(m({},$t),{defaultValue:vt(Rt,S.value)||void 0})}let mo=null;return en&&(mo=Rt=>{let{current:Bo,today:bo}=Rt;return en({current:Bo,today:bo,info:{range:S.value?"end":"start"}})}),p(LG,{value:{inRange:!0,panelPosition:Ee,rangedValue:be.value||E.value,hoverRangedValue:No.value}},{default:()=>[p(ny,D(D(D({},e),Ye),{},{dateRender:mo,showTime:eo,mode:R.value[S.value],generateConfig:Ge,style:void 0,direction:Ht,disabledDate:S.value===0?N:B,disabledTime:Rt=>Xn?Xn(Rt,S.value===0?"start":"end"):!1,class:le({[`${hn}-panel-focused`]:S.value===0?!gt.value:!on.value}),value:vt(E.value,S.value),locale:tr,tabIndex:-1,onPanelChange:(Rt,Bo)=>{S.value===0&&Oe(!0),S.value===1&&_e(!0),M(xo(R.value,Bo,S.value),xo(E.value,Rt,S.value));let bo=Rt;Ee==="right"&&R.value[S.value]===Bo&&(bo=ks(bo,Bo,Ge,-1)),_(bo,S.value)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:S.value===0?vt(E.value,1):vt(E.value,0)}),null)]})}const ki=(Ee,Ye)=>{const Ge=xo(E.value,Ee,S.value);Ye==="submit"||Ye!=="key"&&!r.value?(K(Ge,S.value),S.value===0?Oe():_e()):A(Ge)};return Fb({operationRef:x,hideHeader:P(()=>e.picker==="time"),onDateMouseenter:Be,onDateMouseleave:et,hideRanges:P(()=>!0),onSelect:ki,open:k}),()=>{const{prefixCls:Ee="rc-picker",id:Ye,popupStyle:Ge,dropdownClassName:$t,transitionName:en,dropdownAlign:Ht,getPopupContainer:Xn,generateConfig:hn,locale:tr,placeholder:eo,autofocus:mo,picker:Rt="date",showTime:Bo,separator:bo="~",disabledDate:Qr,panelRender:Jr,allowClear:ko,suffixIcon:Ll,clearIcon:Fo,inputReadOnly:Sg,renderExtraFooter:DE,onMouseenter:NE,onMouseleave:BE,onMouseup:kE,onOk:M1,components:FE,direction:ns,autocomplete:_1="off"}=e,LE=ns==="rtl"?{right:`${Y.value}px`}:{left:`${Y.value}px`};function zE(){let Un;const ei=PI(Ee,R.value[S.value],DE),N1=II({prefixCls:Ee,components:FE,needConfirmButton:r.value,okDisabled:!vt(E.value,S.value)||Qr&&Qr(E.value[S.value]),locale:tr,onOk:()=>{vt(E.value,S.value)&&(K(E.value,S.value),M1&&M1(E.value))}});if(Rt!=="time"&&!Bo){const ti=S.value===0?I.value:T.value,VE=ks(ti,Rt,hn),wg=R.value[S.value]===Rt,B1=Gn(wg?"left":!1,{pickerValue:ti,onPickerValueChange:Og=>{_(Og,S.value)}}),k1=Gn("right",{pickerValue:VE,onPickerValueChange:Og=>{_(ks(Og,Rt,hn,-1),S.value)}});ns==="rtl"?Un=p(Ve,null,[k1,wg&&B1]):Un=p(Ve,null,[B1,wg&&k1])}else Un=Gn();let xg=p("div",{class:`${Ee}-panel-layout`},[p(EI,{prefixCls:Ee,presets:a.value,onClick:ti=>{K(ti,null),q(!1,S.value)},onHover:ti=>{we(ti)}},null),p("div",null,[p("div",{class:`${Ee}-panels`},[Un]),(ei||N1)&&p("div",{class:`${Ee}-footer`},[ei,N1])])]);return Jr&&(xg=Jr(xg)),p("div",{class:`${Ee}-panel-container`,style:{marginLeft:`${j.value}px`},ref:c,onMousedown:ti=>{ti.preventDefault()}},[xg])}const HE=p("div",{class:le(`${Ee}-range-wrapper`,`${Ee}-${Rt}-range-wrapper`),style:{minWidth:`${Q.value}px`}},[p("div",{ref:b,class:`${Ee}-range-arrow`,style:LE},null),zE()]);let A1;Ll&&(A1=p("span",{class:`${Ee}-suffix`},[Ll]));let R1;ko&&(vt(O.value,0)&&!C.value[0]||vt(O.value,1)&&!C.value[1])&&(R1=p("span",{onMousedown:Un=>{Un.preventDefault(),Un.stopPropagation()},onMouseup:Un=>{Un.preventDefault(),Un.stopPropagation();let ei=O.value;C.value[0]||(ei=xo(ei,null,0)),C.value[1]||(ei=xo(ei,null,1)),K(ei,null),q(!1,S.value)},class:`${Ee}-clear`},[Fo||p("span",{class:`${Ee}-clear-btn`},null)]));const D1={size:vI(Rt,y.value[0],hn)};let $g=0,Cg=0;d.value&&f.value&&g.value&&(S.value===0?Cg=d.value.offsetWidth:($g=Y.value,Cg=f.value.offsetWidth));const jE=ns==="rtl"?{right:`${$g}px`}:{left:`${$g}px`};return p("div",D({ref:u,class:le(Ee,`${Ee}-range`,n.class,{[`${Ee}-disabled`]:C.value[0]&&C.value[1],[`${Ee}-focused`]:S.value===0?ft.value:Jt.value,[`${Ee}-rtl`]:ns==="rtl"}),style:n.style,onClick:zt,onMouseenter:NE,onMouseleave:BE,onMousedown:Cn,onMouseup:kE},xI(e)),[p("div",{class:le(`${Ee}-input`,{[`${Ee}-input-active`]:S.value===0,[`${Ee}-input-placeholder`]:!!Se.value}),ref:d},[p("input",D(D(D({id:Ye,disabled:C.value[0],readonly:Sg||typeof y.value[0]=="function"||!gt.value,value:Se.value||ge.value,onInput:Un=>{he(Un.target.value)},autofocus:mo,placeholder:vt(eo,0)||"",ref:v},it.value),D1),{},{autocomplete:_1}),null)]),p("div",{class:`${Ee}-range-separator`,ref:g},[bo]),p("div",{class:le(`${Ee}-input`,{[`${Ee}-input-active`]:S.value===1,[`${Ee}-input-placeholder`]:!!Me.value}),ref:f},[p("input",D(D(D({disabled:C.value[1],readonly:Sg||typeof y.value[0]=="function"||!on.value,value:Me.value||xe.value,onInput:Un=>{fe(Un.target.value)},placeholder:vt(eo,1)||"",ref:h},Ut.value),D1),{},{autocomplete:_1}),null)]),p("div",{class:`${Ee}-active-bar`,style:m(m({},jE),{width:`${Cg}px`,position:"absolute"})},null),A1,R1,p(TI,{visible:k.value,popupStyle:Ge,prefixCls:Ee,dropdownClassName:$t,dropdownAlign:Ht,getPopupContainer:Xn,transitionName:en,range:!0,direction:ns},{default:()=>[p("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>HE})])}}})}const rX=oX();var iX=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.checked,()=>{i.value=e.checked}),r({focus(){var c;(c=l.value)===null||c===void 0||c.focus()},blur(){var c;(c=l.value)===null||c===void 0||c.blur()}});const a=re(),s=c=>{if(e.disabled)return;e.checked===void 0&&(i.value=c.target.checked),c.shiftKey=a.value;const d={target:m(m({},e),{checked:c.target.checked}),stopPropagation(){c.stopPropagation()},preventDefault(){c.preventDefault()},nativeEvent:c};e.checked!==void 0&&(l.value.checked=!!e.checked),o("change",d),a.value=!1},u=c=>{o("click",c),a.value=c.shiftKey};return()=>{const{prefixCls:c,name:d,id:f,type:g,disabled:v,readonly:h,tabindex:b,autofocus:y,value:S,required:$}=e,x=iX(e,["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"]),{class:C,onFocus:O,onBlur:w,onKeydown:I,onKeypress:T,onKeyup:_}=n,E=m(m({},x),n),A=Object.keys(E).reduce((M,N)=>((N.startsWith("data-")||N.startsWith("aria-")||N==="role")&&(M[N]=E[N]),M),{}),R=le(c,C,{[`${c}-checked`]:i.value,[`${c}-disabled`]:v}),z=m(m({name:d,id:f,type:g,readonly:h,disabled:v,tabindex:b,class:`${c}-input`,checked:!!i.value,autofocus:y,value:S},A),{onChange:s,onClick:u,onFocus:O,onBlur:w,onKeydown:I,onKeypress:T,onKeyup:_,required:$});return p("span",{class:R},[p("input",D({ref:l},z),null),p("span",{class:`${c}-inner`},null)])}}}),BI=Symbol("radioGroupContextKey"),aX=e=>{Xe(BI,e)},sX=()=>He(BI,void 0),kI=Symbol("radioOptionTypeContextKey"),cX=e=>{Xe(kI,e)},uX=()=>He(kI,void 0),dX=new nt("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),fX=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-group`;return{[o]:m(m({},Ue(e)),{display:"inline-block",fontSize:0,[`&${o}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},pX=e=>{const{componentCls:t,radioWrapperMarginRight:n,radioCheckedColor:o,radioSize:r,motionDurationSlow:i,motionDurationMid:l,motionEaseInOut:a,motionEaseInOutCirc:s,radioButtonBg:u,colorBorder:c,lineWidth:d,radioDotSize:f,colorBgContainerDisabled:g,colorTextDisabled:v,paddingXS:h,radioDotDisabledColor:b,lineType:y,radioDotDisabledSize:S,wireframe:$,colorWhite:x}=e,C=`${t}-inner`;return{[`${t}-wrapper`]:m(m({},Ue(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${d}px ${y} ${o}`,borderRadius:"50%",visibility:"hidden",animationName:dX,animationDuration:i,animationTimingFunction:a,animationFillMode:"both",content:'""'},[t]:m(m({},Ue(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &, + &:hover ${C}`]:{borderColor:o},[`${t}-input:focus-visible + ${C}`]:m({},Wr(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:r,height:r,marginBlockStart:r/-2,marginInlineStart:r/-2,backgroundColor:$?o:x,borderBlockStart:0,borderInlineStart:0,borderRadius:r,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:r,height:r,backgroundColor:u,borderColor:c,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${l}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[C]:{borderColor:o,backgroundColor:$?u:o,"&::after":{transform:`scale(${f/r})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[C]:{backgroundColor:g,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:b}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${t}-checked`]:{[C]:{"&::after":{transform:`scale(${S/r})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},gX=e=>{const{radioButtonColor:t,controlHeight:n,componentCls:o,lineWidth:r,lineType:i,colorBorder:l,motionDurationSlow:a,motionDurationMid:s,radioButtonPaddingHorizontal:u,fontSize:c,radioButtonBg:d,fontSizeLG:f,controlHeightLG:g,controlHeightSM:v,paddingXS:h,borderRadius:b,borderRadiusSM:y,borderRadiusLG:S,radioCheckedColor:$,radioButtonCheckedBg:x,radioButtonHoverColor:C,radioButtonActiveColor:O,radioSolidCheckedColor:w,colorTextDisabled:I,colorBgContainerDisabled:T,radioDisabledButtonCheckedColor:_,radioDisabledButtonCheckedBg:E}=e;return{[`${o}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:c,lineHeight:`${n-r*2}px`,background:d,border:`${r}px ${i} ${l}`,borderBlockStartWidth:r+.02,borderInlineStartWidth:0,borderInlineEndWidth:r,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`border-color ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${o}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-r,insetInlineStart:-r,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:r,paddingInline:0,backgroundColor:l,transition:`background-color ${a}`,content:'""'}},"&:first-child":{borderInlineStart:`${r}px ${i} ${l}`,borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b},"&:first-child:last-child":{borderRadius:b},[`${o}-group-large &`]:{height:g,fontSize:f,lineHeight:`${g-r*2}px`,"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},[`${o}-group-small &`]:{height:v,paddingInline:h-r,paddingBlock:0,lineHeight:`${v-r*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:$},"&:has(:focus-visible)":m({},Wr(e)),[`${o}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${o}-button-wrapper-disabled)`]:{zIndex:1,color:$,background:x,borderColor:$,"&::before":{backgroundColor:$},"&:first-child":{borderColor:$},"&:hover":{color:C,borderColor:C,"&::before":{backgroundColor:C}},"&:active":{color:O,borderColor:O,"&::before":{backgroundColor:O}}},[`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]:{color:w,background:$,borderColor:$,"&:hover":{color:w,background:C,borderColor:C},"&:active":{color:w,background:O,borderColor:O}},"&-disabled":{color:I,backgroundColor:T,borderColor:l,cursor:"not-allowed","&:first-child, &:hover":{color:I,backgroundColor:T,borderColor:l}},[`&-disabled${o}-button-wrapper-checked`]:{color:_,backgroundColor:E,borderColor:l,boxShadow:"none"}}}},FI=Ke("Radio",e=>{const{padding:t,lineWidth:n,controlItemBgActiveDisabled:o,colorTextDisabled:r,colorBgContainer:i,fontSizeLG:l,controlOutline:a,colorPrimaryHover:s,colorPrimaryActive:u,colorText:c,colorPrimary:d,marginXS:f,controlOutlineWidth:g,colorTextLightSolid:v,wireframe:h}=e,b=`0 0 0 ${g}px ${a}`,y=b,S=l,$=4,x=S-$*2,C=h?x:S-($+n)*2,O=d,w=c,I=s,T=u,_=t-n,R=ke(e,{radioFocusShadow:b,radioButtonFocusShadow:y,radioSize:S,radioDotSize:C,radioDotDisabledSize:x,radioCheckedColor:O,radioDotDisabledColor:r,radioSolidCheckedColor:v,radioButtonBg:i,radioButtonCheckedBg:i,radioButtonColor:w,radioButtonHoverColor:I,radioButtonActiveColor:T,radioButtonPaddingHorizontal:_,radioDisabledButtonCheckedBg:o,radioDisabledButtonCheckedColor:r,radioWrapperMarginRight:f});return[fX(R),pX(R),gX(R)]});var hX=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,checked:$e(),disabled:$e(),isGroup:$e(),value:W.any,name:String,id:String,autofocus:$e(),onChange:ve(),onFocus:ve(),onBlur:ve(),onClick:ve(),"onUpdate:checked":ve(),"onUpdate:value":ve()}),Fn=oe({compatConfig:{MODE:3},name:"ARadio",inheritAttrs:!1,props:LI(),setup(e,t){let{emit:n,expose:o,slots:r,attrs:i}=t;const l=Qt(),a=dn.useInject(),s=uX(),u=sX(),c=Jn(),d=P(()=>{var I;return(I=h.value)!==null&&I!==void 0?I:c.value}),f=re(),{prefixCls:g,direction:v,disabled:h}=Te("radio",e),b=P(()=>u?.optionType.value==="button"||s==="button"?`${g.value}-button`:g.value),y=Jn(),[S,$]=FI(g);o({focus:()=>{f.value.focus()},blur:()=>{f.value.blur()}});const O=I=>{const T=I.target.checked;n("update:checked",T),n("update:value",T),n("change",I),l.onFieldChange()},w=I=>{n("change",I),u&&u.onChange&&u.onChange(I)};return()=>{var I;const T=u,{prefixCls:_,id:E=l.id.value}=e,A=hX(e,["prefixCls","id"]),R=m(m({prefixCls:b.value,id:E},tt(A,["onUpdate:checked","onUpdate:value"])),{disabled:(I=h.value)!==null&&I!==void 0?I:y.value});T?(R.name=T.name.value,R.onChange=w,R.checked=e.value===T.value.value,R.disabled=d.value||T.disabled.value):R.onChange=O;const z=le({[`${b.value}-wrapper`]:!0,[`${b.value}-wrapper-checked`]:R.checked,[`${b.value}-wrapper-disabled`]:R.disabled,[`${b.value}-wrapper-rtl`]:v.value==="rtl",[`${b.value}-wrapper-in-form-item`]:a.isFormItemInput},i.class,$.value);return S(p("label",D(D({},i),{},{class:z}),[p(NI,D(D({},R),{},{type:"radio",ref:f}),null),r.default&&p("span",null,[r.default()])]))}}}),vX=()=>({prefixCls:String,value:W.any,size:Ne(),options:lt(),disabled:$e(),name:String,buttonStyle:Ne("outline"),id:String,optionType:Ne("default"),onChange:ve(),"onUpdate:value":ve()}),ry=oe({compatConfig:{MODE:3},name:"ARadioGroup",inheritAttrs:!1,props:vX(),setup(e,t){let{slots:n,emit:o,attrs:r}=t;const i=Qt(),{prefixCls:l,direction:a,size:s}=Te("radio",e),[u,c]=FI(l),d=re(e.value),f=re(!1);return ye(()=>e.value,v=>{d.value=v,f.value=!1}),aX({onChange:v=>{const h=d.value,{value:b}=v.target;"value"in e||(d.value=b),!f.value&&b!==h&&(f.value=!0,o("update:value",b),o("change",v),i.onFieldChange()),ot(()=>{f.value=!1})},value:d,disabled:P(()=>e.disabled),name:P(()=>e.name),optionType:P(()=>e.optionType)}),()=>{var v;const{options:h,buttonStyle:b,id:y=i.id.value}=e,S=`${l.value}-group`,$=le(S,`${S}-${b}`,{[`${S}-${s.value}`]:s.value,[`${S}-rtl`]:a.value==="rtl"},r.class,c.value);let x=null;return h&&h.length>0?x=h.map(C=>{if(typeof C=="string"||typeof C=="number")return p(Fn,{key:C,prefixCls:l.value,disabled:e.disabled,value:C,checked:d.value===C},{default:()=>[C]});const{value:O,disabled:w,label:I}=C;return p(Fn,{key:`radio-group-value-options-${O}`,prefixCls:l.value,disabled:w||e.disabled,value:O,checked:d.value===O},{default:()=>[I]})}):x=(v=n.default)===null||v===void 0?void 0:v.call(n),u(p("div",D(D({},r),{},{class:$,id:y}),[x]))}}}),bf=oe({compatConfig:{MODE:3},name:"ARadioButton",inheritAttrs:!1,props:LI(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r}=Te("radio",e);return cX("button"),()=>{var i;return p(Fn,D(D(D({},o),e),{},{prefixCls:r.value}),{default:()=>[(i=n.default)===null||i===void 0?void 0:i.call(n)]})}}});Fn.Group=ry;Fn.Button=bf;Fn.install=function(e){return e.component(Fn.name,Fn),e.component(Fn.Group.name,Fn.Group),e.component(Fn.Button.name,Fn.Button),e};const mX=10,bX=20;function zI(e){const{fullscreen:t,validRange:n,generateConfig:o,locale:r,prefixCls:i,value:l,onChange:a,divRef:s}=e,u=o.getYear(l||o.getNow());let c=u-mX,d=c+bX;n&&(c=o.getYear(n[0]),d=o.getYear(n[1])+1);const f=r&&r.year==="年"?"年":"",g=[];for(let v=c;v{let h=o.setYear(l,v);if(n){const[b,y]=n,S=o.getYear(h),$=o.getMonth(h);S===o.getYear(y)&&$>o.getMonth(y)&&(h=o.setMonth(h,o.getMonth(y))),S===o.getYear(b)&&$s.value},null)}zI.inheritAttrs=!1;function HI(e){const{prefixCls:t,fullscreen:n,validRange:o,value:r,generateConfig:i,locale:l,onChange:a,divRef:s}=e,u=i.getMonth(r||i.getNow());let c=0,d=11;if(o){const[v,h]=o,b=i.getYear(r);i.getYear(h)===b&&(d=i.getMonth(h)),i.getYear(v)===b&&(c=i.getMonth(v))}const f=l.shortMonths||i.locale.getShortMonths(l.locale),g=[];for(let v=c;v<=d;v+=1)g.push({label:f[v],value:v});return p(gn,{size:n?void 0:"small",class:`${t}-month-select`,value:u,options:g,onChange:v=>{a(i.setMonth(r,v))},getPopupContainer:()=>s.value},null)}HI.inheritAttrs=!1;function jI(e){const{prefixCls:t,locale:n,mode:o,fullscreen:r,onModeChange:i}=e;return p(ry,{onChange:l=>{let{target:{value:a}}=l;i(a)},value:o,size:r?void 0:"small",class:`${t}-mode-switch`},{default:()=>[p(bf,{value:"month"},{default:()=>[n.month]}),p(bf,{value:"year"},{default:()=>[n.year]})]})}jI.inheritAttrs=!1;const yX=oe({name:"CalendarHeader",inheritAttrs:!1,props:["mode","prefixCls","value","validRange","generateConfig","locale","mode","fullscreen"],setup(e,t){let{attrs:n}=t;const o=re(null),r=dn.useInject();return dn.useProvide(r,{isFormItemInput:!1}),()=>{const i=m(m({},e),n),{prefixCls:l,fullscreen:a,mode:s,onChange:u,onModeChange:c}=i,d=m(m({},i),{fullscreen:a,divRef:o});return p("div",{class:`${l}-header`,ref:o},[p(zI,D(D({},d),{},{onChange:f=>{u(f,"year")}}),null),s==="month"&&p(HI,D(D({},d),{},{onChange:f=>{u(f,"month")}}),null),p(jI,D(D({},d),{},{onModeChange:c}),null)])}}}),iy=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),qa=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),Pi=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),ly=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":m({},qa(ke(e,{inputBorderHoverColor:e.colorBorder})))}),VI=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:n,lineHeightLG:o,borderRadiusLG:r,inputPaddingHorizontalLG:i}=e;return{padding:`${t}px ${i}px`,fontSize:n,lineHeight:o,borderRadius:r}},ay=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),Bc=(e,t)=>{const{componentCls:n,colorError:o,colorWarning:r,colorErrorOutline:i,colorWarningOutline:l,colorErrorBorderHover:a,colorWarningBorderHover:s}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:o,"&:hover":{borderColor:a},"&:focus, &-focused":m({},Pi(ke(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:i}))),[`${n}-prefix`]:{color:o}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":m({},Pi(ke(e,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:l}))),[`${n}-prefix`]:{color:r}}}},kl=e=>m(m({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},iy(e.colorTextPlaceholder)),{"&:hover":m({},qa(e)),"&:focus, &-focused":m({},Pi(e)),"&-disabled, &[disabled]":m({},ly(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":m({},VI(e)),"&-sm":m({},ay(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),WI=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`]:m({},VI(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:m({},ay(e)),[`> ${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 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:e.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{float:"inline-start",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`]:m(m({display:"block"},Xo()),{[`${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},[`& > ${t}-affix-wrapper`]:{display:"inline-flex"},[`& > ${n}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector, & > ${n}-select-auto-complete ${t}, & > ${n}-cascader-picker ${t}, & > ${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, @@ -245,16 +245,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho tr > &-in-view${n}-range-hover-start:last-child::after, &-in-view${n}-end${n}-range-hover-edge-end${n}-range-hover-edge-end-near-range::after, &-in-view${n}-range-hover-edge-end:not(${n}-range-hover-edge-end-near-range)::after, - &-in-view${n}-range-hover-end::after`]:{insetInlineEnd:(S-r)/2,borderInlineEnd:`${u}px dashed ${h}`,borderStartEndRadius:u,borderEndEndRadius:u},"&-disabled":{color:$,pointerEvents:"none",[o]:{background:"transparent"},"&::before":{background:x}},[`&-disabled${n}-today ${o}::before`]:{borderColor:$}}},KI=e=>{const{componentCls:t,pickerCellInnerCls:n,pickerYearMonthCellWidth:o,pickerControlIconSize:r,pickerPanelCellWidth:i,paddingSM:l,paddingXS:a,paddingXXS:s,colorBgContainer:u,lineWidth:c,lineType:d,borderRadiusLG:f,colorPrimary:g,colorTextHeading:v,colorSplit:h,pickerControlIconBorderWidth:b,colorIcon:y,pickerTextHeight:S,motionDurationMid:$,colorIconHover:x,fontWeightStrong:C,pickerPanelCellHeight:O,pickerCellPaddingVertical:w,colorTextDisabled:I,colorText:T,fontSize:M,pickerBasicCellHoverWithRangeColor:E,motionDurationSlow:A,pickerPanelWithoutTimeCellHeight:R,pickerQuarterPanelContentHeight:z,colorLink:_,colorLinkActive:N,colorLinkHover:B,pickerDateHoverRangeBorderColor:k,borderRadiusSM:F,colorTextLightSolid:L,borderRadius:H,controlItemBgHover:j,pickerTimePanelColumnHeight:Y,pickerTimePanelColumnWidth:Q,pickerTimePanelCellHeight:U,controlItemBgActive:ee,marginXXS:X}=e,J=i*7+l*2+4,Z=(J-a*2)/3-o-l;return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,border:`${c}px ${d} ${h}`,borderRadius:f,outline:"none","&-focused":{borderColor:g},"&-rtl":{direction:"rtl",[`${t}-prev-icon, + &-in-view${n}-range-hover-end::after`]:{insetInlineEnd:(S-r)/2,borderInlineEnd:`${u}px dashed ${h}`,borderStartEndRadius:u,borderEndEndRadius:u},"&-disabled":{color:$,pointerEvents:"none",[o]:{background:"transparent"},"&::before":{background:x}},[`&-disabled${n}-today ${o}::before`]:{borderColor:$}}},KI=e=>{const{componentCls:t,pickerCellInnerCls:n,pickerYearMonthCellWidth:o,pickerControlIconSize:r,pickerPanelCellWidth:i,paddingSM:l,paddingXS:a,paddingXXS:s,colorBgContainer:u,lineWidth:c,lineType:d,borderRadiusLG:f,colorPrimary:g,colorTextHeading:v,colorSplit:h,pickerControlIconBorderWidth:b,colorIcon:y,pickerTextHeight:S,motionDurationMid:$,colorIconHover:x,fontWeightStrong:C,pickerPanelCellHeight:O,pickerCellPaddingVertical:w,colorTextDisabled:I,colorText:T,fontSize:_,pickerBasicCellHoverWithRangeColor:E,motionDurationSlow:A,pickerPanelWithoutTimeCellHeight:R,pickerQuarterPanelContentHeight:z,colorLink:M,colorLinkActive:N,colorLinkHover:B,pickerDateHoverRangeBorderColor:k,borderRadiusSM:F,colorTextLightSolid:L,borderRadius:H,controlItemBgHover:j,pickerTimePanelColumnHeight:Y,pickerTimePanelColumnWidth:Q,pickerTimePanelCellHeight:U,controlItemBgActive:ee,marginXXS:X}=e,J=i*7+l*2+4,Z=(J-a*2)/3-o-l;return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,border:`${c}px ${d} ${h}`,borderRadius:f,outline:"none","&-focused":{borderColor:g},"&-rtl":{direction:"rtl",[`${t}-prev-icon, ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, - ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:J},"&-header":{display:"flex",padding:`0 ${a}px`,color:v,borderBottom:`${c}px ${d} ${h}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:`${S}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${$}`},"> button":{minWidth:"1.6em",fontSize:M,"&:hover":{color:x}},"&-view":{flex:"auto",fontWeight:C,lineHeight:`${S}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:a},"&:hover":{color:g}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:r,height:r,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:r,height:r,border:"0 solid currentcolor",borderBlockStartWidth:b,borderBlockEndWidth:0,borderInlineStartWidth:b,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(r/2),insetInlineStart:Math.ceil(r/2),display:"inline-block",width:r,height:r,border:"0 solid currentcolor",borderBlockStartWidth:b,borderBlockEndWidth:0,borderInlineStartWidth:b,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:O,fontWeight:"normal"},th:{height:O+w*2,color:T,verticalAlign:"middle"}},"&-cell":m({padding:`${w}px 0`,color:I,cursor:"pointer","&-in-view":{color:T}},PX(e)),[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start ${n}, + ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:J},"&-header":{display:"flex",padding:`0 ${a}px`,color:v,borderBottom:`${c}px ${d} ${h}`,"> *":{flex:"none"},button:{padding:0,color:y,lineHeight:`${S}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${$}`},"> button":{minWidth:"1.6em",fontSize:_,"&:hover":{color:x}},"&-view":{flex:"auto",fontWeight:C,lineHeight:`${S}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:a},"&:hover":{color:g}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:r,height:r,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:r,height:r,border:"0 solid currentcolor",borderBlockStartWidth:b,borderBlockEndWidth:0,borderInlineStartWidth:b,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(r/2),insetInlineStart:Math.ceil(r/2),display:"inline-block",width:r,height:r,border:"0 solid currentcolor",borderBlockStartWidth:b,borderBlockEndWidth:0,borderInlineStartWidth:b,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:O,fontWeight:"normal"},th:{height:O+w*2,color:T,verticalAlign:"middle"}},"&-cell":m({padding:`${w}px 0`,color:I,cursor:"pointer","&-in-view":{color:T}},PX(e)),[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start ${n}, &-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:E,transition:`all ${A}`,content:'""'}},[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start - ${n}::after`]:{insetInlineEnd:-(i-O)/2,insetInlineStart:0},[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}::after`]:{insetInlineEnd:0,insetInlineStart:-(i-O)/2},[`&-range-hover${t}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:R*4},[n]:{padding:`0 ${a}px`}},"&-quarter-panel":{[`${t}-content`]:{height:z}},[`&-panel ${t}-footer`]:{borderTop:`${c}px ${d} ${h}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${S-2*c}px`,textAlign:"center","&-extra":{padding:`0 ${l}`,lineHeight:`${S-2*c}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${c}px ${d} ${h}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:_,"&:hover":{color:B},"&:active":{color:N},[`&${t}-today-btn-disabled`]:{color:I,cursor:"not-allowed"}},"&-decade-panel":{[n]:{padding:`0 ${a/2}px`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${a}px`},[n]:{width:o},[`${t}-cell-range-hover-start::after`]:{insetInlineStart:Z,borderInlineStart:`${c}px dashed ${k}`,borderStartStartRadius:F,borderBottomStartRadius:F,borderStartEndRadius:0,borderBottomEndRadius:0,[`${t}-panel-rtl &`]:{insetInlineEnd:Z,borderInlineEnd:`${c}px dashed ${k}`,borderStartStartRadius:0,borderBottomStartRadius:0,borderStartEndRadius:F,borderBottomEndRadius:F}},[`${t}-cell-range-hover-end::after`]:{insetInlineEnd:Z,borderInlineEnd:`${c}px dashed ${k}`,borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:H,borderEndEndRadius:H,[`${t}-panel-rtl &`]:{insetInlineStart:Z,borderInlineStart:`${c}px dashed ${k}`,borderStartStartRadius:H,borderEndStartRadius:H,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-week-panel":{[`${t}-body`]:{padding:`${a}px ${l}px`},[`${t}-cell`]:{[`&:hover ${n}, + ${n}::after`]:{insetInlineEnd:-(i-O)/2,insetInlineStart:0},[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${n}::after`]:{insetInlineEnd:0,insetInlineStart:-(i-O)/2},[`&-range-hover${t}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:R*4},[n]:{padding:`0 ${a}px`}},"&-quarter-panel":{[`${t}-content`]:{height:z}},[`&-panel ${t}-footer`]:{borderTop:`${c}px ${d} ${h}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${S-2*c}px`,textAlign:"center","&-extra":{padding:`0 ${l}`,lineHeight:`${S-2*c}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${c}px ${d} ${h}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:M,"&:hover":{color:B},"&:active":{color:N},[`&${t}-today-btn-disabled`]:{color:I,cursor:"not-allowed"}},"&-decade-panel":{[n]:{padding:`0 ${a/2}px`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${a}px`},[n]:{width:o},[`${t}-cell-range-hover-start::after`]:{insetInlineStart:Z,borderInlineStart:`${c}px dashed ${k}`,borderStartStartRadius:F,borderBottomStartRadius:F,borderStartEndRadius:0,borderBottomEndRadius:0,[`${t}-panel-rtl &`]:{insetInlineEnd:Z,borderInlineEnd:`${c}px dashed ${k}`,borderStartStartRadius:0,borderBottomStartRadius:0,borderStartEndRadius:F,borderBottomEndRadius:F}},[`${t}-cell-range-hover-end::after`]:{insetInlineEnd:Z,borderInlineEnd:`${c}px dashed ${k}`,borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:H,borderEndEndRadius:H,[`${t}-panel-rtl &`]:{insetInlineStart:Z,borderInlineStart:`${c}px dashed ${k}`,borderStartStartRadius:H,borderEndStartRadius:H,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-week-panel":{[`${t}-body`]:{padding:`${a}px ${l}px`},[`${t}-cell`]:{[`&:hover ${n}, &-selected ${n}, ${n}`]:{background:"transparent !important"}},"&-row":{td:{transition:`background ${$}`,"&:first-child":{borderStartStartRadius:F,borderEndStartRadius:F},"&:last-child":{borderStartEndRadius:F,borderEndEndRadius:F}},"&:hover td":{background:j},"&-selected td,\n &-selected:hover td":{background:g,[`&${t}-cell-week`]:{color:new pt(L).setAlpha(.5).toHexString()},[`&${t}-cell-today ${n}::before`]:{borderColor:L},[n]:{color:L}}}},"&-date-panel":{[`${t}-body`]:{padding:`${a}px ${l}px`},[`${t}-content`]:{width:i*7,th:{width:i}}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${c}px ${d} ${h}`},[`${t}-date-panel, ${t}-time-panel`]:{transition:`opacity ${A}`},"&-active":{[`${t}-date-panel, - ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:Y},"&-column":{flex:"1 0 auto",width:Q,margin:`${s}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${$}`,overflowX:"hidden","&::after":{display:"block",height:Y-U,content:'""'},"&:not(:first-child)":{borderInlineStart:`${c}px ${d} ${h}`},"&-active":{background:new pt(ee).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:X,[`${t}-time-panel-cell-inner`]:{display:"block",width:Q-2*X,height:U,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(Q-U)/2,color:T,lineHeight:`${U}px`,borderRadius:F,cursor:"pointer",transition:`background ${$}`,"&:hover":{background:j}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:ee}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:I,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${t}-time-panel-column:after`]:{height:Y-U+s*2}}}},IX=e=>{const{componentCls:t,colorBgContainer:n,colorError:o,colorErrorOutline:r,colorWarning:i,colorWarningOutline:l}=e;return{[t]:{[`&-status-error${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:o},"&-focused, &:focus":m({},Pi(ke(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:r}))),[`${t}-active-bar`]:{background:o}},[`&-status-warning${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:i},"&-focused, &:focus":m({},Pi(ke(e,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:l}))),[`${t}-active-bar`]:{background:i}}}}},TX=e=>{const{componentCls:t,antCls:n,boxShadowPopoverArrow:o,controlHeight:r,fontSize:i,inputPaddingHorizontal:l,colorBgContainer:a,lineWidth:s,lineType:u,colorBorder:c,borderRadius:d,motionDurationMid:f,colorBgContainerDisabled:g,colorTextDisabled:v,colorTextPlaceholder:h,controlHeightLG:b,fontSizeLG:y,controlHeightSM:S,inputPaddingHorizontalSM:$,paddingXS:x,marginXS:C,colorTextDescription:O,lineWidthBold:w,lineHeight:I,colorPrimary:T,motionDurationSlow:M,zIndexPopup:E,paddingXXS:A,paddingSM:R,pickerTextHeight:z,controlItemBgActive:_,colorPrimaryBorder:N,sizePopupArrow:B,borderRadiusXS:k,borderRadiusOuter:F,colorBgElevated:L,borderRadiusLG:H,boxShadowSecondary:j,borderRadiusSM:Y,colorSplit:Q,controlItemBgHover:U,presetsWidth:ee,presetsMaxWidth:X}=e;return[{[t]:m(m(m({},Ue(e)),vh(e,r,i,l)),{position:"relative",display:"inline-flex",alignItems:"center",background:a,lineHeight:1,border:`${s}px ${u} ${c}`,borderRadius:d,transition:`border ${f}, box-shadow ${f}`,"&:hover, &-focused":m({},qa(e)),"&-focused":m({},Pi(e)),[`&${t}-disabled`]:{background:g,borderColor:c,cursor:"not-allowed",[`${t}-suffix`]:{color:v}},[`&${t}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":m(m({},kl(e)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${t}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:h}}},"&-large":m(m({},vh(e,b,y,l)),{[`${t}-input > input`]:{fontSize:y}}),"&-small":m({},vh(e,S,i,$)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:x/2,color:v,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:C}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:v,lineHeight:1,background:a,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top"},"&:hover":{color:O}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:y,color:v,fontSize:y,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:O},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-clear`]:{insetInlineEnd:l},"&:hover":{[`${t}-clear`]:{opacity:1}},[`${t}-active-bar`]:{bottom:-s,height:w,marginInlineStart:l,background:T,opacity:0,transition:`all ${M} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${x}px`,lineHeight:1},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:$},[`${t}-active-bar`]:{marginInlineStart:$}}},"&-dropdown":m(m(m({},Ue(e)),KI(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:E,[`&${t}-dropdown-hidden`]:{display:"none"},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft, + ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:Y},"&-column":{flex:"1 0 auto",width:Q,margin:`${s}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${$}`,overflowX:"hidden","&::after":{display:"block",height:Y-U,content:'""'},"&:not(:first-child)":{borderInlineStart:`${c}px ${d} ${h}`},"&-active":{background:new pt(ee).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:X,[`${t}-time-panel-cell-inner`]:{display:"block",width:Q-2*X,height:U,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(Q-U)/2,color:T,lineHeight:`${U}px`,borderRadius:F,cursor:"pointer",transition:`background ${$}`,"&:hover":{background:j}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:ee}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:I,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${t}-time-panel-column:after`]:{height:Y-U+s*2}}}},IX=e=>{const{componentCls:t,colorBgContainer:n,colorError:o,colorErrorOutline:r,colorWarning:i,colorWarningOutline:l}=e;return{[t]:{[`&-status-error${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:o},"&-focused, &:focus":m({},Pi(ke(e,{inputBorderActiveColor:o,inputBorderHoverColor:o,controlOutline:r}))),[`${t}-active-bar`]:{background:o}},[`&-status-warning${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:n,borderColor:i},"&-focused, &:focus":m({},Pi(ke(e,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:l}))),[`${t}-active-bar`]:{background:i}}}}},TX=e=>{const{componentCls:t,antCls:n,boxShadowPopoverArrow:o,controlHeight:r,fontSize:i,inputPaddingHorizontal:l,colorBgContainer:a,lineWidth:s,lineType:u,colorBorder:c,borderRadius:d,motionDurationMid:f,colorBgContainerDisabled:g,colorTextDisabled:v,colorTextPlaceholder:h,controlHeightLG:b,fontSizeLG:y,controlHeightSM:S,inputPaddingHorizontalSM:$,paddingXS:x,marginXS:C,colorTextDescription:O,lineWidthBold:w,lineHeight:I,colorPrimary:T,motionDurationSlow:_,zIndexPopup:E,paddingXXS:A,paddingSM:R,pickerTextHeight:z,controlItemBgActive:M,colorPrimaryBorder:N,sizePopupArrow:B,borderRadiusXS:k,borderRadiusOuter:F,colorBgElevated:L,borderRadiusLG:H,boxShadowSecondary:j,borderRadiusSM:Y,colorSplit:Q,controlItemBgHover:U,presetsWidth:ee,presetsMaxWidth:X}=e;return[{[t]:m(m(m({},Ue(e)),vh(e,r,i,l)),{position:"relative",display:"inline-flex",alignItems:"center",background:a,lineHeight:1,border:`${s}px ${u} ${c}`,borderRadius:d,transition:`border ${f}, box-shadow ${f}`,"&:hover, &-focused":m({},qa(e)),"&-focused":m({},Pi(e)),[`&${t}-disabled`]:{background:g,borderColor:c,cursor:"not-allowed",[`${t}-suffix`]:{color:v}},[`&${t}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":m(m({},kl(e)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${t}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:h}}},"&-large":m(m({},vh(e,b,y,l)),{[`${t}-input > input`]:{fontSize:y}}),"&-small":m({},vh(e,S,i,$)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:x/2,color:v,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:C}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:v,lineHeight:1,background:a,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top"},"&:hover":{color:O}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:y,color:v,fontSize:y,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:O},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-clear`]:{insetInlineEnd:l},"&:hover":{[`${t}-clear`]:{opacity:1}},[`${t}-active-bar`]:{bottom:-s,height:w,marginInlineStart:l,background:T,opacity:0,transition:`all ${_} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${x}px`,lineHeight:1},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:$},[`${t}-active-bar`]:{marginInlineStart:$}}},"&-dropdown":m(m(m({},Ue(e)),KI(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:E,[`&${t}-dropdown-hidden`]:{display:"none"},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft, &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:Ap},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, @@ -262,10 +262,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Mp},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft, &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:Rp},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:_p},[`${t}-panel > ${t}-time-panel`]:{paddingTop:A},[`${t}-ranges`]:{marginBottom:0,padding:`${A}px ${R}px`,overflow:"hidden",lineHeight:`${z-2*s-x/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${t}-preset > ${n}-tag-blue`]:{color:T,background:_,borderColor:N,cursor:"pointer"},[`${t}-ok`]:{marginInlineStart:"auto"}},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:m({position:"absolute",zIndex:1,display:"none",marginInlineStart:l*1.5,transition:`left ${M} ease-out`},I0(B,k,F,L,o)),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:L,borderRadius:H,boxShadow:j,transition:`margin ${M}`,[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:ee,maxWidth:X,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:x,borderInlineEnd:`${s}px ${u} ${Q}`,li:m(m({},Gt),{borderRadius:Y,paddingInline:x,paddingBlock:(S-Math.round(i*I))/2,cursor:"pointer",transition:`all ${M}`,"+ li":{marginTop:C},"&:hover":{background:U}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${t}-panel`]:{borderWidth:`0 0 ${s}px`},"&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, - table`]:{textAlign:"center"},"&-focused":{borderColor:c}}}}),"&-dropdown-range":{padding:`${B*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},vr(e,"slide-up"),vr(e,"slide-down"),Ra(e,"move-up"),Ra(e,"move-down")]},GI=e=>{const{componentCls:n,controlHeightLG:o,controlHeightSM:r,colorPrimary:i,paddingXXS:l}=e;return{pickerCellCls:`${n}-cell`,pickerCellInnerCls:`${n}-cell-inner`,pickerTextHeight:o,pickerPanelCellWidth:r*1.5,pickerPanelCellHeight:r,pickerDateHoverRangeBorderColor:new pt(i).lighten(20).toHexString(),pickerBasicCellHoverWithRangeColor:new pt(i).lighten(35).toHexString(),pickerPanelWithoutTimeCellHeight:o*1.65,pickerYearMonthCellWidth:o*1.5,pickerTimePanelColumnHeight:224,pickerTimePanelColumnWidth:o*1.4,pickerTimePanelCellHeight:28,pickerQuarterPanelContentHeight:o*1.4,pickerCellPaddingVertical:l,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5}},XI=Ke("DatePicker",e=>{const t=ke(Fl(e),GI(e));return[TX(t),IX(t),Xa(e,{focusElCls:`${e.componentCls}-focused`})]},e=>({presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})),EX=e=>{const{calendarCls:t,componentCls:n,calendarFullBg:o,calendarFullPanelBg:r,calendarItemActiveBg:i}=e;return{[t]:m(m(m({},KI(e)),Ue(e)),{background:o,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${e.paddingSM}px 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}}),[`${t} ${n}-panel`]:{background:r,border:0,borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${n}-month-panel, ${n}-date-panel`]:{width:"auto"},[`${n}-body`]:{padding:`${e.paddingXS}px 0`},[`${n}-content`]:{width:"100%"}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${n}-panel`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${n}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:`${e.weekHeight}px`}},[`${n}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${n}-panel`]:{display:"block",width:"100%",textAlign:"end",background:o,border:0,[`${n}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:`${e.weekHeight}px`}}},[`${n}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:"none"},[`&-in-view${n}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:i}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${e.marginXS/2}px`,padding:`${e.paddingXS/2}px ${e.paddingXS}px 0`,border:0,borderTop:`${e.lineWidthBold}px ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:`${e.dateValueHeight}px`,transition:`color ${e.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${e.screenXS}px) `]:{[`${t}`]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${e.paddingXS}px)`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},MX=Ke("Calendar",e=>{const t=`${e.componentCls}-calendar`,n=ke(Fl(e),GI(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,calendarFullBg:e.colorBgContainer,calendarFullPanelBg:e.colorBgContainer,calendarItemActiveBg:e.controlItemBgActive,dateValueHeight:e.controlHeightSM,weekHeight:e.controlHeightSM*.75,dateContentHeight:(e.fontSizeSM*e.lineHeightSM+e.marginXS)*3+e.lineWidth*2});return[EX(n)]},{yearControlWidth:80,monthControlWidth:70,miniContentHeight:256});function _X(e){function t(i,l){return i&&l&&e.getYear(i)===e.getYear(l)}function n(i,l){return t(i,l)&&e.getMonth(i)===e.getMonth(l)}function o(i,l){return n(i,l)&&e.getDate(i)===e.getDate(l)}const r=oe({name:"ACalendar",inheritAttrs:!1,props:{prefixCls:String,locale:{type:Object,default:void 0},validRange:{type:Array,default:void 0},disabledDate:{type:Function,default:void 0},dateFullCellRender:{type:Function,default:void 0},dateCellRender:{type:Function,default:void 0},monthFullCellRender:{type:Function,default:void 0},monthCellRender:{type:Function,default:void 0},headerRender:{type:Function,default:void 0},value:{type:[Object,String],default:void 0},defaultValue:{type:[Object,String],default:void 0},mode:{type:String,default:void 0},fullscreen:{type:Boolean,default:void 0},onChange:{type:Function,default:void 0},"onUpdate:value":{type:Function,default:void 0},onPanelChange:{type:Function,default:void 0},onSelect:{type:Function,default:void 0},valueFormat:{type:String,default:void 0}},slots:Object,setup(i,l){let{emit:a,slots:s,attrs:u}=l;const c=i,{prefixCls:d,direction:f}=Te("picker",c),[g,v]=MX(d),h=P(()=>`${d.value}-calendar`),b=_=>c.valueFormat?e.toString(_,c.valueFormat):_,y=P(()=>c.value?c.valueFormat?e.toDate(c.value,c.valueFormat):c.value:c.value===""?void 0:c.value),S=P(()=>c.defaultValue?c.valueFormat?e.toDate(c.defaultValue,c.valueFormat):c.defaultValue:c.defaultValue===""?void 0:c.defaultValue),[$,x]=Pt(()=>y.value||e.getNow(),{defaultValue:S.value,value:y}),[C,O]=Pt("month",{value:ze(c,"mode")}),w=P(()=>C.value==="year"?"month":"date"),I=P(()=>_=>{var N;return(c.validRange?e.isAfter(c.validRange[0],_)||e.isAfter(_,c.validRange[1]):!1)||!!(!((N=c.disabledDate)===null||N===void 0)&&N.call(c,_))}),T=(_,N)=>{a("panelChange",b(_),N)},M=_=>{if(x(_),!o(_,$.value)){(w.value==="date"&&!n(_,$.value)||w.value==="month"&&!t(_,$.value))&&T(_,C.value);const N=b(_);a("update:value",N),a("change",N)}},E=_=>{O(_),T($.value,_)},A=(_,N)=>{M(_),a("select",b(_),{source:N})},R=P(()=>{const{locale:_}=c,N=m(m({},ec),_);return N.lang=m(m({},N.lang),(_||{}).lang),N}),[z]=Do("Calendar",R);return()=>{const _=e.getNow(),{dateFullCellRender:N=s?.dateFullCellRender,dateCellRender:B=s?.dateCellRender,monthFullCellRender:k=s?.monthFullCellRender,monthCellRender:F=s?.monthCellRender,headerRender:L=s?.headerRender,fullscreen:H=!0,validRange:j}=c,Y=U=>{let{current:ee}=U;return N?N({current:ee}):p("div",{class:le(`${d.value}-cell-inner`,`${h.value}-date`,{[`${h.value}-date-today`]:o(_,ee)})},[p("div",{class:`${h.value}-date-value`},[String(e.getDate(ee)).padStart(2,"0")]),p("div",{class:`${h.value}-date-content`},[B&&B({current:ee})])])},Q=(U,ee)=>{let{current:X}=U;if(k)return k({current:X});const J=ee.shortMonths||e.locale.getShortMonths(ee.locale);return p("div",{class:le(`${d.value}-cell-inner`,`${h.value}-date`,{[`${h.value}-date-today`]:n(_,X)})},[p("div",{class:`${h.value}-date-value`},[J[e.getMonth(X)]]),p("div",{class:`${h.value}-date-content`},[F&&F({current:X})])])};return g(p("div",D(D({},u),{},{class:le(h.value,{[`${h.value}-full`]:H,[`${h.value}-mini`]:!H,[`${h.value}-rtl`]:f.value==="rtl"},u.class,v.value)}),[L?L({value:$.value,type:C.value,onChange:U=>{A(U,"customize")},onTypeChange:E}):p(yX,{prefixCls:h.value,value:$.value,generateConfig:e,mode:C.value,fullscreen:H,locale:z.value.lang,validRange:j,onChange:A,onModeChange:E},null),p(ny,{value:$.value,prefixCls:d.value,locale:z.value.lang,generateConfig:e,dateRender:Y,monthCellRender:U=>Q(U,z.value.lang),onSelect:U=>{A(U,w.value)},mode:w.value,picker:w.value,disabledDate:I.value,hideHeader:!0},null)]))}}});return r.install=function(i){return i.component(r.name,r),i},r}const AX=_X(kb),RX=It(AX);function DX(e){const t=ne(),n=ne(!1);function o(){for(var r=arguments.length,i=new Array(r),l=0;l{e(...i)}))}return Qe(()=>{n.value=!0,qe.cancel(t.value)}),o}function NX(e){const t=ne([]),n=ne(typeof e=="function"?e():e),o=DX(()=>{let i=n.value;t.value.forEach(l=>{i=l(i)}),t.value=[],n.value=i});function r(i){t.value.push(i),o()}return[n,r]}const BX=oe({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(e,t){let{expose:n,attrs:o}=t;const r=re();function i(s){var u;!((u=e.tab)===null||u===void 0)&&u.disabled||e.onClick(s)}n({domRef:r});function l(s){var u;s.preventDefault(),s.stopPropagation(),e.editable.onEdit("remove",{key:(u=e.tab)===null||u===void 0?void 0:u.key,event:s})}const a=P(()=>{var s;return e.editable&&e.closable!==!1&&!(!((s=e.tab)===null||s===void 0)&&s.disabled)});return()=>{var s;const{prefixCls:u,id:c,active:d,tab:{key:f,tab:g,disabled:v,closeIcon:h},renderWrapper:b,removeAriaLabel:y,editable:S,onFocus:$}=e,x=`${u}-tab`,C=p("div",{key:f,ref:r,class:le(x,{[`${x}-with-remove`]:a.value,[`${x}-active`]:d,[`${x}-disabled`]:v}),style:o.style,onClick:i},[p("div",{role:"tab","aria-selected":d,id:c&&`${c}-tab-${f}`,class:`${x}-btn`,"aria-controls":c&&`${c}-panel-${f}`,"aria-disabled":v,tabindex:v?null:0,onClick:O=>{O.stopPropagation(),i(O)},onKeydown:O=>{[Pe.SPACE,Pe.ENTER].includes(O.which)&&(O.preventDefault(),i(O))},onFocus:$},[typeof g=="function"?g():g]),a.value&&p("button",{type:"button","aria-label":y||"remove",tabindex:0,class:`${x}-remove`,onClick:O=>{O.stopPropagation(),l(O)}},[h?.()||((s=S.removeIcon)===null||s===void 0?void 0:s.call(S))||"×"])]);return b?b(C):C}}}),yx={width:0,height:0,left:0,top:0};function kX(e,t){const n=re(new Map);return Le(()=>{var o,r;const i=new Map,l=e.value,a=t.value.get((o=l[0])===null||o===void 0?void 0:o.key)||yx,s=a.left+a.width;for(let u=0;u{const{prefixCls:i,editable:l,locale:a}=e;return!l||l.showAdd===!1?null:p("button",{ref:r,type:"button",class:`${i}-nav-add`,style:o.style,"aria-label":a?.addAriaLabel||"Add tab",onClick:s=>{l.onEdit("add",{event:s})}},[l.addIcon?l.addIcon():"+"])}}}),FX={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:W.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:ve()},LX=oe({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:FX,emits:["tabClick"],slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const[r,i]=ht(!1),[l,a]=ht(null),s=g=>{const v=e.tabs.filter(y=>!y.disabled);let h=v.findIndex(y=>y.key===l.value)||0;const b=v.length;for(let y=0;y{const{which:v}=g;if(!r.value){[Pe.DOWN,Pe.SPACE,Pe.ENTER].includes(v)&&(i(!0),g.preventDefault());return}switch(v){case Pe.UP:s(-1),g.preventDefault();break;case Pe.DOWN:s(1),g.preventDefault();break;case Pe.ESC:i(!1);break;case Pe.SPACE:case Pe.ENTER:l.value!==null&&e.onTabClick(l.value,g);break}},c=P(()=>`${e.id}-more-popup`),d=P(()=>l.value!==null?`${c.value}-${l.value}`:null),f=(g,v)=>{g.preventDefault(),g.stopPropagation(),e.editable.onEdit("remove",{key:v,event:g})};return je(()=>{ye(l,()=>{const g=document.getElementById(d.value);g&&g.scrollIntoView&&g.scrollIntoView(!1)},{flush:"post",immediate:!0})}),ye(r,()=>{r.value||a(null)}),Rb({}),()=>{var g;const{prefixCls:v,id:h,tabs:b,locale:y,mobile:S,moreIcon:$=((g=o.moreIcon)===null||g===void 0?void 0:g.call(o))||p(Ac,null,null),moreTransitionName:x,editable:C,tabBarGutter:O,rtl:w,onTabClick:I,popupClassName:T}=e;if(!b.length)return null;const M=`${v}-dropdown`,E=y?.dropdownAriaLabel,A={[w?"marginRight":"marginLeft"]:O};b.length||(A.visibility="hidden",A.order=1);const R=le({[`${M}-rtl`]:w,[`${T}`]:!0}),z=S?null:p(G6,{prefixCls:M,trigger:["hover"],visible:r.value,transitionName:x,onVisibleChange:i,overlayClassName:R,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>p(Vt,{onClick:_=>{let{key:N,domEvent:B}=_;I(N,B),i(!1)},id:c.value,tabindex:-1,role:"listbox","aria-activedescendant":d.value,selectedKeys:[l.value],"aria-label":E!==void 0?E:"expanded dropdown"},{default:()=>[b.map(_=>{var N,B;const k=C&&_.closable!==!1&&!_.disabled;return p(pr,{key:_.key,id:`${c.value}-${_.key}`,role:"option","aria-controls":h&&`${h}-panel-${_.key}`,disabled:_.disabled},{default:()=>[p("span",null,[typeof _.tab=="function"?_.tab():_.tab]),k&&p("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${M}-menu-item-remove`,onClick:F=>{F.stopPropagation(),f(F,_.key)}},[((N=_.closeIcon)===null||N===void 0?void 0:N.call(_))||((B=C.removeIcon)===null||B===void 0?void 0:B.call(C))||"×"])]})})]}),default:()=>p("button",{type:"button",class:`${v}-nav-more`,style:A,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":c.value,id:`${h}-more`,"aria-expanded":r.value,onKeydown:u},[$])});return p("div",{class:le(`${v}-nav-operations`,n.class),style:n.style},[z,p(UI,{prefixCls:v,locale:y,editable:C},null)])}}}),YI=Symbol("tabsContextKey"),zX=e=>{Xe(YI,e)},qI=()=>He(YI,{tabs:re([]),prefixCls:re()}),HX=.1,Sx=.01,ed=20,$x=Math.pow(.995,ed);function jX(e,t){const[n,o]=ht(),[r,i]=ht(0),[l,a]=ht(0),[s,u]=ht(),c=re();function d(C){const{screenX:O,screenY:w}=C.touches[0];o({x:O,y:w}),clearInterval(c.value)}function f(C){if(!n.value)return;C.preventDefault();const{screenX:O,screenY:w}=C.touches[0],I=O-n.value.x,T=w-n.value.y;t(I,T),o({x:O,y:w});const M=Date.now();a(M-r.value),i(M),u({x:I,y:T})}function g(){if(!n.value)return;const C=s.value;if(o(null),u(null),C){const O=C.x/l.value,w=C.y/l.value,I=Math.abs(O),T=Math.abs(w);if(Math.max(I,T){if(Math.abs(M)M?(I=O,v.value="x"):(I=w,v.value="y"),t(-I,-I)&&C.preventDefault()}const b=re({onTouchStart:d,onTouchMove:f,onTouchEnd:g,onWheel:h});function y(C){b.value.onTouchStart(C)}function S(C){b.value.onTouchMove(C)}function $(C){b.value.onTouchEnd(C)}function x(C){b.value.onWheel(C)}je(()=>{var C,O;document.addEventListener("touchmove",S,{passive:!1}),document.addEventListener("touchend",$,{passive:!1}),(C=e.value)===null||C===void 0||C.addEventListener("touchstart",y,{passive:!1}),(O=e.value)===null||O===void 0||O.addEventListener("wheel",x,{passive:!1})}),Qe(()=>{document.removeEventListener("touchmove",S),document.removeEventListener("touchend",$)})}function Cx(e,t){const n=re(e);function o(r){const i=typeof r=="function"?r(n.value):r;i!==n.value&&t(i,n.value),n.value=i}return[n,o]}const cy=()=>{const e=re(new Map),t=n=>o=>{e.value.set(n,o)};return ep(()=>{e.value=new Map}),[t,e]},xx={width:0,height:0,left:0,top:0,right:0},VX=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:De(),editable:De(),moreIcon:W.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:De(),popupClassName:String,getPopupContainer:ve(),onTabClick:{type:Function},onTabScroll:{type:Function}}),WX=(e,t)=>{const{offsetWidth:n,offsetHeight:o,offsetTop:r,offsetLeft:i}=e,{width:l,height:a,x:s,y:u}=e.getBoundingClientRect();return Math.abs(l-n)<1?[l,a,s-t.x,u-t.y]:[n,o,i,r]},wx=oe({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:VX(),slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:n,slots:o}=t;const{tabs:r,prefixCls:i}=qI(),l=ne(),a=ne(),s=ne(),u=ne(),[c,d]=cy(),f=P(()=>e.tabPosition==="top"||e.tabPosition==="bottom"),[g,v]=Cx(0,(ce,se)=>{f.value&&e.onTabScroll&&e.onTabScroll({direction:ce>se?"left":"right"})}),[h,b]=Cx(0,(ce,se)=>{!f.value&&e.onTabScroll&&e.onTabScroll({direction:ce>se?"top":"bottom"})}),[y,S]=ht(0),[$,x]=ht(0),[C,O]=ht(null),[w,I]=ht(null),[T,M]=ht(0),[E,A]=ht(0),[R,z]=NX(new Map),_=kX(r,R),N=P(()=>`${i.value}-nav-operations-hidden`),B=ne(0),k=ne(0);Le(()=>{f.value?e.rtl?(B.value=0,k.value=Math.max(0,y.value-C.value)):(B.value=Math.min(0,C.value-y.value),k.value=0):(B.value=Math.min(0,w.value-$.value),k.value=0)});const F=ce=>cek.value?k.value:ce,L=ne(),[H,j]=ht(),Y=()=>{j(Date.now())},Q=()=>{clearTimeout(L.value)},U=(ce,se)=>{ce(pe=>F(pe+se))};jX(l,(ce,se)=>{if(f.value){if(C.value>=y.value)return!1;U(v,ce)}else{if(w.value>=$.value)return!1;U(b,se)}return Q(),Y(),!0}),ye(H,()=>{Q(),H.value&&(L.value=setTimeout(()=>{j(0)},100))});const ee=function(){let ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey;const se=_.value.get(ce)||{width:0,height:0,left:0,right:0,top:0};if(f.value){let pe=g.value;e.rtl?se.rightg.value+C.value&&(pe=se.right+se.width-C.value):se.left<-g.value?pe=-se.left:se.left+se.width>-g.value+C.value&&(pe=-(se.left+se.width-C.value)),b(0),v(F(pe))}else{let pe=h.value;se.top<-h.value?pe=-se.top:se.top+se.height>-h.value+w.value&&(pe=-(se.top+se.height-w.value)),v(0),b(F(pe))}},X=ne(0),J=ne(0);Le(()=>{let ce,se,pe,ge,he,me;const xe=_.value;["top","bottom"].includes(e.tabPosition)?(ce="width",ge=C.value,he=y.value,me=T.value,se=e.rtl?"right":"left",pe=Math.abs(g.value)):(ce="height",ge=w.value,he=y.value,me=E.value,se="top",pe=-h.value);let fe=ge;he+me>ge&&hepe+fe){we=Ae-1;break}}let Ie=0;for(let Ae=be-1;Ae>=0;Ae-=1)if((xe.get(de[Ae].key)||xx)[se]{z(()=>{var ce;const se=new Map,pe=(ce=a.value)===null||ce===void 0?void 0:ce.getBoundingClientRect();return r.value.forEach(ge=>{let{key:he}=ge;const me=d.value.get(he),xe=me?.$el||me;if(xe){const[fe,de,be,we]=WX(xe,pe);se.set(he,{width:fe,height:de,left:be,top:we})}}),se})};ye(()=>r.value.map(ce=>ce.key).join("%%"),()=>{Z()},{flush:"post"});const G=()=>{var ce,se,pe,ge,he;const me=((ce=l.value)===null||ce===void 0?void 0:ce.offsetWidth)||0,xe=((se=l.value)===null||se===void 0?void 0:se.offsetHeight)||0,fe=((pe=u.value)===null||pe===void 0?void 0:pe.$el)||{},de=fe.offsetWidth||0,be=fe.offsetHeight||0;O(me),I(xe),M(de),A(be);const we=(((ge=a.value)===null||ge===void 0?void 0:ge.offsetWidth)||0)-de,Ie=(((he=a.value)===null||he===void 0?void 0:he.offsetHeight)||0)-be;S(we),x(Ie),Z()},q=P(()=>[...r.value.slice(0,X.value),...r.value.slice(J.value+1)]),[V,K]=ht(),te=P(()=>_.value.get(e.activeKey)),ue=ne(),ie=()=>{qe.cancel(ue.value)};ye([te,f,()=>e.rtl],()=>{const ce={};te.value&&(f.value?(e.rtl?ce.right=Zi(te.value.right):ce.left=Zi(te.value.left),ce.width=Zi(te.value.width)):(ce.top=Zi(te.value.top),ce.height=Zi(te.value.height))),ie(),ue.value=qe(()=>{K(ce)})}),ye([()=>e.activeKey,te,_,f],()=>{ee()},{flush:"post"}),ye([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>r.value],()=>{G()},{flush:"post"});const ae=ce=>{let{position:se,prefixCls:pe,extra:ge}=ce;if(!ge)return null;const he=ge?.({position:se});return he?p("div",{class:`${pe}-extra-content`},[he]):null};return Qe(()=>{Q(),ie()}),()=>{const{id:ce,animated:se,activeKey:pe,rtl:ge,editable:he,locale:me,tabPosition:xe,tabBarGutter:fe,onTabClick:de}=e,{class:be,style:we}=n,Ie=i.value,Ae=!!q.value.length,Se=`${Ie}-nav-wrap`;let Ce,Oe,Me,Re;f.value?ge?(Oe=g.value>0,Ce=g.value+C.value{const{key:it}=et;return p(BX,{id:ce,prefixCls:Ie,key:it,tab:et,style:dt===0?void 0:_e,closable:et.closable,editable:he,active:it===pe,removeAriaLabel:me?.removeAriaLabel,ref:c(it),onClick:ft=>{de(it,ft)},onFocus:()=>{ee(it),Y(),l.value&&(ge||(l.value.scrollLeft=0),l.value.scrollTop=0)}},o)});return p("div",{role:"tablist",class:le(`${Ie}-nav`,be),style:we,onKeydown:()=>{Y()}},[p(ae,{position:"left",prefixCls:Ie,extra:o.leftExtra},null),p(Mo,{onResize:G},{default:()=>[p("div",{class:le(Se,{[`${Se}-ping-left`]:Ce,[`${Se}-ping-right`]:Oe,[`${Se}-ping-top`]:Me,[`${Se}-ping-bottom`]:Re}),ref:l},[p(Mo,{onResize:G},{default:()=>[p("div",{ref:a,class:`${Ie}-nav-list`,style:{transform:`translate(${g.value}px, ${h.value}px)`,transition:H.value?"none":void 0}},[Be,p(UI,{ref:u,prefixCls:Ie,locale:me,editable:he,style:m(m({},Be.length===0?void 0:_e),{visibility:Ae?"hidden":null})},null),p("div",{class:le(`${Ie}-ink-bar`,{[`${Ie}-ink-bar-animated`]:se.inkBar}),style:V.value},null)])]})])]}),p(LX,D(D({},e),{},{removeAriaLabel:me?.removeAriaLabel,ref:s,prefixCls:Ie,tabs:q.value,class:!Ae&&N.value}),k6(o,["moreIcon"])),p(ae,{position:"right",prefixCls:Ie,extra:o.rightExtra},null),p(ae,{position:"right",prefixCls:Ie,extra:o.tabBarExtraContent},null)])}}}),KX=oe({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){const{tabs:t,prefixCls:n}=qI();return()=>{const{id:o,activeKey:r,animated:i,tabPosition:l,rtl:a,destroyInactiveTabPane:s}=e,u=i.tabPane,c=n.value,d=t.value.findIndex(f=>f.key===r);return p("div",{class:`${c}-content-holder`},[p("div",{class:[`${c}-content`,`${c}-content-${l}`,{[`${c}-content-animated`]:u}],style:d&&u?{[a?"marginRight":"marginLeft"]:`-${d}00%`}:null},[t.value.map(f=>ut(f.node,{key:f.key,prefixCls:c,tabKey:f.key,id:o,animated:u,active:f.key===r,destroyInactiveTabPane:s}))])])}}});var GX={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"};function Ox(e){for(var t=1;t{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}`}}}}},[vr(e,"slide-up"),vr(e,"slide-down")]]},YX=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeadBackground:o,tabsCardGutter:r,colorSplit:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:o,border:`${e.lineWidth}px ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,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:`${r}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${r}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${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 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},qX=e=>{const{componentCls:t,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:m(m({},Ue(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:`${o}px 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":m(m({},Gt),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,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"}}})}})}},ZX=e=>{const{componentCls:t,margin:n,colorSplit:o}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${n}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${o}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, + &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:_p},[`${t}-panel > ${t}-time-panel`]:{paddingTop:A},[`${t}-ranges`]:{marginBottom:0,padding:`${A}px ${R}px`,overflow:"hidden",lineHeight:`${z-2*s-x/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${t}-preset > ${n}-tag-blue`]:{color:T,background:M,borderColor:N,cursor:"pointer"},[`${t}-ok`]:{marginInlineStart:"auto"}},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:m({position:"absolute",zIndex:1,display:"none",marginInlineStart:l*1.5,transition:`left ${_} ease-out`},I0(B,k,F,L,o)),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:L,borderRadius:H,boxShadow:j,transition:`margin ${_}`,[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:ee,maxWidth:X,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:x,borderInlineEnd:`${s}px ${u} ${Q}`,li:m(m({},Gt),{borderRadius:Y,paddingInline:x,paddingBlock:(S-Math.round(i*I))/2,cursor:"pointer",transition:`all ${_}`,"+ li":{marginTop:C},"&:hover":{background:U}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${t}-panel`]:{borderWidth:`0 0 ${s}px`},"&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, + table`]:{textAlign:"center"},"&-focused":{borderColor:c}}}}),"&-dropdown-range":{padding:`${B*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},vr(e,"slide-up"),vr(e,"slide-down"),Ra(e,"move-up"),Ra(e,"move-down")]},GI=e=>{const{componentCls:n,controlHeightLG:o,controlHeightSM:r,colorPrimary:i,paddingXXS:l}=e;return{pickerCellCls:`${n}-cell`,pickerCellInnerCls:`${n}-cell-inner`,pickerTextHeight:o,pickerPanelCellWidth:r*1.5,pickerPanelCellHeight:r,pickerDateHoverRangeBorderColor:new pt(i).lighten(20).toHexString(),pickerBasicCellHoverWithRangeColor:new pt(i).lighten(35).toHexString(),pickerPanelWithoutTimeCellHeight:o*1.65,pickerYearMonthCellWidth:o*1.5,pickerTimePanelColumnHeight:224,pickerTimePanelColumnWidth:o*1.4,pickerTimePanelCellHeight:28,pickerQuarterPanelContentHeight:o*1.4,pickerCellPaddingVertical:l,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5}},XI=Ke("DatePicker",e=>{const t=ke(Fl(e),GI(e));return[TX(t),IX(t),Xa(e,{focusElCls:`${e.componentCls}-focused`})]},e=>({presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50})),EX=e=>{const{calendarCls:t,componentCls:n,calendarFullBg:o,calendarFullPanelBg:r,calendarItemActiveBg:i}=e;return{[t]:m(m(m({},KI(e)),Ue(e)),{background:o,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${e.paddingSM}px 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}}),[`${t} ${n}-panel`]:{background:r,border:0,borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${n}-month-panel, ${n}-date-panel`]:{width:"auto"},[`${n}-body`]:{padding:`${e.paddingXS}px 0`},[`${n}-content`]:{width:"100%"}},[`${t}-mini`]:{borderRadius:e.borderRadiusLG,[`${t}-header`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS},[`${n}-panel`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${n}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:`${e.weekHeight}px`}},[`${n}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${n}-panel`]:{display:"block",width:"100%",textAlign:"end",background:o,border:0,[`${n}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:`${e.weekHeight}px`}}},[`${n}-cell`]:{"&::before":{display:"none"},"&:hover":{[`${t}-date`]:{background:e.controlItemBgHover}},[`${t}-date-today::before`]:{display:"none"},[`&-in-view${n}-cell-selected`]:{[`${t}-date, ${t}-date-today`]:{background:i}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${e.marginXS/2}px`,padding:`${e.paddingXS/2}px ${e.paddingXS}px 0`,border:0,borderTop:`${e.lineWidthBold}px ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:`${e.dateValueHeight}px`,transition:`color ${e.motionDurationSlow}`},"&-content":{position:"static",width:"auto",height:e.dateContentHeight,overflowY:"auto",color:e.colorText,lineHeight:e.lineHeight,textAlign:"start"},"&-today":{borderColor:e.colorPrimary,[`${t}-date-value`]:{color:e.colorText}}}},[`@media only screen and (max-width: ${e.screenXS}px) `]:{[`${t}`]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${e.paddingXS}px)`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},MX=Ke("Calendar",e=>{const t=`${e.componentCls}-calendar`,n=ke(Fl(e),GI(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,calendarFullBg:e.colorBgContainer,calendarFullPanelBg:e.colorBgContainer,calendarItemActiveBg:e.controlItemBgActive,dateValueHeight:e.controlHeightSM,weekHeight:e.controlHeightSM*.75,dateContentHeight:(e.fontSizeSM*e.lineHeightSM+e.marginXS)*3+e.lineWidth*2});return[EX(n)]},{yearControlWidth:80,monthControlWidth:70,miniContentHeight:256});function _X(e){function t(i,l){return i&&l&&e.getYear(i)===e.getYear(l)}function n(i,l){return t(i,l)&&e.getMonth(i)===e.getMonth(l)}function o(i,l){return n(i,l)&&e.getDate(i)===e.getDate(l)}const r=oe({name:"ACalendar",inheritAttrs:!1,props:{prefixCls:String,locale:{type:Object,default:void 0},validRange:{type:Array,default:void 0},disabledDate:{type:Function,default:void 0},dateFullCellRender:{type:Function,default:void 0},dateCellRender:{type:Function,default:void 0},monthFullCellRender:{type:Function,default:void 0},monthCellRender:{type:Function,default:void 0},headerRender:{type:Function,default:void 0},value:{type:[Object,String],default:void 0},defaultValue:{type:[Object,String],default:void 0},mode:{type:String,default:void 0},fullscreen:{type:Boolean,default:void 0},onChange:{type:Function,default:void 0},"onUpdate:value":{type:Function,default:void 0},onPanelChange:{type:Function,default:void 0},onSelect:{type:Function,default:void 0},valueFormat:{type:String,default:void 0}},slots:Object,setup(i,l){let{emit:a,slots:s,attrs:u}=l;const c=i,{prefixCls:d,direction:f}=Te("picker",c),[g,v]=MX(d),h=P(()=>`${d.value}-calendar`),b=M=>c.valueFormat?e.toString(M,c.valueFormat):M,y=P(()=>c.value?c.valueFormat?e.toDate(c.value,c.valueFormat):c.value:c.value===""?void 0:c.value),S=P(()=>c.defaultValue?c.valueFormat?e.toDate(c.defaultValue,c.valueFormat):c.defaultValue:c.defaultValue===""?void 0:c.defaultValue),[$,x]=Pt(()=>y.value||e.getNow(),{defaultValue:S.value,value:y}),[C,O]=Pt("month",{value:ze(c,"mode")}),w=P(()=>C.value==="year"?"month":"date"),I=P(()=>M=>{var N;return(c.validRange?e.isAfter(c.validRange[0],M)||e.isAfter(M,c.validRange[1]):!1)||!!(!((N=c.disabledDate)===null||N===void 0)&&N.call(c,M))}),T=(M,N)=>{a("panelChange",b(M),N)},_=M=>{if(x(M),!o(M,$.value)){(w.value==="date"&&!n(M,$.value)||w.value==="month"&&!t(M,$.value))&&T(M,C.value);const N=b(M);a("update:value",N),a("change",N)}},E=M=>{O(M),T($.value,M)},A=(M,N)=>{_(M),a("select",b(M),{source:N})},R=P(()=>{const{locale:M}=c,N=m(m({},ec),M);return N.lang=m(m({},N.lang),(M||{}).lang),N}),[z]=Do("Calendar",R);return()=>{const M=e.getNow(),{dateFullCellRender:N=s?.dateFullCellRender,dateCellRender:B=s?.dateCellRender,monthFullCellRender:k=s?.monthFullCellRender,monthCellRender:F=s?.monthCellRender,headerRender:L=s?.headerRender,fullscreen:H=!0,validRange:j}=c,Y=U=>{let{current:ee}=U;return N?N({current:ee}):p("div",{class:le(`${d.value}-cell-inner`,`${h.value}-date`,{[`${h.value}-date-today`]:o(M,ee)})},[p("div",{class:`${h.value}-date-value`},[String(e.getDate(ee)).padStart(2,"0")]),p("div",{class:`${h.value}-date-content`},[B&&B({current:ee})])])},Q=(U,ee)=>{let{current:X}=U;if(k)return k({current:X});const J=ee.shortMonths||e.locale.getShortMonths(ee.locale);return p("div",{class:le(`${d.value}-cell-inner`,`${h.value}-date`,{[`${h.value}-date-today`]:n(M,X)})},[p("div",{class:`${h.value}-date-value`},[J[e.getMonth(X)]]),p("div",{class:`${h.value}-date-content`},[F&&F({current:X})])])};return g(p("div",D(D({},u),{},{class:le(h.value,{[`${h.value}-full`]:H,[`${h.value}-mini`]:!H,[`${h.value}-rtl`]:f.value==="rtl"},u.class,v.value)}),[L?L({value:$.value,type:C.value,onChange:U=>{A(U,"customize")},onTypeChange:E}):p(yX,{prefixCls:h.value,value:$.value,generateConfig:e,mode:C.value,fullscreen:H,locale:z.value.lang,validRange:j,onChange:A,onModeChange:E},null),p(ny,{value:$.value,prefixCls:d.value,locale:z.value.lang,generateConfig:e,dateRender:Y,monthCellRender:U=>Q(U,z.value.lang),onSelect:U=>{A(U,w.value)},mode:w.value,picker:w.value,disabledDate:I.value,hideHeader:!0},null)]))}}});return r.install=function(i){return i.component(r.name,r),i},r}const AX=_X(kb),RX=It(AX);function DX(e){const t=ne(),n=ne(!1);function o(){for(var r=arguments.length,i=new Array(r),l=0;l{e(...i)}))}return Qe(()=>{n.value=!0,qe.cancel(t.value)}),o}function NX(e){const t=ne([]),n=ne(typeof e=="function"?e():e),o=DX(()=>{let i=n.value;t.value.forEach(l=>{i=l(i)}),t.value=[],n.value=i});function r(i){t.value.push(i),o()}return[n,r]}const BX=oe({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(e,t){let{expose:n,attrs:o}=t;const r=re();function i(s){var u;!((u=e.tab)===null||u===void 0)&&u.disabled||e.onClick(s)}n({domRef:r});function l(s){var u;s.preventDefault(),s.stopPropagation(),e.editable.onEdit("remove",{key:(u=e.tab)===null||u===void 0?void 0:u.key,event:s})}const a=P(()=>{var s;return e.editable&&e.closable!==!1&&!(!((s=e.tab)===null||s===void 0)&&s.disabled)});return()=>{var s;const{prefixCls:u,id:c,active:d,tab:{key:f,tab:g,disabled:v,closeIcon:h},renderWrapper:b,removeAriaLabel:y,editable:S,onFocus:$}=e,x=`${u}-tab`,C=p("div",{key:f,ref:r,class:le(x,{[`${x}-with-remove`]:a.value,[`${x}-active`]:d,[`${x}-disabled`]:v}),style:o.style,onClick:i},[p("div",{role:"tab","aria-selected":d,id:c&&`${c}-tab-${f}`,class:`${x}-btn`,"aria-controls":c&&`${c}-panel-${f}`,"aria-disabled":v,tabindex:v?null:0,onClick:O=>{O.stopPropagation(),i(O)},onKeydown:O=>{[Pe.SPACE,Pe.ENTER].includes(O.which)&&(O.preventDefault(),i(O))},onFocus:$},[typeof g=="function"?g():g]),a.value&&p("button",{type:"button","aria-label":y||"remove",tabindex:0,class:`${x}-remove`,onClick:O=>{O.stopPropagation(),l(O)}},[h?.()||((s=S.removeIcon)===null||s===void 0?void 0:s.call(S))||"×"])]);return b?b(C):C}}}),yx={width:0,height:0,left:0,top:0};function kX(e,t){const n=re(new Map);return Le(()=>{var o,r;const i=new Map,l=e.value,a=t.value.get((o=l[0])===null||o===void 0?void 0:o.key)||yx,s=a.left+a.width;for(let u=0;u{const{prefixCls:i,editable:l,locale:a}=e;return!l||l.showAdd===!1?null:p("button",{ref:r,type:"button",class:`${i}-nav-add`,style:o.style,"aria-label":a?.addAriaLabel||"Add tab",onClick:s=>{l.onEdit("add",{event:s})}},[l.addIcon?l.addIcon():"+"])}}}),FX={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:W.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:ve()},LX=oe({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:FX,emits:["tabClick"],slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const[r,i]=ht(!1),[l,a]=ht(null),s=g=>{const v=e.tabs.filter(y=>!y.disabled);let h=v.findIndex(y=>y.key===l.value)||0;const b=v.length;for(let y=0;y{const{which:v}=g;if(!r.value){[Pe.DOWN,Pe.SPACE,Pe.ENTER].includes(v)&&(i(!0),g.preventDefault());return}switch(v){case Pe.UP:s(-1),g.preventDefault();break;case Pe.DOWN:s(1),g.preventDefault();break;case Pe.ESC:i(!1);break;case Pe.SPACE:case Pe.ENTER:l.value!==null&&e.onTabClick(l.value,g);break}},c=P(()=>`${e.id}-more-popup`),d=P(()=>l.value!==null?`${c.value}-${l.value}`:null),f=(g,v)=>{g.preventDefault(),g.stopPropagation(),e.editable.onEdit("remove",{key:v,event:g})};return je(()=>{ye(l,()=>{const g=document.getElementById(d.value);g&&g.scrollIntoView&&g.scrollIntoView(!1)},{flush:"post",immediate:!0})}),ye(r,()=>{r.value||a(null)}),Rb({}),()=>{var g;const{prefixCls:v,id:h,tabs:b,locale:y,mobile:S,moreIcon:$=((g=o.moreIcon)===null||g===void 0?void 0:g.call(o))||p(Ac,null,null),moreTransitionName:x,editable:C,tabBarGutter:O,rtl:w,onTabClick:I,popupClassName:T}=e;if(!b.length)return null;const _=`${v}-dropdown`,E=y?.dropdownAriaLabel,A={[w?"marginRight":"marginLeft"]:O};b.length||(A.visibility="hidden",A.order=1);const R=le({[`${_}-rtl`]:w,[`${T}`]:!0}),z=S?null:p(G6,{prefixCls:_,trigger:["hover"],visible:r.value,transitionName:x,onVisibleChange:i,overlayClassName:R,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>p(Vt,{onClick:M=>{let{key:N,domEvent:B}=M;I(N,B),i(!1)},id:c.value,tabindex:-1,role:"listbox","aria-activedescendant":d.value,selectedKeys:[l.value],"aria-label":E!==void 0?E:"expanded dropdown"},{default:()=>[b.map(M=>{var N,B;const k=C&&M.closable!==!1&&!M.disabled;return p(pr,{key:M.key,id:`${c.value}-${M.key}`,role:"option","aria-controls":h&&`${h}-panel-${M.key}`,disabled:M.disabled},{default:()=>[p("span",null,[typeof M.tab=="function"?M.tab():M.tab]),k&&p("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${_}-menu-item-remove`,onClick:F=>{F.stopPropagation(),f(F,M.key)}},[((N=M.closeIcon)===null||N===void 0?void 0:N.call(M))||((B=C.removeIcon)===null||B===void 0?void 0:B.call(C))||"×"])]})})]}),default:()=>p("button",{type:"button",class:`${v}-nav-more`,style:A,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":c.value,id:`${h}-more`,"aria-expanded":r.value,onKeydown:u},[$])});return p("div",{class:le(`${v}-nav-operations`,n.class),style:n.style},[z,p(UI,{prefixCls:v,locale:y,editable:C},null)])}}}),YI=Symbol("tabsContextKey"),zX=e=>{Xe(YI,e)},qI=()=>He(YI,{tabs:re([]),prefixCls:re()}),HX=.1,Sx=.01,ed=20,$x=Math.pow(.995,ed);function jX(e,t){const[n,o]=ht(),[r,i]=ht(0),[l,a]=ht(0),[s,u]=ht(),c=re();function d(C){const{screenX:O,screenY:w}=C.touches[0];o({x:O,y:w}),clearInterval(c.value)}function f(C){if(!n.value)return;C.preventDefault();const{screenX:O,screenY:w}=C.touches[0],I=O-n.value.x,T=w-n.value.y;t(I,T),o({x:O,y:w});const _=Date.now();a(_-r.value),i(_),u({x:I,y:T})}function g(){if(!n.value)return;const C=s.value;if(o(null),u(null),C){const O=C.x/l.value,w=C.y/l.value,I=Math.abs(O),T=Math.abs(w);if(Math.max(I,T){if(Math.abs(_)_?(I=O,v.value="x"):(I=w,v.value="y"),t(-I,-I)&&C.preventDefault()}const b=re({onTouchStart:d,onTouchMove:f,onTouchEnd:g,onWheel:h});function y(C){b.value.onTouchStart(C)}function S(C){b.value.onTouchMove(C)}function $(C){b.value.onTouchEnd(C)}function x(C){b.value.onWheel(C)}je(()=>{var C,O;document.addEventListener("touchmove",S,{passive:!1}),document.addEventListener("touchend",$,{passive:!1}),(C=e.value)===null||C===void 0||C.addEventListener("touchstart",y,{passive:!1}),(O=e.value)===null||O===void 0||O.addEventListener("wheel",x,{passive:!1})}),Qe(()=>{document.removeEventListener("touchmove",S),document.removeEventListener("touchend",$)})}function Cx(e,t){const n=re(e);function o(r){const i=typeof r=="function"?r(n.value):r;i!==n.value&&t(i,n.value),n.value=i}return[n,o]}const cy=()=>{const e=re(new Map),t=n=>o=>{e.value.set(n,o)};return ep(()=>{e.value=new Map}),[t,e]},xx={width:0,height:0,left:0,top:0,right:0},VX=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:De(),editable:De(),moreIcon:W.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:De(),popupClassName:String,getPopupContainer:ve(),onTabClick:{type:Function},onTabScroll:{type:Function}}),WX=(e,t)=>{const{offsetWidth:n,offsetHeight:o,offsetTop:r,offsetLeft:i}=e,{width:l,height:a,x:s,y:u}=e.getBoundingClientRect();return Math.abs(l-n)<1?[l,a,s-t.x,u-t.y]:[n,o,i,r]},wx=oe({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:VX(),slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:n,slots:o}=t;const{tabs:r,prefixCls:i}=qI(),l=ne(),a=ne(),s=ne(),u=ne(),[c,d]=cy(),f=P(()=>e.tabPosition==="top"||e.tabPosition==="bottom"),[g,v]=Cx(0,(ce,se)=>{f.value&&e.onTabScroll&&e.onTabScroll({direction:ce>se?"left":"right"})}),[h,b]=Cx(0,(ce,se)=>{!f.value&&e.onTabScroll&&e.onTabScroll({direction:ce>se?"top":"bottom"})}),[y,S]=ht(0),[$,x]=ht(0),[C,O]=ht(null),[w,I]=ht(null),[T,_]=ht(0),[E,A]=ht(0),[R,z]=NX(new Map),M=kX(r,R),N=P(()=>`${i.value}-nav-operations-hidden`),B=ne(0),k=ne(0);Le(()=>{f.value?e.rtl?(B.value=0,k.value=Math.max(0,y.value-C.value)):(B.value=Math.min(0,C.value-y.value),k.value=0):(B.value=Math.min(0,w.value-$.value),k.value=0)});const F=ce=>cek.value?k.value:ce,L=ne(),[H,j]=ht(),Y=()=>{j(Date.now())},Q=()=>{clearTimeout(L.value)},U=(ce,se)=>{ce(pe=>F(pe+se))};jX(l,(ce,se)=>{if(f.value){if(C.value>=y.value)return!1;U(v,ce)}else{if(w.value>=$.value)return!1;U(b,se)}return Q(),Y(),!0}),ye(H,()=>{Q(),H.value&&(L.value=setTimeout(()=>{j(0)},100))});const ee=function(){let ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey;const se=M.value.get(ce)||{width:0,height:0,left:0,right:0,top:0};if(f.value){let pe=g.value;e.rtl?se.rightg.value+C.value&&(pe=se.right+se.width-C.value):se.left<-g.value?pe=-se.left:se.left+se.width>-g.value+C.value&&(pe=-(se.left+se.width-C.value)),b(0),v(F(pe))}else{let pe=h.value;se.top<-h.value?pe=-se.top:se.top+se.height>-h.value+w.value&&(pe=-(se.top+se.height-w.value)),v(0),b(F(pe))}},X=ne(0),J=ne(0);Le(()=>{let ce,se,pe,ge,he,me;const xe=M.value;["top","bottom"].includes(e.tabPosition)?(ce="width",ge=C.value,he=y.value,me=T.value,se=e.rtl?"right":"left",pe=Math.abs(g.value)):(ce="height",ge=w.value,he=y.value,me=E.value,se="top",pe=-h.value);let fe=ge;he+me>ge&&hepe+fe){we=Ae-1;break}}let Ie=0;for(let Ae=be-1;Ae>=0;Ae-=1)if((xe.get(de[Ae].key)||xx)[se]{z(()=>{var ce;const se=new Map,pe=(ce=a.value)===null||ce===void 0?void 0:ce.getBoundingClientRect();return r.value.forEach(ge=>{let{key:he}=ge;const me=d.value.get(he),xe=me?.$el||me;if(xe){const[fe,de,be,we]=WX(xe,pe);se.set(he,{width:fe,height:de,left:be,top:we})}}),se})};ye(()=>r.value.map(ce=>ce.key).join("%%"),()=>{Z()},{flush:"post"});const G=()=>{var ce,se,pe,ge,he;const me=((ce=l.value)===null||ce===void 0?void 0:ce.offsetWidth)||0,xe=((se=l.value)===null||se===void 0?void 0:se.offsetHeight)||0,fe=((pe=u.value)===null||pe===void 0?void 0:pe.$el)||{},de=fe.offsetWidth||0,be=fe.offsetHeight||0;O(me),I(xe),_(de),A(be);const we=(((ge=a.value)===null||ge===void 0?void 0:ge.offsetWidth)||0)-de,Ie=(((he=a.value)===null||he===void 0?void 0:he.offsetHeight)||0)-be;S(we),x(Ie),Z()},q=P(()=>[...r.value.slice(0,X.value),...r.value.slice(J.value+1)]),[V,K]=ht(),te=P(()=>M.value.get(e.activeKey)),ue=ne(),ie=()=>{qe.cancel(ue.value)};ye([te,f,()=>e.rtl],()=>{const ce={};te.value&&(f.value?(e.rtl?ce.right=Zi(te.value.right):ce.left=Zi(te.value.left),ce.width=Zi(te.value.width)):(ce.top=Zi(te.value.top),ce.height=Zi(te.value.height))),ie(),ue.value=qe(()=>{K(ce)})}),ye([()=>e.activeKey,te,M,f],()=>{ee()},{flush:"post"}),ye([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>r.value],()=>{G()},{flush:"post"});const ae=ce=>{let{position:se,prefixCls:pe,extra:ge}=ce;if(!ge)return null;const he=ge?.({position:se});return he?p("div",{class:`${pe}-extra-content`},[he]):null};return Qe(()=>{Q(),ie()}),()=>{const{id:ce,animated:se,activeKey:pe,rtl:ge,editable:he,locale:me,tabPosition:xe,tabBarGutter:fe,onTabClick:de}=e,{class:be,style:we}=n,Ie=i.value,Ae=!!q.value.length,Se=`${Ie}-nav-wrap`;let Ce,Oe,Me,Re;f.value?ge?(Oe=g.value>0,Ce=g.value+C.value{const{key:it}=et;return p(BX,{id:ce,prefixCls:Ie,key:it,tab:et,style:dt===0?void 0:_e,closable:et.closable,editable:he,active:it===pe,removeAriaLabel:me?.removeAriaLabel,ref:c(it),onClick:ft=>{de(it,ft)},onFocus:()=>{ee(it),Y(),l.value&&(ge||(l.value.scrollLeft=0),l.value.scrollTop=0)}},o)});return p("div",{role:"tablist",class:le(`${Ie}-nav`,be),style:we,onKeydown:()=>{Y()}},[p(ae,{position:"left",prefixCls:Ie,extra:o.leftExtra},null),p(Mo,{onResize:G},{default:()=>[p("div",{class:le(Se,{[`${Se}-ping-left`]:Ce,[`${Se}-ping-right`]:Oe,[`${Se}-ping-top`]:Me,[`${Se}-ping-bottom`]:Re}),ref:l},[p(Mo,{onResize:G},{default:()=>[p("div",{ref:a,class:`${Ie}-nav-list`,style:{transform:`translate(${g.value}px, ${h.value}px)`,transition:H.value?"none":void 0}},[Be,p(UI,{ref:u,prefixCls:Ie,locale:me,editable:he,style:m(m({},Be.length===0?void 0:_e),{visibility:Ae?"hidden":null})},null),p("div",{class:le(`${Ie}-ink-bar`,{[`${Ie}-ink-bar-animated`]:se.inkBar}),style:V.value},null)])]})])]}),p(LX,D(D({},e),{},{removeAriaLabel:me?.removeAriaLabel,ref:s,prefixCls:Ie,tabs:q.value,class:!Ae&&N.value}),k6(o,["moreIcon"])),p(ae,{position:"right",prefixCls:Ie,extra:o.rightExtra},null),p(ae,{position:"right",prefixCls:Ie,extra:o.tabBarExtraContent},null)])}}}),KX=oe({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(e){const{tabs:t,prefixCls:n}=qI();return()=>{const{id:o,activeKey:r,animated:i,tabPosition:l,rtl:a,destroyInactiveTabPane:s}=e,u=i.tabPane,c=n.value,d=t.value.findIndex(f=>f.key===r);return p("div",{class:`${c}-content-holder`},[p("div",{class:[`${c}-content`,`${c}-content-${l}`,{[`${c}-content-animated`]:u}],style:d&&u?{[a?"marginRight":"marginLeft"]:`-${d}00%`}:null},[t.value.map(f=>ut(f.node,{key:f.key,prefixCls:c,tabKey:f.key,id:o,animated:u,active:f.key===r,destroyInactiveTabPane:s}))])])}}});var GX={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"};function Ox(e){for(var t=1;t{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}`}}}}},[vr(e,"slide-up"),vr(e,"slide-down")]]},YX=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeadBackground:o,tabsCardGutter:r,colorSplit:i}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:o,border:`${e.lineWidth}px ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,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:`${r}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${r}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${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 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},qX=e=>{const{componentCls:t,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:m(m({},Ue(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:`${o}px 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":m(m({},Gt),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,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"}}})}})}},ZX=e=>{const{componentCls:t,margin:n,colorSplit:o}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${n}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${o}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, 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, - > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,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:e.controlHeight*1.25,[`${t}-tab`]:{padding:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${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:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${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:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},QX=e=>{const{componentCls:t,padding:n}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${n}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXXS*1.5}px ${n}px`}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px ${n}px ${e.paddingXXS*1.5}px`}}}}}},JX=e=>{const{componentCls:t,tabsActiveColor:n,tabsHoverColor:o,iconCls:r,tabsHorizontalGutter:i}=e,l=`${t}-tab`;return{[l]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":m({"&:focus:not(:focus-visible), &:active":{color:n}},Kr(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},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:o},[`&${l}-active ${l}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${r}`]:{margin:0},[r]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${i}px`}}}},eU=e=>{const{componentCls:t,tabsHorizontalGutter:n,iconCls:o,tabsCardGutter:r}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${n}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[o]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[o]:{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:`${r}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},tU=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeight:o,tabsCardGutter:r,tabsHoverColor:i,tabsActiveColor:l,colorSplit:a}=e;return{[t]:m(m(m(m({},Ue(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,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:m({minWidth:`${o}px`,marginLeft:{_skip_check_:!0,value:`${r}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${a}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:l}},Kr(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),JX(e)),{[`${t}-content`]:{position:"relative",display:"flex",width:"100%","&-animated":{transition:"margin 0.3s"}},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none",flex:"none",width:"100%"}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},nU=Ke("Tabs",e=>{const t=e.controlHeightLG,n=ke(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[QX(n),eU(n),ZX(n),qX(n),YX(n),tU(n),UX(n)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));let Px=0;const ZI=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:ve(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:Ne(),animated:Fe([Boolean,Object]),renderTabBar:ve(),tabBarGutter:{type:Number},tabBarStyle:De(),tabPosition:Ne(),destroyInactiveTabPane:$e(),hideAdd:Boolean,type:Ne(),size:Ne(),centered:Boolean,onEdit:ve(),onChange:ve(),onTabClick:ve(),onTabScroll:ve(),"onUpdate:activeKey":ve(),locale:De(),onPrevClick:ve(),onNextClick:ve(),tabBarExtraContent:W.any});function oU(e){return e.map(t=>{if(Kt(t)){const n=m({},t.props||{});for(const[f,g]of Object.entries(n))delete n[f],n[ka(f)]=g;const o=t.children||{},r=t.key!==void 0?t.key:void 0,{tab:i=o.tab,disabled:l,forceRender:a,closable:s,animated:u,active:c,destroyInactiveTabPane:d}=n;return m(m({key:r},n),{node:t,closeIcon:o.closeIcon,tab:i,disabled:l===""||l,forceRender:a===""||a,closable:s===""||s,animated:u===""||u,active:c===""||c,destroyInactiveTabPane:d===""||d})}return null}).filter(t=>t)}const rU=oe({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:m(m({},Ze(ZI(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:lt()}),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;Ct(e.onPrevClick===void 0&&e.onNextClick===void 0,"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),Ct(e.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),Ct(o.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:r,direction:i,size:l,rootPrefixCls:a,getPopupContainer:s}=Te("tabs",e),[u,c]=nU(r),d=P(()=>i.value==="rtl"),f=P(()=>{const{animated:w,tabPosition:I}=e;return w===!1||["left","right"].includes(I)?{inkBar:!1,tabPane:!1}:w===!0?{inkBar:!0,tabPane:!0}:m({inkBar:!0,tabPane:!1},typeof w=="object"?w:{})}),[g,v]=ht(!1);je(()=>{v(eb())});const[h,b]=Pt(()=>{var w;return(w=e.tabs[0])===null||w===void 0?void 0:w.key},{value:P(()=>e.activeKey),defaultValue:e.defaultActiveKey}),[y,S]=ht(()=>e.tabs.findIndex(w=>w.key===h.value));Le(()=>{var w;let I=e.tabs.findIndex(T=>T.key===h.value);I===-1&&(I=Math.max(0,Math.min(y.value,e.tabs.length-1)),b((w=e.tabs[I])===null||w===void 0?void 0:w.key)),S(I)});const[$,x]=Pt(null,{value:P(()=>e.id)}),C=P(()=>g.value&&!["left","right"].includes(e.tabPosition)?"top":e.tabPosition);je(()=>{e.id||(x(`rc-tabs-${Px}`),Px+=1)});const O=(w,I)=>{var T,M;(T=e.onTabClick)===null||T===void 0||T.call(e,w,I);const E=w!==h.value;b(w),E&&((M=e.onChange)===null||M===void 0||M.call(e,w))};return zX({tabs:P(()=>e.tabs),prefixCls:r}),()=>{const{id:w,type:I,tabBarGutter:T,tabBarStyle:M,locale:E,destroyInactiveTabPane:A,renderTabBar:R=o.renderTabBar,onTabScroll:z,hideAdd:_,centered:N}=e,B={id:$.value,activeKey:h.value,animated:f.value,tabPosition:C.value,rtl:d.value,mobile:g.value};let k;I==="editable-card"&&(k={onEdit:(j,Y)=>{let{key:Q,event:U}=Y;var ee;(ee=e.onEdit)===null||ee===void 0||ee.call(e,j==="add"?U:Q,j)},removeIcon:()=>p(Rn,null,null),addIcon:o.addIcon?o.addIcon:()=>p(uy,null,null),showAdd:_!==!0});let F;const L=m(m({},B),{moreTransitionName:`${a.value}-slide-up`,editable:k,locale:E,tabBarGutter:T,onTabClick:O,onTabScroll:z,style:M,getPopupContainer:s.value,popupClassName:le(e.popupClassName,c.value)});R?F=R(m(m({},L),{DefaultTabBar:wx})):F=p(wx,L,k6(o,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const H=r.value;return u(p("div",D(D({},n),{},{id:w,class:le(H,`${H}-${C.value}`,{[c.value]:!0,[`${H}-${l.value}`]:l.value,[`${H}-card`]:["card","editable-card"].includes(I),[`${H}-editable-card`]:I==="editable-card",[`${H}-centered`]:N,[`${H}-mobile`]:g.value,[`${H}-editable`]:I==="editable-card",[`${H}-rtl`]:d.value},n.class)}),[F,p(KX,D(D({destroyInactiveTabPane:A},B),{},{animated:f.value}),null)]))}}}),pl=oe({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:Ze(ZI(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const i=l=>{r("update:activeKey",l),r("change",l)};return()=>{var l;const a=oU(bt((l=o.default)===null||l===void 0?void 0:l.call(o)));return p(rU,D(D(D({},tt(e,["onUpdate:activeKey"])),n),{},{onChange:i,tabs:a}),o)}}}),iU=()=>({tab:W.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}}),yf=oe({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:iU(),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const r=re(e.forceRender);ye([()=>e.active,()=>e.destroyInactiveTabPane],()=>{e.active?r.value=!0:e.destroyInactiveTabPane&&(r.value=!1)},{immediate:!0});const i=P(()=>e.active?{}:e.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"});return()=>{var l;const{prefixCls:a,forceRender:s,id:u,active:c,tabKey:d}=e;return p("div",{id:u&&`${u}-panel-${d}`,role:"tabpanel",tabindex:c?0:-1,"aria-labelledby":u&&`${u}-tab-${d}`,"aria-hidden":!c,style:[i.value,n.style],class:[`${a}-tabpane`,c&&`${a}-tabpane-active`,n.class]},[(c||r.value||s)&&((l=o.default)===null||l===void 0?void 0:l.call(o))])}}});pl.TabPane=yf;pl.install=function(e){return e.component(pl.name,pl),e.component(yf.name,yf),e};const lU=e=>{const{antCls:t,componentCls:n,cardHeadHeight:o,cardPaddingBase:r,cardHeadTabsMarginBottom:i}=e;return m(m({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:o,marginBottom:-1,padding:`0 ${r}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},Xo()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":m(m({display:"inline-block",flex:1},Gt),{[` + > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${n}px`,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:e.controlHeight*1.25,[`${t}-tab`]:{padding:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${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:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${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:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},QX=e=>{const{componentCls:t,padding:n}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${n}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXXS*1.5}px ${n}px`}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px ${n}px ${e.paddingXXS*1.5}px`}}}}}},JX=e=>{const{componentCls:t,tabsActiveColor:n,tabsHoverColor:o,iconCls:r,tabsHorizontalGutter:i}=e,l=`${t}-tab`;return{[l]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":m({"&:focus:not(:focus-visible), &:active":{color:n}},Kr(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},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:o},[`&${l}-active ${l}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${r}`]:{margin:0},[r]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${i}px`}}}},eU=e=>{const{componentCls:t,tabsHorizontalGutter:n,iconCls:o,tabsCardGutter:r}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${n}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[o]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[o]:{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:`${r}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},tU=e=>{const{componentCls:t,tabsCardHorizontalPadding:n,tabsCardHeight:o,tabsCardGutter:r,tabsHoverColor:i,tabsActiveColor:l,colorSplit:a}=e;return{[t]:m(m(m(m({},Ue(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,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:m({minWidth:`${o}px`,marginLeft:{_skip_check_:!0,value:`${r}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${a}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:l}},Kr(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),JX(e)),{[`${t}-content`]:{position:"relative",display:"flex",width:"100%","&-animated":{transition:"margin 0.3s"}},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none",flex:"none",width:"100%"}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},nU=Ke("Tabs",e=>{const t=e.controlHeightLG,n=ke(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[QX(n),eU(n),ZX(n),qX(n),YX(n),tU(n),UX(n)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));let Px=0;const ZI=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:ve(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:Ne(),animated:Fe([Boolean,Object]),renderTabBar:ve(),tabBarGutter:{type:Number},tabBarStyle:De(),tabPosition:Ne(),destroyInactiveTabPane:$e(),hideAdd:Boolean,type:Ne(),size:Ne(),centered:Boolean,onEdit:ve(),onChange:ve(),onTabClick:ve(),onTabScroll:ve(),"onUpdate:activeKey":ve(),locale:De(),onPrevClick:ve(),onNextClick:ve(),tabBarExtraContent:W.any});function oU(e){return e.map(t=>{if(Kt(t)){const n=m({},t.props||{});for(const[f,g]of Object.entries(n))delete n[f],n[ka(f)]=g;const o=t.children||{},r=t.key!==void 0?t.key:void 0,{tab:i=o.tab,disabled:l,forceRender:a,closable:s,animated:u,active:c,destroyInactiveTabPane:d}=n;return m(m({key:r},n),{node:t,closeIcon:o.closeIcon,tab:i,disabled:l===""||l,forceRender:a===""||a,closable:s===""||s,animated:u===""||u,active:c===""||c,destroyInactiveTabPane:d===""||d})}return null}).filter(t=>t)}const rU=oe({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:m(m({},Ze(ZI(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:lt()}),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;Ct(e.onPrevClick===void 0&&e.onNextClick===void 0,"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),Ct(e.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),Ct(o.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:r,direction:i,size:l,rootPrefixCls:a,getPopupContainer:s}=Te("tabs",e),[u,c]=nU(r),d=P(()=>i.value==="rtl"),f=P(()=>{const{animated:w,tabPosition:I}=e;return w===!1||["left","right"].includes(I)?{inkBar:!1,tabPane:!1}:w===!0?{inkBar:!0,tabPane:!0}:m({inkBar:!0,tabPane:!1},typeof w=="object"?w:{})}),[g,v]=ht(!1);je(()=>{v(eb())});const[h,b]=Pt(()=>{var w;return(w=e.tabs[0])===null||w===void 0?void 0:w.key},{value:P(()=>e.activeKey),defaultValue:e.defaultActiveKey}),[y,S]=ht(()=>e.tabs.findIndex(w=>w.key===h.value));Le(()=>{var w;let I=e.tabs.findIndex(T=>T.key===h.value);I===-1&&(I=Math.max(0,Math.min(y.value,e.tabs.length-1)),b((w=e.tabs[I])===null||w===void 0?void 0:w.key)),S(I)});const[$,x]=Pt(null,{value:P(()=>e.id)}),C=P(()=>g.value&&!["left","right"].includes(e.tabPosition)?"top":e.tabPosition);je(()=>{e.id||(x(`rc-tabs-${Px}`),Px+=1)});const O=(w,I)=>{var T,_;(T=e.onTabClick)===null||T===void 0||T.call(e,w,I);const E=w!==h.value;b(w),E&&((_=e.onChange)===null||_===void 0||_.call(e,w))};return zX({tabs:P(()=>e.tabs),prefixCls:r}),()=>{const{id:w,type:I,tabBarGutter:T,tabBarStyle:_,locale:E,destroyInactiveTabPane:A,renderTabBar:R=o.renderTabBar,onTabScroll:z,hideAdd:M,centered:N}=e,B={id:$.value,activeKey:h.value,animated:f.value,tabPosition:C.value,rtl:d.value,mobile:g.value};let k;I==="editable-card"&&(k={onEdit:(j,Y)=>{let{key:Q,event:U}=Y;var ee;(ee=e.onEdit)===null||ee===void 0||ee.call(e,j==="add"?U:Q,j)},removeIcon:()=>p(Rn,null,null),addIcon:o.addIcon?o.addIcon:()=>p(uy,null,null),showAdd:M!==!0});let F;const L=m(m({},B),{moreTransitionName:`${a.value}-slide-up`,editable:k,locale:E,tabBarGutter:T,onTabClick:O,onTabScroll:z,style:_,getPopupContainer:s.value,popupClassName:le(e.popupClassName,c.value)});R?F=R(m(m({},L),{DefaultTabBar:wx})):F=p(wx,L,k6(o,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const H=r.value;return u(p("div",D(D({},n),{},{id:w,class:le(H,`${H}-${C.value}`,{[c.value]:!0,[`${H}-${l.value}`]:l.value,[`${H}-card`]:["card","editable-card"].includes(I),[`${H}-editable-card`]:I==="editable-card",[`${H}-centered`]:N,[`${H}-mobile`]:g.value,[`${H}-editable`]:I==="editable-card",[`${H}-rtl`]:d.value},n.class)}),[F,p(KX,D(D({destroyInactiveTabPane:A},B),{},{animated:f.value}),null)]))}}}),pl=oe({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:Ze(ZI(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const i=l=>{r("update:activeKey",l),r("change",l)};return()=>{var l;const a=oU(bt((l=o.default)===null||l===void 0?void 0:l.call(o)));return p(rU,D(D(D({},tt(e,["onUpdate:activeKey"])),n),{},{onChange:i,tabs:a}),o)}}}),iU=()=>({tab:W.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}}),yf=oe({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:iU(),slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const r=re(e.forceRender);ye([()=>e.active,()=>e.destroyInactiveTabPane],()=>{e.active?r.value=!0:e.destroyInactiveTabPane&&(r.value=!1)},{immediate:!0});const i=P(()=>e.active?{}:e.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"});return()=>{var l;const{prefixCls:a,forceRender:s,id:u,active:c,tabKey:d}=e;return p("div",{id:u&&`${u}-panel-${d}`,role:"tabpanel",tabindex:c?0:-1,"aria-labelledby":u&&`${u}-tab-${d}`,"aria-hidden":!c,style:[i.value,n.style],class:[`${a}-tabpane`,c&&`${a}-tabpane-active`,n.class]},[(c||r.value||s)&&((l=o.default)===null||l===void 0?void 0:l.call(o))])}}});pl.TabPane=yf;pl.install=function(e){return e.component(pl.name,pl),e.component(yf.name,yf),e};const lU=e=>{const{antCls:t,componentCls:n,cardHeadHeight:o,cardPaddingBase:r,cardHeadTabsMarginBottom:i}=e;return m(m({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:o,marginBottom:-1,padding:`0 ${r}px`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,background:"transparent",borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},Xo()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":m(m({display:"inline-block",flex:1},Gt),{[` > ${n}-typography, > ${n}-typography-edit-content `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`}}})},aU=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:o,lineWidth:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` @@ -281,12 +281,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ${i}, ${l}, ${a} - `]:m({},yU(e))}}},Fc=Ke("Skeleton",e=>{const{componentCls:t}=e,n=ke(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:e.controlHeight*1.5,skeletonTitleHeight:e.controlHeight/2,skeletonBlockRadius:e.borderRadiusSM,skeletonParagraphLineHeight:e.controlHeight/2,skeletonParagraphMarginTop:e.marginLG+e.marginXXS,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.color} 25%, ${e.colorGradientEnd} 37%, ${e.color} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[wU(n)]},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n}}),OU=()=>({active:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},prefixCls:String,avatar:{type:[Boolean,Object],default:void 0},title:{type:[Boolean,Object],default:void 0},paragraph:{type:[Boolean,Object],default:void 0},round:{type:Boolean,default:void 0}});function Sh(e){return e&&typeof e=="object"?e:{}}function PU(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function IU(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function TU(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const wn=oe({compatConfig:{MODE:3},name:"ASkeleton",props:Ze(OU(),{avatar:!1,title:!0,paragraph:!0}),setup(e,t){let{slots:n}=t;const{prefixCls:o,direction:r}=Te("skeleton",e),[i,l]=Fc(o);return()=>{var a;const{loading:s,avatar:u,title:c,paragraph:d,active:f,round:g}=e,v=o.value;if(s||e.loading===void 0){const h=!!u||u==="",b=!!c||c==="",y=!!d||d==="";let S;if(h){const C=m(m({prefixCls:`${v}-avatar`},PU(b,y)),Sh(u));S=p("div",{class:`${v}-header`},[p(kc,C,null)])}let $;if(b||y){let C;if(b){const w=m(m({prefixCls:`${v}-title`},IU(h,y)),Sh(c));C=p(Wp,w,null)}let O;if(y){const w=m(m({prefixCls:`${v}-paragraph`},TU(h,b)),Sh(d));O=p(mU,w,null)}$=p("div",{class:`${v}-content`},[C,O])}const x=le(v,{[`${v}-with-avatar`]:h,[`${v}-active`]:f,[`${v}-rtl`]:r.value==="rtl",[`${v}-round`]:g,[l.value]:!0});return i(p("div",{class:x},[S,$]))}return(a=n.default)===null||a===void 0?void 0:a.call(n)}}}),EU=()=>m(m({},Kp()),{size:String,block:Boolean}),dy=oe({compatConfig:{MODE:3},name:"ASkeletonButton",props:Ze(EU(),{size:"default"}),setup(e){const{prefixCls:t}=Te("skeleton",e),[n,o]=Fc(t),r=P(()=>le(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},o.value));return()=>n(p("div",{class:r.value},[p(kc,D(D({},e),{},{prefixCls:`${t.value}-button`}),null)]))}}),fy=oe({compatConfig:{MODE:3},name:"ASkeletonInput",props:m(m({},tt(Kp(),["shape"])),{size:String,block:Boolean}),setup(e){const{prefixCls:t}=Te("skeleton",e),[n,o]=Fc(t),r=P(()=>le(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},o.value));return()=>n(p("div",{class:r.value},[p(kc,D(D({},e),{},{prefixCls:`${t.value}-input`}),null)]))}}),MU="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",py=oe({compatConfig:{MODE:3},name:"ASkeletonImage",props:tt(Kp(),["size","shape","active"]),setup(e){const{prefixCls:t}=Te("skeleton",e),[n,o]=Fc(t),r=P(()=>le(t.value,`${t.value}-element`,o.value));return()=>n(p("div",{class:r.value},[p("div",{class:`${t.value}-image`},[p("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",class:`${t.value}-image-svg`},[p("path",{d:MU,class:`${t.value}-image-path`},null)])])]))}}),_U=()=>m(m({},Kp()),{shape:String}),gy=oe({compatConfig:{MODE:3},name:"ASkeletonAvatar",props:Ze(_U(),{size:"default",shape:"circle"}),setup(e){const{prefixCls:t}=Te("skeleton",e),[n,o]=Fc(t),r=P(()=>le(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active},o.value));return()=>n(p("div",{class:r.value},[p(kc,D(D({},e),{},{prefixCls:`${t.value}-avatar`}),null)]))}});wn.Button=dy;wn.Avatar=gy;wn.Input=fy;wn.Image=py;wn.Title=Wp;wn.install=function(e){return e.component(wn.name,wn),e.component(wn.Button.name,dy),e.component(wn.Avatar.name,gy),e.component(wn.Input.name,fy),e.component(wn.Image.name,py),e.component(wn.Title.name,Wp),e};const{TabPane:AU}=pl,RU=()=>({prefixCls:String,title:W.any,extra:W.any,bordered:{type:Boolean,default:!0},bodyStyle:{type:Object,default:void 0},headStyle:{type:Object,default:void 0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},type:{type:String},size:{type:String},actions:W.any,tabList:{type:Array},tabBarExtraContent:W.any,activeTabKey:String,defaultActiveTabKey:String,cover:W.any,onTabChange:{type:Function}}),ma=oe({compatConfig:{MODE:3},name:"ACard",inheritAttrs:!1,props:RU(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i,size:l}=Te("card",e),[a,s]=gU(r),u=f=>f.map((v,h)=>qt(v)&&!Oc(v)||!qt(v)?p("li",{style:{width:`${100/f.length}%`},key:`action-${h}`},[p("span",null,[v])]):null),c=f=>{var g;(g=e.onTabChange)===null||g===void 0||g.call(e,f)},d=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g;return f.forEach(v=>{v&&mb(v.type)&&v.type.__ANT_CARD_GRID&&(g=!0)}),g};return()=>{var f,g,v,h,b,y;const{headStyle:S={},bodyStyle:$={},loading:x,bordered:C=!0,type:O,tabList:w,hoverable:I,activeTabKey:T,defaultActiveTabKey:M,tabBarExtraContent:E=ls((f=n.tabBarExtraContent)===null||f===void 0?void 0:f.call(n)),title:A=ls((g=n.title)===null||g===void 0?void 0:g.call(n)),extra:R=ls((v=n.extra)===null||v===void 0?void 0:v.call(n)),actions:z=ls((h=n.actions)===null||h===void 0?void 0:h.call(n)),cover:_=ls((b=n.cover)===null||b===void 0?void 0:b.call(n))}=e,N=bt((y=n.default)===null||y===void 0?void 0:y.call(n)),B=r.value,k={[`${B}`]:!0,[s.value]:!0,[`${B}-loading`]:x,[`${B}-bordered`]:C,[`${B}-hoverable`]:!!I,[`${B}-contain-grid`]:d(N),[`${B}-contain-tabs`]:w&&w.length,[`${B}-${l.value}`]:l.value,[`${B}-type-${O}`]:!!O,[`${B}-rtl`]:i.value==="rtl"},F=p(wn,{loading:!0,active:!0,paragraph:{rows:4},title:!1},{default:()=>[N]}),L=T!==void 0,H={size:"large",[L?"activeKey":"defaultActiveKey"]:L?T:M,onChange:c,class:`${B}-head-tabs`};let j;const Y=w&&w.length?p(pl,H,{default:()=>[w.map(X=>{const{tab:J,slots:Z}=X,G=Z?.tab;Ct(!Z,"Card","tabList slots is deprecated, Please use `customTab` instead.");let q=J!==void 0?J:n[G]?n[G](X):null;return q=vp(n,"customTab",X,()=>[q]),p(AU,{tab:q,key:X.key,disabled:X.disabled},null)})],rightExtra:E?()=>E:null}):null;(A||R||Y)&&(j=p("div",{class:`${B}-head`,style:S},[p("div",{class:`${B}-head-wrapper`},[A&&p("div",{class:`${B}-head-title`},[A]),R&&p("div",{class:`${B}-extra`},[R])]),Y]));const Q=_?p("div",{class:`${B}-cover`},[_]):null,U=p("div",{class:`${B}-body`,style:$},[x?F:N]),ee=z&&z.length?p("ul",{class:`${B}-actions`},[u(z)]):null;return a(p("div",D(D({ref:"cardContainerRef"},o),{},{class:[k,o.class]}),[j,Q,N&&N.length?U:null,ee]))}}}),DU=()=>({prefixCls:String,title:Pn(),description:Pn(),avatar:Pn()}),Sf=oe({compatConfig:{MODE:3},name:"ACardMeta",props:DU(),slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=Te("card",e);return()=>{const r={[`${o.value}-meta`]:!0},i=Zt(n,e,"avatar"),l=Zt(n,e,"title"),a=Zt(n,e,"description"),s=i?p("div",{class:`${o.value}-meta-avatar`},[i]):null,u=l?p("div",{class:`${o.value}-meta-title`},[l]):null,c=a?p("div",{class:`${o.value}-meta-description`},[a]):null,d=u||c?p("div",{class:`${o.value}-meta-detail`},[u,c]):null;return p("div",{class:r},[s,d])}}}),NU=()=>({prefixCls:String,hoverable:{type:Boolean,default:!0}}),$f=oe({compatConfig:{MODE:3},name:"ACardGrid",__ANT_CARD_GRID:!0,props:NU(),setup(e,t){let{slots:n}=t;const{prefixCls:o}=Te("card",e),r=P(()=>({[`${o.value}-grid`]:!0,[`${o.value}-grid-hoverable`]:e.hoverable}));return()=>{var i;return p("div",{class:r.value},[(i=n.default)===null||i===void 0?void 0:i.call(n)])}}});ma.Meta=Sf;ma.Grid=$f;ma.install=function(e){return e.component(ma.name,ma),e.component(Sf.name,Sf),e.component($f.name,$f),e};const BU=()=>({prefixCls:String,activeKey:Fe([Array,Number,String]),defaultActiveKey:Fe([Array,Number,String]),accordion:$e(),destroyInactivePanel:$e(),bordered:$e(),expandIcon:ve(),openAnimation:W.object,expandIconPosition:Ne(),collapsible:Ne(),ghost:$e(),onChange:ve(),"onUpdate:activeKey":ve()}),QI=()=>({openAnimation:W.object,prefixCls:String,header:W.any,headerClass:String,showArrow:$e(),isActive:$e(),destroyInactivePanel:$e(),disabled:$e(),accordion:$e(),forceRender:$e(),expandIcon:ve(),extra:W.any,panelKey:Fe(),collapsible:Ne(),role:String,onItemClick:ve()}),kU=e=>{const{componentCls:t,collapseContentBg:n,padding:o,collapseContentPaddingHorizontal:r,collapseHeaderBg:i,collapseHeaderPadding:l,collapsePanelBorderRadius:a,lineWidth:s,lineType:u,colorBorder:c,colorText:d,colorTextHeading:f,colorTextDisabled:g,fontSize:v,lineHeight:h,marginSM:b,paddingSM:y,motionDurationSlow:S,fontSizeIcon:$}=e,x=`${s}px ${u} ${c}`;return{[t]:m(m({},Ue(e)),{backgroundColor:i,border:x,borderBottom:0,borderRadius:`${a}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:x,"&:last-child":{[` + `]:m({},yU(e))}}},Fc=Ke("Skeleton",e=>{const{componentCls:t}=e,n=ke(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:e.controlHeight*1.5,skeletonTitleHeight:e.controlHeight/2,skeletonBlockRadius:e.borderRadiusSM,skeletonParagraphLineHeight:e.controlHeight/2,skeletonParagraphMarginTop:e.marginLG+e.marginXXS,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.color} 25%, ${e.colorGradientEnd} 37%, ${e.color} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[wU(n)]},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n}}),OU=()=>({active:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},prefixCls:String,avatar:{type:[Boolean,Object],default:void 0},title:{type:[Boolean,Object],default:void 0},paragraph:{type:[Boolean,Object],default:void 0},round:{type:Boolean,default:void 0}});function Sh(e){return e&&typeof e=="object"?e:{}}function PU(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function IU(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function TU(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const wn=oe({compatConfig:{MODE:3},name:"ASkeleton",props:Ze(OU(),{avatar:!1,title:!0,paragraph:!0}),setup(e,t){let{slots:n}=t;const{prefixCls:o,direction:r}=Te("skeleton",e),[i,l]=Fc(o);return()=>{var a;const{loading:s,avatar:u,title:c,paragraph:d,active:f,round:g}=e,v=o.value;if(s||e.loading===void 0){const h=!!u||u==="",b=!!c||c==="",y=!!d||d==="";let S;if(h){const C=m(m({prefixCls:`${v}-avatar`},PU(b,y)),Sh(u));S=p("div",{class:`${v}-header`},[p(kc,C,null)])}let $;if(b||y){let C;if(b){const w=m(m({prefixCls:`${v}-title`},IU(h,y)),Sh(c));C=p(Wp,w,null)}let O;if(y){const w=m(m({prefixCls:`${v}-paragraph`},TU(h,b)),Sh(d));O=p(mU,w,null)}$=p("div",{class:`${v}-content`},[C,O])}const x=le(v,{[`${v}-with-avatar`]:h,[`${v}-active`]:f,[`${v}-rtl`]:r.value==="rtl",[`${v}-round`]:g,[l.value]:!0});return i(p("div",{class:x},[S,$]))}return(a=n.default)===null||a===void 0?void 0:a.call(n)}}}),EU=()=>m(m({},Kp()),{size:String,block:Boolean}),dy=oe({compatConfig:{MODE:3},name:"ASkeletonButton",props:Ze(EU(),{size:"default"}),setup(e){const{prefixCls:t}=Te("skeleton",e),[n,o]=Fc(t),r=P(()=>le(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},o.value));return()=>n(p("div",{class:r.value},[p(kc,D(D({},e),{},{prefixCls:`${t.value}-button`}),null)]))}}),fy=oe({compatConfig:{MODE:3},name:"ASkeletonInput",props:m(m({},tt(Kp(),["shape"])),{size:String,block:Boolean}),setup(e){const{prefixCls:t}=Te("skeleton",e),[n,o]=Fc(t),r=P(()=>le(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active,[`${t.value}-block`]:e.block},o.value));return()=>n(p("div",{class:r.value},[p(kc,D(D({},e),{},{prefixCls:`${t.value}-input`}),null)]))}}),MU="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",py=oe({compatConfig:{MODE:3},name:"ASkeletonImage",props:tt(Kp(),["size","shape","active"]),setup(e){const{prefixCls:t}=Te("skeleton",e),[n,o]=Fc(t),r=P(()=>le(t.value,`${t.value}-element`,o.value));return()=>n(p("div",{class:r.value},[p("div",{class:`${t.value}-image`},[p("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",class:`${t.value}-image-svg`},[p("path",{d:MU,class:`${t.value}-image-path`},null)])])]))}}),_U=()=>m(m({},Kp()),{shape:String}),gy=oe({compatConfig:{MODE:3},name:"ASkeletonAvatar",props:Ze(_U(),{size:"default",shape:"circle"}),setup(e){const{prefixCls:t}=Te("skeleton",e),[n,o]=Fc(t),r=P(()=>le(t.value,`${t.value}-element`,{[`${t.value}-active`]:e.active},o.value));return()=>n(p("div",{class:r.value},[p(kc,D(D({},e),{},{prefixCls:`${t.value}-avatar`}),null)]))}});wn.Button=dy;wn.Avatar=gy;wn.Input=fy;wn.Image=py;wn.Title=Wp;wn.install=function(e){return e.component(wn.name,wn),e.component(wn.Button.name,dy),e.component(wn.Avatar.name,gy),e.component(wn.Input.name,fy),e.component(wn.Image.name,py),e.component(wn.Title.name,Wp),e};const{TabPane:AU}=pl,RU=()=>({prefixCls:String,title:W.any,extra:W.any,bordered:{type:Boolean,default:!0},bodyStyle:{type:Object,default:void 0},headStyle:{type:Object,default:void 0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},type:{type:String},size:{type:String},actions:W.any,tabList:{type:Array},tabBarExtraContent:W.any,activeTabKey:String,defaultActiveTabKey:String,cover:W.any,onTabChange:{type:Function}}),ma=oe({compatConfig:{MODE:3},name:"ACard",inheritAttrs:!1,props:RU(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i,size:l}=Te("card",e),[a,s]=gU(r),u=f=>f.map((v,h)=>qt(v)&&!Oc(v)||!qt(v)?p("li",{style:{width:`${100/f.length}%`},key:`action-${h}`},[p("span",null,[v])]):null),c=f=>{var g;(g=e.onTabChange)===null||g===void 0||g.call(e,f)},d=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],g;return f.forEach(v=>{v&&mb(v.type)&&v.type.__ANT_CARD_GRID&&(g=!0)}),g};return()=>{var f,g,v,h,b,y;const{headStyle:S={},bodyStyle:$={},loading:x,bordered:C=!0,type:O,tabList:w,hoverable:I,activeTabKey:T,defaultActiveTabKey:_,tabBarExtraContent:E=ls((f=n.tabBarExtraContent)===null||f===void 0?void 0:f.call(n)),title:A=ls((g=n.title)===null||g===void 0?void 0:g.call(n)),extra:R=ls((v=n.extra)===null||v===void 0?void 0:v.call(n)),actions:z=ls((h=n.actions)===null||h===void 0?void 0:h.call(n)),cover:M=ls((b=n.cover)===null||b===void 0?void 0:b.call(n))}=e,N=bt((y=n.default)===null||y===void 0?void 0:y.call(n)),B=r.value,k={[`${B}`]:!0,[s.value]:!0,[`${B}-loading`]:x,[`${B}-bordered`]:C,[`${B}-hoverable`]:!!I,[`${B}-contain-grid`]:d(N),[`${B}-contain-tabs`]:w&&w.length,[`${B}-${l.value}`]:l.value,[`${B}-type-${O}`]:!!O,[`${B}-rtl`]:i.value==="rtl"},F=p(wn,{loading:!0,active:!0,paragraph:{rows:4},title:!1},{default:()=>[N]}),L=T!==void 0,H={size:"large",[L?"activeKey":"defaultActiveKey"]:L?T:_,onChange:c,class:`${B}-head-tabs`};let j;const Y=w&&w.length?p(pl,H,{default:()=>[w.map(X=>{const{tab:J,slots:Z}=X,G=Z?.tab;Ct(!Z,"Card","tabList slots is deprecated, Please use `customTab` instead.");let q=J!==void 0?J:n[G]?n[G](X):null;return q=vp(n,"customTab",X,()=>[q]),p(AU,{tab:q,key:X.key,disabled:X.disabled},null)})],rightExtra:E?()=>E:null}):null;(A||R||Y)&&(j=p("div",{class:`${B}-head`,style:S},[p("div",{class:`${B}-head-wrapper`},[A&&p("div",{class:`${B}-head-title`},[A]),R&&p("div",{class:`${B}-extra`},[R])]),Y]));const Q=M?p("div",{class:`${B}-cover`},[M]):null,U=p("div",{class:`${B}-body`,style:$},[x?F:N]),ee=z&&z.length?p("ul",{class:`${B}-actions`},[u(z)]):null;return a(p("div",D(D({ref:"cardContainerRef"},o),{},{class:[k,o.class]}),[j,Q,N&&N.length?U:null,ee]))}}}),DU=()=>({prefixCls:String,title:Pn(),description:Pn(),avatar:Pn()}),Sf=oe({compatConfig:{MODE:3},name:"ACardMeta",props:DU(),slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=Te("card",e);return()=>{const r={[`${o.value}-meta`]:!0},i=Zt(n,e,"avatar"),l=Zt(n,e,"title"),a=Zt(n,e,"description"),s=i?p("div",{class:`${o.value}-meta-avatar`},[i]):null,u=l?p("div",{class:`${o.value}-meta-title`},[l]):null,c=a?p("div",{class:`${o.value}-meta-description`},[a]):null,d=u||c?p("div",{class:`${o.value}-meta-detail`},[u,c]):null;return p("div",{class:r},[s,d])}}}),NU=()=>({prefixCls:String,hoverable:{type:Boolean,default:!0}}),$f=oe({compatConfig:{MODE:3},name:"ACardGrid",__ANT_CARD_GRID:!0,props:NU(),setup(e,t){let{slots:n}=t;const{prefixCls:o}=Te("card",e),r=P(()=>({[`${o.value}-grid`]:!0,[`${o.value}-grid-hoverable`]:e.hoverable}));return()=>{var i;return p("div",{class:r.value},[(i=n.default)===null||i===void 0?void 0:i.call(n)])}}});ma.Meta=Sf;ma.Grid=$f;ma.install=function(e){return e.component(ma.name,ma),e.component(Sf.name,Sf),e.component($f.name,$f),e};const BU=()=>({prefixCls:String,activeKey:Fe([Array,Number,String]),defaultActiveKey:Fe([Array,Number,String]),accordion:$e(),destroyInactivePanel:$e(),bordered:$e(),expandIcon:ve(),openAnimation:W.object,expandIconPosition:Ne(),collapsible:Ne(),ghost:$e(),onChange:ve(),"onUpdate:activeKey":ve()}),QI=()=>({openAnimation:W.object,prefixCls:String,header:W.any,headerClass:String,showArrow:$e(),isActive:$e(),destroyInactivePanel:$e(),disabled:$e(),accordion:$e(),forceRender:$e(),expandIcon:ve(),extra:W.any,panelKey:Fe(),collapsible:Ne(),role:String,onItemClick:ve()}),kU=e=>{const{componentCls:t,collapseContentBg:n,padding:o,collapseContentPaddingHorizontal:r,collapseHeaderBg:i,collapseHeaderPadding:l,collapsePanelBorderRadius:a,lineWidth:s,lineType:u,colorBorder:c,colorText:d,colorTextHeading:f,colorTextDisabled:g,fontSize:v,lineHeight:h,marginSM:b,paddingSM:y,motionDurationSlow:S,fontSizeIcon:$}=e,x=`${s}px ${u} ${c}`;return{[t]:m(m({},Ue(e)),{backgroundColor:i,border:x,borderBottom:0,borderRadius:`${a}px`,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:x,"&:last-child":{[` &, & > ${t}-header`]:{borderRadius:`0 0 ${a}px ${a}px`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:l,color:f,lineHeight:h,cursor:"pointer",transition:`all ${S}, visibility 0s`,[`> ${t}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${t}-expand-icon`]:{height:v*h,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:m(m({},Tl()),{fontSize:$,svg:{transition:`transform ${S}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}},[`${t}-header-collapsible-only`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-icon-collapsible-only`]:{cursor:"default",[`${t}-expand-icon`]:{cursor:"pointer"}},[`&${t}-no-arrow`]:{[`> ${t}-header`]:{paddingInlineStart:y}}},[`${t}-content`]:{color:d,backgroundColor:n,borderTop:x,[`& > ${t}-content-box`]:{padding:`${o}px ${r}px`},"&-hidden":{display:"none"}},[`${t}-item:last-child`]:{[`> ${t}-content`]:{borderRadius:`0 0 ${a}px ${a}px`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:g,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},FU=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow svg`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},LU=e=>{const{componentCls:t,collapseHeaderBg:n,paddingXXS:o,colorBorder:r}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${r}`},[` > ${t}-item:last-child, > ${t}-item:last-child ${t}-header - `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:o}}}},zU=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},HU=Ke("Collapse",e=>{const t=ke(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[kU(t),LU(t),zU(t),FU(t),_c(t)]});function Tx(e){let t=e;if(!Array.isArray(t)){const n=typeof t;t=n==="number"||n==="string"?[t]:[]}return t.map(n=>String(n))}const Fs=oe({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:Ze(BU(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,expandIconPosition:"start"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const i=re(Tx(rf([e.activeKey,e.defaultActiveKey])));ye(()=>e.activeKey,()=>{i.value=Tx(e.activeKey)},{deep:!0});const{prefixCls:l,direction:a,rootPrefixCls:s}=Te("collapse",e),[u,c]=HU(l),d=P(()=>{const{expandIconPosition:y}=e;return y!==void 0?y:a.value==="rtl"?"end":"start"}),f=y=>{const{expandIcon:S=o.expandIcon}=e,$=S?S(y):p(ho,{rotate:y.isActive?90:void 0},null);return p("div",{class:[`${l.value}-expand-icon`,c.value],onClick:()=>["header","icon"].includes(e.collapsible)&&v(y.panelKey)},[Kt(Array.isArray(S)?$[0]:$)?ut($,{class:`${l.value}-arrow`},!1):$])},g=y=>{e.activeKey===void 0&&(i.value=y);const S=e.accordion?y[0]:y;r("update:activeKey",S),r("change",S)},v=y=>{let S=i.value;if(e.accordion)S=S[0]===y?[]:[y];else{S=[...S];const $=S.indexOf(y);$>-1?S.splice($,1):S.push(y)}g(S)},h=(y,S)=>{var $,x,C;if(Oc(y))return;const O=i.value,{accordion:w,destroyInactivePanel:I,collapsible:T,openAnimation:M}=e,E=M||Rc(`${s.value}-motion-collapse`),A=String(($=y.key)!==null&&$!==void 0?$:S),{header:R=(C=(x=y.children)===null||x===void 0?void 0:x.header)===null||C===void 0?void 0:C.call(x),headerClass:z,collapsible:_,disabled:N}=y.props||{};let B=!1;w?B=O[0]===A:B=O.indexOf(A)>-1;let k=_??T;(N||N==="")&&(k="disabled");const F={key:A,panelKey:A,header:R,headerClass:z,isActive:B,prefixCls:l.value,destroyInactivePanel:I,openAnimation:E,accordion:w,onItemClick:k==="disabled"?null:v,expandIcon:f,collapsible:k};return ut(y,F)},b=()=>{var y;return bt((y=o.default)===null||y===void 0?void 0:y.call(o)).map(h)};return()=>{const{accordion:y,bordered:S,ghost:$}=e,x=le(l.value,{[`${l.value}-borderless`]:!S,[`${l.value}-icon-position-${d.value}`]:!0,[`${l.value}-rtl`]:a.value==="rtl",[`${l.value}-ghost`]:!!$,[n.class]:!!n.class},c.value);return u(p("div",D(D({class:x},k_(n)),{},{style:n.style,role:y?"tablist":null}),[b()]))}}}),jU=oe({compatConfig:{MODE:3},name:"PanelContent",props:QI(),setup(e,t){let{slots:n}=t;const o=ne(!1);return Le(()=>{(e.isActive||e.forceRender)&&(o.value=!0)}),()=>{var r;if(!o.value)return null;const{prefixCls:i,isActive:l,role:a}=e;return p("div",{class:le(`${i}-content`,{[`${i}-content-active`]:l,[`${i}-content-inactive`]:!l}),role:a},[p("div",{class:`${i}-content-box`},[(r=n.default)===null||r===void 0?void 0:r.call(n)])])}}}),Cf=oe({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:Ze(QI(),{showArrow:!0,isActive:!1,onItemClick(){},headerClass:"",forceRender:!1}),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;Ct(e.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');const{prefixCls:i}=Te("collapse",e),l=()=>{o("itemClick",e.panelKey)},a=s=>{(s.key==="Enter"||s.keyCode===13||s.which===13)&&l()};return()=>{var s,u;const{header:c=(s=n.header)===null||s===void 0?void 0:s.call(n),headerClass:d,isActive:f,showArrow:g,destroyInactivePanel:v,accordion:h,forceRender:b,openAnimation:y,expandIcon:S=n.expandIcon,extra:$=(u=n.extra)===null||u===void 0?void 0:u.call(n),collapsible:x}=e,C=x==="disabled",O=i.value,w=le(`${O}-header`,{[d]:d,[`${O}-header-collapsible-only`]:x==="header",[`${O}-icon-collapsible-only`]:x==="icon"}),I=le({[`${O}-item`]:!0,[`${O}-item-active`]:f,[`${O}-item-disabled`]:C,[`${O}-no-arrow`]:!g,[`${r.class}`]:!!r.class});let T=p("i",{class:"arrow"},null);g&&typeof S=="function"&&(T=S(e));const M=En(p(jU,{prefixCls:O,isActive:f,forceRender:b,role:h?"tabpanel":null},{default:n.default}),[[jn,f]]),E=m({appear:!1,css:!1},y);return p("div",D(D({},r),{},{class:I}),[p("div",{class:w,onClick:()=>!["header","icon"].includes(x)&&l(),role:h?"tab":"button",tabindex:C?-1:0,"aria-expanded":f,onKeypress:a},[g&&T,p("span",{onClick:()=>x==="header"&&l(),class:`${O}-header-text`},[c]),$&&p("div",{class:`${O}-extra`},[$])]),p(un,E,{default:()=>[!v||f?M:null]})])}}});Fs.Panel=Cf;Fs.install=function(e){return e.component(Fs.name,Fs),e.component(Cf.name,Cf),e};const VU=function(e){return e.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}).toLowerCase()},WU=function(e){return/[height|width]$/.test(e)},Ex=function(e){let t="";const n=Object.keys(e);return n.forEach(function(o,r){let i=e[o];o=VU(o),WU(o)&&typeof i=="number"&&(i=i+"px"),i===!0?t+=o:i===!1?t+="not "+o:t+="("+o+": "+i+")",r{["touchstart","touchmove","wheel"].includes(e.type)||e.preventDefault()},xf=e=>{const t=[],n=e8(e),o=t8(e);for(let r=n;re.currentSlide-GU(e),t8=e=>e.currentSlide+XU(e),GU=e=>e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0,XU=e=>e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow,am=e=>e&&e.offsetWidth||0,hy=e=>e&&e.offsetHeight||0,n8=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;const o=e.startX-e.curX,r=e.startY-e.curY,i=Math.atan2(r,o);return n=Math.round(i*180/Math.PI),n<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?"left":n>=135&&n<=225?"right":t===!0?n>=35&&n<=135?"up":"down":"vertical"},Xp=e=>{let t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},Ch=(e,t)=>{const n={};return t.forEach(o=>n[o]=e[o]),n},UU=e=>{const t=e.children.length,n=e.listRef,o=Math.ceil(am(n)),r=e.trackRef,i=Math.ceil(am(r));let l;if(e.vertical)l=o;else{let g=e.centerMode&&parseInt(e.centerPadding)*2;typeof e.centerPadding=="string"&&e.centerPadding.slice(-1)==="%"&&(g*=o/100),l=Math.ceil((o-g)/e.slidesToShow)}const a=n&&hy(n.querySelector('[data-index="0"]')),s=a*e.slidesToShow;let u=e.currentSlide===void 0?e.initialSlide:e.currentSlide;e.rtl&&e.currentSlide===void 0&&(u=t-1-e.initialSlide);let c=e.lazyLoadedList||[];const d=xf(m(m({},e),{currentSlide:u,lazyLoadedList:c}));c=c.concat(d);const f={slideCount:t,slideWidth:l,listWidth:o,trackWidth:i,currentSlide:u,slideHeight:a,listHeight:s,lazyLoadedList:c};return e.autoplaying===null&&e.autoplay&&(f.autoplaying="playing"),f},YU=e=>{const{waitForAnimate:t,animating:n,fade:o,infinite:r,index:i,slideCount:l,lazyLoad:a,currentSlide:s,centerMode:u,slidesToScroll:c,slidesToShow:d,useCSS:f}=e;let{lazyLoadedList:g}=e;if(t&&n)return{};let v=i,h,b,y,S={},$={};const x=r?i:lm(i,0,l-1);if(o){if(!r&&(i<0||i>=l))return{};i<0?v=i+l:i>=l&&(v=i-l),a&&g.indexOf(v)<0&&(g=g.concat(v)),S={animating:!0,currentSlide:v,lazyLoadedList:g,targetSlide:v},$={animating:!1,targetSlide:v}}else h=v,v<0?(h=v+l,r?l%c!==0&&(h=l-l%c):h=0):!Xp(e)&&v>s?v=h=s:u&&v>=l?(v=r?l:l-1,h=r?0:l-1):v>=l&&(h=v-l,r?l%c!==0&&(h=0):h=l-d),!r&&v+d>=l&&(h=l-d),b=mc(m(m({},e),{slideIndex:v})),y=mc(m(m({},e),{slideIndex:h})),r||(b===y&&(v=h),b=y),a&&(g=g.concat(xf(m(m({},e),{currentSlide:v})))),f?(S={animating:!0,currentSlide:h,trackStyle:o8(m(m({},e),{left:b})),lazyLoadedList:g,targetSlide:x},$={animating:!1,currentSlide:h,trackStyle:vc(m(m({},e),{left:y})),swipeLeft:null,targetSlide:x}):S={currentSlide:h,trackStyle:vc(m(m({},e),{left:y})),lazyLoadedList:g,targetSlide:x};return{state:S,nextState:$}},qU=(e,t)=>{let n,o,r;const{slidesToScroll:i,slidesToShow:l,slideCount:a,currentSlide:s,targetSlide:u,lazyLoad:c,infinite:d}=e,g=a%i!==0?0:(a-s)%i;if(t.message==="previous")o=g===0?i:l-g,r=s-o,c&&!d&&(n=s-o,r=n===-1?a-1:n),d||(r=u-i);else if(t.message==="next")o=g===0?i:g,r=s+o,c&&!d&&(r=(s+i)%a+g),d||(r=u+i);else if(t.message==="dots")r=t.index*t.slidesToScroll;else if(t.message==="children"){if(r=t.index,d){const v=oY(m(m({},e),{targetSlide:r}));r>t.currentSlide&&v==="left"?r=r-a:re.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":e.keyCode===37?n?"next":"previous":e.keyCode===39?n?"previous":"next":"",QU=(e,t,n)=>(e.target.tagName==="IMG"&&ba(e),!t||!n&&e.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}),JU=(e,t)=>{const{scrolling:n,animating:o,vertical:r,swipeToSlide:i,verticalSwiping:l,rtl:a,currentSlide:s,edgeFriction:u,edgeDragged:c,onEdge:d,swiped:f,swiping:g,slideCount:v,slidesToScroll:h,infinite:b,touchObject:y,swipeEvent:S,listHeight:$,listWidth:x}=t;if(n)return;if(o)return ba(e);r&&i&&l&&ba(e);let C,O={};const w=mc(t);y.curX=e.touches?e.touches[0].pageX:e.clientX,y.curY=e.touches?e.touches[0].pageY:e.clientY,y.swipeLength=Math.round(Math.sqrt(Math.pow(y.curX-y.startX,2)));const I=Math.round(Math.sqrt(Math.pow(y.curY-y.startY,2)));if(!l&&!g&&I>10)return{scrolling:!0};l&&(y.swipeLength=I);let T=(a?-1:1)*(y.curX>y.startX?1:-1);l&&(T=y.curY>y.startY?1:-1);const M=Math.ceil(v/h),E=n8(t.touchObject,l);let A=y.swipeLength;return b||(s===0&&(E==="right"||E==="down")||s+1>=M&&(E==="left"||E==="up")||!Xp(t)&&(E==="left"||E==="up"))&&(A=y.swipeLength*u,c===!1&&d&&(d(E),O.edgeDragged=!0)),!f&&S&&(S(E),O.swiped=!0),r?C=w+A*($/x)*T:a?C=w-A*T:C=w+A*T,l&&(C=w+A*T),O=m(m({},O),{touchObject:y,swipeLeft:C,trackStyle:vc(m(m({},t),{left:C}))}),Math.abs(y.curX-y.startX)10&&(O.swiping=!0,ba(e)),O},eY=(e,t)=>{const{dragging:n,swipe:o,touchObject:r,listWidth:i,touchThreshold:l,verticalSwiping:a,listHeight:s,swipeToSlide:u,scrolling:c,onSwipe:d,targetSlide:f,currentSlide:g,infinite:v}=t;if(!n)return o&&ba(e),{};const h=a?s/l:i/l,b=n8(r,a),y={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(c||!r.swipeLength)return y;if(r.swipeLength>h){ba(e),d&&d(b);let S,$;const x=v?g:f;switch(b){case"left":case"up":$=x+_x(t),S=u?Mx(t,$):$,y.currentDirection=0;break;case"right":case"down":$=x-_x(t),S=u?Mx(t,$):$,y.currentDirection=1;break;default:S=x}y.triggerSlideHandler=S}else{const S=mc(t);y.trackStyle=o8(m(m({},t),{left:S}))}return y},tY=e=>{const t=e.infinite?e.slideCount*2:e.slideCount;let n=e.infinite?e.slidesToShow*-1:0,o=e.infinite?e.slidesToShow*-1:0;const r=[];for(;n{const n=tY(e);let o=0;if(t>n[n.length-1])t=n[n.length-1];else for(const r in n){if(t{const t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){let n;const o=e.listRef,r=o.querySelectorAll&&o.querySelectorAll(".slick-slide")||[];if(Array.from(r).every(a=>{if(e.vertical){if(a.offsetTop+hy(a)/2>e.swipeLeft*-1)return n=a,!1}else if(a.offsetLeft-t+am(a)/2>e.swipeLeft*-1)return n=a,!1;return!0}),!n)return 0;const i=e.rtl===!0?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}else return e.slidesToScroll},vy=(e,t)=>t.reduce((n,o)=>n&&e.hasOwnProperty(o),!0)?null:console.error("Keys Missing:",e),vc=e=>{vy(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);let t,n;const o=e.slideCount+2*e.slidesToShow;e.vertical?n=o*e.slideHeight:t=nY(e)*e.slideWidth;let r={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){const i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";r=m(m({},r),{WebkitTransform:i,transform:l,msTransform:a})}else e.vertical?r.top=e.left:r.left=e.left;return e.fade&&(r={opacity:1}),t&&(r.width=t+"px"),n&&(r.height=n+"px"),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?r.marginTop=e.left+"px":r.marginLeft=e.left+"px"),r},o8=e=>{vy(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);const t=vc(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},mc=e=>{if(e.unslick)return 0;vy(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);const{slideIndex:t,trackRef:n,infinite:o,centerMode:r,slideCount:i,slidesToShow:l,slidesToScroll:a,slideWidth:s,listWidth:u,variableWidth:c,slideHeight:d,fade:f,vertical:g}=e;let v=0,h,b,y=0;if(f||e.slideCount===1)return 0;let S=0;if(o?(S=-kr(e),i%a!==0&&t+a>i&&(S=-(t>i?l-(t-i):i%a)),r&&(S+=parseInt(l/2))):(i%a!==0&&t+a>i&&(S=l-i%a),r&&(S=parseInt(l/2))),v=S*s,y=S*d,g?h=t*d*-1+y:h=t*s*-1+v,c===!0){let $;const x=n;if($=t+kr(e),b=x&&x.childNodes[$],h=b?b.offsetLeft*-1:0,r===!0){$=o?t+kr(e):t,b=x&&x.children[$],h=0;for(let C=0;C<$;C++)h-=x&&x.children[C]&&x.children[C].offsetWidth;h-=parseInt(e.centerPadding),h+=b&&(u-b.offsetWidth)/2}}return h},kr=e=>e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0),td=e=>e.unslick||!e.infinite?0:e.slideCount,nY=e=>e.slideCount===1?1:kr(e)+e.slideCount+td(e),oY=e=>e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+rY(e)?"left":"right":e.targetSlide{let{slidesToShow:t,centerMode:n,rtl:o,centerPadding:r}=e;if(n){let i=(t-1)/2+1;return parseInt(r)>0&&(i+=1),o&&t%2===0&&(i+=1),i}return o?0:t-1},iY=e=>{let{slidesToShow:t,centerMode:n,rtl:o,centerPadding:r}=e;if(n){let i=(t-1)/2+1;return parseInt(r)>0&&(i+=1),!o&&t%2===0&&(i+=1),i}return o?t-1:0},Ax=()=>!!(typeof window<"u"&&window.document&&window.document.createElement),xh=e=>{let t,n,o,r;e.rtl?r=e.slideCount-1-e.index:r=e.index;const i=r<0||r>=e.slideCount;e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(r-e.currentSlide)%e.slideCount===0,r>e.currentSlide-o-1&&r<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=r&&r=e.slideCount?l=e.targetSlide-e.slideCount:l=e.targetSlide,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":i,"slick-current":r===l}},lY=function(e){const t={};return(e.variableWidth===void 0||e.variableWidth===!1)&&(t.width=e.slideWidth+(typeof e.slideWidth=="number"?"px":"")),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight)+"px":t.left=-e.index*parseInt(e.slideWidth)+"px",t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t},wh=(e,t)=>e.key+"-"+t,aY=function(e,t){let n;const o=[],r=[],i=[],l=t.length,a=e8(e),s=t8(e);return t.forEach((u,c)=>{let d;const f={message:"children",index:c,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(c)>=0?d=u:d=p("div");const g=lY(m(m({},e),{index:c})),v=d.props.class||"";let h=xh(m(m({},e),{index:c}));if(o.push(As(d,{key:"original"+wh(d,c),tabindex:"-1","data-index":c,"aria-hidden":!h["slick-active"],class:le(h,v),style:m(m({outline:"none"},d.props.style||{}),g),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(f)}})),e.infinite&&e.fade===!1){const b=l-c;b<=kr(e)&&l!==e.slidesToShow&&(n=-b,n>=a&&(d=u),h=xh(m(m({},e),{index:n})),r.push(As(d,{key:"precloned"+wh(d,n),class:le(h,v),tabindex:"-1","data-index":n,"aria-hidden":!h["slick-active"],style:m(m({},d.props.style||{}),g),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(f)}}))),l!==e.slidesToShow&&(n=l+c,n{e.focusOnSelect&&e.focusOnSelect(f)}})))}}),e.rtl?r.concat(o,i).reverse():r.concat(o,i)},r8=(e,t)=>{let{attrs:n,slots:o}=t;const r=aY(n,bt(o?.default())),{onMouseenter:i,onMouseover:l,onMouseleave:a}=n,s={onMouseenter:i,onMouseover:l,onMouseleave:a},u=m({class:"slick-track",style:n.trackStyle},s);return p("div",u,[r])};r8.inheritAttrs=!1;const sY=function(e){let t;return e.infinite?t=Math.ceil(e.slideCount/e.slidesToScroll):t=Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,t},i8=(e,t)=>{let{attrs:n}=t;const{slideCount:o,slidesToScroll:r,slidesToShow:i,infinite:l,currentSlide:a,appendDots:s,customPaging:u,clickHandler:c,dotsClass:d,onMouseenter:f,onMouseover:g,onMouseleave:v}=n,h=sY({slideCount:o,slidesToScroll:r,slidesToShow:i,infinite:l}),b={onMouseenter:f,onMouseover:g,onMouseleave:v};let y=[];for(let S=0;S=O&&a<=x:a===O}),I={message:"dots",index:S,slidesToScroll:r,currentSlide:a};y=y.concat(p("li",{key:S,class:w},[ut(u({i:S}),{onClick:T})]))}return ut(s({dots:y}),m({class:d},b))};i8.inheritAttrs=!1;function l8(){}function a8(e,t,n){n&&n.preventDefault(),t(e,n)}const s8=(e,t)=>{let{attrs:n}=t;const{clickHandler:o,infinite:r,currentSlide:i,slideCount:l,slidesToShow:a}=n,s={"slick-arrow":!0,"slick-prev":!0};let u=function(g){a8({message:"previous"},o,g)};!r&&(i===0||l<=a)&&(s["slick-disabled"]=!0,u=l8);const c={key:"0","data-role":"none",class:s,style:{display:"block"},onClick:u},d={currentSlide:i,slideCount:l};let f;return n.prevArrow?f=ut(n.prevArrow(m(m({},c),d)),{key:"0",class:s,style:{display:"block"},onClick:u},!1):f=p("button",D({key:"0",type:"button"},c),[" ",Ft("Previous")]),f};s8.inheritAttrs=!1;const c8=(e,t)=>{let{attrs:n}=t;const{clickHandler:o,currentSlide:r,slideCount:i}=n,l={"slick-arrow":!0,"slick-next":!0};let a=function(d){a8({message:"next"},o,d)};Xp(n)||(l["slick-disabled"]=!0,a=l8);const s={key:"1","data-role":"none",class:le(l),style:{display:"block"},onClick:a},u={currentSlide:r,slideCount:i};let c;return n.nextArrow?c=ut(n.nextArrow(m(m({},s),u)),{key:"1",class:le(l),style:{display:"block"},onClick:a},!1):c=p("button",D({key:"1",type:"button"},s),[" ",Ft("Next")]),c};c8.inheritAttrs=!1;var cY=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{this.currentSlide>=e.children.length&&this.changeSlide({message:"index",index:e.children.length-e.slidesToShow,currentSlide:this.currentSlide}),!this.preProps.autoplay&&e.autoplay?this.handleAutoPlay("playing"):e.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.preProps=m({},e)}},mounted(){if(this.__emit("init"),this.lazyLoad){const e=xf(m(m({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e))}this.$nextTick(()=>{const e=m({listRef:this.list,trackRef:this.track,children:this.children},this.$props);this.updateState(e,!0,()=>{this.adaptHeight(),this.autoplay&&this.handleAutoPlay("playing")}),this.lazyLoad==="progressive"&&(this.lazyLoadTimer=setInterval(this.progressiveLazyLoad,1e3)),this.ro=new b0(()=>{this.animating?(this.onWindowResized(!1),this.callbackTimers.push(setTimeout(()=>this.onWindowResized(),this.speed))):this.onWindowResized()}),this.ro.observe(this.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),t=>{t.onfocus=this.$props.pauseOnFocus?this.onSlideFocus:null,t.onblur=this.$props.pauseOnFocus?this.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized)})},beforeUnmount(){var e;this.animationEndCallback&&clearTimeout(this.animationEndCallback),this.lazyLoadTimer&&clearInterval(this.lazyLoadTimer),this.callbackTimers.length&&(this.callbackTimers.forEach(t=>clearTimeout(t)),this.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.autoplayTimer&&clearInterval(this.autoplayTimer),(e=this.ro)===null||e===void 0||e.disconnect()},updated(){if(this.checkImagesLoad(),this.__emit("reInit"),this.lazyLoad){const e=xf(m(m({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad"))}this.adaptHeight()},methods:{listRefHandler(e){this.list=e},trackRefHandler(e){this.track=e},adaptHeight(){if(this.adaptiveHeight&&this.list){const e=this.list.querySelector(`[data-index="${this.currentSlide}"]`);this.list.style.height=hy(e)+"px"}},onWindowResized(e){this.debouncedResize&&this.debouncedResize.cancel(),this.debouncedResize=Sb(()=>this.resizeWindow(e),50),this.debouncedResize()},resizeWindow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(!!!this.track)return;const n=m(m({listRef:this.list,trackRef:this.track,children:this.children},this.$props),this.$data);this.updateState(n,e,()=>{this.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.setState({animating:!1}),clearTimeout(this.animationEndCallback),delete this.animationEndCallback},updateState(e,t,n){const o=UU(e);e=m(m(m({},e),o),{slideIndex:o.currentSlide});const r=mc(e);e=m(m({},e),{left:r});const i=vc(e);(t||this.children.length!==e.children.length)&&(o.trackStyle=i),this.setState(o,n)},ssrInit(){const e=this.children;if(this.variableWidth){let s=0,u=0;const c=[],d=kr(m(m(m({},this.$props),this.$data),{slideCount:e.length})),f=td(m(m(m({},this.$props),this.$data),{slideCount:e.length}));e.forEach(v=>{var h,b;const y=((b=(h=v.props.style)===null||h===void 0?void 0:h.width)===null||b===void 0?void 0:b.split("px")[0])||0;c.push(y),s+=y});for(let v=0;v{const r=()=>++n&&n>=t&&this.onWindowResized();if(!o.onclick)o.onclick=()=>o.parentNode.focus();else{const i=o.onclick;o.onclick=()=>{i(),o.parentNode.focus()}}o.onload||(this.$props.lazyLoad?o.onload=()=>{this.adaptHeight(),this.callbackTimers.push(setTimeout(this.onWindowResized,this.speed))}:(o.onload=r,o.onerror=()=>{r(),this.__emit("lazyLoadError")}))})},progressiveLazyLoad(){const e=[],t=m(m({},this.$props),this.$data);for(let n=this.currentSlide;n=-kr(t);n--)if(this.lazyLoadedList.indexOf(n)<0){e.push(n);break}e.length>0?(this.setState(n=>({lazyLoadedList:n.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e)):this.lazyLoadTimer&&(clearInterval(this.lazyLoadTimer),delete this.lazyLoadTimer)},slideHandler(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{asNavFor:n,beforeChange:o,speed:r,afterChange:i}=this.$props,{state:l,nextState:a}=YU(m(m(m({index:e},this.$props),this.$data),{trackRef:this.track,useCSS:this.useCSS&&!t}));if(!l)return;o&&o(this.currentSlide,l.currentSlide);const s=l.lazyLoadedList.filter(u=>this.lazyLoadedList.indexOf(u)<0);this.$attrs.onLazyLoad&&s.length>0&&this.__emit("lazyLoad",s),!this.$props.waitForAnimate&&this.animationEndCallback&&(clearTimeout(this.animationEndCallback),i&&i(this.currentSlide),delete this.animationEndCallback),this.setState(l,()=>{n&&this.asNavForIndex!==e&&(this.asNavForIndex=e,n.innerSlider.slideHandler(e)),a&&(this.animationEndCallback=setTimeout(()=>{const{animating:u}=a,c=cY(a,["animating"]);this.setState(c,()=>{this.callbackTimers.push(setTimeout(()=>this.setState({animating:u}),10)),i&&i(l.currentSlide),delete this.animationEndCallback})},r))})},changeSlide(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=m(m({},this.$props),this.$data),o=qU(n,e);if(!(o!==0&&!o)&&(t===!0?this.slideHandler(o,t):this.slideHandler(o),this.$props.autoplay&&this.handleAutoPlay("update"),this.$props.focusOnSelect)){const r=this.list.querySelectorAll(".slick-current");r[0]&&r[0].focus()}},clickHandler(e){this.clickable===!1&&(e.stopPropagation(),e.preventDefault()),this.clickable=!0},keyHandler(e){const t=ZU(e,this.accessibility,this.rtl);t!==""&&this.changeSlide({message:t})},selectHandler(e){this.changeSlide(e)},disableBodyScroll(){const e=t=>{t=t||window.event,t.preventDefault&&t.preventDefault(),t.returnValue=!1};window.ontouchmove=e},enableBodyScroll(){window.ontouchmove=null},swipeStart(e){this.verticalSwiping&&this.disableBodyScroll();const t=QU(e,this.swipe,this.draggable);t!==""&&this.setState(t)},swipeMove(e){const t=JU(e,m(m(m({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));t&&(t.swiping&&(this.clickable=!1),this.setState(t))},swipeEnd(e){const t=eY(e,m(m(m({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));if(!t)return;const n=t.triggerSlideHandler;delete t.triggerSlideHandler,this.setState(t),n!==void 0&&(this.slideHandler(n),this.$props.verticalSwiping&&this.enableBodyScroll())},touchEnd(e){this.swipeEnd(e),this.clickable=!0},slickPrev(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"previous"}),0))},slickNext(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"next"}),0))},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e=Number(e),isNaN(e))return"";this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"index",index:e,currentSlide:this.currentSlide},t),0))},play(){let e;if(this.rtl)e=this.currentSlide-this.slidesToScroll;else if(Xp(m(m({},this.$props),this.$data)))e=this.currentSlide+this.slidesToScroll;else return!1;this.slideHandler(e)},handleAutoPlay(e){this.autoplayTimer&&clearInterval(this.autoplayTimer);const t=this.autoplaying;if(e==="update"){if(t==="hovered"||t==="focused"||t==="paused")return}else if(e==="leave"){if(t==="paused"||t==="focused")return}else if(e==="blur"&&(t==="paused"||t==="hovered"))return;this.autoplayTimer=setInterval(this.play,this.autoplaySpeed+50),this.setState({autoplaying:"playing"})},pause(e){this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=null);const t=this.autoplaying;e==="paused"?this.setState({autoplaying:"paused"}):e==="focused"?(t==="hovered"||t==="playing")&&this.setState({autoplaying:"focused"}):t==="playing"&&this.setState({autoplaying:"hovered"})},onDotsOver(){this.autoplay&&this.pause("hovered")},onDotsLeave(){this.autoplay&&this.autoplaying==="hovered"&&this.handleAutoPlay("leave")},onTrackOver(){this.autoplay&&this.pause("hovered")},onTrackLeave(){this.autoplay&&this.autoplaying==="hovered"&&this.handleAutoPlay("leave")},onSlideFocus(){this.autoplay&&this.pause("focused")},onSlideBlur(){this.autoplay&&this.autoplaying==="focused"&&this.handleAutoPlay("blur")},customPaging(e){let{i:t}=e;return p("button",null,[t+1])},appendDots(e){let{dots:t}=e;return p("ul",{style:{display:"block"}},[t])}},render(){const e=le("slick-slider",this.$attrs.class,{"slick-vertical":this.vertical,"slick-initialized":!0}),t=m(m({},this.$props),this.$data);let n=Ch(t,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]);const{pauseOnHover:o}=this.$props;n=m(m({},n),{focusOnSelect:this.focusOnSelect&&this.clickable?this.selectHandler:null,ref:this.trackRefHandler,onMouseleave:o?this.onTrackLeave:no,onMouseover:o?this.onTrackOver:no});let r;if(this.dots===!0&&this.slideCount>=this.slidesToShow){let b=Ch(t,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","infinite","appendDots"]);b.customPaging=this.customPaging,b.appendDots=this.appendDots;const{customPaging:y,appendDots:S}=this.$slots;y&&(b.customPaging=y),S&&(b.appendDots=S);const{pauseOnDotsHover:$}=this.$props;b=m(m({},b),{clickHandler:this.changeSlide,onMouseover:$?this.onDotsOver:no,onMouseleave:$?this.onDotsLeave:no}),r=p(i8,b,null)}let i,l;const a=Ch(t,["infinite","centerMode","currentSlide","slideCount","slidesToShow"]);a.clickHandler=this.changeSlide;const{prevArrow:s,nextArrow:u}=this.$slots;s&&(a.prevArrow=s),u&&(a.nextArrow=u),this.arrows&&(i=p(s8,a,null),l=p(c8,a,null));let c=null;this.vertical&&(c={height:typeof this.listHeight=="number"?`${this.listHeight}px`:this.listHeight});let d=null;this.vertical===!1?this.centerMode===!0&&(d={padding:"0px "+this.centerPadding}):this.centerMode===!0&&(d={padding:this.centerPadding+" 0px"});const f=m(m({},c),d),g=this.touchMove;let v={ref:this.listRefHandler,class:"slick-list",style:f,onClick:this.clickHandler,onMousedown:g?this.swipeStart:no,onMousemove:this.dragging&&g?this.swipeMove:no,onMouseup:g?this.swipeEnd:no,onMouseleave:this.dragging&&g?this.swipeEnd:no,[Yt?"onTouchstartPassive":"onTouchstart"]:g?this.swipeStart:no,[Yt?"onTouchmovePassive":"onTouchmove"]:this.dragging&&g?this.swipeMove:no,onTouchend:g?this.touchEnd:no,onTouchcancel:this.dragging&&g?this.swipeEnd:no,onKeydown:this.accessibility?this.keyHandler:no},h={class:e,dir:"ltr",style:this.$attrs.style};return this.unslick&&(v={class:"slick-list",ref:this.listRefHandler},h={class:e}),p("div",h,[this.unslick?"":i,p("div",v,[p(r8,n,{default:()=>[this.children]})]),this.unslick?"":l,this.unslick?"":r])}},dY=oe({name:"Slider",mixins:[Al],inheritAttrs:!1,props:m({},JI),data(){return this._responsiveMediaHandlers=[],{breakpoint:null}},mounted(){if(this.responsive){const e=this.responsive.map(n=>n.breakpoint);e.sort((n,o)=>n-o),e.forEach((n,o)=>{let r;o===0?r=$h({minWidth:0,maxWidth:n}):r=$h({minWidth:e[o-1]+1,maxWidth:n}),Ax()&&this.media(r,()=>{this.setState({breakpoint:n})})});const t=$h({minWidth:e.slice(-1)[0]});Ax()&&this.media(t,()=>{this.setState({breakpoint:null})})}},beforeUnmount(){this._responsiveMediaHandlers.forEach(function(e){e.mql.removeListener(e.listener)})},methods:{innerSliderRefHandler(e){this.innerSlider=e},media(e,t){const n=window.matchMedia(e),o=r=>{let{matches:i}=r;i&&t()};n.addListener(o),o(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:o})},slickPrev(){var e;(e=this.innerSlider)===null||e===void 0||e.slickPrev()},slickNext(){var e;(e=this.innerSlider)===null||e===void 0||e.slickNext()},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var n;(n=this.innerSlider)===null||n===void 0||n.slickGoTo(e,t)},slickPause(){var e;(e=this.innerSlider)===null||e===void 0||e.pause("paused")},slickPlay(){var e;(e=this.innerSlider)===null||e===void 0||e.handleAutoPlay("play")}},render(){var e;let t,n;this.breakpoint?(n=this.responsive.filter(a=>a.breakpoint===this.breakpoint),t=n[0].settings==="unslick"?"unslick":m(m({},this.$props),n[0].settings)):t=m({},this.$props),t.centerMode&&(t.slidesToScroll>1,t.slidesToScroll=1),t.fade&&(t.slidesToShow>1,t.slidesToScroll>1,t.slidesToShow=1,t.slidesToScroll=1);let o=lp(this)||[];o=o.filter(a=>typeof a=="string"?!!a.trim():!!a),t.variableWidth&&(t.rows>1||t.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),t.variableWidth=!1);const r=[];let i=null;for(let a=0;a=o.length));d+=1)c.push(ut(o[d],{key:100*a+10*u+d,tabindex:-1,style:{width:`${100/t.slidesPerRow}%`,display:"inline-block"}}));s.push(p("div",{key:10*a+u},[c]))}t.variableWidth?r.push(p("div",{key:a,style:{width:i}},[s])):r.push(p("div",{key:a},[s]))}if(t==="unslick"){const a="regular slider "+(this.className||"");return p("div",{class:a},[o])}else r.length<=t.slidesToShow&&(t.unslick=!0);const l=m(m(m({},this.$attrs),t),{children:r,ref:this.innerSliderRefHandler});return p(uY,D(D({},l),{},{__propsSymbol__:[]}),this.$slots)}}),fY=e=>{const{componentCls:t,antCls:n,carouselArrowSize:o,carouselDotOffset:r,marginXXS:i}=e,l=-o*1.25,a=i;return{[t]:m(m({},Ue(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:o,height:o,marginTop:-o/2,padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:l,"&::before":{content:'"←"'}},".slick-next":{insetInlineEnd:l,"&::before":{content:'"→"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,listStyle:"none","&-bottom":{bottom:r},"&-top":{top:r,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:e.dotWidth,height:e.dotHeight,marginInline:a,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${e.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:e.dotHeight,padding:0,color:"transparent",fontSize:0,background:e.colorBgContainer,border:0,borderRadius:1,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${e.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:-a,content:'""'}},"&.slick-active":{width:e.dotWidthActive,"& button":{background:e.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},pY=e=>{const{componentCls:t,carouselDotOffset:n,marginXXS:o}=e,r={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:m(m({},r),{margin:`${o}px 0`,verticalAlign:"baseline",button:r,"&.slick-active":m(m({},r),{button:r})})}}}},gY=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},hY=Ke("Carousel",e=>{const{controlHeightLG:t,controlHeightSM:n}=e,o=ke(e,{carouselArrowSize:t/2,carouselDotOffset:n/2});return[fY(o),pY(o),gY(o)]},{dotWidth:16,dotHeight:3,dotWidthActive:24});var vY=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({effect:Ne(),dots:$e(!0),vertical:$e(),autoplay:$e(),easing:String,beforeChange:ve(),afterChange:ve(),prefixCls:String,accessibility:$e(),nextArrow:W.any,prevArrow:W.any,pauseOnHover:$e(),adaptiveHeight:$e(),arrows:$e(!1),autoplaySpeed:Number,centerMode:$e(),centerPadding:String,cssEase:String,dotsClass:String,draggable:$e(!1),fade:$e(),focusOnSelect:$e(),infinite:$e(),initialSlide:Number,lazyLoad:Ne(),rtl:$e(),slide:String,slidesToShow:Number,slidesToScroll:Number,speed:Number,swipe:$e(),swipeToSlide:$e(),swipeEvent:ve(),touchMove:$e(),touchThreshold:Number,variableWidth:$e(),useCSS:$e(),slickGoTo:Number,responsive:Array,dotPosition:Ne(),verticalSwiping:$e(!1)}),bY=oe({compatConfig:{MODE:3},name:"ACarousel",inheritAttrs:!1,props:mY(),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const i=re();r({goTo:function(v){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var b;(b=i.value)===null||b===void 0||b.slickGoTo(v,h)},autoplay:v=>{var h,b;(b=(h=i.value)===null||h===void 0?void 0:h.innerSlider)===null||b===void 0||b.handleAutoPlay(v)},prev:()=>{var v;(v=i.value)===null||v===void 0||v.slickPrev()},next:()=>{var v;(v=i.value)===null||v===void 0||v.slickNext()},innerSlider:P(()=>{var v;return(v=i.value)===null||v===void 0?void 0:v.innerSlider})}),Le(()=>{fo(e.vertical===void 0)});const{prefixCls:a,direction:s}=Te("carousel",e),[u,c]=hY(a),d=P(()=>e.dotPosition?e.dotPosition:e.vertical!==void 0&&e.vertical?"right":"bottom"),f=P(()=>d.value==="left"||d.value==="right"),g=P(()=>{const v="slick-dots";return le({[v]:!0,[`${v}-${d.value}`]:!0,[`${e.dotsClass}`]:!!e.dotsClass})});return()=>{const{dots:v,arrows:h,draggable:b,effect:y}=e,{class:S,style:$}=o,x=vY(o,["class","style"]),C=y==="fade"?!0:e.fade,O=le(a.value,{[`${a.value}-rtl`]:s.value==="rtl",[`${a.value}-vertical`]:f.value,[`${S}`]:!!S},c.value);return u(p("div",{class:O,style:$},[p(dY,D(D(D({ref:i},e),x),{},{dots:!!v,dotsClass:g.value,arrows:h,draggable:b,fade:C,vertical:f.value}),n)]))}}}),yY=It(bY),my="__RC_CASCADER_SPLIT__",u8="SHOW_PARENT",d8="SHOW_CHILD";function Ci(e){return e.join(my)}function ra(e){return e.map(Ci)}function SY(e){return e.split(my)}function $Y(e){const{label:t,value:n,children:o}=e||{},r=n||"value";return{label:t||"label",value:r,key:r,children:o||"children"}}function ms(e,t){var n,o;return(n=e.isLeaf)!==null&&n!==void 0?n:!(!((o=e[t.children])===null||o===void 0)&&o.length)}function CY(e){const t=e.parentElement;if(!t)return;const n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}const f8=Symbol("TreeContextKey"),xY=oe({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return Xe(f8,P(()=>e.value)),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),by=()=>He(f8,P(()=>({}))),p8=Symbol("KeysStateKey"),wY=e=>{Xe(p8,e)},g8=()=>He(p8,{expandedKeys:ne([]),selectedKeys:ne([]),loadedKeys:ne([]),loadingKeys:ne([]),checkedKeys:ne([]),halfCheckedKeys:ne([]),expandedKeysSet:P(()=>new Set),selectedKeysSet:P(()=>new Set),loadedKeysSet:P(()=>new Set),loadingKeysSet:P(()=>new Set),checkedKeysSet:P(()=>new Set),halfCheckedKeysSet:P(()=>new Set),flattenNodes:ne([])}),OY=e=>{let{prefixCls:t,level:n,isStart:o,isEnd:r}=e;const i=`${t}-indent-unit`,l=[];for(let a=0;a({prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:W.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:W.any,selectable:{type:Boolean,default:void 0},expandAction:[String,Boolean],disabled:{type:Boolean,default:void 0},multiple:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},draggable:{type:[Function,Boolean]},defaultExpandParent:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:[Object,Array]},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},allowDrop:{type:Function},dropIndicatorRender:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onKeydown:{type:Function},onContextmenu:{type:Function},onClick:{type:Function},onDblclick:{type:Function},onScroll:{type:Function},onExpand:{type:Function},onCheck:{type:Function},onSelect:{type:Function},onLoad:{type:Function},loadData:{type:Function},loadedKeys:{type:Array},onMouseenter:{type:Function},onMouseleave:{type:Function},onRightClick:{type:Function},onDragstart:{type:Function},onDragenter:{type:Function},onDragover:{type:Function},onDragleave:{type:Function},onDragend:{type:Function},onDrop:{type:Function},onActiveChange:{type:Function},filterTreeNode:{type:Function},motion:W.any,switcherIcon:W.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String},rootClassName:String,rootStyle:Object});var IY=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r"`v-slot:"+fe+"` ")}`;const i=ne(!1),l=by(),{expandedKeysSet:a,selectedKeysSet:s,loadedKeysSet:u,loadingKeysSet:c,checkedKeysSet:d,halfCheckedKeysSet:f}=g8(),{dragOverNodeKey:g,dropPosition:v,keyEntities:h}=l.value,b=P(()=>nd(e.eventKey,{expandedKeysSet:a.value,selectedKeysSet:s.value,loadedKeysSet:u.value,loadingKeysSet:c.value,checkedKeysSet:d.value,halfCheckedKeysSet:f.value,dragOverNodeKey:g,dropPosition:v,keyEntities:h})),y=io(()=>b.value.expanded),S=io(()=>b.value.selected),$=io(()=>b.value.checked),x=io(()=>b.value.loaded),C=io(()=>b.value.loading),O=io(()=>b.value.halfChecked),w=io(()=>b.value.dragOver),I=io(()=>b.value.dragOverGapTop),T=io(()=>b.value.dragOverGapBottom),M=io(()=>b.value.pos),E=ne(),A=P(()=>{const{eventKey:fe}=e,{keyEntities:de}=l.value,{children:be}=de[fe]||{};return!!(be||[]).length}),R=P(()=>{const{isLeaf:fe}=e,{loadData:de}=l.value,be=A.value;return fe===!1?!1:fe||!de&&!be||de&&x.value&&!be}),z=P(()=>R.value?null:y.value?Rx:Dx),_=P(()=>{const{disabled:fe}=e,{disabled:de}=l.value;return!!(de||fe)}),N=P(()=>{const{checkable:fe}=e,{checkable:de}=l.value;return!de||fe===!1?!1:de}),B=P(()=>{const{selectable:fe}=e,{selectable:de}=l.value;return typeof fe=="boolean"?fe:de}),k=P(()=>{const{data:fe,active:de,checkable:be,disableCheckbox:we,disabled:Ie,selectable:Ae}=e;return m(m({active:de,checkable:be,disableCheckbox:we,disabled:Ie,selectable:Ae},fe),{dataRef:fe,data:fe,isLeaf:R.value,checked:$.value,expanded:y.value,loading:C.value,selected:S.value,halfChecked:O.value})}),F=pn(),L=P(()=>{const{eventKey:fe}=e,{keyEntities:de}=l.value,{parent:be}=de[fe]||{};return m(m({},od(m({},e,b.value))),{parent:be})}),H=ct({eventData:L,eventKey:P(()=>e.eventKey),selectHandle:E,pos:M,key:F.vnode.key});r(H);const j=fe=>{const{onNodeDoubleClick:de}=l.value;de(fe,L.value)},Y=fe=>{if(_.value)return;const{onNodeSelect:de}=l.value;fe.preventDefault(),de(fe,L.value)},Q=fe=>{if(_.value)return;const{disableCheckbox:de}=e,{onNodeCheck:be}=l.value;if(!N.value||de)return;fe.preventDefault();const we=!$.value;be(fe,L.value,we)},U=fe=>{const{onNodeClick:de}=l.value;de(fe,L.value),B.value?Y(fe):Q(fe)},ee=fe=>{const{onNodeMouseEnter:de}=l.value;de(fe,L.value)},X=fe=>{const{onNodeMouseLeave:de}=l.value;de(fe,L.value)},J=fe=>{const{onNodeContextMenu:de}=l.value;de(fe,L.value)},Z=fe=>{const{onNodeDragStart:de}=l.value;fe.stopPropagation(),i.value=!0,de(fe,H);try{fe.dataTransfer.setData("text/plain","")}catch{}},G=fe=>{const{onNodeDragEnter:de}=l.value;fe.preventDefault(),fe.stopPropagation(),de(fe,H)},q=fe=>{const{onNodeDragOver:de}=l.value;fe.preventDefault(),fe.stopPropagation(),de(fe,H)},V=fe=>{const{onNodeDragLeave:de}=l.value;fe.stopPropagation(),de(fe,H)},K=fe=>{const{onNodeDragEnd:de}=l.value;fe.stopPropagation(),i.value=!1,de(fe,H)},te=fe=>{const{onNodeDrop:de}=l.value;fe.preventDefault(),fe.stopPropagation(),i.value=!1,de(fe,H)},ue=fe=>{const{onNodeExpand:de}=l.value;C.value||de(fe,L.value)},ie=()=>{const{data:fe}=e,{draggable:de}=l.value;return!!(de&&(!de.nodeDraggable||de.nodeDraggable(fe)))},ae=()=>{const{draggable:fe,prefixCls:de}=l.value;return fe&&fe?.icon?p("span",{class:`${de}-draggable-icon`},[fe.icon]):null},ce=()=>{var fe,de,be;const{switcherIcon:we=o.switcherIcon||((fe=l.value.slots)===null||fe===void 0?void 0:fe[(be=(de=e.data)===null||de===void 0?void 0:de.slots)===null||be===void 0?void 0:be.switcherIcon])}=e,{switcherIcon:Ie}=l.value,Ae=we||Ie;return typeof Ae=="function"?Ae(k.value):Ae},se=()=>{const{loadData:fe,onNodeLoad:de}=l.value;C.value||fe&&y.value&&!R.value&&!A.value&&!x.value&&de(L.value)};je(()=>{se()}),An(()=>{se()});const pe=()=>{const{prefixCls:fe}=l.value,de=ce();if(R.value)return de!==!1?p("span",{class:le(`${fe}-switcher`,`${fe}-switcher-noop`)},[de]):null;const be=le(`${fe}-switcher`,`${fe}-switcher_${y.value?Rx:Dx}`);return de!==!1?p("span",{onClick:ue,class:be},[de]):null},ge=()=>{var fe,de;const{disableCheckbox:be}=e,{prefixCls:we}=l.value,Ie=_.value;return N.value?p("span",{class:le(`${we}-checkbox`,$.value&&`${we}-checkbox-checked`,!$.value&&O.value&&`${we}-checkbox-indeterminate`,(Ie||be)&&`${we}-checkbox-disabled`),onClick:Q},[(de=(fe=l.value).customCheckable)===null||de===void 0?void 0:de.call(fe)]):null},he=()=>{const{prefixCls:fe}=l.value;return p("span",{class:le(`${fe}-iconEle`,`${fe}-icon__${z.value||"docu"}`,C.value&&`${fe}-icon_loading`)},null)},me=()=>{const{disabled:fe,eventKey:de}=e,{draggable:be,dropLevelOffset:we,dropPosition:Ie,prefixCls:Ae,indent:Se,dropIndicatorRender:Ce,dragOverNodeKey:Oe,direction:Me}=l.value;return!fe&&be!==!1&&Oe===de?Ce({dropPosition:Ie,dropLevelOffset:we,indent:Se,prefixCls:Ae,direction:Me}):null},xe=()=>{var fe,de,be,we,Ie,Ae;const{icon:Se=o.icon,data:Ce}=e,Oe=o.title||((fe=l.value.slots)===null||fe===void 0?void 0:fe[(be=(de=e.data)===null||de===void 0?void 0:de.slots)===null||be===void 0?void 0:be.title])||((we=l.value.slots)===null||we===void 0?void 0:we.title)||e.title,{prefixCls:Me,showIcon:Re,icon:_e,loadData:Be}=l.value,et=_.value,dt=`${Me}-node-content-wrapper`;let it;if(Re){const Ut=Se||((Ie=l.value.slots)===null||Ie===void 0?void 0:Ie[(Ae=Ce?.slots)===null||Ae===void 0?void 0:Ae.icon])||_e;it=Ut?p("span",{class:le(`${Me}-iconEle`,`${Me}-icon__customize`)},[typeof Ut=="function"?Ut(k.value):Ut]):he()}else Be&&C.value&&(it=he());let ft;typeof Oe=="function"?ft=Oe(k.value):ft=Oe,ft=ft===void 0?TY:ft;const gt=p("span",{class:`${Me}-title`},[ft]);return p("span",{ref:E,title:typeof Oe=="string"?Oe:"",class:le(`${dt}`,`${dt}-${z.value||"normal"}`,!et&&(S.value||i.value)&&`${Me}-node-selected`),onMouseenter:ee,onMouseleave:X,onContextmenu:J,onClick:U,onDblclick:j},[it,gt,me()])};return()=>{const fe=m(m({},e),n),{eventKey:de,isLeaf:be,isStart:we,isEnd:Ie,domRef:Ae,active:Se,data:Ce,onMousemove:Oe,selectable:Me}=fe,Re=IY(fe,["eventKey","isLeaf","isStart","isEnd","domRef","active","data","onMousemove","selectable"]),{prefixCls:_e,filterTreeNode:Be,keyEntities:et,dropContainerKey:dt,dropTargetKey:it,draggingNodeKey:ft}=l.value,gt=_.value,Ut=_i(Re,{aria:!0,data:!0}),{level:Jt}=et[de]||{},on=Ie[Ie.length-1],zt=ie(),Cn=!gt&&zt,Kn=ft===de,vo=Me!==void 0?{"aria-selected":!!Me}:void 0;return p("div",D(D({ref:Ae,class:le(n.class,`${_e}-treenode`,{[`${_e}-treenode-disabled`]:gt,[`${_e}-treenode-switcher-${y.value?"open":"close"}`]:!be,[`${_e}-treenode-checkbox-checked`]:$.value,[`${_e}-treenode-checkbox-indeterminate`]:O.value,[`${_e}-treenode-selected`]:S.value,[`${_e}-treenode-loading`]:C.value,[`${_e}-treenode-active`]:Se,[`${_e}-treenode-leaf-last`]:on,[`${_e}-treenode-draggable`]:Cn,dragging:Kn,"drop-target":it===de,"drop-container":dt===de,"drag-over":!gt&&w.value,"drag-over-gap-top":!gt&&I.value,"drag-over-gap-bottom":!gt&&T.value,"filter-node":Be&&Be(L.value)}),style:n.style,draggable:Cn,"aria-grabbed":Kn,onDragstart:Cn?Z:void 0,onDragenter:zt?G:void 0,onDragover:zt?q:void 0,onDragleave:zt?V:void 0,onDrop:zt?te:void 0,onDragend:zt?K:void 0,onMousemove:Oe},vo),Ut),[p(OY,{prefixCls:_e,level:Jt,isStart:we,isEnd:Ie},null),ae(),pe(),ge(),xe()])}}});function ir(e,t){if(!e)return[];const n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function Or(e,t){const n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function yy(e){return e.split("-")}function m8(e,t){return`${e}-${t}`}function EY(e){return e&&e.type&&e.type.isTreeNode}function MY(e,t){const n=[],o=t[e];function r(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).forEach(l=>{let{key:a,children:s}=l;n.push(a),r(s)})}return r(o.children),n}function _Y(e){if(e.parent){const t=yy(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function AY(e){const t=yy(e.pos);return Number(t[t.length-1])===0}function Nx(e,t,n,o,r,i,l,a,s,u){var c;const{clientX:d,clientY:f}=e,{top:g,height:v}=e.target.getBoundingClientRect(),b=((u==="rtl"?-1:1)*((r?.x||0)-d)-12)/o;let y=a[n.eventKey];if(fR.key===y.key),E=M<=0?0:M-1,A=l[E].key;y=a[A]}const S=y.key,$=y,x=y.key;let C=0,O=0;if(!s.has(S))for(let M=0;M-1.5?i({dragNode:w,dropNode:I,dropPosition:1})?C=1:T=!1:i({dragNode:w,dropNode:I,dropPosition:0})?C=0:i({dragNode:w,dropNode:I,dropPosition:1})?C=1:T=!1:i({dragNode:w,dropNode:I,dropPosition:1})?C=1:T=!1,{dropPosition:C,dropLevelOffset:O,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:x,dropContainerKey:C===0?null:((c=y.parent)===null||c===void 0?void 0:c.key)||null,dropAllowed:T}}function Bx(e,t){if(!e)return;const{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function Oh(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e=="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return null;return t}function cm(e,t){const n=new Set;function o(r){if(n.has(r))return;const i=t[r];if(!i)return;n.add(r);const{parent:l,node:a}=i;a.disabled||l&&o(l.key)}return(e||[]).forEach(r=>{o(r)}),[...n]}var RY=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r0&&arguments[0]!==void 0?arguments[0]:[];return _t(n).map(r=>{var i,l,a,s;if(!EY(r))return null;const u=r.children||{},c=r.key,d={};for(const[M,E]of Object.entries(r.props))d[ka(M)]=E;const{isLeaf:f,checkable:g,selectable:v,disabled:h,disableCheckbox:b}=d,y={isLeaf:f||f===""||void 0,checkable:g||g===""||void 0,selectable:v||v===""||void 0,disabled:h||h===""||void 0,disableCheckbox:b||b===""||void 0},S=m(m({},d),y),{title:$=(i=u.title)===null||i===void 0?void 0:i.call(u,S),icon:x=(l=u.icon)===null||l===void 0?void 0:l.call(u,S),switcherIcon:C=(a=u.switcherIcon)===null||a===void 0?void 0:a.call(u,S)}=d,O=RY(d,["title","icon","switcherIcon"]),w=(s=u.default)===null||s===void 0?void 0:s.call(u),I=m(m(m({},O),{title:$,icon:x,switcherIcon:C,key:c,isLeaf:f}),y),T=t(w);return T.length&&(I.children=T),I})}return t(e)}function DY(e,t,n){const{_title:o,key:r,children:i}=Up(n),l=new Set(t===!0?[]:t),a=[];function s(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map((d,f)=>{const g=m8(c?c.pos:"0",f),v=Lc(d[r],g);let h;for(let y=0;yf[i]:typeof i=="function"&&(c=f=>i(f)):c=(f,g)=>Lc(f[a],g);function d(f,g,v,h){const b=f?f[u]:e,y=f?m8(v.pos,g):"0",S=f?[...h,f]:[];if(f){const $=c(f,y),x={node:f,index:g,pos:y,key:$,parentPos:v.node?v.pos:null,level:v.level+1,nodes:S};t(x)}b&&b.forEach(($,x)=>{d($,x,{node:f,pos:y,level:v?v.level+1:-1},S)})}d(null)}function zc(e){let{initWrapper:t,processEntity:n,onProcessFinished:o,externalGetKey:r,childrenPropName:i,fieldNames:l}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0;const s=r||a,u={},c={};let d={posEntities:u,keyEntities:c};return t&&(d=t(d)||d),NY(e,f=>{const{node:g,index:v,pos:h,key:b,parentPos:y,level:S,nodes:$}=f,x={node:g,nodes:$,index:v,key:b,pos:h,level:S},C=Lc(b,h);u[h]=x,c[C]=x,x.parent=u[y],x.parent&&(x.parent.children=x.parent.children||[],x.parent.children.push(x)),n&&n(x,d)},{externalGetKey:s,childrenPropName:i,fieldNames:l}),o&&o(d),d}function nd(e,t){let{expandedKeysSet:n,selectedKeysSet:o,loadedKeysSet:r,loadingKeysSet:i,checkedKeysSet:l,halfCheckedKeysSet:a,dragOverNodeKey:s,dropPosition:u,keyEntities:c}=t;const d=c[e];return{eventKey:e,expanded:n.has(e),selected:o.has(e),loaded:r.has(e),loading:i.has(e),checked:l.has(e),halfChecked:a.has(e),pos:String(d?d.pos:""),parent:d.parent,dragOver:s===e&&u===0,dragOverGapTop:s===e&&u===-1,dragOverGapBottom:s===e&&u===1}}function od(e){const{data:t,expanded:n,selected:o,checked:r,loaded:i,loading:l,halfChecked:a,dragOver:s,dragOverGapTop:u,dragOverGapBottom:c,pos:d,active:f,eventKey:g}=e,v=m(m({dataRef:t},t),{expanded:n,selected:o,checked:r,loaded:i,loading:l,halfChecked:a,dragOver:s,dragOverGapTop:u,dragOverGapBottom:c,pos:d,active:f,eventKey:g,key:g});return"props"in v||Object.defineProperty(v,"props",{get(){return e}}),v}const BY=((e,t)=>P(()=>zc(e.value,{fieldNames:t.value,initWrapper:o=>m(m({},o),{pathKeyEntities:{}}),processEntity:(o,r)=>{const i=o.nodes.map(l=>l[t.value.value]).join(my);r.pathKeyEntities[i]=o,o.key=i}}).pathKeyEntities));function kY(e){const t=ne(!1),n=re({});return Le(()=>{if(!e.value){t.value=!1,n.value={};return}let o={matchInputWidth:!0,limit:50};e.value&&typeof e.value=="object"&&(o=m(m({},o),e.value)),o.limit<=0&&delete o.limit,t.value=!0,n.value=o}),{showSearch:t,searchConfig:n}}const Ls="__rc_cascader_search_mark__",FY=(e,t,n)=>{let{label:o}=n;return t.some(r=>String(r[o]).toLowerCase().includes(e.toLowerCase()))},LY=e=>{let{path:t,fieldNames:n}=e;return t.map(o=>o[n.label]).join(" / ")},zY=((e,t,n,o,r,i)=>P(()=>{const{filter:l=FY,render:a=LY,limit:s=50,sort:u}=r.value,c=[];if(!e.value)return[];function d(f,g){f.forEach(v=>{if(!u&&s>0&&c.length>=s)return;const h=[...g,v],b=v[n.value.children];(!b||b.length===0||i.value)&&l(e.value,h,{label:n.value.label})&&c.push(m(m({},v),{[n.value.label]:a({inputValue:e.value,path:h,prefixCls:o.value,fieldNames:n.value}),[Ls]:h})),b&&d(v[n.value.children],h)})}return d(t.value,[]),u&&c.sort((f,g)=>u(f[Ls],g[Ls],e.value,n.value)),s>0?c.slice(0,s):c}));function kx(e,t,n){const o=new Set(e);return e.filter(r=>{const i=t[r],l=i?i.parent:null,a=i?i.children:null;return n===d8?!(a&&a.some(s=>s.key&&o.has(s.key))):!(l&&!l.node.disabled&&o.has(l.key))})}function bc(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;var r;let i=t;const l=[];for(let a=0;a{const f=d[n.value];return o?String(f)===String(s):f===s}),c=u!==-1?i?.[u]:null;l.push({value:(r=c?.[n.value])!==null&&r!==void 0?r:s,index:u,option:c}),i=c?.[n.children]}return l}const HY=((e,t,n)=>P(()=>{const o=[],r=[];return n.value.forEach(i=>{bc(i,e.value,t.value).every(a=>a.option)?r.push(i):o.push(i)}),[r,o]}));function b8(e,t){const n=new Set;return e.forEach(o=>{t.has(o)||n.add(o)}),n}function jY(e){const{disabled:t,disableCheckbox:n,checkable:o}=e||{};return!!(t||n)||o===!1}function VY(e,t,n,o){const r=new Set(e),i=new Set;for(let a=0;a<=n;a+=1)(t.get(a)||new Set).forEach(u=>{const{key:c,node:d,children:f=[]}=u;r.has(c)&&!o(d)&&f.filter(g=>!o(g.node)).forEach(g=>{r.add(g.key)})});const l=new Set;for(let a=n;a>=0;a-=1)(t.get(a)||new Set).forEach(u=>{const{parent:c,node:d}=u;if(o(d)||!u.parent||l.has(u.parent.key))return;if(o(u.parent.node)){l.add(c.key);return}let f=!0,g=!1;(c.children||[]).filter(v=>!o(v.node)).forEach(v=>{let{key:h}=v;const b=r.has(h);f&&!b&&(f=!1),!g&&(b||i.has(h))&&(g=!0)}),f&&r.add(c.key),g&&i.add(c.key),l.add(c.key)});return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(b8(i,r))}}function WY(e,t,n,o,r){const i=new Set(e);let l=new Set(t);for(let s=0;s<=o;s+=1)(n.get(s)||new Set).forEach(c=>{const{key:d,node:f,children:g=[]}=c;!i.has(d)&&!l.has(d)&&!r(f)&&g.filter(v=>!r(v.node)).forEach(v=>{i.delete(v.key)})});l=new Set;const a=new Set;for(let s=o;s>=0;s-=1)(n.get(s)||new Set).forEach(c=>{const{parent:d,node:f}=c;if(r(f)||!c.parent||a.has(c.parent.key))return;if(r(c.parent.node)){a.add(d.key);return}let g=!0,v=!1;(d.children||[]).filter(h=>!r(h.node)).forEach(h=>{let{key:b}=h;const y=i.has(b);g&&!y&&(g=!1),!v&&(y||l.has(b))&&(v=!0)}),g||i.delete(d.key),v&&l.add(d.key),a.add(d.key)});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(b8(l,i))}}function Io(e,t,n,o,r,i){let l;i?l=i:l=jY;const a=new Set(e.filter(u=>!!n[u]));let s;return t===!0?s=VY(a,r,o,l):s=WY(a,t.halfCheckedKeys,r,o,l),s}const KY=((e,t,n,o,r)=>P(()=>{const i=r.value||(l=>{let{labels:a}=l;const s=o.value?a.slice(-1):a,u=" / ";return s.every(c=>["string","number"].includes(typeof c))?s.join(u):s.reduce((c,d,f)=>{const g=Kt(d)?ut(d,{key:f}):d;return f===0?[g]:[...c,u,g]},[])});return e.value.map(l=>{const a=bc(l,t.value,n.value),s=i({labels:a.map(c=>{let{option:d,value:f}=c;var g;return(g=d?.[n.value.label])!==null&&g!==void 0?g:f}),selectedOptions:a.map(c=>{let{option:d}=c;return d})}),u=Ci(l);return{label:s,value:u,key:u,valueCells:l}})})),y8=Symbol("CascaderContextKey"),GY=e=>{Xe(y8,e)},Yp=()=>He(y8),XY=(()=>{const e=Tc(),{values:t}=Yp(),[n,o]=ht([]);return ye(()=>e.open,()=>{if(e.open&&!e.multiple){const r=t.value[0];o(r||[])}},{immediate:!0}),[n,o]}),UY=((e,t,n,o,r,i)=>{const l=Tc(),a=P(()=>l.direction==="rtl"),[s,u,c]=[re([]),re(),re([])];Le(()=>{let h=-1,b=t.value;const y=[],S=[],$=o.value.length;for(let C=0;C<$&&b;C+=1){const O=b.findIndex(w=>w[n.value.value]===o.value[C]);if(O===-1)break;h=O,y.push(h),S.push(o.value[C]),b=b[h][n.value.children]}let x=t.value;for(let C=0;C{r(h)},f=h=>{const b=c.value.length;let y=u.value;y===-1&&h<0&&(y=b);for(let S=0;S{if(s.value.length>1){const h=s.value.slice(0,-1);d(h)}else l.toggleOpen(!1)},v=()=>{var h;const y=(((h=c.value[u.value])===null||h===void 0?void 0:h[n.value.children])||[]).find(S=>!S.disabled);if(y){const S=[...s.value,y[n.value.value]];d(S)}};e.expose({onKeydown:h=>{const{which:b}=h;switch(b){case Pe.UP:case Pe.DOWN:{let y=0;b===Pe.UP?y=-1:b===Pe.DOWN&&(y=1),y!==0&&f(y);break}case Pe.LEFT:{a.value?v():g();break}case Pe.RIGHT:{a.value?g():v();break}case Pe.BACKSPACE:{l.searchValue||g();break}case Pe.ENTER:{if(s.value.length){const y=c.value[u.value],S=y?.[Ls]||[];S.length?i(S.map($=>$[n.value.value]),S[S.length-1]):i(s.value,y)}break}case Pe.ESC:l.toggleOpen(!1),open&&h.stopPropagation()}},onKeyup:()=>{}})});function qp(e){let{prefixCls:t,checked:n,halfChecked:o,disabled:r,onClick:i}=e;const{customSlots:l,checkable:a}=Yp(),s=a.value!==!1?l.value.checkable:a.value,u=typeof s=="function"?s():typeof s=="boolean"?null:s;return p("span",{class:{[t]:!0,[`${t}-checked`]:n,[`${t}-indeterminate`]:!n&&o,[`${t}-disabled`]:r},onClick:i},[u])}qp.props=["prefixCls","checked","halfChecked","disabled","onClick"];qp.displayName="Checkbox";qp.inheritAttrs=!1;const S8="__cascader_fix_label__";function Zp(e){let{prefixCls:t,multiple:n,options:o,activeValue:r,prevValuePath:i,onToggleOpen:l,onSelect:a,onActive:s,checkedSet:u,halfCheckedSet:c,loadingKeys:d,isSelectable:f}=e;var g,v,h,b,y,S;const $=`${t}-menu`,x=`${t}-menu-item`,{fieldNames:C,changeOnSelect:O,expandTrigger:w,expandIcon:I,loadingIcon:T,dropdownMenuColumnStyle:M,customSlots:E}=Yp(),A=(g=I.value)!==null&&g!==void 0?g:(h=(v=E.value).expandIcon)===null||h===void 0?void 0:h.call(v),R=(b=T.value)!==null&&b!==void 0?b:(S=(y=E.value).loadingIcon)===null||S===void 0?void 0:S.call(y),z=w.value==="hover";return p("ul",{class:$,role:"menu"},[o.map(_=>{var N;const{disabled:B}=_,k=_[Ls],F=(N=_[S8])!==null&&N!==void 0?N:_[C.value.label],L=_[C.value.value],H=ms(_,C.value),j=k?k.map(G=>G[C.value.value]):[...i,L],Y=Ci(j),Q=d.includes(Y),U=u.has(Y),ee=c.has(Y),X=()=>{!B&&(!z||!H)&&s(j)},J=()=>{f(_)&&a(j,H)};let Z;return typeof _.title=="string"?Z=_.title:typeof F=="string"&&(Z=F),p("li",{key:Y,class:[x,{[`${x}-expand`]:!H,[`${x}-active`]:r===L,[`${x}-disabled`]:B,[`${x}-loading`]:Q}],style:M.value,role:"menuitemcheckbox",title:Z,"aria-checked":U,"data-path-key":Y,onClick:()=>{X(),(!n||H)&&J()},onDblclick:()=>{O.value&&l(!1)},onMouseenter:()=>{z&&X()},onMousedown:G=>{G.preventDefault()}},[n&&p(qp,{prefixCls:`${t}-checkbox`,checked:U,halfChecked:ee,disabled:B,onClick:G=>{G.stopPropagation(),J()}},null),p("div",{class:`${x}-content`},[F]),!Q&&A&&!H&&p("div",{class:`${x}-expand-icon`},[ut(A)]),Q&&R&&p("div",{class:`${x}-loading-icon`},[ut(R)])])})])}Zp.props=["prefixCls","multiple","options","activeValue","prevValuePath","onToggleOpen","onSelect","onActive","checkedSet","halfCheckedSet","loadingKeys","isSelectable"];Zp.displayName="Column";Zp.inheritAttrs=!1;const YY=oe({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){const{attrs:n,slots:o}=t,r=Tc(),i=re(),l=P(()=>r.direction==="rtl"),{options:a,values:s,halfValues:u,fieldNames:c,changeOnSelect:d,onSelect:f,searchOptions:g,dropdownPrefixCls:v,loadData:h,expandTrigger:b,customSlots:y}=Yp(),S=P(()=>v.value||r.prefixCls),$=ne([]),x=N=>{if(!h.value||r.searchValue)return;const k=bc(N,a.value,c.value).map(L=>{let{option:H}=L;return H}),F=k[k.length-1];if(F&&!ms(F,c.value)){const L=Ci(N);$.value=[...$.value,L],h.value(k)}};Le(()=>{$.value.length&&$.value.forEach(N=>{const B=SY(N),k=bc(B,a.value,c.value,!0).map(L=>{let{option:H}=L;return H}),F=k[k.length-1];(!F||F[c.value.children]||ms(F,c.value))&&($.value=$.value.filter(L=>L!==N))})});const C=P(()=>new Set(ra(s.value))),O=P(()=>new Set(ra(u.value))),[w,I]=XY(),T=N=>{I(N),x(N)},M=N=>{const{disabled:B}=N,k=ms(N,c.value);return!B&&(k||d.value||r.multiple)},E=function(N,B){let k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;f(N),!r.multiple&&(B||d.value&&(b.value==="hover"||k))&&r.toggleOpen(!1)},A=P(()=>r.searchValue?g.value:a.value),R=P(()=>{const N=[{options:A.value}];let B=A.value;for(let k=0;kj[c.value.value]===F),H=L?.[c.value.children];if(!H?.length)break;B=H,N.push({options:H})}return N});UY(t,A,c,w,T,(N,B)=>{M(B)&&E(N,ms(B,c.value),!0)});const _=N=>{N.preventDefault()};return je(()=>{ye(w,N=>{var B;for(let k=0;k{var N,B,k,F,L;const{notFoundContent:H=((N=o.notFoundContent)===null||N===void 0?void 0:N.call(o))||((k=(B=y.value).notFoundContent)===null||k===void 0?void 0:k.call(B)),multiple:j,toggleOpen:Y}=r,Q=!(!((L=(F=R.value[0])===null||F===void 0?void 0:F.options)===null||L===void 0)&&L.length),U=[{[c.value.value]:"__EMPTY__",[S8]:H,disabled:!0}],ee=m(m({},n),{multiple:!Q&&j,onSelect:E,onActive:T,onToggleOpen:Y,checkedSet:C.value,halfCheckedSet:O.value,loadingKeys:$.value,isSelectable:M}),J=(Q?[{options:U}]:R.value).map((Z,G)=>{const q=w.value.slice(0,G),V=w.value[G];return p(Zp,D(D({key:G},ee),{},{prefixCls:S.value,options:Z.options,prevValuePath:q,activeValue:V}),null)});return p("div",{class:[`${S.value}-menus`,{[`${S.value}-menu-empty`]:Q,[`${S.value}-rtl`]:l.value}],onMousedown:_,ref:i},[J])}}});function Qp(e){const t=re(0),n=ne();return Le(()=>{const o=new Map;let r=0;const i=e.value||{};for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const a=i[l],{level:s}=a;let u=o.get(s);u||(u=new Set,o.set(s,u)),u.add(a),r=Math.max(r,s)}t.value=r,n.value=o}),{maxLevel:t,levelEntities:n}}function qY(){return m(m({},tt(Op(),["tokenSeparators","mode","showSearch"])),{id:String,prefixCls:String,fieldNames:De(),children:Array,value:{type:[String,Number,Array]},defaultValue:{type:[String,Number,Array]},changeOnSelect:{type:Boolean,default:void 0},displayRender:Function,checkable:{type:Boolean,default:void 0},showCheckedStrategy:{type:String,default:u8},showSearch:{type:[Boolean,Object],default:void 0},searchValue:String,onSearch:Function,expandTrigger:String,options:Array,dropdownPrefixCls:String,loadData:Function,popupVisible:{type:Boolean,default:void 0},dropdownClassName:String,dropdownMenuColumnStyle:{type:Object,default:void 0},popupStyle:{type:Object,default:void 0},dropdownStyle:{type:Object,default:void 0},popupPlacement:String,placement:String,onPopupVisibleChange:Function,onDropdownVisibleChange:Function,expandIcon:W.any,loadingIcon:W.any})}function $8(){return m(m({},qY()),{onChange:Function,customSlots:Object})}function ZY(e){return Array.isArray(e)&&Array.isArray(e[0])}function Fx(e){return e?ZY(e)?e:(e.length===0?[]:[e]).map(t=>Array.isArray(t)?t:[t]):[]}const QY=oe({compatConfig:{MODE:3},name:"Cascader",inheritAttrs:!1,props:Ze($8(),{}),setup(e,t){let{attrs:n,expose:o,slots:r}=t;const i=ob(ze(e,"id")),l=P(()=>!!e.checkable),[a,s]=Pt(e.defaultValue,{value:P(()=>e.value),postState:Fx}),u=P(()=>$Y(e.fieldNames)),c=P(()=>e.options||[]),d=BY(c,u),f=G=>{const q=d.value;return G.map(V=>{const{nodes:K}=q[V];return K.map(te=>te[u.value.value])})},[g,v]=Pt("",{value:P(()=>e.searchValue),postState:G=>G||""}),h=(G,q)=>{v(G),q.source!=="blur"&&e.onSearch&&e.onSearch(G)},{showSearch:b,searchConfig:y}=kY(ze(e,"showSearch")),S=zY(g,c,u,P(()=>e.dropdownPrefixCls||e.prefixCls),y,ze(e,"changeOnSelect")),$=HY(c,u,a),[x,C,O]=[re([]),re([]),re([])],{maxLevel:w,levelEntities:I}=Qp(d);Le(()=>{const[G,q]=$.value;if(!l.value||!a.value.length){[x.value,C.value,O.value]=[G,[],q];return}const V=ra(G),K=d.value,{checkedKeys:te,halfCheckedKeys:ue}=Io(V,!0,K,w.value,I.value);[x.value,C.value,O.value]=[f(te),f(ue),q]});const T=P(()=>{const G=ra(x.value),q=kx(G,d.value,e.showCheckedStrategy);return[...O.value,...f(q)]}),M=KY(T,c,u,l,ze(e,"displayRender")),E=G=>{if(s(G),e.onChange){const q=Fx(G),V=q.map(ue=>bc(ue,c.value,u.value).map(ie=>ie.option)),K=l.value?q:q[0],te=l.value?V:V[0];e.onChange(K,te)}},A=G=>{if(v(""),!l.value)E(G);else{const q=Ci(G),V=ra(x.value),K=ra(C.value),te=V.includes(q),ue=O.value.some(ce=>Ci(ce)===q);let ie=x.value,ae=O.value;if(ue&&!te)ae=O.value.filter(ce=>Ci(ce)!==q);else{const ce=te?V.filter(ge=>ge!==q):[...V,q];let se;te?{checkedKeys:se}=Io(ce,{halfCheckedKeys:K},d.value,w.value,I.value):{checkedKeys:se}=Io(ce,!0,d.value,w.value,I.value);const pe=kx(se,d.value,e.showCheckedStrategy);ie=f(pe)}E([...ae,...ie])}},R=(G,q)=>{if(q.type==="clear"){E([]);return}const{valueCells:V}=q.values[0];A(V)},z=P(()=>e.open!==void 0?e.open:e.popupVisible),_=P(()=>e.dropdownStyle||e.popupStyle||{}),N=P(()=>e.placement||e.popupPlacement),B=G=>{var q,V;(q=e.onDropdownVisibleChange)===null||q===void 0||q.call(e,G),(V=e.onPopupVisibleChange)===null||V===void 0||V.call(e,G)},{changeOnSelect:k,checkable:F,dropdownPrefixCls:L,loadData:H,expandTrigger:j,expandIcon:Y,loadingIcon:Q,dropdownMenuColumnStyle:U,customSlots:ee,dropdownClassName:X}=jo(e);GY({options:c,fieldNames:u,values:x,halfValues:C,changeOnSelect:k,onSelect:A,checkable:F,searchOptions:S,dropdownPrefixCls:L,loadData:H,expandTrigger:j,expandIcon:Y,loadingIcon:Q,dropdownMenuColumnStyle:U,customSlots:ee});const J=re();o({focus(){var G;(G=J.value)===null||G===void 0||G.focus()},blur(){var G;(G=J.value)===null||G===void 0||G.blur()},scrollTo(G){var q;(q=J.value)===null||q===void 0||q.scrollTo(G)}});const Z=P(()=>tt(e,["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","customSlots","showCheckedStrategy","children"]));return()=>{const G=!(g.value?S.value:c.value).length,{dropdownMatchSelectWidth:q=!1}=e,V=g.value&&y.value.matchInputWidth||G?{}:{minWidth:"auto"};return p(tb,D(D(D({},Z.value),n),{},{ref:J,id:i,prefixCls:e.prefixCls,dropdownMatchSelectWidth:q,dropdownStyle:m(m({},_.value),V),displayValues:M.value,onDisplayValuesChange:R,mode:l.value?"multiple":void 0,searchValue:g.value,onSearch:h,showSearch:b.value,OptionList:YY,emptyOptions:G,open:z.value,dropdownClassName:X.value,placement:N.value,onDropdownVisibleChange:B,getRawInputElement:()=>{var K;return(K=r.default)===null||K===void 0?void 0:K.call(r)}}),r)}}});var JY={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"};function Lx(e){for(var t=1;tMn()&&window.document.documentElement,x8=e=>{if(Mn()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(o=>o in n.style)}return!1},tq=(e,t)=>{if(!x8(e))return!1;const n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o};function Sy(e,t){return!Array.isArray(e)&&t!==void 0?tq(e,t):x8(e)}let Cu;const nq=()=>{if(!C8())return!1;if(Cu!==void 0)return Cu;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),Cu=e.scrollHeight===1,document.body.removeChild(e),Cu},w8=(()=>{const e=ne(!1);return je(()=>{e.value=nq()}),e}),O8=Symbol("rowContextKey"),oq=e=>{Xe(O8,e)},rq=()=>He(O8,{gutter:P(()=>{}),wrap:P(()=>{}),supportFlexGap:P(()=>{})}),iq=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around ":{justifyContent:"space-around"},"&-space-evenly ":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},lq=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},aq=(e,t)=>{const{componentCls:n,gridColumns:o}=e,r={};for(let i=o;i>=0;i--)i===0?(r[`${n}${t}-${i}`]={display:"none"},r[`${n}-push-${i}`]={insetInlineStart:"auto"},r[`${n}-pull-${i}`]={insetInlineEnd:"auto"},r[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},r[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},r[`${n}${t}-offset-${i}`]={marginInlineEnd:0},r[`${n}${t}-order-${i}`]={order:0}):(r[`${n}${t}-${i}`]={display:"block",flex:`0 0 ${i/o*100}%`,maxWidth:`${i/o*100}%`},r[`${n}${t}-push-${i}`]={insetInlineStart:`${i/o*100}%`},r[`${n}${t}-pull-${i}`]={insetInlineEnd:`${i/o*100}%`},r[`${n}${t}-offset-${i}`]={marginInlineStart:`${i/o*100}%`},r[`${n}${t}-order-${i}`]={order:i});return r},dm=(e,t)=>aq(e,t),sq=(e,t,n)=>({[`@media (min-width: ${t}px)`]:m({},dm(e,n))}),cq=Ke("Grid",e=>[iq(e)]),uq=Ke("Grid",e=>{const t=ke(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[lq(t),dm(t,""),dm(t,"-xs"),Object.keys(n).map(o=>sq(t,n[o],o)).reduce((o,r)=>m(m({},o),r),{})]}),dq=()=>({align:Fe([String,Object]),justify:Fe([String,Object]),prefixCls:String,gutter:Fe([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}}),$y=oe({compatConfig:{MODE:3},name:"ARow",inheritAttrs:!1,props:dq(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Te("row",e),[l,a]=cq(r);let s;const u=wb(),c=re({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),d=re({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),f=$=>P(()=>{if(typeof e[$]=="string")return e[$];if(typeof e[$]!="object")return"";for(let x=0;x{s=u.value.subscribe($=>{d.value=$;const x=e.gutter||0;(!Array.isArray(x)&&typeof x=="object"||Array.isArray(x)&&(typeof x[0]=="object"||typeof x[1]=="object"))&&(c.value=$)})}),Qe(()=>{u.value.unsubscribe(s)});const b=P(()=>{const $=[void 0,void 0],{gutter:x=0}=e;return(Array.isArray(x)?x:[x,void 0]).forEach((O,w)=>{if(typeof O=="object")for(let I=0;Ie.wrap)});const y=P(()=>le(r.value,{[`${r.value}-no-wrap`]:e.wrap===!1,[`${r.value}-${v.value}`]:v.value,[`${r.value}-${g.value}`]:g.value,[`${r.value}-rtl`]:i.value==="rtl"},o.class,a.value)),S=P(()=>{const $=b.value,x={},C=$[0]!=null&&$[0]>0?`${$[0]/-2}px`:void 0,O=$[1]!=null&&$[1]>0?`${$[1]/-2}px`:void 0;return C&&(x.marginLeft=C,x.marginRight=C),h.value?x.rowGap=`${$[1]}px`:O&&(x.marginTop=O,x.marginBottom=O),x});return()=>{var $;return l(p("div",D(D({},o),{},{class:y.value,style:m(m({},S.value),o.style)}),[($=n.default)===null||$===void 0?void 0:$.call(n)]))}}});function rl(){return rl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rd(e,t,n){return pq()?rd=Reflect.construct.bind():rd=function(r,i,l){var a=[null];a.push.apply(a,i);var s=Function.bind.apply(r,a),u=new s;return l&&yc(u,l.prototype),u},rd.apply(null,arguments)}function gq(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function pm(e){var t=typeof Map=="function"?new Map:void 0;return pm=function(o){if(o===null||!gq(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(o))return t.get(o);t.set(o,r)}function r(){return rd(o,arguments,fm(this).constructor)}return r.prototype=Object.create(o.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),yc(r,o)},pm(e)}var hq=/%[sdj%]/g,vq=function(){};function gm(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var o=n.field;t[o]=t[o]||[],t[o].push(n)}),t}function so(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o=i)return a;switch(a){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}break;default:return a}});return l}return e}function mq(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function fn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||mq(t)&&typeof e=="string"&&!e)}function bq(e,t,n){var o=[],r=0,i=e.length;function l(a){o.push.apply(o,a||[]),r++,r===i&&n(o)}e.forEach(function(a){t(a,l)})}function zx(e,t,n){var o=0,r=e.length;function i(l){if(l&&l.length){n(l);return}var a=o;o=o+1,a ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{paddingTop:o}}}},zU=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},HU=Ke("Collapse",e=>{const t=ke(e,{collapseContentBg:e.colorBgContainer,collapseHeaderBg:e.colorFillAlter,collapseHeaderPadding:`${e.paddingSM}px ${e.padding}px`,collapsePanelBorderRadius:e.borderRadiusLG,collapseContentPaddingHorizontal:16});return[kU(t),LU(t),zU(t),FU(t),_c(t)]});function Tx(e){let t=e;if(!Array.isArray(t)){const n=typeof t;t=n==="number"||n==="string"?[t]:[]}return t.map(n=>String(n))}const Fs=oe({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:Ze(BU(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,expandIconPosition:"start"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const i=re(Tx(rf([e.activeKey,e.defaultActiveKey])));ye(()=>e.activeKey,()=>{i.value=Tx(e.activeKey)},{deep:!0});const{prefixCls:l,direction:a,rootPrefixCls:s}=Te("collapse",e),[u,c]=HU(l),d=P(()=>{const{expandIconPosition:y}=e;return y!==void 0?y:a.value==="rtl"?"end":"start"}),f=y=>{const{expandIcon:S=o.expandIcon}=e,$=S?S(y):p(ho,{rotate:y.isActive?90:void 0},null);return p("div",{class:[`${l.value}-expand-icon`,c.value],onClick:()=>["header","icon"].includes(e.collapsible)&&v(y.panelKey)},[Kt(Array.isArray(S)?$[0]:$)?ut($,{class:`${l.value}-arrow`},!1):$])},g=y=>{e.activeKey===void 0&&(i.value=y);const S=e.accordion?y[0]:y;r("update:activeKey",S),r("change",S)},v=y=>{let S=i.value;if(e.accordion)S=S[0]===y?[]:[y];else{S=[...S];const $=S.indexOf(y);$>-1?S.splice($,1):S.push(y)}g(S)},h=(y,S)=>{var $,x,C;if(Oc(y))return;const O=i.value,{accordion:w,destroyInactivePanel:I,collapsible:T,openAnimation:_}=e,E=_||Rc(`${s.value}-motion-collapse`),A=String(($=y.key)!==null&&$!==void 0?$:S),{header:R=(C=(x=y.children)===null||x===void 0?void 0:x.header)===null||C===void 0?void 0:C.call(x),headerClass:z,collapsible:M,disabled:N}=y.props||{};let B=!1;w?B=O[0]===A:B=O.indexOf(A)>-1;let k=M??T;(N||N==="")&&(k="disabled");const F={key:A,panelKey:A,header:R,headerClass:z,isActive:B,prefixCls:l.value,destroyInactivePanel:I,openAnimation:E,accordion:w,onItemClick:k==="disabled"?null:v,expandIcon:f,collapsible:k};return ut(y,F)},b=()=>{var y;return bt((y=o.default)===null||y===void 0?void 0:y.call(o)).map(h)};return()=>{const{accordion:y,bordered:S,ghost:$}=e,x=le(l.value,{[`${l.value}-borderless`]:!S,[`${l.value}-icon-position-${d.value}`]:!0,[`${l.value}-rtl`]:a.value==="rtl",[`${l.value}-ghost`]:!!$,[n.class]:!!n.class},c.value);return u(p("div",D(D({class:x},k_(n)),{},{style:n.style,role:y?"tablist":null}),[b()]))}}}),jU=oe({compatConfig:{MODE:3},name:"PanelContent",props:QI(),setup(e,t){let{slots:n}=t;const o=ne(!1);return Le(()=>{(e.isActive||e.forceRender)&&(o.value=!0)}),()=>{var r;if(!o.value)return null;const{prefixCls:i,isActive:l,role:a}=e;return p("div",{class:le(`${i}-content`,{[`${i}-content-active`]:l,[`${i}-content-inactive`]:!l}),role:a},[p("div",{class:`${i}-content-box`},[(r=n.default)===null||r===void 0?void 0:r.call(n)])])}}}),Cf=oe({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:Ze(QI(),{showArrow:!0,isActive:!1,onItemClick(){},headerClass:"",forceRender:!1}),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;Ct(e.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');const{prefixCls:i}=Te("collapse",e),l=()=>{o("itemClick",e.panelKey)},a=s=>{(s.key==="Enter"||s.keyCode===13||s.which===13)&&l()};return()=>{var s,u;const{header:c=(s=n.header)===null||s===void 0?void 0:s.call(n),headerClass:d,isActive:f,showArrow:g,destroyInactivePanel:v,accordion:h,forceRender:b,openAnimation:y,expandIcon:S=n.expandIcon,extra:$=(u=n.extra)===null||u===void 0?void 0:u.call(n),collapsible:x}=e,C=x==="disabled",O=i.value,w=le(`${O}-header`,{[d]:d,[`${O}-header-collapsible-only`]:x==="header",[`${O}-icon-collapsible-only`]:x==="icon"}),I=le({[`${O}-item`]:!0,[`${O}-item-active`]:f,[`${O}-item-disabled`]:C,[`${O}-no-arrow`]:!g,[`${r.class}`]:!!r.class});let T=p("i",{class:"arrow"},null);g&&typeof S=="function"&&(T=S(e));const _=En(p(jU,{prefixCls:O,isActive:f,forceRender:b,role:h?"tabpanel":null},{default:n.default}),[[jn,f]]),E=m({appear:!1,css:!1},y);return p("div",D(D({},r),{},{class:I}),[p("div",{class:w,onClick:()=>!["header","icon"].includes(x)&&l(),role:h?"tab":"button",tabindex:C?-1:0,"aria-expanded":f,onKeypress:a},[g&&T,p("span",{onClick:()=>x==="header"&&l(),class:`${O}-header-text`},[c]),$&&p("div",{class:`${O}-extra`},[$])]),p(un,E,{default:()=>[!v||f?_:null]})])}}});Fs.Panel=Cf;Fs.install=function(e){return e.component(Fs.name,Fs),e.component(Cf.name,Cf),e};const VU=function(e){return e.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()}).toLowerCase()},WU=function(e){return/[height|width]$/.test(e)},Ex=function(e){let t="";const n=Object.keys(e);return n.forEach(function(o,r){let i=e[o];o=VU(o),WU(o)&&typeof i=="number"&&(i=i+"px"),i===!0?t+=o:i===!1?t+="not "+o:t+="("+o+": "+i+")",r{["touchstart","touchmove","wheel"].includes(e.type)||e.preventDefault()},xf=e=>{const t=[],n=e8(e),o=t8(e);for(let r=n;re.currentSlide-GU(e),t8=e=>e.currentSlide+XU(e),GU=e=>e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0,XU=e=>e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow,am=e=>e&&e.offsetWidth||0,hy=e=>e&&e.offsetHeight||0,n8=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;const o=e.startX-e.curX,r=e.startY-e.curY,i=Math.atan2(r,o);return n=Math.round(i*180/Math.PI),n<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?"left":n>=135&&n<=225?"right":t===!0?n>=35&&n<=135?"up":"down":"vertical"},Xp=e=>{let t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t},Ch=(e,t)=>{const n={};return t.forEach(o=>n[o]=e[o]),n},UU=e=>{const t=e.children.length,n=e.listRef,o=Math.ceil(am(n)),r=e.trackRef,i=Math.ceil(am(r));let l;if(e.vertical)l=o;else{let g=e.centerMode&&parseInt(e.centerPadding)*2;typeof e.centerPadding=="string"&&e.centerPadding.slice(-1)==="%"&&(g*=o/100),l=Math.ceil((o-g)/e.slidesToShow)}const a=n&&hy(n.querySelector('[data-index="0"]')),s=a*e.slidesToShow;let u=e.currentSlide===void 0?e.initialSlide:e.currentSlide;e.rtl&&e.currentSlide===void 0&&(u=t-1-e.initialSlide);let c=e.lazyLoadedList||[];const d=xf(m(m({},e),{currentSlide:u,lazyLoadedList:c}));c=c.concat(d);const f={slideCount:t,slideWidth:l,listWidth:o,trackWidth:i,currentSlide:u,slideHeight:a,listHeight:s,lazyLoadedList:c};return e.autoplaying===null&&e.autoplay&&(f.autoplaying="playing"),f},YU=e=>{const{waitForAnimate:t,animating:n,fade:o,infinite:r,index:i,slideCount:l,lazyLoad:a,currentSlide:s,centerMode:u,slidesToScroll:c,slidesToShow:d,useCSS:f}=e;let{lazyLoadedList:g}=e;if(t&&n)return{};let v=i,h,b,y,S={},$={};const x=r?i:lm(i,0,l-1);if(o){if(!r&&(i<0||i>=l))return{};i<0?v=i+l:i>=l&&(v=i-l),a&&g.indexOf(v)<0&&(g=g.concat(v)),S={animating:!0,currentSlide:v,lazyLoadedList:g,targetSlide:v},$={animating:!1,targetSlide:v}}else h=v,v<0?(h=v+l,r?l%c!==0&&(h=l-l%c):h=0):!Xp(e)&&v>s?v=h=s:u&&v>=l?(v=r?l:l-1,h=r?0:l-1):v>=l&&(h=v-l,r?l%c!==0&&(h=0):h=l-d),!r&&v+d>=l&&(h=l-d),b=mc(m(m({},e),{slideIndex:v})),y=mc(m(m({},e),{slideIndex:h})),r||(b===y&&(v=h),b=y),a&&(g=g.concat(xf(m(m({},e),{currentSlide:v})))),f?(S={animating:!0,currentSlide:h,trackStyle:o8(m(m({},e),{left:b})),lazyLoadedList:g,targetSlide:x},$={animating:!1,currentSlide:h,trackStyle:vc(m(m({},e),{left:y})),swipeLeft:null,targetSlide:x}):S={currentSlide:h,trackStyle:vc(m(m({},e),{left:y})),lazyLoadedList:g,targetSlide:x};return{state:S,nextState:$}},qU=(e,t)=>{let n,o,r;const{slidesToScroll:i,slidesToShow:l,slideCount:a,currentSlide:s,targetSlide:u,lazyLoad:c,infinite:d}=e,g=a%i!==0?0:(a-s)%i;if(t.message==="previous")o=g===0?i:l-g,r=s-o,c&&!d&&(n=s-o,r=n===-1?a-1:n),d||(r=u-i);else if(t.message==="next")o=g===0?i:g,r=s+o,c&&!d&&(r=(s+i)%a+g),d||(r=u+i);else if(t.message==="dots")r=t.index*t.slidesToScroll;else if(t.message==="children"){if(r=t.index,d){const v=oY(m(m({},e),{targetSlide:r}));r>t.currentSlide&&v==="left"?r=r-a:re.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":e.keyCode===37?n?"next":"previous":e.keyCode===39?n?"previous":"next":"",QU=(e,t,n)=>(e.target.tagName==="IMG"&&ba(e),!t||!n&&e.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}),JU=(e,t)=>{const{scrolling:n,animating:o,vertical:r,swipeToSlide:i,verticalSwiping:l,rtl:a,currentSlide:s,edgeFriction:u,edgeDragged:c,onEdge:d,swiped:f,swiping:g,slideCount:v,slidesToScroll:h,infinite:b,touchObject:y,swipeEvent:S,listHeight:$,listWidth:x}=t;if(n)return;if(o)return ba(e);r&&i&&l&&ba(e);let C,O={};const w=mc(t);y.curX=e.touches?e.touches[0].pageX:e.clientX,y.curY=e.touches?e.touches[0].pageY:e.clientY,y.swipeLength=Math.round(Math.sqrt(Math.pow(y.curX-y.startX,2)));const I=Math.round(Math.sqrt(Math.pow(y.curY-y.startY,2)));if(!l&&!g&&I>10)return{scrolling:!0};l&&(y.swipeLength=I);let T=(a?-1:1)*(y.curX>y.startX?1:-1);l&&(T=y.curY>y.startY?1:-1);const _=Math.ceil(v/h),E=n8(t.touchObject,l);let A=y.swipeLength;return b||(s===0&&(E==="right"||E==="down")||s+1>=_&&(E==="left"||E==="up")||!Xp(t)&&(E==="left"||E==="up"))&&(A=y.swipeLength*u,c===!1&&d&&(d(E),O.edgeDragged=!0)),!f&&S&&(S(E),O.swiped=!0),r?C=w+A*($/x)*T:a?C=w-A*T:C=w+A*T,l&&(C=w+A*T),O=m(m({},O),{touchObject:y,swipeLeft:C,trackStyle:vc(m(m({},t),{left:C}))}),Math.abs(y.curX-y.startX)10&&(O.swiping=!0,ba(e)),O},eY=(e,t)=>{const{dragging:n,swipe:o,touchObject:r,listWidth:i,touchThreshold:l,verticalSwiping:a,listHeight:s,swipeToSlide:u,scrolling:c,onSwipe:d,targetSlide:f,currentSlide:g,infinite:v}=t;if(!n)return o&&ba(e),{};const h=a?s/l:i/l,b=n8(r,a),y={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(c||!r.swipeLength)return y;if(r.swipeLength>h){ba(e),d&&d(b);let S,$;const x=v?g:f;switch(b){case"left":case"up":$=x+_x(t),S=u?Mx(t,$):$,y.currentDirection=0;break;case"right":case"down":$=x-_x(t),S=u?Mx(t,$):$,y.currentDirection=1;break;default:S=x}y.triggerSlideHandler=S}else{const S=mc(t);y.trackStyle=o8(m(m({},t),{left:S}))}return y},tY=e=>{const t=e.infinite?e.slideCount*2:e.slideCount;let n=e.infinite?e.slidesToShow*-1:0,o=e.infinite?e.slidesToShow*-1:0;const r=[];for(;n{const n=tY(e);let o=0;if(t>n[n.length-1])t=n[n.length-1];else for(const r in n){if(t{const t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){let n;const o=e.listRef,r=o.querySelectorAll&&o.querySelectorAll(".slick-slide")||[];if(Array.from(r).every(a=>{if(e.vertical){if(a.offsetTop+hy(a)/2>e.swipeLeft*-1)return n=a,!1}else if(a.offsetLeft-t+am(a)/2>e.swipeLeft*-1)return n=a,!1;return!0}),!n)return 0;const i=e.rtl===!0?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}else return e.slidesToScroll},vy=(e,t)=>t.reduce((n,o)=>n&&e.hasOwnProperty(o),!0)?null:console.error("Keys Missing:",e),vc=e=>{vy(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);let t,n;const o=e.slideCount+2*e.slidesToShow;e.vertical?n=o*e.slideHeight:t=nY(e)*e.slideWidth;let r={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){const i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",l=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";r=m(m({},r),{WebkitTransform:i,transform:l,msTransform:a})}else e.vertical?r.top=e.left:r.left=e.left;return e.fade&&(r={opacity:1}),t&&(r.width=t+"px"),n&&(r.height=n+"px"),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?r.marginTop=e.left+"px":r.marginLeft=e.left+"px"),r},o8=e=>{vy(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);const t=vc(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},mc=e=>{if(e.unslick)return 0;vy(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);const{slideIndex:t,trackRef:n,infinite:o,centerMode:r,slideCount:i,slidesToShow:l,slidesToScroll:a,slideWidth:s,listWidth:u,variableWidth:c,slideHeight:d,fade:f,vertical:g}=e;let v=0,h,b,y=0;if(f||e.slideCount===1)return 0;let S=0;if(o?(S=-kr(e),i%a!==0&&t+a>i&&(S=-(t>i?l-(t-i):i%a)),r&&(S+=parseInt(l/2))):(i%a!==0&&t+a>i&&(S=l-i%a),r&&(S=parseInt(l/2))),v=S*s,y=S*d,g?h=t*d*-1+y:h=t*s*-1+v,c===!0){let $;const x=n;if($=t+kr(e),b=x&&x.childNodes[$],h=b?b.offsetLeft*-1:0,r===!0){$=o?t+kr(e):t,b=x&&x.children[$],h=0;for(let C=0;C<$;C++)h-=x&&x.children[C]&&x.children[C].offsetWidth;h-=parseInt(e.centerPadding),h+=b&&(u-b.offsetWidth)/2}}return h},kr=e=>e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0),td=e=>e.unslick||!e.infinite?0:e.slideCount,nY=e=>e.slideCount===1?1:kr(e)+e.slideCount+td(e),oY=e=>e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+rY(e)?"left":"right":e.targetSlide{let{slidesToShow:t,centerMode:n,rtl:o,centerPadding:r}=e;if(n){let i=(t-1)/2+1;return parseInt(r)>0&&(i+=1),o&&t%2===0&&(i+=1),i}return o?0:t-1},iY=e=>{let{slidesToShow:t,centerMode:n,rtl:o,centerPadding:r}=e;if(n){let i=(t-1)/2+1;return parseInt(r)>0&&(i+=1),!o&&t%2===0&&(i+=1),i}return o?t-1:0},Ax=()=>!!(typeof window<"u"&&window.document&&window.document.createElement),xh=e=>{let t,n,o,r;e.rtl?r=e.slideCount-1-e.index:r=e.index;const i=r<0||r>=e.slideCount;e.centerMode?(o=Math.floor(e.slidesToShow/2),n=(r-e.currentSlide)%e.slideCount===0,r>e.currentSlide-o-1&&r<=e.currentSlide+o&&(t=!0)):t=e.currentSlide<=r&&r=e.slideCount?l=e.targetSlide-e.slideCount:l=e.targetSlide,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":i,"slick-current":r===l}},lY=function(e){const t={};return(e.variableWidth===void 0||e.variableWidth===!1)&&(t.width=e.slideWidth+(typeof e.slideWidth=="number"?"px":"")),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight)+"px":t.left=-e.index*parseInt(e.slideWidth)+"px",t.opacity=e.currentSlide===e.index?1:0,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t},wh=(e,t)=>e.key+"-"+t,aY=function(e,t){let n;const o=[],r=[],i=[],l=t.length,a=e8(e),s=t8(e);return t.forEach((u,c)=>{let d;const f={message:"children",index:c,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(c)>=0?d=u:d=p("div");const g=lY(m(m({},e),{index:c})),v=d.props.class||"";let h=xh(m(m({},e),{index:c}));if(o.push(As(d,{key:"original"+wh(d,c),tabindex:"-1","data-index":c,"aria-hidden":!h["slick-active"],class:le(h,v),style:m(m({outline:"none"},d.props.style||{}),g),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(f)}})),e.infinite&&e.fade===!1){const b=l-c;b<=kr(e)&&l!==e.slidesToShow&&(n=-b,n>=a&&(d=u),h=xh(m(m({},e),{index:n})),r.push(As(d,{key:"precloned"+wh(d,n),class:le(h,v),tabindex:"-1","data-index":n,"aria-hidden":!h["slick-active"],style:m(m({},d.props.style||{}),g),onClick:()=>{e.focusOnSelect&&e.focusOnSelect(f)}}))),l!==e.slidesToShow&&(n=l+c,n{e.focusOnSelect&&e.focusOnSelect(f)}})))}}),e.rtl?r.concat(o,i).reverse():r.concat(o,i)},r8=(e,t)=>{let{attrs:n,slots:o}=t;const r=aY(n,bt(o?.default())),{onMouseenter:i,onMouseover:l,onMouseleave:a}=n,s={onMouseenter:i,onMouseover:l,onMouseleave:a},u=m({class:"slick-track",style:n.trackStyle},s);return p("div",u,[r])};r8.inheritAttrs=!1;const sY=function(e){let t;return e.infinite?t=Math.ceil(e.slideCount/e.slidesToScroll):t=Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,t},i8=(e,t)=>{let{attrs:n}=t;const{slideCount:o,slidesToScroll:r,slidesToShow:i,infinite:l,currentSlide:a,appendDots:s,customPaging:u,clickHandler:c,dotsClass:d,onMouseenter:f,onMouseover:g,onMouseleave:v}=n,h=sY({slideCount:o,slidesToScroll:r,slidesToShow:i,infinite:l}),b={onMouseenter:f,onMouseover:g,onMouseleave:v};let y=[];for(let S=0;S=O&&a<=x:a===O}),I={message:"dots",index:S,slidesToScroll:r,currentSlide:a};y=y.concat(p("li",{key:S,class:w},[ut(u({i:S}),{onClick:T})]))}return ut(s({dots:y}),m({class:d},b))};i8.inheritAttrs=!1;function l8(){}function a8(e,t,n){n&&n.preventDefault(),t(e,n)}const s8=(e,t)=>{let{attrs:n}=t;const{clickHandler:o,infinite:r,currentSlide:i,slideCount:l,slidesToShow:a}=n,s={"slick-arrow":!0,"slick-prev":!0};let u=function(g){a8({message:"previous"},o,g)};!r&&(i===0||l<=a)&&(s["slick-disabled"]=!0,u=l8);const c={key:"0","data-role":"none",class:s,style:{display:"block"},onClick:u},d={currentSlide:i,slideCount:l};let f;return n.prevArrow?f=ut(n.prevArrow(m(m({},c),d)),{key:"0",class:s,style:{display:"block"},onClick:u},!1):f=p("button",D({key:"0",type:"button"},c),[" ",Ft("Previous")]),f};s8.inheritAttrs=!1;const c8=(e,t)=>{let{attrs:n}=t;const{clickHandler:o,currentSlide:r,slideCount:i}=n,l={"slick-arrow":!0,"slick-next":!0};let a=function(d){a8({message:"next"},o,d)};Xp(n)||(l["slick-disabled"]=!0,a=l8);const s={key:"1","data-role":"none",class:le(l),style:{display:"block"},onClick:a},u={currentSlide:r,slideCount:i};let c;return n.nextArrow?c=ut(n.nextArrow(m(m({},s),u)),{key:"1",class:le(l),style:{display:"block"},onClick:a},!1):c=p("button",D({key:"1",type:"button"},s),[" ",Ft("Next")]),c};c8.inheritAttrs=!1;var cY=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{this.currentSlide>=e.children.length&&this.changeSlide({message:"index",index:e.children.length-e.slidesToShow,currentSlide:this.currentSlide}),!this.preProps.autoplay&&e.autoplay?this.handleAutoPlay("playing"):e.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.preProps=m({},e)}},mounted(){if(this.__emit("init"),this.lazyLoad){const e=xf(m(m({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e))}this.$nextTick(()=>{const e=m({listRef:this.list,trackRef:this.track,children:this.children},this.$props);this.updateState(e,!0,()=>{this.adaptHeight(),this.autoplay&&this.handleAutoPlay("playing")}),this.lazyLoad==="progressive"&&(this.lazyLoadTimer=setInterval(this.progressiveLazyLoad,1e3)),this.ro=new b0(()=>{this.animating?(this.onWindowResized(!1),this.callbackTimers.push(setTimeout(()=>this.onWindowResized(),this.speed))):this.onWindowResized()}),this.ro.observe(this.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),t=>{t.onfocus=this.$props.pauseOnFocus?this.onSlideFocus:null,t.onblur=this.$props.pauseOnFocus?this.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",this.onWindowResized):window.attachEvent("onresize",this.onWindowResized)})},beforeUnmount(){var e;this.animationEndCallback&&clearTimeout(this.animationEndCallback),this.lazyLoadTimer&&clearInterval(this.lazyLoadTimer),this.callbackTimers.length&&(this.callbackTimers.forEach(t=>clearTimeout(t)),this.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",this.onWindowResized):window.detachEvent("onresize",this.onWindowResized),this.autoplayTimer&&clearInterval(this.autoplayTimer),(e=this.ro)===null||e===void 0||e.disconnect()},updated(){if(this.checkImagesLoad(),this.__emit("reInit"),this.lazyLoad){const e=xf(m(m({},this.$props),this.$data));e.length>0&&(this.setState(t=>({lazyLoadedList:t.lazyLoadedList.concat(e)})),this.__emit("lazyLoad"))}this.adaptHeight()},methods:{listRefHandler(e){this.list=e},trackRefHandler(e){this.track=e},adaptHeight(){if(this.adaptiveHeight&&this.list){const e=this.list.querySelector(`[data-index="${this.currentSlide}"]`);this.list.style.height=hy(e)+"px"}},onWindowResized(e){this.debouncedResize&&this.debouncedResize.cancel(),this.debouncedResize=Sb(()=>this.resizeWindow(e),50),this.debouncedResize()},resizeWindow(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(!!!this.track)return;const n=m(m({listRef:this.list,trackRef:this.track,children:this.children},this.$props),this.$data);this.updateState(n,e,()=>{this.autoplay?this.handleAutoPlay("update"):this.pause("paused")}),this.setState({animating:!1}),clearTimeout(this.animationEndCallback),delete this.animationEndCallback},updateState(e,t,n){const o=UU(e);e=m(m(m({},e),o),{slideIndex:o.currentSlide});const r=mc(e);e=m(m({},e),{left:r});const i=vc(e);(t||this.children.length!==e.children.length)&&(o.trackStyle=i),this.setState(o,n)},ssrInit(){const e=this.children;if(this.variableWidth){let s=0,u=0;const c=[],d=kr(m(m(m({},this.$props),this.$data),{slideCount:e.length})),f=td(m(m(m({},this.$props),this.$data),{slideCount:e.length}));e.forEach(v=>{var h,b;const y=((b=(h=v.props.style)===null||h===void 0?void 0:h.width)===null||b===void 0?void 0:b.split("px")[0])||0;c.push(y),s+=y});for(let v=0;v{const r=()=>++n&&n>=t&&this.onWindowResized();if(!o.onclick)o.onclick=()=>o.parentNode.focus();else{const i=o.onclick;o.onclick=()=>{i(),o.parentNode.focus()}}o.onload||(this.$props.lazyLoad?o.onload=()=>{this.adaptHeight(),this.callbackTimers.push(setTimeout(this.onWindowResized,this.speed))}:(o.onload=r,o.onerror=()=>{r(),this.__emit("lazyLoadError")}))})},progressiveLazyLoad(){const e=[],t=m(m({},this.$props),this.$data);for(let n=this.currentSlide;n=-kr(t);n--)if(this.lazyLoadedList.indexOf(n)<0){e.push(n);break}e.length>0?(this.setState(n=>({lazyLoadedList:n.lazyLoadedList.concat(e)})),this.__emit("lazyLoad",e)):this.lazyLoadTimer&&(clearInterval(this.lazyLoadTimer),delete this.lazyLoadTimer)},slideHandler(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{asNavFor:n,beforeChange:o,speed:r,afterChange:i}=this.$props,{state:l,nextState:a}=YU(m(m(m({index:e},this.$props),this.$data),{trackRef:this.track,useCSS:this.useCSS&&!t}));if(!l)return;o&&o(this.currentSlide,l.currentSlide);const s=l.lazyLoadedList.filter(u=>this.lazyLoadedList.indexOf(u)<0);this.$attrs.onLazyLoad&&s.length>0&&this.__emit("lazyLoad",s),!this.$props.waitForAnimate&&this.animationEndCallback&&(clearTimeout(this.animationEndCallback),i&&i(this.currentSlide),delete this.animationEndCallback),this.setState(l,()=>{n&&this.asNavForIndex!==e&&(this.asNavForIndex=e,n.innerSlider.slideHandler(e)),a&&(this.animationEndCallback=setTimeout(()=>{const{animating:u}=a,c=cY(a,["animating"]);this.setState(c,()=>{this.callbackTimers.push(setTimeout(()=>this.setState({animating:u}),10)),i&&i(l.currentSlide),delete this.animationEndCallback})},r))})},changeSlide(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=m(m({},this.$props),this.$data),o=qU(n,e);if(!(o!==0&&!o)&&(t===!0?this.slideHandler(o,t):this.slideHandler(o),this.$props.autoplay&&this.handleAutoPlay("update"),this.$props.focusOnSelect)){const r=this.list.querySelectorAll(".slick-current");r[0]&&r[0].focus()}},clickHandler(e){this.clickable===!1&&(e.stopPropagation(),e.preventDefault()),this.clickable=!0},keyHandler(e){const t=ZU(e,this.accessibility,this.rtl);t!==""&&this.changeSlide({message:t})},selectHandler(e){this.changeSlide(e)},disableBodyScroll(){const e=t=>{t=t||window.event,t.preventDefault&&t.preventDefault(),t.returnValue=!1};window.ontouchmove=e},enableBodyScroll(){window.ontouchmove=null},swipeStart(e){this.verticalSwiping&&this.disableBodyScroll();const t=QU(e,this.swipe,this.draggable);t!==""&&this.setState(t)},swipeMove(e){const t=JU(e,m(m(m({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));t&&(t.swiping&&(this.clickable=!1),this.setState(t))},swipeEnd(e){const t=eY(e,m(m(m({},this.$props),this.$data),{trackRef:this.track,listRef:this.list,slideIndex:this.currentSlide}));if(!t)return;const n=t.triggerSlideHandler;delete t.triggerSlideHandler,this.setState(t),n!==void 0&&(this.slideHandler(n),this.$props.verticalSwiping&&this.enableBodyScroll())},touchEnd(e){this.swipeEnd(e),this.clickable=!0},slickPrev(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"previous"}),0))},slickNext(){this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"next"}),0))},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e=Number(e),isNaN(e))return"";this.callbackTimers.push(setTimeout(()=>this.changeSlide({message:"index",index:e,currentSlide:this.currentSlide},t),0))},play(){let e;if(this.rtl)e=this.currentSlide-this.slidesToScroll;else if(Xp(m(m({},this.$props),this.$data)))e=this.currentSlide+this.slidesToScroll;else return!1;this.slideHandler(e)},handleAutoPlay(e){this.autoplayTimer&&clearInterval(this.autoplayTimer);const t=this.autoplaying;if(e==="update"){if(t==="hovered"||t==="focused"||t==="paused")return}else if(e==="leave"){if(t==="paused"||t==="focused")return}else if(e==="blur"&&(t==="paused"||t==="hovered"))return;this.autoplayTimer=setInterval(this.play,this.autoplaySpeed+50),this.setState({autoplaying:"playing"})},pause(e){this.autoplayTimer&&(clearInterval(this.autoplayTimer),this.autoplayTimer=null);const t=this.autoplaying;e==="paused"?this.setState({autoplaying:"paused"}):e==="focused"?(t==="hovered"||t==="playing")&&this.setState({autoplaying:"focused"}):t==="playing"&&this.setState({autoplaying:"hovered"})},onDotsOver(){this.autoplay&&this.pause("hovered")},onDotsLeave(){this.autoplay&&this.autoplaying==="hovered"&&this.handleAutoPlay("leave")},onTrackOver(){this.autoplay&&this.pause("hovered")},onTrackLeave(){this.autoplay&&this.autoplaying==="hovered"&&this.handleAutoPlay("leave")},onSlideFocus(){this.autoplay&&this.pause("focused")},onSlideBlur(){this.autoplay&&this.autoplaying==="focused"&&this.handleAutoPlay("blur")},customPaging(e){let{i:t}=e;return p("button",null,[t+1])},appendDots(e){let{dots:t}=e;return p("ul",{style:{display:"block"}},[t])}},render(){const e=le("slick-slider",this.$attrs.class,{"slick-vertical":this.vertical,"slick-initialized":!0}),t=m(m({},this.$props),this.$data);let n=Ch(t,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]);const{pauseOnHover:o}=this.$props;n=m(m({},n),{focusOnSelect:this.focusOnSelect&&this.clickable?this.selectHandler:null,ref:this.trackRefHandler,onMouseleave:o?this.onTrackLeave:no,onMouseover:o?this.onTrackOver:no});let r;if(this.dots===!0&&this.slideCount>=this.slidesToShow){let b=Ch(t,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","infinite","appendDots"]);b.customPaging=this.customPaging,b.appendDots=this.appendDots;const{customPaging:y,appendDots:S}=this.$slots;y&&(b.customPaging=y),S&&(b.appendDots=S);const{pauseOnDotsHover:$}=this.$props;b=m(m({},b),{clickHandler:this.changeSlide,onMouseover:$?this.onDotsOver:no,onMouseleave:$?this.onDotsLeave:no}),r=p(i8,b,null)}let i,l;const a=Ch(t,["infinite","centerMode","currentSlide","slideCount","slidesToShow"]);a.clickHandler=this.changeSlide;const{prevArrow:s,nextArrow:u}=this.$slots;s&&(a.prevArrow=s),u&&(a.nextArrow=u),this.arrows&&(i=p(s8,a,null),l=p(c8,a,null));let c=null;this.vertical&&(c={height:typeof this.listHeight=="number"?`${this.listHeight}px`:this.listHeight});let d=null;this.vertical===!1?this.centerMode===!0&&(d={padding:"0px "+this.centerPadding}):this.centerMode===!0&&(d={padding:this.centerPadding+" 0px"});const f=m(m({},c),d),g=this.touchMove;let v={ref:this.listRefHandler,class:"slick-list",style:f,onClick:this.clickHandler,onMousedown:g?this.swipeStart:no,onMousemove:this.dragging&&g?this.swipeMove:no,onMouseup:g?this.swipeEnd:no,onMouseleave:this.dragging&&g?this.swipeEnd:no,[Yt?"onTouchstartPassive":"onTouchstart"]:g?this.swipeStart:no,[Yt?"onTouchmovePassive":"onTouchmove"]:this.dragging&&g?this.swipeMove:no,onTouchend:g?this.touchEnd:no,onTouchcancel:this.dragging&&g?this.swipeEnd:no,onKeydown:this.accessibility?this.keyHandler:no},h={class:e,dir:"ltr",style:this.$attrs.style};return this.unslick&&(v={class:"slick-list",ref:this.listRefHandler},h={class:e}),p("div",h,[this.unslick?"":i,p("div",v,[p(r8,n,{default:()=>[this.children]})]),this.unslick?"":l,this.unslick?"":r])}},dY=oe({name:"Slider",mixins:[Al],inheritAttrs:!1,props:m({},JI),data(){return this._responsiveMediaHandlers=[],{breakpoint:null}},mounted(){if(this.responsive){const e=this.responsive.map(n=>n.breakpoint);e.sort((n,o)=>n-o),e.forEach((n,o)=>{let r;o===0?r=$h({minWidth:0,maxWidth:n}):r=$h({minWidth:e[o-1]+1,maxWidth:n}),Ax()&&this.media(r,()=>{this.setState({breakpoint:n})})});const t=$h({minWidth:e.slice(-1)[0]});Ax()&&this.media(t,()=>{this.setState({breakpoint:null})})}},beforeUnmount(){this._responsiveMediaHandlers.forEach(function(e){e.mql.removeListener(e.listener)})},methods:{innerSliderRefHandler(e){this.innerSlider=e},media(e,t){const n=window.matchMedia(e),o=r=>{let{matches:i}=r;i&&t()};n.addListener(o),o(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:o})},slickPrev(){var e;(e=this.innerSlider)===null||e===void 0||e.slickPrev()},slickNext(){var e;(e=this.innerSlider)===null||e===void 0||e.slickNext()},slickGoTo(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var n;(n=this.innerSlider)===null||n===void 0||n.slickGoTo(e,t)},slickPause(){var e;(e=this.innerSlider)===null||e===void 0||e.pause("paused")},slickPlay(){var e;(e=this.innerSlider)===null||e===void 0||e.handleAutoPlay("play")}},render(){var e;let t,n;this.breakpoint?(n=this.responsive.filter(a=>a.breakpoint===this.breakpoint),t=n[0].settings==="unslick"?"unslick":m(m({},this.$props),n[0].settings)):t=m({},this.$props),t.centerMode&&(t.slidesToScroll>1,t.slidesToScroll=1),t.fade&&(t.slidesToShow>1,t.slidesToScroll>1,t.slidesToShow=1,t.slidesToScroll=1);let o=lp(this)||[];o=o.filter(a=>typeof a=="string"?!!a.trim():!!a),t.variableWidth&&(t.rows>1||t.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),t.variableWidth=!1);const r=[];let i=null;for(let a=0;a=o.length));d+=1)c.push(ut(o[d],{key:100*a+10*u+d,tabindex:-1,style:{width:`${100/t.slidesPerRow}%`,display:"inline-block"}}));s.push(p("div",{key:10*a+u},[c]))}t.variableWidth?r.push(p("div",{key:a,style:{width:i}},[s])):r.push(p("div",{key:a},[s]))}if(t==="unslick"){const a="regular slider "+(this.className||"");return p("div",{class:a},[o])}else r.length<=t.slidesToShow&&(t.unslick=!0);const l=m(m(m({},this.$attrs),t),{children:r,ref:this.innerSliderRefHandler});return p(uY,D(D({},l),{},{__propsSymbol__:[]}),this.$slots)}}),fY=e=>{const{componentCls:t,antCls:n,carouselArrowSize:o,carouselDotOffset:r,marginXXS:i}=e,l=-o*1.25,a=i;return{[t]:m(m({},Ue(e)),{".slick-slider":{position:"relative",display:"block",boxSizing:"border-box",touchAction:"pan-y",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",".slick-track, .slick-list":{transform:"translate3d(0, 0, 0)",touchAction:"pan-y"}},".slick-list":{position:"relative",display:"block",margin:0,padding:0,overflow:"hidden","&:focus":{outline:"none"},"&.dragging":{cursor:"pointer"},".slick-slide":{pointerEvents:"none",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"hidden"},"&.slick-active":{pointerEvents:"auto",[`input${n}-radio-input, input${n}-checkbox-input`]:{visibility:"visible"}},"> div > div":{verticalAlign:"bottom"}}},".slick-track":{position:"relative",top:0,insetInlineStart:0,display:"block","&::before, &::after":{display:"table",content:'""'},"&::after":{clear:"both"}},".slick-slide":{display:"none",float:"left",height:"100%",minHeight:1,img:{display:"block"},"&.dragging img":{pointerEvents:"none"}},".slick-initialized .slick-slide":{display:"block"},".slick-vertical .slick-slide":{display:"block",height:"auto"},".slick-arrow.slick-hidden":{display:"none"},".slick-prev, .slick-next":{position:"absolute",top:"50%",display:"block",width:o,height:o,marginTop:-o/2,padding:0,color:"transparent",fontSize:0,lineHeight:0,background:"transparent",border:0,outline:"none",cursor:"pointer","&:hover, &:focus":{color:"transparent",background:"transparent",outline:"none","&::before":{opacity:1}},"&.slick-disabled::before":{opacity:.25}},".slick-prev":{insetInlineStart:l,"&::before":{content:'"←"'}},".slick-next":{insetInlineEnd:l,"&::before":{content:'"→"'}},".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,listStyle:"none","&-bottom":{bottom:r},"&-top":{top:r,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:e.dotWidth,height:e.dotHeight,marginInline:a,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${e.motionDurationSlow}`,button:{position:"relative",display:"block",width:"100%",height:e.dotHeight,padding:0,color:"transparent",fontSize:0,background:e.colorBgContainer,border:0,borderRadius:1,outline:"none",cursor:"pointer",opacity:.3,transition:`all ${e.motionDurationSlow}`,"&: hover, &:focus":{opacity:.75},"&::after":{position:"absolute",inset:-a,content:'""'}},"&.slick-active":{width:e.dotWidthActive,"& button":{background:e.colorBgContainer,opacity:1},"&: hover, &:focus":{opacity:1}}}}})}},pY=e=>{const{componentCls:t,carouselDotOffset:n,marginXXS:o}=e,r={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:m(m({},r),{margin:`${o}px 0`,verticalAlign:"baseline",button:r,"&.slick-active":m(m({},r),{button:r})})}}}},gY=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},hY=Ke("Carousel",e=>{const{controlHeightLG:t,controlHeightSM:n}=e,o=ke(e,{carouselArrowSize:t/2,carouselDotOffset:n/2});return[fY(o),pY(o),gY(o)]},{dotWidth:16,dotHeight:3,dotWidthActive:24});var vY=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({effect:Ne(),dots:$e(!0),vertical:$e(),autoplay:$e(),easing:String,beforeChange:ve(),afterChange:ve(),prefixCls:String,accessibility:$e(),nextArrow:W.any,prevArrow:W.any,pauseOnHover:$e(),adaptiveHeight:$e(),arrows:$e(!1),autoplaySpeed:Number,centerMode:$e(),centerPadding:String,cssEase:String,dotsClass:String,draggable:$e(!1),fade:$e(),focusOnSelect:$e(),infinite:$e(),initialSlide:Number,lazyLoad:Ne(),rtl:$e(),slide:String,slidesToShow:Number,slidesToScroll:Number,speed:Number,swipe:$e(),swipeToSlide:$e(),swipeEvent:ve(),touchMove:$e(),touchThreshold:Number,variableWidth:$e(),useCSS:$e(),slickGoTo:Number,responsive:Array,dotPosition:Ne(),verticalSwiping:$e(!1)}),bY=oe({compatConfig:{MODE:3},name:"ACarousel",inheritAttrs:!1,props:mY(),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const i=re();r({goTo:function(v){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;var b;(b=i.value)===null||b===void 0||b.slickGoTo(v,h)},autoplay:v=>{var h,b;(b=(h=i.value)===null||h===void 0?void 0:h.innerSlider)===null||b===void 0||b.handleAutoPlay(v)},prev:()=>{var v;(v=i.value)===null||v===void 0||v.slickPrev()},next:()=>{var v;(v=i.value)===null||v===void 0||v.slickNext()},innerSlider:P(()=>{var v;return(v=i.value)===null||v===void 0?void 0:v.innerSlider})}),Le(()=>{fo(e.vertical===void 0)});const{prefixCls:a,direction:s}=Te("carousel",e),[u,c]=hY(a),d=P(()=>e.dotPosition?e.dotPosition:e.vertical!==void 0&&e.vertical?"right":"bottom"),f=P(()=>d.value==="left"||d.value==="right"),g=P(()=>{const v="slick-dots";return le({[v]:!0,[`${v}-${d.value}`]:!0,[`${e.dotsClass}`]:!!e.dotsClass})});return()=>{const{dots:v,arrows:h,draggable:b,effect:y}=e,{class:S,style:$}=o,x=vY(o,["class","style"]),C=y==="fade"?!0:e.fade,O=le(a.value,{[`${a.value}-rtl`]:s.value==="rtl",[`${a.value}-vertical`]:f.value,[`${S}`]:!!S},c.value);return u(p("div",{class:O,style:$},[p(dY,D(D(D({ref:i},e),x),{},{dots:!!v,dotsClass:g.value,arrows:h,draggable:b,fade:C,vertical:f.value}),n)]))}}}),yY=It(bY),my="__RC_CASCADER_SPLIT__",u8="SHOW_PARENT",d8="SHOW_CHILD";function Ci(e){return e.join(my)}function ra(e){return e.map(Ci)}function SY(e){return e.split(my)}function $Y(e){const{label:t,value:n,children:o}=e||{},r=n||"value";return{label:t||"label",value:r,key:r,children:o||"children"}}function ms(e,t){var n,o;return(n=e.isLeaf)!==null&&n!==void 0?n:!(!((o=e[t.children])===null||o===void 0)&&o.length)}function CY(e){const t=e.parentElement;if(!t)return;const n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}const f8=Symbol("TreeContextKey"),xY=oe({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup(e,t){let{slots:n}=t;return Xe(f8,P(()=>e.value)),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),by=()=>He(f8,P(()=>({}))),p8=Symbol("KeysStateKey"),wY=e=>{Xe(p8,e)},g8=()=>He(p8,{expandedKeys:ne([]),selectedKeys:ne([]),loadedKeys:ne([]),loadingKeys:ne([]),checkedKeys:ne([]),halfCheckedKeys:ne([]),expandedKeysSet:P(()=>new Set),selectedKeysSet:P(()=>new Set),loadedKeysSet:P(()=>new Set),loadingKeysSet:P(()=>new Set),checkedKeysSet:P(()=>new Set),halfCheckedKeysSet:P(()=>new Set),flattenNodes:ne([])}),OY=e=>{let{prefixCls:t,level:n,isStart:o,isEnd:r}=e;const i=`${t}-indent-unit`,l=[];for(let a=0;a({prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:W.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:W.any,selectable:{type:Boolean,default:void 0},expandAction:[String,Boolean],disabled:{type:Boolean,default:void 0},multiple:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},draggable:{type:[Function,Boolean]},defaultExpandParent:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:[Object,Array]},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},allowDrop:{type:Function},dropIndicatorRender:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onKeydown:{type:Function},onContextmenu:{type:Function},onClick:{type:Function},onDblclick:{type:Function},onScroll:{type:Function},onExpand:{type:Function},onCheck:{type:Function},onSelect:{type:Function},onLoad:{type:Function},loadData:{type:Function},loadedKeys:{type:Array},onMouseenter:{type:Function},onMouseleave:{type:Function},onRightClick:{type:Function},onDragstart:{type:Function},onDragenter:{type:Function},onDragover:{type:Function},onDragleave:{type:Function},onDragend:{type:Function},onDrop:{type:Function},onActiveChange:{type:Function},filterTreeNode:{type:Function},motion:W.any,switcherIcon:W.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String},rootClassName:String,rootStyle:Object});var IY=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r"`v-slot:"+fe+"` ")}`;const i=ne(!1),l=by(),{expandedKeysSet:a,selectedKeysSet:s,loadedKeysSet:u,loadingKeysSet:c,checkedKeysSet:d,halfCheckedKeysSet:f}=g8(),{dragOverNodeKey:g,dropPosition:v,keyEntities:h}=l.value,b=P(()=>nd(e.eventKey,{expandedKeysSet:a.value,selectedKeysSet:s.value,loadedKeysSet:u.value,loadingKeysSet:c.value,checkedKeysSet:d.value,halfCheckedKeysSet:f.value,dragOverNodeKey:g,dropPosition:v,keyEntities:h})),y=io(()=>b.value.expanded),S=io(()=>b.value.selected),$=io(()=>b.value.checked),x=io(()=>b.value.loaded),C=io(()=>b.value.loading),O=io(()=>b.value.halfChecked),w=io(()=>b.value.dragOver),I=io(()=>b.value.dragOverGapTop),T=io(()=>b.value.dragOverGapBottom),_=io(()=>b.value.pos),E=ne(),A=P(()=>{const{eventKey:fe}=e,{keyEntities:de}=l.value,{children:be}=de[fe]||{};return!!(be||[]).length}),R=P(()=>{const{isLeaf:fe}=e,{loadData:de}=l.value,be=A.value;return fe===!1?!1:fe||!de&&!be||de&&x.value&&!be}),z=P(()=>R.value?null:y.value?Rx:Dx),M=P(()=>{const{disabled:fe}=e,{disabled:de}=l.value;return!!(de||fe)}),N=P(()=>{const{checkable:fe}=e,{checkable:de}=l.value;return!de||fe===!1?!1:de}),B=P(()=>{const{selectable:fe}=e,{selectable:de}=l.value;return typeof fe=="boolean"?fe:de}),k=P(()=>{const{data:fe,active:de,checkable:be,disableCheckbox:we,disabled:Ie,selectable:Ae}=e;return m(m({active:de,checkable:be,disableCheckbox:we,disabled:Ie,selectable:Ae},fe),{dataRef:fe,data:fe,isLeaf:R.value,checked:$.value,expanded:y.value,loading:C.value,selected:S.value,halfChecked:O.value})}),F=pn(),L=P(()=>{const{eventKey:fe}=e,{keyEntities:de}=l.value,{parent:be}=de[fe]||{};return m(m({},od(m({},e,b.value))),{parent:be})}),H=ct({eventData:L,eventKey:P(()=>e.eventKey),selectHandle:E,pos:_,key:F.vnode.key});r(H);const j=fe=>{const{onNodeDoubleClick:de}=l.value;de(fe,L.value)},Y=fe=>{if(M.value)return;const{onNodeSelect:de}=l.value;fe.preventDefault(),de(fe,L.value)},Q=fe=>{if(M.value)return;const{disableCheckbox:de}=e,{onNodeCheck:be}=l.value;if(!N.value||de)return;fe.preventDefault();const we=!$.value;be(fe,L.value,we)},U=fe=>{const{onNodeClick:de}=l.value;de(fe,L.value),B.value?Y(fe):Q(fe)},ee=fe=>{const{onNodeMouseEnter:de}=l.value;de(fe,L.value)},X=fe=>{const{onNodeMouseLeave:de}=l.value;de(fe,L.value)},J=fe=>{const{onNodeContextMenu:de}=l.value;de(fe,L.value)},Z=fe=>{const{onNodeDragStart:de}=l.value;fe.stopPropagation(),i.value=!0,de(fe,H);try{fe.dataTransfer.setData("text/plain","")}catch{}},G=fe=>{const{onNodeDragEnter:de}=l.value;fe.preventDefault(),fe.stopPropagation(),de(fe,H)},q=fe=>{const{onNodeDragOver:de}=l.value;fe.preventDefault(),fe.stopPropagation(),de(fe,H)},V=fe=>{const{onNodeDragLeave:de}=l.value;fe.stopPropagation(),de(fe,H)},K=fe=>{const{onNodeDragEnd:de}=l.value;fe.stopPropagation(),i.value=!1,de(fe,H)},te=fe=>{const{onNodeDrop:de}=l.value;fe.preventDefault(),fe.stopPropagation(),i.value=!1,de(fe,H)},ue=fe=>{const{onNodeExpand:de}=l.value;C.value||de(fe,L.value)},ie=()=>{const{data:fe}=e,{draggable:de}=l.value;return!!(de&&(!de.nodeDraggable||de.nodeDraggable(fe)))},ae=()=>{const{draggable:fe,prefixCls:de}=l.value;return fe&&fe?.icon?p("span",{class:`${de}-draggable-icon`},[fe.icon]):null},ce=()=>{var fe,de,be;const{switcherIcon:we=o.switcherIcon||((fe=l.value.slots)===null||fe===void 0?void 0:fe[(be=(de=e.data)===null||de===void 0?void 0:de.slots)===null||be===void 0?void 0:be.switcherIcon])}=e,{switcherIcon:Ie}=l.value,Ae=we||Ie;return typeof Ae=="function"?Ae(k.value):Ae},se=()=>{const{loadData:fe,onNodeLoad:de}=l.value;C.value||fe&&y.value&&!R.value&&!A.value&&!x.value&&de(L.value)};je(()=>{se()}),An(()=>{se()});const pe=()=>{const{prefixCls:fe}=l.value,de=ce();if(R.value)return de!==!1?p("span",{class:le(`${fe}-switcher`,`${fe}-switcher-noop`)},[de]):null;const be=le(`${fe}-switcher`,`${fe}-switcher_${y.value?Rx:Dx}`);return de!==!1?p("span",{onClick:ue,class:be},[de]):null},ge=()=>{var fe,de;const{disableCheckbox:be}=e,{prefixCls:we}=l.value,Ie=M.value;return N.value?p("span",{class:le(`${we}-checkbox`,$.value&&`${we}-checkbox-checked`,!$.value&&O.value&&`${we}-checkbox-indeterminate`,(Ie||be)&&`${we}-checkbox-disabled`),onClick:Q},[(de=(fe=l.value).customCheckable)===null||de===void 0?void 0:de.call(fe)]):null},he=()=>{const{prefixCls:fe}=l.value;return p("span",{class:le(`${fe}-iconEle`,`${fe}-icon__${z.value||"docu"}`,C.value&&`${fe}-icon_loading`)},null)},me=()=>{const{disabled:fe,eventKey:de}=e,{draggable:be,dropLevelOffset:we,dropPosition:Ie,prefixCls:Ae,indent:Se,dropIndicatorRender:Ce,dragOverNodeKey:Oe,direction:Me}=l.value;return!fe&&be!==!1&&Oe===de?Ce({dropPosition:Ie,dropLevelOffset:we,indent:Se,prefixCls:Ae,direction:Me}):null},xe=()=>{var fe,de,be,we,Ie,Ae;const{icon:Se=o.icon,data:Ce}=e,Oe=o.title||((fe=l.value.slots)===null||fe===void 0?void 0:fe[(be=(de=e.data)===null||de===void 0?void 0:de.slots)===null||be===void 0?void 0:be.title])||((we=l.value.slots)===null||we===void 0?void 0:we.title)||e.title,{prefixCls:Me,showIcon:Re,icon:_e,loadData:Be}=l.value,et=M.value,dt=`${Me}-node-content-wrapper`;let it;if(Re){const Ut=Se||((Ie=l.value.slots)===null||Ie===void 0?void 0:Ie[(Ae=Ce?.slots)===null||Ae===void 0?void 0:Ae.icon])||_e;it=Ut?p("span",{class:le(`${Me}-iconEle`,`${Me}-icon__customize`)},[typeof Ut=="function"?Ut(k.value):Ut]):he()}else Be&&C.value&&(it=he());let ft;typeof Oe=="function"?ft=Oe(k.value):ft=Oe,ft=ft===void 0?TY:ft;const gt=p("span",{class:`${Me}-title`},[ft]);return p("span",{ref:E,title:typeof Oe=="string"?Oe:"",class:le(`${dt}`,`${dt}-${z.value||"normal"}`,!et&&(S.value||i.value)&&`${Me}-node-selected`),onMouseenter:ee,onMouseleave:X,onContextmenu:J,onClick:U,onDblclick:j},[it,gt,me()])};return()=>{const fe=m(m({},e),n),{eventKey:de,isLeaf:be,isStart:we,isEnd:Ie,domRef:Ae,active:Se,data:Ce,onMousemove:Oe,selectable:Me}=fe,Re=IY(fe,["eventKey","isLeaf","isStart","isEnd","domRef","active","data","onMousemove","selectable"]),{prefixCls:_e,filterTreeNode:Be,keyEntities:et,dropContainerKey:dt,dropTargetKey:it,draggingNodeKey:ft}=l.value,gt=M.value,Ut=_i(Re,{aria:!0,data:!0}),{level:Jt}=et[de]||{},on=Ie[Ie.length-1],zt=ie(),Cn=!gt&&zt,Kn=ft===de,vo=Me!==void 0?{"aria-selected":!!Me}:void 0;return p("div",D(D({ref:Ae,class:le(n.class,`${_e}-treenode`,{[`${_e}-treenode-disabled`]:gt,[`${_e}-treenode-switcher-${y.value?"open":"close"}`]:!be,[`${_e}-treenode-checkbox-checked`]:$.value,[`${_e}-treenode-checkbox-indeterminate`]:O.value,[`${_e}-treenode-selected`]:S.value,[`${_e}-treenode-loading`]:C.value,[`${_e}-treenode-active`]:Se,[`${_e}-treenode-leaf-last`]:on,[`${_e}-treenode-draggable`]:Cn,dragging:Kn,"drop-target":it===de,"drop-container":dt===de,"drag-over":!gt&&w.value,"drag-over-gap-top":!gt&&I.value,"drag-over-gap-bottom":!gt&&T.value,"filter-node":Be&&Be(L.value)}),style:n.style,draggable:Cn,"aria-grabbed":Kn,onDragstart:Cn?Z:void 0,onDragenter:zt?G:void 0,onDragover:zt?q:void 0,onDragleave:zt?V:void 0,onDrop:zt?te:void 0,onDragend:zt?K:void 0,onMousemove:Oe},vo),Ut),[p(OY,{prefixCls:_e,level:Jt,isStart:we,isEnd:Ie},null),ae(),pe(),ge(),xe()])}}});function ir(e,t){if(!e)return[];const n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function Or(e,t){const n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function yy(e){return e.split("-")}function m8(e,t){return`${e}-${t}`}function EY(e){return e&&e.type&&e.type.isTreeNode}function MY(e,t){const n=[],o=t[e];function r(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).forEach(l=>{let{key:a,children:s}=l;n.push(a),r(s)})}return r(o.children),n}function _Y(e){if(e.parent){const t=yy(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function AY(e){const t=yy(e.pos);return Number(t[t.length-1])===0}function Nx(e,t,n,o,r,i,l,a,s,u){var c;const{clientX:d,clientY:f}=e,{top:g,height:v}=e.target.getBoundingClientRect(),b=((u==="rtl"?-1:1)*((r?.x||0)-d)-12)/o;let y=a[n.eventKey];if(fR.key===y.key),E=_<=0?0:_-1,A=l[E].key;y=a[A]}const S=y.key,$=y,x=y.key;let C=0,O=0;if(!s.has(S))for(let _=0;_-1.5?i({dragNode:w,dropNode:I,dropPosition:1})?C=1:T=!1:i({dragNode:w,dropNode:I,dropPosition:0})?C=0:i({dragNode:w,dropNode:I,dropPosition:1})?C=1:T=!1:i({dragNode:w,dropNode:I,dropPosition:1})?C=1:T=!1,{dropPosition:C,dropLevelOffset:O,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:x,dropContainerKey:C===0?null:((c=y.parent)===null||c===void 0?void 0:c.key)||null,dropAllowed:T}}function Bx(e,t){if(!e)return;const{multiple:n}=t;return n?e.slice():e.length?[e[0]]:e}function Oh(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e=="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return null;return t}function cm(e,t){const n=new Set;function o(r){if(n.has(r))return;const i=t[r];if(!i)return;n.add(r);const{parent:l,node:a}=i;a.disabled||l&&o(l.key)}return(e||[]).forEach(r=>{o(r)}),[...n]}var RY=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r0&&arguments[0]!==void 0?arguments[0]:[];return At(n).map(r=>{var i,l,a,s;if(!EY(r))return null;const u=r.children||{},c=r.key,d={};for(const[_,E]of Object.entries(r.props))d[ka(_)]=E;const{isLeaf:f,checkable:g,selectable:v,disabled:h,disableCheckbox:b}=d,y={isLeaf:f||f===""||void 0,checkable:g||g===""||void 0,selectable:v||v===""||void 0,disabled:h||h===""||void 0,disableCheckbox:b||b===""||void 0},S=m(m({},d),y),{title:$=(i=u.title)===null||i===void 0?void 0:i.call(u,S),icon:x=(l=u.icon)===null||l===void 0?void 0:l.call(u,S),switcherIcon:C=(a=u.switcherIcon)===null||a===void 0?void 0:a.call(u,S)}=d,O=RY(d,["title","icon","switcherIcon"]),w=(s=u.default)===null||s===void 0?void 0:s.call(u),I=m(m(m({},O),{title:$,icon:x,switcherIcon:C,key:c,isLeaf:f}),y),T=t(w);return T.length&&(I.children=T),I})}return t(e)}function DY(e,t,n){const{_title:o,key:r,children:i}=Up(n),l=new Set(t===!0?[]:t),a=[];function s(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map((d,f)=>{const g=m8(c?c.pos:"0",f),v=Lc(d[r],g);let h;for(let y=0;yf[i]:typeof i=="function"&&(c=f=>i(f)):c=(f,g)=>Lc(f[a],g);function d(f,g,v,h){const b=f?f[u]:e,y=f?m8(v.pos,g):"0",S=f?[...h,f]:[];if(f){const $=c(f,y),x={node:f,index:g,pos:y,key:$,parentPos:v.node?v.pos:null,level:v.level+1,nodes:S};t(x)}b&&b.forEach(($,x)=>{d($,x,{node:f,pos:y,level:v?v.level+1:-1},S)})}d(null)}function zc(e){let{initWrapper:t,processEntity:n,onProcessFinished:o,externalGetKey:r,childrenPropName:i,fieldNames:l}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0;const s=r||a,u={},c={};let d={posEntities:u,keyEntities:c};return t&&(d=t(d)||d),NY(e,f=>{const{node:g,index:v,pos:h,key:b,parentPos:y,level:S,nodes:$}=f,x={node:g,nodes:$,index:v,key:b,pos:h,level:S},C=Lc(b,h);u[h]=x,c[C]=x,x.parent=u[y],x.parent&&(x.parent.children=x.parent.children||[],x.parent.children.push(x)),n&&n(x,d)},{externalGetKey:s,childrenPropName:i,fieldNames:l}),o&&o(d),d}function nd(e,t){let{expandedKeysSet:n,selectedKeysSet:o,loadedKeysSet:r,loadingKeysSet:i,checkedKeysSet:l,halfCheckedKeysSet:a,dragOverNodeKey:s,dropPosition:u,keyEntities:c}=t;const d=c[e];return{eventKey:e,expanded:n.has(e),selected:o.has(e),loaded:r.has(e),loading:i.has(e),checked:l.has(e),halfChecked:a.has(e),pos:String(d?d.pos:""),parent:d.parent,dragOver:s===e&&u===0,dragOverGapTop:s===e&&u===-1,dragOverGapBottom:s===e&&u===1}}function od(e){const{data:t,expanded:n,selected:o,checked:r,loaded:i,loading:l,halfChecked:a,dragOver:s,dragOverGapTop:u,dragOverGapBottom:c,pos:d,active:f,eventKey:g}=e,v=m(m({dataRef:t},t),{expanded:n,selected:o,checked:r,loaded:i,loading:l,halfChecked:a,dragOver:s,dragOverGapTop:u,dragOverGapBottom:c,pos:d,active:f,eventKey:g,key:g});return"props"in v||Object.defineProperty(v,"props",{get(){return e}}),v}const BY=((e,t)=>P(()=>zc(e.value,{fieldNames:t.value,initWrapper:o=>m(m({},o),{pathKeyEntities:{}}),processEntity:(o,r)=>{const i=o.nodes.map(l=>l[t.value.value]).join(my);r.pathKeyEntities[i]=o,o.key=i}}).pathKeyEntities));function kY(e){const t=ne(!1),n=re({});return Le(()=>{if(!e.value){t.value=!1,n.value={};return}let o={matchInputWidth:!0,limit:50};e.value&&typeof e.value=="object"&&(o=m(m({},o),e.value)),o.limit<=0&&delete o.limit,t.value=!0,n.value=o}),{showSearch:t,searchConfig:n}}const Ls="__rc_cascader_search_mark__",FY=(e,t,n)=>{let{label:o}=n;return t.some(r=>String(r[o]).toLowerCase().includes(e.toLowerCase()))},LY=e=>{let{path:t,fieldNames:n}=e;return t.map(o=>o[n.label]).join(" / ")},zY=((e,t,n,o,r,i)=>P(()=>{const{filter:l=FY,render:a=LY,limit:s=50,sort:u}=r.value,c=[];if(!e.value)return[];function d(f,g){f.forEach(v=>{if(!u&&s>0&&c.length>=s)return;const h=[...g,v],b=v[n.value.children];(!b||b.length===0||i.value)&&l(e.value,h,{label:n.value.label})&&c.push(m(m({},v),{[n.value.label]:a({inputValue:e.value,path:h,prefixCls:o.value,fieldNames:n.value}),[Ls]:h})),b&&d(v[n.value.children],h)})}return d(t.value,[]),u&&c.sort((f,g)=>u(f[Ls],g[Ls],e.value,n.value)),s>0?c.slice(0,s):c}));function kx(e,t,n){const o=new Set(e);return e.filter(r=>{const i=t[r],l=i?i.parent:null,a=i?i.children:null;return n===d8?!(a&&a.some(s=>s.key&&o.has(s.key))):!(l&&!l.node.disabled&&o.has(l.key))})}function bc(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;var r;let i=t;const l=[];for(let a=0;a{const f=d[n.value];return o?String(f)===String(s):f===s}),c=u!==-1?i?.[u]:null;l.push({value:(r=c?.[n.value])!==null&&r!==void 0?r:s,index:u,option:c}),i=c?.[n.children]}return l}const HY=((e,t,n)=>P(()=>{const o=[],r=[];return n.value.forEach(i=>{bc(i,e.value,t.value).every(a=>a.option)?r.push(i):o.push(i)}),[r,o]}));function b8(e,t){const n=new Set;return e.forEach(o=>{t.has(o)||n.add(o)}),n}function jY(e){const{disabled:t,disableCheckbox:n,checkable:o}=e||{};return!!(t||n)||o===!1}function VY(e,t,n,o){const r=new Set(e),i=new Set;for(let a=0;a<=n;a+=1)(t.get(a)||new Set).forEach(u=>{const{key:c,node:d,children:f=[]}=u;r.has(c)&&!o(d)&&f.filter(g=>!o(g.node)).forEach(g=>{r.add(g.key)})});const l=new Set;for(let a=n;a>=0;a-=1)(t.get(a)||new Set).forEach(u=>{const{parent:c,node:d}=u;if(o(d)||!u.parent||l.has(u.parent.key))return;if(o(u.parent.node)){l.add(c.key);return}let f=!0,g=!1;(c.children||[]).filter(v=>!o(v.node)).forEach(v=>{let{key:h}=v;const b=r.has(h);f&&!b&&(f=!1),!g&&(b||i.has(h))&&(g=!0)}),f&&r.add(c.key),g&&i.add(c.key),l.add(c.key)});return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(b8(i,r))}}function WY(e,t,n,o,r){const i=new Set(e);let l=new Set(t);for(let s=0;s<=o;s+=1)(n.get(s)||new Set).forEach(c=>{const{key:d,node:f,children:g=[]}=c;!i.has(d)&&!l.has(d)&&!r(f)&&g.filter(v=>!r(v.node)).forEach(v=>{i.delete(v.key)})});l=new Set;const a=new Set;for(let s=o;s>=0;s-=1)(n.get(s)||new Set).forEach(c=>{const{parent:d,node:f}=c;if(r(f)||!c.parent||a.has(c.parent.key))return;if(r(c.parent.node)){a.add(d.key);return}let g=!0,v=!1;(d.children||[]).filter(h=>!r(h.node)).forEach(h=>{let{key:b}=h;const y=i.has(b);g&&!y&&(g=!1),!v&&(y||l.has(b))&&(v=!0)}),g||i.delete(d.key),v&&l.add(d.key),a.add(d.key)});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(b8(l,i))}}function Io(e,t,n,o,r,i){let l;i?l=i:l=jY;const a=new Set(e.filter(u=>!!n[u]));let s;return t===!0?s=VY(a,r,o,l):s=WY(a,t.halfCheckedKeys,r,o,l),s}const KY=((e,t,n,o,r)=>P(()=>{const i=r.value||(l=>{let{labels:a}=l;const s=o.value?a.slice(-1):a,u=" / ";return s.every(c=>["string","number"].includes(typeof c))?s.join(u):s.reduce((c,d,f)=>{const g=Kt(d)?ut(d,{key:f}):d;return f===0?[g]:[...c,u,g]},[])});return e.value.map(l=>{const a=bc(l,t.value,n.value),s=i({labels:a.map(c=>{let{option:d,value:f}=c;var g;return(g=d?.[n.value.label])!==null&&g!==void 0?g:f}),selectedOptions:a.map(c=>{let{option:d}=c;return d})}),u=Ci(l);return{label:s,value:u,key:u,valueCells:l}})})),y8=Symbol("CascaderContextKey"),GY=e=>{Xe(y8,e)},Yp=()=>He(y8),XY=(()=>{const e=Tc(),{values:t}=Yp(),[n,o]=ht([]);return ye(()=>e.open,()=>{if(e.open&&!e.multiple){const r=t.value[0];o(r||[])}},{immediate:!0}),[n,o]}),UY=((e,t,n,o,r,i)=>{const l=Tc(),a=P(()=>l.direction==="rtl"),[s,u,c]=[re([]),re(),re([])];Le(()=>{let h=-1,b=t.value;const y=[],S=[],$=o.value.length;for(let C=0;C<$&&b;C+=1){const O=b.findIndex(w=>w[n.value.value]===o.value[C]);if(O===-1)break;h=O,y.push(h),S.push(o.value[C]),b=b[h][n.value.children]}let x=t.value;for(let C=0;C{r(h)},f=h=>{const b=c.value.length;let y=u.value;y===-1&&h<0&&(y=b);for(let S=0;S{if(s.value.length>1){const h=s.value.slice(0,-1);d(h)}else l.toggleOpen(!1)},v=()=>{var h;const y=(((h=c.value[u.value])===null||h===void 0?void 0:h[n.value.children])||[]).find(S=>!S.disabled);if(y){const S=[...s.value,y[n.value.value]];d(S)}};e.expose({onKeydown:h=>{const{which:b}=h;switch(b){case Pe.UP:case Pe.DOWN:{let y=0;b===Pe.UP?y=-1:b===Pe.DOWN&&(y=1),y!==0&&f(y);break}case Pe.LEFT:{a.value?v():g();break}case Pe.RIGHT:{a.value?g():v();break}case Pe.BACKSPACE:{l.searchValue||g();break}case Pe.ENTER:{if(s.value.length){const y=c.value[u.value],S=y?.[Ls]||[];S.length?i(S.map($=>$[n.value.value]),S[S.length-1]):i(s.value,y)}break}case Pe.ESC:l.toggleOpen(!1),open&&h.stopPropagation()}},onKeyup:()=>{}})});function qp(e){let{prefixCls:t,checked:n,halfChecked:o,disabled:r,onClick:i}=e;const{customSlots:l,checkable:a}=Yp(),s=a.value!==!1?l.value.checkable:a.value,u=typeof s=="function"?s():typeof s=="boolean"?null:s;return p("span",{class:{[t]:!0,[`${t}-checked`]:n,[`${t}-indeterminate`]:!n&&o,[`${t}-disabled`]:r},onClick:i},[u])}qp.props=["prefixCls","checked","halfChecked","disabled","onClick"];qp.displayName="Checkbox";qp.inheritAttrs=!1;const S8="__cascader_fix_label__";function Zp(e){let{prefixCls:t,multiple:n,options:o,activeValue:r,prevValuePath:i,onToggleOpen:l,onSelect:a,onActive:s,checkedSet:u,halfCheckedSet:c,loadingKeys:d,isSelectable:f}=e;var g,v,h,b,y,S;const $=`${t}-menu`,x=`${t}-menu-item`,{fieldNames:C,changeOnSelect:O,expandTrigger:w,expandIcon:I,loadingIcon:T,dropdownMenuColumnStyle:_,customSlots:E}=Yp(),A=(g=I.value)!==null&&g!==void 0?g:(h=(v=E.value).expandIcon)===null||h===void 0?void 0:h.call(v),R=(b=T.value)!==null&&b!==void 0?b:(S=(y=E.value).loadingIcon)===null||S===void 0?void 0:S.call(y),z=w.value==="hover";return p("ul",{class:$,role:"menu"},[o.map(M=>{var N;const{disabled:B}=M,k=M[Ls],F=(N=M[S8])!==null&&N!==void 0?N:M[C.value.label],L=M[C.value.value],H=ms(M,C.value),j=k?k.map(G=>G[C.value.value]):[...i,L],Y=Ci(j),Q=d.includes(Y),U=u.has(Y),ee=c.has(Y),X=()=>{!B&&(!z||!H)&&s(j)},J=()=>{f(M)&&a(j,H)};let Z;return typeof M.title=="string"?Z=M.title:typeof F=="string"&&(Z=F),p("li",{key:Y,class:[x,{[`${x}-expand`]:!H,[`${x}-active`]:r===L,[`${x}-disabled`]:B,[`${x}-loading`]:Q}],style:_.value,role:"menuitemcheckbox",title:Z,"aria-checked":U,"data-path-key":Y,onClick:()=>{X(),(!n||H)&&J()},onDblclick:()=>{O.value&&l(!1)},onMouseenter:()=>{z&&X()},onMousedown:G=>{G.preventDefault()}},[n&&p(qp,{prefixCls:`${t}-checkbox`,checked:U,halfChecked:ee,disabled:B,onClick:G=>{G.stopPropagation(),J()}},null),p("div",{class:`${x}-content`},[F]),!Q&&A&&!H&&p("div",{class:`${x}-expand-icon`},[ut(A)]),Q&&R&&p("div",{class:`${x}-loading-icon`},[ut(R)])])})])}Zp.props=["prefixCls","multiple","options","activeValue","prevValuePath","onToggleOpen","onSelect","onActive","checkedSet","halfCheckedSet","loadingKeys","isSelectable"];Zp.displayName="Column";Zp.inheritAttrs=!1;const YY=oe({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){const{attrs:n,slots:o}=t,r=Tc(),i=re(),l=P(()=>r.direction==="rtl"),{options:a,values:s,halfValues:u,fieldNames:c,changeOnSelect:d,onSelect:f,searchOptions:g,dropdownPrefixCls:v,loadData:h,expandTrigger:b,customSlots:y}=Yp(),S=P(()=>v.value||r.prefixCls),$=ne([]),x=N=>{if(!h.value||r.searchValue)return;const k=bc(N,a.value,c.value).map(L=>{let{option:H}=L;return H}),F=k[k.length-1];if(F&&!ms(F,c.value)){const L=Ci(N);$.value=[...$.value,L],h.value(k)}};Le(()=>{$.value.length&&$.value.forEach(N=>{const B=SY(N),k=bc(B,a.value,c.value,!0).map(L=>{let{option:H}=L;return H}),F=k[k.length-1];(!F||F[c.value.children]||ms(F,c.value))&&($.value=$.value.filter(L=>L!==N))})});const C=P(()=>new Set(ra(s.value))),O=P(()=>new Set(ra(u.value))),[w,I]=XY(),T=N=>{I(N),x(N)},_=N=>{const{disabled:B}=N,k=ms(N,c.value);return!B&&(k||d.value||r.multiple)},E=function(N,B){let k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;f(N),!r.multiple&&(B||d.value&&(b.value==="hover"||k))&&r.toggleOpen(!1)},A=P(()=>r.searchValue?g.value:a.value),R=P(()=>{const N=[{options:A.value}];let B=A.value;for(let k=0;kj[c.value.value]===F),H=L?.[c.value.children];if(!H?.length)break;B=H,N.push({options:H})}return N});UY(t,A,c,w,T,(N,B)=>{_(B)&&E(N,ms(B,c.value),!0)});const M=N=>{N.preventDefault()};return je(()=>{ye(w,N=>{var B;for(let k=0;k{var N,B,k,F,L;const{notFoundContent:H=((N=o.notFoundContent)===null||N===void 0?void 0:N.call(o))||((k=(B=y.value).notFoundContent)===null||k===void 0?void 0:k.call(B)),multiple:j,toggleOpen:Y}=r,Q=!(!((L=(F=R.value[0])===null||F===void 0?void 0:F.options)===null||L===void 0)&&L.length),U=[{[c.value.value]:"__EMPTY__",[S8]:H,disabled:!0}],ee=m(m({},n),{multiple:!Q&&j,onSelect:E,onActive:T,onToggleOpen:Y,checkedSet:C.value,halfCheckedSet:O.value,loadingKeys:$.value,isSelectable:_}),J=(Q?[{options:U}]:R.value).map((Z,G)=>{const q=w.value.slice(0,G),V=w.value[G];return p(Zp,D(D({key:G},ee),{},{prefixCls:S.value,options:Z.options,prevValuePath:q,activeValue:V}),null)});return p("div",{class:[`${S.value}-menus`,{[`${S.value}-menu-empty`]:Q,[`${S.value}-rtl`]:l.value}],onMousedown:M,ref:i},[J])}}});function Qp(e){const t=re(0),n=ne();return Le(()=>{const o=new Map;let r=0;const i=e.value||{};for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const a=i[l],{level:s}=a;let u=o.get(s);u||(u=new Set,o.set(s,u)),u.add(a),r=Math.max(r,s)}t.value=r,n.value=o}),{maxLevel:t,levelEntities:n}}function qY(){return m(m({},tt(Op(),["tokenSeparators","mode","showSearch"])),{id:String,prefixCls:String,fieldNames:De(),children:Array,value:{type:[String,Number,Array]},defaultValue:{type:[String,Number,Array]},changeOnSelect:{type:Boolean,default:void 0},displayRender:Function,checkable:{type:Boolean,default:void 0},showCheckedStrategy:{type:String,default:u8},showSearch:{type:[Boolean,Object],default:void 0},searchValue:String,onSearch:Function,expandTrigger:String,options:Array,dropdownPrefixCls:String,loadData:Function,popupVisible:{type:Boolean,default:void 0},dropdownClassName:String,dropdownMenuColumnStyle:{type:Object,default:void 0},popupStyle:{type:Object,default:void 0},dropdownStyle:{type:Object,default:void 0},popupPlacement:String,placement:String,onPopupVisibleChange:Function,onDropdownVisibleChange:Function,expandIcon:W.any,loadingIcon:W.any})}function $8(){return m(m({},qY()),{onChange:Function,customSlots:Object})}function ZY(e){return Array.isArray(e)&&Array.isArray(e[0])}function Fx(e){return e?ZY(e)?e:(e.length===0?[]:[e]).map(t=>Array.isArray(t)?t:[t]):[]}const QY=oe({compatConfig:{MODE:3},name:"Cascader",inheritAttrs:!1,props:Ze($8(),{}),setup(e,t){let{attrs:n,expose:o,slots:r}=t;const i=ob(ze(e,"id")),l=P(()=>!!e.checkable),[a,s]=Pt(e.defaultValue,{value:P(()=>e.value),postState:Fx}),u=P(()=>$Y(e.fieldNames)),c=P(()=>e.options||[]),d=BY(c,u),f=G=>{const q=d.value;return G.map(V=>{const{nodes:K}=q[V];return K.map(te=>te[u.value.value])})},[g,v]=Pt("",{value:P(()=>e.searchValue),postState:G=>G||""}),h=(G,q)=>{v(G),q.source!=="blur"&&e.onSearch&&e.onSearch(G)},{showSearch:b,searchConfig:y}=kY(ze(e,"showSearch")),S=zY(g,c,u,P(()=>e.dropdownPrefixCls||e.prefixCls),y,ze(e,"changeOnSelect")),$=HY(c,u,a),[x,C,O]=[re([]),re([]),re([])],{maxLevel:w,levelEntities:I}=Qp(d);Le(()=>{const[G,q]=$.value;if(!l.value||!a.value.length){[x.value,C.value,O.value]=[G,[],q];return}const V=ra(G),K=d.value,{checkedKeys:te,halfCheckedKeys:ue}=Io(V,!0,K,w.value,I.value);[x.value,C.value,O.value]=[f(te),f(ue),q]});const T=P(()=>{const G=ra(x.value),q=kx(G,d.value,e.showCheckedStrategy);return[...O.value,...f(q)]}),_=KY(T,c,u,l,ze(e,"displayRender")),E=G=>{if(s(G),e.onChange){const q=Fx(G),V=q.map(ue=>bc(ue,c.value,u.value).map(ie=>ie.option)),K=l.value?q:q[0],te=l.value?V:V[0];e.onChange(K,te)}},A=G=>{if(v(""),!l.value)E(G);else{const q=Ci(G),V=ra(x.value),K=ra(C.value),te=V.includes(q),ue=O.value.some(ce=>Ci(ce)===q);let ie=x.value,ae=O.value;if(ue&&!te)ae=O.value.filter(ce=>Ci(ce)!==q);else{const ce=te?V.filter(ge=>ge!==q):[...V,q];let se;te?{checkedKeys:se}=Io(ce,{halfCheckedKeys:K},d.value,w.value,I.value):{checkedKeys:se}=Io(ce,!0,d.value,w.value,I.value);const pe=kx(se,d.value,e.showCheckedStrategy);ie=f(pe)}E([...ae,...ie])}},R=(G,q)=>{if(q.type==="clear"){E([]);return}const{valueCells:V}=q.values[0];A(V)},z=P(()=>e.open!==void 0?e.open:e.popupVisible),M=P(()=>e.dropdownStyle||e.popupStyle||{}),N=P(()=>e.placement||e.popupPlacement),B=G=>{var q,V;(q=e.onDropdownVisibleChange)===null||q===void 0||q.call(e,G),(V=e.onPopupVisibleChange)===null||V===void 0||V.call(e,G)},{changeOnSelect:k,checkable:F,dropdownPrefixCls:L,loadData:H,expandTrigger:j,expandIcon:Y,loadingIcon:Q,dropdownMenuColumnStyle:U,customSlots:ee,dropdownClassName:X}=jo(e);GY({options:c,fieldNames:u,values:x,halfValues:C,changeOnSelect:k,onSelect:A,checkable:F,searchOptions:S,dropdownPrefixCls:L,loadData:H,expandTrigger:j,expandIcon:Y,loadingIcon:Q,dropdownMenuColumnStyle:U,customSlots:ee});const J=re();o({focus(){var G;(G=J.value)===null||G===void 0||G.focus()},blur(){var G;(G=J.value)===null||G===void 0||G.blur()},scrollTo(G){var q;(q=J.value)===null||q===void 0||q.scrollTo(G)}});const Z=P(()=>tt(e,["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","dropdownClassName","dropdownMenuColumnStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","customSlots","showCheckedStrategy","children"]));return()=>{const G=!(g.value?S.value:c.value).length,{dropdownMatchSelectWidth:q=!1}=e,V=g.value&&y.value.matchInputWidth||G?{}:{minWidth:"auto"};return p(tb,D(D(D({},Z.value),n),{},{ref:J,id:i,prefixCls:e.prefixCls,dropdownMatchSelectWidth:q,dropdownStyle:m(m({},M.value),V),displayValues:_.value,onDisplayValuesChange:R,mode:l.value?"multiple":void 0,searchValue:g.value,onSearch:h,showSearch:b.value,OptionList:YY,emptyOptions:G,open:z.value,dropdownClassName:X.value,placement:N.value,onDropdownVisibleChange:B,getRawInputElement:()=>{var K;return(K=r.default)===null||K===void 0?void 0:K.call(r)}}),r)}}});var JY={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"};function Lx(e){for(var t=1;tMn()&&window.document.documentElement,x8=e=>{if(Mn()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(o=>o in n.style)}return!1},tq=(e,t)=>{if(!x8(e))return!1;const n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o};function Sy(e,t){return!Array.isArray(e)&&t!==void 0?tq(e,t):x8(e)}let Cu;const nq=()=>{if(!C8())return!1;if(Cu!==void 0)return Cu;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),Cu=e.scrollHeight===1,document.body.removeChild(e),Cu},w8=(()=>{const e=ne(!1);return je(()=>{e.value=nq()}),e}),O8=Symbol("rowContextKey"),oq=e=>{Xe(O8,e)},rq=()=>He(O8,{gutter:P(()=>{}),wrap:P(()=>{}),supportFlexGap:P(()=>{})}),iq=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around ":{justifyContent:"space-around"},"&-space-evenly ":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},lq=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},aq=(e,t)=>{const{componentCls:n,gridColumns:o}=e,r={};for(let i=o;i>=0;i--)i===0?(r[`${n}${t}-${i}`]={display:"none"},r[`${n}-push-${i}`]={insetInlineStart:"auto"},r[`${n}-pull-${i}`]={insetInlineEnd:"auto"},r[`${n}${t}-push-${i}`]={insetInlineStart:"auto"},r[`${n}${t}-pull-${i}`]={insetInlineEnd:"auto"},r[`${n}${t}-offset-${i}`]={marginInlineEnd:0},r[`${n}${t}-order-${i}`]={order:0}):(r[`${n}${t}-${i}`]={display:"block",flex:`0 0 ${i/o*100}%`,maxWidth:`${i/o*100}%`},r[`${n}${t}-push-${i}`]={insetInlineStart:`${i/o*100}%`},r[`${n}${t}-pull-${i}`]={insetInlineEnd:`${i/o*100}%`},r[`${n}${t}-offset-${i}`]={marginInlineStart:`${i/o*100}%`},r[`${n}${t}-order-${i}`]={order:i});return r},dm=(e,t)=>aq(e,t),sq=(e,t,n)=>({[`@media (min-width: ${t}px)`]:m({},dm(e,n))}),cq=Ke("Grid",e=>[iq(e)]),uq=Ke("Grid",e=>{const t=ke(e,{gridColumns:24}),n={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[lq(t),dm(t,""),dm(t,"-xs"),Object.keys(n).map(o=>sq(t,n[o],o)).reduce((o,r)=>m(m({},o),r),{})]}),dq=()=>({align:Fe([String,Object]),justify:Fe([String,Object]),prefixCls:String,gutter:Fe([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}}),$y=oe({compatConfig:{MODE:3},name:"ARow",inheritAttrs:!1,props:dq(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Te("row",e),[l,a]=cq(r);let s;const u=wb(),c=re({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),d=re({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),f=$=>P(()=>{if(typeof e[$]=="string")return e[$];if(typeof e[$]!="object")return"";for(let x=0;x{s=u.value.subscribe($=>{d.value=$;const x=e.gutter||0;(!Array.isArray(x)&&typeof x=="object"||Array.isArray(x)&&(typeof x[0]=="object"||typeof x[1]=="object"))&&(c.value=$)})}),Qe(()=>{u.value.unsubscribe(s)});const b=P(()=>{const $=[void 0,void 0],{gutter:x=0}=e;return(Array.isArray(x)?x:[x,void 0]).forEach((O,w)=>{if(typeof O=="object")for(let I=0;Ie.wrap)});const y=P(()=>le(r.value,{[`${r.value}-no-wrap`]:e.wrap===!1,[`${r.value}-${v.value}`]:v.value,[`${r.value}-${g.value}`]:g.value,[`${r.value}-rtl`]:i.value==="rtl"},o.class,a.value)),S=P(()=>{const $=b.value,x={},C=$[0]!=null&&$[0]>0?`${$[0]/-2}px`:void 0,O=$[1]!=null&&$[1]>0?`${$[1]/-2}px`:void 0;return C&&(x.marginLeft=C,x.marginRight=C),h.value?x.rowGap=`${$[1]}px`:O&&(x.marginTop=O,x.marginBottom=O),x});return()=>{var $;return l(p("div",D(D({},o),{},{class:y.value,style:m(m({},S.value),o.style)}),[($=n.default)===null||$===void 0?void 0:$.call(n)]))}}});function rl(){return rl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function rd(e,t,n){return pq()?rd=Reflect.construct.bind():rd=function(r,i,l){var a=[null];a.push.apply(a,i);var s=Function.bind.apply(r,a),u=new s;return l&&yc(u,l.prototype),u},rd.apply(null,arguments)}function gq(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function pm(e){var t=typeof Map=="function"?new Map:void 0;return pm=function(o){if(o===null||!gq(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(o))return t.get(o);t.set(o,r)}function r(){return rd(o,arguments,fm(this).constructor)}return r.prototype=Object.create(o.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),yc(r,o)},pm(e)}var hq=/%[sdj%]/g,vq=function(){};function gm(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var o=n.field;t[o]=t[o]||[],t[o].push(n)}),t}function so(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o=i)return a;switch(a){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}break;default:return a}});return l}return e}function mq(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function fn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||mq(t)&&typeof e=="string"&&!e)}function bq(e,t,n){var o=[],r=0,i=e.length;function l(a){o.push.apply(o,a||[]),r++,r===i&&n(o)}e.forEach(function(a){t(a,l)})}function zx(e,t,n){var o=0,r=e.length;function i(l){if(l&&l.length){n(l);return}var a=o;o=o+1,a()\[\]\\.,;:\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,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},bs={integer:function(t){return bs.number(t)&&parseInt(t,10)===t},float:function(t){return bs.number(t)&&!bs.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!bs.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Wx.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(wq())},hex:function(t){return typeof t=="string"&&!!t.match(Wx.hex)}},Oq=function(t,n,o,r,i){if(t.required&&n===void 0){P8(t,n,o,r,i);return}var l=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;l.indexOf(a)>-1?bs[a](n)||r.push(so(i.messages.types[a],t.fullField,t.type)):a&&typeof n!==t.type&&r.push(so(i.messages.types[a],t.fullField,t.type))},Pq=function(t,n,o,r,i){var l=typeof t.len=="number",a=typeof t.min=="number",s=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,d=null,f=typeof n=="number",g=typeof n=="string",v=Array.isArray(n);if(f?d="number":g?d="string":v&&(d="array"),!d)return!1;v&&(c=n.length),g&&(c=n.replace(u,"_").length),l?c!==t.len&&r.push(so(i.messages[d].len,t.fullField,t.len)):a&&!s&&ct.max?r.push(so(i.messages[d].max,t.fullField,t.max)):a&&s&&(ct.max)&&r.push(so(i.messages[d].range,t.fullField,t.min,t.max))},Gl="enum",Iq=function(t,n,o,r,i){t[Gl]=Array.isArray(t[Gl])?t[Gl]:[],t[Gl].indexOf(n)===-1&&r.push(so(i.messages[Gl],t.fullField,t[Gl].join(", ")))},Tq=function(t,n,o,r,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||r.push(so(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var l=new RegExp(t.pattern);l.test(n)||r.push(so(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},mt={required:P8,whitespace:xq,type:Oq,range:Pq,enum:Iq,pattern:Tq},Eq=function(t,n,o,r,i){var l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(fn(n,"string")&&!t.required)return o();mt.required(t,n,r,l,i,"string"),fn(n,"string")||(mt.type(t,n,r,l,i),mt.range(t,n,r,l,i),mt.pattern(t,n,r,l,i),t.whitespace===!0&&mt.whitespace(t,n,r,l,i))}o(l)},Mq=function(t,n,o,r,i){var l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(fn(n)&&!t.required)return o();mt.required(t,n,r,l,i),n!==void 0&&mt.type(t,n,r,l,i)}o(l)},_q=function(t,n,o,r,i){var l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(n===""&&(n=void 0),fn(n)&&!t.required)return o();mt.required(t,n,r,l,i),n!==void 0&&(mt.type(t,n,r,l,i),mt.range(t,n,r,l,i))}o(l)},Aq=function(t,n,o,r,i){var l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(fn(n)&&!t.required)return o();mt.required(t,n,r,l,i),n!==void 0&&mt.type(t,n,r,l,i)}o(l)},Rq=function(t,n,o,r,i){var l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(fn(n)&&!t.required)return o();mt.required(t,n,r,l,i),fn(n)||mt.type(t,n,r,l,i)}o(l)},Dq=function(t,n,o,r,i){var l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(fn(n)&&!t.required)return o();mt.required(t,n,r,l,i),n!==void 0&&(mt.type(t,n,r,l,i),mt.range(t,n,r,l,i))}o(l)},Nq=function(t,n,o,r,i){var l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(fn(n)&&!t.required)return o();mt.required(t,n,r,l,i),n!==void 0&&(mt.type(t,n,r,l,i),mt.range(t,n,r,l,i))}o(l)},Bq=function(t,n,o,r,i){var l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(n==null&&!t.required)return o();mt.required(t,n,r,l,i,"array"),n!=null&&(mt.type(t,n,r,l,i),mt.range(t,n,r,l,i))}o(l)},kq=function(t,n,o,r,i){var l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(fn(n)&&!t.required)return o();mt.required(t,n,r,l,i),n!==void 0&&mt.type(t,n,r,l,i)}o(l)},Fq="enum",Lq=function(t,n,o,r,i){var l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(fn(n)&&!t.required)return o();mt.required(t,n,r,l,i),n!==void 0&&mt[Fq](t,n,r,l,i)}o(l)},zq=function(t,n,o,r,i){var l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(fn(n,"string")&&!t.required)return o();mt.required(t,n,r,l,i),fn(n,"string")||mt.pattern(t,n,r,l,i)}o(l)},Hq=function(t,n,o,r,i){var l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(fn(n,"date")&&!t.required)return o();if(mt.required(t,n,r,l,i),!fn(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),mt.type(t,s,r,l,i),s&&mt.range(t,s.getTime(),r,l,i)}}o(l)},jq=function(t,n,o,r,i){var l=[],a=Array.isArray(n)?"array":typeof n;mt.required(t,n,r,l,i,a),o(l)},Ph=function(t,n,o,r,i){var l=t.type,a=[],s=t.required||!t.required&&r.hasOwnProperty(t.field);if(s){if(fn(n,l)&&!t.required)return o();mt.required(t,n,r,a,i,l),fn(n,l)||mt.type(t,n,r,a,i)}o(a)},Vq=function(t,n,o,r,i){var l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(fn(n)&&!t.required)return o();mt.required(t,n,r,l,i)}o(l)},zs={string:Eq,method:Mq,number:_q,boolean:Aq,regexp:Rq,integer:Dq,float:Nq,array:Bq,object:kq,enum:Lq,pattern:zq,date:Hq,url:Ph,hex:Ph,email:Ph,required:jq,any:Vq};function hm(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var vm=hm(),Hc=(function(){function e(n){this.rules=null,this._messages=vm,this.define(n)}var t=e.prototype;return t.define=function(o){var r=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(i){var l=o[i];r.rules[i]=Array.isArray(l)?l:[l]})},t.messages=function(o){return o&&(this._messages=Vx(hm(),o)),this._messages},t.validate=function(o,r,i){var l=this;r===void 0&&(r={}),i===void 0&&(i=function(){});var a=o,s=r,u=i;if(typeof s=="function"&&(u=s,s={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,a),Promise.resolve(a);function c(h){var b=[],y={};function S(x){if(Array.isArray(x)){var C;b=(C=b).concat.apply(C,x)}else b.push(x)}for(var $=0;$3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&o&&n===void 0&&!I8(e,t.slice(0,-1))?e:T8(e,t,n,o)}function mm(e){return xi(e)}function Kq(e,t){return I8(e,t)}function Gq(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Wq(e,t,n,o)}function Xq(e,t){return e&&e.some(n=>Yq(n,t))}function Kx(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function E8(e,t){const n=Array.isArray(e)?[...e]:m({},e);return t&&Object.keys(t).forEach(o=>{const r=n[o],i=t[o],l=Kx(r)&&Kx(i);n[o]=l?E8(r,i||{}):i}),n}function Uq(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;oE8(r,i),e)}function Gx(e,t){let n={};return t.forEach(o=>{const r=Kq(e,o);n=Gq(n,o,r)}),n}function Yq(e,t){return!e||!t||e.length!==t.length?!1:e.every((n,o)=>t[o]===n)}const oo="'${name}' is not a valid ${type}",Jp={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:oo,method:oo,array:oo,object:oo,number:oo,date:oo,boolean:oo,integer:oo,float:oo,regexp:oo,email:oo,url:oo,hex:oo},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};var eg=function(e,t,n,o){function r(i){return i instanceof n?i:new n(function(l){l(i)})}return new(n||(n=Promise))(function(i,l){function a(c){try{u(o.next(c))}catch(d){l(d)}}function s(c){try{u(o.throw(c))}catch(d){l(d)}}function u(c){c.done?i(c.value):r(c.value).then(a,s)}u((o=o.apply(e,t||[])).next())})};const qq=Hc;function Zq(e,t){return e.replace(/\$\{\w+\}/g,n=>{const o=n.slice(2,-1);return t[o]})}function bm(e,t,n,o,r){return eg(this,void 0,void 0,function*(){const i=m({},n);delete i.ruleIndex,delete i.trigger;let l=null;i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField);const a=new qq({[e]:[i]}),s=Uq({},Jp,o.validateMessages);a.messages(s);let u=[];try{yield Promise.resolve(a.validate({[e]:t},m({},o)))}catch(f){f.errors?u=f.errors.map((g,v)=>{let{message:h}=g;return Kt(h)?cn(h,{key:`error_${v}`}):h}):(console.error(f),u=[s.default()])}if(!u.length&&l)return(yield Promise.all(t.map((g,v)=>bm(`${e}.${v}`,g,l,o,r)))).reduce((g,v)=>[...g,...v],[]);const c=m(m(m({},n),{name:e,enum:(n.enum||[]).join(", ")}),r);return u.map(f=>typeof f=="string"?Zq(f,c):f)})}function M8(e,t,n,o,r,i){const l=e.join("."),a=n.map((u,c)=>{const d=u.validator,f=m(m({},u),{ruleIndex:c});return d&&(f.validator=(g,v,h)=>{let b=!1;const S=d(g,v,function(){for(var $=arguments.length,x=new Array($),C=0;C<$;C++)x[C]=arguments[C];Promise.resolve().then(()=>{b||h(...x)})});b=S&&typeof S.then=="function"&&typeof S.catch=="function",b&&S.then(()=>{h()}).catch($=>{h($||" ")})}),f}).sort((u,c)=>{let{warningOnly:d,ruleIndex:f}=u,{warningOnly:g,ruleIndex:v}=c;return!!d==!!g?f-v:d?1:-1});let s;if(r===!0)s=new Promise((u,c)=>eg(this,void 0,void 0,function*(){for(let d=0;dbm(l,t,c,o,i).then(d=>({errors:d,rule:c})));s=(r?Jq(u):Qq(u)).then(c=>Promise.reject(c))}return s.catch(u=>u),s}function Qq(e){return eg(this,void 0,void 0,function*(){return Promise.all(e).then(t=>[].concat(...t))})}function Jq(e){return eg(this,void 0,void 0,function*(){let t=0;return new Promise(n=>{e.forEach(o=>{o.then(r=>{r.errors.length&&n([r]),t+=1,t===e.length&&n([])})})})})}const _8=Symbol("formContextKey"),A8=e=>{Xe(_8,e)},Cy=()=>He(_8,{name:P(()=>{}),labelAlign:P(()=>"right"),vertical:P(()=>!1),addField:(e,t)=>{},removeField:e=>{},model:P(()=>{}),rules:P(()=>{}),colon:P(()=>{}),labelWrap:P(()=>{}),labelCol:P(()=>{}),requiredMark:P(()=>!1),validateTrigger:P(()=>{}),onValidate:()=>{},validateMessages:P(()=>Jp)}),R8=Symbol("formItemPrefixContextKey"),eZ=e=>{Xe(R8,e)},tZ=()=>He(R8,{prefixCls:P(()=>"")});function nZ(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const oZ=()=>({span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}),rZ=["xs","sm","md","lg","xl","xxl"],tg=oe({compatConfig:{MODE:3},name:"ACol",inheritAttrs:!1,props:oZ(),setup(e,t){let{slots:n,attrs:o}=t;const{gutter:r,supportFlexGap:i,wrap:l}=rq(),{prefixCls:a,direction:s}=Te("col",e),[u,c]=uq(a),d=P(()=>{const{span:g,order:v,offset:h,push:b,pull:y}=e,S=a.value;let $={};return rZ.forEach(x=>{let C={};const O=e[x];typeof O=="number"?C.span=O:typeof O=="object"&&(C=O||{}),$=m(m({},$),{[`${S}-${x}-${C.span}`]:C.span!==void 0,[`${S}-${x}-order-${C.order}`]:C.order||C.order===0,[`${S}-${x}-offset-${C.offset}`]:C.offset||C.offset===0,[`${S}-${x}-push-${C.push}`]:C.push||C.push===0,[`${S}-${x}-pull-${C.pull}`]:C.pull||C.pull===0,[`${S}-rtl`]:s.value==="rtl"})}),le(S,{[`${S}-${g}`]:g!==void 0,[`${S}-order-${v}`]:v,[`${S}-offset-${h}`]:h,[`${S}-push-${b}`]:b,[`${S}-pull-${y}`]:y},$,o.class,c.value)}),f=P(()=>{const{flex:g}=e,v=r.value,h={};if(v&&v[0]>0){const b=`${v[0]/2}px`;h.paddingLeft=b,h.paddingRight=b}if(v&&v[1]>0&&!i.value){const b=`${v[1]/2}px`;h.paddingTop=b,h.paddingBottom=b}return g&&(h.flex=nZ(g),l.value===!1&&!h.minWidth&&(h.minWidth=0)),h});return()=>{var g;return u(p("div",D(D({},o),{},{class:d.value,style:[f.value,o.style]}),[(g=n.default)===null||g===void 0?void 0:g.call(n)]))}}});var iZ={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};function Xx(e){for(var t=1;t{let{slots:n,emit:o,attrs:r}=t;var i,l,a,s,u;const{prefixCls:c,htmlFor:d,labelCol:f,labelAlign:g,colon:v,required:h,requiredMark:b}=m(m({},e),r),[y]=Do("Form"),S=(i=e.label)!==null&&i!==void 0?i:(l=n.label)===null||l===void 0?void 0:l.call(n);if(!S)return null;const{vertical:$,labelAlign:x,labelCol:C,labelWrap:O,colon:w}=Cy(),I=f||C?.value||{},T=g||x?.value,M=`${c}-item-label`,E=le(M,T==="left"&&`${M}-left`,I.class,{[`${M}-wrap`]:!!O.value});let A=S;const R=v===!0||w?.value!==!1&&v!==!1;if(R&&!$.value&&typeof S=="string"&&S.trim()!==""&&(A=S.replace(/[:|:]\s*$/,"")),e.tooltip||n.tooltip){const N=p("span",{class:`${c}-item-tooltip`},[p(Qn,{title:e.tooltip},{default:()=>[p(xy,null,null)]})]);A=p(Ve,null,[A,n.tooltip?(a=n.tooltip)===null||a===void 0?void 0:a.call(n,{class:`${c}-item-tooltip`}):N])}b==="optional"&&!h&&(A=p(Ve,null,[A,p("span",{class:`${c}-item-optional`},[((s=y.value)===null||s===void 0?void 0:s.optional)||((u=Vn.Form)===null||u===void 0?void 0:u.optional)])]));const _=le({[`${c}-item-required`]:h,[`${c}-item-required-mark-optional`]:b==="optional",[`${c}-item-no-colon`]:!R});return p(tg,D(D({},I),{},{class:E}),{default:()=>[p("label",{for:d,class:_,title:typeof S=="string"?S:"",onClick:N=>o("click",N)},[A])]})};wy.displayName="FormItemLabel";wy.inheritAttrs=!1;const aZ=e=>{const{componentCls:t}=e,n=`${t}-show-help`,o=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[o]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, +`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+r+"$)"),l=new RegExp("^"+n+"$"),a=new RegExp("^"+r+"$"),s=function(x){return x&&x.exact?i:new RegExp("(?:"+t(x)+n+t(x)+")|(?:"+t(x)+r+t(x)+")","g")};s.v4=function($){return $&&$.exact?l:new RegExp(""+t($)+n+t($),"g")},s.v6=function($){return $&&$.exact?a:new RegExp(""+t($)+r+t($),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",d=s.v4().source,f=s.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",h="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",b="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',S="(?:"+u+"|www\\.)"+c+"(?:localhost|"+d+"|"+f+"|"+g+v+h+")"+b+y;return xu=new RegExp("(?:^"+S+"$)","i"),xu}),Wx={email:/^(([^<>()\[\]\\.,;:\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,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},bs={integer:function(t){return bs.number(t)&&parseInt(t,10)===t},float:function(t){return bs.number(t)&&!bs.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!bs.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Wx.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(wq())},hex:function(t){return typeof t=="string"&&!!t.match(Wx.hex)}},Oq=function(t,n,o,r,i){if(t.required&&n===void 0){P8(t,n,o,r,i);return}var l=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;l.indexOf(a)>-1?bs[a](n)||r.push(so(i.messages.types[a],t.fullField,t.type)):a&&typeof n!==t.type&&r.push(so(i.messages.types[a],t.fullField,t.type))},Pq=function(t,n,o,r,i){var l=typeof t.len=="number",a=typeof t.min=="number",s=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,d=null,f=typeof n=="number",g=typeof n=="string",v=Array.isArray(n);if(f?d="number":g?d="string":v&&(d="array"),!d)return!1;v&&(c=n.length),g&&(c=n.replace(u,"_").length),l?c!==t.len&&r.push(so(i.messages[d].len,t.fullField,t.len)):a&&!s&&ct.max?r.push(so(i.messages[d].max,t.fullField,t.max)):a&&s&&(ct.max)&&r.push(so(i.messages[d].range,t.fullField,t.min,t.max))},Gl="enum",Iq=function(t,n,o,r,i){t[Gl]=Array.isArray(t[Gl])?t[Gl]:[],t[Gl].indexOf(n)===-1&&r.push(so(i.messages[Gl],t.fullField,t[Gl].join(", ")))},Tq=function(t,n,o,r,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||r.push(so(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var l=new RegExp(t.pattern);l.test(n)||r.push(so(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},mt={required:P8,whitespace:xq,type:Oq,range:Pq,enum:Iq,pattern:Tq},Eq=function(t,n,o,r,i){var l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(fn(n,"string")&&!t.required)return o();mt.required(t,n,r,l,i,"string"),fn(n,"string")||(mt.type(t,n,r,l,i),mt.range(t,n,r,l,i),mt.pattern(t,n,r,l,i),t.whitespace===!0&&mt.whitespace(t,n,r,l,i))}o(l)},Mq=function(t,n,o,r,i){var l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(fn(n)&&!t.required)return o();mt.required(t,n,r,l,i),n!==void 0&&mt.type(t,n,r,l,i)}o(l)},_q=function(t,n,o,r,i){var l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(n===""&&(n=void 0),fn(n)&&!t.required)return o();mt.required(t,n,r,l,i),n!==void 0&&(mt.type(t,n,r,l,i),mt.range(t,n,r,l,i))}o(l)},Aq=function(t,n,o,r,i){var l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(fn(n)&&!t.required)return o();mt.required(t,n,r,l,i),n!==void 0&&mt.type(t,n,r,l,i)}o(l)},Rq=function(t,n,o,r,i){var l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(fn(n)&&!t.required)return o();mt.required(t,n,r,l,i),fn(n)||mt.type(t,n,r,l,i)}o(l)},Dq=function(t,n,o,r,i){var l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(fn(n)&&!t.required)return o();mt.required(t,n,r,l,i),n!==void 0&&(mt.type(t,n,r,l,i),mt.range(t,n,r,l,i))}o(l)},Nq=function(t,n,o,r,i){var l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(fn(n)&&!t.required)return o();mt.required(t,n,r,l,i),n!==void 0&&(mt.type(t,n,r,l,i),mt.range(t,n,r,l,i))}o(l)},Bq=function(t,n,o,r,i){var l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(n==null&&!t.required)return o();mt.required(t,n,r,l,i,"array"),n!=null&&(mt.type(t,n,r,l,i),mt.range(t,n,r,l,i))}o(l)},kq=function(t,n,o,r,i){var l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(fn(n)&&!t.required)return o();mt.required(t,n,r,l,i),n!==void 0&&mt.type(t,n,r,l,i)}o(l)},Fq="enum",Lq=function(t,n,o,r,i){var l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(fn(n)&&!t.required)return o();mt.required(t,n,r,l,i),n!==void 0&&mt[Fq](t,n,r,l,i)}o(l)},zq=function(t,n,o,r,i){var l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(fn(n,"string")&&!t.required)return o();mt.required(t,n,r,l,i),fn(n,"string")||mt.pattern(t,n,r,l,i)}o(l)},Hq=function(t,n,o,r,i){var l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(fn(n,"date")&&!t.required)return o();if(mt.required(t,n,r,l,i),!fn(n,"date")){var s;n instanceof Date?s=n:s=new Date(n),mt.type(t,s,r,l,i),s&&mt.range(t,s.getTime(),r,l,i)}}o(l)},jq=function(t,n,o,r,i){var l=[],a=Array.isArray(n)?"array":typeof n;mt.required(t,n,r,l,i,a),o(l)},Ph=function(t,n,o,r,i){var l=t.type,a=[],s=t.required||!t.required&&r.hasOwnProperty(t.field);if(s){if(fn(n,l)&&!t.required)return o();mt.required(t,n,r,a,i,l),fn(n,l)||mt.type(t,n,r,a,i)}o(a)},Vq=function(t,n,o,r,i){var l=[],a=t.required||!t.required&&r.hasOwnProperty(t.field);if(a){if(fn(n)&&!t.required)return o();mt.required(t,n,r,l,i)}o(l)},zs={string:Eq,method:Mq,number:_q,boolean:Aq,regexp:Rq,integer:Dq,float:Nq,array:Bq,object:kq,enum:Lq,pattern:zq,date:Hq,url:Ph,hex:Ph,email:Ph,required:jq,any:Vq};function hm(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var vm=hm(),Hc=(function(){function e(n){this.rules=null,this._messages=vm,this.define(n)}var t=e.prototype;return t.define=function(o){var r=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(i){var l=o[i];r.rules[i]=Array.isArray(l)?l:[l]})},t.messages=function(o){return o&&(this._messages=Vx(hm(),o)),this._messages},t.validate=function(o,r,i){var l=this;r===void 0&&(r={}),i===void 0&&(i=function(){});var a=o,s=r,u=i;if(typeof s=="function"&&(u=s,s={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,a),Promise.resolve(a);function c(h){var b=[],y={};function S(x){if(Array.isArray(x)){var C;b=(C=b).concat.apply(C,x)}else b.push(x)}for(var $=0;$3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&o&&n===void 0&&!I8(e,t.slice(0,-1))?e:T8(e,t,n,o)}function mm(e){return xi(e)}function Kq(e,t){return I8(e,t)}function Gq(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Wq(e,t,n,o)}function Xq(e,t){return e&&e.some(n=>Yq(n,t))}function Kx(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function E8(e,t){const n=Array.isArray(e)?[...e]:m({},e);return t&&Object.keys(t).forEach(o=>{const r=n[o],i=t[o],l=Kx(r)&&Kx(i);n[o]=l?E8(r,i||{}):i}),n}function Uq(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;oE8(r,i),e)}function Gx(e,t){let n={};return t.forEach(o=>{const r=Kq(e,o);n=Gq(n,o,r)}),n}function Yq(e,t){return!e||!t||e.length!==t.length?!1:e.every((n,o)=>t[o]===n)}const oo="'${name}' is not a valid ${type}",Jp={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:oo,method:oo,array:oo,object:oo,number:oo,date:oo,boolean:oo,integer:oo,float:oo,regexp:oo,email:oo,url:oo,hex:oo},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};var eg=function(e,t,n,o){function r(i){return i instanceof n?i:new n(function(l){l(i)})}return new(n||(n=Promise))(function(i,l){function a(c){try{u(o.next(c))}catch(d){l(d)}}function s(c){try{u(o.throw(c))}catch(d){l(d)}}function u(c){c.done?i(c.value):r(c.value).then(a,s)}u((o=o.apply(e,t||[])).next())})};const qq=Hc;function Zq(e,t){return e.replace(/\$\{\w+\}/g,n=>{const o=n.slice(2,-1);return t[o]})}function bm(e,t,n,o,r){return eg(this,void 0,void 0,function*(){const i=m({},n);delete i.ruleIndex,delete i.trigger;let l=null;i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField);const a=new qq({[e]:[i]}),s=Uq({},Jp,o.validateMessages);a.messages(s);let u=[];try{yield Promise.resolve(a.validate({[e]:t},m({},o)))}catch(f){f.errors?u=f.errors.map((g,v)=>{let{message:h}=g;return Kt(h)?cn(h,{key:`error_${v}`}):h}):(console.error(f),u=[s.default()])}if(!u.length&&l)return(yield Promise.all(t.map((g,v)=>bm(`${e}.${v}`,g,l,o,r)))).reduce((g,v)=>[...g,...v],[]);const c=m(m(m({},n),{name:e,enum:(n.enum||[]).join(", ")}),r);return u.map(f=>typeof f=="string"?Zq(f,c):f)})}function M8(e,t,n,o,r,i){const l=e.join("."),a=n.map((u,c)=>{const d=u.validator,f=m(m({},u),{ruleIndex:c});return d&&(f.validator=(g,v,h)=>{let b=!1;const S=d(g,v,function(){for(var $=arguments.length,x=new Array($),C=0;C<$;C++)x[C]=arguments[C];Promise.resolve().then(()=>{b||h(...x)})});b=S&&typeof S.then=="function"&&typeof S.catch=="function",b&&S.then(()=>{h()}).catch($=>{h($||" ")})}),f}).sort((u,c)=>{let{warningOnly:d,ruleIndex:f}=u,{warningOnly:g,ruleIndex:v}=c;return!!d==!!g?f-v:d?1:-1});let s;if(r===!0)s=new Promise((u,c)=>eg(this,void 0,void 0,function*(){for(let d=0;dbm(l,t,c,o,i).then(d=>({errors:d,rule:c})));s=(r?Jq(u):Qq(u)).then(c=>Promise.reject(c))}return s.catch(u=>u),s}function Qq(e){return eg(this,void 0,void 0,function*(){return Promise.all(e).then(t=>[].concat(...t))})}function Jq(e){return eg(this,void 0,void 0,function*(){let t=0;return new Promise(n=>{e.forEach(o=>{o.then(r=>{r.errors.length&&n([r]),t+=1,t===e.length&&n([])})})})})}const _8=Symbol("formContextKey"),A8=e=>{Xe(_8,e)},Cy=()=>He(_8,{name:P(()=>{}),labelAlign:P(()=>"right"),vertical:P(()=>!1),addField:(e,t)=>{},removeField:e=>{},model:P(()=>{}),rules:P(()=>{}),colon:P(()=>{}),labelWrap:P(()=>{}),labelCol:P(()=>{}),requiredMark:P(()=>!1),validateTrigger:P(()=>{}),onValidate:()=>{},validateMessages:P(()=>Jp)}),R8=Symbol("formItemPrefixContextKey"),eZ=e=>{Xe(R8,e)},tZ=()=>He(R8,{prefixCls:P(()=>"")});function nZ(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const oZ=()=>({span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}),rZ=["xs","sm","md","lg","xl","xxl"],tg=oe({compatConfig:{MODE:3},name:"ACol",inheritAttrs:!1,props:oZ(),setup(e,t){let{slots:n,attrs:o}=t;const{gutter:r,supportFlexGap:i,wrap:l}=rq(),{prefixCls:a,direction:s}=Te("col",e),[u,c]=uq(a),d=P(()=>{const{span:g,order:v,offset:h,push:b,pull:y}=e,S=a.value;let $={};return rZ.forEach(x=>{let C={};const O=e[x];typeof O=="number"?C.span=O:typeof O=="object"&&(C=O||{}),$=m(m({},$),{[`${S}-${x}-${C.span}`]:C.span!==void 0,[`${S}-${x}-order-${C.order}`]:C.order||C.order===0,[`${S}-${x}-offset-${C.offset}`]:C.offset||C.offset===0,[`${S}-${x}-push-${C.push}`]:C.push||C.push===0,[`${S}-${x}-pull-${C.pull}`]:C.pull||C.pull===0,[`${S}-rtl`]:s.value==="rtl"})}),le(S,{[`${S}-${g}`]:g!==void 0,[`${S}-order-${v}`]:v,[`${S}-offset-${h}`]:h,[`${S}-push-${b}`]:b,[`${S}-pull-${y}`]:y},$,o.class,c.value)}),f=P(()=>{const{flex:g}=e,v=r.value,h={};if(v&&v[0]>0){const b=`${v[0]/2}px`;h.paddingLeft=b,h.paddingRight=b}if(v&&v[1]>0&&!i.value){const b=`${v[1]/2}px`;h.paddingTop=b,h.paddingBottom=b}return g&&(h.flex=nZ(g),l.value===!1&&!h.minWidth&&(h.minWidth=0)),h});return()=>{var g;return u(p("div",D(D({},o),{},{class:d.value,style:[f.value,o.style]}),[(g=n.default)===null||g===void 0?void 0:g.call(n)]))}}});var iZ={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 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};function Xx(e){for(var t=1;t{let{slots:n,emit:o,attrs:r}=t;var i,l,a,s,u;const{prefixCls:c,htmlFor:d,labelCol:f,labelAlign:g,colon:v,required:h,requiredMark:b}=m(m({},e),r),[y]=Do("Form"),S=(i=e.label)!==null&&i!==void 0?i:(l=n.label)===null||l===void 0?void 0:l.call(n);if(!S)return null;const{vertical:$,labelAlign:x,labelCol:C,labelWrap:O,colon:w}=Cy(),I=f||C?.value||{},T=g||x?.value,_=`${c}-item-label`,E=le(_,T==="left"&&`${_}-left`,I.class,{[`${_}-wrap`]:!!O.value});let A=S;const R=v===!0||w?.value!==!1&&v!==!1;if(R&&!$.value&&typeof S=="string"&&S.trim()!==""&&(A=S.replace(/[:|:]\s*$/,"")),e.tooltip||n.tooltip){const N=p("span",{class:`${c}-item-tooltip`},[p(Qn,{title:e.tooltip},{default:()=>[p(xy,null,null)]})]);A=p(Ve,null,[A,n.tooltip?(a=n.tooltip)===null||a===void 0?void 0:a.call(n,{class:`${c}-item-tooltip`}):N])}b==="optional"&&!h&&(A=p(Ve,null,[A,p("span",{class:`${c}-item-optional`},[((s=y.value)===null||s===void 0?void 0:s.optional)||((u=Vn.Form)===null||u===void 0?void 0:u.optional)])]));const M=le({[`${c}-item-required`]:h,[`${c}-item-required-mark-optional`]:b==="optional",[`${c}-item-no-colon`]:!R});return p(tg,D(D({},I),{},{class:E}),{default:()=>[p("label",{for:d,class:M,title:typeof S=="string"?S:"",onClick:N=>o("click",N)},[A])]})};wy.displayName="FormItemLabel";wy.inheritAttrs=!1;const aZ=e=>{const{componentCls:t}=e,n=`${t}-show-help`,o=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[o]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${o}-appear, &${o}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${o}-leave-active`]:{transform:"translateY(-5px)"}}}}},sZ=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Ux=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},cZ=e=>{const{componentCls:t}=e;return{[e.componentCls]:m(m(m({},Ue(e)),sZ(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":m({},Ux(e,e.controlHeightSM)),"&-large":m({},Ux(e,e.controlHeightLG))})}},uZ=e=>{const{formItemCls:t,iconCls:n,componentCls:o,rootPrefixCls:r}=e;return{[t]:m(m({},Ue(e)),{marginBottom:e.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden.${r}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:e.colorError,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${o}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${o}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:e.marginXXS/2,marginInlineEnd:e.marginXS},[`&${t}-no-colon::after`]:{content:'" "'}}},[`${t}-control`]:{display:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:Cb,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},dZ=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${o}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},fZ=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",flexWrap:"nowrap",marginInlineEnd:e.margin,marginBottom:0,"&-with-help":{marginBottom:e.marginLG},[`> ${n}-label, > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Ql=e=>({margin:0,padding:`0 0 ${e.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),pZ=e=>{const{componentCls:t,formItemCls:n}=e;return{[`${n} ${n}-label`]:Ql(e),[t]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},gZ=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${t}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${n}-label, .${o}-col-24${n}-label, - .${o}-col-xl-24${n}-label`]:Ql(e),[`@media (max-width: ${e.screenXSMax}px)`]:[pZ(e),{[t]:{[`.${o}-col-xs-24${n}-label`]:Ql(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${o}-col-sm-24${n}-label`]:Ql(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${o}-col-md-24${n}-label`]:Ql(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${o}-col-lg-24${n}-label`]:Ql(e)}}}},Oy=Ke("Form",(e,t)=>{let{rootPrefixCls:n}=t;const o=ke(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[cZ(o),uZ(o),aZ(o),dZ(o),fZ(o),gZ(o),_c(o),Cb]}),hZ=oe({compatConfig:{MODE:3},name:"ErrorList",inheritAttrs:!1,props:["errors","help","onErrorVisibleChanged","helpStatus","warnings"],setup(e,t){let{attrs:n}=t;const{prefixCls:o,status:r}=tZ(),i=P(()=>`${o.value}-item-explain`),l=P(()=>!!(e.errors&&e.errors.length)),a=re(r.value),[,s]=Oy(o);return ye([l,r],()=>{l.value&&(a.value=r.value)}),()=>{var u,c;const d=Rc(`${o.value}-show-help-item`),f=xp(`${o.value}-show-help-item`,d);return f.role="alert",f.class=[s.value,i.value,n.class,`${o.value}-show-help`],p(un,D(D({},Ro(`${o.value}-show-help`)),{},{onAfterEnter:()=>e.onErrorVisibleChanged(!0),onAfterLeave:()=>e.onErrorVisibleChanged(!1)}),{default:()=>[En(p(op,D(D({},f),{},{tag:"div"}),{default:()=>[(c=e.errors)===null||c===void 0?void 0:c.map((g,v)=>p("div",{key:v,class:a.value?`${i.value}-${a.value}`:""},[g]))]}),[[jn,!!(!((u=e.errors)===null||u===void 0)&&u.length)]])]})}}}),vZ=oe({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status","marginBottom","onErrorVisibleChanged"],setup(e,t){let{slots:n}=t;const o=Cy(),{wrapperCol:r}=o,i=m({},o);return delete i.labelCol,delete i.wrapperCol,A8(i),eZ({prefixCls:P(()=>e.prefixCls),status:P(()=>e.status)}),()=>{var l,a,s;const{prefixCls:u,wrapperCol:c,marginBottom:d,onErrorVisibleChanged:f,help:g=(l=n.help)===null||l===void 0?void 0:l.call(n),errors:v=_t((a=n.errors)===null||a===void 0?void 0:a.call(n)),extra:h=(s=n.extra)===null||s===void 0?void 0:s.call(n)}=e,b=`${u}-item`,y=c||r?.value||{},S=le(`${b}-control`,y.class);return p(tg,D(D({},y),{},{class:S}),{default:()=>{var $;return p(Ve,null,[p("div",{class:`${b}-control-input`},[p("div",{class:`${b}-control-input-content`},[($=n.default)===null||$===void 0?void 0:$.call(n)])]),d!==null||v.length?p("div",{style:{display:"flex",flexWrap:"nowrap"}},[p(hZ,{errors:v,help:g,class:`${b}-explain-connected`,onErrorVisibleChanged:f},null),!!d&&p("div",{style:{width:0,height:`${d}px`}},null)]):null,h?p("div",{class:`${b}-extra`},[h]):null])}})}}});function mZ(e){const t=ne(e.value.slice());let n=null;return Le(()=>{clearTimeout(n),n=setTimeout(()=>{t.value=e.value},e.value.length?0:10)}),t}Sn("success","warning","error","validating","");const bZ={success:Jo,warning:er,error:Dn,validating:Wn};function Ih(e,t,n){let o=e;const r=t;let i=0;try{for(let l=r.length;i({htmlFor:String,prefixCls:String,label:W.any,help:W.any,extra:W.any,labelCol:{type:Object},wrapperCol:{type:Object},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:String,prop:{type:[String,Number,Array]},name:{type:[String,Number,Array]},rules:[Array,Object],autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:W.oneOf(Sn("","success","warning","error","validating")),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean,noStyle:Boolean,tooltip:String});let SZ=0;const $Z="form_item",D8=oe({compatConfig:{MODE:3},name:"AFormItem",inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:yZ(),slots:Object,setup(e,t){let{slots:n,attrs:o,expose:r}=t;e.prop;const i=`form-item-${++SZ}`,{prefixCls:l}=Te("form",e),[a,s]=Oy(l),u=ne(),c=Cy(),d=P(()=>e.name||e.prop),f=ne([]),g=ne(!1),v=ne(),h=P(()=>{const U=d.value;return mm(U)}),b=P(()=>{if(h.value.length){const U=c.name.value,ee=h.value.join("_");return U?`${U}_${ee}`:`${$Z}_${ee}`}else return}),y=()=>{const U=c.model.value;if(!(!U||!d.value))return Ih(U,h.value,!0).v},S=P(()=>y()),$=ne(Vu(S.value)),x=P(()=>{let U=e.validateTrigger!==void 0?e.validateTrigger:c.validateTrigger.value;return U=U===void 0?"change":U,xi(U)}),C=P(()=>{let U=c.rules.value;const ee=e.rules,X=e.required!==void 0?{required:!!e.required,trigger:x.value}:[],J=Ih(U,h.value);U=U?J.o[J.k]||J.v:[];const Z=[].concat(ee||U||[]);return UH(Z,G=>G.required)?Z:Z.concat(X)}),O=P(()=>{const U=C.value;let ee=!1;return U&&U.length&&U.every(X=>X.required?(ee=!0,!1):!0),ee||e.required}),w=ne();Le(()=>{w.value=e.validateStatus});const I=P(()=>{let U={};return typeof e.label=="string"?U.label=e.label:e.name&&(U.label=String(e.name)),e.messageVariables&&(U=m(m({},U),e.messageVariables)),U}),T=U=>{if(h.value.length===0)return;const{validateFirst:ee=!1}=e,{triggerName:X}=U||{};let J=C.value;if(X&&(J=J.filter(G=>{const{trigger:q}=G;return!q&&!x.value.length?!0:xi(q||x.value).includes(X)})),!J.length)return Promise.resolve();const Z=M8(h.value,S.value,J,m({validateMessages:c.validateMessages.value},U),ee,I.value);return w.value="validating",f.value=[],Z.catch(G=>G).then(function(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(w.value==="validating"){const q=G.filter(V=>V&&V.errors.length);w.value=q.length?"error":"success",f.value=q.map(V=>V.errors),c.onValidate(d.value,!f.value.length,f.value.length?Je(f.value[0]):null)}}),Z},M=()=>{T({triggerName:"blur"})},E=()=>{if(g.value){g.value=!1;return}T({triggerName:"change"})},A=()=>{w.value=e.validateStatus,g.value=!1,f.value=[]},R=()=>{var U;w.value=e.validateStatus,g.value=!0,f.value=[];const ee=c.model.value||{},X=S.value,J=Ih(ee,h.value,!0);Array.isArray(X)?J.o[J.k]=[].concat((U=$.value)!==null&&U!==void 0?U:[]):J.o[J.k]=$.value,ot(()=>{g.value=!1})},z=P(()=>e.htmlFor===void 0?b.value:e.htmlFor),_=()=>{const U=z.value;if(!U||!v.value)return;const ee=v.value.$el.querySelector(`[id="${U}"]`);ee&&ee.focus&&ee.focus()};r({onFieldBlur:M,onFieldChange:E,clearValidate:A,resetField:R}),nL({id:b,onFieldBlur:()=>{e.autoLink&&M()},onFieldChange:()=>{e.autoLink&&E()},clearValidate:A},P(()=>!!(e.autoLink&&c.model.value&&d.value)));let N=!1;ye(d,U=>{U?N||(N=!0,c.addField(i,{fieldValue:S,fieldId:b,fieldName:d,resetField:R,clearValidate:A,namePath:h,validateRules:T,rules:C})):(N=!1,c.removeField(i))},{immediate:!0}),Qe(()=>{c.removeField(i)});const B=mZ(f),k=P(()=>e.validateStatus!==void 0?e.validateStatus:B.value.length?"error":w.value),F=P(()=>({[`${l.value}-item`]:!0,[s.value]:!0,[`${l.value}-item-has-feedback`]:k.value&&e.hasFeedback,[`${l.value}-item-has-success`]:k.value==="success",[`${l.value}-item-has-warning`]:k.value==="warning",[`${l.value}-item-has-error`]:k.value==="error",[`${l.value}-item-is-validating`]:k.value==="validating",[`${l.value}-item-hidden`]:e.hidden})),L=ct({});dn.useProvide(L),Le(()=>{let U;if(e.hasFeedback){const ee=k.value&&bZ[k.value];U=ee?p("span",{class:le(`${l.value}-item-feedback-icon`,`${l.value}-item-feedback-icon-${k.value}`)},[p(ee,null,null)]):null}m(L,{status:k.value,hasFeedback:e.hasFeedback,feedbackIcon:U,isFormItemInput:!0})});const H=ne(null),j=ne(!1),Y=()=>{if(u.value){const U=getComputedStyle(u.value);H.value=parseInt(U.marginBottom,10)}};je(()=>{ye(j,()=>{j.value&&Y()},{flush:"post",immediate:!0})});const Q=U=>{U||(H.value=null)};return()=>{var U,ee;if(e.noStyle)return(U=n.default)===null||U===void 0?void 0:U.call(n);const X=(ee=e.help)!==null&&ee!==void 0?ee:n.help?_t(n.help()):null,J=!!(X!=null&&Array.isArray(X)&&X.length||B.value.length);return j.value=J,a(p("div",{class:[F.value,J?`${l.value}-item-with-help`:"",o.class],ref:u},[p($y,D(D({},o),{},{class:`${l.value}-item-row`,key:"row"}),{default:()=>{var Z,G;return p(Ve,null,[p(wy,D(D({},e),{},{htmlFor:z.value,required:O.value,requiredMark:c.requiredMark.value,prefixCls:l.value,onClick:_,label:e.label}),{label:n.label,tooltip:n.tooltip}),p(vZ,D(D({},e),{},{errors:X!=null?xi(X):B.value,marginBottom:H.value,prefixCls:l.value,status:k.value,ref:v,help:X,extra:(Z=e.extra)!==null&&Z!==void 0?Z:(G=n.extra)===null||G===void 0?void 0:G.call(n),onErrorVisibleChanged:Q}),{default:n.default})])}}),!!H.value&&p("div",{class:`${l.value}-margin-offset`,style:{marginBottom:`-${H.value}px`}},null)]))}}});function N8(e){let t=!1,n=e.length;const o=[];return e.length?new Promise((r,i)=>{e.forEach((l,a)=>{l.catch(s=>(t=!0,s)).then(s=>{n-=1,o[a]=s,!(n>0)&&(t&&i(o),r(o))})})}):Promise.resolve([])}function Yx(e){let t=!1;return e&&e.length&&e.every(n=>n.required?(t=!0,!1):!0),t}function qx(e){return e==null?[]:Array.isArray(e)?e:[e]}function Th(e,t,n){let o=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");const r=t.split(".");let i=0;for(let l=r.length;i1&&arguments[1]!==void 0?arguments[1]:re({}),n=arguments.length>2?arguments[2]:void 0;const o=Vu(St(e)),r=ct({}),i=ne([]),l=$=>{m(St(e),m(m({},Vu(o)),$)),ot(()=>{Object.keys(r).forEach(x=>{r[x]={autoLink:!1,required:Yx(St(t)[x])}})})},a=function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=arguments.length>1?arguments[1]:void 0;return x.length?$.filter(C=>{const O=qx(C.trigger||"change");return JH(O,x).length}):$};let s=null;const u=function($){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=arguments.length>2?arguments[2]:void 0;const O=[],w={};for(let M=0;M<$.length;M++){const E=$[M],A=Th(St(e),E,C);if(!A.isValid)continue;w[E]=A.v;const R=a(St(t)[E],qx(x&&x.trigger));R.length&&O.push(c(E,A.v,R,x||{}).then(()=>({name:E,errors:[],warnings:[]})).catch(z=>{const _=[],N=[];return z.forEach(B=>{let{rule:{warningOnly:k},errors:F}=B;k?N.push(...F):_.push(...F)}),_.length?Promise.reject({name:E,errors:_,warnings:N}):{name:E,errors:_,warnings:N}}))}const I=N8(O);s=I;const T=I.then(()=>s===I?Promise.resolve(w):Promise.reject([])).catch(M=>{const E=M.filter(A=>A&&A.errors.length);return E.length?Promise.reject({values:w,errorFields:E,outOfDate:s!==I}):Promise.resolve(w)});return T.catch(M=>M),T},c=function($,x,C){let O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const w=M8([$],x,C,m({validateMessages:Jp},O),!!O.validateFirst);return r[$]?(r[$].validateStatus="validating",w.catch(I=>I).then(function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var T;if(r[$].validateStatus==="validating"){const M=I.filter(E=>E&&E.errors.length);r[$].validateStatus=M.length?"error":"success",r[$].help=M.length?M.map(E=>E.errors):null,(T=n?.onValidate)===null||T===void 0||T.call(n,$,!M.length,M.length?Je(r[$].help[0]):null)}}),w):w.catch(I=>I)},d=($,x)=>{let C=[],O=!0;$?Array.isArray($)?C=$:C=[$]:(O=!1,C=i.value);const w=u(C,x||{},O);return w.catch(I=>I),w},f=$=>{let x=[];$?Array.isArray($)?x=$:x=[$]:x=i.value,x.forEach(C=>{r[C]&&m(r[C],{validateStatus:"",help:null})})},g=$=>{const x={autoLink:!1},C=[],O=Array.isArray($)?$:[$];for(let w=0;w{const x=[];i.value.forEach(C=>{const O=Th($,C,!1),w=Th(v,C,!1);(h&&n?.immediate&&O.isValid||!q0(O.v,w.v))&&x.push(C)}),d(x,{trigger:"change"}),h=!1,v=Vu(Je($))},y=n?.debounce;let S=!0;return ye(t,()=>{i.value=t?Object.keys(St(t)):[],!S&&n&&n.validateOnRuleChange&&d(),S=!1},{deep:!0,immediate:!0}),ye(i,()=>{const $={};i.value.forEach(x=>{$[x]=m({},r[x],{autoLink:!1,required:Yx(St(t)[x])}),delete r[x]});for(const x in r)Object.prototype.hasOwnProperty.call(r,x)&&delete r[x];m(r,$)},{immediate:!0}),ye(e,y&&y.wait?Sb(b,y.wait,gj(y,["wait"])):b,{immediate:n&&!!n.immediate,deep:!0}),{modelRef:e,rulesRef:t,initialModel:o,validateInfos:r,resetFields:l,validate:d,validateField:c,mergeValidateInfo:g,clearValidate:f}}const xZ=()=>({layout:W.oneOf(Sn("horizontal","inline","vertical")),labelCol:De(),wrapperCol:De(),colon:$e(),labelAlign:Ne(),labelWrap:$e(),prefixCls:String,requiredMark:Fe([String,Boolean]),hideRequiredMark:$e(),model:W.object,rules:De(),validateMessages:De(),validateOnRuleChange:$e(),scrollToFirstError:yt(),onSubmit:ve(),name:String,validateTrigger:Fe([String,Array]),size:Ne(),disabled:$e(),onValuesChange:ve(),onFieldsChange:ve(),onFinish:ve(),onFinishFailed:ve(),onValidate:ve()});function wZ(e,t){return q0(xi(e),xi(t))}const hi=oe({compatConfig:{MODE:3},name:"AForm",inheritAttrs:!1,props:Ze(xZ(),{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:D8,useForm:CZ,setup(e,t){let{emit:n,slots:o,expose:r,attrs:i}=t;const{prefixCls:l,direction:a,form:s,size:u,disabled:c}=Te("form",e),d=P(()=>e.requiredMark===""||e.requiredMark),f=P(()=>{var B;return d.value!==void 0?d.value:s&&((B=s.value)===null||B===void 0?void 0:B.requiredMark)!==void 0?s.value.requiredMark:!e.hideRequiredMark});sP(u),TO(c);const g=P(()=>{var B,k;return(B=e.colon)!==null&&B!==void 0?B:(k=s.value)===null||k===void 0?void 0:k.colon}),{validateMessages:v}=cA(),h=P(()=>m(m(m({},Jp),v.value),e.validateMessages)),[b,y]=Oy(l),S=P(()=>le(l.value,{[`${l.value}-${e.layout}`]:!0,[`${l.value}-hide-required-mark`]:f.value===!1,[`${l.value}-rtl`]:a.value==="rtl",[`${l.value}-${u.value}`]:u.value},y.value)),$=re(),x={},C=(B,k)=>{x[B]=k},O=B=>{delete x[B]},w=B=>{const k=!!B,F=k?xi(B).map(mm):[];return k?Object.values(x).filter(L=>F.findIndex(H=>wZ(H,L.fieldName.value))>-1):Object.values(x)},I=B=>{e.model&&w(B).forEach(k=>{k.resetField()})},T=B=>{w(B).forEach(k=>{k.clearValidate()})},M=B=>{const{scrollToFirstError:k}=e;if(n("finishFailed",B),k&&B.errorFields.length){let F={};typeof k=="object"&&(F=k),A(B.errorFields[0].name,F)}},E=function(){return _(...arguments)},A=function(B){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const F=w(B?[B]:void 0);if(F.length){const L=F[0].fieldId.value,H=L?document.getElementById(L):null;H&&dP(H,m({scrollMode:"if-needed",block:"nearest"},k))}},R=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(B===!0){const k=[];return Object.values(x).forEach(F=>{let{namePath:L}=F;k.push(L.value)}),Gx(e.model,k)}else return Gx(e.model,B)},z=(B,k)=>{if(!e.model)return Promise.reject("Form `model` is required for validateFields to work.");const F=!!B,L=F?xi(B).map(mm):[],H=[];Object.values(x).forEach(Q=>{var U;if(F||L.push(Q.namePath.value),!(!((U=Q.rules)===null||U===void 0)&&U.value.length))return;const ee=Q.namePath.value;if(!F||Xq(L,ee)){const X=Q.validateRules(m({validateMessages:h.value},k));H.push(X.then(()=>({name:ee,errors:[],warnings:[]})).catch(J=>{const Z=[],G=[];return J.forEach(q=>{let{rule:{warningOnly:V},errors:K}=q;V?G.push(...K):Z.push(...K)}),Z.length?Promise.reject({name:ee,errors:Z,warnings:G}):{name:ee,errors:Z,warnings:G}}))}});const j=N8(H);$.value=j;const Y=j.then(()=>$.value===j?Promise.resolve(R(L)):Promise.reject([])).catch(Q=>{const U=Q.filter(ee=>ee&&ee.errors.length);return Promise.reject({values:R(L),errorFields:U,outOfDate:$.value!==j})});return Y.catch(Q=>Q),Y},_=function(){return z(...arguments)},N=B=>{B.preventDefault(),B.stopPropagation(),n("submit",B),e.model&&z().then(F=>{n("finish",F)}).catch(F=>{M(F)})};return r({resetFields:I,clearValidate:T,validateFields:z,getFieldsValue:R,validate:E,scrollToField:A}),A8({model:P(()=>e.model),name:P(()=>e.name),labelAlign:P(()=>e.labelAlign),labelCol:P(()=>e.labelCol),labelWrap:P(()=>e.labelWrap),wrapperCol:P(()=>e.wrapperCol),vertical:P(()=>e.layout==="vertical"),colon:g,requiredMark:f,validateTrigger:P(()=>e.validateTrigger),rules:P(()=>e.rules),addField:C,removeField:O,onValidate:(B,k,F)=>{n("validate",B,k,F)},validateMessages:h}),ye(()=>e.rules,()=>{e.validateOnRuleChange&&z()}),()=>{var B;return b(p("form",D(D({},i),{},{onSubmit:N,class:[S.value,i.class]}),[(B=o.default)===null||B===void 0?void 0:B.call(o)]))}}});hi.useInjectFormItemContext=Qt;hi.ItemRest=ef;hi.install=function(e){return e.component(hi.name,hi),e.component(hi.Item.name,hi.Item),e.component(ef.name,ef),e};const OZ=new nt("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),PZ=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:m(m({},Ue(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:m(m({},Ue(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:m(m({},Ue(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:m({},Wr(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}:hover ${t}:after`]:{visibility:"visible"},[` + .${o}-col-xl-24${n}-label`]:Ql(e),[`@media (max-width: ${e.screenXSMax}px)`]:[pZ(e),{[t]:{[`.${o}-col-xs-24${n}-label`]:Ql(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${o}-col-sm-24${n}-label`]:Ql(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${o}-col-md-24${n}-label`]:Ql(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${o}-col-lg-24${n}-label`]:Ql(e)}}}},Oy=Ke("Form",(e,t)=>{let{rootPrefixCls:n}=t;const o=ke(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:n});return[cZ(o),uZ(o),aZ(o),dZ(o),fZ(o),gZ(o),_c(o),Cb]}),hZ=oe({compatConfig:{MODE:3},name:"ErrorList",inheritAttrs:!1,props:["errors","help","onErrorVisibleChanged","helpStatus","warnings"],setup(e,t){let{attrs:n}=t;const{prefixCls:o,status:r}=tZ(),i=P(()=>`${o.value}-item-explain`),l=P(()=>!!(e.errors&&e.errors.length)),a=re(r.value),[,s]=Oy(o);return ye([l,r],()=>{l.value&&(a.value=r.value)}),()=>{var u,c;const d=Rc(`${o.value}-show-help-item`),f=xp(`${o.value}-show-help-item`,d);return f.role="alert",f.class=[s.value,i.value,n.class,`${o.value}-show-help`],p(un,D(D({},Ro(`${o.value}-show-help`)),{},{onAfterEnter:()=>e.onErrorVisibleChanged(!0),onAfterLeave:()=>e.onErrorVisibleChanged(!1)}),{default:()=>[En(p(op,D(D({},f),{},{tag:"div"}),{default:()=>[(c=e.errors)===null||c===void 0?void 0:c.map((g,v)=>p("div",{key:v,class:a.value?`${i.value}-${a.value}`:""},[g]))]}),[[jn,!!(!((u=e.errors)===null||u===void 0)&&u.length)]])]})}}}),vZ=oe({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status","marginBottom","onErrorVisibleChanged"],setup(e,t){let{slots:n}=t;const o=Cy(),{wrapperCol:r}=o,i=m({},o);return delete i.labelCol,delete i.wrapperCol,A8(i),eZ({prefixCls:P(()=>e.prefixCls),status:P(()=>e.status)}),()=>{var l,a,s;const{prefixCls:u,wrapperCol:c,marginBottom:d,onErrorVisibleChanged:f,help:g=(l=n.help)===null||l===void 0?void 0:l.call(n),errors:v=At((a=n.errors)===null||a===void 0?void 0:a.call(n)),extra:h=(s=n.extra)===null||s===void 0?void 0:s.call(n)}=e,b=`${u}-item`,y=c||r?.value||{},S=le(`${b}-control`,y.class);return p(tg,D(D({},y),{},{class:S}),{default:()=>{var $;return p(Ve,null,[p("div",{class:`${b}-control-input`},[p("div",{class:`${b}-control-input-content`},[($=n.default)===null||$===void 0?void 0:$.call(n)])]),d!==null||v.length?p("div",{style:{display:"flex",flexWrap:"nowrap"}},[p(hZ,{errors:v,help:g,class:`${b}-explain-connected`,onErrorVisibleChanged:f},null),!!d&&p("div",{style:{width:0,height:`${d}px`}},null)]):null,h?p("div",{class:`${b}-extra`},[h]):null])}})}}});function mZ(e){const t=ne(e.value.slice());let n=null;return Le(()=>{clearTimeout(n),n=setTimeout(()=>{t.value=e.value},e.value.length?0:10)}),t}Sn("success","warning","error","validating","");const bZ={success:Jo,warning:er,error:Dn,validating:Wn};function Ih(e,t,n){let o=e;const r=t;let i=0;try{for(let l=r.length;i({htmlFor:String,prefixCls:String,label:W.any,help:W.any,extra:W.any,labelCol:{type:Object},wrapperCol:{type:Object},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:String,prop:{type:[String,Number,Array]},name:{type:[String,Number,Array]},rules:[Array,Object],autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:W.oneOf(Sn("","success","warning","error","validating")),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean,noStyle:Boolean,tooltip:String});let SZ=0;const $Z="form_item",D8=oe({compatConfig:{MODE:3},name:"AFormItem",inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:yZ(),slots:Object,setup(e,t){let{slots:n,attrs:o,expose:r}=t;e.prop;const i=`form-item-${++SZ}`,{prefixCls:l}=Te("form",e),[a,s]=Oy(l),u=ne(),c=Cy(),d=P(()=>e.name||e.prop),f=ne([]),g=ne(!1),v=ne(),h=P(()=>{const U=d.value;return mm(U)}),b=P(()=>{if(h.value.length){const U=c.name.value,ee=h.value.join("_");return U?`${U}_${ee}`:`${$Z}_${ee}`}else return}),y=()=>{const U=c.model.value;if(!(!U||!d.value))return Ih(U,h.value,!0).v},S=P(()=>y()),$=ne(Vu(S.value)),x=P(()=>{let U=e.validateTrigger!==void 0?e.validateTrigger:c.validateTrigger.value;return U=U===void 0?"change":U,xi(U)}),C=P(()=>{let U=c.rules.value;const ee=e.rules,X=e.required!==void 0?{required:!!e.required,trigger:x.value}:[],J=Ih(U,h.value);U=U?J.o[J.k]||J.v:[];const Z=[].concat(ee||U||[]);return UH(Z,G=>G.required)?Z:Z.concat(X)}),O=P(()=>{const U=C.value;let ee=!1;return U&&U.length&&U.every(X=>X.required?(ee=!0,!1):!0),ee||e.required}),w=ne();Le(()=>{w.value=e.validateStatus});const I=P(()=>{let U={};return typeof e.label=="string"?U.label=e.label:e.name&&(U.label=String(e.name)),e.messageVariables&&(U=m(m({},U),e.messageVariables)),U}),T=U=>{if(h.value.length===0)return;const{validateFirst:ee=!1}=e,{triggerName:X}=U||{};let J=C.value;if(X&&(J=J.filter(G=>{const{trigger:q}=G;return!q&&!x.value.length?!0:xi(q||x.value).includes(X)})),!J.length)return Promise.resolve();const Z=M8(h.value,S.value,J,m({validateMessages:c.validateMessages.value},U),ee,I.value);return w.value="validating",f.value=[],Z.catch(G=>G).then(function(){let G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(w.value==="validating"){const q=G.filter(V=>V&&V.errors.length);w.value=q.length?"error":"success",f.value=q.map(V=>V.errors),c.onValidate(d.value,!f.value.length,f.value.length?Je(f.value[0]):null)}}),Z},_=()=>{T({triggerName:"blur"})},E=()=>{if(g.value){g.value=!1;return}T({triggerName:"change"})},A=()=>{w.value=e.validateStatus,g.value=!1,f.value=[]},R=()=>{var U;w.value=e.validateStatus,g.value=!0,f.value=[];const ee=c.model.value||{},X=S.value,J=Ih(ee,h.value,!0);Array.isArray(X)?J.o[J.k]=[].concat((U=$.value)!==null&&U!==void 0?U:[]):J.o[J.k]=$.value,ot(()=>{g.value=!1})},z=P(()=>e.htmlFor===void 0?b.value:e.htmlFor),M=()=>{const U=z.value;if(!U||!v.value)return;const ee=v.value.$el.querySelector(`[id="${U}"]`);ee&&ee.focus&&ee.focus()};r({onFieldBlur:_,onFieldChange:E,clearValidate:A,resetField:R}),nL({id:b,onFieldBlur:()=>{e.autoLink&&_()},onFieldChange:()=>{e.autoLink&&E()},clearValidate:A},P(()=>!!(e.autoLink&&c.model.value&&d.value)));let N=!1;ye(d,U=>{U?N||(N=!0,c.addField(i,{fieldValue:S,fieldId:b,fieldName:d,resetField:R,clearValidate:A,namePath:h,validateRules:T,rules:C})):(N=!1,c.removeField(i))},{immediate:!0}),Qe(()=>{c.removeField(i)});const B=mZ(f),k=P(()=>e.validateStatus!==void 0?e.validateStatus:B.value.length?"error":w.value),F=P(()=>({[`${l.value}-item`]:!0,[s.value]:!0,[`${l.value}-item-has-feedback`]:k.value&&e.hasFeedback,[`${l.value}-item-has-success`]:k.value==="success",[`${l.value}-item-has-warning`]:k.value==="warning",[`${l.value}-item-has-error`]:k.value==="error",[`${l.value}-item-is-validating`]:k.value==="validating",[`${l.value}-item-hidden`]:e.hidden})),L=ct({});dn.useProvide(L),Le(()=>{let U;if(e.hasFeedback){const ee=k.value&&bZ[k.value];U=ee?p("span",{class:le(`${l.value}-item-feedback-icon`,`${l.value}-item-feedback-icon-${k.value}`)},[p(ee,null,null)]):null}m(L,{status:k.value,hasFeedback:e.hasFeedback,feedbackIcon:U,isFormItemInput:!0})});const H=ne(null),j=ne(!1),Y=()=>{if(u.value){const U=getComputedStyle(u.value);H.value=parseInt(U.marginBottom,10)}};je(()=>{ye(j,()=>{j.value&&Y()},{flush:"post",immediate:!0})});const Q=U=>{U||(H.value=null)};return()=>{var U,ee;if(e.noStyle)return(U=n.default)===null||U===void 0?void 0:U.call(n);const X=(ee=e.help)!==null&&ee!==void 0?ee:n.help?At(n.help()):null,J=!!(X!=null&&Array.isArray(X)&&X.length||B.value.length);return j.value=J,a(p("div",{class:[F.value,J?`${l.value}-item-with-help`:"",o.class],ref:u},[p($y,D(D({},o),{},{class:`${l.value}-item-row`,key:"row"}),{default:()=>{var Z,G;return p(Ve,null,[p(wy,D(D({},e),{},{htmlFor:z.value,required:O.value,requiredMark:c.requiredMark.value,prefixCls:l.value,onClick:M,label:e.label}),{label:n.label,tooltip:n.tooltip}),p(vZ,D(D({},e),{},{errors:X!=null?xi(X):B.value,marginBottom:H.value,prefixCls:l.value,status:k.value,ref:v,help:X,extra:(Z=e.extra)!==null&&Z!==void 0?Z:(G=n.extra)===null||G===void 0?void 0:G.call(n),onErrorVisibleChanged:Q}),{default:n.default})])}}),!!H.value&&p("div",{class:`${l.value}-margin-offset`,style:{marginBottom:`-${H.value}px`}},null)]))}}});function N8(e){let t=!1,n=e.length;const o=[];return e.length?new Promise((r,i)=>{e.forEach((l,a)=>{l.catch(s=>(t=!0,s)).then(s=>{n-=1,o[a]=s,!(n>0)&&(t&&i(o),r(o))})})}):Promise.resolve([])}function Yx(e){let t=!1;return e&&e.length&&e.every(n=>n.required?(t=!0,!1):!0),t}function qx(e){return e==null?[]:Array.isArray(e)?e:[e]}function Th(e,t,n){let o=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");const r=t.split(".");let i=0;for(let l=r.length;i1&&arguments[1]!==void 0?arguments[1]:re({}),n=arguments.length>2?arguments[2]:void 0;const o=Vu(St(e)),r=ct({}),i=ne([]),l=$=>{m(St(e),m(m({},Vu(o)),$)),ot(()=>{Object.keys(r).forEach(x=>{r[x]={autoLink:!1,required:Yx(St(t)[x])}})})},a=function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],x=arguments.length>1?arguments[1]:void 0;return x.length?$.filter(C=>{const O=qx(C.trigger||"change");return JH(O,x).length}):$};let s=null;const u=function($){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=arguments.length>2?arguments[2]:void 0;const O=[],w={};for(let _=0;_<$.length;_++){const E=$[_],A=Th(St(e),E,C);if(!A.isValid)continue;w[E]=A.v;const R=a(St(t)[E],qx(x&&x.trigger));R.length&&O.push(c(E,A.v,R,x||{}).then(()=>({name:E,errors:[],warnings:[]})).catch(z=>{const M=[],N=[];return z.forEach(B=>{let{rule:{warningOnly:k},errors:F}=B;k?N.push(...F):M.push(...F)}),M.length?Promise.reject({name:E,errors:M,warnings:N}):{name:E,errors:M,warnings:N}}))}const I=N8(O);s=I;const T=I.then(()=>s===I?Promise.resolve(w):Promise.reject([])).catch(_=>{const E=_.filter(A=>A&&A.errors.length);return E.length?Promise.reject({values:w,errorFields:E,outOfDate:s!==I}):Promise.resolve(w)});return T.catch(_=>_),T},c=function($,x,C){let O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const w=M8([$],x,C,m({validateMessages:Jp},O),!!O.validateFirst);return r[$]?(r[$].validateStatus="validating",w.catch(I=>I).then(function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var T;if(r[$].validateStatus==="validating"){const _=I.filter(E=>E&&E.errors.length);r[$].validateStatus=_.length?"error":"success",r[$].help=_.length?_.map(E=>E.errors):null,(T=n?.onValidate)===null||T===void 0||T.call(n,$,!_.length,_.length?Je(r[$].help[0]):null)}}),w):w.catch(I=>I)},d=($,x)=>{let C=[],O=!0;$?Array.isArray($)?C=$:C=[$]:(O=!1,C=i.value);const w=u(C,x||{},O);return w.catch(I=>I),w},f=$=>{let x=[];$?Array.isArray($)?x=$:x=[$]:x=i.value,x.forEach(C=>{r[C]&&m(r[C],{validateStatus:"",help:null})})},g=$=>{const x={autoLink:!1},C=[],O=Array.isArray($)?$:[$];for(let w=0;w{const x=[];i.value.forEach(C=>{const O=Th($,C,!1),w=Th(v,C,!1);(h&&n?.immediate&&O.isValid||!q0(O.v,w.v))&&x.push(C)}),d(x,{trigger:"change"}),h=!1,v=Vu(Je($))},y=n?.debounce;let S=!0;return ye(t,()=>{i.value=t?Object.keys(St(t)):[],!S&&n&&n.validateOnRuleChange&&d(),S=!1},{deep:!0,immediate:!0}),ye(i,()=>{const $={};i.value.forEach(x=>{$[x]=m({},r[x],{autoLink:!1,required:Yx(St(t)[x])}),delete r[x]});for(const x in r)Object.prototype.hasOwnProperty.call(r,x)&&delete r[x];m(r,$)},{immediate:!0}),ye(e,y&&y.wait?Sb(b,y.wait,gj(y,["wait"])):b,{immediate:n&&!!n.immediate,deep:!0}),{modelRef:e,rulesRef:t,initialModel:o,validateInfos:r,resetFields:l,validate:d,validateField:c,mergeValidateInfo:g,clearValidate:f}}const xZ=()=>({layout:W.oneOf(Sn("horizontal","inline","vertical")),labelCol:De(),wrapperCol:De(),colon:$e(),labelAlign:Ne(),labelWrap:$e(),prefixCls:String,requiredMark:Fe([String,Boolean]),hideRequiredMark:$e(),model:W.object,rules:De(),validateMessages:De(),validateOnRuleChange:$e(),scrollToFirstError:yt(),onSubmit:ve(),name:String,validateTrigger:Fe([String,Array]),size:Ne(),disabled:$e(),onValuesChange:ve(),onFieldsChange:ve(),onFinish:ve(),onFinishFailed:ve(),onValidate:ve()});function wZ(e,t){return q0(xi(e),xi(t))}const hi=oe({compatConfig:{MODE:3},name:"AForm",inheritAttrs:!1,props:Ze(xZ(),{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:D8,useForm:CZ,setup(e,t){let{emit:n,slots:o,expose:r,attrs:i}=t;const{prefixCls:l,direction:a,form:s,size:u,disabled:c}=Te("form",e),d=P(()=>e.requiredMark===""||e.requiredMark),f=P(()=>{var B;return d.value!==void 0?d.value:s&&((B=s.value)===null||B===void 0?void 0:B.requiredMark)!==void 0?s.value.requiredMark:!e.hideRequiredMark});sP(u),TO(c);const g=P(()=>{var B,k;return(B=e.colon)!==null&&B!==void 0?B:(k=s.value)===null||k===void 0?void 0:k.colon}),{validateMessages:v}=cA(),h=P(()=>m(m(m({},Jp),v.value),e.validateMessages)),[b,y]=Oy(l),S=P(()=>le(l.value,{[`${l.value}-${e.layout}`]:!0,[`${l.value}-hide-required-mark`]:f.value===!1,[`${l.value}-rtl`]:a.value==="rtl",[`${l.value}-${u.value}`]:u.value},y.value)),$=re(),x={},C=(B,k)=>{x[B]=k},O=B=>{delete x[B]},w=B=>{const k=!!B,F=k?xi(B).map(mm):[];return k?Object.values(x).filter(L=>F.findIndex(H=>wZ(H,L.fieldName.value))>-1):Object.values(x)},I=B=>{e.model&&w(B).forEach(k=>{k.resetField()})},T=B=>{w(B).forEach(k=>{k.clearValidate()})},_=B=>{const{scrollToFirstError:k}=e;if(n("finishFailed",B),k&&B.errorFields.length){let F={};typeof k=="object"&&(F=k),A(B.errorFields[0].name,F)}},E=function(){return M(...arguments)},A=function(B){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const F=w(B?[B]:void 0);if(F.length){const L=F[0].fieldId.value,H=L?document.getElementById(L):null;H&&dP(H,m({scrollMode:"if-needed",block:"nearest"},k))}},R=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(B===!0){const k=[];return Object.values(x).forEach(F=>{let{namePath:L}=F;k.push(L.value)}),Gx(e.model,k)}else return Gx(e.model,B)},z=(B,k)=>{if(!e.model)return Promise.reject("Form `model` is required for validateFields to work.");const F=!!B,L=F?xi(B).map(mm):[],H=[];Object.values(x).forEach(Q=>{var U;if(F||L.push(Q.namePath.value),!(!((U=Q.rules)===null||U===void 0)&&U.value.length))return;const ee=Q.namePath.value;if(!F||Xq(L,ee)){const X=Q.validateRules(m({validateMessages:h.value},k));H.push(X.then(()=>({name:ee,errors:[],warnings:[]})).catch(J=>{const Z=[],G=[];return J.forEach(q=>{let{rule:{warningOnly:V},errors:K}=q;V?G.push(...K):Z.push(...K)}),Z.length?Promise.reject({name:ee,errors:Z,warnings:G}):{name:ee,errors:Z,warnings:G}}))}});const j=N8(H);$.value=j;const Y=j.then(()=>$.value===j?Promise.resolve(R(L)):Promise.reject([])).catch(Q=>{const U=Q.filter(ee=>ee&&ee.errors.length);return Promise.reject({values:R(L),errorFields:U,outOfDate:$.value!==j})});return Y.catch(Q=>Q),Y},M=function(){return z(...arguments)},N=B=>{B.preventDefault(),B.stopPropagation(),n("submit",B),e.model&&z().then(F=>{n("finish",F)}).catch(F=>{_(F)})};return r({resetFields:I,clearValidate:T,validateFields:z,getFieldsValue:R,validate:E,scrollToField:A}),A8({model:P(()=>e.model),name:P(()=>e.name),labelAlign:P(()=>e.labelAlign),labelCol:P(()=>e.labelCol),labelWrap:P(()=>e.labelWrap),wrapperCol:P(()=>e.wrapperCol),vertical:P(()=>e.layout==="vertical"),colon:g,requiredMark:f,validateTrigger:P(()=>e.validateTrigger),rules:P(()=>e.rules),addField:C,removeField:O,onValidate:(B,k,F)=>{n("validate",B,k,F)},validateMessages:h}),ye(()=>e.rules,()=>{e.validateOnRuleChange&&z()}),()=>{var B;return b(p("form",D(D({},i),{},{onSubmit:N,class:[S.value,i.class]}),[(B=o.default)===null||B===void 0?void 0:B.call(o)]))}}});hi.useInjectFormItemContext=Qt;hi.ItemRest=ef;hi.install=function(e){return e.component(hi.name,hi),e.component(hi.Item.name,hi.Item),e.component(ef.name,ef),e};const OZ=new nt("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),PZ=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:m(m({},Ue(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:m(m({},Ue(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:m(m({},Ue(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:m({},Wr(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}:hover ${t}:after`]:{visibility:"visible"},[` ${n}:not(${n}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:OZ,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[` @@ -313,7 +313,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function ng(e,t){const n=ke(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[PZ(n)]}const B8=Ke("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[ng(n,e)]}),IZ=e=>{const{prefixCls:t,componentCls:n,antCls:o}=e,r=`${n}-menu-item`,i=` &${r}-expand ${r}-expand-icon, ${r}-loading-icon - `,l=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return[{[n]:{width:e.controlWidth}},{[`${n}-dropdown`]:[ng(`${t}-checkbox`,e),{[`&${o}-select-dropdown`]:{padding:0}},{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.paddingXXS,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},"&-item":m(m({},Gt),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:`${l}px ${e.paddingSM}px`,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[i]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive}},"&-content":{flex:"auto"},[i]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},{[`${n}-dropdown-rtl`]:{direction:"rtl"}},Xa(e)]},TZ=Ke("Cascader",e=>[IZ(e)],{controlWidth:184,controlItemWidth:111,dropdownHeight:180});var EZ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rs===0?[a]:[...l,t,a],[]),r=[];let i=0;return o.forEach((l,a)=>{const s=i+l.length;let u=e.slice(i,s);i=s,a%2===1&&(u=p("span",{class:`${n}-menu-item-keyword`,key:"seperator"},[u])),r.push(u)}),r}const _Z=e=>{let{inputValue:t,path:n,prefixCls:o,fieldNames:r}=e;const i=[],l=t.toLowerCase();return n.forEach((a,s)=>{s!==0&&i.push(" / ");let u=a[r.label];const c=typeof u;(c==="string"||c==="number")&&(u=MZ(String(u),l,o)),i.push(u)}),i};function AZ(){return m(m({},tt($8(),["customSlots","checkable","options"])),{multiple:{type:Boolean,default:void 0},size:String,bordered:{type:Boolean,default:void 0},placement:{type:String},suffixIcon:W.any,status:String,options:Array,popupClassName:String,dropdownClassName:String,"onUpdate:value":Function})}const RZ=oe({compatConfig:{MODE:3},name:"ACascader",inheritAttrs:!1,props:Ze(AZ(),{bordered:!0,choiceTransitionName:"",allowClear:!0}),setup(e,t){let{attrs:n,expose:o,slots:r,emit:i}=t;const l=Qt(),a=dn.useInject(),s=P(()=>Qo(a.status,e.status)),{prefixCls:u,rootPrefixCls:c,getPrefixCls:d,direction:f,getPopupContainer:g,renderEmpty:v,size:h,disabled:b}=Te("cascader",e),y=P(()=>d("select",e.prefixCls)),{compactSize:S,compactItemClassnames:$}=Ri(y,f),x=P(()=>S.value||h.value),C=Jn(),O=P(()=>{var k;return(k=b.value)!==null&&k!==void 0?k:C.value}),[w,I]=xb(y),[T]=TZ(u),M=P(()=>f.value==="rtl"),E=P(()=>{if(!e.showSearch)return e.showSearch;let k={render:_Z};return typeof e.showSearch=="object"&&(k=m(m({},k),e.showSearch)),k}),A=P(()=>le(e.popupClassName||e.dropdownClassName,`${u.value}-dropdown`,{[`${u.value}-dropdown-rtl`]:M.value},I.value)),R=re();o({focus(){var k;(k=R.value)===null||k===void 0||k.focus()},blur(){var k;(k=R.value)===null||k===void 0||k.blur()}});const z=function(){for(var k=arguments.length,F=new Array(k),L=0;Le.showArrow!==void 0?e.showArrow:e.loading||!e.multiple),B=P(()=>e.placement!==void 0?e.placement:f.value==="rtl"?"bottomRight":"bottomLeft");return()=>{var k,F;const{notFoundContent:L=(k=r.notFoundContent)===null||k===void 0?void 0:k.call(r),expandIcon:H=(F=r.expandIcon)===null||F===void 0?void 0:F.call(r),multiple:j,bordered:Y,allowClear:Q,choiceTransitionName:U,transitionName:ee,id:X=l.id.value}=e,J=EZ(e,["notFoundContent","expandIcon","multiple","bordered","allowClear","choiceTransitionName","transitionName","id"]),Z=L||v("Cascader");let G=H;H||(G=M.value?p(mr,null,null):p(ho,null,null));const q=p("span",{class:`${y.value}-menu-item-loading-icon`},[p(Wn,{spin:!0},null)]),{suffixIcon:V,removeIcon:K,clearIcon:te}=sb(m(m({},e),{hasFeedback:a.hasFeedback,feedbackIcon:a.feedbackIcon,multiple:j,prefixCls:y.value,showArrow:N.value}),r);return T(w(p(QY,D(D(D({},J),n),{},{id:X,prefixCls:y.value,class:[u.value,{[`${y.value}-lg`]:x.value==="large",[`${y.value}-sm`]:x.value==="small",[`${y.value}-rtl`]:M.value,[`${y.value}-borderless`]:!Y,[`${y.value}-in-form-item`]:a.isFormItemInput},Tn(y.value,s.value,a.hasFeedback),$.value,n.class,I.value],disabled:O.value,direction:f.value,placement:B.value,notFoundContent:Z,allowClear:Q,showSearch:E.value,expandIcon:G,inputIcon:V,removeIcon:K,clearIcon:te,loadingIcon:q,checkable:!!j,dropdownClassName:A.value,dropdownPrefixCls:u.value,choiceTransitionName:_n(c.value,"",U),transitionName:_n(c.value,Z0(B.value),ee),getPopupContainer:g?.value,customSlots:m(m({},r),{checkable:()=>p("span",{class:`${u.value}-checkbox-inner`},null)}),tagRender:e.tagRender||r.tagRender,displayRender:e.displayRender||r.displayRender,maxTagPlaceholder:e.maxTagPlaceholder||r.maxTagPlaceholder,showArrow:a.hasFeedback||e.showArrow,onChange:z,onBlur:_,ref:R}),r)))}}}),DZ=It(m(RZ,{SHOW_CHILD:d8,SHOW_PARENT:u8})),NZ=()=>({name:String,prefixCls:String,options:lt([]),disabled:Boolean,id:String}),BZ=()=>m(m({},NZ()),{defaultValue:lt(),value:lt(),onChange:ve(),"onUpdate:value":ve()}),kZ=()=>({prefixCls:String,defaultChecked:$e(),checked:$e(),disabled:$e(),isGroup:$e(),value:W.any,name:String,id:String,indeterminate:$e(),type:Ne("checkbox"),autofocus:$e(),onChange:ve(),"onUpdate:checked":ve(),onClick:ve(),skipGroup:$e(!1)}),FZ=()=>m(m({},kZ()),{indeterminate:$e(!1)}),k8=Symbol("CheckboxGroupContext");var Zx=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rv?.disabled.value||c.value);Le(()=>{!e.skipGroup&&v&&v.registerValue(h,e.value)}),Qe(()=>{v&&v.cancelValue(h)}),je(()=>{fo(!!(e.checked!==void 0||v||e.value===void 0))});const y=C=>{const O=C.target.checked;n("update:checked",O),n("change",C),l.onFieldChange()},S=re();return i({focus:()=>{var C;(C=S.value)===null||C===void 0||C.focus()},blur:()=>{var C;(C=S.value)===null||C===void 0||C.blur()}}),()=>{var C;const O=bt((C=r.default)===null||C===void 0?void 0:C.call(r)),{indeterminate:w,skipGroup:I,id:T=l.id.value}=e,M=Zx(e,["indeterminate","skipGroup","id"]),{onMouseenter:E,onMouseleave:A,onInput:R,class:z,style:_}=o,N=Zx(o,["onMouseenter","onMouseleave","onInput","class","style"]),B=m(m(m(m({},M),{id:T,prefixCls:s.value}),N),{disabled:b.value});v&&!I?(B.onChange=function(){for(var H=arguments.length,j=new Array(H),Y=0;Y`${a.value}-group`),[c,d]=B8(u),f=re((e.value===void 0?e.defaultValue:e.value)||[]);ye(()=>e.value,()=>{f.value=e.value||[]});const g=P(()=>e.options.map(x=>typeof x=="string"||typeof x=="number"?{label:x,value:x}:x)),v=re(Symbol()),h=re(new Map),b=x=>{h.value.delete(x),v.value=Symbol()},y=(x,C)=>{h.value.set(x,C),v.value=Symbol()},S=re(new Map);return ye(v,()=>{const x=new Map;for(const C of h.value.values())x.set(C,!0);S.value=x}),Xe(k8,{cancelValue:b,registerValue:y,toggleOption:x=>{const C=f.value.indexOf(x.value),O=[...f.value];C===-1?O.push(x.value):O.splice(C,1),e.value===void 0&&(f.value=O);const w=O.filter(I=>S.value.has(I)).sort((I,T)=>{const M=g.value.findIndex(A=>A.value===I),E=g.value.findIndex(A=>A.value===T);return M-E});r("update:value",w),r("change",w),l.onFieldChange()},mergedValue:f,name:P(()=>e.name),disabled:P(()=>e.disabled)}),i({mergedValue:f}),()=>{var x;const{id:C=l.id.value}=e;let O=null;return g.value&&g.value.length>0&&(O=g.value.map(w=>{var I;return p(To,{prefixCls:a.value,key:w.value.toString(),disabled:"disabled"in w?w.disabled:e.disabled,indeterminate:w.indeterminate,value:w.value,checked:f.value.indexOf(w.value)!==-1,onChange:w.onChange,class:`${u.value}-item`},{default:()=>[n.label!==void 0?(I=n.label)===null||I===void 0?void 0:I.call(n,w):w.label]})})),c(p("div",D(D({},o),{},{class:[u.value,{[`${u.value}-rtl`]:s.value==="rtl"},o.class,d.value],id:C}),[O||((x=n.default)===null||x===void 0?void 0:x.call(n))]))}}});To.Group=wf;To.install=function(e){return e.component(To.name,To),e.component(wf.name,wf),e};const LZ={useBreakpoint:Ua},zZ=It(tg),HZ=e=>{const{componentCls:t,commentBg:n,commentPaddingBase:o,commentNestIndent:r,commentFontSizeBase:i,commentFontSizeSm:l,commentAuthorNameColor:a,commentAuthorTimeColor:s,commentActionColor:u,commentActionHoverColor:c,commentActionsMarginBottom:d,commentActionsMarginTop:f,commentContentDetailPMarginBottom:g}=e;return{[t]:{position:"relative",backgroundColor:n,[`${t}-inner`]:{display:"flex",padding:o},[`${t}-avatar`]:{position:"relative",flexShrink:0,marginRight:e.marginSM,cursor:"pointer",img:{width:"32px",height:"32px",borderRadius:"50%"}},[`${t}-content`]:{position:"relative",flex:"1 1 auto",minWidth:"1px",fontSize:i,wordWrap:"break-word","&-author":{display:"flex",flexWrap:"wrap",justifyContent:"flex-start",marginBottom:e.marginXXS,fontSize:i,"& > a,& > span":{paddingRight:e.paddingXS,fontSize:l,lineHeight:"18px"},"&-name":{color:a,fontSize:i,transition:`color ${e.motionDurationSlow}`,"> *":{color:a,"&:hover":{color:a}}},"&-time":{color:s,whiteSpace:"nowrap",cursor:"auto"}},"&-detail p":{marginBottom:g,whiteSpace:"pre-wrap"}},[`${t}-actions`]:{marginTop:f,marginBottom:d,paddingLeft:0,"> li":{display:"inline-block",color:u,"> span":{marginRight:"10px",color:u,fontSize:l,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,userSelect:"none","&:hover":{color:c}}}},[`${t}-nested`]:{marginLeft:r},"&-rtl":{direction:"rtl"}}}},jZ=Ke("Comment",e=>{const t=ke(e,{commentBg:"inherit",commentPaddingBase:`${e.paddingMD}px 0`,commentNestIndent:"44px",commentFontSizeBase:e.fontSize,commentFontSizeSm:e.fontSizeSM,commentAuthorNameColor:e.colorTextTertiary,commentAuthorTimeColor:e.colorTextPlaceholder,commentActionColor:e.colorTextTertiary,commentActionHoverColor:e.colorTextSecondary,commentActionsMarginBottom:"inherit",commentActionsMarginTop:e.marginSM,commentContentDetailPMarginBottom:"inherit"});return[HZ(t)]}),VZ=()=>({actions:Array,author:W.any,avatar:W.any,content:W.any,prefixCls:String,datetime:W.any}),WZ=oe({compatConfig:{MODE:3},name:"AComment",inheritAttrs:!1,props:VZ(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Te("comment",e),[l,a]=jZ(r),s=(c,d)=>p("div",{class:`${c}-nested`},[d]),u=c=>!c||!c.length?null:c.map((f,g)=>p("li",{key:`action-${g}`},[f]));return()=>{var c,d,f,g,v,h,b,y,S,$,x;const C=r.value,O=(c=e.actions)!==null&&c!==void 0?c:(d=n.actions)===null||d===void 0?void 0:d.call(n),w=(f=e.author)!==null&&f!==void 0?f:(g=n.author)===null||g===void 0?void 0:g.call(n),I=(v=e.avatar)!==null&&v!==void 0?v:(h=n.avatar)===null||h===void 0?void 0:h.call(n),T=(b=e.content)!==null&&b!==void 0?b:(y=n.content)===null||y===void 0?void 0:y.call(n),M=(S=e.datetime)!==null&&S!==void 0?S:($=n.datetime)===null||$===void 0?void 0:$.call(n),E=p("div",{class:`${C}-avatar`},[typeof I=="string"?p("img",{src:I,alt:"comment-avatar"},null):I]),A=O?p("ul",{class:`${C}-actions`},[u(Array.isArray(O)?O:[O])]):null,R=p("div",{class:`${C}-content-author`},[w&&p("span",{class:`${C}-content-author-name`},[w]),M&&p("span",{class:`${C}-content-author-time`},[M])]),z=p("div",{class:`${C}-content`},[R,p("div",{class:`${C}-content-detail`},[T]),A]),_=p("div",{class:`${C}-inner`},[E,z]),N=bt((x=n.default)===null||x===void 0?void 0:x.call(n));return l(p("div",D(D({},o),{},{class:[C,{[`${C}-rtl`]:i.value==="rtl"},o.class,a.value]}),[_,N&&N.length?s(C,N):null]))}}}),KZ=It(WZ);let id=m({},Vn.Modal);function GZ(e){e?id=m(m({},id),e):id=m({},Vn.Modal)}function XZ(){return id}const ym="internalMark",ld=oe({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(e,t){let{slots:n}=t;fo(e.ANT_MARK__===ym);const o=ct({antLocale:m(m({},e.locale),{exist:!0}),ANT_MARK__:ym});return Xe("localeData",o),ye(()=>e.locale,r=>{GZ(r&&r.Modal),o.antLocale=m(m({},r),{exist:!0})},{immediate:!0}),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});ld.install=function(e){return e.component(ld.name,ld),e};const F8=It(ld),L8=oe({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(e,t){let{attrs:n,slots:o}=t,r,i=!1;const l=P(()=>e.duration===void 0?4.5:e.duration),a=()=>{l.value&&!i&&(r=setTimeout(()=>{u()},l.value*1e3))},s=()=>{r&&(clearTimeout(r),r=null)},u=d=>{d&&d.stopPropagation(),s();const{onClose:f,noticeKey:g}=e;f&&f(g)},c=()=>{s(),a()};return je(()=>{a()}),$n(()=>{i=!0,s()}),ye([l,()=>e.updateMark,()=>e.visible],(d,f)=>{let[g,v,h]=d,[b,y,S]=f;(g!==b||v!==y||h!==S&&S)&&c()},{flush:"post"}),()=>{var d,f;const{prefixCls:g,closable:v,closeIcon:h=(d=o.closeIcon)===null||d===void 0?void 0:d.call(o),onClick:b,holder:y}=e,{class:S,style:$}=n,x=`${g}-notice`,C=Object.keys(n).reduce((w,I)=>((I.startsWith("data-")||I.startsWith("aria-")||I==="role")&&(w[I]=n[I]),w),{}),O=p("div",D({class:le(x,S,{[`${x}-closable`]:v}),style:$,onMouseenter:s,onMouseleave:a,onClick:b},C),[p("div",{class:`${x}-content`},[(f=o.default)===null||f===void 0?void 0:f.call(o)]),v?p("a",{tabindex:0,onClick:u,class:`${x}-close`},[h||p("span",{class:`${x}-close-x`},null)]):null]);return y?p(c0,{to:y},{default:()=>O}):O}}});var UZ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{prefixCls:c,animation:d="fade"}=e;let f=e.transitionName;return!f&&d&&(f=`${c}-${d}`),xp(f)}),s=(c,d)=>{const f=c.key||Jx(),g=m(m({},c),{key:f}),{maxCount:v}=e,h=l.value.map(y=>y.notice.key).indexOf(f),b=l.value.concat();h!==-1?b.splice(h,1,{notice:g,holderCallback:d}):(v&&l.value.length>=v&&(g.key=b[0].notice.key,g.updateMark=Jx(),g.userPassKey=f,b.shift()),b.push({notice:g,holderCallback:d})),l.value=b},u=c=>{l.value=Je(l.value).filter(d=>{let{notice:{key:f,userPassKey:g}}=d;return(g||f)!==c})};return o({add:s,remove:u,notices:l}),()=>{var c;const{prefixCls:d,closeIcon:f=(c=r.closeIcon)===null||c===void 0?void 0:c.call(r,{prefixCls:d})}=e,g=l.value.map((h,b)=>{let{notice:y,holderCallback:S}=h;const $=b===l.value.length-1?y.updateMark:void 0,{key:x,userPassKey:C}=y,{content:O}=y,w=m(m(m({prefixCls:d,closeIcon:typeof f=="function"?f({prefixCls:d}):f},y),y.props),{key:x,noticeKey:C||x,updateMark:$,onClose:I=>{var T;u(I),(T=y.onClose)===null||T===void 0||T.call(y)},onClick:y.onClick});return S?p("div",{key:x,class:`${d}-hook-holder`,ref:I=>{typeof x>"u"||(I?(i.set(x,I),S(I,w)):i.delete(x))}},null):p(L8,D(D({},w),{},{class:le(w.class,e.hashId)}),{default:()=>[typeof O=="function"?O({prefixCls:d}):O]})}),v={[d]:1,[n.class]:!!n.class,[e.hashId]:!0};return p("div",{class:v,style:n.style||{top:"65px",left:"50%"}},[p(op,D({tag:"div"},a.value),{default:()=>[g]})])}}});Of.newInstance=function(t,n){const o=t||{},{name:r="notification",getContainer:i,appContext:l,prefixCls:a,rootPrefixCls:s,transitionName:u,hasTransitionName:c,useStyle:d}=o,f=UZ(o,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),g=document.createElement("div");i?i().appendChild(g):document.body.appendChild(g);const h=p(oe({compatConfig:{MODE:3},name:"NotificationWrapper",setup(b,y){let{attrs:S}=y;const $=ne(),x=P(()=>vn.getPrefixCls(r,a)),[,C]=d(x);return je(()=>{n({notice(O){var w;(w=$.value)===null||w===void 0||w.add(O)},removeNotice(O){var w;(w=$.value)===null||w===void 0||w.remove(O)},destroy(){Oi(null,g),g.parentNode&&g.parentNode.removeChild(g)},component:$})}),()=>{const O=vn,w=O.getRootPrefixCls(s,x.value),I=c?u:`${x.value}-${u}`;return p(gl,D(D({},O),{},{prefixCls:w}),{default:()=>[p(Of,D(D({ref:$},S),{},{prefixCls:x.value,transitionName:I,hashId:C.value}),null)]})}}}),f);h.appContext=l||h.appContext,Oi(h,g)};let ew=0;const qZ=Date.now();function tw(){const e=ew;return ew+=1,`rcNotification_${qZ}_${e}`}const ZZ=oe({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(e,t){let{attrs:n,slots:o}=t;const r=new Map,i=P(()=>e.notices),l=P(()=>{let c=e.transitionName;if(!c&&e.animation)switch(typeof e.animation){case"string":c=e.animation;break;case"function":c=e.animation().name;break;case"object":c=e.animation.name;break;default:c=`${e.prefixCls}-fade`;break}return xp(c)}),a=c=>e.remove(c),s=re({});ye(i,()=>{const c={};Object.keys(s.value).forEach(d=>{c[d]=[]}),e.notices.forEach(d=>{const{placement:f="topRight"}=d.notice;f&&(c[f]=c[f]||[],c[f].push(d))}),s.value=c});const u=P(()=>Object.keys(s.value));return()=>{var c;const{prefixCls:d,closeIcon:f=(c=o.closeIcon)===null||c===void 0?void 0:c.call(o,{prefixCls:d})}=e,g=u.value.map(v=>{var h,b;const y=s.value[v],S=(h=e.getClassName)===null||h===void 0?void 0:h.call(e,v),$=(b=e.getStyles)===null||b===void 0?void 0:b.call(e,v),x=y.map((w,I)=>{let{notice:T,holderCallback:M}=w;const E=I===i.value.length-1?T.updateMark:void 0,{key:A,userPassKey:R}=T,{content:z}=T,_=m(m(m({prefixCls:d,closeIcon:typeof f=="function"?f({prefixCls:d}):f},T),T.props),{key:A,noticeKey:R||A,updateMark:E,onClose:N=>{var B;a(N),(B=T.onClose)===null||B===void 0||B.call(T)},onClick:T.onClick});return M?p("div",{key:A,class:`${d}-hook-holder`,ref:N=>{typeof A>"u"||(N?(r.set(A,N),M(N,_)):r.delete(A))}},null):p(L8,D(D({},_),{},{class:le(_.class,e.hashId)}),{default:()=>[typeof z=="function"?z({prefixCls:d}):z]})}),C={[d]:1,[`${d}-${v}`]:1,[n.class]:!!n.class,[e.hashId]:!0,[S]:!!S};function O(){var w;y.length>0||(Reflect.deleteProperty(s.value,v),(w=e.onAllRemoved)===null||w===void 0||w.call(e))}return p("div",{key:v,class:C,style:n.style||$||{top:"65px",left:"50%"}},[p(op,D(D({tag:"div"},l.value),{},{onAfterLeave:O}),{default:()=>[x]})])});return p(UP,{getContainer:e.getContainer},{default:()=>[g]})}}});var QZ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rdocument.body;let nw=0;function eQ(){const e={};for(var t=arguments.length,n=new Array(t),o=0;o{r&&Object.keys(r).forEach(i=>{const l=r[i];l!==void 0&&(e[i]=l)})}),e}function z8(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{getContainer:t=JZ,motion:n,prefixCls:o,maxCount:r,getClassName:i,getStyles:l,onAllRemoved:a}=e,s=QZ(e,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),u=ne([]),c=ne(),d=(y,S)=>{const $=y.key||tw(),x=m(m({},y),{key:$}),C=u.value.map(w=>w.notice.key).indexOf($),O=u.value.concat();C!==-1?O.splice(C,1,{notice:x,holderCallback:S}):(r&&u.value.length>=r&&(x.key=O[0].notice.key,x.updateMark=tw(),x.userPassKey=$,O.shift()),O.push({notice:x,holderCallback:S})),u.value=O},f=y=>{u.value=u.value.filter(S=>{let{notice:{key:$,userPassKey:x}}=S;return(x||$)!==y})},g=()=>{u.value=[]},v=()=>p(ZZ,{ref:c,prefixCls:o,maxCount:r,notices:u.value,remove:f,getClassName:i,getStyles:l,animation:n,hashId:e.hashId,onAllRemoved:a,getContainer:t},null),h=ne([]),b={open:y=>{const S=eQ(s,y);(S.key===null||S.key===void 0)&&(S.key=`vc-notification-${nw}`,nw+=1),h.value=[...h.value,{type:"open",config:S}]},close:y=>{h.value=[...h.value,{type:"close",key:y}]},destroy:()=>{h.value=[...h.value,{type:"destroy"}]}};return ye(h,()=>{h.value.length&&(h.value.forEach(y=>{switch(y.type){case"open":d(y.config);break;case"close":f(y.key);break;case"destroy":g();break}}),h.value=[])}),[b,v]}const tQ=e=>{const{componentCls:t,iconCls:n,boxShadowSecondary:o,colorBgElevated:r,colorSuccess:i,colorError:l,colorWarning:a,colorInfo:s,fontSizeLG:u,motionEaseInOutCirc:c,motionDurationSlow:d,marginXS:f,paddingXS:g,borderRadiusLG:v,zIndexPopup:h,messageNoticeContentPadding:b}=e,y=new nt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),S=new nt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:m(m({},Ue(e)),{position:"fixed",top:f,left:"50%",transform:"translateX(-50%)",width:"100%",pointerEvents:"none",zIndex:h,[`${t}-move-up`]:{animationFillMode:"forwards"},[` + `,l=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return[{[n]:{width:e.controlWidth}},{[`${n}-dropdown`]:[ng(`${t}-checkbox`,e),{[`&${o}-select-dropdown`]:{padding:0}},{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:"100%",height:"auto",[r]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.paddingXXS,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},"&-item":m(m({},Gt),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:`${l}px ${e.paddingSM}px`,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[i]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive}},"&-content":{flex:"auto"},[i]:{marginInlineStart:e.paddingXXS,color:e.colorTextDescription,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},{[`${n}-dropdown-rtl`]:{direction:"rtl"}},Xa(e)]},TZ=Ke("Cascader",e=>[IZ(e)],{controlWidth:184,controlItemWidth:111,dropdownHeight:180});var EZ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rs===0?[a]:[...l,t,a],[]),r=[];let i=0;return o.forEach((l,a)=>{const s=i+l.length;let u=e.slice(i,s);i=s,a%2===1&&(u=p("span",{class:`${n}-menu-item-keyword`,key:"seperator"},[u])),r.push(u)}),r}const _Z=e=>{let{inputValue:t,path:n,prefixCls:o,fieldNames:r}=e;const i=[],l=t.toLowerCase();return n.forEach((a,s)=>{s!==0&&i.push(" / ");let u=a[r.label];const c=typeof u;(c==="string"||c==="number")&&(u=MZ(String(u),l,o)),i.push(u)}),i};function AZ(){return m(m({},tt($8(),["customSlots","checkable","options"])),{multiple:{type:Boolean,default:void 0},size:String,bordered:{type:Boolean,default:void 0},placement:{type:String},suffixIcon:W.any,status:String,options:Array,popupClassName:String,dropdownClassName:String,"onUpdate:value":Function})}const RZ=oe({compatConfig:{MODE:3},name:"ACascader",inheritAttrs:!1,props:Ze(AZ(),{bordered:!0,choiceTransitionName:"",allowClear:!0}),setup(e,t){let{attrs:n,expose:o,slots:r,emit:i}=t;const l=Qt(),a=dn.useInject(),s=P(()=>Qo(a.status,e.status)),{prefixCls:u,rootPrefixCls:c,getPrefixCls:d,direction:f,getPopupContainer:g,renderEmpty:v,size:h,disabled:b}=Te("cascader",e),y=P(()=>d("select",e.prefixCls)),{compactSize:S,compactItemClassnames:$}=Ri(y,f),x=P(()=>S.value||h.value),C=Jn(),O=P(()=>{var k;return(k=b.value)!==null&&k!==void 0?k:C.value}),[w,I]=xb(y),[T]=TZ(u),_=P(()=>f.value==="rtl"),E=P(()=>{if(!e.showSearch)return e.showSearch;let k={render:_Z};return typeof e.showSearch=="object"&&(k=m(m({},k),e.showSearch)),k}),A=P(()=>le(e.popupClassName||e.dropdownClassName,`${u.value}-dropdown`,{[`${u.value}-dropdown-rtl`]:_.value},I.value)),R=re();o({focus(){var k;(k=R.value)===null||k===void 0||k.focus()},blur(){var k;(k=R.value)===null||k===void 0||k.blur()}});const z=function(){for(var k=arguments.length,F=new Array(k),L=0;Le.showArrow!==void 0?e.showArrow:e.loading||!e.multiple),B=P(()=>e.placement!==void 0?e.placement:f.value==="rtl"?"bottomRight":"bottomLeft");return()=>{var k,F;const{notFoundContent:L=(k=r.notFoundContent)===null||k===void 0?void 0:k.call(r),expandIcon:H=(F=r.expandIcon)===null||F===void 0?void 0:F.call(r),multiple:j,bordered:Y,allowClear:Q,choiceTransitionName:U,transitionName:ee,id:X=l.id.value}=e,J=EZ(e,["notFoundContent","expandIcon","multiple","bordered","allowClear","choiceTransitionName","transitionName","id"]),Z=L||v("Cascader");let G=H;H||(G=_.value?p(mr,null,null):p(ho,null,null));const q=p("span",{class:`${y.value}-menu-item-loading-icon`},[p(Wn,{spin:!0},null)]),{suffixIcon:V,removeIcon:K,clearIcon:te}=sb(m(m({},e),{hasFeedback:a.hasFeedback,feedbackIcon:a.feedbackIcon,multiple:j,prefixCls:y.value,showArrow:N.value}),r);return T(w(p(QY,D(D(D({},J),n),{},{id:X,prefixCls:y.value,class:[u.value,{[`${y.value}-lg`]:x.value==="large",[`${y.value}-sm`]:x.value==="small",[`${y.value}-rtl`]:_.value,[`${y.value}-borderless`]:!Y,[`${y.value}-in-form-item`]:a.isFormItemInput},Tn(y.value,s.value,a.hasFeedback),$.value,n.class,I.value],disabled:O.value,direction:f.value,placement:B.value,notFoundContent:Z,allowClear:Q,showSearch:E.value,expandIcon:G,inputIcon:V,removeIcon:K,clearIcon:te,loadingIcon:q,checkable:!!j,dropdownClassName:A.value,dropdownPrefixCls:u.value,choiceTransitionName:_n(c.value,"",U),transitionName:_n(c.value,Z0(B.value),ee),getPopupContainer:g?.value,customSlots:m(m({},r),{checkable:()=>p("span",{class:`${u.value}-checkbox-inner`},null)}),tagRender:e.tagRender||r.tagRender,displayRender:e.displayRender||r.displayRender,maxTagPlaceholder:e.maxTagPlaceholder||r.maxTagPlaceholder,showArrow:a.hasFeedback||e.showArrow,onChange:z,onBlur:M,ref:R}),r)))}}}),DZ=It(m(RZ,{SHOW_CHILD:d8,SHOW_PARENT:u8})),NZ=()=>({name:String,prefixCls:String,options:lt([]),disabled:Boolean,id:String}),BZ=()=>m(m({},NZ()),{defaultValue:lt(),value:lt(),onChange:ve(),"onUpdate:value":ve()}),kZ=()=>({prefixCls:String,defaultChecked:$e(),checked:$e(),disabled:$e(),isGroup:$e(),value:W.any,name:String,id:String,indeterminate:$e(),type:Ne("checkbox"),autofocus:$e(),onChange:ve(),"onUpdate:checked":ve(),onClick:ve(),skipGroup:$e(!1)}),FZ=()=>m(m({},kZ()),{indeterminate:$e(!1)}),k8=Symbol("CheckboxGroupContext");var Zx=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rv?.disabled.value||c.value);Le(()=>{!e.skipGroup&&v&&v.registerValue(h,e.value)}),Qe(()=>{v&&v.cancelValue(h)}),je(()=>{fo(!!(e.checked!==void 0||v||e.value===void 0))});const y=C=>{const O=C.target.checked;n("update:checked",O),n("change",C),l.onFieldChange()},S=re();return i({focus:()=>{var C;(C=S.value)===null||C===void 0||C.focus()},blur:()=>{var C;(C=S.value)===null||C===void 0||C.blur()}}),()=>{var C;const O=bt((C=r.default)===null||C===void 0?void 0:C.call(r)),{indeterminate:w,skipGroup:I,id:T=l.id.value}=e,_=Zx(e,["indeterminate","skipGroup","id"]),{onMouseenter:E,onMouseleave:A,onInput:R,class:z,style:M}=o,N=Zx(o,["onMouseenter","onMouseleave","onInput","class","style"]),B=m(m(m(m({},_),{id:T,prefixCls:s.value}),N),{disabled:b.value});v&&!I?(B.onChange=function(){for(var H=arguments.length,j=new Array(H),Y=0;Y`${a.value}-group`),[c,d]=B8(u),f=re((e.value===void 0?e.defaultValue:e.value)||[]);ye(()=>e.value,()=>{f.value=e.value||[]});const g=P(()=>e.options.map(x=>typeof x=="string"||typeof x=="number"?{label:x,value:x}:x)),v=re(Symbol()),h=re(new Map),b=x=>{h.value.delete(x),v.value=Symbol()},y=(x,C)=>{h.value.set(x,C),v.value=Symbol()},S=re(new Map);return ye(v,()=>{const x=new Map;for(const C of h.value.values())x.set(C,!0);S.value=x}),Xe(k8,{cancelValue:b,registerValue:y,toggleOption:x=>{const C=f.value.indexOf(x.value),O=[...f.value];C===-1?O.push(x.value):O.splice(C,1),e.value===void 0&&(f.value=O);const w=O.filter(I=>S.value.has(I)).sort((I,T)=>{const _=g.value.findIndex(A=>A.value===I),E=g.value.findIndex(A=>A.value===T);return _-E});r("update:value",w),r("change",w),l.onFieldChange()},mergedValue:f,name:P(()=>e.name),disabled:P(()=>e.disabled)}),i({mergedValue:f}),()=>{var x;const{id:C=l.id.value}=e;let O=null;return g.value&&g.value.length>0&&(O=g.value.map(w=>{var I;return p(To,{prefixCls:a.value,key:w.value.toString(),disabled:"disabled"in w?w.disabled:e.disabled,indeterminate:w.indeterminate,value:w.value,checked:f.value.indexOf(w.value)!==-1,onChange:w.onChange,class:`${u.value}-item`},{default:()=>[n.label!==void 0?(I=n.label)===null||I===void 0?void 0:I.call(n,w):w.label]})})),c(p("div",D(D({},o),{},{class:[u.value,{[`${u.value}-rtl`]:s.value==="rtl"},o.class,d.value],id:C}),[O||((x=n.default)===null||x===void 0?void 0:x.call(n))]))}}});To.Group=wf;To.install=function(e){return e.component(To.name,To),e.component(wf.name,wf),e};const LZ={useBreakpoint:Ua},zZ=It(tg),HZ=e=>{const{componentCls:t,commentBg:n,commentPaddingBase:o,commentNestIndent:r,commentFontSizeBase:i,commentFontSizeSm:l,commentAuthorNameColor:a,commentAuthorTimeColor:s,commentActionColor:u,commentActionHoverColor:c,commentActionsMarginBottom:d,commentActionsMarginTop:f,commentContentDetailPMarginBottom:g}=e;return{[t]:{position:"relative",backgroundColor:n,[`${t}-inner`]:{display:"flex",padding:o},[`${t}-avatar`]:{position:"relative",flexShrink:0,marginRight:e.marginSM,cursor:"pointer",img:{width:"32px",height:"32px",borderRadius:"50%"}},[`${t}-content`]:{position:"relative",flex:"1 1 auto",minWidth:"1px",fontSize:i,wordWrap:"break-word","&-author":{display:"flex",flexWrap:"wrap",justifyContent:"flex-start",marginBottom:e.marginXXS,fontSize:i,"& > a,& > span":{paddingRight:e.paddingXS,fontSize:l,lineHeight:"18px"},"&-name":{color:a,fontSize:i,transition:`color ${e.motionDurationSlow}`,"> *":{color:a,"&:hover":{color:a}}},"&-time":{color:s,whiteSpace:"nowrap",cursor:"auto"}},"&-detail p":{marginBottom:g,whiteSpace:"pre-wrap"}},[`${t}-actions`]:{marginTop:f,marginBottom:d,paddingLeft:0,"> li":{display:"inline-block",color:u,"> span":{marginRight:"10px",color:u,fontSize:l,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,userSelect:"none","&:hover":{color:c}}}},[`${t}-nested`]:{marginLeft:r},"&-rtl":{direction:"rtl"}}}},jZ=Ke("Comment",e=>{const t=ke(e,{commentBg:"inherit",commentPaddingBase:`${e.paddingMD}px 0`,commentNestIndent:"44px",commentFontSizeBase:e.fontSize,commentFontSizeSm:e.fontSizeSM,commentAuthorNameColor:e.colorTextTertiary,commentAuthorTimeColor:e.colorTextPlaceholder,commentActionColor:e.colorTextTertiary,commentActionHoverColor:e.colorTextSecondary,commentActionsMarginBottom:"inherit",commentActionsMarginTop:e.marginSM,commentContentDetailPMarginBottom:"inherit"});return[HZ(t)]}),VZ=()=>({actions:Array,author:W.any,avatar:W.any,content:W.any,prefixCls:String,datetime:W.any}),WZ=oe({compatConfig:{MODE:3},name:"AComment",inheritAttrs:!1,props:VZ(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Te("comment",e),[l,a]=jZ(r),s=(c,d)=>p("div",{class:`${c}-nested`},[d]),u=c=>!c||!c.length?null:c.map((f,g)=>p("li",{key:`action-${g}`},[f]));return()=>{var c,d,f,g,v,h,b,y,S,$,x;const C=r.value,O=(c=e.actions)!==null&&c!==void 0?c:(d=n.actions)===null||d===void 0?void 0:d.call(n),w=(f=e.author)!==null&&f!==void 0?f:(g=n.author)===null||g===void 0?void 0:g.call(n),I=(v=e.avatar)!==null&&v!==void 0?v:(h=n.avatar)===null||h===void 0?void 0:h.call(n),T=(b=e.content)!==null&&b!==void 0?b:(y=n.content)===null||y===void 0?void 0:y.call(n),_=(S=e.datetime)!==null&&S!==void 0?S:($=n.datetime)===null||$===void 0?void 0:$.call(n),E=p("div",{class:`${C}-avatar`},[typeof I=="string"?p("img",{src:I,alt:"comment-avatar"},null):I]),A=O?p("ul",{class:`${C}-actions`},[u(Array.isArray(O)?O:[O])]):null,R=p("div",{class:`${C}-content-author`},[w&&p("span",{class:`${C}-content-author-name`},[w]),_&&p("span",{class:`${C}-content-author-time`},[_])]),z=p("div",{class:`${C}-content`},[R,p("div",{class:`${C}-content-detail`},[T]),A]),M=p("div",{class:`${C}-inner`},[E,z]),N=bt((x=n.default)===null||x===void 0?void 0:x.call(n));return l(p("div",D(D({},o),{},{class:[C,{[`${C}-rtl`]:i.value==="rtl"},o.class,a.value]}),[M,N&&N.length?s(C,N):null]))}}}),KZ=It(WZ);let id=m({},Vn.Modal);function GZ(e){e?id=m(m({},id),e):id=m({},Vn.Modal)}function XZ(){return id}const ym="internalMark",ld=oe({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(e,t){let{slots:n}=t;fo(e.ANT_MARK__===ym);const o=ct({antLocale:m(m({},e.locale),{exist:!0}),ANT_MARK__:ym});return Xe("localeData",o),ye(()=>e.locale,r=>{GZ(r&&r.Modal),o.antLocale=m(m({},r),{exist:!0})},{immediate:!0}),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});ld.install=function(e){return e.component(ld.name,ld),e};const F8=It(ld),L8=oe({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(e,t){let{attrs:n,slots:o}=t,r,i=!1;const l=P(()=>e.duration===void 0?4.5:e.duration),a=()=>{l.value&&!i&&(r=setTimeout(()=>{u()},l.value*1e3))},s=()=>{r&&(clearTimeout(r),r=null)},u=d=>{d&&d.stopPropagation(),s();const{onClose:f,noticeKey:g}=e;f&&f(g)},c=()=>{s(),a()};return je(()=>{a()}),$n(()=>{i=!0,s()}),ye([l,()=>e.updateMark,()=>e.visible],(d,f)=>{let[g,v,h]=d,[b,y,S]=f;(g!==b||v!==y||h!==S&&S)&&c()},{flush:"post"}),()=>{var d,f;const{prefixCls:g,closable:v,closeIcon:h=(d=o.closeIcon)===null||d===void 0?void 0:d.call(o),onClick:b,holder:y}=e,{class:S,style:$}=n,x=`${g}-notice`,C=Object.keys(n).reduce((w,I)=>((I.startsWith("data-")||I.startsWith("aria-")||I==="role")&&(w[I]=n[I]),w),{}),O=p("div",D({class:le(x,S,{[`${x}-closable`]:v}),style:$,onMouseenter:s,onMouseleave:a,onClick:b},C),[p("div",{class:`${x}-content`},[(f=o.default)===null||f===void 0?void 0:f.call(o)]),v?p("a",{tabindex:0,onClick:u,class:`${x}-close`},[h||p("span",{class:`${x}-close-x`},null)]):null]);return y?p(c0,{to:y},{default:()=>O}):O}}});var UZ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{prefixCls:c,animation:d="fade"}=e;let f=e.transitionName;return!f&&d&&(f=`${c}-${d}`),xp(f)}),s=(c,d)=>{const f=c.key||Jx(),g=m(m({},c),{key:f}),{maxCount:v}=e,h=l.value.map(y=>y.notice.key).indexOf(f),b=l.value.concat();h!==-1?b.splice(h,1,{notice:g,holderCallback:d}):(v&&l.value.length>=v&&(g.key=b[0].notice.key,g.updateMark=Jx(),g.userPassKey=f,b.shift()),b.push({notice:g,holderCallback:d})),l.value=b},u=c=>{l.value=Je(l.value).filter(d=>{let{notice:{key:f,userPassKey:g}}=d;return(g||f)!==c})};return o({add:s,remove:u,notices:l}),()=>{var c;const{prefixCls:d,closeIcon:f=(c=r.closeIcon)===null||c===void 0?void 0:c.call(r,{prefixCls:d})}=e,g=l.value.map((h,b)=>{let{notice:y,holderCallback:S}=h;const $=b===l.value.length-1?y.updateMark:void 0,{key:x,userPassKey:C}=y,{content:O}=y,w=m(m(m({prefixCls:d,closeIcon:typeof f=="function"?f({prefixCls:d}):f},y),y.props),{key:x,noticeKey:C||x,updateMark:$,onClose:I=>{var T;u(I),(T=y.onClose)===null||T===void 0||T.call(y)},onClick:y.onClick});return S?p("div",{key:x,class:`${d}-hook-holder`,ref:I=>{typeof x>"u"||(I?(i.set(x,I),S(I,w)):i.delete(x))}},null):p(L8,D(D({},w),{},{class:le(w.class,e.hashId)}),{default:()=>[typeof O=="function"?O({prefixCls:d}):O]})}),v={[d]:1,[n.class]:!!n.class,[e.hashId]:!0};return p("div",{class:v,style:n.style||{top:"65px",left:"50%"}},[p(op,D({tag:"div"},a.value),{default:()=>[g]})])}}});Of.newInstance=function(t,n){const o=t||{},{name:r="notification",getContainer:i,appContext:l,prefixCls:a,rootPrefixCls:s,transitionName:u,hasTransitionName:c,useStyle:d}=o,f=UZ(o,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),g=document.createElement("div");i?i().appendChild(g):document.body.appendChild(g);const h=p(oe({compatConfig:{MODE:3},name:"NotificationWrapper",setup(b,y){let{attrs:S}=y;const $=ne(),x=P(()=>vn.getPrefixCls(r,a)),[,C]=d(x);return je(()=>{n({notice(O){var w;(w=$.value)===null||w===void 0||w.add(O)},removeNotice(O){var w;(w=$.value)===null||w===void 0||w.remove(O)},destroy(){Oi(null,g),g.parentNode&&g.parentNode.removeChild(g)},component:$})}),()=>{const O=vn,w=O.getRootPrefixCls(s,x.value),I=c?u:`${x.value}-${u}`;return p(gl,D(D({},O),{},{prefixCls:w}),{default:()=>[p(Of,D(D({ref:$},S),{},{prefixCls:x.value,transitionName:I,hashId:C.value}),null)]})}}}),f);h.appContext=l||h.appContext,Oi(h,g)};let ew=0;const qZ=Date.now();function tw(){const e=ew;return ew+=1,`rcNotification_${qZ}_${e}`}const ZZ=oe({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(e,t){let{attrs:n,slots:o}=t;const r=new Map,i=P(()=>e.notices),l=P(()=>{let c=e.transitionName;if(!c&&e.animation)switch(typeof e.animation){case"string":c=e.animation;break;case"function":c=e.animation().name;break;case"object":c=e.animation.name;break;default:c=`${e.prefixCls}-fade`;break}return xp(c)}),a=c=>e.remove(c),s=re({});ye(i,()=>{const c={};Object.keys(s.value).forEach(d=>{c[d]=[]}),e.notices.forEach(d=>{const{placement:f="topRight"}=d.notice;f&&(c[f]=c[f]||[],c[f].push(d))}),s.value=c});const u=P(()=>Object.keys(s.value));return()=>{var c;const{prefixCls:d,closeIcon:f=(c=o.closeIcon)===null||c===void 0?void 0:c.call(o,{prefixCls:d})}=e,g=u.value.map(v=>{var h,b;const y=s.value[v],S=(h=e.getClassName)===null||h===void 0?void 0:h.call(e,v),$=(b=e.getStyles)===null||b===void 0?void 0:b.call(e,v),x=y.map((w,I)=>{let{notice:T,holderCallback:_}=w;const E=I===i.value.length-1?T.updateMark:void 0,{key:A,userPassKey:R}=T,{content:z}=T,M=m(m(m({prefixCls:d,closeIcon:typeof f=="function"?f({prefixCls:d}):f},T),T.props),{key:A,noticeKey:R||A,updateMark:E,onClose:N=>{var B;a(N),(B=T.onClose)===null||B===void 0||B.call(T)},onClick:T.onClick});return _?p("div",{key:A,class:`${d}-hook-holder`,ref:N=>{typeof A>"u"||(N?(r.set(A,N),_(N,M)):r.delete(A))}},null):p(L8,D(D({},M),{},{class:le(M.class,e.hashId)}),{default:()=>[typeof z=="function"?z({prefixCls:d}):z]})}),C={[d]:1,[`${d}-${v}`]:1,[n.class]:!!n.class,[e.hashId]:!0,[S]:!!S};function O(){var w;y.length>0||(Reflect.deleteProperty(s.value,v),(w=e.onAllRemoved)===null||w===void 0||w.call(e))}return p("div",{key:v,class:C,style:n.style||$||{top:"65px",left:"50%"}},[p(op,D(D({tag:"div"},l.value),{},{onAfterLeave:O}),{default:()=>[x]})])});return p(UP,{getContainer:e.getContainer},{default:()=>[g]})}}});var QZ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rdocument.body;let nw=0;function eQ(){const e={};for(var t=arguments.length,n=new Array(t),o=0;o{r&&Object.keys(r).forEach(i=>{const l=r[i];l!==void 0&&(e[i]=l)})}),e}function z8(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{getContainer:t=JZ,motion:n,prefixCls:o,maxCount:r,getClassName:i,getStyles:l,onAllRemoved:a}=e,s=QZ(e,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),u=ne([]),c=ne(),d=(y,S)=>{const $=y.key||tw(),x=m(m({},y),{key:$}),C=u.value.map(w=>w.notice.key).indexOf($),O=u.value.concat();C!==-1?O.splice(C,1,{notice:x,holderCallback:S}):(r&&u.value.length>=r&&(x.key=O[0].notice.key,x.updateMark=tw(),x.userPassKey=$,O.shift()),O.push({notice:x,holderCallback:S})),u.value=O},f=y=>{u.value=u.value.filter(S=>{let{notice:{key:$,userPassKey:x}}=S;return(x||$)!==y})},g=()=>{u.value=[]},v=()=>p(ZZ,{ref:c,prefixCls:o,maxCount:r,notices:u.value,remove:f,getClassName:i,getStyles:l,animation:n,hashId:e.hashId,onAllRemoved:a,getContainer:t},null),h=ne([]),b={open:y=>{const S=eQ(s,y);(S.key===null||S.key===void 0)&&(S.key=`vc-notification-${nw}`,nw+=1),h.value=[...h.value,{type:"open",config:S}]},close:y=>{h.value=[...h.value,{type:"close",key:y}]},destroy:()=>{h.value=[...h.value,{type:"destroy"}]}};return ye(h,()=>{h.value.length&&(h.value.forEach(y=>{switch(y.type){case"open":d(y.config);break;case"close":f(y.key);break;case"destroy":g();break}}),h.value=[])}),[b,v]}const tQ=e=>{const{componentCls:t,iconCls:n,boxShadowSecondary:o,colorBgElevated:r,colorSuccess:i,colorError:l,colorWarning:a,colorInfo:s,fontSizeLG:u,motionEaseInOutCirc:c,motionDurationSlow:d,marginXS:f,paddingXS:g,borderRadiusLG:v,zIndexPopup:h,messageNoticeContentPadding:b}=e,y=new nt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:g,transform:"translateY(0)",opacity:1}}),S=new nt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:g,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:m(m({},Ue(e)),{position:"fixed",top:f,left:"50%",transform:"translateX(-50%)",width:"100%",pointerEvents:"none",zIndex:h,[`${t}-move-up`]:{animationFillMode:"forwards"},[` ${t}-move-up-appear, ${t}-move-up-enter `]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:c},[` @@ -326,10 +326,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ${Object.keys(n).map(l=>`--${e}-${l}: ${n[l]};`).join(` `)} } - `.trim()}function DQ(e,t){const n=RQ(e,t);Mn()&&nc(n,`${AQ}-dynamic-theme`)}const NQ=e=>{const[t,n]=Ur();return Tv(P(()=>({theme:t.value,token:n.value,hashId:"",path:["ant-design-icons",e.value]})),()=>[{[`.${e.value}`]:m(m({},Tl()),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}])};function BQ(e,t){const n=P(()=>e?.value||{}),o=P(()=>n.value.inherit===!1||!t?.value?oP:t.value);return P(()=>{if(!e?.value)return t?.value;const i=m({},o.value.components);return Object.keys(e.value.components||{}).forEach(l=>{i[l]=m(m({},i[l]),e.value.components[l])}),m(m(m({},o.value),n.value),{token:m(m({},o.value.token),n.value.token),components:i})})}var kQ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{m(vn,Py),vn.prefixCls=ya(),vn.iconPrefixCls=s5(),vn.getPrefixCls=(e,t)=>t||(e?`${vn.prefixCls}-${e}`:vn.prefixCls),vn.getRootPrefixCls=()=>vn.prefixCls?vn.prefixCls:ya()});let Eh;const LQ=e=>{Eh&&Eh(),Eh=Le(()=>{m(Py,ct(e)),m(vn,ct(e))}),e.theme&&DQ(ya(),e.theme)},zQ=()=>({getPrefixCls:(e,t)=>t||(e?`${ya()}-${e}`:ya()),getIconPrefixCls:s5,getRootPrefixCls:()=>vn.prefixCls?vn.prefixCls:ya()}),gl=oe({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:uA(),setup(e,t){let{slots:n}=t;const o=ap(),r=(_,N)=>{const{prefixCls:B="ant"}=e;if(N)return N;const k=B||o.getPrefixCls("");return _?`${k}-${_}`:k},i=P(()=>e.iconPrefixCls||o.iconPrefixCls.value||$0),l=P(()=>i.value!==o.iconPrefixCls.value),a=P(()=>{var _;return e.csp||((_=o.csp)===null||_===void 0?void 0:_.value)}),s=NQ(i),u=BQ(P(()=>e.theme),P(()=>{var _;return(_=o.theme)===null||_===void 0?void 0:_.value})),c=_=>(e.renderEmpty||n.renderEmpty||o.renderEmpty||qR)(_),d=P(()=>{var _,N;return(_=e.autoInsertSpaceInButton)!==null&&_!==void 0?_:(N=o.autoInsertSpaceInButton)===null||N===void 0?void 0:N.value}),f=P(()=>{var _;return e.locale||((_=o.locale)===null||_===void 0?void 0:_.value)});ye(f,()=>{Py.locale=f.value},{immediate:!0});const g=P(()=>{var _;return e.direction||((_=o.direction)===null||_===void 0?void 0:_.value)}),v=P(()=>{var _,N;return(_=e.space)!==null&&_!==void 0?_:(N=o.space)===null||N===void 0?void 0:N.value}),h=P(()=>{var _,N;return(_=e.virtual)!==null&&_!==void 0?_:(N=o.virtual)===null||N===void 0?void 0:N.value}),b=P(()=>{var _,N;return(_=e.dropdownMatchSelectWidth)!==null&&_!==void 0?_:(N=o.dropdownMatchSelectWidth)===null||N===void 0?void 0:N.value}),y=P(()=>{var _;return e.getTargetContainer!==void 0?e.getTargetContainer:(_=o.getTargetContainer)===null||_===void 0?void 0:_.value}),S=P(()=>{var _;return e.getPopupContainer!==void 0?e.getPopupContainer:(_=o.getPopupContainer)===null||_===void 0?void 0:_.value}),$=P(()=>{var _;return e.pageHeader!==void 0?e.pageHeader:(_=o.pageHeader)===null||_===void 0?void 0:_.value}),x=P(()=>{var _;return e.input!==void 0?e.input:(_=o.input)===null||_===void 0?void 0:_.value}),C=P(()=>{var _;return e.pagination!==void 0?e.pagination:(_=o.pagination)===null||_===void 0?void 0:_.value}),O=P(()=>{var _;return e.form!==void 0?e.form:(_=o.form)===null||_===void 0?void 0:_.value}),w=P(()=>{var _;return e.select!==void 0?e.select:(_=o.select)===null||_===void 0?void 0:_.value}),I=P(()=>e.componentSize),T=P(()=>e.componentDisabled),M=P(()=>{var _,N;return(_=e.wave)!==null&&_!==void 0?_:(N=o.wave)===null||N===void 0?void 0:N.value}),E={csp:a,autoInsertSpaceInButton:d,locale:f,direction:g,space:v,virtual:h,dropdownMatchSelectWidth:b,getPrefixCls:r,iconPrefixCls:i,theme:P(()=>{var _,N;return(_=u.value)!==null&&_!==void 0?_:(N=o.theme)===null||N===void 0?void 0:N.value}),renderEmpty:c,getTargetContainer:y,getPopupContainer:S,pageHeader:$,input:x,pagination:C,form:O,select:w,componentSize:I,componentDisabled:T,transformCellText:P(()=>e.transformCellText),wave:M},A=P(()=>{const _=u.value||{},{algorithm:N,token:B}=_,k=kQ(_,["algorithm","token"]),F=N&&(!Array.isArray(N)||N.length>0)?HO(N):void 0;return m(m({},k),{theme:F,token:m(m({},fp),B)})}),R=P(()=>{var _,N;let B={};return f.value&&(B=((_=f.value.Form)===null||_===void 0?void 0:_.defaultValidateMessages)||((N=Vn.Form)===null||N===void 0?void 0:N.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(B=m(m({},B),e.form.validateMessages)),B});dA(E),sA({validateMessages:R}),sP(I),TO(T);const z=_=>{var N,B;let k=l.value?s((N=n.default)===null||N===void 0?void 0:N.call(n)):(B=n.default)===null||B===void 0?void 0:B.call(n);if(e.theme){const F=(function(){return k})();k=p(KR,{value:A.value},{default:()=>[F]})}return p(F8,{locale:f.value||_,ANT_MARK__:ym},{default:()=>[k]})};return Le(()=>{g.value&&(Oo.config({rtl:g.value==="rtl"}),Ii.config({rtl:g.value==="rtl"}))}),()=>p(Il,{children:(_,N,B)=>z(B)},null)}});gl.config=LQ;gl.install=function(e){e.component(gl.name,gl)};const HQ=(e,t)=>{let{attrs:n,slots:o}=t;return p(Lt,D(D({size:"small",type:"primary"},e),n),o)},wu=(e,t,n)=>{const o=D_(n);return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},jQ=e=>Wd(e,(t,n)=>{let{textColor:o,lightBorderColor:r,lightColor:i,darkColor:l}=n;return{[`${e.componentCls}-${t}`]:{color:o,background:i,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),VQ=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:o,componentCls:r}=e,i=o-n,l=t-n;return{[r]:m(m({},Ue(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:`${e.tagLineHeight}px`,whiteSpace:"nowrap",background:e.tagDefaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.tagDefaultColor},[`${r}-close-icon`]:{marginInlineStart:l,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${r}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${r}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${r}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},c5=Ke("Tag",e=>{const{fontSize:t,lineHeight:n,lineWidth:o,fontSizeIcon:r}=e,i=Math.round(t*n),l=e.fontSizeSM,a=i-o*2,s=e.colorFillAlter,u=e.colorText,c=ke(e,{tagFontSize:l,tagLineHeight:a,tagDefaultBg:s,tagDefaultColor:u,tagIconSize:r-2*o,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return[VQ(c),jQ(c),wu(c,"success","Success"),wu(c,"processing","Info"),wu(c,"error","Error"),wu(c,"warning","Warning")]}),WQ=()=>({prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}),Pf=oe({compatConfig:{MODE:3},name:"ACheckableTag",inheritAttrs:!1,props:WQ(),setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{prefixCls:i}=Te("tag",e),[l,a]=c5(i),s=c=>{const{checked:d}=e;o("update:checked",!d),o("change",!d),o("click",c)},u=P(()=>le(i.value,a.value,{[`${i.value}-checkable`]:!0,[`${i.value}-checkable-checked`]:e.checked}));return()=>{var c;return l(p("span",D(D({},r),{},{class:[u.value,r.class],onClick:s}),[(c=n.default)===null||c===void 0?void 0:c.call(n)]))}}}),KQ=()=>({prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:W.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},onClick:bl(),"onUpdate:visible":Function,icon:W.any,bordered:{type:Boolean,default:!0}}),Sa=oe({compatConfig:{MODE:3},name:"ATag",inheritAttrs:!1,props:KQ(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{prefixCls:i,direction:l}=Te("tag",e),[a,s]=c5(i),u=ne(!0);Le(()=>{e.visible!==void 0&&(u.value=e.visible)});const c=v=>{v.stopPropagation(),o("update:visible",!1),o("close",v),!v.defaultPrevented&&e.visible===void 0&&(u.value=!1)},d=P(()=>Lp(e.color)||tW(e.color)),f=P(()=>le(i.value,s.value,{[`${i.value}-${e.color}`]:d.value,[`${i.value}-has-color`]:e.color&&!d.value,[`${i.value}-hidden`]:!u.value,[`${i.value}-rtl`]:l.value==="rtl",[`${i.value}-borderless`]:!e.bordered})),g=v=>{o("click",v)};return()=>{var v,h,b;const{icon:y=(v=n.icon)===null||v===void 0?void 0:v.call(n),color:S,closeIcon:$=(h=n.closeIcon)===null||h===void 0?void 0:h.call(n),closable:x=!1}=e,C=()=>x?$?p("span",{class:`${i.value}-close-icon`,onClick:c},[$]):p(Rn,{class:`${i.value}-close-icon`,onClick:c},null):null,O={backgroundColor:S&&!d.value?S:void 0},w=y||null,I=(b=n.default)===null||b===void 0?void 0:b.call(n),T=w?p(Ve,null,[w,p("span",null,[I])]):I,M=e.onClick!==void 0,E=p("span",D(D({},r),{},{onClick:g,class:[f.value,r.class],style:[O,r.style]}),[T,C()]);return a(M?p(Mb,null,{default:()=>[E]}):E)}}});Sa.CheckableTag=Pf;Sa.install=function(e){return e.component(Sa.name,Sa),e.component(Pf.name,Pf),e};function GQ(e,t){let{slots:n,attrs:o}=t;return p(Sa,D(D({color:"blue"},e),o),n)}var XQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};function iw(e){for(var t=1;tE.value||I.value),[z,_]=XI(C),N=re();h({focus:()=>{var J;(J=N.value)===null||J===void 0||J.focus()},blur:()=>{var J;(J=N.value)===null||J===void 0||J.blur()}});const B=J=>S.valueFormat?e.toString(J,S.valueFormat):J,k=(J,Z)=>{const G=B(J);y("update:value",G),y("change",G,Z),$.onFieldChange()},F=J=>{y("update:open",J),y("openChange",J)},L=J=>{y("focus",J)},H=J=>{y("blur",J),$.onFieldBlur()},j=(J,Z)=>{const G=B(J);y("panelChange",G,Z)},Y=J=>{const Z=B(J);y("ok",Z)},[Q]=Do("DatePicker",ec),U=P(()=>S.value?S.valueFormat?e.toDate(S.value,S.valueFormat):S.value:S.value===""?void 0:S.value),ee=P(()=>S.defaultValue?S.valueFormat?e.toDate(S.defaultValue,S.valueFormat):S.defaultValue:S.defaultValue===""?void 0:S.defaultValue),X=P(()=>S.defaultPickerValue?S.valueFormat?e.toDate(S.defaultPickerValue,S.valueFormat):S.defaultPickerValue:S.defaultPickerValue===""?void 0:S.defaultPickerValue);return()=>{var J,Z,G,q,V,K;const te=m(m({},Q.value),S.locale),ue=m(m({},S),b),{bordered:ie=!0,placeholder:ae,suffixIcon:ce=(J=v.suffixIcon)===null||J===void 0?void 0:J.call(v),showToday:se=!0,transitionName:pe,allowClear:ge=!0,dateRender:he=v.dateRender,renderExtraFooter:me=v.renderExtraFooter,monthCellRender:xe=v.monthCellRender||S.monthCellContentRender||v.monthCellContentRender,clearIcon:fe=(Z=v.clearIcon)===null||Z===void 0?void 0:Z.call(v),id:de=$.id.value}=ue,be=JQ(ue,["bordered","placeholder","suffixIcon","showToday","transitionName","allowClear","dateRender","renderExtraFooter","monthCellRender","clearIcon","id"]),we=ue.showTime===""?!0:ue.showTime,{format:Ie}=ue;let Ae={};u&&(Ae.picker=u);const Se=u||ue.picker||"date";Ae=m(m(m({},Ae),we?Tf(m({format:Ie,picker:Se},typeof we=="object"?we:{})):{}),Se==="time"?Tf(m(m({format:Ie},be),{picker:Se})):{});const Ce=C.value,Oe=p(Ve,null,[ce||p(u==="time"?rg:og,null,null),x.hasFeedback&&x.feedbackIcon]);return z(p(UG,D(D(D({monthCellRender:xe,dateRender:he,renderExtraFooter:me,ref:N,placeholder:ZQ(te,Se,ae),suffixIcon:Oe,dropdownAlign:u5(O.value,S.placement),clearIcon:fe||p(Dn,null,null),allowClear:ge,transitionName:pe||`${T.value}-slide-up`},be),Ae),{},{id:de,picker:Se,value:U.value,defaultValue:ee.value,defaultPickerValue:X.value,showToday:se,locale:te.lang,class:le({[`${Ce}-${R.value}`]:R.value,[`${Ce}-borderless`]:!ie},Tn(Ce,Qo(x.status,S.status),x.hasFeedback),b.class,_.value,A.value),disabled:M.value,prefixCls:Ce,getPopupContainer:b.getCalendarContainer||w.value,generateConfig:e,prevIcon:((G=v.prevIcon)===null||G===void 0?void 0:G.call(v))||p("span",{class:`${Ce}-prev-icon`},null),nextIcon:((q=v.nextIcon)===null||q===void 0?void 0:q.call(v))||p("span",{class:`${Ce}-next-icon`},null),superPrevIcon:((V=v.superPrevIcon)===null||V===void 0?void 0:V.call(v))||p("span",{class:`${Ce}-super-prev-icon`},null),superNextIcon:((K=v.superNextIcon)===null||K===void 0?void 0:K.call(v))||p("span",{class:`${Ce}-super-next-icon`},null),components:p5,direction:O.value,dropdownClassName:le(_.value,S.popupClassName,S.dropdownClassName),onChange:k,onOpenChange:F,onFocus:L,onBlur:H,onPanelChange:j,onOk:Y}),null))}}})}const o=n(void 0,"ADatePicker"),r=n("week","AWeekPicker"),i=n("month","AMonthPicker"),l=n("year","AYearPicker"),a=n("time","TimePicker"),s=n("quarter","AQuarterPicker");return{DatePicker:o,WeekPicker:r,MonthPicker:i,YearPicker:l,TimePicker:a,QuarterPicker:s}}var tJ={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};function aw(e){for(var t=1;tS.value||h.value),[C,O]=XI(f),w=re();i({focus:()=>{var L;(L=w.value)===null||L===void 0||L.focus()},blur:()=>{var L;(L=w.value)===null||L===void 0||L.blur()}});const I=L=>u.valueFormat?e.toString(L,u.valueFormat):L,T=(L,H)=>{const j=I(L);s("update:value",j),s("change",j,H),c.onFieldChange()},M=L=>{s("update:open",L),s("openChange",L)},E=L=>{s("focus",L)},A=L=>{s("blur",L),c.onFieldBlur()},R=(L,H)=>{const j=I(L);s("panelChange",j,H)},z=L=>{const H=I(L);s("ok",H)},_=(L,H,j)=>{const Y=I(L);s("calendarChange",Y,H,j)},[N]=Do("DatePicker",ec),B=P(()=>u.value&&u.valueFormat?e.toDate(u.value,u.valueFormat):u.value),k=P(()=>u.defaultValue&&u.valueFormat?e.toDate(u.defaultValue,u.valueFormat):u.defaultValue),F=P(()=>u.defaultPickerValue&&u.valueFormat?e.toDate(u.defaultPickerValue,u.valueFormat):u.defaultPickerValue);return()=>{var L,H,j,Y,Q,U,ee;const X=m(m({},N.value),u.locale),J=m(m({},u),a),{prefixCls:Z,bordered:G=!0,placeholder:q,suffixIcon:V=(L=l.suffixIcon)===null||L===void 0?void 0:L.call(l),picker:K="date",transitionName:te,allowClear:ue=!0,dateRender:ie=l.dateRender,renderExtraFooter:ae=l.renderExtraFooter,separator:ce=(H=l.separator)===null||H===void 0?void 0:H.call(l),clearIcon:se=(j=l.clearIcon)===null||j===void 0?void 0:j.call(l),id:pe=c.id.value}=J,ge=oJ(J,["prefixCls","bordered","placeholder","suffixIcon","picker","transitionName","allowClear","dateRender","renderExtraFooter","separator","clearIcon","id"]);delete ge["onUpdate:value"],delete ge["onUpdate:open"];const{format:he,showTime:me}=J;let xe={};xe=m(m(m({},xe),me?Tf(m({format:he,picker:K},me)):{}),K==="time"?Tf(m(m({format:he},tt(ge,["disabledTime"])),{picker:K})):{});const fe=f.value,de=p(Ve,null,[V||p(K==="time"?rg:og,null,null),d.hasFeedback&&d.feedbackIcon]);return C(p(rX,D(D(D({dateRender:ie,renderExtraFooter:ae,separator:ce||p("span",{"aria-label":"to",class:`${fe}-separator`},[p(Iy,null,null)]),ref:w,dropdownAlign:u5(g.value,u.placement),placeholder:QQ(X,K,q),suffixIcon:de,clearIcon:se||p(Dn,null,null),allowClear:ue,transitionName:te||`${b.value}-slide-up`},ge),xe),{},{disabled:y.value,id:pe,value:B.value,defaultValue:k.value,defaultPickerValue:F.value,picker:K,class:le({[`${fe}-${x.value}`]:x.value,[`${fe}-borderless`]:!G},Tn(fe,Qo(d.status,u.status),d.hasFeedback),a.class,O.value,$.value),locale:X.lang,prefixCls:fe,getPopupContainer:a.getCalendarContainer||v.value,generateConfig:e,prevIcon:((Y=l.prevIcon)===null||Y===void 0?void 0:Y.call(l))||p("span",{class:`${fe}-prev-icon`},null),nextIcon:((Q=l.nextIcon)===null||Q===void 0?void 0:Q.call(l))||p("span",{class:`${fe}-next-icon`},null),superPrevIcon:((U=l.superPrevIcon)===null||U===void 0?void 0:U.call(l))||p("span",{class:`${fe}-super-prev-icon`},null),superNextIcon:((ee=l.superNextIcon)===null||ee===void 0?void 0:ee.call(l))||p("span",{class:`${fe}-super-next-icon`},null),components:p5,direction:g.value,dropdownClassName:le(O.value,u.popupClassName,u.dropdownClassName),onChange:T,onOpenChange:M,onFocus:E,onBlur:A,onPanelChange:R,onOk:z,onCalendarChange:_}),null))}}})}const p5={button:HQ,rangeItem:GQ};function iJ(e){return e?Array.isArray(e)?e:[e]:[]}function Tf(e){const{format:t,picker:n,showHour:o,showMinute:r,showSecond:i,use12Hours:l}=e,a=iJ(t)[0],s=m({},e);return a&&typeof a=="string"&&(!a.includes("s")&&i===void 0&&(s.showSecond=!1),!a.includes("m")&&r===void 0&&(s.showMinute=!1),!a.includes("H")&&!a.includes("h")&&o===void 0&&(s.showHour=!1),(a.includes("a")||a.includes("A"))&&l===void 0&&(s.use12Hours=!0)),n==="time"?s:(typeof a=="function"&&delete s.format,{showTime:s})}function g5(e,t){const{DatePicker:n,WeekPicker:o,MonthPicker:r,YearPicker:i,TimePicker:l,QuarterPicker:a}=eJ(e,t),s=rJ(e,t);return{DatePicker:n,WeekPicker:o,MonthPicker:r,YearPicker:i,TimePicker:l,QuarterPicker:a,RangePicker:s}}const{DatePicker:Mh,WeekPicker:ad,MonthPicker:sd,YearPicker:lJ,TimePicker:aJ,QuarterPicker:cd,RangePicker:ud}=g5(kb),sJ=m(Mh,{WeekPicker:ad,MonthPicker:sd,YearPicker:lJ,RangePicker:ud,TimePicker:aJ,QuarterPicker:cd,install:e=>(e.component(Mh.name,Mh),e.component(ud.name,ud),e.component(sd.name,sd),e.component(ad.name,ad),e.component(cd.name,cd),e)});function Ou(e){return e!=null}const _h=e=>{const{itemPrefixCls:t,component:n,span:o,labelStyle:r,contentStyle:i,bordered:l,label:a,content:s,colon:u}=e,c=n;return l?p(c,{class:[{[`${t}-item-label`]:Ou(a),[`${t}-item-content`]:Ou(s)}],colSpan:o},{default:()=>[Ou(a)&&p("span",{style:r},[a]),Ou(s)&&p("span",{style:i},[s])]}):p(c,{class:[`${t}-item`],colSpan:o},{default:()=>[p("div",{class:`${t}-item-container`},[(a||a===0)&&p("span",{class:[`${t}-item-label`,{[`${t}-item-no-colon`]:!u}],style:r},[a]),(s||s===0)&&p("span",{class:`${t}-item-content`,style:i},[s])])]})},cJ=e=>{const t=(u,c,d)=>{let{colon:f,prefixCls:g,bordered:v}=c,{component:h,type:b,showLabel:y,showContent:S,labelStyle:$,contentStyle:x}=d;return u.map((C,O)=>{var w,I;const T=C.props||{},{prefixCls:M=g,span:E=1,labelStyle:A=T["label-style"],contentStyle:R=T["content-style"],label:z=(I=(w=C.children)===null||w===void 0?void 0:w.label)===null||I===void 0?void 0:I.call(w)}=T,_=lp(C),N=oA(C),B=SO(C),{key:k}=C;return typeof h=="string"?p(_h,{key:`${b}-${String(k)||O}`,class:N,style:B,labelStyle:m(m({},$),A),contentStyle:m(m({},x),R),span:E,colon:f,component:h,itemPrefixCls:M,bordered:v,label:y?z:null,content:S?_:null},null):[p(_h,{key:`label-${String(k)||O}`,class:N,style:m(m(m({},$),B),A),span:1,colon:f,component:h[0],itemPrefixCls:M,bordered:v,label:z},null),p(_h,{key:`content-${String(k)||O}`,class:N,style:m(m(m({},x),B),R),span:E*2-1,component:h[1],itemPrefixCls:M,bordered:v,content:_},null)]})},{prefixCls:n,vertical:o,row:r,index:i,bordered:l}=e,{labelStyle:a,contentStyle:s}=He(m5,{labelStyle:re({}),contentStyle:re({})});return o?p(Ve,null,[p("tr",{key:`label-${i}`,class:`${n}-row`},[t(r,e,{component:"th",type:"label",showLabel:!0,labelStyle:a.value,contentStyle:s.value})]),p("tr",{key:`content-${i}`,class:`${n}-row`},[t(r,e,{component:"td",type:"content",showContent:!0,labelStyle:a.value,contentStyle:s.value})])]):p("tr",{key:i,class:`${n}-row`},[t(r,e,{component:l?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:a.value,contentStyle:s.value})])},uJ=e=>{const{componentCls:t,descriptionsSmallPadding:n,descriptionsDefaultPadding:o,descriptionsMiddlePadding:r,descriptionsBg:i}=e;return{[`&${t}-bordered`]:{[`${t}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"}},[`${t}-item-label, ${t}-item-content`]:{padding:o,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`${t}-item-label`]:{backgroundColor:i,"&::after":{display:"none"}},[`${t}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"}},[`&${t}-middle`]:{[`${t}-item-label, ${t}-item-content`]:{padding:r}},[`&${t}-small`]:{[`${t}-item-label, ${t}-item-content`]:{padding:n}}}}},dJ=e=>{const{componentCls:t,descriptionsExtraColor:n,descriptionItemPaddingBottom:o,descriptionsItemLabelColonMarginRight:r,descriptionsItemLabelColonMarginLeft:i,descriptionsTitleMarginBottom:l}=e;return{[t]:m(m(m({},Ue(e)),uJ(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:l},[`${t}-title`]:m(m({},Gt),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${t}-row`]:{"> th, > td":{paddingBottom:o},"&:last-child":{borderBottom:"none"}},[`${t}-item-label`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${i}px ${r}px`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},fJ=Ke("Descriptions",e=>{const t=e.colorFillAlter,n=e.fontSizeSM*e.lineHeightSM,o=e.colorText,r=`${e.paddingXS}px ${e.padding}px`,i=`${e.padding}px ${e.paddingLG}px`,l=`${e.paddingSM}px ${e.paddingLG}px`,a=e.padding,s=e.marginXS,u=e.marginXXS/2,c=ke(e,{descriptionsBg:t,descriptionsTitleMarginBottom:n,descriptionsExtraColor:o,descriptionItemPaddingBottom:a,descriptionsSmallPadding:r,descriptionsDefaultPadding:i,descriptionsMiddlePadding:l,descriptionsItemLabelColonMarginRight:s,descriptionsItemLabelColonMarginLeft:u});return[dJ(c)]});W.any;const pJ=()=>({prefixCls:String,label:W.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}}),h5=oe({compatConfig:{MODE:3},name:"ADescriptionsItem",props:pJ(),setup(e,t){let{slots:n}=t;return()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),v5={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function gJ(e,t){if(typeof e=="number")return e;if(typeof e=="object")for(let n=0;nt)&&(o=ut(e,{span:t})),o}function hJ(e,t){const n=bt(e),o=[];let r=[],i=t;return n.forEach((l,a)=>{var s;const u=(s=l.props)===null||s===void 0?void 0:s.span,c=u||1;if(a===n.length-1){r.push(sw(l,i,u)),o.push(r);return}c({prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:W.any,extra:W.any,column:{type:[Number,Object],default:()=>v5},layout:String,colon:{type:Boolean,default:void 0},labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0}}),m5=Symbol("descriptionsContext"),Jl=oe({compatConfig:{MODE:3},name:"ADescriptions",inheritAttrs:!1,props:vJ(),slots:Object,Item:h5,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Te("descriptions",e);let l;const a=re({}),[s,u]=fJ(r),c=wb();Jf(()=>{l=c.value.subscribe(f=>{typeof e.column=="object"&&(a.value=f)})}),Qe(()=>{c.value.unsubscribe(l)}),Xe(m5,{labelStyle:ze(e,"labelStyle"),contentStyle:ze(e,"contentStyle")});const d=P(()=>gJ(e.column,a.value));return()=>{var f,g,v;const{size:h,bordered:b=!1,layout:y="horizontal",colon:S=!0,title:$=(f=n.title)===null||f===void 0?void 0:f.call(n),extra:x=(g=n.extra)===null||g===void 0?void 0:g.call(n)}=e,C=(v=n.default)===null||v===void 0?void 0:v.call(n),O=hJ(C,d.value);return s(p("div",D(D({},o),{},{class:[r.value,{[`${r.value}-${h}`]:h!=="default",[`${r.value}-bordered`]:!!b,[`${r.value}-rtl`]:i.value==="rtl"},o.class,u.value]}),[($||x)&&p("div",{class:`${r.value}-header`},[$&&p("div",{class:`${r.value}-title`},[$]),x&&p("div",{class:`${r.value}-extra`},[x])]),p("div",{class:`${r.value}-view`},[p("table",null,[p("tbody",null,[O.map((w,I)=>p(cJ,{key:I,index:I,colon:S,prefixCls:r.value,vertical:y==="vertical",bordered:b,row:w},null))])])])]))}}});Jl.install=function(e){return e.component(Jl.name,Jl),e.component(Jl.Item.name,Jl.Item),e};const mJ=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:r}=e;return{[t]:m(m({},Ue(e)),{borderBlockStart:`${r}px solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${r}px solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${r}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${r}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},bJ=Ke("Divider",e=>{const t=ke(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[mJ(t)]},{sizePaddingEdgeHorizontal:0}),yJ=()=>({prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]}),SJ=oe({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:yJ(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Te("divider",e),[l,a]=bJ(r),s=P(()=>e.orientation==="left"&&e.orientationMargin!=null),u=P(()=>e.orientation==="right"&&e.orientationMargin!=null),c=P(()=>{const{type:g,dashed:v,plain:h}=e,b=r.value;return{[b]:!0,[a.value]:!!a.value,[`${b}-${g}`]:!0,[`${b}-dashed`]:!!v,[`${b}-plain`]:!!h,[`${b}-rtl`]:i.value==="rtl",[`${b}-no-default-orientation-margin-left`]:s.value,[`${b}-no-default-orientation-margin-right`]:u.value}}),d=P(()=>{const g=typeof e.orientationMargin=="number"?`${e.orientationMargin}px`:e.orientationMargin;return m(m({},s.value&&{marginLeft:g}),u.value&&{marginRight:g})}),f=P(()=>e.orientation.length>0?"-"+e.orientation:e.orientation);return()=>{var g;const v=bt((g=n.default)===null||g===void 0?void 0:g.call(n));return l(p("div",D(D({},o),{},{class:[c.value,v.length?`${r.value}-with-text ${r.value}-with-text${f.value}`:"",o.class],role:"separator"}),[v.length?p("span",{class:`${r.value}-inner-text`,style:d.value},[v]):null]))}}}),$J=It(SJ);Wo.Button=fc;Wo.install=function(e){return e.component(Wo.name,Wo),e.component(fc.name,fc),e};const b5=()=>({prefixCls:String,width:W.oneOfType([W.string,W.number]),height:W.oneOfType([W.string,W.number]),style:{type:Object,default:void 0},class:String,rootClassName:String,rootStyle:De(),placement:{type:String},wrapperClassName:String,level:{type:[String,Array]},levelMove:{type:[Number,Function,Array]},duration:String,ease:String,showMask:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},afterVisibleChange:Function,keyboard:{type:Boolean,default:void 0},contentWrapperStyle:lt(),autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},motion:ve(),maskMotion:De()}),CJ=()=>m(m({},b5()),{forceRender:{type:Boolean,default:void 0},getContainer:W.oneOfType([W.string,W.func,W.object,W.looseBool])}),xJ=()=>m(m({},b5()),{getContainer:Function,getOpenCount:Function,scrollLocker:W.any,inline:Boolean});function wJ(e){return Array.isArray(e)?e:[e]}const OJ={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"};Object.keys(OJ).filter(e=>{if(typeof document>"u")return!1;const t=document.getElementsByTagName("html")[0];return e in(t?t.style:{})})[0];const PJ=!(typeof window<"u"&&window.document&&window.document.createElement);var IJ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{ot(()=>{var y;const{open:S,getContainer:$,showMask:x,autofocus:C}=e,O=$?.();v(e),S&&(O&&(O.parentNode,document.body),ot(()=>{C&&c()}),x&&((y=e.scrollLocker)===null||y===void 0||y.lock()))})}),ye(()=>e.level,()=>{v(e)},{flush:"post"}),ye(()=>e.open,()=>{const{open:y,getContainer:S,scrollLocker:$,showMask:x,autofocus:C}=e,O=S?.();O&&(O.parentNode,document.body),y?(C&&c(),x&&$?.lock()):$?.unLock()},{flush:"post"}),$n(()=>{var y;const{open:S}=e;S&&(document.body.style.touchAction=""),(y=e.scrollLocker)===null||y===void 0||y.unLock()}),ye(()=>e.placement,y=>{y&&(s.value=null)});const c=()=>{var y,S;(S=(y=i.value)===null||y===void 0?void 0:y.focus)===null||S===void 0||S.call(y)},d=y=>{n("close",y)},f=y=>{y.keyCode===Pe.ESC&&(y.stopPropagation(),d(y))},g=()=>{const{open:y,afterVisibleChange:S}=e;S&&S(!!y)},v=y=>{let{level:S,getContainer:$}=y;if(PJ)return;const x=$?.(),C=x?x.parentNode:null;u=[],S==="all"?(C?Array.prototype.slice.call(C.children):[]).forEach(w=>{w.nodeName!=="SCRIPT"&&w.nodeName!=="STYLE"&&w.nodeName!=="LINK"&&w!==x&&u.push(w)}):S&&wJ(S).forEach(O=>{document.querySelectorAll(O).forEach(w=>{u.push(w)})})},h=y=>{n("handleClick",y)},b=ne(!1);return ye(i,()=>{ot(()=>{b.value=!0})}),()=>{var y,S;const{width:$,height:x,open:C,prefixCls:O,placement:w,level:I,levelMove:T,ease:M,duration:E,getContainer:A,onChange:R,afterVisibleChange:z,showMask:_,maskClosable:N,maskStyle:B,keyboard:k,getOpenCount:F,scrollLocker:L,contentWrapperStyle:H,style:j,class:Y,rootClassName:Q,rootStyle:U,maskMotion:ee,motion:X,inline:J}=e,Z=IJ(e,["width","height","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","keyboard","getOpenCount","scrollLocker","contentWrapperStyle","style","class","rootClassName","rootStyle","maskMotion","motion","inline"]),G=C&&b.value,q=le(O,{[`${O}-${w}`]:!0,[`${O}-open`]:G,[`${O}-inline`]:J,"no-mask":!_,[Q]:!0}),V=typeof X=="function"?X(w):X;return p("div",D(D({},tt(Z,["autofocus"])),{},{tabindex:-1,class:q,style:U,ref:i,onKeydown:G&&k?f:void 0}),[p(un,ee,{default:()=>[_&&En(p("div",{class:`${O}-mask`,onClick:N?d:void 0,style:B,ref:l},null),[[jn,G]])]}),p(un,D(D({},V),{},{onAfterEnter:g,onAfterLeave:g}),{default:()=>[En(p("div",{class:`${O}-content-wrapper`,style:[H],ref:r},[p("div",{class:[`${O}-content`,Y],style:j,ref:s},[(y=o.default)===null||y===void 0?void 0:y.call(o)]),o.handler?p("div",{onClick:h,ref:a},[(S=o.handler)===null||S===void 0?void 0:S.call(o)]):null]),[[jn,G]])]})])}}});var uw=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",keyboard:!0,forceRender:!1,autofocus:!0}),emits:["handleClick","close"],setup(e,t){let{emit:n,slots:o}=t;const r=re(null),i=a=>{n("handleClick",a)},l=a=>{n("close",a)};return()=>{const{getContainer:a,wrapperClassName:s,rootClassName:u,rootStyle:c,forceRender:d}=e,f=uw(e,["getContainer","wrapperClassName","rootClassName","rootStyle","forceRender"]);let g=null;if(!a)return p(cw,D(D({},f),{},{rootClassName:u,rootStyle:c,open:e.open,onClose:l,onHandleClick:i,inline:!0}),o);const v=!!o.handler||d;return(v||e.open||r.value)&&(g=p(Ic,{autoLock:!0,visible:e.open,forceRender:v,getContainer:a,wrapperClassName:s},{default:h=>{var{visible:b,afterClose:y}=h,S=uw(h,["visible","afterClose"]);return p(cw,D(D(D({ref:r},f),S),{},{rootClassName:u,rootStyle:c,open:b!==void 0?b:e.open,afterVisibleChange:y!==void 0?y:e.afterVisibleChange,onClose:l,onHandleClick:i}),o)}})),g}}}),EJ=e=>{const{componentCls:t,motionDurationSlow:n}=e,o={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[o,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[o,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[o,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[o,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},MJ=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:o,colorBgElevated:r,motionDurationSlow:i,motionDurationMid:l,padding:a,paddingLG:s,fontSizeLG:u,lineHeightLG:c,lineWidth:d,lineType:f,colorSplit:g,marginSM:v,colorIcon:h,colorIconHover:b,colorText:y,fontWeightStrong:S,drawerFooterPaddingVertical:$,drawerFooterPaddingHorizontal:x}=e,C=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:r,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:o,pointerEvents:"auto"},[C]:{position:"absolute",zIndex:n,transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${C}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${C}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${C}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${C}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:r,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${a}px ${s}px`,fontSize:u,lineHeight:c,borderBottom:`${d}px ${f} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:v,color:h,fontWeight:S,fontSize:u,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${l}`,textRendering:"auto","&:focus, &:hover":{color:b,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:y,fontWeight:e.fontWeightStrong,fontSize:u,lineHeight:c},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:s,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${$}px ${x}px`,borderTop:`${d}px ${f} ${g}`},"&-rtl":{direction:"rtl"}}}},_J=Ke("Drawer",e=>{const t=ke(e,{drawerFooterPaddingVertical:e.paddingXS,drawerFooterPaddingHorizontal:e.padding});return[MJ(t),EJ(t)]},e=>({zIndexPopup:e.zIndexPopupBase}));var AJ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:W.any,destroyOnClose:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},getContainer:{type:[String,Function,Boolean,Object],default:void 0},maskClosable:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},maskStyle:De(),rootClassName:String,rootStyle:De(),size:{type:String},drawerStyle:De(),headerStyle:De(),bodyStyle:De(),contentWrapperStyle:{type:Object,default:void 0},title:W.any,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},width:W.oneOfType([W.string,W.number]),height:W.oneOfType([W.string,W.number]),zIndex:Number,prefixCls:String,push:W.oneOfType([W.looseBool,{type:Object}]),placement:W.oneOf(RJ),keyboard:{type:Boolean,default:void 0},extra:W.any,footer:W.any,footerStyle:De(),level:W.any,levelMove:{type:[Number,Array,Function]},handle:W.any,afterVisibleChange:Function,onAfterVisibleChange:Function,onAfterOpenChange:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onClose:Function}),NJ=oe({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:Ze(DJ(),{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:dw}),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const i=ne(!1),l=ne(!1),a=ne(null),s=ne(!1),u=ne(!1),c=P(()=>{var F;return(F=e.open)!==null&&F!==void 0?F:e.visible});ye(c,()=>{c.value?s.value=!0:u.value=!1},{immediate:!0}),ye([c,s],()=>{c.value&&s.value&&(u.value=!0)},{immediate:!0});const d=He("parentDrawerOpts",null),{prefixCls:f,getPopupContainer:g,direction:v}=Te("drawer",e),[h,b]=_J(f),y=P(()=>e.getContainer===void 0&&g?.value?()=>g.value(document.body):e.getContainer);Ct(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),Xe("parentDrawerOpts",{setPush:()=>{i.value=!0},setPull:()=>{i.value=!1,ot(()=>{x()})}}),je(()=>{c.value&&d&&d.setPush()}),$n(()=>{d&&d.setPull()}),ye(u,()=>{d&&(u.value?d.setPush():d.setPull())},{flush:"post"});const x=()=>{var F,L;(L=(F=a.value)===null||F===void 0?void 0:F.domFocus)===null||L===void 0||L.call(F)},C=F=>{n("update:visible",!1),n("update:open",!1),n("close",F)},O=F=>{var L;F||(l.value===!1&&(l.value=!0),e.destroyOnClose&&(s.value=!1)),(L=e.afterVisibleChange)===null||L===void 0||L.call(e,F),n("afterVisibleChange",F),n("afterOpenChange",F)},w=P(()=>{const{push:F,placement:L}=e;let H;return typeof F=="boolean"?H=F?dw.distance:0:H=F.distance,H=parseFloat(String(H||0)),L==="left"||L==="right"?`translateX(${L==="left"?H:-H}px)`:L==="top"||L==="bottom"?`translateY(${L==="top"?H:-H}px)`:null}),I=P(()=>{var F;return(F=e.width)!==null&&F!==void 0?F:e.size==="large"?736:378}),T=P(()=>{var F;return(F=e.height)!==null&&F!==void 0?F:e.size==="large"?736:378}),M=P(()=>{const{mask:F,placement:L}=e;if(!u.value&&!F)return{};const H={};return L==="left"||L==="right"?H.width=sf(I.value)?`${I.value}px`:I.value:H.height=sf(T.value)?`${T.value}px`:T.value,H}),E=P(()=>{const{zIndex:F,contentWrapperStyle:L}=e,H=M.value;return[{zIndex:F,transform:i.value?w.value:void 0},m({},L),H]}),A=F=>{const{closable:L,headerStyle:H}=e,j=Zt(o,e,"extra"),Y=Zt(o,e,"title");return!Y&&!L?null:p("div",{class:le(`${F}-header`,{[`${F}-header-close-only`]:L&&!Y&&!j}),style:H},[p("div",{class:`${F}-header-title`},[R(F),Y&&p("div",{class:`${F}-title`},[Y])]),j&&p("div",{class:`${F}-extra`},[j])])},R=F=>{var L;const{closable:H}=e,j=o.closeIcon?(L=o.closeIcon)===null||L===void 0?void 0:L.call(o):e.closeIcon;return H&&p("button",{key:"closer",onClick:C,"aria-label":"Close",class:`${F}-close`},[j===void 0?p(Rn,null,null):j])},z=F=>{var L;if(l.value&&!e.forceRender&&!s.value)return null;const{bodyStyle:H,drawerStyle:j}=e;return p("div",{class:`${F}-wrapper-body`,style:j},[A(F),p("div",{key:"body",class:`${F}-body`,style:H},[(L=o.default)===null||L===void 0?void 0:L.call(o)]),_(F)])},_=F=>{const L=Zt(o,e,"footer");if(!L)return null;const H=`${F}-footer`;return p("div",{class:H,style:e.footerStyle},[L])},N=P(()=>le({"no-mask":!e.mask,[`${f.value}-rtl`]:v.value==="rtl"},e.rootClassName,b.value)),B=P(()=>Ro(_n(f.value,"mask-motion"))),k=F=>Ro(_n(f.value,`panel-motion-${F}`));return()=>{const{width:F,height:L,placement:H,mask:j,forceRender:Y}=e,Q=AJ(e,["width","height","placement","mask","forceRender"]),U=m(m(m({},r),tt(Q,["size","closeIcon","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","onAfterVisibleChange","onClose","onUpdate:visible","onUpdate:open","visible"])),{forceRender:Y,onClose:C,afterVisibleChange:O,handler:!1,prefixCls:f.value,open:u.value,showMask:j,placement:H,ref:a});return h(p(dc,null,{default:()=>[p(TJ,D(D({},U),{},{maskMotion:B.value,motion:k,width:I.value,height:T.value,getContainer:y.value,rootClassName:N.value,rootStyle:e.rootStyle,contentWrapperStyle:E.value}),{handler:e.handle?()=>e.handle:o.handle,default:()=>z(f.value)})]}))}}}),BJ=It(NJ);var kJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};function fw(e){for(var t=1;t({prefixCls:String,description:W.any,type:Ne("default"),shape:Ne("circle"),tooltip:W.any,href:String,target:String,badge:De(),onClick:ve()}),LJ=()=>({prefixCls:Ne()}),zJ=()=>m(m({},Ty()),{trigger:Ne(),open:$e(),onOpenChange:ve(),"onUpdate:open":ve()}),HJ=()=>m(m({},Ty()),{prefixCls:String,duration:Number,target:ve(),visibilityHeight:Number,onClick:ve()}),jJ=oe({compatConfig:{MODE:3},name:"AFloatButtonContent",inheritAttrs:!1,props:LJ(),setup(e,t){let{attrs:n,slots:o}=t;return()=>{var r;const{prefixCls:i}=e,l=_t((r=o.description)===null||r===void 0?void 0:r.call(o));return p("div",D(D({},n),{},{class:[n.class,`${i}-content`]}),[o.icon||l.length?p(Ve,null,[o.icon&&p("div",{class:`${i}-icon`},[o.icon()]),l.length?p("div",{class:`${i}-description`},[l]):null]):p("div",{class:`${i}-icon`},[p(ig,null,null)])])}}}),y5=Symbol("floatButtonGroupContext"),VJ=e=>(Xe(y5,e),e),S5=()=>He(y5,{shape:re()}),pw=e=>e===0?0:e-Math.sqrt(Math.pow(e,2)/2),WJ=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:o,motionEaseInOutCirc:r}=e,i=`${t}-group`,l=new nt("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),a=new nt("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${i}-wrap`]:m({},Mc(`${i}-wrap`,l,a,o,!0))},{[`${i}-wrap`]:{[` + `.trim()}function DQ(e,t){const n=RQ(e,t);Mn()&&nc(n,`${AQ}-dynamic-theme`)}const NQ=e=>{const[t,n]=Ur();return Tv(P(()=>({theme:t.value,token:n.value,hashId:"",path:["ant-design-icons",e.value]})),()=>[{[`.${e.value}`]:m(m({},Tl()),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}])};function BQ(e,t){const n=P(()=>e?.value||{}),o=P(()=>n.value.inherit===!1||!t?.value?oP:t.value);return P(()=>{if(!e?.value)return t?.value;const i=m({},o.value.components);return Object.keys(e.value.components||{}).forEach(l=>{i[l]=m(m({},i[l]),e.value.components[l])}),m(m(m({},o.value),n.value),{token:m(m({},o.value.token),n.value.token),components:i})})}var kQ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{m(vn,Py),vn.prefixCls=ya(),vn.iconPrefixCls=s5(),vn.getPrefixCls=(e,t)=>t||(e?`${vn.prefixCls}-${e}`:vn.prefixCls),vn.getRootPrefixCls=()=>vn.prefixCls?vn.prefixCls:ya()});let Eh;const LQ=e=>{Eh&&Eh(),Eh=Le(()=>{m(Py,ct(e)),m(vn,ct(e))}),e.theme&&DQ(ya(),e.theme)},zQ=()=>({getPrefixCls:(e,t)=>t||(e?`${ya()}-${e}`:ya()),getIconPrefixCls:s5,getRootPrefixCls:()=>vn.prefixCls?vn.prefixCls:ya()}),gl=oe({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:uA(),setup(e,t){let{slots:n}=t;const o=ap(),r=(M,N)=>{const{prefixCls:B="ant"}=e;if(N)return N;const k=B||o.getPrefixCls("");return M?`${k}-${M}`:k},i=P(()=>e.iconPrefixCls||o.iconPrefixCls.value||$0),l=P(()=>i.value!==o.iconPrefixCls.value),a=P(()=>{var M;return e.csp||((M=o.csp)===null||M===void 0?void 0:M.value)}),s=NQ(i),u=BQ(P(()=>e.theme),P(()=>{var M;return(M=o.theme)===null||M===void 0?void 0:M.value})),c=M=>(e.renderEmpty||n.renderEmpty||o.renderEmpty||qR)(M),d=P(()=>{var M,N;return(M=e.autoInsertSpaceInButton)!==null&&M!==void 0?M:(N=o.autoInsertSpaceInButton)===null||N===void 0?void 0:N.value}),f=P(()=>{var M;return e.locale||((M=o.locale)===null||M===void 0?void 0:M.value)});ye(f,()=>{Py.locale=f.value},{immediate:!0});const g=P(()=>{var M;return e.direction||((M=o.direction)===null||M===void 0?void 0:M.value)}),v=P(()=>{var M,N;return(M=e.space)!==null&&M!==void 0?M:(N=o.space)===null||N===void 0?void 0:N.value}),h=P(()=>{var M,N;return(M=e.virtual)!==null&&M!==void 0?M:(N=o.virtual)===null||N===void 0?void 0:N.value}),b=P(()=>{var M,N;return(M=e.dropdownMatchSelectWidth)!==null&&M!==void 0?M:(N=o.dropdownMatchSelectWidth)===null||N===void 0?void 0:N.value}),y=P(()=>{var M;return e.getTargetContainer!==void 0?e.getTargetContainer:(M=o.getTargetContainer)===null||M===void 0?void 0:M.value}),S=P(()=>{var M;return e.getPopupContainer!==void 0?e.getPopupContainer:(M=o.getPopupContainer)===null||M===void 0?void 0:M.value}),$=P(()=>{var M;return e.pageHeader!==void 0?e.pageHeader:(M=o.pageHeader)===null||M===void 0?void 0:M.value}),x=P(()=>{var M;return e.input!==void 0?e.input:(M=o.input)===null||M===void 0?void 0:M.value}),C=P(()=>{var M;return e.pagination!==void 0?e.pagination:(M=o.pagination)===null||M===void 0?void 0:M.value}),O=P(()=>{var M;return e.form!==void 0?e.form:(M=o.form)===null||M===void 0?void 0:M.value}),w=P(()=>{var M;return e.select!==void 0?e.select:(M=o.select)===null||M===void 0?void 0:M.value}),I=P(()=>e.componentSize),T=P(()=>e.componentDisabled),_=P(()=>{var M,N;return(M=e.wave)!==null&&M!==void 0?M:(N=o.wave)===null||N===void 0?void 0:N.value}),E={csp:a,autoInsertSpaceInButton:d,locale:f,direction:g,space:v,virtual:h,dropdownMatchSelectWidth:b,getPrefixCls:r,iconPrefixCls:i,theme:P(()=>{var M,N;return(M=u.value)!==null&&M!==void 0?M:(N=o.theme)===null||N===void 0?void 0:N.value}),renderEmpty:c,getTargetContainer:y,getPopupContainer:S,pageHeader:$,input:x,pagination:C,form:O,select:w,componentSize:I,componentDisabled:T,transformCellText:P(()=>e.transformCellText),wave:_},A=P(()=>{const M=u.value||{},{algorithm:N,token:B}=M,k=kQ(M,["algorithm","token"]),F=N&&(!Array.isArray(N)||N.length>0)?HO(N):void 0;return m(m({},k),{theme:F,token:m(m({},fp),B)})}),R=P(()=>{var M,N;let B={};return f.value&&(B=((M=f.value.Form)===null||M===void 0?void 0:M.defaultValidateMessages)||((N=Vn.Form)===null||N===void 0?void 0:N.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(B=m(m({},B),e.form.validateMessages)),B});dA(E),sA({validateMessages:R}),sP(I),TO(T);const z=M=>{var N,B;let k=l.value?s((N=n.default)===null||N===void 0?void 0:N.call(n)):(B=n.default)===null||B===void 0?void 0:B.call(n);if(e.theme){const F=(function(){return k})();k=p(KR,{value:A.value},{default:()=>[F]})}return p(F8,{locale:f.value||M,ANT_MARK__:ym},{default:()=>[k]})};return Le(()=>{g.value&&(Oo.config({rtl:g.value==="rtl"}),Ii.config({rtl:g.value==="rtl"}))}),()=>p(Il,{children:(M,N,B)=>z(B)},null)}});gl.config=LQ;gl.install=function(e){e.component(gl.name,gl)};const HQ=(e,t)=>{let{attrs:n,slots:o}=t;return p(Lt,D(D({size:"small",type:"primary"},e),n),o)},wu=(e,t,n)=>{const o=D_(n);return{[`${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},jQ=e=>Wd(e,(t,n)=>{let{textColor:o,lightBorderColor:r,lightColor:i,darkColor:l}=n;return{[`${e.componentCls}-${t}`]:{color:o,background:i,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),VQ=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:o,componentCls:r}=e,i=o-n,l=t-n;return{[r]:m(m({},Ue(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:i,fontSize:e.tagFontSize,lineHeight:`${e.tagLineHeight}px`,whiteSpace:"nowrap",background:e.tagDefaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.tagDefaultColor},[`${r}-close-icon`]:{marginInlineStart:l,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${r}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${r}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}}),[`${r}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},c5=Ke("Tag",e=>{const{fontSize:t,lineHeight:n,lineWidth:o,fontSizeIcon:r}=e,i=Math.round(t*n),l=e.fontSizeSM,a=i-o*2,s=e.colorFillAlter,u=e.colorText,c=ke(e,{tagFontSize:l,tagLineHeight:a,tagDefaultBg:s,tagDefaultColor:u,tagIconSize:r-2*o,tagPaddingHorizontal:8,tagBorderlessBg:e.colorFillTertiary});return[VQ(c),jQ(c),wu(c,"success","Success"),wu(c,"processing","Info"),wu(c,"error","Error"),wu(c,"warning","Warning")]}),WQ=()=>({prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}),Pf=oe({compatConfig:{MODE:3},name:"ACheckableTag",inheritAttrs:!1,props:WQ(),setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{prefixCls:i}=Te("tag",e),[l,a]=c5(i),s=c=>{const{checked:d}=e;o("update:checked",!d),o("change",!d),o("click",c)},u=P(()=>le(i.value,a.value,{[`${i.value}-checkable`]:!0,[`${i.value}-checkable-checked`]:e.checked}));return()=>{var c;return l(p("span",D(D({},r),{},{class:[u.value,r.class],onClick:s}),[(c=n.default)===null||c===void 0?void 0:c.call(n)]))}}}),KQ=()=>({prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:W.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},onClick:bl(),"onUpdate:visible":Function,icon:W.any,bordered:{type:Boolean,default:!0}}),Sa=oe({compatConfig:{MODE:3},name:"ATag",inheritAttrs:!1,props:KQ(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r}=t;const{prefixCls:i,direction:l}=Te("tag",e),[a,s]=c5(i),u=ne(!0);Le(()=>{e.visible!==void 0&&(u.value=e.visible)});const c=v=>{v.stopPropagation(),o("update:visible",!1),o("close",v),!v.defaultPrevented&&e.visible===void 0&&(u.value=!1)},d=P(()=>Lp(e.color)||tW(e.color)),f=P(()=>le(i.value,s.value,{[`${i.value}-${e.color}`]:d.value,[`${i.value}-has-color`]:e.color&&!d.value,[`${i.value}-hidden`]:!u.value,[`${i.value}-rtl`]:l.value==="rtl",[`${i.value}-borderless`]:!e.bordered})),g=v=>{o("click",v)};return()=>{var v,h,b;const{icon:y=(v=n.icon)===null||v===void 0?void 0:v.call(n),color:S,closeIcon:$=(h=n.closeIcon)===null||h===void 0?void 0:h.call(n),closable:x=!1}=e,C=()=>x?$?p("span",{class:`${i.value}-close-icon`,onClick:c},[$]):p(Rn,{class:`${i.value}-close-icon`,onClick:c},null):null,O={backgroundColor:S&&!d.value?S:void 0},w=y||null,I=(b=n.default)===null||b===void 0?void 0:b.call(n),T=w?p(Ve,null,[w,p("span",null,[I])]):I,_=e.onClick!==void 0,E=p("span",D(D({},r),{},{onClick:g,class:[f.value,r.class],style:[O,r.style]}),[T,C()]);return a(_?p(Mb,null,{default:()=>[E]}):E)}}});Sa.CheckableTag=Pf;Sa.install=function(e){return e.component(Sa.name,Sa),e.component(Pf.name,Pf),e};function GQ(e,t){let{slots:n,attrs:o}=t;return p(Sa,D(D({color:"blue"},e),o),n)}var XQ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};function iw(e){for(var t=1;tE.value||I.value),[z,M]=XI(C),N=re();h({focus:()=>{var J;(J=N.value)===null||J===void 0||J.focus()},blur:()=>{var J;(J=N.value)===null||J===void 0||J.blur()}});const B=J=>S.valueFormat?e.toString(J,S.valueFormat):J,k=(J,Z)=>{const G=B(J);y("update:value",G),y("change",G,Z),$.onFieldChange()},F=J=>{y("update:open",J),y("openChange",J)},L=J=>{y("focus",J)},H=J=>{y("blur",J),$.onFieldBlur()},j=(J,Z)=>{const G=B(J);y("panelChange",G,Z)},Y=J=>{const Z=B(J);y("ok",Z)},[Q]=Do("DatePicker",ec),U=P(()=>S.value?S.valueFormat?e.toDate(S.value,S.valueFormat):S.value:S.value===""?void 0:S.value),ee=P(()=>S.defaultValue?S.valueFormat?e.toDate(S.defaultValue,S.valueFormat):S.defaultValue:S.defaultValue===""?void 0:S.defaultValue),X=P(()=>S.defaultPickerValue?S.valueFormat?e.toDate(S.defaultPickerValue,S.valueFormat):S.defaultPickerValue:S.defaultPickerValue===""?void 0:S.defaultPickerValue);return()=>{var J,Z,G,q,V,K;const te=m(m({},Q.value),S.locale),ue=m(m({},S),b),{bordered:ie=!0,placeholder:ae,suffixIcon:ce=(J=v.suffixIcon)===null||J===void 0?void 0:J.call(v),showToday:se=!0,transitionName:pe,allowClear:ge=!0,dateRender:he=v.dateRender,renderExtraFooter:me=v.renderExtraFooter,monthCellRender:xe=v.monthCellRender||S.monthCellContentRender||v.monthCellContentRender,clearIcon:fe=(Z=v.clearIcon)===null||Z===void 0?void 0:Z.call(v),id:de=$.id.value}=ue,be=JQ(ue,["bordered","placeholder","suffixIcon","showToday","transitionName","allowClear","dateRender","renderExtraFooter","monthCellRender","clearIcon","id"]),we=ue.showTime===""?!0:ue.showTime,{format:Ie}=ue;let Ae={};u&&(Ae.picker=u);const Se=u||ue.picker||"date";Ae=m(m(m({},Ae),we?Tf(m({format:Ie,picker:Se},typeof we=="object"?we:{})):{}),Se==="time"?Tf(m(m({format:Ie},be),{picker:Se})):{});const Ce=C.value,Oe=p(Ve,null,[ce||p(u==="time"?rg:og,null,null),x.hasFeedback&&x.feedbackIcon]);return z(p(UG,D(D(D({monthCellRender:xe,dateRender:he,renderExtraFooter:me,ref:N,placeholder:ZQ(te,Se,ae),suffixIcon:Oe,dropdownAlign:u5(O.value,S.placement),clearIcon:fe||p(Dn,null,null),allowClear:ge,transitionName:pe||`${T.value}-slide-up`},be),Ae),{},{id:de,picker:Se,value:U.value,defaultValue:ee.value,defaultPickerValue:X.value,showToday:se,locale:te.lang,class:le({[`${Ce}-${R.value}`]:R.value,[`${Ce}-borderless`]:!ie},Tn(Ce,Qo(x.status,S.status),x.hasFeedback),b.class,M.value,A.value),disabled:_.value,prefixCls:Ce,getPopupContainer:b.getCalendarContainer||w.value,generateConfig:e,prevIcon:((G=v.prevIcon)===null||G===void 0?void 0:G.call(v))||p("span",{class:`${Ce}-prev-icon`},null),nextIcon:((q=v.nextIcon)===null||q===void 0?void 0:q.call(v))||p("span",{class:`${Ce}-next-icon`},null),superPrevIcon:((V=v.superPrevIcon)===null||V===void 0?void 0:V.call(v))||p("span",{class:`${Ce}-super-prev-icon`},null),superNextIcon:((K=v.superNextIcon)===null||K===void 0?void 0:K.call(v))||p("span",{class:`${Ce}-super-next-icon`},null),components:p5,direction:O.value,dropdownClassName:le(M.value,S.popupClassName,S.dropdownClassName),onChange:k,onOpenChange:F,onFocus:L,onBlur:H,onPanelChange:j,onOk:Y}),null))}}})}const o=n(void 0,"ADatePicker"),r=n("week","AWeekPicker"),i=n("month","AMonthPicker"),l=n("year","AYearPicker"),a=n("time","TimePicker"),s=n("quarter","AQuarterPicker");return{DatePicker:o,WeekPicker:r,MonthPicker:i,YearPicker:l,TimePicker:a,QuarterPicker:s}}var tJ={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};function aw(e){for(var t=1;tS.value||h.value),[C,O]=XI(f),w=re();i({focus:()=>{var L;(L=w.value)===null||L===void 0||L.focus()},blur:()=>{var L;(L=w.value)===null||L===void 0||L.blur()}});const I=L=>u.valueFormat?e.toString(L,u.valueFormat):L,T=(L,H)=>{const j=I(L);s("update:value",j),s("change",j,H),c.onFieldChange()},_=L=>{s("update:open",L),s("openChange",L)},E=L=>{s("focus",L)},A=L=>{s("blur",L),c.onFieldBlur()},R=(L,H)=>{const j=I(L);s("panelChange",j,H)},z=L=>{const H=I(L);s("ok",H)},M=(L,H,j)=>{const Y=I(L);s("calendarChange",Y,H,j)},[N]=Do("DatePicker",ec),B=P(()=>u.value&&u.valueFormat?e.toDate(u.value,u.valueFormat):u.value),k=P(()=>u.defaultValue&&u.valueFormat?e.toDate(u.defaultValue,u.valueFormat):u.defaultValue),F=P(()=>u.defaultPickerValue&&u.valueFormat?e.toDate(u.defaultPickerValue,u.valueFormat):u.defaultPickerValue);return()=>{var L,H,j,Y,Q,U,ee;const X=m(m({},N.value),u.locale),J=m(m({},u),a),{prefixCls:Z,bordered:G=!0,placeholder:q,suffixIcon:V=(L=l.suffixIcon)===null||L===void 0?void 0:L.call(l),picker:K="date",transitionName:te,allowClear:ue=!0,dateRender:ie=l.dateRender,renderExtraFooter:ae=l.renderExtraFooter,separator:ce=(H=l.separator)===null||H===void 0?void 0:H.call(l),clearIcon:se=(j=l.clearIcon)===null||j===void 0?void 0:j.call(l),id:pe=c.id.value}=J,ge=oJ(J,["prefixCls","bordered","placeholder","suffixIcon","picker","transitionName","allowClear","dateRender","renderExtraFooter","separator","clearIcon","id"]);delete ge["onUpdate:value"],delete ge["onUpdate:open"];const{format:he,showTime:me}=J;let xe={};xe=m(m(m({},xe),me?Tf(m({format:he,picker:K},me)):{}),K==="time"?Tf(m(m({format:he},tt(ge,["disabledTime"])),{picker:K})):{});const fe=f.value,de=p(Ve,null,[V||p(K==="time"?rg:og,null,null),d.hasFeedback&&d.feedbackIcon]);return C(p(rX,D(D(D({dateRender:ie,renderExtraFooter:ae,separator:ce||p("span",{"aria-label":"to",class:`${fe}-separator`},[p(Iy,null,null)]),ref:w,dropdownAlign:u5(g.value,u.placement),placeholder:QQ(X,K,q),suffixIcon:de,clearIcon:se||p(Dn,null,null),allowClear:ue,transitionName:te||`${b.value}-slide-up`},ge),xe),{},{disabled:y.value,id:pe,value:B.value,defaultValue:k.value,defaultPickerValue:F.value,picker:K,class:le({[`${fe}-${x.value}`]:x.value,[`${fe}-borderless`]:!G},Tn(fe,Qo(d.status,u.status),d.hasFeedback),a.class,O.value,$.value),locale:X.lang,prefixCls:fe,getPopupContainer:a.getCalendarContainer||v.value,generateConfig:e,prevIcon:((Y=l.prevIcon)===null||Y===void 0?void 0:Y.call(l))||p("span",{class:`${fe}-prev-icon`},null),nextIcon:((Q=l.nextIcon)===null||Q===void 0?void 0:Q.call(l))||p("span",{class:`${fe}-next-icon`},null),superPrevIcon:((U=l.superPrevIcon)===null||U===void 0?void 0:U.call(l))||p("span",{class:`${fe}-super-prev-icon`},null),superNextIcon:((ee=l.superNextIcon)===null||ee===void 0?void 0:ee.call(l))||p("span",{class:`${fe}-super-next-icon`},null),components:p5,direction:g.value,dropdownClassName:le(O.value,u.popupClassName,u.dropdownClassName),onChange:T,onOpenChange:_,onFocus:E,onBlur:A,onPanelChange:R,onOk:z,onCalendarChange:M}),null))}}})}const p5={button:HQ,rangeItem:GQ};function iJ(e){return e?Array.isArray(e)?e:[e]:[]}function Tf(e){const{format:t,picker:n,showHour:o,showMinute:r,showSecond:i,use12Hours:l}=e,a=iJ(t)[0],s=m({},e);return a&&typeof a=="string"&&(!a.includes("s")&&i===void 0&&(s.showSecond=!1),!a.includes("m")&&r===void 0&&(s.showMinute=!1),!a.includes("H")&&!a.includes("h")&&o===void 0&&(s.showHour=!1),(a.includes("a")||a.includes("A"))&&l===void 0&&(s.use12Hours=!0)),n==="time"?s:(typeof a=="function"&&delete s.format,{showTime:s})}function g5(e,t){const{DatePicker:n,WeekPicker:o,MonthPicker:r,YearPicker:i,TimePicker:l,QuarterPicker:a}=eJ(e,t),s=rJ(e,t);return{DatePicker:n,WeekPicker:o,MonthPicker:r,YearPicker:i,TimePicker:l,QuarterPicker:a,RangePicker:s}}const{DatePicker:Mh,WeekPicker:ad,MonthPicker:sd,YearPicker:lJ,TimePicker:aJ,QuarterPicker:cd,RangePicker:ud}=g5(kb),sJ=m(Mh,{WeekPicker:ad,MonthPicker:sd,YearPicker:lJ,RangePicker:ud,TimePicker:aJ,QuarterPicker:cd,install:e=>(e.component(Mh.name,Mh),e.component(ud.name,ud),e.component(sd.name,sd),e.component(ad.name,ad),e.component(cd.name,cd),e)});function Ou(e){return e!=null}const _h=e=>{const{itemPrefixCls:t,component:n,span:o,labelStyle:r,contentStyle:i,bordered:l,label:a,content:s,colon:u}=e,c=n;return l?p(c,{class:[{[`${t}-item-label`]:Ou(a),[`${t}-item-content`]:Ou(s)}],colSpan:o},{default:()=>[Ou(a)&&p("span",{style:r},[a]),Ou(s)&&p("span",{style:i},[s])]}):p(c,{class:[`${t}-item`],colSpan:o},{default:()=>[p("div",{class:`${t}-item-container`},[(a||a===0)&&p("span",{class:[`${t}-item-label`,{[`${t}-item-no-colon`]:!u}],style:r},[a]),(s||s===0)&&p("span",{class:`${t}-item-content`,style:i},[s])])]})},cJ=e=>{const t=(u,c,d)=>{let{colon:f,prefixCls:g,bordered:v}=c,{component:h,type:b,showLabel:y,showContent:S,labelStyle:$,contentStyle:x}=d;return u.map((C,O)=>{var w,I;const T=C.props||{},{prefixCls:_=g,span:E=1,labelStyle:A=T["label-style"],contentStyle:R=T["content-style"],label:z=(I=(w=C.children)===null||w===void 0?void 0:w.label)===null||I===void 0?void 0:I.call(w)}=T,M=lp(C),N=oA(C),B=SO(C),{key:k}=C;return typeof h=="string"?p(_h,{key:`${b}-${String(k)||O}`,class:N,style:B,labelStyle:m(m({},$),A),contentStyle:m(m({},x),R),span:E,colon:f,component:h,itemPrefixCls:_,bordered:v,label:y?z:null,content:S?M:null},null):[p(_h,{key:`label-${String(k)||O}`,class:N,style:m(m(m({},$),B),A),span:1,colon:f,component:h[0],itemPrefixCls:_,bordered:v,label:z},null),p(_h,{key:`content-${String(k)||O}`,class:N,style:m(m(m({},x),B),R),span:E*2-1,component:h[1],itemPrefixCls:_,bordered:v,content:M},null)]})},{prefixCls:n,vertical:o,row:r,index:i,bordered:l}=e,{labelStyle:a,contentStyle:s}=He(m5,{labelStyle:re({}),contentStyle:re({})});return o?p(Ve,null,[p("tr",{key:`label-${i}`,class:`${n}-row`},[t(r,e,{component:"th",type:"label",showLabel:!0,labelStyle:a.value,contentStyle:s.value})]),p("tr",{key:`content-${i}`,class:`${n}-row`},[t(r,e,{component:"td",type:"content",showContent:!0,labelStyle:a.value,contentStyle:s.value})])]):p("tr",{key:i,class:`${n}-row`},[t(r,e,{component:l?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0,labelStyle:a.value,contentStyle:s.value})])},uJ=e=>{const{componentCls:t,descriptionsSmallPadding:n,descriptionsDefaultPadding:o,descriptionsMiddlePadding:r,descriptionsBg:i}=e;return{[`&${t}-bordered`]:{[`${t}-view`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto",borderCollapse:"collapse"}},[`${t}-item-label, ${t}-item-content`]:{padding:o,borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`${t}-item-label`]:{backgroundColor:i,"&::after":{display:"none"}},[`${t}-row`]:{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBottom:"none"}},[`&${t}-middle`]:{[`${t}-item-label, ${t}-item-content`]:{padding:r}},[`&${t}-small`]:{[`${t}-item-label, ${t}-item-content`]:{padding:n}}}}},dJ=e=>{const{componentCls:t,descriptionsExtraColor:n,descriptionItemPaddingBottom:o,descriptionsItemLabelColonMarginRight:r,descriptionsItemLabelColonMarginLeft:i,descriptionsTitleMarginBottom:l}=e;return{[t]:m(m(m({},Ue(e)),uJ(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:l},[`${t}-title`]:m(m({},Gt),{flex:"auto",color:e.colorText,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed"}},[`${t}-row`]:{"> th, > td":{paddingBottom:o},"&:last-child":{borderBottom:"none"}},[`${t}-item-label`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${i}px ${r}px`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},fJ=Ke("Descriptions",e=>{const t=e.colorFillAlter,n=e.fontSizeSM*e.lineHeightSM,o=e.colorText,r=`${e.paddingXS}px ${e.padding}px`,i=`${e.padding}px ${e.paddingLG}px`,l=`${e.paddingSM}px ${e.paddingLG}px`,a=e.padding,s=e.marginXS,u=e.marginXXS/2,c=ke(e,{descriptionsBg:t,descriptionsTitleMarginBottom:n,descriptionsExtraColor:o,descriptionItemPaddingBottom:a,descriptionsSmallPadding:r,descriptionsDefaultPadding:i,descriptionsMiddlePadding:l,descriptionsItemLabelColonMarginRight:s,descriptionsItemLabelColonMarginLeft:u});return[dJ(c)]});W.any;const pJ=()=>({prefixCls:String,label:W.any,labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0},span:{type:Number,default:1}}),h5=oe({compatConfig:{MODE:3},name:"ADescriptionsItem",props:pJ(),setup(e,t){let{slots:n}=t;return()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),v5={xxxl:3,xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};function gJ(e,t){if(typeof e=="number")return e;if(typeof e=="object")for(let n=0;nt)&&(o=ut(e,{span:t})),o}function hJ(e,t){const n=bt(e),o=[];let r=[],i=t;return n.forEach((l,a)=>{var s;const u=(s=l.props)===null||s===void 0?void 0:s.span,c=u||1;if(a===n.length-1){r.push(sw(l,i,u)),o.push(r);return}c({prefixCls:String,bordered:{type:Boolean,default:void 0},size:{type:String,default:"default"},title:W.any,extra:W.any,column:{type:[Number,Object],default:()=>v5},layout:String,colon:{type:Boolean,default:void 0},labelStyle:{type:Object,default:void 0},contentStyle:{type:Object,default:void 0}}),m5=Symbol("descriptionsContext"),Jl=oe({compatConfig:{MODE:3},name:"ADescriptions",inheritAttrs:!1,props:vJ(),slots:Object,Item:h5,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Te("descriptions",e);let l;const a=re({}),[s,u]=fJ(r),c=wb();Jf(()=>{l=c.value.subscribe(f=>{typeof e.column=="object"&&(a.value=f)})}),Qe(()=>{c.value.unsubscribe(l)}),Xe(m5,{labelStyle:ze(e,"labelStyle"),contentStyle:ze(e,"contentStyle")});const d=P(()=>gJ(e.column,a.value));return()=>{var f,g,v;const{size:h,bordered:b=!1,layout:y="horizontal",colon:S=!0,title:$=(f=n.title)===null||f===void 0?void 0:f.call(n),extra:x=(g=n.extra)===null||g===void 0?void 0:g.call(n)}=e,C=(v=n.default)===null||v===void 0?void 0:v.call(n),O=hJ(C,d.value);return s(p("div",D(D({},o),{},{class:[r.value,{[`${r.value}-${h}`]:h!=="default",[`${r.value}-bordered`]:!!b,[`${r.value}-rtl`]:i.value==="rtl"},o.class,u.value]}),[($||x)&&p("div",{class:`${r.value}-header`},[$&&p("div",{class:`${r.value}-title`},[$]),x&&p("div",{class:`${r.value}-extra`},[x])]),p("div",{class:`${r.value}-view`},[p("table",null,[p("tbody",null,[O.map((w,I)=>p(cJ,{key:I,index:I,colon:S,prefixCls:r.value,vertical:y==="vertical",bordered:b,row:w},null))])])])]))}}});Jl.install=function(e){return e.component(Jl.name,Jl),e.component(Jl.Item.name,Jl.Item),e};const mJ=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:r}=e;return{[t]:m(m({},Ue(e)),{borderBlockStart:`${r}px solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${r}px solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${r}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${r}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},bJ=Ke("Divider",e=>{const t=ke(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[mJ(t)]},{sizePaddingEdgeHorizontal:0}),yJ=()=>({prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]}),SJ=oe({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:yJ(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Te("divider",e),[l,a]=bJ(r),s=P(()=>e.orientation==="left"&&e.orientationMargin!=null),u=P(()=>e.orientation==="right"&&e.orientationMargin!=null),c=P(()=>{const{type:g,dashed:v,plain:h}=e,b=r.value;return{[b]:!0,[a.value]:!!a.value,[`${b}-${g}`]:!0,[`${b}-dashed`]:!!v,[`${b}-plain`]:!!h,[`${b}-rtl`]:i.value==="rtl",[`${b}-no-default-orientation-margin-left`]:s.value,[`${b}-no-default-orientation-margin-right`]:u.value}}),d=P(()=>{const g=typeof e.orientationMargin=="number"?`${e.orientationMargin}px`:e.orientationMargin;return m(m({},s.value&&{marginLeft:g}),u.value&&{marginRight:g})}),f=P(()=>e.orientation.length>0?"-"+e.orientation:e.orientation);return()=>{var g;const v=bt((g=n.default)===null||g===void 0?void 0:g.call(n));return l(p("div",D(D({},o),{},{class:[c.value,v.length?`${r.value}-with-text ${r.value}-with-text${f.value}`:"",o.class],role:"separator"}),[v.length?p("span",{class:`${r.value}-inner-text`,style:d.value},[v]):null]))}}}),$J=It(SJ);Wo.Button=fc;Wo.install=function(e){return e.component(Wo.name,Wo),e.component(fc.name,fc),e};const b5=()=>({prefixCls:String,width:W.oneOfType([W.string,W.number]),height:W.oneOfType([W.string,W.number]),style:{type:Object,default:void 0},class:String,rootClassName:String,rootStyle:De(),placement:{type:String},wrapperClassName:String,level:{type:[String,Array]},levelMove:{type:[Number,Function,Array]},duration:String,ease:String,showMask:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},afterVisibleChange:Function,keyboard:{type:Boolean,default:void 0},contentWrapperStyle:lt(),autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},motion:ve(),maskMotion:De()}),CJ=()=>m(m({},b5()),{forceRender:{type:Boolean,default:void 0},getContainer:W.oneOfType([W.string,W.func,W.object,W.looseBool])}),xJ=()=>m(m({},b5()),{getContainer:Function,getOpenCount:Function,scrollLocker:W.any,inline:Boolean});function wJ(e){return Array.isArray(e)?e:[e]}const OJ={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"};Object.keys(OJ).filter(e=>{if(typeof document>"u")return!1;const t=document.getElementsByTagName("html")[0];return e in(t?t.style:{})})[0];const PJ=!(typeof window<"u"&&window.document&&window.document.createElement);var IJ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{ot(()=>{var y;const{open:S,getContainer:$,showMask:x,autofocus:C}=e,O=$?.();v(e),S&&(O&&(O.parentNode,document.body),ot(()=>{C&&c()}),x&&((y=e.scrollLocker)===null||y===void 0||y.lock()))})}),ye(()=>e.level,()=>{v(e)},{flush:"post"}),ye(()=>e.open,()=>{const{open:y,getContainer:S,scrollLocker:$,showMask:x,autofocus:C}=e,O=S?.();O&&(O.parentNode,document.body),y?(C&&c(),x&&$?.lock()):$?.unLock()},{flush:"post"}),$n(()=>{var y;const{open:S}=e;S&&(document.body.style.touchAction=""),(y=e.scrollLocker)===null||y===void 0||y.unLock()}),ye(()=>e.placement,y=>{y&&(s.value=null)});const c=()=>{var y,S;(S=(y=i.value)===null||y===void 0?void 0:y.focus)===null||S===void 0||S.call(y)},d=y=>{n("close",y)},f=y=>{y.keyCode===Pe.ESC&&(y.stopPropagation(),d(y))},g=()=>{const{open:y,afterVisibleChange:S}=e;S&&S(!!y)},v=y=>{let{level:S,getContainer:$}=y;if(PJ)return;const x=$?.(),C=x?x.parentNode:null;u=[],S==="all"?(C?Array.prototype.slice.call(C.children):[]).forEach(w=>{w.nodeName!=="SCRIPT"&&w.nodeName!=="STYLE"&&w.nodeName!=="LINK"&&w!==x&&u.push(w)}):S&&wJ(S).forEach(O=>{document.querySelectorAll(O).forEach(w=>{u.push(w)})})},h=y=>{n("handleClick",y)},b=ne(!1);return ye(i,()=>{ot(()=>{b.value=!0})}),()=>{var y,S;const{width:$,height:x,open:C,prefixCls:O,placement:w,level:I,levelMove:T,ease:_,duration:E,getContainer:A,onChange:R,afterVisibleChange:z,showMask:M,maskClosable:N,maskStyle:B,keyboard:k,getOpenCount:F,scrollLocker:L,contentWrapperStyle:H,style:j,class:Y,rootClassName:Q,rootStyle:U,maskMotion:ee,motion:X,inline:J}=e,Z=IJ(e,["width","height","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","keyboard","getOpenCount","scrollLocker","contentWrapperStyle","style","class","rootClassName","rootStyle","maskMotion","motion","inline"]),G=C&&b.value,q=le(O,{[`${O}-${w}`]:!0,[`${O}-open`]:G,[`${O}-inline`]:J,"no-mask":!M,[Q]:!0}),V=typeof X=="function"?X(w):X;return p("div",D(D({},tt(Z,["autofocus"])),{},{tabindex:-1,class:q,style:U,ref:i,onKeydown:G&&k?f:void 0}),[p(un,ee,{default:()=>[M&&En(p("div",{class:`${O}-mask`,onClick:N?d:void 0,style:B,ref:l},null),[[jn,G]])]}),p(un,D(D({},V),{},{onAfterEnter:g,onAfterLeave:g}),{default:()=>[En(p("div",{class:`${O}-content-wrapper`,style:[H],ref:r},[p("div",{class:[`${O}-content`,Y],style:j,ref:s},[(y=o.default)===null||y===void 0?void 0:y.call(o)]),o.handler?p("div",{onClick:h,ref:a},[(S=o.handler)===null||S===void 0?void 0:S.call(o)]):null]),[[jn,G]])]})])}}});var uw=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",keyboard:!0,forceRender:!1,autofocus:!0}),emits:["handleClick","close"],setup(e,t){let{emit:n,slots:o}=t;const r=re(null),i=a=>{n("handleClick",a)},l=a=>{n("close",a)};return()=>{const{getContainer:a,wrapperClassName:s,rootClassName:u,rootStyle:c,forceRender:d}=e,f=uw(e,["getContainer","wrapperClassName","rootClassName","rootStyle","forceRender"]);let g=null;if(!a)return p(cw,D(D({},f),{},{rootClassName:u,rootStyle:c,open:e.open,onClose:l,onHandleClick:i,inline:!0}),o);const v=!!o.handler||d;return(v||e.open||r.value)&&(g=p(Ic,{autoLock:!0,visible:e.open,forceRender:v,getContainer:a,wrapperClassName:s},{default:h=>{var{visible:b,afterClose:y}=h,S=uw(h,["visible","afterClose"]);return p(cw,D(D(D({ref:r},f),S),{},{rootClassName:u,rootStyle:c,open:b!==void 0?b:e.open,afterVisibleChange:y!==void 0?y:e.afterVisibleChange,onClose:l,onHandleClick:i}),o)}})),g}}}),EJ=e=>{const{componentCls:t,motionDurationSlow:n}=e,o={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${n}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${n}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[o,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[o,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[o,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[o,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},MJ=e=>{const{componentCls:t,zIndexPopup:n,colorBgMask:o,colorBgElevated:r,motionDurationSlow:i,motionDurationMid:l,padding:a,paddingLG:s,fontSizeLG:u,lineHeightLG:c,lineWidth:d,lineType:f,colorSplit:g,marginSM:v,colorIcon:h,colorIconHover:b,colorText:y,fontWeightStrong:S,drawerFooterPaddingVertical:$,drawerFooterPaddingHorizontal:x}=e,C=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:n,pointerEvents:"none","&-pure":{position:"relative",background:r,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:n,background:o,pointerEvents:"auto"},[C]:{position:"absolute",zIndex:n,transition:`all ${i}`,"&-hidden":{display:"none"}},[`&-left > ${C}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${C}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${C}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${C}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:r,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${a}px ${s}px`,fontSize:u,lineHeight:c,borderBottom:`${d}px ${f} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:v,color:h,fontWeight:S,fontSize:u,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${l}`,textRendering:"auto","&:focus, &:hover":{color:b,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:y,fontWeight:e.fontWeightStrong,fontSize:u,lineHeight:c},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:s,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${$}px ${x}px`,borderTop:`${d}px ${f} ${g}`},"&-rtl":{direction:"rtl"}}}},_J=Ke("Drawer",e=>{const t=ke(e,{drawerFooterPaddingVertical:e.paddingXS,drawerFooterPaddingHorizontal:e.padding});return[MJ(t),EJ(t)]},e=>({zIndexPopup:e.zIndexPopupBase}));var AJ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:W.any,destroyOnClose:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},getContainer:{type:[String,Function,Boolean,Object],default:void 0},maskClosable:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},maskStyle:De(),rootClassName:String,rootStyle:De(),size:{type:String},drawerStyle:De(),headerStyle:De(),bodyStyle:De(),contentWrapperStyle:{type:Object,default:void 0},title:W.any,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},width:W.oneOfType([W.string,W.number]),height:W.oneOfType([W.string,W.number]),zIndex:Number,prefixCls:String,push:W.oneOfType([W.looseBool,{type:Object}]),placement:W.oneOf(RJ),keyboard:{type:Boolean,default:void 0},extra:W.any,footer:W.any,footerStyle:De(),level:W.any,levelMove:{type:[Number,Array,Function]},handle:W.any,afterVisibleChange:Function,onAfterVisibleChange:Function,onAfterOpenChange:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onClose:Function}),NJ=oe({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:Ze(DJ(),{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:dw}),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const i=ne(!1),l=ne(!1),a=ne(null),s=ne(!1),u=ne(!1),c=P(()=>{var F;return(F=e.open)!==null&&F!==void 0?F:e.visible});ye(c,()=>{c.value?s.value=!0:u.value=!1},{immediate:!0}),ye([c,s],()=>{c.value&&s.value&&(u.value=!0)},{immediate:!0});const d=He("parentDrawerOpts",null),{prefixCls:f,getPopupContainer:g,direction:v}=Te("drawer",e),[h,b]=_J(f),y=P(()=>e.getContainer===void 0&&g?.value?()=>g.value(document.body):e.getContainer);Ct(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),Xe("parentDrawerOpts",{setPush:()=>{i.value=!0},setPull:()=>{i.value=!1,ot(()=>{x()})}}),je(()=>{c.value&&d&&d.setPush()}),$n(()=>{d&&d.setPull()}),ye(u,()=>{d&&(u.value?d.setPush():d.setPull())},{flush:"post"});const x=()=>{var F,L;(L=(F=a.value)===null||F===void 0?void 0:F.domFocus)===null||L===void 0||L.call(F)},C=F=>{n("update:visible",!1),n("update:open",!1),n("close",F)},O=F=>{var L;F||(l.value===!1&&(l.value=!0),e.destroyOnClose&&(s.value=!1)),(L=e.afterVisibleChange)===null||L===void 0||L.call(e,F),n("afterVisibleChange",F),n("afterOpenChange",F)},w=P(()=>{const{push:F,placement:L}=e;let H;return typeof F=="boolean"?H=F?dw.distance:0:H=F.distance,H=parseFloat(String(H||0)),L==="left"||L==="right"?`translateX(${L==="left"?H:-H}px)`:L==="top"||L==="bottom"?`translateY(${L==="top"?H:-H}px)`:null}),I=P(()=>{var F;return(F=e.width)!==null&&F!==void 0?F:e.size==="large"?736:378}),T=P(()=>{var F;return(F=e.height)!==null&&F!==void 0?F:e.size==="large"?736:378}),_=P(()=>{const{mask:F,placement:L}=e;if(!u.value&&!F)return{};const H={};return L==="left"||L==="right"?H.width=sf(I.value)?`${I.value}px`:I.value:H.height=sf(T.value)?`${T.value}px`:T.value,H}),E=P(()=>{const{zIndex:F,contentWrapperStyle:L}=e,H=_.value;return[{zIndex:F,transform:i.value?w.value:void 0},m({},L),H]}),A=F=>{const{closable:L,headerStyle:H}=e,j=Zt(o,e,"extra"),Y=Zt(o,e,"title");return!Y&&!L?null:p("div",{class:le(`${F}-header`,{[`${F}-header-close-only`]:L&&!Y&&!j}),style:H},[p("div",{class:`${F}-header-title`},[R(F),Y&&p("div",{class:`${F}-title`},[Y])]),j&&p("div",{class:`${F}-extra`},[j])])},R=F=>{var L;const{closable:H}=e,j=o.closeIcon?(L=o.closeIcon)===null||L===void 0?void 0:L.call(o):e.closeIcon;return H&&p("button",{key:"closer",onClick:C,"aria-label":"Close",class:`${F}-close`},[j===void 0?p(Rn,null,null):j])},z=F=>{var L;if(l.value&&!e.forceRender&&!s.value)return null;const{bodyStyle:H,drawerStyle:j}=e;return p("div",{class:`${F}-wrapper-body`,style:j},[A(F),p("div",{key:"body",class:`${F}-body`,style:H},[(L=o.default)===null||L===void 0?void 0:L.call(o)]),M(F)])},M=F=>{const L=Zt(o,e,"footer");if(!L)return null;const H=`${F}-footer`;return p("div",{class:H,style:e.footerStyle},[L])},N=P(()=>le({"no-mask":!e.mask,[`${f.value}-rtl`]:v.value==="rtl"},e.rootClassName,b.value)),B=P(()=>Ro(_n(f.value,"mask-motion"))),k=F=>Ro(_n(f.value,`panel-motion-${F}`));return()=>{const{width:F,height:L,placement:H,mask:j,forceRender:Y}=e,Q=AJ(e,["width","height","placement","mask","forceRender"]),U=m(m(m({},r),tt(Q,["size","closeIcon","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","onAfterVisibleChange","onClose","onUpdate:visible","onUpdate:open","visible"])),{forceRender:Y,onClose:C,afterVisibleChange:O,handler:!1,prefixCls:f.value,open:u.value,showMask:j,placement:H,ref:a});return h(p(dc,null,{default:()=>[p(TJ,D(D({},U),{},{maskMotion:B.value,motion:k,width:I.value,height:T.value,getContainer:y.value,rootClassName:N.value,rootStyle:e.rootStyle,contentWrapperStyle:E.value}),{handler:e.handle?()=>e.handle:o.handle,default:()=>z(f.value)})]}))}}}),BJ=It(NJ);var kJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};function fw(e){for(var t=1;t({prefixCls:String,description:W.any,type:Ne("default"),shape:Ne("circle"),tooltip:W.any,href:String,target:String,badge:De(),onClick:ve()}),LJ=()=>({prefixCls:Ne()}),zJ=()=>m(m({},Ty()),{trigger:Ne(),open:$e(),onOpenChange:ve(),"onUpdate:open":ve()}),HJ=()=>m(m({},Ty()),{prefixCls:String,duration:Number,target:ve(),visibilityHeight:Number,onClick:ve()}),jJ=oe({compatConfig:{MODE:3},name:"AFloatButtonContent",inheritAttrs:!1,props:LJ(),setup(e,t){let{attrs:n,slots:o}=t;return()=>{var r;const{prefixCls:i}=e,l=At((r=o.description)===null||r===void 0?void 0:r.call(o));return p("div",D(D({},n),{},{class:[n.class,`${i}-content`]}),[o.icon||l.length?p(Ve,null,[o.icon&&p("div",{class:`${i}-icon`},[o.icon()]),l.length?p("div",{class:`${i}-description`},[l]):null]):p("div",{class:`${i}-icon`},[p(ig,null,null)])])}}}),y5=Symbol("floatButtonGroupContext"),VJ=e=>(Xe(y5,e),e),S5=()=>He(y5,{shape:re()}),pw=e=>e===0?0:e-Math.sqrt(Math.pow(e,2)/2),WJ=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:o,motionEaseInOutCirc:r}=e,i=`${t}-group`,l=new nt("antFloatButtonMoveDownIn",{"0%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),a=new nt("antFloatButtonMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${n}px, 0)`,transformOrigin:"0 0",opacity:0}});return[{[`${i}-wrap`]:m({},Mc(`${i}-wrap`,l,a,o,!0))},{[`${i}-wrap`]:{[` &${i}-wrap-enter, &${i}-wrap-appear - `]:{opacity:0,animationTimingFunction:r},[`&${i}-wrap-leave`]:{animationTimingFunction:r}}}]},KJ=e=>{const{antCls:t,componentCls:n,floatButtonSize:o,margin:r,borderRadiusLG:i,borderRadiusSM:l,badgeOffset:a,floatButtonBodyPadding:s}=e,u=`${n}-group`;return{[u]:m(m({},Ue(e)),{zIndex:99,display:"block",border:"none",position:"fixed",width:o,height:"auto",boxShadow:"none",minHeight:o,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:i,[`${u}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:r},[`&${u}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${u}-circle`]:{[`${n}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${n}-body`]:{width:o,height:o,borderRadius:"50%"}}},[`${u}-square`]:{[`${n}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:-(s+a),insetInlineEnd:-(s+a)}}},[`${u}-wrap`]:{display:"block",borderRadius:i,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:s,"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${u}-circle-shadow`]:{boxShadow:"none"},[`${u}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:s,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:l}}}}},GJ=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:o,floatButtonIconSize:r,floatButtonSize:i,borderRadiusLG:l,badgeOffset:a,dotOffsetInSquare:s,dotOffsetInCircle:u}=e;return{[n]:m(m({},Ue(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:99,display:"block",justifyContent:"center",alignItems:"center",width:i,height:i,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:-a,insetInlineEnd:-a}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:i,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${o/2}px ${o}px`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:r,fontSize:r,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:i,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:u,insetInlineEnd:u}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:i,borderRadius:l,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:s,insetInlineEnd:s}},[`${n}-body`]:{height:"auto",borderRadius:l}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},Ey=Ke("FloatButton",e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:o,marginXXL:r,marginLG:i,fontSize:l,fontSizeIcon:a,controlItemBgHover:s,paddingXXS:u,borderRadiusLG:c}=e,d=ke(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:s,floatButtonFontSize:l,floatButtonIconSize:a*1.5,floatButtonSize:o,floatButtonInsetBlockEnd:r,floatButtonInsetInlineEnd:i,floatButtonBodySize:o-u*2,floatButtonBodyPadding:u,badgeOffset:u*1.5,dotOffsetInCircle:pw(o/2),dotOffsetInSquare:pw(c)});return[KJ(d),GJ(d),$b(e),WJ(d)]});var XJ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rs?.value||e.shape);return()=>{var d;const{prefixCls:f,type:g="default",shape:v="circle",description:h=(d=o.description)===null||d===void 0?void 0:d.call(o),tooltip:b,badge:y={}}=e,S=XJ(e,["prefixCls","type","shape","description","tooltip","badge"]),$=le(r.value,`${r.value}-${g}`,`${r.value}-${c.value}`,{[`${r.value}-rtl`]:i.value==="rtl"},n.class,a.value),x=p(Qn,{placement:"left"},{title:o.tooltip||b?()=>o.tooltip&&o.tooltip()||b:void 0,default:()=>p(Bs,y,{default:()=>[p("div",{class:`${r.value}-body`},[p(jJ,{prefixCls:r.value},{icon:o.icon,description:()=>h})])]})});return l(e.href?p("a",D(D(D({ref:u},n),S),{},{class:$}),[x]):p("button",D(D(D({ref:u},n),S),{},{class:$,type:"button"}),[x]))}}}),Ef=oe({compatConfig:{MODE:3},name:"AFloatButtonGroup",inheritAttrs:!1,props:Ze(zJ(),{type:"default",shape:"circle"}),setup(e,t){let{attrs:n,slots:o,emit:r}=t;const{prefixCls:i,direction:l}=Te(My,e),[a,s]=Ey(i),[u,c]=Pt(!1,{value:P(()=>e.open)}),d=re(null),f=re(null);VJ({shape:P(()=>e.shape)});const g={onMouseenter(){var y;c(!0),r("update:open",!0),(y=e.onOpenChange)===null||y===void 0||y.call(e,!0)},onMouseleave(){var y;c(!1),r("update:open",!1),(y=e.onOpenChange)===null||y===void 0||y.call(e,!1)}},v=P(()=>e.trigger==="hover"?g:{}),h=()=>{var y;const S=!u.value;r("update:open",S),(y=e.onOpenChange)===null||y===void 0||y.call(e,S),c(S)},b=y=>{var S,$,x;if(!((S=d.value)===null||S===void 0)&&S.contains(y.target)){!(($=Hn(f.value))===null||$===void 0)&&$.contains(y.target)&&h();return}c(!1),r("update:open",!1),(x=e.onOpenChange)===null||x===void 0||x.call(e,!1)};return ye(P(()=>e.trigger),y=>{Mn()&&(document.removeEventListener("click",b),y==="click"&&document.addEventListener("click",b))},{immediate:!0}),Qe(()=>{document.removeEventListener("click",b)}),()=>{var y;const{shape:S="circle",type:$="default",tooltip:x,description:C,trigger:O}=e,w=`${i.value}-group`,I=le(w,s.value,n.class,{[`${w}-rtl`]:l.value==="rtl",[`${w}-${S}`]:S,[`${w}-${S}-shadow`]:!O}),T=le(s.value,`${w}-wrap`),M=Ro(`${w}-wrap`);return a(p("div",D(D({ref:d},n),{},{class:I},v.value),[O&&["click","hover"].includes(O)?p(Ve,null,[p(un,M,{default:()=>[En(p("div",{class:T},[o.default&&o.default()]),[[jn,u.value]])]}),p(wi,{ref:f,type:$,shape:S,tooltip:x,description:C},{icon:()=>{var E,A;return u.value?((E=o.closeIcon)===null||E===void 0?void 0:E.call(o))||p(Rn,null,null):((A=o.icon)===null||A===void 0?void 0:A.call(o))||p(ig,null,null)},tooltip:o.tooltip,description:o.description})]):(y=o.default)===null||y===void 0?void 0:y.call(o)]))}}});var UJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};function gw(e){for(var t=1;twindow,duration:450,type:"default",shape:"circle"}),setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:i,direction:l}=Te(My,e),[a]=Ey(i),s=re(),u=ct({visible:e.visibilityHeight===0,scrollEvent:null}),c=()=>s.value&&s.value.ownerDocument?s.value.ownerDocument:window,d=b=>{const{target:y=c,duration:S}=e;A0(0,{getContainer:y,duration:S}),r("click",b)},f=xv(b=>{const{visibilityHeight:y}=e,S=_0(b.target);u.visible=S>=y}),g=()=>{const{target:b}=e,S=(b||c)();f({target:S}),S?.addEventListener("scroll",f)},v=()=>{const{target:b}=e,S=(b||c)();f.cancel(),S?.removeEventListener("scroll",f)};ye(()=>e.target,()=>{v(),ot(()=>{g()})}),je(()=>{ot(()=>{g()})}),Zf(()=>{ot(()=>{g()})}),T3(()=>{v()}),Qe(()=>{v()});const h=S5();return()=>{const{description:b,type:y,shape:S,tooltip:$,badge:x}=e,C=m(m({},o),{shape:h?.shape.value||S,onClick:d,class:{[`${i.value}`]:!0,[`${o.class}`]:o.class,[`${i.value}-rtl`]:l.value==="rtl"},description:b,type:y,tooltip:$,badge:x}),O=Ro("fade");return a(p(un,O,{default:()=>[En(p(wi,D(D({},C),{},{ref:s}),{icon:()=>{var w;return((w=n.icon)===null||w===void 0?void 0:w.call(n))||p(_y,null,null)}}),[[jn,u.visible]])]}))}}});wi.Group=Ef;wi.BackTop=Mf;wi.install=function(e){return e.component(wi.name,wi),e.component(Ef.name,Ef),e.component(Mf.name,Mf),e};const Hs=e=>e!=null&&(Array.isArray(e)?_t(e).length:!0);function Ay(e){return Hs(e.prefix)||Hs(e.suffix)||Hs(e.allowClear)}function dd(e){return Hs(e.addonBefore)||Hs(e.addonAfter)}function Cm(e){return typeof e>"u"||e===null?"":String(e)}function js(e,t,n,o){if(!n)return;const r=t;if(t.type==="click"){Object.defineProperty(r,"target",{writable:!0}),Object.defineProperty(r,"currentTarget",{writable:!0});const i=e.cloneNode(!0);r.target=i,r.currentTarget=i,i.value="",n(r);return}if(o!==void 0){Object.defineProperty(r,"target",{writable:!0}),Object.defineProperty(r,"currentTarget",{writable:!0}),r.target=e,r.currentTarget=e,e.value=o,n(r);return}n(r)}function $5(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}const qJ=()=>({addonBefore:W.any,addonAfter:W.any,prefix:W.any,suffix:W.any,clearIcon:W.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),C5=()=>m(m({},qJ()),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:W.any,prefixCls:String,disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},triggerFocus:Function,readonly:{type:Boolean,default:void 0},handleReset:Function,hidden:{type:Boolean,default:void 0}}),x5=()=>m(m({},C5()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:Ne("text"),name:String,size:{type:String},autofocus:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object,hidden:{type:Boolean,default:void 0},status:String}),ZJ=oe({name:"BaseInput",inheritAttrs:!1,props:C5(),setup(e,t){let{slots:n,attrs:o}=t;const r=re(),i=a=>{var s;if(!((s=r.value)===null||s===void 0)&&s.contains(a.target)){const{triggerFocus:u}=e;u?.()}},l=()=>{var a;const{allowClear:s,value:u,disabled:c,readonly:d,handleReset:f,suffix:g=n.suffix,prefixCls:v}=e;if(!s)return null;const h=!c&&!d&&u,b=`${v}-clear-icon`,y=((a=n.clearIcon)===null||a===void 0?void 0:a.call(n))||"*";return p("span",{onClick:f,onMousedown:S=>S.preventDefault(),class:le({[`${b}-hidden`]:!h,[`${b}-has-suffix`]:!!g},b),role:"button",tabindex:-1},[y])};return()=>{var a,s;const{focused:u,value:c,disabled:d,allowClear:f,readonly:g,hidden:v,prefixCls:h,prefix:b=(a=n.prefix)===null||a===void 0?void 0:a.call(n),suffix:y=(s=n.suffix)===null||s===void 0?void 0:s.call(n),addonAfter:S=n.addonAfter,addonBefore:$=n.addonBefore,inputElement:x,affixWrapperClassName:C,wrapperClassName:O,groupClassName:w}=e;let I=ut(x,{value:c,hidden:v});if(Ay({prefix:b,suffix:y,allowClear:f})){const T=`${h}-affix-wrapper`,M=le(T,{[`${T}-disabled`]:d,[`${T}-focused`]:u,[`${T}-readonly`]:g,[`${T}-input-with-clear-btn`]:y&&f&&c},!dd({addonAfter:S,addonBefore:$})&&o.class,C),E=(y||f)&&p("span",{class:`${h}-suffix`},[l(),y]);I=p("span",{class:M,style:o.style,hidden:!dd({addonAfter:S,addonBefore:$})&&v,onMousedown:i,ref:r},[b&&p("span",{class:`${h}-prefix`},[b]),ut(x,{style:null,value:c,hidden:null}),E])}if(dd({addonAfter:S,addonBefore:$})){const T=`${h}-group`,M=`${T}-addon`,E=le(`${h}-wrapper`,T,O),A=le(`${h}-group-wrapper`,o.class,w);return p("span",{class:A,style:o.style,hidden:v},[p("span",{class:E},[$&&p("span",{class:M},[$]),ut(I,{style:null,hidden:null}),S&&p("span",{class:M},[S])])])}return I}}});var QJ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.value,()=>{l.value=e.value}),ye(()=>e.disabled,()=>{e.disabled&&(a.value=!1)});const c=w=>{s.value&&$5(s.value.input,w)},d=()=>{var w;(w=s.value.input)===null||w===void 0||w.blur()},f=(w,I,T)=>{var M;(M=s.value.input)===null||M===void 0||M.setSelectionRange(w,I,T)},g=()=>{var w;(w=s.value.input)===null||w===void 0||w.select()};r({focus:c,blur:d,input:P(()=>{var w;return(w=s.value.input)===null||w===void 0?void 0:w.input}),stateValue:l,setSelectionRange:f,select:g});const v=w=>{i("change",w)},h=(w,I)=>{l.value!==w&&(e.value===void 0?l.value=w:ot(()=>{var T;s.value.input.value!==l.value&&((T=u.value)===null||T===void 0||T.$forceUpdate())}),ot(()=>{I&&I()}))},b=w=>{const{value:I}=w.target;if(l.value===I)return;const T=w.target.value;js(s.value.input,w,v),h(T)},y=w=>{w.keyCode===13&&i("pressEnter",w),i("keydown",w)},S=w=>{a.value=!0,i("focus",w)},$=w=>{a.value=!1,i("blur",w)},x=w=>{js(s.value.input,w,v),h("",()=>{c()})},C=()=>{var w,I;const{addonBefore:T=n.addonBefore,addonAfter:M=n.addonAfter,disabled:E,valueModifiers:A={},htmlSize:R,autocomplete:z,prefixCls:_,inputClassName:N,prefix:B=(w=n.prefix)===null||w===void 0?void 0:w.call(n),suffix:k=(I=n.suffix)===null||I===void 0?void 0:I.call(n),allowClear:F,type:L="text"}=e,H=tt(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"]),j=m(m(m({},H),o),{autocomplete:z,onChange:b,onInput:b,onFocus:S,onBlur:$,onKeydown:y,class:le(_,{[`${_}-disabled`]:E},N,!dd({addonAfter:M,addonBefore:T})&&!Ay({prefix:B,suffix:k,allowClear:F})&&o.class),ref:s,key:"ant-input",size:R,type:L,lazy:e.lazy});return A.lazy&&delete j.onInput,j.autofocus||delete j.autofocus,p(Ha,tt(j,["size"]),null)},O=()=>{var w;const{maxlength:I,suffix:T=(w=n.suffix)===null||w===void 0?void 0:w.call(n),showCount:M,prefixCls:E}=e,A=Number(I)>0;if(T||M){const R=[...Cm(l.value)].length,z=typeof M=="object"?M.formatter({count:R,maxlength:I}):`${R}${A?` / ${I}`:""}`;return p(Ve,null,[!!M&&p("span",{class:le(`${E}-show-count-suffix`,{[`${E}-show-count-has-suffix`]:!!T})},[z]),T])}return null};return je(()=>{}),()=>{const{prefixCls:w,disabled:I}=e,T=QJ(e,["prefixCls","disabled"]);return p(ZJ,D(D(D({},T),o),{},{ref:u,prefixCls:w,inputElement:C(),handleReset:x,value:Cm(l.value),focused:a.value,triggerFocus:c,suffix:O(),disabled:I}),n)}}}),lg=()=>tt(x5(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]),w5=()=>m(m({},tt(lg(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:bl(),onCompositionend:bl(),valueModifiers:Object});var eee=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rQo(s.status,e.status)),{direction:c,prefixCls:d,size:f,autocomplete:g}=Te("input",e),{compactSize:v,compactItemClassnames:h}=Ri(d,c),b=P(()=>v.value||f.value),[y,S]=sy(d),$=Jn();r({focus:R=>{var z;(z=l.value)===null||z===void 0||z.focus(R)},blur:()=>{var R;(R=l.value)===null||R===void 0||R.blur()},input:l,setSelectionRange:(R,z,_)=>{var N;(N=l.value)===null||N===void 0||N.setSelectionRange(R,z,_)},select:()=>{var R;(R=l.value)===null||R===void 0||R.select()}});const I=re([]),T=()=>{I.value.push(setTimeout(()=>{var R,z,_,N;!((R=l.value)===null||R===void 0)&&R.input&&((z=l.value)===null||z===void 0?void 0:z.input.getAttribute("type"))==="password"&&(!((_=l.value)===null||_===void 0)&&_.input.hasAttribute("value"))&&((N=l.value)===null||N===void 0||N.input.removeAttribute("value"))}))};je(()=>{T()}),ep(()=>{I.value.forEach(R=>clearTimeout(R))}),Qe(()=>{I.value.forEach(R=>clearTimeout(R))});const M=R=>{T(),i("blur",R),a.onFieldBlur()},E=R=>{T(),i("focus",R)},A=R=>{i("update:value",R.target.value),i("change",R),i("input",R),a.onFieldChange()};return()=>{var R,z,_,N,B,k;const{hasFeedback:F,feedbackIcon:L}=s,{allowClear:H,bordered:j=!0,prefix:Y=(R=n.prefix)===null||R===void 0?void 0:R.call(n),suffix:Q=(z=n.suffix)===null||z===void 0?void 0:z.call(n),addonAfter:U=(_=n.addonAfter)===null||_===void 0?void 0:_.call(n),addonBefore:ee=(N=n.addonBefore)===null||N===void 0?void 0:N.call(n),id:X=(B=a.id)===null||B===void 0?void 0:B.value}=e,J=eee(e,["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"]),Z=(F||Q)&&p(Ve,null,[Q,F&&L]),G=d.value,q=Ay({prefix:Y,suffix:Q})||!!F,V=n.clearIcon||(()=>p(Dn,null,null));return y(p(JJ,D(D(D({},o),tt(J,["onUpdate:value","onChange","onInput"])),{},{onChange:A,id:X,disabled:(k=e.disabled)!==null&&k!==void 0?k:$.value,ref:l,prefixCls:G,autocomplete:g.value,onBlur:M,onFocus:E,prefix:Y,suffix:Z,allowClear:H,addonAfter:U&&p(dc,null,{default:()=>[p(tf,null,{default:()=>[U]})]}),addonBefore:ee&&p(dc,null,{default:()=>[p(tf,null,{default:()=>[ee]})]}),class:[o.class,h.value],inputClassName:le({[`${G}-sm`]:b.value==="small",[`${G}-lg`]:b.value==="large",[`${G}-rtl`]:c.value==="rtl",[`${G}-borderless`]:!j},!q&&Tn(G,u.value),S.value),affixWrapperClassName:le({[`${G}-affix-wrapper-sm`]:b.value==="small",[`${G}-affix-wrapper-lg`]:b.value==="large",[`${G}-affix-wrapper-rtl`]:c.value==="rtl",[`${G}-affix-wrapper-borderless`]:!j},Tn(`${G}-affix-wrapper`,u.value,F),S.value),wrapperClassName:le({[`${G}-group-rtl`]:c.value==="rtl"},S.value),groupClassName:le({[`${G}-group-wrapper-sm`]:b.value==="small",[`${G}-group-wrapper-lg`]:b.value==="large",[`${G}-group-wrapper-rtl`]:c.value==="rtl"},Tn(`${G}-group-wrapper`,u.value,F),S.value)}),m(m({},n),{clearIcon:V})))}}}),O5=oe({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i,getPrefixCls:l}=Te("input-group",e),a=dn.useInject();dn.useProvide(a,{isFormItemInput:!1});const s=P(()=>l("input")),[u,c]=sy(s),d=P(()=>{const f=r.value;return{[`${f}`]:!0,[c.value]:!0,[`${f}-lg`]:e.size==="large",[`${f}-sm`]:e.size==="small",[`${f}-compact`]:e.compact,[`${f}-rtl`]:i.value==="rtl"}});return()=>{var f;return u(p("span",D(D({},o),{},{class:le(d.value,o.class)}),[(f=n.default)===null||f===void 0?void 0:f.call(n)]))}}});var tee=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var C;(C=l.value)===null||C===void 0||C.focus()},blur:()=>{var C;(C=l.value)===null||C===void 0||C.blur()}});const c=C=>{i("update:value",C.target.value),C&&C.target&&C.type==="click"&&i("search",C.target.value,C),i("change",C)},d=C=>{var O;document.activeElement===((O=l.value)===null||O===void 0?void 0:O.input)&&C.preventDefault()},f=C=>{var O,w;i("search",(w=(O=l.value)===null||O===void 0?void 0:O.input)===null||w===void 0?void 0:w.stateValue,C)},g=C=>{a.value||e.loading||f(C)},v=C=>{a.value=!0,i("compositionstart",C)},h=C=>{a.value=!1,i("compositionend",C)},{prefixCls:b,getPrefixCls:y,direction:S,size:$}=Te("input-search",e),x=P(()=>y("input",e.inputPrefixCls));return()=>{var C,O,w,I;const{disabled:T,loading:M,addonAfter:E=(C=n.addonAfter)===null||C===void 0?void 0:C.call(n),suffix:A=(O=n.suffix)===null||O===void 0?void 0:O.call(n)}=e,R=tee(e,["disabled","loading","addonAfter","suffix"]);let{enterButton:z=(I=(w=n.enterButton)===null||w===void 0?void 0:w.call(n))!==null&&I!==void 0?I:!1}=e;z=z||z==="";const _=typeof z=="boolean"?p(Va,null,null):null,N=`${b.value}-button`,B=Array.isArray(z)?z[0]:z;let k;const F=B.type&&mb(B.type)&&B.type.__ANT_BUTTON;if(F||B.tagName==="button")k=ut(B,m({onMousedown:d,onClick:f,key:"enterButton"},F?{class:N,size:$.value}:{}),!1);else{const H=_&&!z;k=p(Lt,{class:N,type:z?"primary":void 0,size:$.value,disabled:T,key:"enterButton",onMousedown:d,onClick:f,loading:M,icon:H?_:null},{default:()=>[H?null:_||z]})}E&&(k=[k,E]);const L=le(b.value,{[`${b.value}-rtl`]:S.value==="rtl",[`${b.value}-${$.value}`]:!!$.value,[`${b.value}-with-button`]:!!z},o.class);return p(tn,D(D(D({ref:l},tt(R,["onUpdate:value","onSearch","enterButton"])),o),{},{onPressEnter:g,onCompositionstart:v,onCompositionend:h,size:$.value,prefixCls:x.value,addonAfter:k,suffix:A,onChange:c,class:L,disabled:T}),n)}}}),hw=e=>e!=null&&(Array.isArray(e)?_t(e).length:!0);function nee(e){return hw(e.addonBefore)||hw(e.addonAfter)}const oee=["text","input"],ree=oe({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:W.oneOf(Sn("text","input")),value:yt(),defaultValue:yt(),allowClear:{type:Boolean,default:void 0},element:yt(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:yt(),prefix:yt(),addonBefore:yt(),addonAfter:yt(),readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean,status:String,hashId:String},setup(e,t){let{slots:n,attrs:o}=t;const r=dn.useInject(),i=a=>{const{value:s,disabled:u,readonly:c,handleReset:d,suffix:f=n.suffix}=e,g=!u&&!c&&s,v=`${a}-clear-icon`;return p(Dn,{onClick:d,onMousedown:h=>h.preventDefault(),class:le({[`${v}-hidden`]:!g,[`${v}-has-suffix`]:!!f},v),role:"button"},null)},l=(a,s)=>{const{value:u,allowClear:c,direction:d,bordered:f,hidden:g,status:v,addonAfter:h=n.addonAfter,addonBefore:b=n.addonBefore,hashId:y}=e,{status:S,hasFeedback:$}=r;if(!c)return ut(s,{value:u,disabled:e.disabled});const x=le(`${a}-affix-wrapper`,`${a}-affix-wrapper-textarea-with-clear-btn`,Tn(`${a}-affix-wrapper`,Qo(S,v),$),{[`${a}-affix-wrapper-rtl`]:d==="rtl",[`${a}-affix-wrapper-borderless`]:!f,[`${o.class}`]:!nee({addonAfter:h,addonBefore:b})&&o.class},y);return p("span",{class:x,style:o.style,hidden:g},[ut(s,{style:null,value:u,disabled:e.disabled}),i(a)])};return()=>{var a;const{prefixCls:s,inputType:u,element:c=(a=n.element)===null||a===void 0?void 0:a.call(n)}=e;return u===oee[0]?l(s,c):null}}}),iee=` + `]:{opacity:0,animationTimingFunction:r},[`&${i}-wrap-leave`]:{animationTimingFunction:r}}}]},KJ=e=>{const{antCls:t,componentCls:n,floatButtonSize:o,margin:r,borderRadiusLG:i,borderRadiusSM:l,badgeOffset:a,floatButtonBodyPadding:s}=e,u=`${n}-group`;return{[u]:m(m({},Ue(e)),{zIndex:99,display:"block",border:"none",position:"fixed",width:o,height:"auto",boxShadow:"none",minHeight:o,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,borderRadius:i,[`${u}-wrap`]:{zIndex:-1,display:"block",position:"relative",marginBottom:r},[`&${u}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${u}-circle`]:{[`${n}-circle:not(:last-child)`]:{marginBottom:e.margin,[`${n}-body`]:{width:o,height:o,borderRadius:"50%"}}},[`${u}-square`]:{[`${n}-square`]:{borderRadius:0,padding:0,"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:-(s+a),insetInlineEnd:-(s+a)}}},[`${u}-wrap`]:{display:"block",borderRadius:i,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",marginTop:0,borderRadius:0,padding:s,"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize}}}},[`${u}-circle-shadow`]:{boxShadow:"none"},[`${u}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:s,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:l}}}}},GJ=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:o,floatButtonIconSize:r,floatButtonSize:i,borderRadiusLG:l,badgeOffset:a,dotOffsetInSquare:s,dotOffsetInCircle:u}=e;return{[n]:m(m({},Ue(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:99,display:"block",justifyContent:"center",alignItems:"center",width:i,height:i,insetInlineEnd:e.floatButtonInsetInlineEnd,insetBlockEnd:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:-a,insetInlineEnd:-a}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:i,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${o/2}px ${o}px`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:r,fontSize:r,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:i,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:u,insetInlineEnd:u}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:i,borderRadius:l,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:s,insetInlineEnd:s}},[`${n}-body`]:{height:"auto",borderRadius:l}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:`${e.fontSizeLG}px`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},Ey=Ke("FloatButton",e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:o,marginXXL:r,marginLG:i,fontSize:l,fontSizeIcon:a,controlItemBgHover:s,paddingXXS:u,borderRadiusLG:c}=e,d=ke(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:s,floatButtonFontSize:l,floatButtonIconSize:a*1.5,floatButtonSize:o,floatButtonInsetBlockEnd:r,floatButtonInsetInlineEnd:i,floatButtonBodySize:o-u*2,floatButtonBodyPadding:u,badgeOffset:u*1.5,dotOffsetInCircle:pw(o/2),dotOffsetInSquare:pw(c)});return[KJ(d),GJ(d),$b(e),WJ(d)]});var XJ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rs?.value||e.shape);return()=>{var d;const{prefixCls:f,type:g="default",shape:v="circle",description:h=(d=o.description)===null||d===void 0?void 0:d.call(o),tooltip:b,badge:y={}}=e,S=XJ(e,["prefixCls","type","shape","description","tooltip","badge"]),$=le(r.value,`${r.value}-${g}`,`${r.value}-${c.value}`,{[`${r.value}-rtl`]:i.value==="rtl"},n.class,a.value),x=p(Qn,{placement:"left"},{title:o.tooltip||b?()=>o.tooltip&&o.tooltip()||b:void 0,default:()=>p(Bs,y,{default:()=>[p("div",{class:`${r.value}-body`},[p(jJ,{prefixCls:r.value},{icon:o.icon,description:()=>h})])]})});return l(e.href?p("a",D(D(D({ref:u},n),S),{},{class:$}),[x]):p("button",D(D(D({ref:u},n),S),{},{class:$,type:"button"}),[x]))}}}),Ef=oe({compatConfig:{MODE:3},name:"AFloatButtonGroup",inheritAttrs:!1,props:Ze(zJ(),{type:"default",shape:"circle"}),setup(e,t){let{attrs:n,slots:o,emit:r}=t;const{prefixCls:i,direction:l}=Te(My,e),[a,s]=Ey(i),[u,c]=Pt(!1,{value:P(()=>e.open)}),d=re(null),f=re(null);VJ({shape:P(()=>e.shape)});const g={onMouseenter(){var y;c(!0),r("update:open",!0),(y=e.onOpenChange)===null||y===void 0||y.call(e,!0)},onMouseleave(){var y;c(!1),r("update:open",!1),(y=e.onOpenChange)===null||y===void 0||y.call(e,!1)}},v=P(()=>e.trigger==="hover"?g:{}),h=()=>{var y;const S=!u.value;r("update:open",S),(y=e.onOpenChange)===null||y===void 0||y.call(e,S),c(S)},b=y=>{var S,$,x;if(!((S=d.value)===null||S===void 0)&&S.contains(y.target)){!(($=Hn(f.value))===null||$===void 0)&&$.contains(y.target)&&h();return}c(!1),r("update:open",!1),(x=e.onOpenChange)===null||x===void 0||x.call(e,!1)};return ye(P(()=>e.trigger),y=>{Mn()&&(document.removeEventListener("click",b),y==="click"&&document.addEventListener("click",b))},{immediate:!0}),Qe(()=>{document.removeEventListener("click",b)}),()=>{var y;const{shape:S="circle",type:$="default",tooltip:x,description:C,trigger:O}=e,w=`${i.value}-group`,I=le(w,s.value,n.class,{[`${w}-rtl`]:l.value==="rtl",[`${w}-${S}`]:S,[`${w}-${S}-shadow`]:!O}),T=le(s.value,`${w}-wrap`),_=Ro(`${w}-wrap`);return a(p("div",D(D({ref:d},n),{},{class:I},v.value),[O&&["click","hover"].includes(O)?p(Ve,null,[p(un,_,{default:()=>[En(p("div",{class:T},[o.default&&o.default()]),[[jn,u.value]])]}),p(wi,{ref:f,type:$,shape:S,tooltip:x,description:C},{icon:()=>{var E,A;return u.value?((E=o.closeIcon)===null||E===void 0?void 0:E.call(o))||p(Rn,null,null):((A=o.icon)===null||A===void 0?void 0:A.call(o))||p(ig,null,null)},tooltip:o.tooltip,description:o.description})]):(y=o.default)===null||y===void 0?void 0:y.call(o)]))}}});var UJ={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z"}}]},name:"vertical-align-top",theme:"outlined"};function gw(e){for(var t=1;twindow,duration:450,type:"default",shape:"circle"}),setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:i,direction:l}=Te(My,e),[a]=Ey(i),s=re(),u=ct({visible:e.visibilityHeight===0,scrollEvent:null}),c=()=>s.value&&s.value.ownerDocument?s.value.ownerDocument:window,d=b=>{const{target:y=c,duration:S}=e;A0(0,{getContainer:y,duration:S}),r("click",b)},f=xv(b=>{const{visibilityHeight:y}=e,S=_0(b.target);u.visible=S>=y}),g=()=>{const{target:b}=e,S=(b||c)();f({target:S}),S?.addEventListener("scroll",f)},v=()=>{const{target:b}=e,S=(b||c)();f.cancel(),S?.removeEventListener("scroll",f)};ye(()=>e.target,()=>{v(),ot(()=>{g()})}),je(()=>{ot(()=>{g()})}),Zf(()=>{ot(()=>{g()})}),T3(()=>{v()}),Qe(()=>{v()});const h=S5();return()=>{const{description:b,type:y,shape:S,tooltip:$,badge:x}=e,C=m(m({},o),{shape:h?.shape.value||S,onClick:d,class:{[`${i.value}`]:!0,[`${o.class}`]:o.class,[`${i.value}-rtl`]:l.value==="rtl"},description:b,type:y,tooltip:$,badge:x}),O=Ro("fade");return a(p(un,O,{default:()=>[En(p(wi,D(D({},C),{},{ref:s}),{icon:()=>{var w;return((w=n.icon)===null||w===void 0?void 0:w.call(n))||p(_y,null,null)}}),[[jn,u.visible]])]}))}}});wi.Group=Ef;wi.BackTop=Mf;wi.install=function(e){return e.component(wi.name,wi),e.component(Ef.name,Ef),e.component(Mf.name,Mf),e};const Hs=e=>e!=null&&(Array.isArray(e)?At(e).length:!0);function Ay(e){return Hs(e.prefix)||Hs(e.suffix)||Hs(e.allowClear)}function dd(e){return Hs(e.addonBefore)||Hs(e.addonAfter)}function Cm(e){return typeof e>"u"||e===null?"":String(e)}function js(e,t,n,o){if(!n)return;const r=t;if(t.type==="click"){Object.defineProperty(r,"target",{writable:!0}),Object.defineProperty(r,"currentTarget",{writable:!0});const i=e.cloneNode(!0);r.target=i,r.currentTarget=i,i.value="",n(r);return}if(o!==void 0){Object.defineProperty(r,"target",{writable:!0}),Object.defineProperty(r,"currentTarget",{writable:!0}),r.target=e,r.currentTarget=e,e.value=o,n(r);return}n(r)}function $5(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n){const o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}const qJ=()=>({addonBefore:W.any,addonAfter:W.any,prefix:W.any,suffix:W.any,clearIcon:W.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),C5=()=>m(m({},qJ()),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:W.any,prefixCls:String,disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},triggerFocus:Function,readonly:{type:Boolean,default:void 0},handleReset:Function,hidden:{type:Boolean,default:void 0}}),x5=()=>m(m({},C5()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:Ne("text"),name:String,size:{type:String},autofocus:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object,hidden:{type:Boolean,default:void 0},status:String}),ZJ=oe({name:"BaseInput",inheritAttrs:!1,props:C5(),setup(e,t){let{slots:n,attrs:o}=t;const r=re(),i=a=>{var s;if(!((s=r.value)===null||s===void 0)&&s.contains(a.target)){const{triggerFocus:u}=e;u?.()}},l=()=>{var a;const{allowClear:s,value:u,disabled:c,readonly:d,handleReset:f,suffix:g=n.suffix,prefixCls:v}=e;if(!s)return null;const h=!c&&!d&&u,b=`${v}-clear-icon`,y=((a=n.clearIcon)===null||a===void 0?void 0:a.call(n))||"*";return p("span",{onClick:f,onMousedown:S=>S.preventDefault(),class:le({[`${b}-hidden`]:!h,[`${b}-has-suffix`]:!!g},b),role:"button",tabindex:-1},[y])};return()=>{var a,s;const{focused:u,value:c,disabled:d,allowClear:f,readonly:g,hidden:v,prefixCls:h,prefix:b=(a=n.prefix)===null||a===void 0?void 0:a.call(n),suffix:y=(s=n.suffix)===null||s===void 0?void 0:s.call(n),addonAfter:S=n.addonAfter,addonBefore:$=n.addonBefore,inputElement:x,affixWrapperClassName:C,wrapperClassName:O,groupClassName:w}=e;let I=ut(x,{value:c,hidden:v});if(Ay({prefix:b,suffix:y,allowClear:f})){const T=`${h}-affix-wrapper`,_=le(T,{[`${T}-disabled`]:d,[`${T}-focused`]:u,[`${T}-readonly`]:g,[`${T}-input-with-clear-btn`]:y&&f&&c},!dd({addonAfter:S,addonBefore:$})&&o.class,C),E=(y||f)&&p("span",{class:`${h}-suffix`},[l(),y]);I=p("span",{class:_,style:o.style,hidden:!dd({addonAfter:S,addonBefore:$})&&v,onMousedown:i,ref:r},[b&&p("span",{class:`${h}-prefix`},[b]),ut(x,{style:null,value:c,hidden:null}),E])}if(dd({addonAfter:S,addonBefore:$})){const T=`${h}-group`,_=`${T}-addon`,E=le(`${h}-wrapper`,T,O),A=le(`${h}-group-wrapper`,o.class,w);return p("span",{class:A,style:o.style,hidden:v},[p("span",{class:E},[$&&p("span",{class:_},[$]),ut(I,{style:null,hidden:null}),S&&p("span",{class:_},[S])])])}return I}}});var QJ=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.value,()=>{l.value=e.value}),ye(()=>e.disabled,()=>{e.disabled&&(a.value=!1)});const c=w=>{s.value&&$5(s.value.input,w)},d=()=>{var w;(w=s.value.input)===null||w===void 0||w.blur()},f=(w,I,T)=>{var _;(_=s.value.input)===null||_===void 0||_.setSelectionRange(w,I,T)},g=()=>{var w;(w=s.value.input)===null||w===void 0||w.select()};r({focus:c,blur:d,input:P(()=>{var w;return(w=s.value.input)===null||w===void 0?void 0:w.input}),stateValue:l,setSelectionRange:f,select:g});const v=w=>{i("change",w)},h=(w,I)=>{l.value!==w&&(e.value===void 0?l.value=w:ot(()=>{var T;s.value.input.value!==l.value&&((T=u.value)===null||T===void 0||T.$forceUpdate())}),ot(()=>{I&&I()}))},b=w=>{const{value:I}=w.target;if(l.value===I)return;const T=w.target.value;js(s.value.input,w,v),h(T)},y=w=>{w.keyCode===13&&i("pressEnter",w),i("keydown",w)},S=w=>{a.value=!0,i("focus",w)},$=w=>{a.value=!1,i("blur",w)},x=w=>{js(s.value.input,w,v),h("",()=>{c()})},C=()=>{var w,I;const{addonBefore:T=n.addonBefore,addonAfter:_=n.addonAfter,disabled:E,valueModifiers:A={},htmlSize:R,autocomplete:z,prefixCls:M,inputClassName:N,prefix:B=(w=n.prefix)===null||w===void 0?void 0:w.call(n),suffix:k=(I=n.suffix)===null||I===void 0?void 0:I.call(n),allowClear:F,type:L="text"}=e,H=tt(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"]),j=m(m(m({},H),o),{autocomplete:z,onChange:b,onInput:b,onFocus:S,onBlur:$,onKeydown:y,class:le(M,{[`${M}-disabled`]:E},N,!dd({addonAfter:_,addonBefore:T})&&!Ay({prefix:B,suffix:k,allowClear:F})&&o.class),ref:s,key:"ant-input",size:R,type:L,lazy:e.lazy});return A.lazy&&delete j.onInput,j.autofocus||delete j.autofocus,p(Ha,tt(j,["size"]),null)},O=()=>{var w;const{maxlength:I,suffix:T=(w=n.suffix)===null||w===void 0?void 0:w.call(n),showCount:_,prefixCls:E}=e,A=Number(I)>0;if(T||_){const R=[...Cm(l.value)].length,z=typeof _=="object"?_.formatter({count:R,maxlength:I}):`${R}${A?` / ${I}`:""}`;return p(Ve,null,[!!_&&p("span",{class:le(`${E}-show-count-suffix`,{[`${E}-show-count-has-suffix`]:!!T})},[z]),T])}return null};return je(()=>{}),()=>{const{prefixCls:w,disabled:I}=e,T=QJ(e,["prefixCls","disabled"]);return p(ZJ,D(D(D({},T),o),{},{ref:u,prefixCls:w,inputElement:C(),handleReset:x,value:Cm(l.value),focused:a.value,triggerFocus:c,suffix:O(),disabled:I}),n)}}}),lg=()=>tt(x5(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]),w5=()=>m(m({},tt(lg(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:bl(),onCompositionend:bl(),valueModifiers:Object});var eee=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rQo(s.status,e.status)),{direction:c,prefixCls:d,size:f,autocomplete:g}=Te("input",e),{compactSize:v,compactItemClassnames:h}=Ri(d,c),b=P(()=>v.value||f.value),[y,S]=sy(d),$=Jn();r({focus:R=>{var z;(z=l.value)===null||z===void 0||z.focus(R)},blur:()=>{var R;(R=l.value)===null||R===void 0||R.blur()},input:l,setSelectionRange:(R,z,M)=>{var N;(N=l.value)===null||N===void 0||N.setSelectionRange(R,z,M)},select:()=>{var R;(R=l.value)===null||R===void 0||R.select()}});const I=re([]),T=()=>{I.value.push(setTimeout(()=>{var R,z,M,N;!((R=l.value)===null||R===void 0)&&R.input&&((z=l.value)===null||z===void 0?void 0:z.input.getAttribute("type"))==="password"&&(!((M=l.value)===null||M===void 0)&&M.input.hasAttribute("value"))&&((N=l.value)===null||N===void 0||N.input.removeAttribute("value"))}))};je(()=>{T()}),ep(()=>{I.value.forEach(R=>clearTimeout(R))}),Qe(()=>{I.value.forEach(R=>clearTimeout(R))});const _=R=>{T(),i("blur",R),a.onFieldBlur()},E=R=>{T(),i("focus",R)},A=R=>{i("update:value",R.target.value),i("change",R),i("input",R),a.onFieldChange()};return()=>{var R,z,M,N,B,k;const{hasFeedback:F,feedbackIcon:L}=s,{allowClear:H,bordered:j=!0,prefix:Y=(R=n.prefix)===null||R===void 0?void 0:R.call(n),suffix:Q=(z=n.suffix)===null||z===void 0?void 0:z.call(n),addonAfter:U=(M=n.addonAfter)===null||M===void 0?void 0:M.call(n),addonBefore:ee=(N=n.addonBefore)===null||N===void 0?void 0:N.call(n),id:X=(B=a.id)===null||B===void 0?void 0:B.value}=e,J=eee(e,["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"]),Z=(F||Q)&&p(Ve,null,[Q,F&&L]),G=d.value,q=Ay({prefix:Y,suffix:Q})||!!F,V=n.clearIcon||(()=>p(Dn,null,null));return y(p(JJ,D(D(D({},o),tt(J,["onUpdate:value","onChange","onInput"])),{},{onChange:A,id:X,disabled:(k=e.disabled)!==null&&k!==void 0?k:$.value,ref:l,prefixCls:G,autocomplete:g.value,onBlur:_,onFocus:E,prefix:Y,suffix:Z,allowClear:H,addonAfter:U&&p(dc,null,{default:()=>[p(tf,null,{default:()=>[U]})]}),addonBefore:ee&&p(dc,null,{default:()=>[p(tf,null,{default:()=>[ee]})]}),class:[o.class,h.value],inputClassName:le({[`${G}-sm`]:b.value==="small",[`${G}-lg`]:b.value==="large",[`${G}-rtl`]:c.value==="rtl",[`${G}-borderless`]:!j},!q&&Tn(G,u.value),S.value),affixWrapperClassName:le({[`${G}-affix-wrapper-sm`]:b.value==="small",[`${G}-affix-wrapper-lg`]:b.value==="large",[`${G}-affix-wrapper-rtl`]:c.value==="rtl",[`${G}-affix-wrapper-borderless`]:!j},Tn(`${G}-affix-wrapper`,u.value,F),S.value),wrapperClassName:le({[`${G}-group-rtl`]:c.value==="rtl"},S.value),groupClassName:le({[`${G}-group-wrapper-sm`]:b.value==="small",[`${G}-group-wrapper-lg`]:b.value==="large",[`${G}-group-wrapper-rtl`]:c.value==="rtl"},Tn(`${G}-group-wrapper`,u.value,F),S.value)}),m(m({},n),{clearIcon:V})))}}}),O5=oe({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i,getPrefixCls:l}=Te("input-group",e),a=dn.useInject();dn.useProvide(a,{isFormItemInput:!1});const s=P(()=>l("input")),[u,c]=sy(s),d=P(()=>{const f=r.value;return{[`${f}`]:!0,[c.value]:!0,[`${f}-lg`]:e.size==="large",[`${f}-sm`]:e.size==="small",[`${f}-compact`]:e.compact,[`${f}-rtl`]:i.value==="rtl"}});return()=>{var f;return u(p("span",D(D({},o),{},{class:le(d.value,o.class)}),[(f=n.default)===null||f===void 0?void 0:f.call(n)]))}}});var tee=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var C;(C=l.value)===null||C===void 0||C.focus()},blur:()=>{var C;(C=l.value)===null||C===void 0||C.blur()}});const c=C=>{i("update:value",C.target.value),C&&C.target&&C.type==="click"&&i("search",C.target.value,C),i("change",C)},d=C=>{var O;document.activeElement===((O=l.value)===null||O===void 0?void 0:O.input)&&C.preventDefault()},f=C=>{var O,w;i("search",(w=(O=l.value)===null||O===void 0?void 0:O.input)===null||w===void 0?void 0:w.stateValue,C)},g=C=>{a.value||e.loading||f(C)},v=C=>{a.value=!0,i("compositionstart",C)},h=C=>{a.value=!1,i("compositionend",C)},{prefixCls:b,getPrefixCls:y,direction:S,size:$}=Te("input-search",e),x=P(()=>y("input",e.inputPrefixCls));return()=>{var C,O,w,I;const{disabled:T,loading:_,addonAfter:E=(C=n.addonAfter)===null||C===void 0?void 0:C.call(n),suffix:A=(O=n.suffix)===null||O===void 0?void 0:O.call(n)}=e,R=tee(e,["disabled","loading","addonAfter","suffix"]);let{enterButton:z=(I=(w=n.enterButton)===null||w===void 0?void 0:w.call(n))!==null&&I!==void 0?I:!1}=e;z=z||z==="";const M=typeof z=="boolean"?p(Va,null,null):null,N=`${b.value}-button`,B=Array.isArray(z)?z[0]:z;let k;const F=B.type&&mb(B.type)&&B.type.__ANT_BUTTON;if(F||B.tagName==="button")k=ut(B,m({onMousedown:d,onClick:f,key:"enterButton"},F?{class:N,size:$.value}:{}),!1);else{const H=M&&!z;k=p(Lt,{class:N,type:z?"primary":void 0,size:$.value,disabled:T,key:"enterButton",onMousedown:d,onClick:f,loading:_,icon:H?M:null},{default:()=>[H?null:M||z]})}E&&(k=[k,E]);const L=le(b.value,{[`${b.value}-rtl`]:S.value==="rtl",[`${b.value}-${$.value}`]:!!$.value,[`${b.value}-with-button`]:!!z},o.class);return p(tn,D(D(D({ref:l},tt(R,["onUpdate:value","onSearch","enterButton"])),o),{},{onPressEnter:g,onCompositionstart:v,onCompositionend:h,size:$.value,prefixCls:x.value,addonAfter:k,suffix:A,onChange:c,class:L,disabled:T}),n)}}}),hw=e=>e!=null&&(Array.isArray(e)?At(e).length:!0);function nee(e){return hw(e.addonBefore)||hw(e.addonAfter)}const oee=["text","input"],ree=oe({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:W.oneOf(Sn("text","input")),value:yt(),defaultValue:yt(),allowClear:{type:Boolean,default:void 0},element:yt(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:yt(),prefix:yt(),addonBefore:yt(),addonAfter:yt(),readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean,status:String,hashId:String},setup(e,t){let{slots:n,attrs:o}=t;const r=dn.useInject(),i=a=>{const{value:s,disabled:u,readonly:c,handleReset:d,suffix:f=n.suffix}=e,g=!u&&!c&&s,v=`${a}-clear-icon`;return p(Dn,{onClick:d,onMousedown:h=>h.preventDefault(),class:le({[`${v}-hidden`]:!g,[`${v}-has-suffix`]:!!f},v),role:"button"},null)},l=(a,s)=>{const{value:u,allowClear:c,direction:d,bordered:f,hidden:g,status:v,addonAfter:h=n.addonAfter,addonBefore:b=n.addonBefore,hashId:y}=e,{status:S,hasFeedback:$}=r;if(!c)return ut(s,{value:u,disabled:e.disabled});const x=le(`${a}-affix-wrapper`,`${a}-affix-wrapper-textarea-with-clear-btn`,Tn(`${a}-affix-wrapper`,Qo(S,v),$),{[`${a}-affix-wrapper-rtl`]:d==="rtl",[`${a}-affix-wrapper-borderless`]:!f,[`${o.class}`]:!nee({addonAfter:h,addonBefore:b})&&o.class},y);return p("span",{class:x,style:o.style,hidden:g},[ut(s,{style:null,value:u,disabled:e.disabled}),i(a)])};return()=>{var a;const{prefixCls:s,inputType:u,element:c=(a=n.element)===null||a===void 0?void 0:a.call(n)}=e;return u===oee[0]?l(s,c):null}}}),iee=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -340,10 +340,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho top:0 !important; right:0 !important; pointer-events: none !important; -`,lee=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Ah={};let Co;function aee(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Ah[n])return Ah[n];const o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),i=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),l=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),s={sizingStyle:lee.map(u=>`${u}:${o.getPropertyValue(u)}`).join(";"),paddingSize:i,borderSize:l,boxSizing:r};return t&&n&&(Ah[n]=s),s}function see(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Co||(Co=document.createElement("textarea"),Co.setAttribute("tab-index","-1"),Co.setAttribute("aria-hidden","true"),document.body.appendChild(Co)),e.getAttribute("wrap")?Co.setAttribute("wrap",e.getAttribute("wrap")):Co.removeAttribute("wrap");const{paddingSize:r,borderSize:i,boxSizing:l,sizingStyle:a}=aee(e,t);Co.setAttribute("style",`${a};${iee}`),Co.value=e.value||e.placeholder||"";let s,u,c,d=Co.scrollHeight;if(l==="border-box"?d+=i:l==="content-box"&&(d-=r),n!==null||o!==null){Co.value=" ";const g=Co.scrollHeight-r;n!==null&&(s=g*n,l==="border-box"&&(s=s+r+i),d=Math.max(s,d)),o!==null&&(u=g*o,l==="border-box"&&(u=u+r+i),c=d>u?"":"hidden",d=Math.min(u,d))}const f={height:`${d}px`,overflowY:c,resize:"none"};return s&&(f.minHeight=`${s}px`),u&&(f.maxHeight=`${u}px`),f}const Rh=0,Dh=1,Nh=2,cee=oe({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:w5(),setup(e,t){let{attrs:n,emit:o,expose:r}=t,i,l;const a=re(),s=re({}),u=re(Nh);Qe(()=>{qe.cancel(i),qe.cancel(l)});const c=()=>{try{if(a.value&&document.activeElement===a.value.input){const O=a.value.getSelectionStart(),w=a.value.getSelectionEnd(),I=a.value.getScrollTop();a.value.setSelectionRange(O,w),a.value.setScrollTop(I)}}catch{}},d=re(),f=re();Le(()=>{const O=e.autoSize||e.autosize;O?(d.value=O.minRows,f.value=O.maxRows):(d.value=void 0,f.value=void 0)});const g=P(()=>!!(e.autoSize||e.autosize)),v=()=>{u.value=Rh};ye([()=>e.value,d,f,g],()=>{g.value&&v()},{immediate:!0});const h=re();ye([u,a],()=>{if(a.value)if(u.value===Rh)u.value=Dh;else if(u.value===Dh){const O=see(a.value.input,!1,d.value,f.value);u.value=Nh,h.value=O}else c()},{immediate:!0,flush:"post"});const b=pn(),y=re(),S=()=>{qe.cancel(y.value)},$=O=>{u.value===Nh&&(o("resize",O),g.value&&(S(),y.value=qe(()=>{v()})))};Qe(()=>{S()}),r({resizeTextarea:()=>{v()},textArea:P(()=>{var O;return(O=a.value)===null||O===void 0?void 0:O.input}),instance:b}),fo(e.autosize===void 0);const C=()=>{const{prefixCls:O,disabled:w}=e,I=tt(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","maxlength","valueModifiers"]),T=le(O,n.class,{[`${O}-disabled`]:w}),M=g.value?h.value:null,E=[n.style,s.value,M],A=m(m(m({},I),n),{style:E,class:T});return(u.value===Rh||u.value===Dh)&&E.push({overflowX:"hidden",overflowY:"hidden"}),A.autofocus||delete A.autofocus,A.rows===0&&delete A.rows,p(Mo,{onResize:$,disabled:!g.value},{default:()=>[p(Ha,D(D({},A),{},{ref:a,tag:"textarea"}),null)]})};return()=>C()}});function I5(e,t){return[...e||""].slice(0,t).join("")}function vw(e,t,n,o){let r=n;return e?r=I5(n,o):[...t||""].lengtho&&(r=t),r}const Ry=oe({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:w5(),setup(e,t){let{attrs:n,expose:o,emit:r}=t;var i;const l=Qt(),a=dn.useInject(),s=P(()=>Qo(a.status,e.status)),u=ne((i=e.value)!==null&&i!==void 0?i:e.defaultValue),c=ne(),d=ne(""),{prefixCls:f,size:g,direction:v}=Te("input",e),[h,b]=sy(f),y=Jn(),S=P(()=>e.showCount===""||e.showCount||!1),$=P(()=>Number(e.maxlength)>0),x=ne(!1),C=ne(),O=ne(0),w=F=>{x.value=!0,C.value=d.value,O.value=F.currentTarget.selectionStart,r("compositionstart",F)},I=F=>{var L;x.value=!1;let H=F.currentTarget.value;if($.value){const j=O.value>=e.maxlength+1||O.value===((L=C.value)===null||L===void 0?void 0:L.length);H=vw(j,C.value,H,e.maxlength)}H!==d.value&&(A(H),js(F.currentTarget,F,_,H)),r("compositionend",F)},T=pn();ye(()=>e.value,()=>{var F;"value"in T.vnode.props,u.value=(F=e.value)!==null&&F!==void 0?F:""});const M=F=>{var L;$5((L=c.value)===null||L===void 0?void 0:L.textArea,F)},E=()=>{var F,L;(L=(F=c.value)===null||F===void 0?void 0:F.textArea)===null||L===void 0||L.blur()},A=(F,L)=>{u.value!==F&&(e.value===void 0?u.value=F:ot(()=>{var H,j,Y;c.value.textArea.value!==d.value&&((Y=(H=c.value)===null||H===void 0?void 0:(j=H.instance).update)===null||Y===void 0||Y.call(j))}),ot(()=>{L&&L()}))},R=F=>{F.keyCode===13&&r("pressEnter",F),r("keydown",F)},z=F=>{const{onBlur:L}=e;L?.(F),l.onFieldBlur()},_=F=>{r("update:value",F.target.value),r("change",F),r("input",F),l.onFieldChange()},N=F=>{js(c.value.textArea,F,_),A("",()=>{M()})},B=F=>{let L=F.target.value;if(u.value!==L){if($.value){const H=F.target,j=H.selectionStart>=e.maxlength+1||H.selectionStart===L.length||!H.selectionStart;L=vw(j,d.value,L,e.maxlength)}js(F.currentTarget,F,_,L),A(L)}},k=()=>{var F,L;const{class:H}=n,{bordered:j=!0}=e,Y=m(m(m({},tt(e,["allowClear"])),n),{class:[{[`${f.value}-borderless`]:!j,[`${H}`]:H&&!S.value,[`${f.value}-sm`]:g.value==="small",[`${f.value}-lg`]:g.value==="large"},Tn(f.value,s.value),b.value],disabled:y.value,showCount:null,prefixCls:f.value,onInput:B,onChange:B,onBlur:z,onKeydown:R,onCompositionstart:w,onCompositionend:I});return!((F=e.valueModifiers)===null||F===void 0)&&F.lazy&&delete Y.onInput,p(cee,D(D({},Y),{},{id:(L=Y?.id)!==null&&L!==void 0?L:l.id.value,ref:c,maxlength:e.maxlength,lazy:e.lazy}),null)};return o({focus:M,blur:E,resizableTextArea:c}),Le(()=>{let F=Cm(u.value);!x.value&&$.value&&(e.value===null||e.value===void 0)&&(F=I5(F,e.maxlength)),d.value=F}),()=>{var F;const{maxlength:L,bordered:H=!0,hidden:j}=e,{style:Y,class:Q}=n,U=m(m(m({},e),n),{prefixCls:f.value,inputType:"text",handleReset:N,direction:v.value,bordered:H,style:S.value?void 0:Y,hashId:b.value,disabled:(F=e.disabled)!==null&&F!==void 0?F:y.value});let ee=p(ree,D(D({},U),{},{value:d.value,status:e.status}),{element:k});if(S.value||a.hasFeedback){const X=[...d.value].length;let J="";typeof S.value=="object"?J=S.value.formatter({value:d.value,count:X,maxlength:L}):J=`${X}${$.value?` / ${L}`:""}`,ee=p("div",{hidden:j,class:le(`${f.value}-textarea`,{[`${f.value}-textarea-rtl`]:v.value==="rtl",[`${f.value}-textarea-show-count`]:S.value,[`${f.value}-textarea-in-form-item`]:a.isFormItemInput},`${f.value}-textarea-show-count`,Q,b.value),style:Y,"data-count":typeof J!="object"?J:void 0},[ee,a.hasFeedback&&p("span",{class:`${f.value}-textarea-suffix`},[a.feedbackIcon])])}return h(ee)}}});var uee={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"};function mw(e){for(var t=1;tp(e?jc:Dy,null,null),T5=oe({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:m(m({},lg()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":Function,iconRender:Function}),setup(e,t){let{slots:n,attrs:o,expose:r,emit:i}=t;const l=ne(!1),a=()=>{const{disabled:b}=e;b||(l.value=!l.value,i("update:visible",l.value))};Le(()=>{e.visible!==void 0&&(l.value=!!e.visible)});const s=ne();r({focus:()=>{var b;(b=s.value)===null||b===void 0||b.focus()},blur:()=>{var b;(b=s.value)===null||b===void 0||b.blur()}});const d=b=>{const{action:y,iconRender:S=n.iconRender||vee}=e,$=hee[y]||"",x=S(l.value),C={[$]:a,class:`${b}-icon`,key:"passwordIcon",onMousedown:O=>{O.preventDefault()},onMouseup:O=>{O.preventDefault()}};return ut(Kt(x)?x:p("span",null,[x]),C)},{prefixCls:f,getPrefixCls:g}=Te("input-password",e),v=P(()=>g("input",e.inputPrefixCls)),h=()=>{const{size:b,visibilityToggle:y}=e,S=gee(e,["size","visibilityToggle"]),$=y&&d(f.value),x=le(f.value,o.class,{[`${f.value}-${b}`]:!!b}),C=m(m(m({},tt(S,["suffix","iconRender","action"])),o),{type:l.value?"text":"password",class:x,prefixCls:v.value,suffix:$});return b&&(C.size=b),p(tn,D({ref:s},C),n)};return()=>h()}});tn.Group=O5;tn.Search=P5;tn.TextArea=Ry;tn.Password=T5;tn.install=function(e){return e.component(tn.name,tn),e.component(tn.Group.name,tn.Group),e.component(tn.Search.name,tn.Search),e.component(tn.TextArea.name,tn.TextArea),e.component(tn.Password.name,tn.Password),e};function ag(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:W.shape({x:Number,y:Number}).loose,title:W.any,footer:W.any,transitionName:String,maskTransitionName:String,animation:W.any,maskAnimation:W.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:W.any,maskProps:W.any,wrapProps:W.any,getContainer:W.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:W.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function yw(e,t,n){let o=t;return!o&&n&&(o=`${e}-${n}`),o}let Sw=-1;function mee(){return Sw+=1,Sw}function $w(e,t){let n=e[`page${t?"Y":"X"}Offset`];const o=`scroll${t?"Top":"Left"}`;if(typeof n!="number"){const r=e.document;n=r.documentElement[o],typeof n!="number"&&(n=r.body[o])}return n}function bee(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},o=e.ownerDocument,r=o.defaultView||o.parentWindow;return n.left+=$w(r),n.top+=$w(r,!0),n}const yee={width:0,height:0,overflow:"hidden",outline:"none"},See={outline:"none"},$ee=oe({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:m(m({},ag()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(e,t){let{expose:n,slots:o,attrs:r}=t;const i=re(),l=re(),a=re();n({focus:()=>{var f;(f=i.value)===null||f===void 0||f.focus({preventScroll:!0})},changeActive:f=>{const{activeElement:g}=document;f&&g===l.value?i.value.focus({preventScroll:!0}):!f&&g===i.value&&l.value.focus({preventScroll:!0})}});const s=re(),u=P(()=>{const{width:f,height:g}=e,v={};return f!==void 0&&(v.width=typeof f=="number"?`${f}px`:f),g!==void 0&&(v.height=typeof g=="number"?`${g}px`:g),s.value&&(v.transformOrigin=s.value),v}),c=()=>{ot(()=>{if(a.value){const f=bee(a.value);s.value=e.mousePosition?`${e.mousePosition.x-f.left}px ${e.mousePosition.y-f.top}px`:""}})},d=f=>{e.onVisibleChanged(f)};return()=>{var f,g,v,h;const{prefixCls:b,footer:y=(f=o.footer)===null||f===void 0?void 0:f.call(o),title:S=(g=o.title)===null||g===void 0?void 0:g.call(o),ariaId:$,closable:x,closeIcon:C=(v=o.closeIcon)===null||v===void 0?void 0:v.call(o),onClose:O,bodyStyle:w,bodyProps:I,onMousedown:T,onMouseup:M,visible:E,modalRender:A=o.modalRender,destroyOnClose:R,motionName:z}=e;let _;y&&(_=p("div",{class:`${b}-footer`},[y]));let N;S&&(N=p("div",{class:`${b}-header`},[p("div",{class:`${b}-title`,id:$},[S])]));let B;x&&(B=p("button",{type:"button",onClick:O,"aria-label":"Close",class:`${b}-close`},[C||p("span",{class:`${b}-close-x`},null)]));const k=p("div",{class:`${b}-content`},[B,N,p("div",D({class:`${b}-body`,style:w},I),[(h=o.default)===null||h===void 0?void 0:h.call(o)]),_]),F=Ro(z);return p(un,D(D({},F),{},{onBeforeEnter:c,onAfterEnter:()=>d(!0),onAfterLeave:()=>d(!1)}),{default:()=>[E||!R?En(p("div",D(D({},r),{},{ref:a,key:"dialog-element",role:"document",style:[u.value,r.style],class:[b,r.class],onMousedown:T,onMouseup:M}),[p("div",{tabindex:0,ref:i,style:See},[A?A({originVNode:k}):k]),p("div",{tabindex:0,ref:l,style:yee},null)]),[[jn,E]]):null]})}}}),Cee=oe({compatConfig:{MODE:3},name:"DialogMask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup(e,t){return()=>{const{prefixCls:n,visible:o,maskProps:r,motionName:i}=e,l=Ro(i);return p(un,l,{default:()=>[En(p("div",D({class:`${n}-mask`},r),null),[[jn,o]])]})}}}),Cw=oe({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:Ze(m(m({},ag()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(e,t){let{attrs:n,slots:o}=t;const r=ne(),i=ne(),l=ne(),a=ne(e.visible),s=ne(`vcDialogTitle${mee()}`),u=y=>{var S,$;if(y)pi(i.value,document.activeElement)||(r.value=document.activeElement,(S=l.value)===null||S===void 0||S.focus());else{const x=a.value;if(a.value=!1,e.mask&&r.value&&e.focusTriggerAfterClose){try{r.value.focus({preventScroll:!0})}catch{}r.value=null}x&&(($=e.afterClose)===null||$===void 0||$.call(e))}},c=y=>{var S;(S=e.onClose)===null||S===void 0||S.call(e,y)},d=ne(!1),f=ne(),g=()=>{clearTimeout(f.value),d.value=!0},v=()=>{f.value=setTimeout(()=>{d.value=!1})},h=y=>{if(!e.maskClosable)return null;d.value?d.value=!1:i.value===y.target&&c(y)},b=y=>{if(e.keyboard&&y.keyCode===Pe.ESC){y.stopPropagation(),c(y);return}e.visible&&y.keyCode===Pe.TAB&&l.value.changeActive(!y.shiftKey)};return ye(()=>e.visible,()=>{e.visible&&(a.value=!0)},{flush:"post"}),Qe(()=>{var y;clearTimeout(f.value),(y=e.scrollLocker)===null||y===void 0||y.unLock()}),Le(()=>{var y,S;(y=e.scrollLocker)===null||y===void 0||y.unLock(),a.value&&((S=e.scrollLocker)===null||S===void 0||S.lock())}),()=>{const{prefixCls:y,mask:S,visible:$,maskTransitionName:x,maskAnimation:C,zIndex:O,wrapClassName:w,rootClassName:I,wrapStyle:T,closable:M,maskProps:E,maskStyle:A,transitionName:R,animation:z,wrapProps:_,title:N=o.title}=e,{style:B,class:k}=n;return p("div",D({class:[`${y}-root`,I]},_i(e,{data:!0})),[p(Cee,{prefixCls:y,visible:S&&$,motionName:yw(y,x,C),style:m({zIndex:O},A),maskProps:E},null),p("div",D({tabIndex:-1,onKeydown:b,class:le(`${y}-wrap`,w),ref:i,onClick:h,role:"dialog","aria-labelledby":N?s.value:null,style:m(m({zIndex:O},T),{display:a.value?null:"none"})},_),[p($ee,D(D({},tt(e,["scrollLocker"])),{},{style:B,class:k,onMousedown:g,onMouseup:v,ref:l,closable:M,ariaId:s.value,prefixCls:y,visible:$,onClose:c,onVisibleChanged:u,motionName:yw(y,R,z)}),o)])])}}}),xee=ag(),E5=oe({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:Ze(xee,{visible:!1}),setup(e,t){let{attrs:n,slots:o}=t;const r=re(e.visible);return Q0({},{inTriggerContext:!1}),ye(()=>e.visible,()=>{e.visible&&(r.value=!0)},{flush:"post"}),()=>{const{visible:i,getContainer:l,forceRender:a,destroyOnClose:s=!1,afterClose:u}=e;let c=m(m(m({},e),n),{ref:"_component",key:"dialog"});return l===!1?p(Cw,D(D({},c),{},{getOpenCount:()=>2}),o):!a&&s&&!r.value?null:p(Ic,{autoLock:!0,visible:i,forceRender:a,getContainer:l},{default:d=>(c=m(m(m({},c),d),{afterClose:()=>{u?.(),r.value=!1}}),p(Cw,c,o))})}}});function wee(e){const t=re(null),n=ct(m({},e)),o=re([]),r=i=>{t.value===null&&(o.value=[],t.value=qe(()=>{let l;o.value.forEach(a=>{l=m(m({},l),a)}),m(n,l),t.value=null})),o.value.push(i)};return je(()=>{t.value&&qe.cancel(t.value)}),[n,r]}function xw(e,t,n,o){const r=t+n,i=(n-o)/2;if(n>o){if(t>0)return{[e]:i};if(t<0&&ro)return{[e]:t<0?i:-i};return{}}function Oee(e,t,n,o){const{width:r,height:i}=uk();let l=null;return e<=r&&t<=i?l={x:0,y:0}:(e>r||t>i)&&(l=m(m({},xw("x",n,e,r)),xw("y",o,t,i))),l}var Pee=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{Xe(ww,e)},inject:()=>He(ww,{isPreviewGroup:ne(!1),previewUrls:P(()=>new Map),setPreviewUrls:()=>{},current:re(null),setCurrent:()=>{},setShowPreview:()=>{},setMousePosition:()=>{},registerImage:null,rootClassName:""})},Iee=()=>({previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:()=>({})}}),M5=oe({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:Iee(),setup(e,t){let{slots:n}=t;const o=P(()=>{const C={visible:void 0,onVisibleChange:()=>{},getContainer:void 0,current:0};return typeof e.preview=="object"?R5(e.preview,C):C}),r=ct(new Map),i=re(),l=P(()=>o.value.visible),a=P(()=>o.value.getContainer),s=(C,O)=>{var w,I;(I=(w=o.value).onVisibleChange)===null||I===void 0||I.call(w,C,O)},[u,c]=Pt(!!l.value,{value:l,onChange:s}),d=re(null),f=P(()=>l.value!==void 0),g=P(()=>Array.from(r.keys())),v=P(()=>g.value[o.value.current]),h=P(()=>new Map(Array.from(r).filter(C=>{let[,{canPreview:O}]=C;return!!O}).map(C=>{let[O,{url:w}]=C;return[O,w]}))),b=function(C,O){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;r.set(C,{url:O,canPreview:w})},y=C=>{i.value=C},S=C=>{d.value=C},$=function(C,O){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const I=()=>{r.delete(C)};return r.set(C,{url:O,canPreview:w}),I},x=C=>{C?.stopPropagation(),c(!1),S(null)};return ye(v,C=>{y(C)},{immediate:!0,flush:"post"}),Le(()=>{u.value&&f.value&&y(v.value)},{flush:"post"}),Ny.provide({isPreviewGroup:ne(!0),previewUrls:h,setPreviewUrls:b,current:i,setCurrent:y,setShowPreview:c,setMousePosition:S,registerImage:$}),()=>{const C=Pee(o.value,[]);return p(Ve,null,[n.default&&n.default(),p(_5,D(D({},C),{},{"ria-hidden":!u.value,visible:u.value,prefixCls:e.previewPrefixCls,onClose:x,mousePosition:d.value,src:h.value.get(i.value),icons:e.icons,getContainer:a.value}),null)])}}}),Ki={x:0,y:0},Tee=m(m({},ag()),{src:String,alt:String,rootClassName:String,icons:{type:Object,default:()=>({})}}),_5=oe({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:Tee,emits:["close","afterClose"],setup(e,t){let{emit:n,attrs:o}=t;const{rotateLeft:r,rotateRight:i,zoomIn:l,zoomOut:a,close:s,left:u,right:c,flipX:d,flipY:f}=ct(e.icons),g=ne(1),v=ne(0),h=ct({x:1,y:1}),[b,y]=wee(Ki),S=()=>n("close"),$=ne(),x=ct({originX:0,originY:0,deltaX:0,deltaY:0}),C=ne(!1),O=Ny.inject(),{previewUrls:w,current:I,isPreviewGroup:T,setCurrent:M}=O,E=P(()=>w.value.size),A=P(()=>Array.from(w.value.keys())),R=P(()=>A.value.indexOf(I.value)),z=P(()=>T.value?w.value.get(I.value):e.src),_=P(()=>T.value&&E.value>1),N=ne({wheelDirection:0}),B=()=>{g.value=1,v.value=0,h.x=1,h.y=1,y(Ki),n("afterClose")},k=ae=>{ae?g.value+=.5:g.value++,y(Ki)},F=ae=>{g.value>1&&(ae?g.value-=.5:g.value--),y(Ki)},L=()=>{v.value+=90},H=()=>{v.value-=90},j=()=>{h.x=-h.x},Y=()=>{h.y=-h.y},Q=ae=>{ae.preventDefault(),ae.stopPropagation(),R.value>0&&M(A.value[R.value-1])},U=ae=>{ae.preventDefault(),ae.stopPropagation(),R.valuek(),type:"zoomIn"},{icon:a,onClick:()=>F(),type:"zoomOut",disabled:P(()=>g.value===1)},{icon:i,onClick:L,type:"rotateRight"},{icon:r,onClick:H,type:"rotateLeft"},{icon:d,onClick:j,type:"flipX"},{icon:f,onClick:Y,type:"flipY"}],G=()=>{if(e.visible&&C.value){const ae=$.value.offsetWidth*g.value,ce=$.value.offsetHeight*g.value,{left:se,top:pe}=qd($.value),ge=v.value%180!==0;C.value=!1;const he=Oee(ge?ce:ae,ge?ae:ce,se,pe);he&&y(m({},he))}},q=ae=>{ae.button===0&&(ae.preventDefault(),ae.stopPropagation(),x.deltaX=ae.pageX-b.x,x.deltaY=ae.pageY-b.y,x.originX=b.x,x.originY=b.y,C.value=!0)},V=ae=>{e.visible&&C.value&&y({x:ae.pageX-x.deltaX,y:ae.pageY-x.deltaY})},K=ae=>{if(!e.visible)return;ae.preventDefault();const ce=ae.deltaY;N.value={wheelDirection:ce}},te=ae=>{!e.visible||!_.value||(ae.preventDefault(),ae.keyCode===Pe.LEFT?R.value>0&&M(A.value[R.value-1]):ae.keyCode===Pe.RIGHT&&R.value{e.visible&&(g.value!==1&&(g.value=1),(b.x!==Ki.x||b.y!==Ki.y)&&y(Ki))};let ie=()=>{};return je(()=>{ye([()=>e.visible,C],()=>{ie();let ae,ce;const se=Et(window,"mouseup",G,!1),pe=Et(window,"mousemove",V,!1),ge=Et(window,"wheel",K,{passive:!1}),he=Et(window,"keydown",te,!1);try{window.top!==window.self&&(ae=Et(window.top,"mouseup",G,!1),ce=Et(window.top,"mousemove",V,!1))}catch{}ie=()=>{se.remove(),pe.remove(),ge.remove(),he.remove(),ae&&ae.remove(),ce&&ce.remove()}},{flush:"post",immediate:!0}),ye([N],()=>{const{wheelDirection:ae}=N.value;ae>0?F(!0):ae<0&&k(!0)})}),$n(()=>{ie()}),()=>{const{visible:ae,prefixCls:ce,rootClassName:se}=e;return p(E5,D(D({},o),{},{transitionName:e.transitionName,maskTransitionName:e.maskTransitionName,closable:!1,keyboard:!0,prefixCls:ce,onClose:S,afterClose:B,visible:ae,wrapClassName:ee,rootClassName:se,getContainer:e.getContainer}),{default:()=>[p("div",{class:[`${e.prefixCls}-operations-wrapper`,se]},[p("ul",{class:`${e.prefixCls}-operations`},[Z.map(pe=>{let{icon:ge,onClick:he,type:me,disabled:xe}=pe;return p("li",{class:le(X,{[`${e.prefixCls}-operations-operation-disabled`]:xe&&xe?.value}),onClick:he,key:me},[cn(ge,{class:J})])})])]),p("div",{class:`${e.prefixCls}-img-wrapper`,style:{transform:`translate3d(${b.x}px, ${b.y}px, 0)`}},[p("img",{onMousedown:q,onDblclick:ue,ref:$,class:`${e.prefixCls}-img`,src:z.value,alt:e.alt,style:{transform:`scale3d(${h.x*g.value}, ${h.y*g.value}, 1) rotate(${v.value}deg)`}},null)]),_.value&&p("div",{class:le(`${e.prefixCls}-switch-left`,{[`${e.prefixCls}-switch-left-disabled`]:R.value<=0}),onClick:Q},[u]),_.value&&p("div",{class:le(`${e.prefixCls}-switch-right`,{[`${e.prefixCls}-switch-right-disabled`]:R.value>=E.value-1}),onClick:U},[c])]})}}});var Eee=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,width:[Number,String],height:[Number,String],previewMask:{type:[Boolean,Function],default:void 0},placeholder:W.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}),R5=(e,t)=>{const n=m({},e);return Object.keys(t).forEach(o=>{e[o]===void 0&&(n[o]=t[o])}),n};let Mee=0;const D5=oe({compatConfig:{MODE:3},name:"VcImage",inheritAttrs:!1,props:A5(),emits:["click","error"],setup(e,t){let{attrs:n,slots:o,emit:r}=t;const i=P(()=>e.prefixCls),l=P(()=>`${i.value}-preview`),a=P(()=>{const k={visible:void 0,onVisibleChange:()=>{},getContainer:void 0};return typeof e.preview=="object"?R5(e.preview,k):k}),s=P(()=>{var k;return(k=a.value.src)!==null&&k!==void 0?k:e.src}),u=P(()=>e.placeholder&&e.placeholder!==!0||o.placeholder),c=P(()=>a.value.visible),d=P(()=>a.value.getContainer),f=P(()=>c.value!==void 0),g=(k,F)=>{var L,H;(H=(L=a.value).onVisibleChange)===null||H===void 0||H.call(L,k,F)},[v,h]=Pt(!!c.value,{value:c,onChange:g}),b=re(u.value?"loading":"normal");ye(()=>e.src,()=>{b.value=u.value?"loading":"normal"});const y=re(null),S=P(()=>b.value==="error"),$=Ny.inject(),{isPreviewGroup:x,setCurrent:C,setShowPreview:O,setMousePosition:w,registerImage:I}=$,T=re(Mee++),M=P(()=>e.preview&&!S.value),E=()=>{b.value="normal"},A=k=>{b.value="error",r("error",k)},R=k=>{if(!f.value){const{left:F,top:L}=qd(k.target);x.value?(C(T.value),w({x:F,y:L})):y.value={x:F,y:L}}x.value?O(!0):h(!0),r("click",k)},z=()=>{h(!1),f.value||(y.value=null)},_=re(null);ye(()=>_,()=>{b.value==="loading"&&_.value.complete&&(_.value.naturalWidth||_.value.naturalHeight)&&E()});let N=()=>{};je(()=>{ye([s,M],()=>{if(N(),!x.value)return()=>{};N=I(T.value,s.value,M.value),M.value||N()},{flush:"post",immediate:!0})}),$n(()=>{N()});const B=k=>lj(k)?k+"px":k;return()=>{const{prefixCls:k,wrapperClassName:F,fallback:L,src:H,placeholder:j,wrapperStyle:Y,rootClassName:Q,width:U,height:ee,crossorigin:X,decoding:J,alt:Z,sizes:G,srcset:q,usemap:V,class:K,style:te}=m(m({},e),n),ue=a.value,{icons:ie,maskClassName:ae}=ue,ce=Eee(ue,["icons","maskClassName"]),se=le(k,F,Q,{[`${k}-error`]:S.value}),pe=S.value&&L?L:s.value,ge={crossorigin:X,decoding:J,alt:Z,sizes:G,srcset:q,usemap:V,width:U,height:ee,class:le(`${k}-img`,{[`${k}-img-placeholder`]:j===!0},K),style:m({height:B(ee)},te)};return p(Ve,null,[p("div",{class:se,onClick:M.value?R:he=>{r("click",he)},style:m({width:B(U),height:B(ee)},Y)},[p("img",D(D(D({},ge),S.value&&L?{src:L}:{onLoad:E,onError:A,src:H}),{},{ref:_}),null),b.value==="loading"&&p("div",{"aria-hidden":"true",class:`${k}-placeholder`},[j||o.placeholder&&o.placeholder()]),o.previewMask&&M.value&&p("div",{class:[`${k}-mask`,ae]},[o.previewMask()])]),!x.value&&M.value&&p(_5,D(D({},ce),{},{"aria-hidden":!v.value,visible:v.value,prefixCls:l.value,onClose:z,mousePosition:y.value,src:pe,alt:Z,getContainer:d.value,icons:ie,rootClassName:Q}),null)])}}});D5.PreviewGroup=M5;var _ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};function Ow(e){for(var t=1;t{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}${e.antCls}-zoom-enter, ${t}${e.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${e.antCls}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:m(m({},Mw("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:m(m({},Mw("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:$b(e)}]},Hee=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${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})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:m(m({},Ue(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${e.margin*2}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadowSecondary,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:m({position:"absolute",top:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"block",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},Kr(e)),[`${t}-header`]:{color:e.colorText,background:e.modalHeaderBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.modalFooterBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, +`,lee=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Ah={};let Co;function aee(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Ah[n])return Ah[n];const o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),i=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),l=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),s={sizingStyle:lee.map(u=>`${u}:${o.getPropertyValue(u)}`).join(";"),paddingSize:i,borderSize:l,boxSizing:r};return t&&n&&(Ah[n]=s),s}function see(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Co||(Co=document.createElement("textarea"),Co.setAttribute("tab-index","-1"),Co.setAttribute("aria-hidden","true"),document.body.appendChild(Co)),e.getAttribute("wrap")?Co.setAttribute("wrap",e.getAttribute("wrap")):Co.removeAttribute("wrap");const{paddingSize:r,borderSize:i,boxSizing:l,sizingStyle:a}=aee(e,t);Co.setAttribute("style",`${a};${iee}`),Co.value=e.value||e.placeholder||"";let s,u,c,d=Co.scrollHeight;if(l==="border-box"?d+=i:l==="content-box"&&(d-=r),n!==null||o!==null){Co.value=" ";const g=Co.scrollHeight-r;n!==null&&(s=g*n,l==="border-box"&&(s=s+r+i),d=Math.max(s,d)),o!==null&&(u=g*o,l==="border-box"&&(u=u+r+i),c=d>u?"":"hidden",d=Math.min(u,d))}const f={height:`${d}px`,overflowY:c,resize:"none"};return s&&(f.minHeight=`${s}px`),u&&(f.maxHeight=`${u}px`),f}const Rh=0,Dh=1,Nh=2,cee=oe({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:w5(),setup(e,t){let{attrs:n,emit:o,expose:r}=t,i,l;const a=re(),s=re({}),u=re(Nh);Qe(()=>{qe.cancel(i),qe.cancel(l)});const c=()=>{try{if(a.value&&document.activeElement===a.value.input){const O=a.value.getSelectionStart(),w=a.value.getSelectionEnd(),I=a.value.getScrollTop();a.value.setSelectionRange(O,w),a.value.setScrollTop(I)}}catch{}},d=re(),f=re();Le(()=>{const O=e.autoSize||e.autosize;O?(d.value=O.minRows,f.value=O.maxRows):(d.value=void 0,f.value=void 0)});const g=P(()=>!!(e.autoSize||e.autosize)),v=()=>{u.value=Rh};ye([()=>e.value,d,f,g],()=>{g.value&&v()},{immediate:!0});const h=re();ye([u,a],()=>{if(a.value)if(u.value===Rh)u.value=Dh;else if(u.value===Dh){const O=see(a.value.input,!1,d.value,f.value);u.value=Nh,h.value=O}else c()},{immediate:!0,flush:"post"});const b=pn(),y=re(),S=()=>{qe.cancel(y.value)},$=O=>{u.value===Nh&&(o("resize",O),g.value&&(S(),y.value=qe(()=>{v()})))};Qe(()=>{S()}),r({resizeTextarea:()=>{v()},textArea:P(()=>{var O;return(O=a.value)===null||O===void 0?void 0:O.input}),instance:b}),fo(e.autosize===void 0);const C=()=>{const{prefixCls:O,disabled:w}=e,I=tt(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","maxlength","valueModifiers"]),T=le(O,n.class,{[`${O}-disabled`]:w}),_=g.value?h.value:null,E=[n.style,s.value,_],A=m(m(m({},I),n),{style:E,class:T});return(u.value===Rh||u.value===Dh)&&E.push({overflowX:"hidden",overflowY:"hidden"}),A.autofocus||delete A.autofocus,A.rows===0&&delete A.rows,p(Mo,{onResize:$,disabled:!g.value},{default:()=>[p(Ha,D(D({},A),{},{ref:a,tag:"textarea"}),null)]})};return()=>C()}});function I5(e,t){return[...e||""].slice(0,t).join("")}function vw(e,t,n,o){let r=n;return e?r=I5(n,o):[...t||""].lengtho&&(r=t),r}const Ry=oe({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:w5(),setup(e,t){let{attrs:n,expose:o,emit:r}=t;var i;const l=Qt(),a=dn.useInject(),s=P(()=>Qo(a.status,e.status)),u=ne((i=e.value)!==null&&i!==void 0?i:e.defaultValue),c=ne(),d=ne(""),{prefixCls:f,size:g,direction:v}=Te("input",e),[h,b]=sy(f),y=Jn(),S=P(()=>e.showCount===""||e.showCount||!1),$=P(()=>Number(e.maxlength)>0),x=ne(!1),C=ne(),O=ne(0),w=F=>{x.value=!0,C.value=d.value,O.value=F.currentTarget.selectionStart,r("compositionstart",F)},I=F=>{var L;x.value=!1;let H=F.currentTarget.value;if($.value){const j=O.value>=e.maxlength+1||O.value===((L=C.value)===null||L===void 0?void 0:L.length);H=vw(j,C.value,H,e.maxlength)}H!==d.value&&(A(H),js(F.currentTarget,F,M,H)),r("compositionend",F)},T=pn();ye(()=>e.value,()=>{var F;"value"in T.vnode.props,u.value=(F=e.value)!==null&&F!==void 0?F:""});const _=F=>{var L;$5((L=c.value)===null||L===void 0?void 0:L.textArea,F)},E=()=>{var F,L;(L=(F=c.value)===null||F===void 0?void 0:F.textArea)===null||L===void 0||L.blur()},A=(F,L)=>{u.value!==F&&(e.value===void 0?u.value=F:ot(()=>{var H,j,Y;c.value.textArea.value!==d.value&&((Y=(H=c.value)===null||H===void 0?void 0:(j=H.instance).update)===null||Y===void 0||Y.call(j))}),ot(()=>{L&&L()}))},R=F=>{F.keyCode===13&&r("pressEnter",F),r("keydown",F)},z=F=>{const{onBlur:L}=e;L?.(F),l.onFieldBlur()},M=F=>{r("update:value",F.target.value),r("change",F),r("input",F),l.onFieldChange()},N=F=>{js(c.value.textArea,F,M),A("",()=>{_()})},B=F=>{let L=F.target.value;if(u.value!==L){if($.value){const H=F.target,j=H.selectionStart>=e.maxlength+1||H.selectionStart===L.length||!H.selectionStart;L=vw(j,d.value,L,e.maxlength)}js(F.currentTarget,F,M,L),A(L)}},k=()=>{var F,L;const{class:H}=n,{bordered:j=!0}=e,Y=m(m(m({},tt(e,["allowClear"])),n),{class:[{[`${f.value}-borderless`]:!j,[`${H}`]:H&&!S.value,[`${f.value}-sm`]:g.value==="small",[`${f.value}-lg`]:g.value==="large"},Tn(f.value,s.value),b.value],disabled:y.value,showCount:null,prefixCls:f.value,onInput:B,onChange:B,onBlur:z,onKeydown:R,onCompositionstart:w,onCompositionend:I});return!((F=e.valueModifiers)===null||F===void 0)&&F.lazy&&delete Y.onInput,p(cee,D(D({},Y),{},{id:(L=Y?.id)!==null&&L!==void 0?L:l.id.value,ref:c,maxlength:e.maxlength,lazy:e.lazy}),null)};return o({focus:_,blur:E,resizableTextArea:c}),Le(()=>{let F=Cm(u.value);!x.value&&$.value&&(e.value===null||e.value===void 0)&&(F=I5(F,e.maxlength)),d.value=F}),()=>{var F;const{maxlength:L,bordered:H=!0,hidden:j}=e,{style:Y,class:Q}=n,U=m(m(m({},e),n),{prefixCls:f.value,inputType:"text",handleReset:N,direction:v.value,bordered:H,style:S.value?void 0:Y,hashId:b.value,disabled:(F=e.disabled)!==null&&F!==void 0?F:y.value});let ee=p(ree,D(D({},U),{},{value:d.value,status:e.status}),{element:k});if(S.value||a.hasFeedback){const X=[...d.value].length;let J="";typeof S.value=="object"?J=S.value.formatter({value:d.value,count:X,maxlength:L}):J=`${X}${$.value?` / ${L}`:""}`,ee=p("div",{hidden:j,class:le(`${f.value}-textarea`,{[`${f.value}-textarea-rtl`]:v.value==="rtl",[`${f.value}-textarea-show-count`]:S.value,[`${f.value}-textarea-in-form-item`]:a.isFormItemInput},`${f.value}-textarea-show-count`,Q,b.value),style:Y,"data-count":typeof J!="object"?J:void 0},[ee,a.hasFeedback&&p("span",{class:`${f.value}-textarea-suffix`},[a.feedbackIcon])])}return h(ee)}}});var uee={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"};function mw(e){for(var t=1;tp(e?jc:Dy,null,null),T5=oe({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:m(m({},lg()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":Function,iconRender:Function}),setup(e,t){let{slots:n,attrs:o,expose:r,emit:i}=t;const l=ne(!1),a=()=>{const{disabled:b}=e;b||(l.value=!l.value,i("update:visible",l.value))};Le(()=>{e.visible!==void 0&&(l.value=!!e.visible)});const s=ne();r({focus:()=>{var b;(b=s.value)===null||b===void 0||b.focus()},blur:()=>{var b;(b=s.value)===null||b===void 0||b.blur()}});const d=b=>{const{action:y,iconRender:S=n.iconRender||vee}=e,$=hee[y]||"",x=S(l.value),C={[$]:a,class:`${b}-icon`,key:"passwordIcon",onMousedown:O=>{O.preventDefault()},onMouseup:O=>{O.preventDefault()}};return ut(Kt(x)?x:p("span",null,[x]),C)},{prefixCls:f,getPrefixCls:g}=Te("input-password",e),v=P(()=>g("input",e.inputPrefixCls)),h=()=>{const{size:b,visibilityToggle:y}=e,S=gee(e,["size","visibilityToggle"]),$=y&&d(f.value),x=le(f.value,o.class,{[`${f.value}-${b}`]:!!b}),C=m(m(m({},tt(S,["suffix","iconRender","action"])),o),{type:l.value?"text":"password",class:x,prefixCls:v.value,suffix:$});return b&&(C.size=b),p(tn,D({ref:s},C),n)};return()=>h()}});tn.Group=O5;tn.Search=P5;tn.TextArea=Ry;tn.Password=T5;tn.install=function(e){return e.component(tn.name,tn),e.component(tn.Group.name,tn.Group),e.component(tn.Search.name,tn.Search),e.component(tn.TextArea.name,tn.TextArea),e.component(tn.Password.name,tn.Password),e};function ag(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:W.shape({x:Number,y:Number}).loose,title:W.any,footer:W.any,transitionName:String,maskTransitionName:String,animation:W.any,maskAnimation:W.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:W.any,maskProps:W.any,wrapProps:W.any,getContainer:W.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:W.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function yw(e,t,n){let o=t;return!o&&n&&(o=`${e}-${n}`),o}let Sw=-1;function mee(){return Sw+=1,Sw}function $w(e,t){let n=e[`page${t?"Y":"X"}Offset`];const o=`scroll${t?"Top":"Left"}`;if(typeof n!="number"){const r=e.document;n=r.documentElement[o],typeof n!="number"&&(n=r.body[o])}return n}function bee(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},o=e.ownerDocument,r=o.defaultView||o.parentWindow;return n.left+=$w(r),n.top+=$w(r,!0),n}const yee={width:0,height:0,overflow:"hidden",outline:"none"},See={outline:"none"},$ee=oe({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:m(m({},ag()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(e,t){let{expose:n,slots:o,attrs:r}=t;const i=re(),l=re(),a=re();n({focus:()=>{var f;(f=i.value)===null||f===void 0||f.focus({preventScroll:!0})},changeActive:f=>{const{activeElement:g}=document;f&&g===l.value?i.value.focus({preventScroll:!0}):!f&&g===i.value&&l.value.focus({preventScroll:!0})}});const s=re(),u=P(()=>{const{width:f,height:g}=e,v={};return f!==void 0&&(v.width=typeof f=="number"?`${f}px`:f),g!==void 0&&(v.height=typeof g=="number"?`${g}px`:g),s.value&&(v.transformOrigin=s.value),v}),c=()=>{ot(()=>{if(a.value){const f=bee(a.value);s.value=e.mousePosition?`${e.mousePosition.x-f.left}px ${e.mousePosition.y-f.top}px`:""}})},d=f=>{e.onVisibleChanged(f)};return()=>{var f,g,v,h;const{prefixCls:b,footer:y=(f=o.footer)===null||f===void 0?void 0:f.call(o),title:S=(g=o.title)===null||g===void 0?void 0:g.call(o),ariaId:$,closable:x,closeIcon:C=(v=o.closeIcon)===null||v===void 0?void 0:v.call(o),onClose:O,bodyStyle:w,bodyProps:I,onMousedown:T,onMouseup:_,visible:E,modalRender:A=o.modalRender,destroyOnClose:R,motionName:z}=e;let M;y&&(M=p("div",{class:`${b}-footer`},[y]));let N;S&&(N=p("div",{class:`${b}-header`},[p("div",{class:`${b}-title`,id:$},[S])]));let B;x&&(B=p("button",{type:"button",onClick:O,"aria-label":"Close",class:`${b}-close`},[C||p("span",{class:`${b}-close-x`},null)]));const k=p("div",{class:`${b}-content`},[B,N,p("div",D({class:`${b}-body`,style:w},I),[(h=o.default)===null||h===void 0?void 0:h.call(o)]),M]),F=Ro(z);return p(un,D(D({},F),{},{onBeforeEnter:c,onAfterEnter:()=>d(!0),onAfterLeave:()=>d(!1)}),{default:()=>[E||!R?En(p("div",D(D({},r),{},{ref:a,key:"dialog-element",role:"document",style:[u.value,r.style],class:[b,r.class],onMousedown:T,onMouseup:_}),[p("div",{tabindex:0,ref:i,style:See},[A?A({originVNode:k}):k]),p("div",{tabindex:0,ref:l,style:yee},null)]),[[jn,E]]):null]})}}}),Cee=oe({compatConfig:{MODE:3},name:"DialogMask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup(e,t){return()=>{const{prefixCls:n,visible:o,maskProps:r,motionName:i}=e,l=Ro(i);return p(un,l,{default:()=>[En(p("div",D({class:`${n}-mask`},r),null),[[jn,o]])]})}}}),Cw=oe({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:Ze(m(m({},ag()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(e,t){let{attrs:n,slots:o}=t;const r=ne(),i=ne(),l=ne(),a=ne(e.visible),s=ne(`vcDialogTitle${mee()}`),u=y=>{var S,$;if(y)pi(i.value,document.activeElement)||(r.value=document.activeElement,(S=l.value)===null||S===void 0||S.focus());else{const x=a.value;if(a.value=!1,e.mask&&r.value&&e.focusTriggerAfterClose){try{r.value.focus({preventScroll:!0})}catch{}r.value=null}x&&(($=e.afterClose)===null||$===void 0||$.call(e))}},c=y=>{var S;(S=e.onClose)===null||S===void 0||S.call(e,y)},d=ne(!1),f=ne(),g=()=>{clearTimeout(f.value),d.value=!0},v=()=>{f.value=setTimeout(()=>{d.value=!1})},h=y=>{if(!e.maskClosable)return null;d.value?d.value=!1:i.value===y.target&&c(y)},b=y=>{if(e.keyboard&&y.keyCode===Pe.ESC){y.stopPropagation(),c(y);return}e.visible&&y.keyCode===Pe.TAB&&l.value.changeActive(!y.shiftKey)};return ye(()=>e.visible,()=>{e.visible&&(a.value=!0)},{flush:"post"}),Qe(()=>{var y;clearTimeout(f.value),(y=e.scrollLocker)===null||y===void 0||y.unLock()}),Le(()=>{var y,S;(y=e.scrollLocker)===null||y===void 0||y.unLock(),a.value&&((S=e.scrollLocker)===null||S===void 0||S.lock())}),()=>{const{prefixCls:y,mask:S,visible:$,maskTransitionName:x,maskAnimation:C,zIndex:O,wrapClassName:w,rootClassName:I,wrapStyle:T,closable:_,maskProps:E,maskStyle:A,transitionName:R,animation:z,wrapProps:M,title:N=o.title}=e,{style:B,class:k}=n;return p("div",D({class:[`${y}-root`,I]},_i(e,{data:!0})),[p(Cee,{prefixCls:y,visible:S&&$,motionName:yw(y,x,C),style:m({zIndex:O},A),maskProps:E},null),p("div",D({tabIndex:-1,onKeydown:b,class:le(`${y}-wrap`,w),ref:i,onClick:h,role:"dialog","aria-labelledby":N?s.value:null,style:m(m({zIndex:O},T),{display:a.value?null:"none"})},M),[p($ee,D(D({},tt(e,["scrollLocker"])),{},{style:B,class:k,onMousedown:g,onMouseup:v,ref:l,closable:_,ariaId:s.value,prefixCls:y,visible:$,onClose:c,onVisibleChanged:u,motionName:yw(y,R,z)}),o)])])}}}),xee=ag(),E5=oe({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:Ze(xee,{visible:!1}),setup(e,t){let{attrs:n,slots:o}=t;const r=re(e.visible);return Q0({},{inTriggerContext:!1}),ye(()=>e.visible,()=>{e.visible&&(r.value=!0)},{flush:"post"}),()=>{const{visible:i,getContainer:l,forceRender:a,destroyOnClose:s=!1,afterClose:u}=e;let c=m(m(m({},e),n),{ref:"_component",key:"dialog"});return l===!1?p(Cw,D(D({},c),{},{getOpenCount:()=>2}),o):!a&&s&&!r.value?null:p(Ic,{autoLock:!0,visible:i,forceRender:a,getContainer:l},{default:d=>(c=m(m(m({},c),d),{afterClose:()=>{u?.(),r.value=!1}}),p(Cw,c,o))})}}});function wee(e){const t=re(null),n=ct(m({},e)),o=re([]),r=i=>{t.value===null&&(o.value=[],t.value=qe(()=>{let l;o.value.forEach(a=>{l=m(m({},l),a)}),m(n,l),t.value=null})),o.value.push(i)};return je(()=>{t.value&&qe.cancel(t.value)}),[n,r]}function xw(e,t,n,o){const r=t+n,i=(n-o)/2;if(n>o){if(t>0)return{[e]:i};if(t<0&&ro)return{[e]:t<0?i:-i};return{}}function Oee(e,t,n,o){const{width:r,height:i}=uk();let l=null;return e<=r&&t<=i?l={x:0,y:0}:(e>r||t>i)&&(l=m(m({},xw("x",n,e,r)),xw("y",o,t,i))),l}var Pee=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{Xe(ww,e)},inject:()=>He(ww,{isPreviewGroup:ne(!1),previewUrls:P(()=>new Map),setPreviewUrls:()=>{},current:re(null),setCurrent:()=>{},setShowPreview:()=>{},setMousePosition:()=>{},registerImage:null,rootClassName:""})},Iee=()=>({previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:()=>({})}}),M5=oe({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:Iee(),setup(e,t){let{slots:n}=t;const o=P(()=>{const C={visible:void 0,onVisibleChange:()=>{},getContainer:void 0,current:0};return typeof e.preview=="object"?R5(e.preview,C):C}),r=ct(new Map),i=re(),l=P(()=>o.value.visible),a=P(()=>o.value.getContainer),s=(C,O)=>{var w,I;(I=(w=o.value).onVisibleChange)===null||I===void 0||I.call(w,C,O)},[u,c]=Pt(!!l.value,{value:l,onChange:s}),d=re(null),f=P(()=>l.value!==void 0),g=P(()=>Array.from(r.keys())),v=P(()=>g.value[o.value.current]),h=P(()=>new Map(Array.from(r).filter(C=>{let[,{canPreview:O}]=C;return!!O}).map(C=>{let[O,{url:w}]=C;return[O,w]}))),b=function(C,O){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;r.set(C,{url:O,canPreview:w})},y=C=>{i.value=C},S=C=>{d.value=C},$=function(C,O){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const I=()=>{r.delete(C)};return r.set(C,{url:O,canPreview:w}),I},x=C=>{C?.stopPropagation(),c(!1),S(null)};return ye(v,C=>{y(C)},{immediate:!0,flush:"post"}),Le(()=>{u.value&&f.value&&y(v.value)},{flush:"post"}),Ny.provide({isPreviewGroup:ne(!0),previewUrls:h,setPreviewUrls:b,current:i,setCurrent:y,setShowPreview:c,setMousePosition:S,registerImage:$}),()=>{const C=Pee(o.value,[]);return p(Ve,null,[n.default&&n.default(),p(_5,D(D({},C),{},{"ria-hidden":!u.value,visible:u.value,prefixCls:e.previewPrefixCls,onClose:x,mousePosition:d.value,src:h.value.get(i.value),icons:e.icons,getContainer:a.value}),null)])}}}),Ki={x:0,y:0},Tee=m(m({},ag()),{src:String,alt:String,rootClassName:String,icons:{type:Object,default:()=>({})}}),_5=oe({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:Tee,emits:["close","afterClose"],setup(e,t){let{emit:n,attrs:o}=t;const{rotateLeft:r,rotateRight:i,zoomIn:l,zoomOut:a,close:s,left:u,right:c,flipX:d,flipY:f}=ct(e.icons),g=ne(1),v=ne(0),h=ct({x:1,y:1}),[b,y]=wee(Ki),S=()=>n("close"),$=ne(),x=ct({originX:0,originY:0,deltaX:0,deltaY:0}),C=ne(!1),O=Ny.inject(),{previewUrls:w,current:I,isPreviewGroup:T,setCurrent:_}=O,E=P(()=>w.value.size),A=P(()=>Array.from(w.value.keys())),R=P(()=>A.value.indexOf(I.value)),z=P(()=>T.value?w.value.get(I.value):e.src),M=P(()=>T.value&&E.value>1),N=ne({wheelDirection:0}),B=()=>{g.value=1,v.value=0,h.x=1,h.y=1,y(Ki),n("afterClose")},k=ae=>{ae?g.value+=.5:g.value++,y(Ki)},F=ae=>{g.value>1&&(ae?g.value-=.5:g.value--),y(Ki)},L=()=>{v.value+=90},H=()=>{v.value-=90},j=()=>{h.x=-h.x},Y=()=>{h.y=-h.y},Q=ae=>{ae.preventDefault(),ae.stopPropagation(),R.value>0&&_(A.value[R.value-1])},U=ae=>{ae.preventDefault(),ae.stopPropagation(),R.valuek(),type:"zoomIn"},{icon:a,onClick:()=>F(),type:"zoomOut",disabled:P(()=>g.value===1)},{icon:i,onClick:L,type:"rotateRight"},{icon:r,onClick:H,type:"rotateLeft"},{icon:d,onClick:j,type:"flipX"},{icon:f,onClick:Y,type:"flipY"}],G=()=>{if(e.visible&&C.value){const ae=$.value.offsetWidth*g.value,ce=$.value.offsetHeight*g.value,{left:se,top:pe}=qd($.value),ge=v.value%180!==0;C.value=!1;const he=Oee(ge?ce:ae,ge?ae:ce,se,pe);he&&y(m({},he))}},q=ae=>{ae.button===0&&(ae.preventDefault(),ae.stopPropagation(),x.deltaX=ae.pageX-b.x,x.deltaY=ae.pageY-b.y,x.originX=b.x,x.originY=b.y,C.value=!0)},V=ae=>{e.visible&&C.value&&y({x:ae.pageX-x.deltaX,y:ae.pageY-x.deltaY})},K=ae=>{if(!e.visible)return;ae.preventDefault();const ce=ae.deltaY;N.value={wheelDirection:ce}},te=ae=>{!e.visible||!M.value||(ae.preventDefault(),ae.keyCode===Pe.LEFT?R.value>0&&_(A.value[R.value-1]):ae.keyCode===Pe.RIGHT&&R.value{e.visible&&(g.value!==1&&(g.value=1),(b.x!==Ki.x||b.y!==Ki.y)&&y(Ki))};let ie=()=>{};return je(()=>{ye([()=>e.visible,C],()=>{ie();let ae,ce;const se=Et(window,"mouseup",G,!1),pe=Et(window,"mousemove",V,!1),ge=Et(window,"wheel",K,{passive:!1}),he=Et(window,"keydown",te,!1);try{window.top!==window.self&&(ae=Et(window.top,"mouseup",G,!1),ce=Et(window.top,"mousemove",V,!1))}catch{}ie=()=>{se.remove(),pe.remove(),ge.remove(),he.remove(),ae&&ae.remove(),ce&&ce.remove()}},{flush:"post",immediate:!0}),ye([N],()=>{const{wheelDirection:ae}=N.value;ae>0?F(!0):ae<0&&k(!0)})}),$n(()=>{ie()}),()=>{const{visible:ae,prefixCls:ce,rootClassName:se}=e;return p(E5,D(D({},o),{},{transitionName:e.transitionName,maskTransitionName:e.maskTransitionName,closable:!1,keyboard:!0,prefixCls:ce,onClose:S,afterClose:B,visible:ae,wrapClassName:ee,rootClassName:se,getContainer:e.getContainer}),{default:()=>[p("div",{class:[`${e.prefixCls}-operations-wrapper`,se]},[p("ul",{class:`${e.prefixCls}-operations`},[Z.map(pe=>{let{icon:ge,onClick:he,type:me,disabled:xe}=pe;return p("li",{class:le(X,{[`${e.prefixCls}-operations-operation-disabled`]:xe&&xe?.value}),onClick:he,key:me},[cn(ge,{class:J})])})])]),p("div",{class:`${e.prefixCls}-img-wrapper`,style:{transform:`translate3d(${b.x}px, ${b.y}px, 0)`}},[p("img",{onMousedown:q,onDblclick:ue,ref:$,class:`${e.prefixCls}-img`,src:z.value,alt:e.alt,style:{transform:`scale3d(${h.x*g.value}, ${h.y*g.value}, 1) rotate(${v.value}deg)`}},null)]),M.value&&p("div",{class:le(`${e.prefixCls}-switch-left`,{[`${e.prefixCls}-switch-left-disabled`]:R.value<=0}),onClick:Q},[u]),M.value&&p("div",{class:le(`${e.prefixCls}-switch-right`,{[`${e.prefixCls}-switch-right-disabled`]:R.value>=E.value-1}),onClick:U},[c])]})}}});var Eee=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,width:[Number,String],height:[Number,String],previewMask:{type:[Boolean,Function],default:void 0},placeholder:W.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}),R5=(e,t)=>{const n=m({},e);return Object.keys(t).forEach(o=>{e[o]===void 0&&(n[o]=t[o])}),n};let Mee=0;const D5=oe({compatConfig:{MODE:3},name:"VcImage",inheritAttrs:!1,props:A5(),emits:["click","error"],setup(e,t){let{attrs:n,slots:o,emit:r}=t;const i=P(()=>e.prefixCls),l=P(()=>`${i.value}-preview`),a=P(()=>{const k={visible:void 0,onVisibleChange:()=>{},getContainer:void 0};return typeof e.preview=="object"?R5(e.preview,k):k}),s=P(()=>{var k;return(k=a.value.src)!==null&&k!==void 0?k:e.src}),u=P(()=>e.placeholder&&e.placeholder!==!0||o.placeholder),c=P(()=>a.value.visible),d=P(()=>a.value.getContainer),f=P(()=>c.value!==void 0),g=(k,F)=>{var L,H;(H=(L=a.value).onVisibleChange)===null||H===void 0||H.call(L,k,F)},[v,h]=Pt(!!c.value,{value:c,onChange:g}),b=re(u.value?"loading":"normal");ye(()=>e.src,()=>{b.value=u.value?"loading":"normal"});const y=re(null),S=P(()=>b.value==="error"),$=Ny.inject(),{isPreviewGroup:x,setCurrent:C,setShowPreview:O,setMousePosition:w,registerImage:I}=$,T=re(Mee++),_=P(()=>e.preview&&!S.value),E=()=>{b.value="normal"},A=k=>{b.value="error",r("error",k)},R=k=>{if(!f.value){const{left:F,top:L}=qd(k.target);x.value?(C(T.value),w({x:F,y:L})):y.value={x:F,y:L}}x.value?O(!0):h(!0),r("click",k)},z=()=>{h(!1),f.value||(y.value=null)},M=re(null);ye(()=>M,()=>{b.value==="loading"&&M.value.complete&&(M.value.naturalWidth||M.value.naturalHeight)&&E()});let N=()=>{};je(()=>{ye([s,_],()=>{if(N(),!x.value)return()=>{};N=I(T.value,s.value,_.value),_.value||N()},{flush:"post",immediate:!0})}),$n(()=>{N()});const B=k=>lj(k)?k+"px":k;return()=>{const{prefixCls:k,wrapperClassName:F,fallback:L,src:H,placeholder:j,wrapperStyle:Y,rootClassName:Q,width:U,height:ee,crossorigin:X,decoding:J,alt:Z,sizes:G,srcset:q,usemap:V,class:K,style:te}=m(m({},e),n),ue=a.value,{icons:ie,maskClassName:ae}=ue,ce=Eee(ue,["icons","maskClassName"]),se=le(k,F,Q,{[`${k}-error`]:S.value}),pe=S.value&&L?L:s.value,ge={crossorigin:X,decoding:J,alt:Z,sizes:G,srcset:q,usemap:V,width:U,height:ee,class:le(`${k}-img`,{[`${k}-img-placeholder`]:j===!0},K),style:m({height:B(ee)},te)};return p(Ve,null,[p("div",{class:se,onClick:_.value?R:he=>{r("click",he)},style:m({width:B(U),height:B(ee)},Y)},[p("img",D(D(D({},ge),S.value&&L?{src:L}:{onLoad:E,onError:A,src:H}),{},{ref:M}),null),b.value==="loading"&&p("div",{"aria-hidden":"true",class:`${k}-placeholder`},[j||o.placeholder&&o.placeholder()]),o.previewMask&&_.value&&p("div",{class:[`${k}-mask`,ae]},[o.previewMask()])]),!x.value&&_.value&&p(_5,D(D({},ce),{},{"aria-hidden":!v.value,visible:v.value,prefixCls:l.value,onClose:z,mousePosition:y.value,src:pe,alt:Z,getContainer:d.value,icons:ie,rootClassName:Q}),null)])}}});D5.PreviewGroup=M5;var _ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};function Ow(e){for(var t=1;t{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}${e.antCls}-zoom-enter, ${t}${e.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${e.antCls}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:m(m({},Mw("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:m(m({},Mw("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:$b(e)}]},Hee=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${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})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:m(m({},Ue(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${e.margin*2}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadowSecondary,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:m({position:"absolute",top:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"block",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},Kr(e)),[`${t}-header`]:{color:e.colorText,background:e.modalHeaderBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.modalFooterBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, ${t}-body, ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},jee=e=>{const{componentCls:t}=e,n=`${t}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:m({},Xo()),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,[`+ ${n}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${n}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${n}-error ${n}-body > ${e.iconCls}`]:{color:e.colorError},[`${n}-warning ${n}-body > ${e.iconCls}, - ${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess},[`${t}-zoom-leave ${t}-btns`]:{pointerEvents:"none"}}},Vee=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Wee=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[o]:{[`${n}-modal-body`]:{padding:`${e.padding*2}px ${e.padding*2}px ${e.paddingLG}px`},[`${o}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${o}-title + ${o}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${o}-btns`]:{marginTop:e.marginLG}}}},Kee=Ke("Modal",e=>{const t=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5,r=ke(e,{modalBodyPadding:e.paddingLG,modalHeaderBg:e.colorBgElevated,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderTitleLineHeight:o,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderCloseSize:o*n+t*2,modalContentBg:e.colorBgElevated,modalHeadingColor:e.colorTextHeading,modalCloseColor:e.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalConfirmTitleFontSize:e.fontSizeLG,modalIconHoverColor:e.colorIconHover,modalConfirmIconSize:e.fontSize*e.lineHeight,modalCloseBtnSize:e.controlHeightLG*.55});return[Hee(r),jee(r),Vee(r),N5(r),e.wireframe&&Wee(r),Ga(r,"zoom")]}),xm=e=>({position:e||"absolute",inset:0}),Gee=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:o,marginXXS:r,prefixCls:i}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",background:new pt("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:m(m({},Gt),{padding:`0 ${o}px`,[t]:{marginInlineEnd:r,svg:{verticalAlign:"baseline"}}})}},Xee=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:o,previewOperationColorDisabled:r,motionDurationSlow:i}=e,l=new pt(n).setAlpha(.1),a=l.clone().setAlpha(.2);return{[`${t}-operations`]:m(m({},Ue(e)),{display:"flex",flexDirection:"row-reverse",alignItems:"center",color:e.previewOperationColor,listStyle:"none",background:l.toRgbString(),pointerEvents:"auto","&-operation":{marginInlineStart:o,padding:o,cursor:"pointer",transition:`all ${i}`,userSelect:"none","&:hover":{background:a.toRgbString()},"&-disabled":{color:r,pointerEvents:"none"},"&:last-of-type":{marginInlineStart:0}},"&-progress":{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-icon":{fontSize:e.previewOperationSize}})}},Uee=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:o,previewCls:r,zIndexPopup:i,motionDurationSlow:l}=e,a=new pt(t).setAlpha(.1),s=a.clone().setAlpha(.2);return{[`${r}-switch-left, ${r}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:i+1,display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:-e.imagePreviewSwitchSize/2,color:e.previewOperationColor,background:a.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${l}`,pointerEvents:"auto",userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{"&, &:hover":{color:o,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${r}-switch-left`]:{insetInlineStart:e.marginSM},[`${r}-switch-right`]:{insetInlineEnd:e.marginSM}}},Yee=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:o,componentCls:r}=e;return[{[`${r}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:m(m({},xm()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"100%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${o} ${t} 0s`,userSelect:"none",pointerEvents:"auto","&-wrapper":m(m({},xm()),{transition:`transform ${o} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${r}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${r}-preview-operations-wrapper`]:{position:"fixed",insetBlockStart:0,insetInlineEnd:0,zIndex:e.zIndexPopup+1,width:"100%"},"&":[Xee(e),Uee(e)]}]},qee=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`]:m({},Gee(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:m({},xm())}}},Zee=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Ga(e,"zoom"),"&":$b(e,!0)}},B5=Ke("Image",e=>{const t=`${e.componentCls}-preview`,n=ke(e,{previewCls:t,modalMaskBg:new pt("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[qee(n),Yee(n),N5(ke(n,{componentCls:t})),Zee(n)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new pt(e.colorTextLightSolid).toRgbString(),previewOperationColorDisabled:new pt(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5})),k5={rotateLeft:p(By,null,null),rotateRight:p(ky,null,null),zoomIn:p(Fy,null,null),zoomOut:p(Ly,null,null),close:p(Rn,null,null),left:p(mr,null,null),right:p(ho,null,null),flipX:p(_f,null,null),flipY:p(_f,{rotate:90},null)},Qee=()=>({previewPrefixCls:String,preview:yt()}),F5=oe({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:Qee(),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,rootPrefixCls:i}=Te("image",e),l=P(()=>`${r.value}-preview`),[a,s]=B5(r),u=P(()=>{const{preview:c}=e;if(c===!1)return c;const d=typeof c=="object"?c:{};return m(m({},d),{rootClassName:s.value,transitionName:_n(i.value,"zoom",d.transitionName),maskTransitionName:_n(i.value,"fade",d.maskTransitionName)})});return()=>a(p(M5,D(D({},m(m({},n),e)),{},{preview:u.value,icons:k5,previewPrefixCls:l.value}),o))}}),tl=oe({name:"AImage",inheritAttrs:!1,props:A5(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,rootPrefixCls:i,configProvider:l}=Te("image",e),[a,s]=B5(r),u=P(()=>{const{preview:c}=e;if(c===!1)return c;const d=typeof c=="object"?c:{};return m(m({icons:k5},d),{transitionName:_n(i.value,"zoom",d.transitionName),maskTransitionName:_n(i.value,"fade",d.maskTransitionName)})});return()=>{var c,d;const f=((d=(c=l.locale)===null||c===void 0?void 0:c.value)===null||d===void 0?void 0:d.Image)||Vn.Image,g=()=>p("div",{class:`${r.value}-mask-info`},[p(jc,null,null),f?.preview]),{previewMask:v=n.previewMask||g}=e;return a(p(D5,D(D({},m(m(m({},o),e),{prefixCls:r.value})),{},{preview:u.value,rootClassName:le(e.rootClassName,s.value)}),m(m({},n),{previewMask:typeof v=="function"?v:null})))}}});tl.PreviewGroup=F5;tl.install=function(e){return e.component(tl.name,tl),e.component(tl.PreviewGroup.name,tl.PreviewGroup),e};var Jee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};function _w(e){for(var t=1;tNumber.MAX_SAFE_INTEGER)return String(wm()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new nl(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":jy(this.number):this.origin}}class ia{constructor(t){if(this.origin="",L5(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}let n=t;if(Hy(n)&&(n=Number(n)),n=typeof n=="string"?n:jy(n),Vy(n)){const o=Vs(n);this.negative=o.negative;const r=o.trimStr.split(".");this.integer=BigInt(r[0]);const i=r[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}getMark(){return this.negative?"-":""}getIntegerStr(){return this.integer.toString()}getDecimalStr(){return this.decimal.toString().padStart(this.decimalLen,"0")}alignDecimal(t){const n=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(t,"0")}`;return BigInt(n)}negate(){const t=new ia(this.toString());return t.negative=!t.negative,t}add(t){if(this.isInvalidate())return new ia(t);const n=new ia(t);if(n.isInvalidate())return this;const o=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),r=this.alignDecimal(o),i=n.alignDecimal(o),l=(r+i).toString(),{negativeStr:a,trimStr:s}=Vs(l),u=`${a}${s.padStart(o+1,"0")}`;return new ia(`${u.slice(0,-o)}.${u.slice(-o)}`)}isEmpty(){return this.empty}isNaN(){return this.nan}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(t){return this.toString()===t?.toString()}lessEquals(t){return this.add(t.negate().toString()).toNumber()<=0}toNumber(){return this.isNaN()?NaN:Number(this.toString())}toString(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":Vs(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}function ar(e){return wm()?new ia(e):new nl(e)}function Om(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";const{negativeStr:r,integerStr:i,decimalStr:l}=Vs(e),a=`${t}${l}`,s=`${r}${i}`;if(n>=0){const u=Number(l[n]);if(u>=5&&!o){const c=ar(e).add(`${r}0.${"0".repeat(n)}${10-u}`);return Om(c.toString(),t,n,o)}return n===0?s:`${s}${t}${l.padEnd(n,"0").slice(0,n)}`}return a===".0"?s:`${s}${a}`}const tte=200,nte=600,ote=oe({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:ve()},slots:Object,setup(e,t){let{slots:n,emit:o}=t;const r=re(),i=(a,s)=>{a.preventDefault(),o("step",s);function u(){o("step",s),r.value=setTimeout(u,tte)}r.value=setTimeout(u,nte)},l=()=>{clearTimeout(r.value)};return Qe(()=>{l()}),()=>{if(eb())return null;const{prefixCls:a,upDisabled:s,downDisabled:u}=e,c=`${a}-handler`,d=le(c,`${c}-up`,{[`${c}-up-disabled`]:s}),f=le(c,`${c}-down`,{[`${c}-down-disabled`]:u}),g={unselectable:"on",role:"button",onMouseup:l,onMouseleave:l},{upNode:v,downNode:h}=n;return p("div",{class:`${c}-wrap`},[p("span",D(D({},g),{},{onMousedown:b=>{i(b,!0)},"aria-label":"Increase Value","aria-disabled":s,class:d}),[v?.()||p("span",{unselectable:"on",class:`${a}-handler-up-inner`},null)]),p("span",D(D({},g),{},{onMousedown:b=>{i(b,!1)},"aria-label":"Decrease Value","aria-disabled":u,class:f}),[h?.()||p("span",{unselectable:"on",class:`${a}-handler-down-inner`},null)])])}}});function rte(e,t){const n=re(null);function o(){try{const{selectionStart:i,selectionEnd:l,value:a}=e.value,s=a.substring(0,i),u=a.substring(l);n.value={start:i,end:l,value:a,beforeTxt:s,afterTxt:u}}catch{}}function r(){if(e.value&&n.value&&t.value)try{const{value:i}=e.value,{beforeTxt:l,afterTxt:a,start:s}=n.value;let u=i.length;if(i.endsWith(a))u=i.length-n.value.afterTxt.length;else if(i.startsWith(l))u=l.length;else{const c=l[s-1],d=i.indexOf(c,s-1);d!==-1&&(u=d+1)}e.value.setSelectionRange(u,u)}catch(i){`${i.message}`}}return[o,r]}const ite=(()=>{const e=ne(0),t=()=>{qe.cancel(e.value)};return Qe(()=>{t()}),n=>{t(),e.value=qe(()=>{n()})}});var lte=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re||t.isEmpty()?t.toString():t.toNumber(),Rw=e=>{const t=ar(e);return t.isInvalidate()?null:t},z5=()=>({stringMode:$e(),defaultValue:Fe([String,Number]),value:Fe([String,Number]),prefixCls:Ne(),min:Fe([String,Number]),max:Fe([String,Number]),step:Fe([String,Number],1),tabindex:Number,controls:$e(!0),readonly:$e(),disabled:$e(),autofocus:$e(),keyboard:$e(!0),parser:ve(),formatter:ve(),precision:Number,decimalSeparator:String,onInput:ve(),onChange:ve(),onPressEnter:ve(),onStep:ve(),onBlur:ve(),onFocus:ve()}),ate=oe({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:m(m({},z5()),{lazy:Boolean}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:i}=t;const l=ne(),a=ne(!1),s=ne(!1),u=ne(!1),c=ne(ar(e.value));function d(j){e.value===void 0&&(c.value=j)}const f=(j,Y)=>{if(!Y)return e.precision>=0?e.precision:Math.max(Sc(j),Sc(e.step))},g=j=>{const Y=String(j);if(e.parser)return e.parser(Y);let Q=Y;return e.decimalSeparator&&(Q=Q.replace(e.decimalSeparator,".")),Q.replace(/[^\w.-]+/g,"")},v=ne(""),h=(j,Y)=>{if(e.formatter)return e.formatter(j,{userTyping:Y,input:String(v.value)});let Q=typeof j=="number"?jy(j):j;if(!Y){const U=f(Q,Y);if(Vy(Q)&&(e.decimalSeparator||U>=0)){const ee=e.decimalSeparator||".";Q=Om(Q,ee,U)}}return Q},b=(()=>{const j=e.value;return c.value.isInvalidate()&&["string","number"].includes(typeof j)?Number.isNaN(j)?"":j:h(c.value.toString(),!1)})();v.value=b;function y(j,Y){v.value=h(j.isInvalidate()?j.toString(!1):j.toString(!Y),Y)}const S=P(()=>Rw(e.max)),$=P(()=>Rw(e.min)),x=P(()=>!S.value||!c.value||c.value.isInvalidate()?!1:S.value.lessEquals(c.value)),C=P(()=>!$.value||!c.value||c.value.isInvalidate()?!1:c.value.lessEquals($.value)),[O,w]=rte(l,a),I=j=>S.value&&!j.lessEquals(S.value)?S.value:$.value&&!$.value.lessEquals(j)?$.value:null,T=j=>!I(j),M=(j,Y)=>{var Q;let U=j,ee=T(U)||U.isEmpty();if(!U.isEmpty()&&!Y&&(U=I(U)||U,ee=!0),!e.readonly&&!e.disabled&&ee){const X=U.toString(),J=f(X,Y);return J>=0&&(U=ar(Om(X,".",J))),U.equals(c.value)||(d(U),(Q=e.onChange)===null||Q===void 0||Q.call(e,U.isEmpty()?null:Aw(e.stringMode,U)),e.value===void 0&&y(U,Y)),U}return c.value},E=ite(),A=j=>{var Y;if(O(),v.value=j,!u.value){const Q=g(j),U=ar(Q);U.isNaN()||M(U,!0)}(Y=e.onInput)===null||Y===void 0||Y.call(e,j),E(()=>{let Q=j;e.parser||(Q=j.replace(/。/g,".")),Q!==j&&A(Q)})},R=()=>{u.value=!0},z=()=>{u.value=!1,A(l.value.value)},_=j=>{A(j.target.value)},N=j=>{var Y,Q;if(j&&x.value||!j&&C.value)return;s.value=!1;let U=ar(e.step);j||(U=U.negate());const ee=(c.value||ar(0)).add(U.toString()),X=M(ee,!1);(Y=e.onStep)===null||Y===void 0||Y.call(e,Aw(e.stringMode,X),{offset:e.step,type:j?"up":"down"}),(Q=l.value)===null||Q===void 0||Q.focus()},B=j=>{const Y=ar(g(v.value));let Q=Y;Y.isNaN()?Q=c.value:Q=M(Y,j),e.value!==void 0?y(c.value,!1):Q.isNaN()||y(Q,!1)},k=()=>{s.value=!0},F=j=>{var Y;const{which:Q}=j;s.value=!0,Q===Pe.ENTER&&(u.value||(s.value=!1),B(!1),(Y=e.onPressEnter)===null||Y===void 0||Y.call(e,j)),e.keyboard!==!1&&!u.value&&[Pe.UP,Pe.DOWN].includes(Q)&&(N(Pe.UP===Q),j.preventDefault())},L=()=>{s.value=!1},H=j=>{B(!1),a.value=!1,s.value=!1,r("blur",j)};return ye(()=>e.precision,()=>{c.value.isInvalidate()||y(c.value,!1)},{flush:"post"}),ye(()=>e.value,()=>{const j=ar(e.value);c.value=j;const Y=ar(g(v.value));(!j.equals(Y)||!s.value||e.formatter)&&y(j,s.value)},{flush:"post"}),ye(v,()=>{e.formatter&&w()},{flush:"post"}),ye(()=>e.disabled,j=>{j&&(a.value=!1)}),i({focus:()=>{var j;(j=l.value)===null||j===void 0||j.focus()},blur:()=>{var j;(j=l.value)===null||j===void 0||j.blur()}}),()=>{const j=m(m({},n),e),{prefixCls:Y="rc-input-number",min:Q,max:U,step:ee=1,defaultValue:X,value:J,disabled:Z,readonly:G,keyboard:q,controls:V=!0,autofocus:K,stringMode:te,parser:ue,formatter:ie,precision:ae,decimalSeparator:ce,onChange:se,onInput:pe,onPressEnter:ge,onStep:he,lazy:me,class:xe,style:fe}=j,de=lte(j,["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"]),{upHandler:be,downHandler:we}=o,Ie=`${Y}-input`,Ae={};return me?Ae.onChange=_:Ae.onInput=_,p("div",{class:le(Y,xe,{[`${Y}-focused`]:a.value,[`${Y}-disabled`]:Z,[`${Y}-readonly`]:G,[`${Y}-not-a-number`]:c.value.isNaN(),[`${Y}-out-of-range`]:!c.value.isInvalidate()&&!T(c.value)}),style:fe,onKeydown:F,onKeyup:L},[V&&p(ote,{prefixCls:Y,upDisabled:x.value,downDisabled:C.value,onStep:N},{upNode:be,downNode:we}),p("div",{class:`${Ie}-wrap`},[p("input",D(D(D({autofocus:K,autocomplete:"off",role:"spinbutton","aria-valuemin":Q,"aria-valuemax":U,"aria-valuenow":c.value.isInvalidate()?null:c.value.toString(),step:ee},de),{},{ref:l,class:Ie,value:v.value,disabled:Z,readonly:G,onFocus:Se=>{a.value=!0,r("focus",Se)}},Ae),{},{onBlur:H,onCompositionstart:R,onCompositionend:z,onBeforeinput:k}),null)])])}}});function Bh(e){return e!=null}const ste=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorBorder:r,borderRadius:i,fontSizeLG:l,controlHeightLG:a,controlHeightSM:s,colorError:u,inputPaddingHorizontalSM:c,colorTextDescription:d,motionDurationMid:f,colorPrimary:g,controlHeight:v,inputPaddingHorizontal:h,colorBgContainer:b,colorTextDisabled:y,borderRadiusSM:S,borderRadiusLG:$,controlWidth:x,handleVisible:C}=e;return[{[t]:m(m(m(m({},Ue(e)),kl(e)),Bc(e,t)),{display:"inline-block",width:x,margin:0,padding:0,border:`${n}px ${o} ${r}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:l,borderRadius:$,[`input${t}-input`]:{height:a-2*n}},"&-sm":{padding:0,borderRadius:S,[`input${t}-input`]:{height:s-2*n,padding:`0 ${c}px`}},"&:hover":m({},qa(e)),"&-focused":m({},Pi(e)),"&-disabled":m(m({},ly(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:u}},"&-group":m(m(m({},Ue(e)),WI(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:$}},"&-sm":{[`${t}-group-addon`]:{borderRadius:S}}}}),[t]:{"&-input":m(m({width:"100%",height:v-2*n,padding:`0 ${h}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${f} linear`,appearance:"textfield",color:e.colorText,fontSize:"inherit",verticalAlign:"top"},iy(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:b,borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,opacity:C===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${f} linear ${f}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + ${n}-confirm ${n}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${n}-info ${n}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${n}-success ${n}-body > ${e.iconCls}`]:{color:e.colorSuccess},[`${t}-zoom-leave ${t}-btns`]:{pointerEvents:"none"}}},Vee=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},Wee=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[o]:{[`${n}-modal-body`]:{padding:`${e.padding*2}px ${e.padding*2}px ${e.paddingLG}px`},[`${o}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${o}-title + ${o}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${o}-btns`]:{marginTop:e.marginLG}}}},Kee=Ke("Modal",e=>{const t=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5,r=ke(e,{modalBodyPadding:e.paddingLG,modalHeaderBg:e.colorBgElevated,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderTitleLineHeight:o,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderCloseSize:o*n+t*2,modalContentBg:e.colorBgElevated,modalHeadingColor:e.colorTextHeading,modalCloseColor:e.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalConfirmTitleFontSize:e.fontSizeLG,modalIconHoverColor:e.colorIconHover,modalConfirmIconSize:e.fontSize*e.lineHeight,modalCloseBtnSize:e.controlHeightLG*.55});return[Hee(r),jee(r),Vee(r),N5(r),e.wireframe&&Wee(r),Ga(r,"zoom")]}),xm=e=>({position:e||"absolute",inset:0}),Gee=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:o,marginXXS:r,prefixCls:i}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",background:new pt("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:m(m({},Gt),{padding:`0 ${o}px`,[t]:{marginInlineEnd:r,svg:{verticalAlign:"baseline"}}})}},Xee=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:o,previewOperationColorDisabled:r,motionDurationSlow:i}=e,l=new pt(n).setAlpha(.1),a=l.clone().setAlpha(.2);return{[`${t}-operations`]:m(m({},Ue(e)),{display:"flex",flexDirection:"row-reverse",alignItems:"center",color:e.previewOperationColor,listStyle:"none",background:l.toRgbString(),pointerEvents:"auto","&-operation":{marginInlineStart:o,padding:o,cursor:"pointer",transition:`all ${i}`,userSelect:"none","&:hover":{background:a.toRgbString()},"&-disabled":{color:r,pointerEvents:"none"},"&:last-of-type":{marginInlineStart:0}},"&-progress":{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-icon":{fontSize:e.previewOperationSize}})}},Uee=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:o,previewCls:r,zIndexPopup:i,motionDurationSlow:l}=e,a=new pt(t).setAlpha(.1),s=a.clone().setAlpha(.2);return{[`${r}-switch-left, ${r}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:i+1,display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:-e.imagePreviewSwitchSize/2,color:e.previewOperationColor,background:a.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${l}`,pointerEvents:"auto",userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{"&, &:hover":{color:o,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${r}-switch-left`]:{insetInlineStart:e.marginSM},[`${r}-switch-right`]:{insetInlineEnd:e.marginSM}}},Yee=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:o,componentCls:r}=e;return[{[`${r}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:m(m({},xm()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"100%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${o} ${t} 0s`,userSelect:"none",pointerEvents:"auto","&-wrapper":m(m({},xm()),{transition:`transform ${o} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${r}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${r}-preview-operations-wrapper`]:{position:"fixed",insetBlockStart:0,insetInlineEnd:0,zIndex:e.zIndexPopup+1,width:"100%"},"&":[Xee(e),Uee(e)]}]},qee=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`]:m({},Gee(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:m({},xm())}}},Zee=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Ga(e,"zoom"),"&":$b(e,!0)}},B5=Ke("Image",e=>{const t=`${e.componentCls}-preview`,n=ke(e,{previewCls:t,modalMaskBg:new pt("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[qee(n),Yee(n),N5(ke(n,{componentCls:t})),Zee(n)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new pt(e.colorTextLightSolid).toRgbString(),previewOperationColorDisabled:new pt(e.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:e.fontSizeIcon*1.5})),k5={rotateLeft:p(By,null,null),rotateRight:p(ky,null,null),zoomIn:p(Fy,null,null),zoomOut:p(Ly,null,null),close:p(Rn,null,null),left:p(mr,null,null),right:p(ho,null,null),flipX:p(_f,null,null),flipY:p(_f,{rotate:90},null)},Qee=()=>({previewPrefixCls:String,preview:yt()}),F5=oe({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:Qee(),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,rootPrefixCls:i}=Te("image",e),l=P(()=>`${r.value}-preview`),[a,s]=B5(r),u=P(()=>{const{preview:c}=e;if(c===!1)return c;const d=typeof c=="object"?c:{};return m(m({},d),{rootClassName:s.value,transitionName:_n(i.value,"zoom",d.transitionName),maskTransitionName:_n(i.value,"fade",d.maskTransitionName)})});return()=>a(p(M5,D(D({},m(m({},n),e)),{},{preview:u.value,icons:k5,previewPrefixCls:l.value}),o))}}),tl=oe({name:"AImage",inheritAttrs:!1,props:A5(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,rootPrefixCls:i,configProvider:l}=Te("image",e),[a,s]=B5(r),u=P(()=>{const{preview:c}=e;if(c===!1)return c;const d=typeof c=="object"?c:{};return m(m({icons:k5},d),{transitionName:_n(i.value,"zoom",d.transitionName),maskTransitionName:_n(i.value,"fade",d.maskTransitionName)})});return()=>{var c,d;const f=((d=(c=l.locale)===null||c===void 0?void 0:c.value)===null||d===void 0?void 0:d.Image)||Vn.Image,g=()=>p("div",{class:`${r.value}-mask-info`},[p(jc,null,null),f?.preview]),{previewMask:v=n.previewMask||g}=e;return a(p(D5,D(D({},m(m(m({},o),e),{prefixCls:r.value})),{},{preview:u.value,rootClassName:le(e.rootClassName,s.value)}),m(m({},n),{previewMask:typeof v=="function"?v:null})))}}});tl.PreviewGroup=F5;tl.install=function(e){return e.component(tl.name,tl),e.component(tl.PreviewGroup.name,tl.PreviewGroup),e};var Jee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};function _w(e){for(var t=1;tNumber.MAX_SAFE_INTEGER)return String(wm()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new nl(Number.MAX_SAFE_INTEGER);if(o0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":jy(this.number):this.origin}}class ia{constructor(t){if(this.origin="",L5(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}let n=t;if(Hy(n)&&(n=Number(n)),n=typeof n=="string"?n:jy(n),Vy(n)){const o=Vs(n);this.negative=o.negative;const r=o.trimStr.split(".");this.integer=BigInt(r[0]);const i=r[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}getMark(){return this.negative?"-":""}getIntegerStr(){return this.integer.toString()}getDecimalStr(){return this.decimal.toString().padStart(this.decimalLen,"0")}alignDecimal(t){const n=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(t,"0")}`;return BigInt(n)}negate(){const t=new ia(this.toString());return t.negative=!t.negative,t}add(t){if(this.isInvalidate())return new ia(t);const n=new ia(t);if(n.isInvalidate())return this;const o=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),r=this.alignDecimal(o),i=n.alignDecimal(o),l=(r+i).toString(),{negativeStr:a,trimStr:s}=Vs(l),u=`${a}${s.padStart(o+1,"0")}`;return new ia(`${u.slice(0,-o)}.${u.slice(-o)}`)}isEmpty(){return this.empty}isNaN(){return this.nan}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(t){return this.toString()===t?.toString()}lessEquals(t){return this.add(t.negate().toString()).toNumber()<=0}toNumber(){return this.isNaN()?NaN:Number(this.toString())}toString(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":Vs(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}function ar(e){return wm()?new ia(e):new nl(e)}function Om(e,t,n){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";const{negativeStr:r,integerStr:i,decimalStr:l}=Vs(e),a=`${t}${l}`,s=`${r}${i}`;if(n>=0){const u=Number(l[n]);if(u>=5&&!o){const c=ar(e).add(`${r}0.${"0".repeat(n)}${10-u}`);return Om(c.toString(),t,n,o)}return n===0?s:`${s}${t}${l.padEnd(n,"0").slice(0,n)}`}return a===".0"?s:`${s}${a}`}const tte=200,nte=600,ote=oe({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:ve()},slots:Object,setup(e,t){let{slots:n,emit:o}=t;const r=re(),i=(a,s)=>{a.preventDefault(),o("step",s);function u(){o("step",s),r.value=setTimeout(u,tte)}r.value=setTimeout(u,nte)},l=()=>{clearTimeout(r.value)};return Qe(()=>{l()}),()=>{if(eb())return null;const{prefixCls:a,upDisabled:s,downDisabled:u}=e,c=`${a}-handler`,d=le(c,`${c}-up`,{[`${c}-up-disabled`]:s}),f=le(c,`${c}-down`,{[`${c}-down-disabled`]:u}),g={unselectable:"on",role:"button",onMouseup:l,onMouseleave:l},{upNode:v,downNode:h}=n;return p("div",{class:`${c}-wrap`},[p("span",D(D({},g),{},{onMousedown:b=>{i(b,!0)},"aria-label":"Increase Value","aria-disabled":s,class:d}),[v?.()||p("span",{unselectable:"on",class:`${a}-handler-up-inner`},null)]),p("span",D(D({},g),{},{onMousedown:b=>{i(b,!1)},"aria-label":"Decrease Value","aria-disabled":u,class:f}),[h?.()||p("span",{unselectable:"on",class:`${a}-handler-down-inner`},null)])])}}});function rte(e,t){const n=re(null);function o(){try{const{selectionStart:i,selectionEnd:l,value:a}=e.value,s=a.substring(0,i),u=a.substring(l);n.value={start:i,end:l,value:a,beforeTxt:s,afterTxt:u}}catch{}}function r(){if(e.value&&n.value&&t.value)try{const{value:i}=e.value,{beforeTxt:l,afterTxt:a,start:s}=n.value;let u=i.length;if(i.endsWith(a))u=i.length-n.value.afterTxt.length;else if(i.startsWith(l))u=l.length;else{const c=l[s-1],d=i.indexOf(c,s-1);d!==-1&&(u=d+1)}e.value.setSelectionRange(u,u)}catch(i){`${i.message}`}}return[o,r]}const ite=(()=>{const e=ne(0),t=()=>{qe.cancel(e.value)};return Qe(()=>{t()}),n=>{t(),e.value=qe(()=>{n()})}});var lte=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re||t.isEmpty()?t.toString():t.toNumber(),Rw=e=>{const t=ar(e);return t.isInvalidate()?null:t},z5=()=>({stringMode:$e(),defaultValue:Fe([String,Number]),value:Fe([String,Number]),prefixCls:Ne(),min:Fe([String,Number]),max:Fe([String,Number]),step:Fe([String,Number],1),tabindex:Number,controls:$e(!0),readonly:$e(),disabled:$e(),autofocus:$e(),keyboard:$e(!0),parser:ve(),formatter:ve(),precision:Number,decimalSeparator:String,onInput:ve(),onChange:ve(),onPressEnter:ve(),onStep:ve(),onBlur:ve(),onFocus:ve()}),ate=oe({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:m(m({},z5()),{lazy:Boolean}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:i}=t;const l=ne(),a=ne(!1),s=ne(!1),u=ne(!1),c=ne(ar(e.value));function d(j){e.value===void 0&&(c.value=j)}const f=(j,Y)=>{if(!Y)return e.precision>=0?e.precision:Math.max(Sc(j),Sc(e.step))},g=j=>{const Y=String(j);if(e.parser)return e.parser(Y);let Q=Y;return e.decimalSeparator&&(Q=Q.replace(e.decimalSeparator,".")),Q.replace(/[^\w.-]+/g,"")},v=ne(""),h=(j,Y)=>{if(e.formatter)return e.formatter(j,{userTyping:Y,input:String(v.value)});let Q=typeof j=="number"?jy(j):j;if(!Y){const U=f(Q,Y);if(Vy(Q)&&(e.decimalSeparator||U>=0)){const ee=e.decimalSeparator||".";Q=Om(Q,ee,U)}}return Q},b=(()=>{const j=e.value;return c.value.isInvalidate()&&["string","number"].includes(typeof j)?Number.isNaN(j)?"":j:h(c.value.toString(),!1)})();v.value=b;function y(j,Y){v.value=h(j.isInvalidate()?j.toString(!1):j.toString(!Y),Y)}const S=P(()=>Rw(e.max)),$=P(()=>Rw(e.min)),x=P(()=>!S.value||!c.value||c.value.isInvalidate()?!1:S.value.lessEquals(c.value)),C=P(()=>!$.value||!c.value||c.value.isInvalidate()?!1:c.value.lessEquals($.value)),[O,w]=rte(l,a),I=j=>S.value&&!j.lessEquals(S.value)?S.value:$.value&&!$.value.lessEquals(j)?$.value:null,T=j=>!I(j),_=(j,Y)=>{var Q;let U=j,ee=T(U)||U.isEmpty();if(!U.isEmpty()&&!Y&&(U=I(U)||U,ee=!0),!e.readonly&&!e.disabled&&ee){const X=U.toString(),J=f(X,Y);return J>=0&&(U=ar(Om(X,".",J))),U.equals(c.value)||(d(U),(Q=e.onChange)===null||Q===void 0||Q.call(e,U.isEmpty()?null:Aw(e.stringMode,U)),e.value===void 0&&y(U,Y)),U}return c.value},E=ite(),A=j=>{var Y;if(O(),v.value=j,!u.value){const Q=g(j),U=ar(Q);U.isNaN()||_(U,!0)}(Y=e.onInput)===null||Y===void 0||Y.call(e,j),E(()=>{let Q=j;e.parser||(Q=j.replace(/。/g,".")),Q!==j&&A(Q)})},R=()=>{u.value=!0},z=()=>{u.value=!1,A(l.value.value)},M=j=>{A(j.target.value)},N=j=>{var Y,Q;if(j&&x.value||!j&&C.value)return;s.value=!1;let U=ar(e.step);j||(U=U.negate());const ee=(c.value||ar(0)).add(U.toString()),X=_(ee,!1);(Y=e.onStep)===null||Y===void 0||Y.call(e,Aw(e.stringMode,X),{offset:e.step,type:j?"up":"down"}),(Q=l.value)===null||Q===void 0||Q.focus()},B=j=>{const Y=ar(g(v.value));let Q=Y;Y.isNaN()?Q=c.value:Q=_(Y,j),e.value!==void 0?y(c.value,!1):Q.isNaN()||y(Q,!1)},k=()=>{s.value=!0},F=j=>{var Y;const{which:Q}=j;s.value=!0,Q===Pe.ENTER&&(u.value||(s.value=!1),B(!1),(Y=e.onPressEnter)===null||Y===void 0||Y.call(e,j)),e.keyboard!==!1&&!u.value&&[Pe.UP,Pe.DOWN].includes(Q)&&(N(Pe.UP===Q),j.preventDefault())},L=()=>{s.value=!1},H=j=>{B(!1),a.value=!1,s.value=!1,r("blur",j)};return ye(()=>e.precision,()=>{c.value.isInvalidate()||y(c.value,!1)},{flush:"post"}),ye(()=>e.value,()=>{const j=ar(e.value);c.value=j;const Y=ar(g(v.value));(!j.equals(Y)||!s.value||e.formatter)&&y(j,s.value)},{flush:"post"}),ye(v,()=>{e.formatter&&w()},{flush:"post"}),ye(()=>e.disabled,j=>{j&&(a.value=!1)}),i({focus:()=>{var j;(j=l.value)===null||j===void 0||j.focus()},blur:()=>{var j;(j=l.value)===null||j===void 0||j.blur()}}),()=>{const j=m(m({},n),e),{prefixCls:Y="rc-input-number",min:Q,max:U,step:ee=1,defaultValue:X,value:J,disabled:Z,readonly:G,keyboard:q,controls:V=!0,autofocus:K,stringMode:te,parser:ue,formatter:ie,precision:ae,decimalSeparator:ce,onChange:se,onInput:pe,onPressEnter:ge,onStep:he,lazy:me,class:xe,style:fe}=j,de=lte(j,["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"]),{upHandler:be,downHandler:we}=o,Ie=`${Y}-input`,Ae={};return me?Ae.onChange=M:Ae.onInput=M,p("div",{class:le(Y,xe,{[`${Y}-focused`]:a.value,[`${Y}-disabled`]:Z,[`${Y}-readonly`]:G,[`${Y}-not-a-number`]:c.value.isNaN(),[`${Y}-out-of-range`]:!c.value.isInvalidate()&&!T(c.value)}),style:fe,onKeydown:F,onKeyup:L},[V&&p(ote,{prefixCls:Y,upDisabled:x.value,downDisabled:C.value,onStep:N},{upNode:be,downNode:we}),p("div",{class:`${Ie}-wrap`},[p("input",D(D(D({autofocus:K,autocomplete:"off",role:"spinbutton","aria-valuemin":Q,"aria-valuemax":U,"aria-valuenow":c.value.isInvalidate()?null:c.value.toString(),step:ee},de),{},{ref:l,class:Ie,value:v.value,disabled:Z,readonly:G,onFocus:Se=>{a.value=!0,r("focus",Se)}},Ae),{},{onBlur:H,onCompositionstart:R,onCompositionend:z,onBeforeinput:k}),null)])])}}});function Bh(e){return e!=null}const ste=e=>{const{componentCls:t,lineWidth:n,lineType:o,colorBorder:r,borderRadius:i,fontSizeLG:l,controlHeightLG:a,controlHeightSM:s,colorError:u,inputPaddingHorizontalSM:c,colorTextDescription:d,motionDurationMid:f,colorPrimary:g,controlHeight:v,inputPaddingHorizontal:h,colorBgContainer:b,colorTextDisabled:y,borderRadiusSM:S,borderRadiusLG:$,controlWidth:x,handleVisible:C}=e;return[{[t]:m(m(m(m({},Ue(e)),kl(e)),Bc(e,t)),{display:"inline-block",width:x,margin:0,padding:0,border:`${n}px ${o} ${r}`,borderRadius:i,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:l,borderRadius:$,[`input${t}-input`]:{height:a-2*n}},"&-sm":{padding:0,borderRadius:S,[`input${t}-input`]:{height:s-2*n,padding:`0 ${c}px`}},"&:hover":m({},qa(e)),"&-focused":m({},Pi(e)),"&-disabled":m(m({},ly(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:u}},"&-group":m(m(m({},Ue(e)),WI(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:$}},"&-sm":{[`${t}-group-addon`]:{borderRadius:S}}}}),[t]:{"&-input":m(m({width:"100%",height:v-2*n,padding:`0 ${h}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:i,outline:0,transition:`all ${f} linear`,appearance:"textfield",color:e.colorText,fontSize:"inherit",verticalAlign:"top"},iy(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:b,borderStartStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i,borderEndStartRadius:0,opacity:C===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${f} linear ${f}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:d,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${o} ${r}`,transition:`all ${f} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[` @@ -355,7 +355,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `]:{cursor:"not-allowed"},[` ${t}-handler-up-disabled:hover &-handler-up-inner, ${t}-handler-down-disabled:hover &-handler-down-inner - `]:{color:y}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},cte=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:o,controlWidth:r,borderRadiusLG:i,borderRadiusSM:l}=e;return{[`${t}-affix-wrapper`]:m(m(m({},kl(e)),Bc(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:r,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:i},"&-sm":{borderRadius:l},[`&:not(${t}-affix-wrapper-disabled):hover`]:m(m({},qa(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:o}}})}},ute=Ke("InputNumber",e=>{const t=Fl(e);return[ste(t),cte(t),Xa(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var dte=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rm(m({},Dw),{size:Ne(),bordered:$e(!0),placeholder:String,name:String,id:String,type:String,addonBefore:W.any,addonAfter:W.any,prefix:W.any,"onUpdate:value":Dw.onChange,valueModifiers:Object,status:Ne()}),kh=oe({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:fte(),slots:Object,setup(e,t){let{emit:n,expose:o,attrs:r,slots:i}=t;var l;const a=Qt(),s=dn.useInject(),u=P(()=>Qo(s.status,e.status)),{prefixCls:c,size:d,direction:f,disabled:g}=Te("input-number",e),{compactSize:v,compactItemClassnames:h}=Ri(c,f),b=Jn(),y=P(()=>{var R;return(R=g.value)!==null&&R!==void 0?R:b.value}),[S,$]=ute(c),x=P(()=>v.value||d.value),C=ne((l=e.value)!==null&&l!==void 0?l:e.defaultValue),O=ne(!1);ye(()=>e.value,()=>{C.value=e.value});const w=ne(null),I=()=>{var R;(R=w.value)===null||R===void 0||R.focus()};o({focus:I,blur:()=>{var R;(R=w.value)===null||R===void 0||R.blur()}});const M=R=>{e.value===void 0&&(C.value=R),n("update:value",R),n("change",R),a.onFieldChange()},E=R=>{O.value=!1,n("blur",R),a.onFieldBlur()},A=R=>{O.value=!0,n("focus",R)};return()=>{var R,z,_,N;const{hasFeedback:B,isFormItemInput:k,feedbackIcon:F}=s,L=(R=e.id)!==null&&R!==void 0?R:a.id.value,H=m(m(m({},r),e),{id:L,disabled:y.value}),{class:j,bordered:Y,readonly:Q,style:U,addonBefore:ee=(z=i.addonBefore)===null||z===void 0?void 0:z.call(i),addonAfter:X=(_=i.addonAfter)===null||_===void 0?void 0:_.call(i),prefix:J=(N=i.prefix)===null||N===void 0?void 0:N.call(i),valueModifiers:Z={}}=H,G=dte(H,["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"]),q=c.value,V=le({[`${q}-lg`]:x.value==="large",[`${q}-sm`]:x.value==="small",[`${q}-rtl`]:f.value==="rtl",[`${q}-readonly`]:Q,[`${q}-borderless`]:!Y,[`${q}-in-form-item`]:k},Tn(q,u.value),j,h.value,$.value);let K=p(ate,D(D({},tt(G,["size","defaultValue"])),{},{ref:w,lazy:!!Z.lazy,value:C.value,class:V,prefixCls:q,readonly:Q,onChange:M,onBlur:E,onFocus:A}),{upHandler:i.upIcon?()=>p("span",{class:`${q}-handler-up-inner`},[i.upIcon()]):()=>p(zy,{class:`${q}-handler-up-inner`},null),downHandler:i.downIcon?()=>p("span",{class:`${q}-handler-down-inner`},[i.downIcon()]):()=>p(Dl,{class:`${q}-handler-down-inner`},null)});const te=Bh(ee)||Bh(X),ue=Bh(J);if(ue||B){const ie=le(`${q}-affix-wrapper`,Tn(`${q}-affix-wrapper`,u.value,B),{[`${q}-affix-wrapper-focused`]:O.value,[`${q}-affix-wrapper-disabled`]:y.value,[`${q}-affix-wrapper-sm`]:x.value==="small",[`${q}-affix-wrapper-lg`]:x.value==="large",[`${q}-affix-wrapper-rtl`]:f.value==="rtl",[`${q}-affix-wrapper-readonly`]:Q,[`${q}-affix-wrapper-borderless`]:!Y,[`${j}`]:!te&&j},$.value);K=p("div",{class:ie,style:U,onClick:I},[ue&&p("span",{class:`${q}-prefix`},[J]),K,B&&p("span",{class:`${q}-suffix`},[F])])}if(te){const ie=`${q}-group`,ae=`${ie}-addon`,ce=ee?p("div",{class:ae},[ee]):null,se=X?p("div",{class:ae},[X]):null,pe=le(`${q}-wrapper`,ie,{[`${ie}-rtl`]:f.value==="rtl"},$.value),ge=le(`${q}-group-wrapper`,{[`${q}-group-wrapper-sm`]:x.value==="small",[`${q}-group-wrapper-lg`]:x.value==="large",[`${q}-group-wrapper-rtl`]:f.value==="rtl"},Tn(`${c}-group-wrapper`,u.value,B),j,$.value);K=p("div",{class:ge,style:U},[p("div",{class:pe},[ce&&p(dc,null,{default:()=>[p(tf,null,{default:()=>[ce]})]}),K,se&&p(dc,null,{default:()=>[p(tf,null,{default:()=>[se]})]})])])}return S(ut(K,{style:U}))}}}),pte=m(kh,{install:e=>(e.component(kh.name,kh),e)}),gte=e=>{const{componentCls:t,colorBgContainer:n,colorBgBody:o,colorText:r}=e;return{[`${t}-sider-light`]:{background:n,[`${t}-sider-trigger`]:{color:r,background:n},[`${t}-sider-zero-width-trigger`]:{color:r,background:n,border:`1px solid ${o}`,borderInlineStart:0}}}},hte=e=>{const{antCls:t,componentCls:n,colorText:o,colorTextLightSolid:r,colorBgHeader:i,colorBgBody:l,colorBgTrigger:a,layoutHeaderHeight:s,layoutHeaderPaddingInline:u,layoutHeaderColor:c,layoutFooterPadding:d,layoutTriggerHeight:f,layoutZeroTriggerSize:g,motionDurationMid:v,motionDurationSlow:h,fontSize:b,borderRadius:y}=e;return{[n]:m(m({display:"flex",flex:"auto",flexDirection:"column",color:o,minHeight:0,background:l,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-header`]:{height:s,paddingInline:u,color:c,lineHeight:`${s}px`,background:i,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:o,fontSize:b,background:l},[`${n}-content`]:{flex:"auto",minHeight:0},[`${n}-sider`]:{position:"relative",minWidth:0,background:i,transition:`all ${v}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:f,color:r,lineHeight:`${f}px`,textAlign:"center",background:a,cursor:"pointer",transition:`all ${v}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:-g,zIndex:1,width:g,height:g,color:r,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:i,borderStartStartRadius:0,borderStartEndRadius:y,borderEndEndRadius:y,borderEndStartRadius:0,cursor:"pointer",transition:`background ${h} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${h}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-g,borderStartStartRadius:y,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:y}}}}},gte(e)),{"&-rtl":{direction:"rtl"}})}},vte=Ke("Layout",e=>{const{colorText:t,controlHeightSM:n,controlHeight:o,controlHeightLG:r,marginXXS:i}=e,l=r*1.25,a=ke(e,{layoutHeaderHeight:o*2,layoutHeaderPaddingInline:l,layoutHeaderColor:t,layoutFooterPadding:`${n}px ${l}px`,layoutTriggerHeight:r+i*2,layoutZeroTriggerSize:r});return[hte(a)]},e=>{const{colorBgLayout:t}=e;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140"}}),Wy=()=>({prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String});function sg(e){let{suffixCls:t,tagName:n,name:o}=e;return r=>oe({compatConfig:{MODE:3},name:o,props:Wy(),setup(l,a){let{slots:s}=a;const{prefixCls:u}=Te(t,l);return()=>{const c=m(m({},l),{prefixCls:u.value,tagName:n});return p(r,c,s)}}})}const Ky=oe({compatConfig:{MODE:3},props:Wy(),setup(e,t){let{slots:n}=t;return()=>p(e.tagName,{class:e.prefixCls},n)}}),mte=oe({compatConfig:{MODE:3},inheritAttrs:!1,props:Wy(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Te("",e),[l,a]=vte(r),s=re([]);Xe(sI,{addSider:d=>{s.value=[...s.value,d]},removeSider:d=>{s.value=s.value.filter(f=>f!==d)}});const c=P(()=>{const{prefixCls:d,hasSider:f}=e;return{[a.value]:!0,[`${d}`]:!0,[`${d}-has-sider`]:typeof f=="boolean"?f:s.value.length>0,[`${d}-rtl`]:i.value==="rtl"}});return()=>{const{tagName:d}=e;return l(p(d,m(m({},o),{class:[c.value,o.class]}),n))}}}),Fh=sg({suffixCls:"layout",tagName:"section",name:"ALayout"})(mte),fd=sg({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(Ky),pd=sg({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})(Ky),gd=sg({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})(Ky);var bte={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};function Nw(e){for(var t=1;t({prefixCls:String,collapsible:{type:Boolean,default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:void 0},reverseArrow:{type:Boolean,default:void 0},zeroWidthTriggerStyle:{type:Object,default:void 0},trigger:W.any,width:W.oneOfType([W.number,W.string]),collapsedWidth:W.oneOfType([W.number,W.string]),breakpoint:W.oneOf(Sn("xs","sm","md","lg","xl","xxl","xxxl")),theme:W.oneOf(Sn("light","dark")).def("dark"),onBreakpoint:Function,onCollapse:Function}),$te=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),hd=oe({compatConfig:{MODE:3},name:"ALayoutSider",inheritAttrs:!1,props:Ze(Ste(),{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),emits:["breakpoint","update:collapsed","collapse"],setup(e,t){let{emit:n,attrs:o,slots:r}=t;const{prefixCls:i}=Te("layout-sider",e),l=He(sI,void 0),a=ne(!!(e.collapsed!==void 0?e.collapsed:e.defaultCollapsed)),s=ne(!1);ye(()=>e.collapsed,()=>{a.value=!!e.collapsed}),Xe(aI,a);const u=(h,b)=>{e.collapsed===void 0&&(a.value=h),n("update:collapsed",h),n("collapse",h,b)},c=ne(h=>{s.value=h.matches,n("breakpoint",h.matches),a.value!==h.matches&&u(h.matches,"responsive")});let d;function f(h){return c.value(h)}const g=$te("ant-sider-");l&&l.addSider(g),je(()=>{ye(()=>e.breakpoint,()=>{try{d?.removeEventListener("change",f)}catch{d?.removeListener(f)}if(typeof window<"u"){const{matchMedia:h}=window;if(h&&e.breakpoint&&e.breakpoint in Bw){d=h(`(max-width: ${Bw[e.breakpoint]})`);try{d.addEventListener("change",f)}catch{d.addListener(f)}f(d)}}},{immediate:!0})}),Qe(()=>{try{d?.removeEventListener("change",f)}catch{d?.removeListener(f)}l&&l.removeSider(g)});const v=()=>{u(!a.value,"clickTrigger")};return()=>{var h,b;const y=i.value,{collapsedWidth:S,width:$,reverseArrow:x,zeroWidthTriggerStyle:C,trigger:O=(h=r.trigger)===null||h===void 0?void 0:h.call(r),collapsible:w,theme:I}=e,T=a.value?S:$,M=sf(T)?`${T}px`:String(T),E=parseFloat(String(S||0))===0?p("span",{onClick:v,class:le(`${y}-zero-width-trigger`,`${y}-zero-width-trigger-${x?"right":"left"}`),style:C},[O||p(Gy,null,null)]):null,A={expanded:p(x?ho:mr,null,null),collapsed:p(x?mr:ho,null,null)},R=a.value?"collapsed":"expanded",z=A[R],_=O!==null?E||p("div",{class:`${y}-trigger`,onClick:v,style:{width:M}},[O||z]):null,N=[o.style,{flex:`0 0 ${M}`,maxWidth:M,minWidth:M,width:M}],B=le(y,`${y}-${I}`,{[`${y}-collapsed`]:!!a.value,[`${y}-has-trigger`]:w&&O!==null&&!E,[`${y}-below`]:!!s.value,[`${y}-zero-width`]:parseFloat(M)===0},o.class);return p("aside",D(D({},o),{},{class:B,style:N}),[p("div",{class:`${y}-children`},[(b=r.default)===null||b===void 0?void 0:b.call(r)]),w||s.value&&E?_:null])}}}),Cte=fd,xte=pd,wte=hd,Ote=gd,Pte=m(Fh,{Header:fd,Footer:pd,Content:gd,Sider:hd,install:e=>(e.component(Fh.name,Fh),e.component(fd.name,fd),e.component(pd.name,pd),e.component(hd.name,hd),e.component(gd.name,gd),e)});function Ite(e,t,n){var o=n||{},r=o.noTrailing,i=r===void 0?!1:r,l=o.noLeading,a=l===void 0?!1:l,s=o.debounceMode,u=s===void 0?void 0:s,c,d=!1,f=0;function g(){c&&clearTimeout(c)}function v(b){var y=b||{},S=y.upcomingOnly,$=S===void 0?!1:S;g(),d=!$}function h(){for(var b=arguments.length,y=new Array(b),S=0;Se?a?(f=Date.now(),i||(c=setTimeout(u?O:C,e))):C():i!==!0&&(c=setTimeout(u?O:C,u===void 0?e-x:e))}return h.cancel=v,h}function Tte(e,t,n){var o={},r=o.atBegin,i=r===void 0?!1:r;return Ite(e,t,{debounceMode:i!==!1})}const Ete=new nt("antSpinMove",{to:{opacity:1}}),Mte=new nt("antRotate",{to:{transform:"rotate(405deg)"}}),_te=e=>({[`${e.componentCls}`]:m(m({},Ue(e)),{position:"absolute",display:"none",color:e.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:Ete,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:Mte,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})}),Ate=Ke("Spin",e=>{const t=ke(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:e.controlHeightLG*.35,spinDotSizeLG:e.controlHeight});return[_te(t)]},{contentHeight:400});var Rte=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:W.any,delay:Number,indicator:W.any});let vd=null;function Nte(e,t){return!!e&&!!t&&!isNaN(Number(t))}function Bte(e){const t=e.indicator;vd=typeof t=="function"?t:()=>p(t,null,null)}const gr=oe({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:Ze(Dte(),{size:"default",spinning:!0,wrapperClassName:""}),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,size:i,direction:l}=Te("spin",e),[a,s]=Ate(r),u=ne(e.spinning&&!Nte(e.spinning,e.delay));let c;return ye([()=>e.spinning,()=>e.delay],()=>{c?.cancel(),c=Tte(e.delay,()=>{u.value=e.spinning}),c?.()},{immediate:!0,flush:"post"}),Qe(()=>{c?.cancel()}),()=>{var d,f;const{class:g}=n,v=Rte(n,["class"]),{tip:h=(d=o.tip)===null||d===void 0?void 0:d.call(o)}=e,b=(f=o.default)===null||f===void 0?void 0:f.call(o),y={[s.value]:!0,[r.value]:!0,[`${r.value}-sm`]:i.value==="small",[`${r.value}-lg`]:i.value==="large",[`${r.value}-spinning`]:u.value,[`${r.value}-show-text`]:!!h,[`${r.value}-rtl`]:l.value==="rtl",[g]:!!g};function S(x){const C=`${x}-dot`;let O=Zt(o,e,"indicator");return O===null?null:(Array.isArray(O)&&(O=O.length===1?O[0]:O),qt(O)?cn(O,{class:C}):vd&&qt(vd())?cn(vd(),{class:C}):p("span",{class:`${C} ${x}-dot-spin`},[p("i",{class:`${x}-dot-item`},null),p("i",{class:`${x}-dot-item`},null),p("i",{class:`${x}-dot-item`},null),p("i",{class:`${x}-dot-item`},null)]))}const $=p("div",D(D({},v),{},{class:y,"aria-live":"polite","aria-busy":u.value}),[S(r.value),h?p("div",{class:`${r.value}-text`},[h]):null]);if(b&&_t(b).length){const x={[`${r.value}-container`]:!0,[`${r.value}-blur`]:u.value};return a(p("div",{class:[`${r.value}-nested-loading`,e.wrapperClassName,s.value]},[u.value&&p("div",{key:"loading"},[$]),p("div",{class:x,key:"container"},[b])]))}return a($)}}});gr.setDefaultIndicator=Bte;gr.install=function(e){return e.component(gr.name,gr),e};var kte={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"};function kw(e){for(var t=1;t{const r=m(m(m({},e),{size:"small"}),n);return p(gn,r,o)}}}),jte=oe({name:"MiddleSelect",inheritAttrs:!1,props:Dp(),Option:gn.Option,setup(e,t){let{attrs:n,slots:o}=t;return()=>{const r=m(m(m({},e),{size:"middle"}),n);return p(gn,r,o)}}}),Gi=oe({compatConfig:{MODE:3},name:"Pager",inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:W.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:["click","keypress"],setup(e,t){let{emit:n,attrs:o}=t;const r=()=>{n("click",e.page)},i=l=>{n("keypress",l,r,e.page)};return()=>{const{showTitle:l,page:a,itemRender:s}=e,{class:u,style:c}=o,d=`${e.rootPrefixCls}-item`,f=le(d,`${d}-${e.page}`,{[`${d}-active`]:e.active,[`${d}-disabled`]:!e.page},u);return p("li",{onClick:r,onKeypress:i,title:l?String(a):null,tabindex:"0",class:f,style:c},[s({page:a,type:"page",originalElement:p("a",{rel:"nofollow"},[a])})])}}}),Yi={ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Vte=oe({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:W.any,current:Number,pageSizeOptions:W.array.def(["10","20","50","100"]),pageSize:Number,buildOptionText:Function,locale:W.object,rootPrefixCls:String,selectPrefixCls:String,goButton:W.any},setup(e){const t=re(""),n=P(()=>!t.value||isNaN(t.value)?void 0:Number(t.value)),o=s=>`${s.value} ${e.locale.items_per_page}`,r=s=>{const{value:u}=s.target;t.value!==u&&(t.value=u)},i=s=>{const{goButton:u,quickGo:c,rootPrefixCls:d}=e;if(!(u||t.value===""))if(s.relatedTarget&&(s.relatedTarget.className.indexOf(`${d}-item-link`)>=0||s.relatedTarget.className.indexOf(`${d}-item`)>=0)){t.value="";return}else c(n.value),t.value=""},l=s=>{t.value!==""&&(s.keyCode===Yi.ENTER||s.type==="click")&&(e.quickGo(n.value),t.value="")},a=P(()=>{const{pageSize:s,pageSizeOptions:u}=e;return u.some(c=>c.toString()===s.toString())?u:u.concat([s.toString()]).sort((c,d)=>{const f=isNaN(Number(c))?0:Number(c),g=isNaN(Number(d))?0:Number(d);return f-g})});return()=>{const{rootPrefixCls:s,locale:u,changeSize:c,quickGo:d,goButton:f,selectComponentClass:g,selectPrefixCls:v,pageSize:h,disabled:b}=e,y=`${s}-options`;let S=null,$=null,x=null;if(!c&&!d)return null;if(c&&g){const C=e.buildOptionText||o,O=a.value.map((w,I)=>p(g.Option,{key:I,value:w},{default:()=>[C({value:w})]}));S=p(g,{disabled:b,prefixCls:v,showSearch:!1,class:`${y}-size-changer`,optionLabelProp:"children",value:(h||a.value[0]).toString(),onChange:w=>c(Number(w)),getPopupContainer:w=>w.parentNode},{default:()=>[O]})}return d&&(f&&(x=typeof f=="boolean"?p("button",{type:"button",onClick:l,onKeyup:l,disabled:b,class:`${y}-quick-jumper-button`},[u.jump_to_confirm]):p("span",{onClick:l,onKeyup:l},[f])),$=p("div",{class:`${y}-quick-jumper`},[u.jump_to,p(Ha,{disabled:b,type:"text",value:t.value,onInput:r,onChange:r,onKeyup:l,onBlur:i},null),u.page,x])),p("li",{class:`${y}`},[S,$])}}}),Wte={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 页"};var Kte=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r"u"?t.statePageSize:e;return Math.floor((n.total-1)/o)+1}const Ute=oe({compatConfig:{MODE:3},name:"Pagination",mixins:[Al],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:W.string.def("rc-pagination"),selectPrefixCls:W.string.def("rc-select"),current:Number,defaultCurrent:W.number.def(1),total:W.number.def(0),pageSize:Number,defaultPageSize:W.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:W.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:W.oneOfType([W.looseBool,W.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:W.arrayOf(W.oneOfType([W.number,W.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:W.object.def(Wte),itemRender:W.func.def(Xte),prevIcon:W.any,nextIcon:W.any,jumpPrevIcon:W.any,jumpNextIcon:W.any,totalBoundaryShowSizeChanger:W.number.def(50)},data(){const e=this.$props;let t=rf([this.current,this.defaultCurrent]);const n=rf([this.pageSize,this.defaultPageSize]);return t=Math.min(t,xr(n,void 0,e)),{stateCurrent:t,stateCurrentInputValue:t,statePageSize:n}},watch:{current(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize(e){const t={};let n=this.stateCurrent;const o=xr(e,this.$data,this.$props);n=n>o?o:n,Ar(this,"current")||(t.stateCurrent=n,t.stateCurrentInputValue=n),t.statePageSize=e,this.setState(t)},stateCurrent(e,t){this.$nextTick(()=>{if(this.$refs.paginationNode){const n=this.$refs.paginationNode.querySelector(`.${this.prefixCls}-item-${t}`);n&&document.activeElement===n&&n.blur()}})},total(){const e={},t=xr(this.pageSize,this.$data,this.$props);if(Ar(this,"current")){const n=Math.min(this.current,t);e.stateCurrent=n,e.stateCurrentInputValue=n}else{let n=this.stateCurrent;n===0&&t>0?n=1:n=Math.min(this.stateCurrent,t),e.stateCurrent=n}this.setState(e)}},methods:{getJumpPrevPage(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage(){return Math.min(xr(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon(e,t){const{prefixCls:n}=this.$props;return yO(this,e,this.$props)||p("button",{type:"button","aria-label":t,class:`${n}-item-link`},null)},getValidValue(e){const t=e.target.value,n=xr(void 0,this.$data,this.$props),{stateCurrentInputValue:o}=this.$data;let r;return t===""?r=t:isNaN(Number(t))?r=o:t>=n?r=n:r=Number(t),r},isValid(e){return Gte(e)&&e!==this.stateCurrent},shouldDisplayQuickJumper(){const{showQuickJumper:e,pageSize:t,total:n}=this.$props;return n<=t?!1:e},handleKeyDown(e){(e.keyCode===Yi.ARROW_UP||e.keyCode===Yi.ARROW_DOWN)&&e.preventDefault()},handleKeyUp(e){const t=this.getValidValue(e),n=this.stateCurrentInputValue;t!==n&&this.setState({stateCurrentInputValue:t}),e.keyCode===Yi.ENTER?this.handleChange(t):e.keyCode===Yi.ARROW_UP?this.handleChange(t-1):e.keyCode===Yi.ARROW_DOWN&&this.handleChange(t+1)},changePageSize(e){let t=this.stateCurrent;const n=t,o=xr(e,this.$data,this.$props);t=t>o?o:t,o===0&&(t=this.stateCurrent),typeof e=="number"&&(Ar(this,"pageSize")||this.setState({statePageSize:e}),Ar(this,"current")||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit("update:pageSize",e),t!==n&&this.__emit("update:current",t),this.__emit("showSizeChange",t,e),this.__emit("change",t,e)},handleChange(e){const{disabled:t}=this.$props;let n=e;if(this.isValid(n)&&!t){const o=xr(void 0,this.$data,this.$props);return n>o?n=o:n<1&&(n=1),Ar(this,"current")||this.setState({stateCurrent:n,stateCurrentInputValue:n}),this.__emit("update:current",n),this.__emit("change",n,this.statePageSize),n}return this.stateCurrent},prev(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev(){this.handleChange(this.getJumpPrevPage())},jumpNext(){this.handleChange(this.getJumpNextPage())},hasPrev(){return this.stateCurrent>1},hasNext(){return this.stateCurrentn},runIfEnter(e,t){if(e.key==="Enter"||e.charCode===13){e.preventDefault();for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r0?y-1:0,N=y+1=z*2&&y!==3&&(w[0]=p(Gi,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:U,page:U,class:`${e}-item-after-jump-prev`,active:!1,showTitle:this.showTitle,itemRender:c},null),w.unshift(I)),O-y>=z*2&&y!==O-2&&(w[w.length-1]=p(Gi,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:ee,page:ee,class:`${e}-item-before-jump-next`,active:!1,showTitle:this.showTitle,itemRender:c},null),w.push(T)),U!==1&&w.unshift(M),ee!==O&&w.push(E)}let F=null;s&&(F=p("li",{class:`${e}-total-text`},[s(o,[o===0?0:(y-1)*S+1,y*S>o?o:y*S])]));const L=!B||!O,H=!k||!O,j=this.buildOptionText||this.$slots.buildOptionText;return p("ul",D(D({unselectable:"on",ref:"paginationNode"},C),{},{class:le({[`${e}`]:!0,[`${e}-disabled`]:t},x)}),[F,p("li",{title:a?r.prev_page:null,onClick:this.prev,tabindex:L?null:0,onKeypress:this.runIfEnterPrev,class:le(`${e}-prev`,{[`${e}-disabled`]:L}),"aria-disabled":L},[this.renderPrev(_)]),w,p("li",{title:a?r.next_page:null,onClick:this.next,tabindex:H?null:0,onKeypress:this.runIfEnterNext,class:le(`${e}-next`,{[`${e}-disabled`]:H}),"aria-disabled":H},[this.renderNext(N)]),p(Vte,{disabled:t,locale:r,rootPrefixCls:e,selectComponentClass:v,selectPrefixCls:h,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:y,pageSize:S,pageSizeOptions:b,buildOptionText:j||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:R},null)])}}),Yte=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}-mini`]:{[` + `]:{color:y}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},cte=e=>{const{componentCls:t,inputPaddingHorizontal:n,inputAffixPadding:o,controlWidth:r,borderRadiusLG:i,borderRadiusSM:l}=e;return{[`${t}-affix-wrapper`]:m(m(m({},kl(e)),Bc(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:r,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:i},"&-sm":{borderRadius:l},[`&:not(${t}-affix-wrapper-disabled):hover`]:m(m({},qa(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:o},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:o}}})}},ute=Ke("InputNumber",e=>{const t=Fl(e);return[ste(t),cte(t),Xa(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var dte=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rm(m({},Dw),{size:Ne(),bordered:$e(!0),placeholder:String,name:String,id:String,type:String,addonBefore:W.any,addonAfter:W.any,prefix:W.any,"onUpdate:value":Dw.onChange,valueModifiers:Object,status:Ne()}),kh=oe({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:fte(),slots:Object,setup(e,t){let{emit:n,expose:o,attrs:r,slots:i}=t;var l;const a=Qt(),s=dn.useInject(),u=P(()=>Qo(s.status,e.status)),{prefixCls:c,size:d,direction:f,disabled:g}=Te("input-number",e),{compactSize:v,compactItemClassnames:h}=Ri(c,f),b=Jn(),y=P(()=>{var R;return(R=g.value)!==null&&R!==void 0?R:b.value}),[S,$]=ute(c),x=P(()=>v.value||d.value),C=ne((l=e.value)!==null&&l!==void 0?l:e.defaultValue),O=ne(!1);ye(()=>e.value,()=>{C.value=e.value});const w=ne(null),I=()=>{var R;(R=w.value)===null||R===void 0||R.focus()};o({focus:I,blur:()=>{var R;(R=w.value)===null||R===void 0||R.blur()}});const _=R=>{e.value===void 0&&(C.value=R),n("update:value",R),n("change",R),a.onFieldChange()},E=R=>{O.value=!1,n("blur",R),a.onFieldBlur()},A=R=>{O.value=!0,n("focus",R)};return()=>{var R,z,M,N;const{hasFeedback:B,isFormItemInput:k,feedbackIcon:F}=s,L=(R=e.id)!==null&&R!==void 0?R:a.id.value,H=m(m(m({},r),e),{id:L,disabled:y.value}),{class:j,bordered:Y,readonly:Q,style:U,addonBefore:ee=(z=i.addonBefore)===null||z===void 0?void 0:z.call(i),addonAfter:X=(M=i.addonAfter)===null||M===void 0?void 0:M.call(i),prefix:J=(N=i.prefix)===null||N===void 0?void 0:N.call(i),valueModifiers:Z={}}=H,G=dte(H,["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"]),q=c.value,V=le({[`${q}-lg`]:x.value==="large",[`${q}-sm`]:x.value==="small",[`${q}-rtl`]:f.value==="rtl",[`${q}-readonly`]:Q,[`${q}-borderless`]:!Y,[`${q}-in-form-item`]:k},Tn(q,u.value),j,h.value,$.value);let K=p(ate,D(D({},tt(G,["size","defaultValue"])),{},{ref:w,lazy:!!Z.lazy,value:C.value,class:V,prefixCls:q,readonly:Q,onChange:_,onBlur:E,onFocus:A}),{upHandler:i.upIcon?()=>p("span",{class:`${q}-handler-up-inner`},[i.upIcon()]):()=>p(zy,{class:`${q}-handler-up-inner`},null),downHandler:i.downIcon?()=>p("span",{class:`${q}-handler-down-inner`},[i.downIcon()]):()=>p(Dl,{class:`${q}-handler-down-inner`},null)});const te=Bh(ee)||Bh(X),ue=Bh(J);if(ue||B){const ie=le(`${q}-affix-wrapper`,Tn(`${q}-affix-wrapper`,u.value,B),{[`${q}-affix-wrapper-focused`]:O.value,[`${q}-affix-wrapper-disabled`]:y.value,[`${q}-affix-wrapper-sm`]:x.value==="small",[`${q}-affix-wrapper-lg`]:x.value==="large",[`${q}-affix-wrapper-rtl`]:f.value==="rtl",[`${q}-affix-wrapper-readonly`]:Q,[`${q}-affix-wrapper-borderless`]:!Y,[`${j}`]:!te&&j},$.value);K=p("div",{class:ie,style:U,onClick:I},[ue&&p("span",{class:`${q}-prefix`},[J]),K,B&&p("span",{class:`${q}-suffix`},[F])])}if(te){const ie=`${q}-group`,ae=`${ie}-addon`,ce=ee?p("div",{class:ae},[ee]):null,se=X?p("div",{class:ae},[X]):null,pe=le(`${q}-wrapper`,ie,{[`${ie}-rtl`]:f.value==="rtl"},$.value),ge=le(`${q}-group-wrapper`,{[`${q}-group-wrapper-sm`]:x.value==="small",[`${q}-group-wrapper-lg`]:x.value==="large",[`${q}-group-wrapper-rtl`]:f.value==="rtl"},Tn(`${c}-group-wrapper`,u.value,B),j,$.value);K=p("div",{class:ge,style:U},[p("div",{class:pe},[ce&&p(dc,null,{default:()=>[p(tf,null,{default:()=>[ce]})]}),K,se&&p(dc,null,{default:()=>[p(tf,null,{default:()=>[se]})]})])])}return S(ut(K,{style:U}))}}}),pte=m(kh,{install:e=>(e.component(kh.name,kh),e)}),gte=e=>{const{componentCls:t,colorBgContainer:n,colorBgBody:o,colorText:r}=e;return{[`${t}-sider-light`]:{background:n,[`${t}-sider-trigger`]:{color:r,background:n},[`${t}-sider-zero-width-trigger`]:{color:r,background:n,border:`1px solid ${o}`,borderInlineStart:0}}}},hte=e=>{const{antCls:t,componentCls:n,colorText:o,colorTextLightSolid:r,colorBgHeader:i,colorBgBody:l,colorBgTrigger:a,layoutHeaderHeight:s,layoutHeaderPaddingInline:u,layoutHeaderColor:c,layoutFooterPadding:d,layoutTriggerHeight:f,layoutZeroTriggerSize:g,motionDurationMid:v,motionDurationSlow:h,fontSize:b,borderRadius:y}=e;return{[n]:m(m({display:"flex",flex:"auto",flexDirection:"column",color:o,minHeight:0,background:l,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},[`${n}-header`]:{height:s,paddingInline:u,color:c,lineHeight:`${s}px`,background:i,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:d,color:o,fontSize:b,background:l},[`${n}-content`]:{flex:"auto",minHeight:0},[`${n}-sider`]:{position:"relative",minWidth:0,background:i,transition:`all ${v}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:f,color:r,lineHeight:`${f}px`,textAlign:"center",background:a,cursor:"pointer",transition:`all ${v}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:s,insetInlineEnd:-g,zIndex:1,width:g,height:g,color:r,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:i,borderStartStartRadius:0,borderStartEndRadius:y,borderEndEndRadius:y,borderEndStartRadius:0,cursor:"pointer",transition:`background ${h} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${h}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-g,borderStartStartRadius:y,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:y}}}}},gte(e)),{"&-rtl":{direction:"rtl"}})}},vte=Ke("Layout",e=>{const{colorText:t,controlHeightSM:n,controlHeight:o,controlHeightLG:r,marginXXS:i}=e,l=r*1.25,a=ke(e,{layoutHeaderHeight:o*2,layoutHeaderPaddingInline:l,layoutHeaderColor:t,layoutFooterPadding:`${n}px ${l}px`,layoutTriggerHeight:r+i*2,layoutZeroTriggerSize:r});return[hte(a)]},e=>{const{colorBgLayout:t}=e;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140"}}),Wy=()=>({prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String});function sg(e){let{suffixCls:t,tagName:n,name:o}=e;return r=>oe({compatConfig:{MODE:3},name:o,props:Wy(),setup(l,a){let{slots:s}=a;const{prefixCls:u}=Te(t,l);return()=>{const c=m(m({},l),{prefixCls:u.value,tagName:n});return p(r,c,s)}}})}const Ky=oe({compatConfig:{MODE:3},props:Wy(),setup(e,t){let{slots:n}=t;return()=>p(e.tagName,{class:e.prefixCls},n)}}),mte=oe({compatConfig:{MODE:3},inheritAttrs:!1,props:Wy(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Te("",e),[l,a]=vte(r),s=re([]);Xe(sI,{addSider:d=>{s.value=[...s.value,d]},removeSider:d=>{s.value=s.value.filter(f=>f!==d)}});const c=P(()=>{const{prefixCls:d,hasSider:f}=e;return{[a.value]:!0,[`${d}`]:!0,[`${d}-has-sider`]:typeof f=="boolean"?f:s.value.length>0,[`${d}-rtl`]:i.value==="rtl"}});return()=>{const{tagName:d}=e;return l(p(d,m(m({},o),{class:[c.value,o.class]}),n))}}}),Fh=sg({suffixCls:"layout",tagName:"section",name:"ALayout"})(mte),fd=sg({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(Ky),pd=sg({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})(Ky),gd=sg({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})(Ky);var bte={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};function Nw(e){for(var t=1;t({prefixCls:String,collapsible:{type:Boolean,default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:void 0},reverseArrow:{type:Boolean,default:void 0},zeroWidthTriggerStyle:{type:Object,default:void 0},trigger:W.any,width:W.oneOfType([W.number,W.string]),collapsedWidth:W.oneOfType([W.number,W.string]),breakpoint:W.oneOf(Sn("xs","sm","md","lg","xl","xxl","xxxl")),theme:W.oneOf(Sn("light","dark")).def("dark"),onBreakpoint:Function,onCollapse:Function}),$te=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),hd=oe({compatConfig:{MODE:3},name:"ALayoutSider",inheritAttrs:!1,props:Ze(Ste(),{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),emits:["breakpoint","update:collapsed","collapse"],setup(e,t){let{emit:n,attrs:o,slots:r}=t;const{prefixCls:i}=Te("layout-sider",e),l=He(sI,void 0),a=ne(!!(e.collapsed!==void 0?e.collapsed:e.defaultCollapsed)),s=ne(!1);ye(()=>e.collapsed,()=>{a.value=!!e.collapsed}),Xe(aI,a);const u=(h,b)=>{e.collapsed===void 0&&(a.value=h),n("update:collapsed",h),n("collapse",h,b)},c=ne(h=>{s.value=h.matches,n("breakpoint",h.matches),a.value!==h.matches&&u(h.matches,"responsive")});let d;function f(h){return c.value(h)}const g=$te("ant-sider-");l&&l.addSider(g),je(()=>{ye(()=>e.breakpoint,()=>{try{d?.removeEventListener("change",f)}catch{d?.removeListener(f)}if(typeof window<"u"){const{matchMedia:h}=window;if(h&&e.breakpoint&&e.breakpoint in Bw){d=h(`(max-width: ${Bw[e.breakpoint]})`);try{d.addEventListener("change",f)}catch{d.addListener(f)}f(d)}}},{immediate:!0})}),Qe(()=>{try{d?.removeEventListener("change",f)}catch{d?.removeListener(f)}l&&l.removeSider(g)});const v=()=>{u(!a.value,"clickTrigger")};return()=>{var h,b;const y=i.value,{collapsedWidth:S,width:$,reverseArrow:x,zeroWidthTriggerStyle:C,trigger:O=(h=r.trigger)===null||h===void 0?void 0:h.call(r),collapsible:w,theme:I}=e,T=a.value?S:$,_=sf(T)?`${T}px`:String(T),E=parseFloat(String(S||0))===0?p("span",{onClick:v,class:le(`${y}-zero-width-trigger`,`${y}-zero-width-trigger-${x?"right":"left"}`),style:C},[O||p(Gy,null,null)]):null,A={expanded:p(x?ho:mr,null,null),collapsed:p(x?mr:ho,null,null)},R=a.value?"collapsed":"expanded",z=A[R],M=O!==null?E||p("div",{class:`${y}-trigger`,onClick:v,style:{width:_}},[O||z]):null,N=[o.style,{flex:`0 0 ${_}`,maxWidth:_,minWidth:_,width:_}],B=le(y,`${y}-${I}`,{[`${y}-collapsed`]:!!a.value,[`${y}-has-trigger`]:w&&O!==null&&!E,[`${y}-below`]:!!s.value,[`${y}-zero-width`]:parseFloat(_)===0},o.class);return p("aside",D(D({},o),{},{class:B,style:N}),[p("div",{class:`${y}-children`},[(b=r.default)===null||b===void 0?void 0:b.call(r)]),w||s.value&&E?M:null])}}}),Cte=fd,xte=pd,wte=hd,Ote=gd,Pte=m(Fh,{Header:fd,Footer:pd,Content:gd,Sider:hd,install:e=>(e.component(Fh.name,Fh),e.component(fd.name,fd),e.component(pd.name,pd),e.component(hd.name,hd),e.component(gd.name,gd),e)});function Ite(e,t,n){var o=n||{},r=o.noTrailing,i=r===void 0?!1:r,l=o.noLeading,a=l===void 0?!1:l,s=o.debounceMode,u=s===void 0?void 0:s,c,d=!1,f=0;function g(){c&&clearTimeout(c)}function v(b){var y=b||{},S=y.upcomingOnly,$=S===void 0?!1:S;g(),d=!$}function h(){for(var b=arguments.length,y=new Array(b),S=0;Se?a?(f=Date.now(),i||(c=setTimeout(u?O:C,e))):C():i!==!0&&(c=setTimeout(u?O:C,u===void 0?e-x:e))}return h.cancel=v,h}function Tte(e,t,n){var o={},r=o.atBegin,i=r===void 0?!1:r;return Ite(e,t,{debounceMode:i!==!1})}const Ete=new nt("antSpinMove",{to:{opacity:1}}),Mte=new nt("antRotate",{to:{transform:"rotate(405deg)"}}),_te=e=>({[`${e.componentCls}`]:m(m({},Ue(e)),{position:"absolute",display:"none",color:e.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:Ete,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:Mte,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})}),Ate=Ke("Spin",e=>{const t=ke(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:e.controlHeightLG*.35,spinDotSizeLG:e.controlHeight});return[_te(t)]},{contentHeight:400});var Rte=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:W.any,delay:Number,indicator:W.any});let vd=null;function Nte(e,t){return!!e&&!!t&&!isNaN(Number(t))}function Bte(e){const t=e.indicator;vd=typeof t=="function"?t:()=>p(t,null,null)}const gr=oe({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:Ze(Dte(),{size:"default",spinning:!0,wrapperClassName:""}),setup(e,t){let{attrs:n,slots:o}=t;const{prefixCls:r,size:i,direction:l}=Te("spin",e),[a,s]=Ate(r),u=ne(e.spinning&&!Nte(e.spinning,e.delay));let c;return ye([()=>e.spinning,()=>e.delay],()=>{c?.cancel(),c=Tte(e.delay,()=>{u.value=e.spinning}),c?.()},{immediate:!0,flush:"post"}),Qe(()=>{c?.cancel()}),()=>{var d,f;const{class:g}=n,v=Rte(n,["class"]),{tip:h=(d=o.tip)===null||d===void 0?void 0:d.call(o)}=e,b=(f=o.default)===null||f===void 0?void 0:f.call(o),y={[s.value]:!0,[r.value]:!0,[`${r.value}-sm`]:i.value==="small",[`${r.value}-lg`]:i.value==="large",[`${r.value}-spinning`]:u.value,[`${r.value}-show-text`]:!!h,[`${r.value}-rtl`]:l.value==="rtl",[g]:!!g};function S(x){const C=`${x}-dot`;let O=Zt(o,e,"indicator");return O===null?null:(Array.isArray(O)&&(O=O.length===1?O[0]:O),qt(O)?cn(O,{class:C}):vd&&qt(vd())?cn(vd(),{class:C}):p("span",{class:`${C} ${x}-dot-spin`},[p("i",{class:`${x}-dot-item`},null),p("i",{class:`${x}-dot-item`},null),p("i",{class:`${x}-dot-item`},null),p("i",{class:`${x}-dot-item`},null)]))}const $=p("div",D(D({},v),{},{class:y,"aria-live":"polite","aria-busy":u.value}),[S(r.value),h?p("div",{class:`${r.value}-text`},[h]):null]);if(b&&At(b).length){const x={[`${r.value}-container`]:!0,[`${r.value}-blur`]:u.value};return a(p("div",{class:[`${r.value}-nested-loading`,e.wrapperClassName,s.value]},[u.value&&p("div",{key:"loading"},[$]),p("div",{class:x,key:"container"},[b])]))}return a($)}}});gr.setDefaultIndicator=Bte;gr.install=function(e){return e.component(gr.name,gr),e};var kte={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"};function kw(e){for(var t=1;t{const r=m(m(m({},e),{size:"small"}),n);return p(gn,r,o)}}}),jte=oe({name:"MiddleSelect",inheritAttrs:!1,props:Dp(),Option:gn.Option,setup(e,t){let{attrs:n,slots:o}=t;return()=>{const r=m(m(m({},e),{size:"middle"}),n);return p(gn,r,o)}}}),Gi=oe({compatConfig:{MODE:3},name:"Pager",inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:W.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:["click","keypress"],setup(e,t){let{emit:n,attrs:o}=t;const r=()=>{n("click",e.page)},i=l=>{n("keypress",l,r,e.page)};return()=>{const{showTitle:l,page:a,itemRender:s}=e,{class:u,style:c}=o,d=`${e.rootPrefixCls}-item`,f=le(d,`${d}-${e.page}`,{[`${d}-active`]:e.active,[`${d}-disabled`]:!e.page},u);return p("li",{onClick:r,onKeypress:i,title:l?String(a):null,tabindex:"0",class:f,style:c},[s({page:a,type:"page",originalElement:p("a",{rel:"nofollow"},[a])})])}}}),Yi={ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Vte=oe({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:W.any,current:Number,pageSizeOptions:W.array.def(["10","20","50","100"]),pageSize:Number,buildOptionText:Function,locale:W.object,rootPrefixCls:String,selectPrefixCls:String,goButton:W.any},setup(e){const t=re(""),n=P(()=>!t.value||isNaN(t.value)?void 0:Number(t.value)),o=s=>`${s.value} ${e.locale.items_per_page}`,r=s=>{const{value:u}=s.target;t.value!==u&&(t.value=u)},i=s=>{const{goButton:u,quickGo:c,rootPrefixCls:d}=e;if(!(u||t.value===""))if(s.relatedTarget&&(s.relatedTarget.className.indexOf(`${d}-item-link`)>=0||s.relatedTarget.className.indexOf(`${d}-item`)>=0)){t.value="";return}else c(n.value),t.value=""},l=s=>{t.value!==""&&(s.keyCode===Yi.ENTER||s.type==="click")&&(e.quickGo(n.value),t.value="")},a=P(()=>{const{pageSize:s,pageSizeOptions:u}=e;return u.some(c=>c.toString()===s.toString())?u:u.concat([s.toString()]).sort((c,d)=>{const f=isNaN(Number(c))?0:Number(c),g=isNaN(Number(d))?0:Number(d);return f-g})});return()=>{const{rootPrefixCls:s,locale:u,changeSize:c,quickGo:d,goButton:f,selectComponentClass:g,selectPrefixCls:v,pageSize:h,disabled:b}=e,y=`${s}-options`;let S=null,$=null,x=null;if(!c&&!d)return null;if(c&&g){const C=e.buildOptionText||o,O=a.value.map((w,I)=>p(g.Option,{key:I,value:w},{default:()=>[C({value:w})]}));S=p(g,{disabled:b,prefixCls:v,showSearch:!1,class:`${y}-size-changer`,optionLabelProp:"children",value:(h||a.value[0]).toString(),onChange:w=>c(Number(w)),getPopupContainer:w=>w.parentNode},{default:()=>[O]})}return d&&(f&&(x=typeof f=="boolean"?p("button",{type:"button",onClick:l,onKeyup:l,disabled:b,class:`${y}-quick-jumper-button`},[u.jump_to_confirm]):p("span",{onClick:l,onKeyup:l},[f])),$=p("div",{class:`${y}-quick-jumper`},[u.jump_to,p(Ha,{disabled:b,type:"text",value:t.value,onInput:r,onChange:r,onKeyup:l,onBlur:i},null),u.page,x])),p("li",{class:`${y}`},[S,$])}}}),Wte={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 页"};var Kte=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r"u"?t.statePageSize:e;return Math.floor((n.total-1)/o)+1}const Ute=oe({compatConfig:{MODE:3},name:"Pagination",mixins:[Al],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:W.string.def("rc-pagination"),selectPrefixCls:W.string.def("rc-select"),current:Number,defaultCurrent:W.number.def(1),total:W.number.def(0),pageSize:Number,defaultPageSize:W.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:W.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:W.oneOfType([W.looseBool,W.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:W.arrayOf(W.oneOfType([W.number,W.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:W.object.def(Wte),itemRender:W.func.def(Xte),prevIcon:W.any,nextIcon:W.any,jumpPrevIcon:W.any,jumpNextIcon:W.any,totalBoundaryShowSizeChanger:W.number.def(50)},data(){const e=this.$props;let t=rf([this.current,this.defaultCurrent]);const n=rf([this.pageSize,this.defaultPageSize]);return t=Math.min(t,xr(n,void 0,e)),{stateCurrent:t,stateCurrentInputValue:t,statePageSize:n}},watch:{current(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize(e){const t={};let n=this.stateCurrent;const o=xr(e,this.$data,this.$props);n=n>o?o:n,Ar(this,"current")||(t.stateCurrent=n,t.stateCurrentInputValue=n),t.statePageSize=e,this.setState(t)},stateCurrent(e,t){this.$nextTick(()=>{if(this.$refs.paginationNode){const n=this.$refs.paginationNode.querySelector(`.${this.prefixCls}-item-${t}`);n&&document.activeElement===n&&n.blur()}})},total(){const e={},t=xr(this.pageSize,this.$data,this.$props);if(Ar(this,"current")){const n=Math.min(this.current,t);e.stateCurrent=n,e.stateCurrentInputValue=n}else{let n=this.stateCurrent;n===0&&t>0?n=1:n=Math.min(this.stateCurrent,t),e.stateCurrent=n}this.setState(e)}},methods:{getJumpPrevPage(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage(){return Math.min(xr(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon(e,t){const{prefixCls:n}=this.$props;return yO(this,e,this.$props)||p("button",{type:"button","aria-label":t,class:`${n}-item-link`},null)},getValidValue(e){const t=e.target.value,n=xr(void 0,this.$data,this.$props),{stateCurrentInputValue:o}=this.$data;let r;return t===""?r=t:isNaN(Number(t))?r=o:t>=n?r=n:r=Number(t),r},isValid(e){return Gte(e)&&e!==this.stateCurrent},shouldDisplayQuickJumper(){const{showQuickJumper:e,pageSize:t,total:n}=this.$props;return n<=t?!1:e},handleKeyDown(e){(e.keyCode===Yi.ARROW_UP||e.keyCode===Yi.ARROW_DOWN)&&e.preventDefault()},handleKeyUp(e){const t=this.getValidValue(e),n=this.stateCurrentInputValue;t!==n&&this.setState({stateCurrentInputValue:t}),e.keyCode===Yi.ENTER?this.handleChange(t):e.keyCode===Yi.ARROW_UP?this.handleChange(t-1):e.keyCode===Yi.ARROW_DOWN&&this.handleChange(t+1)},changePageSize(e){let t=this.stateCurrent;const n=t,o=xr(e,this.$data,this.$props);t=t>o?o:t,o===0&&(t=this.stateCurrent),typeof e=="number"&&(Ar(this,"pageSize")||this.setState({statePageSize:e}),Ar(this,"current")||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit("update:pageSize",e),t!==n&&this.__emit("update:current",t),this.__emit("showSizeChange",t,e),this.__emit("change",t,e)},handleChange(e){const{disabled:t}=this.$props;let n=e;if(this.isValid(n)&&!t){const o=xr(void 0,this.$data,this.$props);return n>o?n=o:n<1&&(n=1),Ar(this,"current")||this.setState({stateCurrent:n,stateCurrentInputValue:n}),this.__emit("update:current",n),this.__emit("change",n,this.statePageSize),n}return this.stateCurrent},prev(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev(){this.handleChange(this.getJumpPrevPage())},jumpNext(){this.handleChange(this.getJumpNextPage())},hasPrev(){return this.stateCurrent>1},hasNext(){return this.stateCurrentn},runIfEnter(e,t){if(e.key==="Enter"||e.charCode===13){e.preventDefault();for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r0?y-1:0,N=y+1=z*2&&y!==3&&(w[0]=p(Gi,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:U,page:U,class:`${e}-item-after-jump-prev`,active:!1,showTitle:this.showTitle,itemRender:c},null),w.unshift(I)),O-y>=z*2&&y!==O-2&&(w[w.length-1]=p(Gi,{locale:r,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:ee,page:ee,class:`${e}-item-before-jump-next`,active:!1,showTitle:this.showTitle,itemRender:c},null),w.push(T)),U!==1&&w.unshift(_),ee!==O&&w.push(E)}let F=null;s&&(F=p("li",{class:`${e}-total-text`},[s(o,[o===0?0:(y-1)*S+1,y*S>o?o:y*S])]));const L=!B||!O,H=!k||!O,j=this.buildOptionText||this.$slots.buildOptionText;return p("ul",D(D({unselectable:"on",ref:"paginationNode"},C),{},{class:le({[`${e}`]:!0,[`${e}-disabled`]:t},x)}),[F,p("li",{title:a?r.prev_page:null,onClick:this.prev,tabindex:L?null:0,onKeypress:this.runIfEnterPrev,class:le(`${e}-prev`,{[`${e}-disabled`]:L}),"aria-disabled":L},[this.renderPrev(M)]),w,p("li",{title:a?r.next_page:null,onClick:this.next,tabindex:H?null:0,onKeypress:this.runIfEnterNext,class:le(`${e}-next`,{[`${e}-disabled`]:H}),"aria-disabled":H},[this.renderNext(N)]),p(Vte,{disabled:t,locale:r,rootPrefixCls:e,selectComponentClass:v,selectPrefixCls:h,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:y,pageSize:S,pageSizeOptions:b,buildOptionText:j||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:R},null)])}}),Yte=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}-mini`]:{[` &:hover ${t}-item:not(${t}-item-active), &:active ${t}-item:not(${t}-item-active), &:hover ${t}-item-link, @@ -375,9 +375,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ${t}-next, ${t}-jump-prev, ${t}-jump-next - `]:{display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,color:e.colorText,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize}px`,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:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:m({},Wr(e)),[`&: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:`${e.controlHeight}px`,verticalAlign:"top",input:m(m({},kl(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Jte=e=>{const{componentCls:t}=e;return{[`${t}-item`]:m(m({display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,marginInlineEnd:e.marginXS,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},Kr(e)),{"&-active":{fontWeight:e.paginationFontWeightActive,backgroundColor:e.paginationItemBgActive,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},ene=e=>{const{componentCls:t}=e;return{[t]:m(m(m(m(m(m(m(m({},Ue(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.paginationItemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.paginationItemSize-2}px`,verticalAlign:"middle"}}),Jte(e)),Qte(e)),Zte(e)),qte(e)),Yte(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"}}},tne=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled`]:{"&, &: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.paginationItemDisabledBgActive}},[`${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}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.paginationItemBg},[`${t}-item-link`]:{backgroundColor:e.paginationItemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.paginationItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},nne=Ke("Pagination",e=>{const t=ke(e,{paginationItemSize:e.controlHeight,paginationFontFamily:e.fontFamily,paginationItemBg:e.colorBgContainer,paginationItemBgActive:e.colorBgContainer,paginationFontWeightActive:e.fontWeightStrong,paginationItemSizeSM:e.controlHeightSM,paginationItemInputBg:e.colorBgContainer,paginationMiniOptionsSizeChangerTop:0,paginationItemDisabledBgActive:e.controlItemBgActiveDisabled,paginationItemDisabledColorActive:e.colorTextDisabled,paginationItemLinkBg:e.colorBgContainer,inputOutlineOffset:"0 0",paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:e.controlHeightLG*1.1,paginationItemPaddingInline:e.marginXXS*1.5,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Fl(e));return[ene(t),e.wireframe&&tne(t)]});var one=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({total:Number,defaultCurrent:Number,disabled:$e(),current:Number,defaultPageSize:Number,pageSize:Number,hideOnSinglePage:$e(),showSizeChanger:$e(),pageSizeOptions:lt(),buildOptionText:ve(),showQuickJumper:Fe([Boolean,Object]),showTotal:ve(),size:Ne(),simple:$e(),locale:Object,prefixCls:String,selectPrefixCls:String,totalBoundaryShowSizeChanger:Number,selectComponentClass:String,itemRender:ve(),role:String,responsive:Boolean,showLessItems:$e(),onChange:ve(),onShowSizeChange:ve(),"onUpdate:current":ve(),"onUpdate:pageSize":ve()}),ine=oe({compatConfig:{MODE:3},name:"APagination",inheritAttrs:!1,props:rne(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,configProvider:i,direction:l,size:a}=Te("pagination",e),[s,u]=nne(r),c=P(()=>i.getPrefixCls("select",e.selectPrefixCls)),d=Ua(),[f]=Do("Pagination",EO,ze(e,"locale")),g=v=>{const h=p("span",{class:`${v}-item-ellipsis`},[Ft("•••")]),b=p("button",{class:`${v}-item-link`,type:"button",tabindex:-1},[l.value==="rtl"?p(ho,null,null):p(mr,null,null)]),y=p("button",{class:`${v}-item-link`,type:"button",tabindex:-1},[l.value==="rtl"?p(mr,null,null):p(ho,null,null)]),S=p("a",{rel:"nofollow",class:`${v}-item-link`},[p("div",{class:`${v}-item-container`},[l.value==="rtl"?p(Rf,{class:`${v}-item-link-icon`},null):p(Af,{class:`${v}-item-link-icon`},null),h])]),$=p("a",{rel:"nofollow",class:`${v}-item-link`},[p("div",{class:`${v}-item-container`},[l.value==="rtl"?p(Af,{class:`${v}-item-link-icon`},null):p(Rf,{class:`${v}-item-link-icon`},null),h])]);return{prevIcon:b,nextIcon:y,jumpPrevIcon:S,jumpNextIcon:$}};return()=>{var v;const{itemRender:h=n.itemRender,buildOptionText:b=n.buildOptionText,selectComponentClass:y,responsive:S}=e,$=one(e,["itemRender","buildOptionText","selectComponentClass","responsive"]),x=a.value==="small"||!!(!((v=d.value)===null||v===void 0)&&v.xs&&!a.value&&S),C=m(m(m(m(m({},$),g(r.value)),{prefixCls:r.value,selectPrefixCls:c.value,selectComponentClass:y||(x?Hte:jte),locale:f.value,buildOptionText:b}),o),{class:le({[`${r.value}-mini`]:x,[`${r.value}-rtl`]:l.value==="rtl"},o.class,u.value),itemRender:h});return s(p(Ute,C,null))}}}),cg=It(ine),lne=()=>({avatar:W.any,description:W.any,prefixCls:String,title:W.any}),H5=oe({compatConfig:{MODE:3},name:"AListItemMeta",props:lne(),displayName:"AListItemMeta",__ANT_LIST_ITEM_META:!0,slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=Te("list",e);return()=>{var r,i,l,a,s,u;const c=`${o.value}-item-meta`,d=(r=e.title)!==null&&r!==void 0?r:(i=n.title)===null||i===void 0?void 0:i.call(n),f=(l=e.description)!==null&&l!==void 0?l:(a=n.description)===null||a===void 0?void 0:a.call(n),g=(s=e.avatar)!==null&&s!==void 0?s:(u=n.avatar)===null||u===void 0?void 0:u.call(n),v=p("div",{class:`${o.value}-item-meta-content`},[d&&p("h4",{class:`${o.value}-item-meta-title`},[d]),f&&p("div",{class:`${o.value}-item-meta-description`},[f])]);return p("div",{class:c},[g&&p("div",{class:`${o.value}-item-meta-avatar`},[g]),(d||f)&&v])}}}),j5=Symbol("ListContextKey");var ane=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,extra:W.any,actions:W.array,grid:Object,colStyle:{type:Object,default:void 0}}),V5=oe({compatConfig:{MODE:3},name:"AListItem",inheritAttrs:!1,Meta:H5,props:sne(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{itemLayout:r,grid:i}=He(j5,{grid:re(),itemLayout:re()}),{prefixCls:l}=Te("list",e),a=()=>{var u;const c=((u=n.default)===null||u===void 0?void 0:u.call(n))||[];let d;return c.forEach(f=>{lA(f)&&!Oc(f)&&(d=!0)}),d&&c.length>1},s=()=>{var u,c;const d=(u=e.extra)!==null&&u!==void 0?u:(c=n.extra)===null||c===void 0?void 0:c.call(n);return r.value==="vertical"?!!d:!a()};return()=>{var u,c,d,f,g;const{class:v}=o,h=ane(o,["class"]),b=l.value,y=(u=e.extra)!==null&&u!==void 0?u:(c=n.extra)===null||c===void 0?void 0:c.call(n),S=(d=n.default)===null||d===void 0?void 0:d.call(n);let $=(f=e.actions)!==null&&f!==void 0?f:bt((g=n.actions)===null||g===void 0?void 0:g.call(n));$=$&&!Array.isArray($)?[$]:$;const x=$&&$.length>0&&p("ul",{class:`${b}-item-action`,key:"actions"},[$.map((w,I)=>p("li",{key:`${b}-item-action-${I}`},[w,I!==$.length-1&&p("em",{class:`${b}-item-action-split`},null)]))]),C=i.value?"div":"li",O=p(C,D(D({},h),{},{class:le(`${b}-item`,{[`${b}-item-no-flex`]:!s()},v)}),{default:()=>[r.value==="vertical"&&y?[p("div",{class:`${b}-item-main`,key:"content"},[S,x]),p("div",{class:`${b}-item-extra`,key:"extra"},[y])]:[S,x,ut(y,{key:"extra"})]]});return i.value?p(tg,{flex:1,style:e.colStyle},{default:()=>[O]}):O}}}),cne=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:o,margin:r,padding:i,listItemPaddingSM:l,marginLG:a,borderRadiusLG:s}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:s,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:o},[`${n}-pagination`]:{margin:`${r}px ${a}px`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:l}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:`${i}px ${o}px`}}}},une=e=>{const{componentCls:t,screenSM:n,screenMD:o,marginLG:r,marginSM:i,margin:l}=e;return{[`@media screen and (max-width:${o})`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:r}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:r}}}},[`@media screen and (max-width: ${n})`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${l}px`}}}}}},dne=e=>{const{componentCls:t,antCls:n,controlHeight:o,minHeight:r,paddingSM:i,marginLG:l,padding:a,listItemPadding:s,colorPrimary:u,listItemPaddingSM:c,listItemPaddingLG:d,paddingXS:f,margin:g,colorText:v,colorTextDescription:h,motionDurationSlow:b,lineWidth:y}=e;return{[`${t}`]:m(m({},Ue(e)),{position:"relative","*":{outline:"none"},[`${t}-header, ${t}-footer`]:{background:"transparent",paddingBlock:i},[`${t}-pagination`]:{marginBlockStart:l,textAlign:"end",[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:r,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:s,color:v,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:a},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:v},[`${t}-item-meta-title`]:{marginBottom:e.marginXXS,color:v,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:v,transition:`all ${b}`,"&:hover":{color:u}}},[`${t}-item-meta-description`]:{color:h,fontSize:e.fontSize,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${f}px`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:y,height:Math.ceil(e.fontSize*e.lineHeight)-e.marginXXS*2,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${a}px 0`,color:h,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:a,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:g,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:l},[`${t}-item-meta`]:{marginBlockEnd:a,[`${t}-item-meta-title`]:{marginBlockEnd:i,color:v,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:a,marginInlineStart:"auto","> li":{padding:`0 ${a}px`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:o},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:c},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},fne=Ke("List",e=>{const t=ke(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG,listItemPadding:`${e.paddingContentVertical}px ${e.paddingContentHorizontalLG}px`,listItemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,listItemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`});return[dne(t),cne(t),une(t)]},{contentWidth:220}),pne=()=>({bordered:$e(),dataSource:lt(),extra:Pn(),grid:De(),itemLayout:String,loading:Fe([Boolean,Object]),loadMore:Pn(),pagination:Fe([Boolean,Object]),prefixCls:String,rowKey:Fe([String,Number,Function]),renderItem:ve(),size:String,split:$e(),header:Pn(),footer:Pn(),locale:De()}),ai=oe({compatConfig:{MODE:3},name:"AList",inheritAttrs:!1,Item:V5,props:Ze(pne(),{dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;var r,i;Xe(j5,{grid:ze(e,"grid"),itemLayout:ze(e,"itemLayout")});const l={current:1,total:0},{prefixCls:a,direction:s,renderEmpty:u}=Te("list",e),[c,d]=fne(a),f=P(()=>e.pagination&&typeof e.pagination=="object"?e.pagination:{}),g=re((r=f.value.defaultCurrent)!==null&&r!==void 0?r:1),v=re((i=f.value.defaultPageSize)!==null&&i!==void 0?i:10);ye(f,()=>{"current"in f.value&&(g.value=f.value.current),"pageSize"in f.value&&(v.value=f.value.pageSize)});const h=[],b=R=>(z,_)=>{g.value=z,v.value=_,f.value[R]&&f.value[R](z,_)},y=b("onChange"),S=b("onShowSizeChange"),$=P(()=>typeof e.loading=="boolean"?{spinning:e.loading}:e.loading),x=P(()=>$.value&&$.value.spinning),C=P(()=>{let R="";switch(e.size){case"large":R="lg";break;case"small":R="sm";break}return R}),O=P(()=>({[`${a.value}`]:!0,[`${a.value}-vertical`]:e.itemLayout==="vertical",[`${a.value}-${C.value}`]:C.value,[`${a.value}-split`]:e.split,[`${a.value}-bordered`]:e.bordered,[`${a.value}-loading`]:x.value,[`${a.value}-grid`]:!!e.grid,[`${a.value}-rtl`]:s.value==="rtl"})),w=P(()=>{const R=m(m(m({},l),{total:e.dataSource.length,current:g.value,pageSize:v.value}),e.pagination||{}),z=Math.ceil(R.total/R.pageSize);return R.current>z&&(R.current=z),R}),I=P(()=>{let R=[...e.dataSource];return e.pagination&&e.dataSource.length>(w.value.current-1)*w.value.pageSize&&(R=[...e.dataSource].splice((w.value.current-1)*w.value.pageSize,w.value.pageSize)),R}),T=Ua(),M=io(()=>{for(let R=0;R{if(!e.grid)return;const R=M.value&&e.grid[M.value]?e.grid[M.value]:e.grid.column;if(R)return{width:`${100/R}%`,maxWidth:`${100/R}%`}}),A=(R,z)=>{var _;const N=(_=e.renderItem)!==null&&_!==void 0?_:n.renderItem;if(!N)return null;let B;const k=typeof e.rowKey;return k==="function"?B=e.rowKey(R):k==="string"||k==="number"?B=R[e.rowKey]:B=R.key,B||(B=`list-item-${z}`),h[z]=B,N({item:R,index:z})};return()=>{var R,z,_,N,B,k,F,L;const H=(R=e.loadMore)!==null&&R!==void 0?R:(z=n.loadMore)===null||z===void 0?void 0:z.call(n),j=(_=e.footer)!==null&&_!==void 0?_:(N=n.footer)===null||N===void 0?void 0:N.call(n),Y=(B=e.header)!==null&&B!==void 0?B:(k=n.header)===null||k===void 0?void 0:k.call(n),Q=bt((F=n.default)===null||F===void 0?void 0:F.call(n)),U=!!(H||e.pagination||j),ee=le(m(m({},O.value),{[`${a.value}-something-after-last-item`]:U}),o.class,d.value),X=e.pagination?p("div",{class:`${a.value}-pagination`},[p(cg,D(D({},w.value),{},{onChange:y,onShowSizeChange:S}),null)]):null;let J=x.value&&p("div",{style:{minHeight:"53px"}},null);if(I.value.length>0){h.length=0;const G=I.value.map((V,K)=>A(V,K)),q=G.map((V,K)=>p("div",{key:h[K],style:E.value},[V]));J=e.grid?p($y,{gutter:e.grid.gutter},{default:()=>[q]}):p("ul",{class:`${a.value}-items`},[G])}else!Q.length&&!x.value&&(J=p("div",{class:`${a.value}-empty-text`},[((L=e.locale)===null||L===void 0?void 0:L.emptyText)||u("List")]));const Z=w.value.position||"bottom";return c(p("div",D(D({},o),{},{class:ee}),[(Z==="top"||Z==="both")&&X,Y&&p("div",{class:`${a.value}-header`},[Y]),p(gr,$.value,{default:()=>[J,Q]}),j&&p("div",{class:`${a.value}-footer`},[j]),H||(Z==="bottom"||Z==="both")&&X]))}}});ai.install=function(e){return e.component(ai.name,ai),e.component(ai.Item.name,ai.Item),e.component(ai.Item.Meta.name,ai.Item.Meta),e};function gne(e){const{selectionStart:t}=e;return e.value.slice(0,t)}function hne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(Array.isArray(t)?t:[t]).reduce((o,r)=>{const i=e.lastIndexOf(r);return i>o.location?{location:i,prefix:r}:o},{location:-1,prefix:""})}function Lw(e){return(e||"").toLowerCase()}function vne(e,t,n){const o=e[0];if(!o||o===n)return e;let r=e;const i=t.length;for(let l=0;l[]}},setup(e,t){let{slots:n}=t;const{activeIndex:o,setActiveIndex:r,selectOption:i,onFocus:l=$ne,loading:a}=He(W5,{activeIndex:ne(),loading:ne(!1)});let s;const u=c=>{clearTimeout(s),s=setTimeout(()=>{l(c)})};return Qe(()=>{clearTimeout(s)}),()=>{var c;const{prefixCls:d,options:f}=e,g=f[o.value]||{};return p(Vt,{prefixCls:`${d}-menu`,activeKey:g.value,onSelect:v=>{let{key:h}=v;const b=f.find(y=>{let{value:S}=y;return S===h});i(b)},onMousedown:u},{default:()=>[!a.value&&f.map((v,h)=>{var b,y;const{value:S,disabled:$,label:x=v.value,class:C,style:O}=v;return p(pr,{key:S,disabled:$,onMouseenter:()=>{r(h)},class:C,style:O},{default:()=>[(y=(b=n.option)===null||b===void 0?void 0:b.call(n,v))!==null&&y!==void 0?y:typeof x=="function"?x(v):x]})}),!a.value&&f.length===0?p(pr,{key:"notFoundContent",disabled:!0},{default:()=>[(c=n.notFoundContent)===null||c===void 0?void 0:c.call(n)]}):null,a.value&&p(pr,{key:"loading",disabled:!0},{default:()=>[p(gr,{size:"small"},null)]})]})}}}),xne={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}},wne=oe({compatConfig:{MODE:3},name:"KeywordTrigger",props:{loading:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},prefixCls:String,placement:String,visible:{type:Boolean,default:void 0},transitionName:String,getPopupContainer:Function,direction:String,dropdownClassName:String},setup(e,t){let{slots:n}=t;const o=()=>`${e.prefixCls}-dropdown`,r=()=>{const{options:l}=e;return p(Cne,{prefixCls:o(),options:l},{notFoundContent:n.notFoundContent,option:n.option})},i=P(()=>{const{placement:l,direction:a}=e;let s="topRight";return a==="rtl"?s=l==="top"?"topLeft":"bottomLeft":s=l==="top"?"topRight":"bottomRight",s});return()=>{const{visible:l,transitionName:a,getPopupContainer:s}=e;return p(Rl,{prefixCls:o(),popupVisible:l,popup:r(),popupClassName:e.dropdownClassName,popupPlacement:i.value,popupTransitionName:a,builtinPlacements:xne,getPopupContainer:s},{default:n.default})}}}),One=Sn("top","bottom"),K5={autofocus:{type:Boolean,default:void 0},prefix:W.oneOfType([W.string,W.arrayOf(W.string)]),prefixCls:String,value:String,disabled:{type:Boolean,default:void 0},split:String,transitionName:String,placement:W.oneOf(One),character:W.any,characterRender:Function,filterOption:{type:[Boolean,Function]},validateSearch:Function,getPopupContainer:{type:Function},options:lt(),loading:{type:Boolean,default:void 0},rows:[Number,String],direction:{type:String}},G5=m(m({},K5),{dropdownClassName:String}),X5={prefix:"@",split:" ",rows:1,validateSearch:yne,filterOption:()=>Sne};Ze(G5,X5);var zw=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{u.value=e.value});const c=E=>{n("change",E)},d=E=>{let{target:{value:A}}=E;c(A)},f=(E,A,R)=>{m(u,{measuring:!0,measureText:E,measurePrefix:A,measureLocation:R,activeIndex:0})},g=E=>{m(u,{measuring:!1,measureLocation:0,measureText:null}),E?.()},v=E=>{const{which:A}=E;if(u.measuring){if(A===Pe.UP||A===Pe.DOWN){const R=I.value.length,z=A===Pe.UP?-1:1,_=(u.activeIndex+z+R)%R;u.activeIndex=_,E.preventDefault()}else if(A===Pe.ESC)g();else if(A===Pe.ENTER){if(E.preventDefault(),!I.value.length){g();return}const R=I.value[u.activeIndex];C(R)}}},h=E=>{const{key:A,which:R}=E,{measureText:z,measuring:_}=u,{prefix:N,validateSearch:B}=e,k=E.target;if(k.composing)return;const F=gne(k),{location:L,prefix:H}=hne(F,N);if([Pe.ESC,Pe.UP,Pe.DOWN,Pe.ENTER].indexOf(R)===-1)if(L!==-1){const j=F.slice(L+H.length),Y=B(j,e),Q=!!w(j).length;Y?(A===H||A==="Shift"||_||j!==z&&Q)&&f(j,H,L):_&&g(),Y&&n("search",j,H)}else _&&g()},b=E=>{u.measuring||n("pressenter",E)},y=E=>{$(E)},S=E=>{x(E)},$=E=>{clearTimeout(s.value);const{isFocus:A}=u;!A&&E&&n("focus",E),u.isFocus=!0},x=E=>{s.value=setTimeout(()=>{u.isFocus=!1,g(),n("blur",E)},100)},C=E=>{const{split:A}=e,{value:R=""}=E,{text:z,selectionLocation:_}=mne(u.value,{measureLocation:u.measureLocation,targetText:R,prefix:u.measurePrefix,selectionStart:a.value.getSelectionStart(),split:A});c(z),g(()=>{bne(a.value.input,_)}),n("select",E,u.measurePrefix)},O=E=>{u.activeIndex=E},w=E=>{const A=E||u.measureText||"",{filterOption:R}=e;return e.options.filter(_=>R?R(A,_):!0)},I=P(()=>w());return r({blur:()=>{a.value.blur()},focus:()=>{a.value.focus()}}),Xe(W5,{activeIndex:ze(u,"activeIndex"),setActiveIndex:O,selectOption:C,onFocus:$,onBlur:x,loading:ze(e,"loading")}),An(()=>{ot(()=>{u.measuring&&(l.value.scrollTop=a.value.getScrollTop())})}),()=>{const{measureLocation:E,measurePrefix:A,measuring:R}=u,{prefixCls:z,placement:_,transitionName:N,getPopupContainer:B,direction:k}=e,F=zw(e,["prefixCls","placement","transitionName","getPopupContainer","direction"]),{class:L,style:H}=o,j=zw(o,["class","style"]),Y=tt(F,["value","prefix","split","validateSearch","filterOption","options","loading"]),Q=m(m(m({},Y),j),{onChange:Hw,onSelect:Hw,value:u.value,onInput:d,onBlur:S,onKeydown:v,onKeyup:h,onFocus:y,onPressenter:b});return p("div",{class:le(z,L),style:H},[p(Ha,D(D({},Q),{},{ref:a,tag:"textarea"}),null),R&&p("div",{ref:l,class:`${z}-measure`},[u.value.slice(0,E),p(wne,{prefixCls:z,transitionName:N,dropdownClassName:e.dropdownClassName,placement:_,options:R?I.value:[],visible:!0,direction:k,getPopupContainer:B},{default:()=>[p("span",null,[A])],notFoundContent:i.notFoundContent,option:i.option}),u.value.slice(E+A.length)])])}}}),Ine={value:String,disabled:Boolean,payload:De()},U5=m(m({},Ine),{label:yt([])}),Y5={name:"Option",props:U5,render(e,t){let{slots:n}=t;var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}};m({compatConfig:{MODE:3}},Y5);const Tne=e=>{const{componentCls:t,colorTextDisabled:n,controlItemBgHover:o,controlPaddingHorizontal:r,colorText:i,motionDurationSlow:l,lineHeight:a,controlHeight:s,inputPaddingHorizontal:u,inputPaddingVertical:c,fontSize:d,colorBgElevated:f,borderRadiusLG:g,boxShadowSecondary:v}=e,h=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{[t]:m(m(m(m(m({},Ue(e)),kl(e)),{position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:a,whiteSpace:"pre-wrap",verticalAlign:"bottom"}),Bc(e,t)),{"&-disabled":{"> textarea":m({},ly(e))},"&-focused":m({},Pi(e)),[`&-affix-wrapper ${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:u,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`> textarea, ${t}-measure`]:{color:i,boxSizing:"border-box",minHeight:s-2,margin:0,padding:`${c}px ${u}px`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":m({width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"inherit"},iy(e.colorTextPlaceholder)),[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}},"&-dropdown":m(m({},Ue(e)),{position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:d,fontVariant:"initial",backgroundColor:f,borderRadius:g,outline:"none",boxShadow:v,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,marginBottom:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":m(m({},Gt),{position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${h}px ${r}px`,color:i,fontWeight:"normal",lineHeight:a,cursor:"pointer",transition:`background ${l} ease`,"&:hover":{backgroundColor:o},"&:first-child":{borderStartStartRadius:g,borderStartEndRadius:g,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:g,borderEndEndRadius:g},"&-disabled":{color:n,cursor:"not-allowed","&:hover":{color:n,backgroundColor:o,cursor:"not-allowed"}},"&-selected":{color:i,fontWeight:e.fontWeightStrong,backgroundColor:o},"&-active":{backgroundColor:o}})}})})}},Ene=Ke("Mentions",e=>{const t=Fl(e);return[Tne(t)]},e=>({dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50}));var jw=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{prefix:n="@",split:o=" "}=t,r=Array.isArray(n)?n:[n];return e.split(o).map(function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=null;return r.some(a=>i.slice(0,a.length)===a?(l=a,!0):!1),l!==null?{prefix:l,value:i.slice(l.length)}:null}).filter(i=>!!i&&!!i.value)},Ane=()=>m(m({},K5),{loading:{type:Boolean,default:void 0},onFocus:{type:Function},onBlur:{type:Function},onSelect:{type:Function},onChange:{type:Function},onPressenter:{type:Function},"onUpdate:value":{type:Function},notFoundContent:W.any,defaultValue:String,id:String,status:String}),Lh=oe({compatConfig:{MODE:3},name:"AMentions",inheritAttrs:!1,props:Ane(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r,expose:i}=t;var l,a;const{prefixCls:s,renderEmpty:u,direction:c}=Te("mentions",e),[d,f]=Ene(s),g=ne(!1),v=ne(null),h=ne((a=(l=e.value)!==null&&l!==void 0?l:e.defaultValue)!==null&&a!==void 0?a:""),b=Qt(),y=dn.useInject(),S=P(()=>Qo(y.status,e.status));Rb({prefixCls:P(()=>`${s.value}-menu`),mode:P(()=>"vertical"),selectable:P(()=>!1),onClick:()=>{},validator:A=>{let{mode:R}=A}}),ye(()=>e.value,A=>{h.value=A});const $=A=>{g.value=!0,o("focus",A)},x=A=>{g.value=!1,o("blur",A),b.onFieldBlur()},C=function(){for(var A=arguments.length,R=new Array(A),z=0;z{e.value===void 0&&(h.value=A),o("update:value",A),o("change",A),b.onFieldChange()},w=()=>{const A=e.notFoundContent;return A!==void 0?A:n.notFoundContent?n.notFoundContent():u("Select")},I=()=>{var A;return bt(((A=n.default)===null||A===void 0?void 0:A.call(n))||[]).map(R=>{var z,_;return m(m({},bO(R)),{label:(_=(z=R.children)===null||z===void 0?void 0:z.default)===null||_===void 0?void 0:_.call(z)})})};i({focus:()=>{v.value.focus()},blur:()=>{v.value.blur()}});const E=P(()=>e.loading?Mne:e.filterOption);return()=>{const{disabled:A,getPopupContainer:R,rows:z=1,id:_=b.id.value}=e,N=jw(e,["disabled","getPopupContainer","rows","id"]),{hasFeedback:B,feedbackIcon:k}=y,{class:F}=r,L=jw(r,["class"]),H=tt(N,["defaultValue","onUpdate:value","prefixCls"]),j=le({[`${s.value}-disabled`]:A,[`${s.value}-focused`]:g.value,[`${s.value}-rtl`]:c.value==="rtl"},Tn(s.value,S.value),!B&&F,f.value),Y=m(m(m(m({prefixCls:s.value},H),{disabled:A,direction:c.value,filterOption:E.value,getPopupContainer:R,options:e.loading?[{value:"ANTDV_SEARCHING",disabled:!0,label:p(gr,{size:"small"},null)}]:e.options||I(),class:j}),L),{rows:z,onChange:O,onSelect:C,onFocus:$,onBlur:x,ref:v,value:h.value,id:_}),Q=p(Pne,D(D({},Y),{},{dropdownClassName:f.value}),{notFoundContent:w,option:n.option});return d(B?p("div",{class:le(`${s.value}-affix-wrapper`,Tn(`${s.value}-affix-wrapper`,S.value,B),F,f.value)},[Q,p("span",{class:`${s.value}-suffix`},[k])]):Q)}}}),md=oe(m(m({compatConfig:{MODE:3}},Y5),{name:"AMentionsOption",props:U5})),Rne=m(Lh,{Option:md,getMentions:_ne,install:e=>(e.component(Lh.name,Lh),e.component(md.name,md),e)});var Dne=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{Pm={x:e.pageX,y:e.pageY},setTimeout(()=>Pm=null,100)};C8()&&Et(document.documentElement,"click",Nne,!0);const Bne=()=>({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:W.any,closable:{type:Boolean,default:void 0},closeIcon:W.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:W.any,okText:W.any,okType:String,cancelText:W.any,icon:W.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:De(),cancelButtonProps:De(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:De(),maskStyle:De(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:De()}),Bt=oe({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:Ze(Bne(),{width:520,confirmLoading:!1,okType:"primary"}),setup(e,t){let{emit:n,slots:o,attrs:r}=t;const[i]=Do("Modal"),{prefixCls:l,rootPrefixCls:a,direction:s,getPopupContainer:u}=Te("modal",e),[c,d]=Kee(l);fo(e.visible===void 0);const f=h=>{n("update:visible",!1),n("update:open",!1),n("cancel",h),n("change",!1)},g=h=>{n("ok",h)},v=()=>{var h,b;const{okText:y=(h=o.okText)===null||h===void 0?void 0:h.call(o),okType:S,cancelText:$=(b=o.cancelText)===null||b===void 0?void 0:b.call(o),confirmLoading:x}=e;return p(Ve,null,[p(Lt,D({onClick:f},e.cancelButtonProps),{default:()=>[$||i.value.cancelText]}),p(Lt,D(D({},cf(S)),{},{loading:x,onClick:g},e.okButtonProps),{default:()=>[y||i.value.okText]})])};return()=>{var h,b;const{prefixCls:y,visible:S,open:$,wrapClassName:x,centered:C,getContainer:O,closeIcon:w=(h=o.closeIcon)===null||h===void 0?void 0:h.call(o),focusTriggerAfterClose:I=!0}=e,T=Dne(e,["prefixCls","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),M=le(x,{[`${l.value}-centered`]:!!C,[`${l.value}-wrap-rtl`]:s.value==="rtl"});return c(p(E5,D(D(D({},T),r),{},{rootClassName:d.value,class:le(d.value,r.class),getContainer:O||u?.value,prefixCls:l.value,wrapClassName:M,visible:$??S,onClose:f,focusTriggerAfterClose:I,transitionName:_n(a.value,"zoom",e.transitionName),maskTransitionName:_n(a.value,"fade",e.maskTransitionName),mousePosition:(b=T.mousePosition)!==null&&b!==void 0?b:Pm}),m(m({},o),{footer:o.footer||v,closeIcon:()=>p("span",{class:`${l.value}-close-x`},[w||p(Rn,{class:`${l.value}-close-icon`},null)])})))}}}),q5=()=>{const e=ne(!1);return Qe(()=>{e.value=!0}),e},kne={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:De(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function Vw(e){return!!(e&&e.then)}const Im=oe({compatConfig:{MODE:3},name:"ActionButton",props:kne,setup(e,t){let{slots:n}=t;const o=ne(!1),r=ne(),i=ne(!1);let l;const a=q5();je(()=>{e.autofocus&&(l=setTimeout(()=>{var d,f;return(f=(d=Hn(r.value))===null||d===void 0?void 0:d.focus)===null||f===void 0?void 0:f.call(d)}))}),Qe(()=>{clearTimeout(l)});const s=function(){for(var d,f=arguments.length,g=new Array(f),v=0;v{Vw(d)&&(i.value=!0,d.then(function(){a.value||(i.value=!1),s(...arguments),o.value=!1},f=>(a.value||(i.value=!1),o.value=!1,Promise.reject(f))))},c=d=>{const{actionFn:f}=e;if(o.value)return;if(o.value=!0,!f){s();return}let g;if(e.emitEvent){if(g=f(d),e.quitOnNullishReturnValue&&!Vw(g)){o.value=!1,s(d);return}}else if(f.length)g=f(e.close),o.value=!1;else if(g=f(),!g){s();return}u(g)};return()=>{const{type:d,prefixCls:f,buttonProps:g}=e;return p(Lt,D(D(D({},cf(d)),{},{onClick:c,loading:i.value,prefixCls:f},g),{},{ref:r}),n)}}});function Xl(e){return typeof e=="function"?e():e}const Z5=oe({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","open","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName","confirmPrefixCls","footer"],setup(e,t){let{attrs:n}=t;const[o]=Do("Modal");return()=>{const{icon:r,onCancel:i,onOk:l,close:a,okText:s,closable:u=!1,zIndex:c,afterClose:d,keyboard:f,centered:g,getContainer:v,maskStyle:h,okButtonProps:b,cancelButtonProps:y,okCancel:S,width:$=416,mask:x=!0,maskClosable:C=!1,type:O,open:w,title:I,content:T,direction:M,closeIcon:E,modalRender:A,focusTriggerAfterClose:R,rootPrefixCls:z,bodyStyle:_,wrapClassName:N,footer:B}=e;let k=r;if(!r&&r!==null)switch(O){case"info":k=p(Di,null,null);break;case"success":k=p(Jo,null,null);break;case"error":k=p(Dn,null,null);break;default:k=p(er,null,null)}const F=e.okType||"primary",L=e.prefixCls||"ant-modal",H=`${L}-confirm`,j=n.style||{},Y=S??O==="confirm",Q=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",U=`${L}-confirm`,ee=le(U,`${U}-${e.type}`,{[`${U}-rtl`]:M==="rtl"},n.class),X=o.value,J=Y&&p(Im,{actionFn:i,close:a,autofocus:Q==="cancel",buttonProps:y,prefixCls:`${z}-btn`},{default:()=>[Xl(e.cancelText)||X.cancelText]});return p(Bt,{prefixCls:L,class:ee,wrapClassName:le({[`${U}-centered`]:!!g},N),onCancel:Z=>a?.({triggerCancel:!0},Z),open:w,title:"",footer:"",transitionName:_n(z,"zoom",e.transitionName),maskTransitionName:_n(z,"fade",e.maskTransitionName),mask:x,maskClosable:C,maskStyle:h,style:j,bodyStyle:_,width:$,zIndex:c,afterClose:d,keyboard:f,centered:g,getContainer:v,closable:u,closeIcon:E,modalRender:A,focusTriggerAfterClose:R},{default:()=>[p("div",{class:`${H}-body-wrapper`},[p("div",{class:`${H}-body`},[Xl(k),I===void 0?null:p("span",{class:`${H}-title`},[Xl(I)]),p("div",{class:`${H}-content`},[Xl(T)])]),B!==void 0?Xl(B):p("div",{class:`${H}-btns`},[J,p(Im,{type:F,actionFn:l,close:a,autofocus:Q==="ok",buttonProps:b,prefixCls:`${z}-btn`},{default:()=>[Xl(s)||(Y?X.okText:X.justOkText)]})])])]})}}}),il=[],Vc=e=>{const t=document.createDocumentFragment();let n=m(m({},tt(e,["parentContext","appContext"])),{close:i,open:!0}),o=null;function r(){o&&(Oi(null,t),o=null);for(var u=arguments.length,c=new Array(u),d=0;dg&&g.triggerCancel);e.onCancel&&f&&e.onCancel(()=>{},...c.slice(1));for(let g=0;g{typeof e.afterClose=="function"&&e.afterClose(),r.apply(this,c)}}),n.visible&&delete n.visible,l(n)}function l(u){typeof u=="function"?n=u(n):n=m(m({},n),u),o&&mD(o,n,t)}const a=u=>{const c=vn,d=c.prefixCls,f=u.prefixCls||`${d}-modal`,g=c.iconPrefixCls,v=XZ();return p(gl,D(D({},c),{},{prefixCls:d}),{default:()=>[p(Z5,D(D({},u),{},{rootPrefixCls:d,prefixCls:f,iconPrefixCls:g,locale:v,cancelText:u.cancelText||v.cancelText}),null)]})};function s(u){const c=p(a,m({},u));return c.appContext=e.parentContext||e.appContext||c.appContext,Oi(c,t),c}return o=s(n),il.push(i),{destroy:i,update:l}};function Q5(e){return m(m({},e),{type:"warning"})}function J5(e){return m(m({},e),{type:"info"})}function eT(e){return m(m({},e),{type:"success"})}function tT(e){return m(m({},e),{type:"error"})}function nT(e){return m(m({},e),{type:"confirm"})}const Fne=()=>({config:Object,afterClose:Function,destroyAction:Function,open:Boolean}),Lne=oe({name:"HookModal",inheritAttrs:!1,props:Ze(Fne(),{config:{width:520,okType:"primary"}}),setup(e,t){let{expose:n}=t;var o;const r=P(()=>e.open),i=P(()=>e.config),{direction:l,getPrefixCls:a}=ap(),s=a("modal"),u=a(),c=()=>{var v,h;e?.afterClose(),(h=(v=i.value).afterClose)===null||h===void 0||h.call(v)},d=function(){e.destroyAction(...arguments)};n({destroy:d});const f=(o=i.value.okCancel)!==null&&o!==void 0?o:i.value.type==="confirm",[g]=Do("Modal",Vn.Modal);return()=>p(Z5,D(D({prefixCls:s,rootPrefixCls:u},i.value),{},{close:d,open:r.value,afterClose:c,okText:i.value.okText||(f?g?.value.okText:g?.value.justOkText),direction:i.value.direction||l.value,cancelText:i.value.cancelText||g?.value.cancelText}),null)}});let Ww=0;const zne=oe({name:"ElementsHolder",inheritAttrs:!1,setup(e,t){let{expose:n}=t;const o=ne([]);return n({addModal:i=>(o.value.push(i),o.value=o.value.slice(),()=>{o.value=o.value.filter(l=>l!==i)})}),()=>o.value.map(i=>i())}});function oT(){const e=ne(null),t=ne([]);ye(t,()=>{t.value.length&&([...t.value].forEach(l=>{l()}),t.value=[])},{immediate:!0});const n=i=>function(a){var s;Ww+=1;const u=ne(!0),c=ne(null),d=ne(St(a)),f=ne({});ye(()=>a,$=>{b(m(m({},kt($)?$.value:$),f.value))});const g=function(){u.value=!1;for(var $=arguments.length,x=new Array($),C=0;C<$;C++)x[C]=arguments[C];const O=x.some(w=>w&&w.triggerCancel);d.value.onCancel&&O&&d.value.onCancel(()=>{},...x.slice(1))};let v;const h=()=>p(Lne,{key:`modal-${Ww}`,config:i(d.value),ref:c,open:u.value,destroyAction:g,afterClose:()=>{v?.()}},null);v=(s=e.value)===null||s===void 0?void 0:s.addModal(h),v&&il.push(v);const b=$=>{d.value=m(m({},d.value),$)};return{destroy:()=>{c.value?g():t.value=[...t.value,g]},update:$=>{f.value=$,c.value?b($):t.value=[...t.value,()=>b($)]}}},o=P(()=>({info:n(J5),success:n(eT),error:n(tT),warning:n(Q5),confirm:n(nT)})),r=Symbol("modalHolderKey");return[o.value,()=>p(zne,{key:r,ref:e},null)]}function rT(e){return Vc(Q5(e))}Bt.useModal=oT;Bt.info=function(t){return Vc(J5(t))};Bt.success=function(t){return Vc(eT(t))};Bt.error=function(t){return Vc(tT(t))};Bt.warning=rT;Bt.warn=rT;Bt.confirm=function(t){return Vc(nT(t))};Bt.destroyAll=function(){for(;il.length;){const t=il.pop();t&&t()}};Bt.install=function(e){return e.component(Bt.name,Bt),e};const iT=e=>{const{value:t,formatter:n,precision:o,decimalSeparator:r,groupSeparator:i="",prefixCls:l}=e;let a;if(typeof n=="function")a=n({value:t});else{const s=String(t),u=s.match(/^(-?)(\d*)(\.(\d+))?$/);if(!u)a=s;else{const c=u[1];let d=u[2]||"0",f=u[4]||"";d=d.replace(/\B(?=(\d{3})+(?!\d))/g,i),typeof o=="number"&&(f=f.padEnd(o,"0").slice(0,o>0?o:0)),f&&(f=`${r}${f}`),a=[p("span",{key:"int",class:`${l}-content-value-int`},[c,d]),f&&p("span",{key:"decimal",class:`${l}-content-value-decimal`},[f])]}}return p("span",{class:`${l}-content-value`},[a])};iT.displayName="StatisticNumber";const Hne=e=>{const{componentCls:t,marginXXS:n,padding:o,colorTextDescription:r,statisticTitleFontSize:i,colorTextHeading:l,statisticContentFontSize:a,statisticFontFamily:s}=e;return{[`${t}`]:m(m({},Ue(e)),{[`${t}-title`]:{marginBottom:n,color:r,fontSize:i},[`${t}-skeleton`]:{paddingTop:o},[`${t}-content`]:{color:l,fontSize:a,fontFamily:s,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},jne=Ke("Statistic",e=>{const{fontSizeHeading3:t,fontSize:n,fontFamily:o}=e,r=ke(e,{statisticTitleFontSize:n,statisticContentFontSize:t,statisticFontFamily:o});return[Hne(r)]}),lT=()=>({prefixCls:String,decimalSeparator:String,groupSeparator:String,format:String,value:Fe([Number,String,Object]),valueStyle:{type:Object,default:void 0},valueRender:ve(),formatter:yt(),precision:Number,prefix:Pn(),suffix:Pn(),title:Pn(),loading:$e()}),Rr=oe({compatConfig:{MODE:3},name:"AStatistic",inheritAttrs:!1,props:Ze(lT(),{decimalSeparator:".",groupSeparator:",",loading:!1}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Te("statistic",e),[l,a]=jne(r);return()=>{var s,u,c,d,f,g,v;const{value:h=0,valueStyle:b,valueRender:y}=e,S=r.value,$=(s=e.title)!==null&&s!==void 0?s:(u=n.title)===null||u===void 0?void 0:u.call(n),x=(c=e.prefix)!==null&&c!==void 0?c:(d=n.prefix)===null||d===void 0?void 0:d.call(n),C=(f=e.suffix)!==null&&f!==void 0?f:(g=n.suffix)===null||g===void 0?void 0:g.call(n),O=(v=e.formatter)!==null&&v!==void 0?v:n.formatter;let w=p(iT,D({"data-for-update":Date.now()},m(m({},e),{prefixCls:S,value:h,formatter:O})),null);return y&&(w=y(w)),l(p("div",D(D({},o),{},{class:[S,{[`${S}-rtl`]:i.value==="rtl"},o.class,a.value]}),[$&&p("div",{class:`${S}-title`},[$]),p(wn,{paragraph:!1,loading:e.loading},{default:()=>[p("div",{style:b,class:`${S}-content`},[x&&p("span",{class:`${S}-content-prefix`},[x]),w,C&&p("span",{class:`${S}-content-suffix`},[C])])]})]))}}}),Vne=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function Wne(e,t){let n=e;const o=/\[[^\]]*]/g,r=(t.match(o)||[]).map(s=>s.slice(1,-1)),i=t.replace(o,"[]"),l=Vne.reduce((s,u)=>{let[c,d]=u;if(s.includes(c)){const f=Math.floor(n/d);return n-=f*d,s.replace(new RegExp(`${c}+`,"g"),g=>{const v=g.length;return f.toString().padStart(v,"0")})}return s},i);let a=0;return l.replace(o,()=>{const s=r[a];return a+=1,s})}function Kne(e,t){const{format:n=""}=t,o=new Date(e).getTime(),r=Date.now(),i=Math.max(o-r,0);return Wne(i,n)}const Gne=1e3/30;function zh(e){return new Date(e).getTime()}const Xne=()=>m(m({},lT()),{value:Fe([Number,String,Object]),format:String,onFinish:Function,onChange:Function}),Une=oe({compatConfig:{MODE:3},name:"AStatisticCountdown",props:Ze(Xne(),{format:"HH:mm:ss"}),setup(e,t){let{emit:n,slots:o}=t;const r=re(),i=re(),l=()=>{const{value:d}=e;zh(d)>=Date.now()?a():s()},a=()=>{if(r.value)return;const d=zh(e.value);r.value=setInterval(()=>{i.value.$forceUpdate(),d>Date.now()&&n("change",d-Date.now()),l()},Gne)},s=()=>{const{value:d}=e;r.value&&(clearInterval(r.value),r.value=void 0,zh(d){let{value:f,config:g}=d;const{format:v}=e;return Kne(f,m(m({},g),{format:v}))},c=d=>d;return je(()=>{l()}),An(()=>{l()}),Qe(()=>{s()}),()=>{const d=e.value;return p(Rr,D({ref:i},m(m({},tt(e,["onFinish","onChange"])),{value:d,valueRender:c,formatter:u})),o)}}});Rr.Countdown=Une;Rr.install=function(e){return e.component(Rr.name,Rr),e.component(Rr.Countdown.name,Rr.Countdown),e};const Yne=Rr.Countdown;var qne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};function Kw(e){for(var t=1;t{const{keyCode:g}=f;g===Pe.ENTER&&f.preventDefault()},s=f=>{const{keyCode:g}=f;g===Pe.ENTER&&o("click",f)},u=f=>{o("click",f)},c=()=>{l.value&&l.value.focus()},d=()=>{l.value&&l.value.blur()};return je(()=>{e.autofocus&&c()}),i({focus:c,blur:d}),()=>{var f;const{noStyle:g,disabled:v}=e,h=eoe(e,["noStyle","disabled"]);let b={};return g||(b=m({},toe)),v&&(b.pointerEvents="none"),p("div",D(D(D({role:"button",tabindex:0,ref:l},h),r),{},{onClick:u,onKeydown:a,onKeyup:s,style:m(m({},b),r.style||{})}),[(f=n.default)===null||f===void 0?void 0:f.call(n)])}}}),noe={small:8,middle:16,large:24},ooe=()=>({prefixCls:String,size:{type:[String,Number,Array]},direction:W.oneOf(Sn("horizontal","vertical")).def("horizontal"),align:W.oneOf(Sn("start","end","center","baseline")),wrap:$e()});function roe(e){return typeof e=="string"?noe[e]:e||0}const $a=oe({compatConfig:{MODE:3},name:"ASpace",inheritAttrs:!1,props:ooe(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,space:i,direction:l}=Te("space",e),[a,s]=b6(r),u=w8(),c=P(()=>{var y,S,$;return($=(y=e.size)!==null&&y!==void 0?y:(S=i?.value)===null||S===void 0?void 0:S.size)!==null&&$!==void 0?$:"small"}),d=re(),f=re();ye(c,()=>{[d.value,f.value]=(Array.isArray(c.value)?c.value:[c.value,c.value]).map(y=>roe(y))},{immediate:!0});const g=P(()=>e.align===void 0&&e.direction==="horizontal"?"center":e.align),v=P(()=>le(r.value,s.value,`${r.value}-${e.direction}`,{[`${r.value}-rtl`]:l.value==="rtl",[`${r.value}-align-${g.value}`]:g.value})),h=P(()=>l.value==="rtl"?"marginLeft":"marginRight"),b=P(()=>{const y={};return u.value&&(y.columnGap=`${d.value}px`,y.rowGap=`${f.value}px`),m(m({},y),e.wrap&&{flexWrap:"wrap",marginBottom:`${-f.value}px`})});return()=>{var y,S;const{wrap:$,direction:x="horizontal"}=e,C=(y=n.default)===null||y===void 0?void 0:y.call(n),O=_t(C),w=O.length;if(w===0)return null;const I=(S=n.split)===null||S===void 0?void 0:S.call(n),T=`${r.value}-item`,M=d.value,E=w-1;return p("div",D(D({},o),{},{class:[v.value,o.class],style:[b.value,o.style]}),[O.map((A,R)=>{let z=C.indexOf(A);z===-1&&(z=`$$space-${R}`);let _={};return u.value||(x==="vertical"?R{const{componentCls:t,antCls:n}=e;return{[t]:m(m({},Ue(e)),{position:"relative",padding:`${e.pageHeaderPaddingVertical}px ${e.pageHeaderPadding}px`,backgroundColor:e.colorBgContainer,[`&${t}-ghost`]:{backgroundColor:e.pageHeaderGhostBg},"&.has-footer":{paddingBottom:0},[`${t}-back`]:{marginRight:e.marginMD,fontSize:e.fontSizeLG,lineHeight:1,"&-button":m(m({},pp(e)),{color:e.pageHeaderBackColor,cursor:"pointer"})},[`${n}-divider-vertical`]:{height:"14px",margin:`0 ${e.marginSM}`,verticalAlign:"middle"},[`${n}-breadcrumb + &-heading`]:{marginTop:e.marginXS},[`${t}-heading`]:{display:"flex",justifyContent:"space-between","&-left":{display:"flex",alignItems:"center",margin:`${e.marginXS/2}px 0`,overflow:"hidden"},"&-title":m({marginRight:e.marginSM,marginBottom:0,color:e.colorTextHeading,fontWeight:600,fontSize:e.pageHeaderHeadingTitle,lineHeight:`${e.controlHeight}px`},Gt),[`${n}-avatar`]:{marginRight:e.marginSM},"&-sub-title":m({marginRight:e.marginSM,color:e.colorTextDescription,fontSize:e.pageHeaderHeadingSubTitle,lineHeight:e.lineHeight},Gt),"&-extra":{margin:`${e.marginXS/2}px 0`,whiteSpace:"nowrap","> *":{marginLeft:e.marginSM,whiteSpace:"unset"},"> *:first-child":{marginLeft:0}}},[`${t}-content`]:{paddingTop:e.pageHeaderContentPaddingVertical},[`${t}-footer`]:{marginTop:e.marginMD,[`${n}-tabs`]:{[`> ${n}-tabs-nav`]:{margin:0,"&::before":{border:"none"}},[`${n}-tabs-tab`]:{paddingTop:e.paddingXS,paddingBottom:e.paddingXS,fontSize:e.pageHeaderTabFontSize}}},[`${t}-compact ${t}-heading`]:{flexWrap:"wrap"},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},loe=Ke("PageHeader",e=>{const t=ke(e,{pageHeaderPadding:e.paddingLG,pageHeaderPaddingVertical:e.paddingMD,pageHeaderPaddingBreadcrumb:e.paddingSM,pageHeaderContentPaddingVertical:e.paddingSM,pageHeaderBackColor:e.colorTextBase,pageHeaderGhostBg:"transparent",pageHeaderHeadingTitle:e.fontSizeHeading4,pageHeaderHeadingSubTitle:e.fontSize,pageHeaderTabFontSize:e.fontSizeLG});return[ioe(t)]}),aoe=()=>({backIcon:Pn(),prefixCls:String,title:Pn(),subTitle:Pn(),breadcrumb:W.object,tags:Pn(),footer:Pn(),extra:Pn(),avatar:De(),ghost:{type:Boolean,default:void 0},onBack:Function}),soe=oe({compatConfig:{MODE:3},name:"APageHeader",inheritAttrs:!1,props:aoe(),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:i,direction:l,pageHeader:a}=Te("page-header",e),[s,u]=loe(i),c=ne(!1),d=q5(),f=x=>{let{width:C}=x;d.value||(c.value=C<768)},g=P(()=>{var x,C,O;return(O=(x=e.ghost)!==null&&x!==void 0?x:(C=a?.value)===null||C===void 0?void 0:C.ghost)!==null&&O!==void 0?O:!0}),v=()=>{var x,C,O;return(O=(x=e.backIcon)!==null&&x!==void 0?x:(C=o.backIcon)===null||C===void 0?void 0:C.call(o))!==null&&O!==void 0?O:l.value==="rtl"?p(Uy,null,null):p(Xy,null,null)},h=x=>!x||!e.onBack?null:p(Il,{componentName:"PageHeader",children:C=>{let{back:O}=C;return p("div",{class:`${i.value}-back`},[p(Df,{onClick:w=>{n("back",w)},class:`${i.value}-back-button`,"aria-label":O},{default:()=>[x]})])}},null),b=()=>{var x;return e.breadcrumb?p(fl,e.breadcrumb,null):(x=o.breadcrumb)===null||x===void 0?void 0:x.call(o)},y=()=>{var x,C,O,w,I,T,M,E,A;const{avatar:R}=e,z=(x=e.title)!==null&&x!==void 0?x:(C=o.title)===null||C===void 0?void 0:C.call(o),_=(O=e.subTitle)!==null&&O!==void 0?O:(w=o.subTitle)===null||w===void 0?void 0:w.call(o),N=(I=e.tags)!==null&&I!==void 0?I:(T=o.tags)===null||T===void 0?void 0:T.call(o),B=(M=e.extra)!==null&&M!==void 0?M:(E=o.extra)===null||E===void 0?void 0:E.call(o),k=`${i.value}-heading`,F=z||_||N||B;if(!F)return null;const L=v(),H=h(L);return p("div",{class:k},[(H||R||F)&&p("div",{class:`${k}-left`},[H,R?p(dl,R,null):(A=o.avatar)===null||A===void 0?void 0:A.call(o),z&&p("span",{class:`${k}-title`,title:typeof z=="string"?z:void 0},[z]),_&&p("span",{class:`${k}-sub-title`,title:typeof _=="string"?_:void 0},[_]),N&&p("span",{class:`${k}-tags`},[N])]),B&&p("span",{class:`${k}-extra`},[p($a,null,{default:()=>[B]})])])},S=()=>{var x,C;const O=(x=e.footer)!==null&&x!==void 0?x:_t((C=o.footer)===null||C===void 0?void 0:C.call(o));return iA(O)?null:p("div",{class:`${i.value}-footer`},[O])},$=x=>p("div",{class:`${i.value}-content`},[x]);return()=>{var x,C;const O=((x=e.breadcrumb)===null||x===void 0?void 0:x.routes)||o.breadcrumb,w=e.footer||o.footer,I=bt((C=o.default)===null||C===void 0?void 0:C.call(o)),T=le(i.value,{"has-breadcrumb":O,"has-footer":w,[`${i.value}-ghost`]:g.value,[`${i.value}-rtl`]:l.value==="rtl",[`${i.value}-compact`]:c.value},r.class,u.value);return s(p(Mo,{onResize:f},{default:()=>[p("div",D(D({},r),{},{class:T}),[b(),y(),I.length?$(I):null,S()])]}))}}}),coe=It(soe),uoe=e=>{const{componentCls:t,iconCls:n,zIndexPopup:o,colorText:r,colorWarning:i,marginXS:l,fontSize:a,fontWeightStrong:s,lineHeight:u}=e;return{[t]:{zIndex:o,[`${t}-inner-content`]:{color:r},[`${t}-message`]:{position:"relative",marginBottom:l,color:r,fontSize:a,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:a,flex:"none",lineHeight:1,paddingTop:(Math.round(a*u)-a)/2},"&-title":{flex:"auto",marginInlineStart:l},"&-title-only":{fontWeight:s}},[`${t}-description`]:{position:"relative",marginInlineStart:a+l,marginBottom:l,color:r,fontSize:a},[`${t}-buttons`]:{textAlign:"end",button:{marginInlineStart:l}}}}},doe=Ke("Popconfirm",e=>uoe(e),e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}});var foe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rm(m({},Ob()),{prefixCls:String,content:yt(),title:yt(),description:yt(),okType:Ne("primary"),disabled:{type:Boolean,default:!1},okText:yt(),cancelText:yt(),icon:yt(),okButtonProps:De(),cancelButtonProps:De(),showCancel:{type:Boolean,default:!0},onConfirm:Function,onCancel:Function}),goe=oe({compatConfig:{MODE:3},name:"APopconfirm",inheritAttrs:!1,props:Ze(poe(),m(m({},W6()),{trigger:"click",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0,okType:"primary",disabled:!1})),slots:Object,setup(e,t){let{slots:n,emit:o,expose:r,attrs:i}=t;const l=re();fo(e.visible===void 0),r({getPopupDomNode:()=>{var O,w;return(w=(O=l.value)===null||O===void 0?void 0:O.getPopupDomNode)===null||w===void 0?void 0:w.call(O)}});const[a,s]=Pt(!1,{value:ze(e,"open")}),u=(O,w)=>{e.open===void 0&&s(O),o("update:open",O),o("openChange",O,w)},c=O=>{u(!1,O)},d=O=>{var w;return(w=e.onConfirm)===null||w===void 0?void 0:w.call(e,O)},f=O=>{var w;u(!1,O),(w=e.onCancel)===null||w===void 0||w.call(e,O)},g=O=>{O.keyCode===Pe.ESC&&a&&u(!1,O)},v=O=>{const{disabled:w}=e;w||u(O)},{prefixCls:h,getPrefixCls:b}=Te("popconfirm",e),y=P(()=>b()),S=P(()=>b("btn")),[$]=doe(h),[x]=Do("Popconfirm",Vn.Popconfirm),C=()=>{var O,w,I,T,M;const{okButtonProps:E,cancelButtonProps:A,title:R=(O=n.title)===null||O===void 0?void 0:O.call(n),description:z=(w=n.description)===null||w===void 0?void 0:w.call(n),cancelText:_=(I=n.cancel)===null||I===void 0?void 0:I.call(n),okText:N=(T=n.okText)===null||T===void 0?void 0:T.call(n),okType:B,icon:k=((M=n.icon)===null||M===void 0?void 0:M.call(n))||p(er,null,null),showCancel:F=!0}=e,{cancelButton:L,okButton:H}=n,j=m({onClick:f,size:"small"},A),Y=m(m(m({onClick:d},cf(B)),{size:"small"}),E);return p("div",{class:`${h.value}-inner-content`},[p("div",{class:`${h.value}-message`},[k&&p("span",{class:`${h.value}-message-icon`},[k]),p("div",{class:[`${h.value}-message-title`,{[`${h.value}-message-title-only`]:!!z}]},[R])]),z&&p("div",{class:`${h.value}-description`},[z]),p("div",{class:`${h.value}-buttons`},[F?L?L(j):p(Lt,j,{default:()=>[_||x.value.cancelText]}):null,H?H(Y):p(Im,{buttonProps:m(m({size:"small"},cf(B)),E),actionFn:d,close:c,prefixCls:S.value,quitOnNullishReturnValue:!0,emitEvent:!0},{default:()=>[N||x.value.okText]})])])};return()=>{var O;const{placement:w,overlayClassName:I,trigger:T="click"}=e,M=foe(e,["placement","overlayClassName","trigger"]),E=tt(M,["title","content","cancelText","okText","onUpdate:open","onConfirm","onCancel","prefixCls"]),A=le(h.value,I);return $(p(Eb,D(D(D({},E),i),{},{trigger:T,placement:w,onOpenChange:v,open:a.value,overlayClassName:A,transitionName:_n(y.value,"zoom-big",e.transitionName),ref:l,"data-popover-inject":!0}),{default:()=>[vD(((O=n.default)===null||O===void 0?void 0:O.call(n))||[],{onKeydown:R=>{g(R)}},!1)],content:C}))}}}),hoe=It(goe),voe=["normal","exception","active","success"],ug=()=>({prefixCls:String,type:Ne(),percent:Number,format:ve(),status:Ne(),showInfo:$e(),strokeWidth:Number,strokeLinecap:Ne(),strokeColor:yt(),trailColor:String,width:Number,success:De(),gapDegree:Number,gapPosition:Ne(),size:Fe([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:Ne()});function hl(e){return!e||e<0?0:e>100?100:e}function Nf(e){let{success:t,successPercent:n}=e,o=n;return t&&"progress"in t&&(Ct(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),o=t.progress),t&&"percent"in t&&(o=t.percent),o}function moe(e){let{percent:t,success:n,successPercent:o}=e;const r=hl(Nf({success:n,successPercent:o}));return[r,hl(hl(t)-r)]}function boe(e){let{success:t={},strokeColor:n}=e;const{strokeColor:o}=t;return[o||da.green,n||null]}const dg=(e,t,n)=>{var o,r,i,l;let a=-1,s=-1;if(t==="step"){const u=n.steps,c=n.strokeWidth;typeof e=="string"||typeof e>"u"?(a=e==="small"?2:14,s=c??8):typeof e=="number"?[a,s]=[e,e]:[a=14,s=8]=e,a*=u}else if(t==="line"){const u=n?.strokeWidth;typeof e=="string"||typeof e>"u"?s=u||(e==="small"?6:8):typeof e=="number"?[a,s]=[e,e]:[a=-1,s=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[a,s]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[a,s]=[e,e]:(a=(r=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&r!==void 0?r:120,s=(l=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&l!==void 0?l:120));return{width:a,height:s}};var yoe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rm(m({},ug()),{strokeColor:yt(),direction:Ne()}),$oe=e=>{let t=[];return Object.keys(e).forEach(n=>{const o=parseFloat(n.replace(/%/g,""));isNaN(o)||t.push({key:o,value:e[n]})}),t=t.sort((n,o)=>n.key-o.key),t.map(n=>{let{key:o,value:r}=n;return`${r} ${o}%`}).join(", ")},Coe=(e,t)=>{const{from:n=da.blue,to:o=da.blue,direction:r=t==="rtl"?"to left":"to right"}=e,i=yoe(e,["from","to","direction"]);if(Object.keys(i).length!==0){const l=$oe(i);return{backgroundImage:`linear-gradient(${r}, ${l})`}}return{backgroundImage:`linear-gradient(${r}, ${n}, ${o})`}},xoe=oe({compatConfig:{MODE:3},name:"ProgressLine",inheritAttrs:!1,props:Soe(),setup(e,t){let{slots:n,attrs:o}=t;const r=P(()=>{const{strokeColor:g,direction:v}=e;return g&&typeof g!="string"?Coe(g,v):{backgroundColor:g}}),i=P(()=>e.strokeLinecap==="square"||e.strokeLinecap==="butt"?0:void 0),l=P(()=>e.trailColor?{backgroundColor:e.trailColor}:void 0),a=P(()=>{var g;return(g=e.size)!==null&&g!==void 0?g:[-1,e.strokeWidth||(e.size==="small"?6:8)]}),s=P(()=>dg(a.value,"line",{strokeWidth:e.strokeWidth})),u=P(()=>{const{percent:g}=e;return m({width:`${hl(g)}%`,height:`${s.value.height}px`,borderRadius:i.value},r.value)}),c=P(()=>Nf(e)),d=P(()=>{const{success:g}=e;return{width:`${hl(c.value)}%`,height:`${s.value.height}px`,borderRadius:i.value,backgroundColor:g?.strokeColor}}),f={width:s.value.width<0?"100%":s.value.width,height:`${s.value.height}px`};return()=>{var g;return p(Ve,null,[p("div",D(D({},o),{},{class:[`${e.prefixCls}-outer`,o.class],style:[o.style,f]}),[p("div",{class:`${e.prefixCls}-inner`,style:l.value},[p("div",{class:`${e.prefixCls}-bg`,style:u.value},null),c.value!==void 0?p("div",{class:`${e.prefixCls}-success-bg`,style:d.value},null):null])]),(g=n.default)===null||g===void 0?void 0:g.call(n)])}}}),woe={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},Ooe=e=>{const t=re(null);return An(()=>{const n=Date.now();let o=!1;e.value.forEach(r=>{const i=r?.$el||r;if(!i)return;o=!0;const l=i.style;l.transitionDuration=".3s, .3s, .3s, .06s",t.value&&n-t.value<100&&(l.transitionDuration="0s, 0s")}),o&&(t.value=Date.now())}),e},Poe={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String};var Ioe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r4&&arguments[4]!==void 0?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0;const l=50-o/2;let a=0,s=-l,u=0,c=-2*l;switch(i){case"left":a=-l,s=0,u=2*l,c=0;break;case"right":a=l,s=0,u=-2*l,c=0;break;case"bottom":s=l,c=2*l;break}const d=`M 50,50 m ${a},${s} + `]:{display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,color:e.colorText,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize}px`,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:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:m({},Wr(e)),[`&: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:`${e.controlHeight}px`,verticalAlign:"top",input:m(m({},kl(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},Jte=e=>{const{componentCls:t}=e;return{[`${t}-item`]:m(m({display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,marginInlineEnd:e.marginXS,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},Kr(e)),{"&-active":{fontWeight:e.paginationFontWeightActive,backgroundColor:e.paginationItemBgActive,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},ene=e=>{const{componentCls:t}=e;return{[t]:m(m(m(m(m(m(m(m({},Ue(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.paginationItemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.paginationItemSize-2}px`,verticalAlign:"middle"}}),Jte(e)),Qte(e)),Zte(e)),qte(e)),Yte(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"}}},tne=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled`]:{"&, &: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.paginationItemDisabledBgActive}},[`${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}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.paginationItemBg},[`${t}-item-link`]:{backgroundColor:e.paginationItemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.paginationItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},nne=Ke("Pagination",e=>{const t=ke(e,{paginationItemSize:e.controlHeight,paginationFontFamily:e.fontFamily,paginationItemBg:e.colorBgContainer,paginationItemBgActive:e.colorBgContainer,paginationFontWeightActive:e.fontWeightStrong,paginationItemSizeSM:e.controlHeightSM,paginationItemInputBg:e.colorBgContainer,paginationMiniOptionsSizeChangerTop:0,paginationItemDisabledBgActive:e.controlItemBgActiveDisabled,paginationItemDisabledColorActive:e.colorTextDisabled,paginationItemLinkBg:e.colorBgContainer,inputOutlineOffset:"0 0",paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:e.controlHeightLG*1.1,paginationItemPaddingInline:e.marginXXS*1.5,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Fl(e));return[ene(t),e.wireframe&&tne(t)]});var one=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({total:Number,defaultCurrent:Number,disabled:$e(),current:Number,defaultPageSize:Number,pageSize:Number,hideOnSinglePage:$e(),showSizeChanger:$e(),pageSizeOptions:lt(),buildOptionText:ve(),showQuickJumper:Fe([Boolean,Object]),showTotal:ve(),size:Ne(),simple:$e(),locale:Object,prefixCls:String,selectPrefixCls:String,totalBoundaryShowSizeChanger:Number,selectComponentClass:String,itemRender:ve(),role:String,responsive:Boolean,showLessItems:$e(),onChange:ve(),onShowSizeChange:ve(),"onUpdate:current":ve(),"onUpdate:pageSize":ve()}),ine=oe({compatConfig:{MODE:3},name:"APagination",inheritAttrs:!1,props:rne(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,configProvider:i,direction:l,size:a}=Te("pagination",e),[s,u]=nne(r),c=P(()=>i.getPrefixCls("select",e.selectPrefixCls)),d=Ua(),[f]=Do("Pagination",EO,ze(e,"locale")),g=v=>{const h=p("span",{class:`${v}-item-ellipsis`},[Ft("•••")]),b=p("button",{class:`${v}-item-link`,type:"button",tabindex:-1},[l.value==="rtl"?p(ho,null,null):p(mr,null,null)]),y=p("button",{class:`${v}-item-link`,type:"button",tabindex:-1},[l.value==="rtl"?p(mr,null,null):p(ho,null,null)]),S=p("a",{rel:"nofollow",class:`${v}-item-link`},[p("div",{class:`${v}-item-container`},[l.value==="rtl"?p(Rf,{class:`${v}-item-link-icon`},null):p(Af,{class:`${v}-item-link-icon`},null),h])]),$=p("a",{rel:"nofollow",class:`${v}-item-link`},[p("div",{class:`${v}-item-container`},[l.value==="rtl"?p(Af,{class:`${v}-item-link-icon`},null):p(Rf,{class:`${v}-item-link-icon`},null),h])]);return{prevIcon:b,nextIcon:y,jumpPrevIcon:S,jumpNextIcon:$}};return()=>{var v;const{itemRender:h=n.itemRender,buildOptionText:b=n.buildOptionText,selectComponentClass:y,responsive:S}=e,$=one(e,["itemRender","buildOptionText","selectComponentClass","responsive"]),x=a.value==="small"||!!(!((v=d.value)===null||v===void 0)&&v.xs&&!a.value&&S),C=m(m(m(m(m({},$),g(r.value)),{prefixCls:r.value,selectPrefixCls:c.value,selectComponentClass:y||(x?Hte:jte),locale:f.value,buildOptionText:b}),o),{class:le({[`${r.value}-mini`]:x,[`${r.value}-rtl`]:l.value==="rtl"},o.class,u.value),itemRender:h});return s(p(Ute,C,null))}}}),cg=It(ine),lne=()=>({avatar:W.any,description:W.any,prefixCls:String,title:W.any}),H5=oe({compatConfig:{MODE:3},name:"AListItemMeta",props:lne(),displayName:"AListItemMeta",__ANT_LIST_ITEM_META:!0,slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=Te("list",e);return()=>{var r,i,l,a,s,u;const c=`${o.value}-item-meta`,d=(r=e.title)!==null&&r!==void 0?r:(i=n.title)===null||i===void 0?void 0:i.call(n),f=(l=e.description)!==null&&l!==void 0?l:(a=n.description)===null||a===void 0?void 0:a.call(n),g=(s=e.avatar)!==null&&s!==void 0?s:(u=n.avatar)===null||u===void 0?void 0:u.call(n),v=p("div",{class:`${o.value}-item-meta-content`},[d&&p("h4",{class:`${o.value}-item-meta-title`},[d]),f&&p("div",{class:`${o.value}-item-meta-description`},[f])]);return p("div",{class:c},[g&&p("div",{class:`${o.value}-item-meta-avatar`},[g]),(d||f)&&v])}}}),j5=Symbol("ListContextKey");var ane=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,extra:W.any,actions:W.array,grid:Object,colStyle:{type:Object,default:void 0}}),V5=oe({compatConfig:{MODE:3},name:"AListItem",inheritAttrs:!1,Meta:H5,props:sne(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{itemLayout:r,grid:i}=He(j5,{grid:re(),itemLayout:re()}),{prefixCls:l}=Te("list",e),a=()=>{var u;const c=((u=n.default)===null||u===void 0?void 0:u.call(n))||[];let d;return c.forEach(f=>{lA(f)&&!Oc(f)&&(d=!0)}),d&&c.length>1},s=()=>{var u,c;const d=(u=e.extra)!==null&&u!==void 0?u:(c=n.extra)===null||c===void 0?void 0:c.call(n);return r.value==="vertical"?!!d:!a()};return()=>{var u,c,d,f,g;const{class:v}=o,h=ane(o,["class"]),b=l.value,y=(u=e.extra)!==null&&u!==void 0?u:(c=n.extra)===null||c===void 0?void 0:c.call(n),S=(d=n.default)===null||d===void 0?void 0:d.call(n);let $=(f=e.actions)!==null&&f!==void 0?f:bt((g=n.actions)===null||g===void 0?void 0:g.call(n));$=$&&!Array.isArray($)?[$]:$;const x=$&&$.length>0&&p("ul",{class:`${b}-item-action`,key:"actions"},[$.map((w,I)=>p("li",{key:`${b}-item-action-${I}`},[w,I!==$.length-1&&p("em",{class:`${b}-item-action-split`},null)]))]),C=i.value?"div":"li",O=p(C,D(D({},h),{},{class:le(`${b}-item`,{[`${b}-item-no-flex`]:!s()},v)}),{default:()=>[r.value==="vertical"&&y?[p("div",{class:`${b}-item-main`,key:"content"},[S,x]),p("div",{class:`${b}-item-extra`,key:"extra"},[y])]:[S,x,ut(y,{key:"extra"})]]});return i.value?p(tg,{flex:1,style:e.colStyle},{default:()=>[O]}):O}}}),cne=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:o,margin:r,padding:i,listItemPaddingSM:l,marginLG:a,borderRadiusLG:s}=e;return{[`${t}`]:{border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:s,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:o},[`${n}-pagination`]:{margin:`${r}px ${a}px`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:l}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:`${i}px ${o}px`}}}},une=e=>{const{componentCls:t,screenSM:n,screenMD:o,marginLG:r,marginSM:i,margin:l}=e;return{[`@media screen and (max-width:${o})`]:{[`${t}`]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:r}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:r}}}},[`@media screen and (max-width: ${n})`]:{[`${t}`]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${l}px`}}}}}},dne=e=>{const{componentCls:t,antCls:n,controlHeight:o,minHeight:r,paddingSM:i,marginLG:l,padding:a,listItemPadding:s,colorPrimary:u,listItemPaddingSM:c,listItemPaddingLG:d,paddingXS:f,margin:g,colorText:v,colorTextDescription:h,motionDurationSlow:b,lineWidth:y}=e;return{[`${t}`]:m(m({},Ue(e)),{position:"relative","*":{outline:"none"},[`${t}-header, ${t}-footer`]:{background:"transparent",paddingBlock:i},[`${t}-pagination`]:{marginBlockStart:l,textAlign:"end",[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:r,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:s,color:v,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:a},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:v},[`${t}-item-meta-title`]:{marginBottom:e.marginXXS,color:v,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:v,transition:`all ${b}`,"&:hover":{color:u}}},[`${t}-item-meta-description`]:{color:h,fontSize:e.fontSize,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${f}px`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:y,height:Math.ceil(e.fontSize*e.lineHeight)-e.marginXXS*2,transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${a}px 0`,color:h,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:a,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:g,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:l},[`${t}-item-meta`]:{marginBlockEnd:a,[`${t}-item-meta-title`]:{marginBlockEnd:i,color:v,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:a,marginInlineStart:"auto","> li":{padding:`0 ${a}px`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:o},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:c},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},fne=Ke("List",e=>{const t=ke(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG,listItemPadding:`${e.paddingContentVertical}px ${e.paddingContentHorizontalLG}px`,listItemPaddingSM:`${e.paddingContentVerticalSM}px ${e.paddingContentHorizontal}px`,listItemPaddingLG:`${e.paddingContentVerticalLG}px ${e.paddingContentHorizontalLG}px`});return[dne(t),cne(t),une(t)]},{contentWidth:220}),pne=()=>({bordered:$e(),dataSource:lt(),extra:Pn(),grid:De(),itemLayout:String,loading:Fe([Boolean,Object]),loadMore:Pn(),pagination:Fe([Boolean,Object]),prefixCls:String,rowKey:Fe([String,Number,Function]),renderItem:ve(),size:String,split:$e(),header:Pn(),footer:Pn(),locale:De()}),ai=oe({compatConfig:{MODE:3},name:"AList",inheritAttrs:!1,Item:V5,props:Ze(pne(),{dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;var r,i;Xe(j5,{grid:ze(e,"grid"),itemLayout:ze(e,"itemLayout")});const l={current:1,total:0},{prefixCls:a,direction:s,renderEmpty:u}=Te("list",e),[c,d]=fne(a),f=P(()=>e.pagination&&typeof e.pagination=="object"?e.pagination:{}),g=re((r=f.value.defaultCurrent)!==null&&r!==void 0?r:1),v=re((i=f.value.defaultPageSize)!==null&&i!==void 0?i:10);ye(f,()=>{"current"in f.value&&(g.value=f.value.current),"pageSize"in f.value&&(v.value=f.value.pageSize)});const h=[],b=R=>(z,M)=>{g.value=z,v.value=M,f.value[R]&&f.value[R](z,M)},y=b("onChange"),S=b("onShowSizeChange"),$=P(()=>typeof e.loading=="boolean"?{spinning:e.loading}:e.loading),x=P(()=>$.value&&$.value.spinning),C=P(()=>{let R="";switch(e.size){case"large":R="lg";break;case"small":R="sm";break}return R}),O=P(()=>({[`${a.value}`]:!0,[`${a.value}-vertical`]:e.itemLayout==="vertical",[`${a.value}-${C.value}`]:C.value,[`${a.value}-split`]:e.split,[`${a.value}-bordered`]:e.bordered,[`${a.value}-loading`]:x.value,[`${a.value}-grid`]:!!e.grid,[`${a.value}-rtl`]:s.value==="rtl"})),w=P(()=>{const R=m(m(m({},l),{total:e.dataSource.length,current:g.value,pageSize:v.value}),e.pagination||{}),z=Math.ceil(R.total/R.pageSize);return R.current>z&&(R.current=z),R}),I=P(()=>{let R=[...e.dataSource];return e.pagination&&e.dataSource.length>(w.value.current-1)*w.value.pageSize&&(R=[...e.dataSource].splice((w.value.current-1)*w.value.pageSize,w.value.pageSize)),R}),T=Ua(),_=io(()=>{for(let R=0;R{if(!e.grid)return;const R=_.value&&e.grid[_.value]?e.grid[_.value]:e.grid.column;if(R)return{width:`${100/R}%`,maxWidth:`${100/R}%`}}),A=(R,z)=>{var M;const N=(M=e.renderItem)!==null&&M!==void 0?M:n.renderItem;if(!N)return null;let B;const k=typeof e.rowKey;return k==="function"?B=e.rowKey(R):k==="string"||k==="number"?B=R[e.rowKey]:B=R.key,B||(B=`list-item-${z}`),h[z]=B,N({item:R,index:z})};return()=>{var R,z,M,N,B,k,F,L;const H=(R=e.loadMore)!==null&&R!==void 0?R:(z=n.loadMore)===null||z===void 0?void 0:z.call(n),j=(M=e.footer)!==null&&M!==void 0?M:(N=n.footer)===null||N===void 0?void 0:N.call(n),Y=(B=e.header)!==null&&B!==void 0?B:(k=n.header)===null||k===void 0?void 0:k.call(n),Q=bt((F=n.default)===null||F===void 0?void 0:F.call(n)),U=!!(H||e.pagination||j),ee=le(m(m({},O.value),{[`${a.value}-something-after-last-item`]:U}),o.class,d.value),X=e.pagination?p("div",{class:`${a.value}-pagination`},[p(cg,D(D({},w.value),{},{onChange:y,onShowSizeChange:S}),null)]):null;let J=x.value&&p("div",{style:{minHeight:"53px"}},null);if(I.value.length>0){h.length=0;const G=I.value.map((V,K)=>A(V,K)),q=G.map((V,K)=>p("div",{key:h[K],style:E.value},[V]));J=e.grid?p($y,{gutter:e.grid.gutter},{default:()=>[q]}):p("ul",{class:`${a.value}-items`},[G])}else!Q.length&&!x.value&&(J=p("div",{class:`${a.value}-empty-text`},[((L=e.locale)===null||L===void 0?void 0:L.emptyText)||u("List")]));const Z=w.value.position||"bottom";return c(p("div",D(D({},o),{},{class:ee}),[(Z==="top"||Z==="both")&&X,Y&&p("div",{class:`${a.value}-header`},[Y]),p(gr,$.value,{default:()=>[J,Q]}),j&&p("div",{class:`${a.value}-footer`},[j]),H||(Z==="bottom"||Z==="both")&&X]))}}});ai.install=function(e){return e.component(ai.name,ai),e.component(ai.Item.name,ai.Item),e.component(ai.Item.Meta.name,ai.Item.Meta),e};function gne(e){const{selectionStart:t}=e;return e.value.slice(0,t)}function hne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return(Array.isArray(t)?t:[t]).reduce((o,r)=>{const i=e.lastIndexOf(r);return i>o.location?{location:i,prefix:r}:o},{location:-1,prefix:""})}function Lw(e){return(e||"").toLowerCase()}function vne(e,t,n){const o=e[0];if(!o||o===n)return e;let r=e;const i=t.length;for(let l=0;l[]}},setup(e,t){let{slots:n}=t;const{activeIndex:o,setActiveIndex:r,selectOption:i,onFocus:l=$ne,loading:a}=He(W5,{activeIndex:ne(),loading:ne(!1)});let s;const u=c=>{clearTimeout(s),s=setTimeout(()=>{l(c)})};return Qe(()=>{clearTimeout(s)}),()=>{var c;const{prefixCls:d,options:f}=e,g=f[o.value]||{};return p(Vt,{prefixCls:`${d}-menu`,activeKey:g.value,onSelect:v=>{let{key:h}=v;const b=f.find(y=>{let{value:S}=y;return S===h});i(b)},onMousedown:u},{default:()=>[!a.value&&f.map((v,h)=>{var b,y;const{value:S,disabled:$,label:x=v.value,class:C,style:O}=v;return p(pr,{key:S,disabled:$,onMouseenter:()=>{r(h)},class:C,style:O},{default:()=>[(y=(b=n.option)===null||b===void 0?void 0:b.call(n,v))!==null&&y!==void 0?y:typeof x=="function"?x(v):x]})}),!a.value&&f.length===0?p(pr,{key:"notFoundContent",disabled:!0},{default:()=>[(c=n.notFoundContent)===null||c===void 0?void 0:c.call(n)]}):null,a.value&&p(pr,{key:"loading",disabled:!0},{default:()=>[p(gr,{size:"small"},null)]})]})}}}),xne={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}},wne=oe({compatConfig:{MODE:3},name:"KeywordTrigger",props:{loading:{type:Boolean,default:void 0},options:{type:Array,default:()=>[]},prefixCls:String,placement:String,visible:{type:Boolean,default:void 0},transitionName:String,getPopupContainer:Function,direction:String,dropdownClassName:String},setup(e,t){let{slots:n}=t;const o=()=>`${e.prefixCls}-dropdown`,r=()=>{const{options:l}=e;return p(Cne,{prefixCls:o(),options:l},{notFoundContent:n.notFoundContent,option:n.option})},i=P(()=>{const{placement:l,direction:a}=e;let s="topRight";return a==="rtl"?s=l==="top"?"topLeft":"bottomLeft":s=l==="top"?"topRight":"bottomRight",s});return()=>{const{visible:l,transitionName:a,getPopupContainer:s}=e;return p(Rl,{prefixCls:o(),popupVisible:l,popup:r(),popupClassName:e.dropdownClassName,popupPlacement:i.value,popupTransitionName:a,builtinPlacements:xne,getPopupContainer:s},{default:n.default})}}}),One=Sn("top","bottom"),K5={autofocus:{type:Boolean,default:void 0},prefix:W.oneOfType([W.string,W.arrayOf(W.string)]),prefixCls:String,value:String,disabled:{type:Boolean,default:void 0},split:String,transitionName:String,placement:W.oneOf(One),character:W.any,characterRender:Function,filterOption:{type:[Boolean,Function]},validateSearch:Function,getPopupContainer:{type:Function},options:lt(),loading:{type:Boolean,default:void 0},rows:[Number,String],direction:{type:String}},G5=m(m({},K5),{dropdownClassName:String}),X5={prefix:"@",split:" ",rows:1,validateSearch:yne,filterOption:()=>Sne};Ze(G5,X5);var zw=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{u.value=e.value});const c=E=>{n("change",E)},d=E=>{let{target:{value:A}}=E;c(A)},f=(E,A,R)=>{m(u,{measuring:!0,measureText:E,measurePrefix:A,measureLocation:R,activeIndex:0})},g=E=>{m(u,{measuring:!1,measureLocation:0,measureText:null}),E?.()},v=E=>{const{which:A}=E;if(u.measuring){if(A===Pe.UP||A===Pe.DOWN){const R=I.value.length,z=A===Pe.UP?-1:1,M=(u.activeIndex+z+R)%R;u.activeIndex=M,E.preventDefault()}else if(A===Pe.ESC)g();else if(A===Pe.ENTER){if(E.preventDefault(),!I.value.length){g();return}const R=I.value[u.activeIndex];C(R)}}},h=E=>{const{key:A,which:R}=E,{measureText:z,measuring:M}=u,{prefix:N,validateSearch:B}=e,k=E.target;if(k.composing)return;const F=gne(k),{location:L,prefix:H}=hne(F,N);if([Pe.ESC,Pe.UP,Pe.DOWN,Pe.ENTER].indexOf(R)===-1)if(L!==-1){const j=F.slice(L+H.length),Y=B(j,e),Q=!!w(j).length;Y?(A===H||A==="Shift"||M||j!==z&&Q)&&f(j,H,L):M&&g(),Y&&n("search",j,H)}else M&&g()},b=E=>{u.measuring||n("pressenter",E)},y=E=>{$(E)},S=E=>{x(E)},$=E=>{clearTimeout(s.value);const{isFocus:A}=u;!A&&E&&n("focus",E),u.isFocus=!0},x=E=>{s.value=setTimeout(()=>{u.isFocus=!1,g(),n("blur",E)},100)},C=E=>{const{split:A}=e,{value:R=""}=E,{text:z,selectionLocation:M}=mne(u.value,{measureLocation:u.measureLocation,targetText:R,prefix:u.measurePrefix,selectionStart:a.value.getSelectionStart(),split:A});c(z),g(()=>{bne(a.value.input,M)}),n("select",E,u.measurePrefix)},O=E=>{u.activeIndex=E},w=E=>{const A=E||u.measureText||"",{filterOption:R}=e;return e.options.filter(M=>R?R(A,M):!0)},I=P(()=>w());return r({blur:()=>{a.value.blur()},focus:()=>{a.value.focus()}}),Xe(W5,{activeIndex:ze(u,"activeIndex"),setActiveIndex:O,selectOption:C,onFocus:$,onBlur:x,loading:ze(e,"loading")}),An(()=>{ot(()=>{u.measuring&&(l.value.scrollTop=a.value.getScrollTop())})}),()=>{const{measureLocation:E,measurePrefix:A,measuring:R}=u,{prefixCls:z,placement:M,transitionName:N,getPopupContainer:B,direction:k}=e,F=zw(e,["prefixCls","placement","transitionName","getPopupContainer","direction"]),{class:L,style:H}=o,j=zw(o,["class","style"]),Y=tt(F,["value","prefix","split","validateSearch","filterOption","options","loading"]),Q=m(m(m({},Y),j),{onChange:Hw,onSelect:Hw,value:u.value,onInput:d,onBlur:S,onKeydown:v,onKeyup:h,onFocus:y,onPressenter:b});return p("div",{class:le(z,L),style:H},[p(Ha,D(D({},Q),{},{ref:a,tag:"textarea"}),null),R&&p("div",{ref:l,class:`${z}-measure`},[u.value.slice(0,E),p(wne,{prefixCls:z,transitionName:N,dropdownClassName:e.dropdownClassName,placement:M,options:R?I.value:[],visible:!0,direction:k,getPopupContainer:B},{default:()=>[p("span",null,[A])],notFoundContent:i.notFoundContent,option:i.option}),u.value.slice(E+A.length)])])}}}),Ine={value:String,disabled:Boolean,payload:De()},U5=m(m({},Ine),{label:yt([])}),Y5={name:"Option",props:U5,render(e,t){let{slots:n}=t;var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}};m({compatConfig:{MODE:3}},Y5);const Tne=e=>{const{componentCls:t,colorTextDisabled:n,controlItemBgHover:o,controlPaddingHorizontal:r,colorText:i,motionDurationSlow:l,lineHeight:a,controlHeight:s,inputPaddingHorizontal:u,inputPaddingVertical:c,fontSize:d,colorBgElevated:f,borderRadiusLG:g,boxShadowSecondary:v}=e,h=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{[t]:m(m(m(m(m({},Ue(e)),kl(e)),{position:"relative",display:"inline-block",height:"auto",padding:0,overflow:"hidden",lineHeight:a,whiteSpace:"pre-wrap",verticalAlign:"bottom"}),Bc(e,t)),{"&-disabled":{"> textarea":m({},ly(e))},"&-focused":m({},Pi(e)),[`&-affix-wrapper ${t}-suffix`]:{position:"absolute",top:0,insetInlineEnd:u,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},[`> textarea, ${t}-measure`]:{color:i,boxSizing:"border-box",minHeight:s-2,margin:0,padding:`${c}px ${u}px`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":m({width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"inherit"},iy(e.colorTextPlaceholder)),[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}},"&-dropdown":m(m({},Ue(e)),{position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:d,fontVariant:"initial",backgroundColor:f,borderRadius:g,outline:"none",boxShadow:v,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,marginBottom:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":m(m({},Gt),{position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${h}px ${r}px`,color:i,fontWeight:"normal",lineHeight:a,cursor:"pointer",transition:`background ${l} ease`,"&:hover":{backgroundColor:o},"&:first-child":{borderStartStartRadius:g,borderStartEndRadius:g,borderEndStartRadius:0,borderEndEndRadius:0},"&:last-child":{borderStartStartRadius:0,borderStartEndRadius:0,borderEndStartRadius:g,borderEndEndRadius:g},"&-disabled":{color:n,cursor:"not-allowed","&:hover":{color:n,backgroundColor:o,cursor:"not-allowed"}},"&-selected":{color:i,fontWeight:e.fontWeightStrong,backgroundColor:o},"&-active":{backgroundColor:o}})}})})}},Ene=Ke("Mentions",e=>{const t=Fl(e);return[Tne(t)]},e=>({dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50}));var jw=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{prefix:n="@",split:o=" "}=t,r=Array.isArray(n)?n:[n];return e.split(o).map(function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=null;return r.some(a=>i.slice(0,a.length)===a?(l=a,!0):!1),l!==null?{prefix:l,value:i.slice(l.length)}:null}).filter(i=>!!i&&!!i.value)},Ane=()=>m(m({},K5),{loading:{type:Boolean,default:void 0},onFocus:{type:Function},onBlur:{type:Function},onSelect:{type:Function},onChange:{type:Function},onPressenter:{type:Function},"onUpdate:value":{type:Function},notFoundContent:W.any,defaultValue:String,id:String,status:String}),Lh=oe({compatConfig:{MODE:3},name:"AMentions",inheritAttrs:!1,props:Ane(),slots:Object,setup(e,t){let{slots:n,emit:o,attrs:r,expose:i}=t;var l,a;const{prefixCls:s,renderEmpty:u,direction:c}=Te("mentions",e),[d,f]=Ene(s),g=ne(!1),v=ne(null),h=ne((a=(l=e.value)!==null&&l!==void 0?l:e.defaultValue)!==null&&a!==void 0?a:""),b=Qt(),y=dn.useInject(),S=P(()=>Qo(y.status,e.status));Rb({prefixCls:P(()=>`${s.value}-menu`),mode:P(()=>"vertical"),selectable:P(()=>!1),onClick:()=>{},validator:A=>{let{mode:R}=A}}),ye(()=>e.value,A=>{h.value=A});const $=A=>{g.value=!0,o("focus",A)},x=A=>{g.value=!1,o("blur",A),b.onFieldBlur()},C=function(){for(var A=arguments.length,R=new Array(A),z=0;z{e.value===void 0&&(h.value=A),o("update:value",A),o("change",A),b.onFieldChange()},w=()=>{const A=e.notFoundContent;return A!==void 0?A:n.notFoundContent?n.notFoundContent():u("Select")},I=()=>{var A;return bt(((A=n.default)===null||A===void 0?void 0:A.call(n))||[]).map(R=>{var z,M;return m(m({},bO(R)),{label:(M=(z=R.children)===null||z===void 0?void 0:z.default)===null||M===void 0?void 0:M.call(z)})})};i({focus:()=>{v.value.focus()},blur:()=>{v.value.blur()}});const E=P(()=>e.loading?Mne:e.filterOption);return()=>{const{disabled:A,getPopupContainer:R,rows:z=1,id:M=b.id.value}=e,N=jw(e,["disabled","getPopupContainer","rows","id"]),{hasFeedback:B,feedbackIcon:k}=y,{class:F}=r,L=jw(r,["class"]),H=tt(N,["defaultValue","onUpdate:value","prefixCls"]),j=le({[`${s.value}-disabled`]:A,[`${s.value}-focused`]:g.value,[`${s.value}-rtl`]:c.value==="rtl"},Tn(s.value,S.value),!B&&F,f.value),Y=m(m(m(m({prefixCls:s.value},H),{disabled:A,direction:c.value,filterOption:E.value,getPopupContainer:R,options:e.loading?[{value:"ANTDV_SEARCHING",disabled:!0,label:p(gr,{size:"small"},null)}]:e.options||I(),class:j}),L),{rows:z,onChange:O,onSelect:C,onFocus:$,onBlur:x,ref:v,value:h.value,id:M}),Q=p(Pne,D(D({},Y),{},{dropdownClassName:f.value}),{notFoundContent:w,option:n.option});return d(B?p("div",{class:le(`${s.value}-affix-wrapper`,Tn(`${s.value}-affix-wrapper`,S.value,B),F,f.value)},[Q,p("span",{class:`${s.value}-suffix`},[k])]):Q)}}}),md=oe(m(m({compatConfig:{MODE:3}},Y5),{name:"AMentionsOption",props:U5})),Rne=m(Lh,{Option:md,getMentions:_ne,install:e=>(e.component(Lh.name,Lh),e.component(md.name,md),e)});var Dne=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{Pm={x:e.pageX,y:e.pageY},setTimeout(()=>Pm=null,100)};C8()&&Et(document.documentElement,"click",Nne,!0);const Bne=()=>({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:W.any,closable:{type:Boolean,default:void 0},closeIcon:W.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:W.any,okText:W.any,okType:String,cancelText:W.any,icon:W.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:De(),cancelButtonProps:De(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:De(),maskStyle:De(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:De()}),Mt=oe({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:Ze(Bne(),{width:520,confirmLoading:!1,okType:"primary"}),setup(e,t){let{emit:n,slots:o,attrs:r}=t;const[i]=Do("Modal"),{prefixCls:l,rootPrefixCls:a,direction:s,getPopupContainer:u}=Te("modal",e),[c,d]=Kee(l);fo(e.visible===void 0);const f=h=>{n("update:visible",!1),n("update:open",!1),n("cancel",h),n("change",!1)},g=h=>{n("ok",h)},v=()=>{var h,b;const{okText:y=(h=o.okText)===null||h===void 0?void 0:h.call(o),okType:S,cancelText:$=(b=o.cancelText)===null||b===void 0?void 0:b.call(o),confirmLoading:x}=e;return p(Ve,null,[p(Lt,D({onClick:f},e.cancelButtonProps),{default:()=>[$||i.value.cancelText]}),p(Lt,D(D({},cf(S)),{},{loading:x,onClick:g},e.okButtonProps),{default:()=>[y||i.value.okText]})])};return()=>{var h,b;const{prefixCls:y,visible:S,open:$,wrapClassName:x,centered:C,getContainer:O,closeIcon:w=(h=o.closeIcon)===null||h===void 0?void 0:h.call(o),focusTriggerAfterClose:I=!0}=e,T=Dne(e,["prefixCls","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),_=le(x,{[`${l.value}-centered`]:!!C,[`${l.value}-wrap-rtl`]:s.value==="rtl"});return c(p(E5,D(D(D({},T),r),{},{rootClassName:d.value,class:le(d.value,r.class),getContainer:O||u?.value,prefixCls:l.value,wrapClassName:_,visible:$??S,onClose:f,focusTriggerAfterClose:I,transitionName:_n(a.value,"zoom",e.transitionName),maskTransitionName:_n(a.value,"fade",e.maskTransitionName),mousePosition:(b=T.mousePosition)!==null&&b!==void 0?b:Pm}),m(m({},o),{footer:o.footer||v,closeIcon:()=>p("span",{class:`${l.value}-close-x`},[w||p(Rn,{class:`${l.value}-close-icon`},null)])})))}}}),q5=()=>{const e=ne(!1);return Qe(()=>{e.value=!0}),e},kne={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:De(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function Vw(e){return!!(e&&e.then)}const Im=oe({compatConfig:{MODE:3},name:"ActionButton",props:kne,setup(e,t){let{slots:n}=t;const o=ne(!1),r=ne(),i=ne(!1);let l;const a=q5();je(()=>{e.autofocus&&(l=setTimeout(()=>{var d,f;return(f=(d=Hn(r.value))===null||d===void 0?void 0:d.focus)===null||f===void 0?void 0:f.call(d)}))}),Qe(()=>{clearTimeout(l)});const s=function(){for(var d,f=arguments.length,g=new Array(f),v=0;v{Vw(d)&&(i.value=!0,d.then(function(){a.value||(i.value=!1),s(...arguments),o.value=!1},f=>(a.value||(i.value=!1),o.value=!1,Promise.reject(f))))},c=d=>{const{actionFn:f}=e;if(o.value)return;if(o.value=!0,!f){s();return}let g;if(e.emitEvent){if(g=f(d),e.quitOnNullishReturnValue&&!Vw(g)){o.value=!1,s(d);return}}else if(f.length)g=f(e.close),o.value=!1;else if(g=f(),!g){s();return}u(g)};return()=>{const{type:d,prefixCls:f,buttonProps:g}=e;return p(Lt,D(D(D({},cf(d)),{},{onClick:c,loading:i.value,prefixCls:f},g),{},{ref:r}),n)}}});function Xl(e){return typeof e=="function"?e():e}const Z5=oe({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","open","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName","confirmPrefixCls","footer"],setup(e,t){let{attrs:n}=t;const[o]=Do("Modal");return()=>{const{icon:r,onCancel:i,onOk:l,close:a,okText:s,closable:u=!1,zIndex:c,afterClose:d,keyboard:f,centered:g,getContainer:v,maskStyle:h,okButtonProps:b,cancelButtonProps:y,okCancel:S,width:$=416,mask:x=!0,maskClosable:C=!1,type:O,open:w,title:I,content:T,direction:_,closeIcon:E,modalRender:A,focusTriggerAfterClose:R,rootPrefixCls:z,bodyStyle:M,wrapClassName:N,footer:B}=e;let k=r;if(!r&&r!==null)switch(O){case"info":k=p(Di,null,null);break;case"success":k=p(Jo,null,null);break;case"error":k=p(Dn,null,null);break;default:k=p(er,null,null)}const F=e.okType||"primary",L=e.prefixCls||"ant-modal",H=`${L}-confirm`,j=n.style||{},Y=S??O==="confirm",Q=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",U=`${L}-confirm`,ee=le(U,`${U}-${e.type}`,{[`${U}-rtl`]:_==="rtl"},n.class),X=o.value,J=Y&&p(Im,{actionFn:i,close:a,autofocus:Q==="cancel",buttonProps:y,prefixCls:`${z}-btn`},{default:()=>[Xl(e.cancelText)||X.cancelText]});return p(Mt,{prefixCls:L,class:ee,wrapClassName:le({[`${U}-centered`]:!!g},N),onCancel:Z=>a?.({triggerCancel:!0},Z),open:w,title:"",footer:"",transitionName:_n(z,"zoom",e.transitionName),maskTransitionName:_n(z,"fade",e.maskTransitionName),mask:x,maskClosable:C,maskStyle:h,style:j,bodyStyle:M,width:$,zIndex:c,afterClose:d,keyboard:f,centered:g,getContainer:v,closable:u,closeIcon:E,modalRender:A,focusTriggerAfterClose:R},{default:()=>[p("div",{class:`${H}-body-wrapper`},[p("div",{class:`${H}-body`},[Xl(k),I===void 0?null:p("span",{class:`${H}-title`},[Xl(I)]),p("div",{class:`${H}-content`},[Xl(T)])]),B!==void 0?Xl(B):p("div",{class:`${H}-btns`},[J,p(Im,{type:F,actionFn:l,close:a,autofocus:Q==="ok",buttonProps:b,prefixCls:`${z}-btn`},{default:()=>[Xl(s)||(Y?X.okText:X.justOkText)]})])])]})}}}),il=[],Vc=e=>{const t=document.createDocumentFragment();let n=m(m({},tt(e,["parentContext","appContext"])),{close:i,open:!0}),o=null;function r(){o&&(Oi(null,t),o=null);for(var u=arguments.length,c=new Array(u),d=0;dg&&g.triggerCancel);e.onCancel&&f&&e.onCancel(()=>{},...c.slice(1));for(let g=0;g{typeof e.afterClose=="function"&&e.afterClose(),r.apply(this,c)}}),n.visible&&delete n.visible,l(n)}function l(u){typeof u=="function"?n=u(n):n=m(m({},n),u),o&&mD(o,n,t)}const a=u=>{const c=vn,d=c.prefixCls,f=u.prefixCls||`${d}-modal`,g=c.iconPrefixCls,v=XZ();return p(gl,D(D({},c),{},{prefixCls:d}),{default:()=>[p(Z5,D(D({},u),{},{rootPrefixCls:d,prefixCls:f,iconPrefixCls:g,locale:v,cancelText:u.cancelText||v.cancelText}),null)]})};function s(u){const c=p(a,m({},u));return c.appContext=e.parentContext||e.appContext||c.appContext,Oi(c,t),c}return o=s(n),il.push(i),{destroy:i,update:l}};function Q5(e){return m(m({},e),{type:"warning"})}function J5(e){return m(m({},e),{type:"info"})}function eT(e){return m(m({},e),{type:"success"})}function tT(e){return m(m({},e),{type:"error"})}function nT(e){return m(m({},e),{type:"confirm"})}const Fne=()=>({config:Object,afterClose:Function,destroyAction:Function,open:Boolean}),Lne=oe({name:"HookModal",inheritAttrs:!1,props:Ze(Fne(),{config:{width:520,okType:"primary"}}),setup(e,t){let{expose:n}=t;var o;const r=P(()=>e.open),i=P(()=>e.config),{direction:l,getPrefixCls:a}=ap(),s=a("modal"),u=a(),c=()=>{var v,h;e?.afterClose(),(h=(v=i.value).afterClose)===null||h===void 0||h.call(v)},d=function(){e.destroyAction(...arguments)};n({destroy:d});const f=(o=i.value.okCancel)!==null&&o!==void 0?o:i.value.type==="confirm",[g]=Do("Modal",Vn.Modal);return()=>p(Z5,D(D({prefixCls:s,rootPrefixCls:u},i.value),{},{close:d,open:r.value,afterClose:c,okText:i.value.okText||(f?g?.value.okText:g?.value.justOkText),direction:i.value.direction||l.value,cancelText:i.value.cancelText||g?.value.cancelText}),null)}});let Ww=0;const zne=oe({name:"ElementsHolder",inheritAttrs:!1,setup(e,t){let{expose:n}=t;const o=ne([]);return n({addModal:i=>(o.value.push(i),o.value=o.value.slice(),()=>{o.value=o.value.filter(l=>l!==i)})}),()=>o.value.map(i=>i())}});function oT(){const e=ne(null),t=ne([]);ye(t,()=>{t.value.length&&([...t.value].forEach(l=>{l()}),t.value=[])},{immediate:!0});const n=i=>function(a){var s;Ww+=1;const u=ne(!0),c=ne(null),d=ne(St(a)),f=ne({});ye(()=>a,$=>{b(m(m({},kt($)?$.value:$),f.value))});const g=function(){u.value=!1;for(var $=arguments.length,x=new Array($),C=0;C<$;C++)x[C]=arguments[C];const O=x.some(w=>w&&w.triggerCancel);d.value.onCancel&&O&&d.value.onCancel(()=>{},...x.slice(1))};let v;const h=()=>p(Lne,{key:`modal-${Ww}`,config:i(d.value),ref:c,open:u.value,destroyAction:g,afterClose:()=>{v?.()}},null);v=(s=e.value)===null||s===void 0?void 0:s.addModal(h),v&&il.push(v);const b=$=>{d.value=m(m({},d.value),$)};return{destroy:()=>{c.value?g():t.value=[...t.value,g]},update:$=>{f.value=$,c.value?b($):t.value=[...t.value,()=>b($)]}}},o=P(()=>({info:n(J5),success:n(eT),error:n(tT),warning:n(Q5),confirm:n(nT)})),r=Symbol("modalHolderKey");return[o.value,()=>p(zne,{key:r,ref:e},null)]}function rT(e){return Vc(Q5(e))}Mt.useModal=oT;Mt.info=function(t){return Vc(J5(t))};Mt.success=function(t){return Vc(eT(t))};Mt.error=function(t){return Vc(tT(t))};Mt.warning=rT;Mt.warn=rT;Mt.confirm=function(t){return Vc(nT(t))};Mt.destroyAll=function(){for(;il.length;){const t=il.pop();t&&t()}};Mt.install=function(e){return e.component(Mt.name,Mt),e};const iT=e=>{const{value:t,formatter:n,precision:o,decimalSeparator:r,groupSeparator:i="",prefixCls:l}=e;let a;if(typeof n=="function")a=n({value:t});else{const s=String(t),u=s.match(/^(-?)(\d*)(\.(\d+))?$/);if(!u)a=s;else{const c=u[1];let d=u[2]||"0",f=u[4]||"";d=d.replace(/\B(?=(\d{3})+(?!\d))/g,i),typeof o=="number"&&(f=f.padEnd(o,"0").slice(0,o>0?o:0)),f&&(f=`${r}${f}`),a=[p("span",{key:"int",class:`${l}-content-value-int`},[c,d]),f&&p("span",{key:"decimal",class:`${l}-content-value-decimal`},[f])]}}return p("span",{class:`${l}-content-value`},[a])};iT.displayName="StatisticNumber";const Hne=e=>{const{componentCls:t,marginXXS:n,padding:o,colorTextDescription:r,statisticTitleFontSize:i,colorTextHeading:l,statisticContentFontSize:a,statisticFontFamily:s}=e;return{[`${t}`]:m(m({},Ue(e)),{[`${t}-title`]:{marginBottom:n,color:r,fontSize:i},[`${t}-skeleton`]:{paddingTop:o},[`${t}-content`]:{color:l,fontSize:a,fontFamily:s,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},jne=Ke("Statistic",e=>{const{fontSizeHeading3:t,fontSize:n,fontFamily:o}=e,r=ke(e,{statisticTitleFontSize:n,statisticContentFontSize:t,statisticFontFamily:o});return[Hne(r)]}),lT=()=>({prefixCls:String,decimalSeparator:String,groupSeparator:String,format:String,value:Fe([Number,String,Object]),valueStyle:{type:Object,default:void 0},valueRender:ve(),formatter:yt(),precision:Number,prefix:Pn(),suffix:Pn(),title:Pn(),loading:$e()}),Rr=oe({compatConfig:{MODE:3},name:"AStatistic",inheritAttrs:!1,props:Ze(lT(),{decimalSeparator:".",groupSeparator:",",loading:!1}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Te("statistic",e),[l,a]=jne(r);return()=>{var s,u,c,d,f,g,v;const{value:h=0,valueStyle:b,valueRender:y}=e,S=r.value,$=(s=e.title)!==null&&s!==void 0?s:(u=n.title)===null||u===void 0?void 0:u.call(n),x=(c=e.prefix)!==null&&c!==void 0?c:(d=n.prefix)===null||d===void 0?void 0:d.call(n),C=(f=e.suffix)!==null&&f!==void 0?f:(g=n.suffix)===null||g===void 0?void 0:g.call(n),O=(v=e.formatter)!==null&&v!==void 0?v:n.formatter;let w=p(iT,D({"data-for-update":Date.now()},m(m({},e),{prefixCls:S,value:h,formatter:O})),null);return y&&(w=y(w)),l(p("div",D(D({},o),{},{class:[S,{[`${S}-rtl`]:i.value==="rtl"},o.class,a.value]}),[$&&p("div",{class:`${S}-title`},[$]),p(wn,{paragraph:!1,loading:e.loading},{default:()=>[p("div",{style:b,class:`${S}-content`},[x&&p("span",{class:`${S}-content-prefix`},[x]),w,C&&p("span",{class:`${S}-content-suffix`},[C])])]})]))}}}),Vne=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function Wne(e,t){let n=e;const o=/\[[^\]]*]/g,r=(t.match(o)||[]).map(s=>s.slice(1,-1)),i=t.replace(o,"[]"),l=Vne.reduce((s,u)=>{let[c,d]=u;if(s.includes(c)){const f=Math.floor(n/d);return n-=f*d,s.replace(new RegExp(`${c}+`,"g"),g=>{const v=g.length;return f.toString().padStart(v,"0")})}return s},i);let a=0;return l.replace(o,()=>{const s=r[a];return a+=1,s})}function Kne(e,t){const{format:n=""}=t,o=new Date(e).getTime(),r=Date.now(),i=Math.max(o-r,0);return Wne(i,n)}const Gne=1e3/30;function zh(e){return new Date(e).getTime()}const Xne=()=>m(m({},lT()),{value:Fe([Number,String,Object]),format:String,onFinish:Function,onChange:Function}),Une=oe({compatConfig:{MODE:3},name:"AStatisticCountdown",props:Ze(Xne(),{format:"HH:mm:ss"}),setup(e,t){let{emit:n,slots:o}=t;const r=re(),i=re(),l=()=>{const{value:d}=e;zh(d)>=Date.now()?a():s()},a=()=>{if(r.value)return;const d=zh(e.value);r.value=setInterval(()=>{i.value.$forceUpdate(),d>Date.now()&&n("change",d-Date.now()),l()},Gne)},s=()=>{const{value:d}=e;r.value&&(clearInterval(r.value),r.value=void 0,zh(d){let{value:f,config:g}=d;const{format:v}=e;return Kne(f,m(m({},g),{format:v}))},c=d=>d;return je(()=>{l()}),An(()=>{l()}),Qe(()=>{s()}),()=>{const d=e.value;return p(Rr,D({ref:i},m(m({},tt(e,["onFinish","onChange"])),{value:d,valueRender:c,formatter:u})),o)}}});Rr.Countdown=Une;Rr.install=function(e){return e.component(Rr.name,Rr),e.component(Rr.Countdown.name,Rr.Countdown),e};const Yne=Rr.Countdown;var qne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};function Kw(e){for(var t=1;t{const{keyCode:g}=f;g===Pe.ENTER&&f.preventDefault()},s=f=>{const{keyCode:g}=f;g===Pe.ENTER&&o("click",f)},u=f=>{o("click",f)},c=()=>{l.value&&l.value.focus()},d=()=>{l.value&&l.value.blur()};return je(()=>{e.autofocus&&c()}),i({focus:c,blur:d}),()=>{var f;const{noStyle:g,disabled:v}=e,h=eoe(e,["noStyle","disabled"]);let b={};return g||(b=m({},toe)),v&&(b.pointerEvents="none"),p("div",D(D(D({role:"button",tabindex:0,ref:l},h),r),{},{onClick:u,onKeydown:a,onKeyup:s,style:m(m({},b),r.style||{})}),[(f=n.default)===null||f===void 0?void 0:f.call(n)])}}}),noe={small:8,middle:16,large:24},ooe=()=>({prefixCls:String,size:{type:[String,Number,Array]},direction:W.oneOf(Sn("horizontal","vertical")).def("horizontal"),align:W.oneOf(Sn("start","end","center","baseline")),wrap:$e()});function roe(e){return typeof e=="string"?noe[e]:e||0}const $a=oe({compatConfig:{MODE:3},name:"ASpace",inheritAttrs:!1,props:ooe(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,space:i,direction:l}=Te("space",e),[a,s]=b6(r),u=w8(),c=P(()=>{var y,S,$;return($=(y=e.size)!==null&&y!==void 0?y:(S=i?.value)===null||S===void 0?void 0:S.size)!==null&&$!==void 0?$:"small"}),d=re(),f=re();ye(c,()=>{[d.value,f.value]=(Array.isArray(c.value)?c.value:[c.value,c.value]).map(y=>roe(y))},{immediate:!0});const g=P(()=>e.align===void 0&&e.direction==="horizontal"?"center":e.align),v=P(()=>le(r.value,s.value,`${r.value}-${e.direction}`,{[`${r.value}-rtl`]:l.value==="rtl",[`${r.value}-align-${g.value}`]:g.value})),h=P(()=>l.value==="rtl"?"marginLeft":"marginRight"),b=P(()=>{const y={};return u.value&&(y.columnGap=`${d.value}px`,y.rowGap=`${f.value}px`),m(m({},y),e.wrap&&{flexWrap:"wrap",marginBottom:`${-f.value}px`})});return()=>{var y,S;const{wrap:$,direction:x="horizontal"}=e,C=(y=n.default)===null||y===void 0?void 0:y.call(n),O=At(C),w=O.length;if(w===0)return null;const I=(S=n.split)===null||S===void 0?void 0:S.call(n),T=`${r.value}-item`,_=d.value,E=w-1;return p("div",D(D({},o),{},{class:[v.value,o.class],style:[b.value,o.style]}),[O.map((A,R)=>{let z=C.indexOf(A);z===-1&&(z=`$$space-${R}`);let M={};return u.value||(x==="vertical"?R{const{componentCls:t,antCls:n}=e;return{[t]:m(m({},Ue(e)),{position:"relative",padding:`${e.pageHeaderPaddingVertical}px ${e.pageHeaderPadding}px`,backgroundColor:e.colorBgContainer,[`&${t}-ghost`]:{backgroundColor:e.pageHeaderGhostBg},"&.has-footer":{paddingBottom:0},[`${t}-back`]:{marginRight:e.marginMD,fontSize:e.fontSizeLG,lineHeight:1,"&-button":m(m({},pp(e)),{color:e.pageHeaderBackColor,cursor:"pointer"})},[`${n}-divider-vertical`]:{height:"14px",margin:`0 ${e.marginSM}`,verticalAlign:"middle"},[`${n}-breadcrumb + &-heading`]:{marginTop:e.marginXS},[`${t}-heading`]:{display:"flex",justifyContent:"space-between","&-left":{display:"flex",alignItems:"center",margin:`${e.marginXS/2}px 0`,overflow:"hidden"},"&-title":m({marginRight:e.marginSM,marginBottom:0,color:e.colorTextHeading,fontWeight:600,fontSize:e.pageHeaderHeadingTitle,lineHeight:`${e.controlHeight}px`},Gt),[`${n}-avatar`]:{marginRight:e.marginSM},"&-sub-title":m({marginRight:e.marginSM,color:e.colorTextDescription,fontSize:e.pageHeaderHeadingSubTitle,lineHeight:e.lineHeight},Gt),"&-extra":{margin:`${e.marginXS/2}px 0`,whiteSpace:"nowrap","> *":{marginLeft:e.marginSM,whiteSpace:"unset"},"> *:first-child":{marginLeft:0}}},[`${t}-content`]:{paddingTop:e.pageHeaderContentPaddingVertical},[`${t}-footer`]:{marginTop:e.marginMD,[`${n}-tabs`]:{[`> ${n}-tabs-nav`]:{margin:0,"&::before":{border:"none"}},[`${n}-tabs-tab`]:{paddingTop:e.paddingXS,paddingBottom:e.paddingXS,fontSize:e.pageHeaderTabFontSize}}},[`${t}-compact ${t}-heading`]:{flexWrap:"wrap"},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},loe=Ke("PageHeader",e=>{const t=ke(e,{pageHeaderPadding:e.paddingLG,pageHeaderPaddingVertical:e.paddingMD,pageHeaderPaddingBreadcrumb:e.paddingSM,pageHeaderContentPaddingVertical:e.paddingSM,pageHeaderBackColor:e.colorTextBase,pageHeaderGhostBg:"transparent",pageHeaderHeadingTitle:e.fontSizeHeading4,pageHeaderHeadingSubTitle:e.fontSize,pageHeaderTabFontSize:e.fontSizeLG});return[ioe(t)]}),aoe=()=>({backIcon:Pn(),prefixCls:String,title:Pn(),subTitle:Pn(),breadcrumb:W.object,tags:Pn(),footer:Pn(),extra:Pn(),avatar:De(),ghost:{type:Boolean,default:void 0},onBack:Function}),soe=oe({compatConfig:{MODE:3},name:"APageHeader",inheritAttrs:!1,props:aoe(),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:i,direction:l,pageHeader:a}=Te("page-header",e),[s,u]=loe(i),c=ne(!1),d=q5(),f=x=>{let{width:C}=x;d.value||(c.value=C<768)},g=P(()=>{var x,C,O;return(O=(x=e.ghost)!==null&&x!==void 0?x:(C=a?.value)===null||C===void 0?void 0:C.ghost)!==null&&O!==void 0?O:!0}),v=()=>{var x,C,O;return(O=(x=e.backIcon)!==null&&x!==void 0?x:(C=o.backIcon)===null||C===void 0?void 0:C.call(o))!==null&&O!==void 0?O:l.value==="rtl"?p(Uy,null,null):p(Xy,null,null)},h=x=>!x||!e.onBack?null:p(Il,{componentName:"PageHeader",children:C=>{let{back:O}=C;return p("div",{class:`${i.value}-back`},[p(Df,{onClick:w=>{n("back",w)},class:`${i.value}-back-button`,"aria-label":O},{default:()=>[x]})])}},null),b=()=>{var x;return e.breadcrumb?p(fl,e.breadcrumb,null):(x=o.breadcrumb)===null||x===void 0?void 0:x.call(o)},y=()=>{var x,C,O,w,I,T,_,E,A;const{avatar:R}=e,z=(x=e.title)!==null&&x!==void 0?x:(C=o.title)===null||C===void 0?void 0:C.call(o),M=(O=e.subTitle)!==null&&O!==void 0?O:(w=o.subTitle)===null||w===void 0?void 0:w.call(o),N=(I=e.tags)!==null&&I!==void 0?I:(T=o.tags)===null||T===void 0?void 0:T.call(o),B=(_=e.extra)!==null&&_!==void 0?_:(E=o.extra)===null||E===void 0?void 0:E.call(o),k=`${i.value}-heading`,F=z||M||N||B;if(!F)return null;const L=v(),H=h(L);return p("div",{class:k},[(H||R||F)&&p("div",{class:`${k}-left`},[H,R?p(dl,R,null):(A=o.avatar)===null||A===void 0?void 0:A.call(o),z&&p("span",{class:`${k}-title`,title:typeof z=="string"?z:void 0},[z]),M&&p("span",{class:`${k}-sub-title`,title:typeof M=="string"?M:void 0},[M]),N&&p("span",{class:`${k}-tags`},[N])]),B&&p("span",{class:`${k}-extra`},[p($a,null,{default:()=>[B]})])])},S=()=>{var x,C;const O=(x=e.footer)!==null&&x!==void 0?x:At((C=o.footer)===null||C===void 0?void 0:C.call(o));return iA(O)?null:p("div",{class:`${i.value}-footer`},[O])},$=x=>p("div",{class:`${i.value}-content`},[x]);return()=>{var x,C;const O=((x=e.breadcrumb)===null||x===void 0?void 0:x.routes)||o.breadcrumb,w=e.footer||o.footer,I=bt((C=o.default)===null||C===void 0?void 0:C.call(o)),T=le(i.value,{"has-breadcrumb":O,"has-footer":w,[`${i.value}-ghost`]:g.value,[`${i.value}-rtl`]:l.value==="rtl",[`${i.value}-compact`]:c.value},r.class,u.value);return s(p(Mo,{onResize:f},{default:()=>[p("div",D(D({},r),{},{class:T}),[b(),y(),I.length?$(I):null,S()])]}))}}}),coe=It(soe),uoe=e=>{const{componentCls:t,iconCls:n,zIndexPopup:o,colorText:r,colorWarning:i,marginXS:l,fontSize:a,fontWeightStrong:s,lineHeight:u}=e;return{[t]:{zIndex:o,[`${t}-inner-content`]:{color:r},[`${t}-message`]:{position:"relative",marginBottom:l,color:r,fontSize:a,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:i,fontSize:a,flex:"none",lineHeight:1,paddingTop:(Math.round(a*u)-a)/2},"&-title":{flex:"auto",marginInlineStart:l},"&-title-only":{fontWeight:s}},[`${t}-description`]:{position:"relative",marginInlineStart:a+l,marginBottom:l,color:r,fontSize:a},[`${t}-buttons`]:{textAlign:"end",button:{marginInlineStart:l}}}}},doe=Ke("Popconfirm",e=>uoe(e),e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}});var foe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rm(m({},Ob()),{prefixCls:String,content:yt(),title:yt(),description:yt(),okType:Ne("primary"),disabled:{type:Boolean,default:!1},okText:yt(),cancelText:yt(),icon:yt(),okButtonProps:De(),cancelButtonProps:De(),showCancel:{type:Boolean,default:!0},onConfirm:Function,onCancel:Function}),goe=oe({compatConfig:{MODE:3},name:"APopconfirm",inheritAttrs:!1,props:Ze(poe(),m(m({},W6()),{trigger:"click",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0,okType:"primary",disabled:!1})),slots:Object,setup(e,t){let{slots:n,emit:o,expose:r,attrs:i}=t;const l=re();fo(e.visible===void 0),r({getPopupDomNode:()=>{var O,w;return(w=(O=l.value)===null||O===void 0?void 0:O.getPopupDomNode)===null||w===void 0?void 0:w.call(O)}});const[a,s]=Pt(!1,{value:ze(e,"open")}),u=(O,w)=>{e.open===void 0&&s(O),o("update:open",O),o("openChange",O,w)},c=O=>{u(!1,O)},d=O=>{var w;return(w=e.onConfirm)===null||w===void 0?void 0:w.call(e,O)},f=O=>{var w;u(!1,O),(w=e.onCancel)===null||w===void 0||w.call(e,O)},g=O=>{O.keyCode===Pe.ESC&&a&&u(!1,O)},v=O=>{const{disabled:w}=e;w||u(O)},{prefixCls:h,getPrefixCls:b}=Te("popconfirm",e),y=P(()=>b()),S=P(()=>b("btn")),[$]=doe(h),[x]=Do("Popconfirm",Vn.Popconfirm),C=()=>{var O,w,I,T,_;const{okButtonProps:E,cancelButtonProps:A,title:R=(O=n.title)===null||O===void 0?void 0:O.call(n),description:z=(w=n.description)===null||w===void 0?void 0:w.call(n),cancelText:M=(I=n.cancel)===null||I===void 0?void 0:I.call(n),okText:N=(T=n.okText)===null||T===void 0?void 0:T.call(n),okType:B,icon:k=((_=n.icon)===null||_===void 0?void 0:_.call(n))||p(er,null,null),showCancel:F=!0}=e,{cancelButton:L,okButton:H}=n,j=m({onClick:f,size:"small"},A),Y=m(m(m({onClick:d},cf(B)),{size:"small"}),E);return p("div",{class:`${h.value}-inner-content`},[p("div",{class:`${h.value}-message`},[k&&p("span",{class:`${h.value}-message-icon`},[k]),p("div",{class:[`${h.value}-message-title`,{[`${h.value}-message-title-only`]:!!z}]},[R])]),z&&p("div",{class:`${h.value}-description`},[z]),p("div",{class:`${h.value}-buttons`},[F?L?L(j):p(Lt,j,{default:()=>[M||x.value.cancelText]}):null,H?H(Y):p(Im,{buttonProps:m(m({size:"small"},cf(B)),E),actionFn:d,close:c,prefixCls:S.value,quitOnNullishReturnValue:!0,emitEvent:!0},{default:()=>[N||x.value.okText]})])])};return()=>{var O;const{placement:w,overlayClassName:I,trigger:T="click"}=e,_=foe(e,["placement","overlayClassName","trigger"]),E=tt(_,["title","content","cancelText","okText","onUpdate:open","onConfirm","onCancel","prefixCls"]),A=le(h.value,I);return $(p(Eb,D(D(D({},E),i),{},{trigger:T,placement:w,onOpenChange:v,open:a.value,overlayClassName:A,transitionName:_n(y.value,"zoom-big",e.transitionName),ref:l,"data-popover-inject":!0}),{default:()=>[vD(((O=n.default)===null||O===void 0?void 0:O.call(n))||[],{onKeydown:R=>{g(R)}},!1)],content:C}))}}}),hoe=It(goe),voe=["normal","exception","active","success"],ug=()=>({prefixCls:String,type:Ne(),percent:Number,format:ve(),status:Ne(),showInfo:$e(),strokeWidth:Number,strokeLinecap:Ne(),strokeColor:yt(),trailColor:String,width:Number,success:De(),gapDegree:Number,gapPosition:Ne(),size:Fe([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:Ne()});function hl(e){return!e||e<0?0:e>100?100:e}function Nf(e){let{success:t,successPercent:n}=e,o=n;return t&&"progress"in t&&(Ct(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),o=t.progress),t&&"percent"in t&&(o=t.percent),o}function moe(e){let{percent:t,success:n,successPercent:o}=e;const r=hl(Nf({success:n,successPercent:o}));return[r,hl(hl(t)-r)]}function boe(e){let{success:t={},strokeColor:n}=e;const{strokeColor:o}=t;return[o||da.green,n||null]}const dg=(e,t,n)=>{var o,r,i,l;let a=-1,s=-1;if(t==="step"){const u=n.steps,c=n.strokeWidth;typeof e=="string"||typeof e>"u"?(a=e==="small"?2:14,s=c??8):typeof e=="number"?[a,s]=[e,e]:[a=14,s=8]=e,a*=u}else if(t==="line"){const u=n?.strokeWidth;typeof e=="string"||typeof e>"u"?s=u||(e==="small"?6:8):typeof e=="number"?[a,s]=[e,e]:[a=-1,s=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[a,s]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[a,s]=[e,e]:(a=(r=(o=e[0])!==null&&o!==void 0?o:e[1])!==null&&r!==void 0?r:120,s=(l=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&l!==void 0?l:120));return{width:a,height:s}};var yoe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rm(m({},ug()),{strokeColor:yt(),direction:Ne()}),$oe=e=>{let t=[];return Object.keys(e).forEach(n=>{const o=parseFloat(n.replace(/%/g,""));isNaN(o)||t.push({key:o,value:e[n]})}),t=t.sort((n,o)=>n.key-o.key),t.map(n=>{let{key:o,value:r}=n;return`${r} ${o}%`}).join(", ")},Coe=(e,t)=>{const{from:n=da.blue,to:o=da.blue,direction:r=t==="rtl"?"to left":"to right"}=e,i=yoe(e,["from","to","direction"]);if(Object.keys(i).length!==0){const l=$oe(i);return{backgroundImage:`linear-gradient(${r}, ${l})`}}return{backgroundImage:`linear-gradient(${r}, ${n}, ${o})`}},xoe=oe({compatConfig:{MODE:3},name:"ProgressLine",inheritAttrs:!1,props:Soe(),setup(e,t){let{slots:n,attrs:o}=t;const r=P(()=>{const{strokeColor:g,direction:v}=e;return g&&typeof g!="string"?Coe(g,v):{backgroundColor:g}}),i=P(()=>e.strokeLinecap==="square"||e.strokeLinecap==="butt"?0:void 0),l=P(()=>e.trailColor?{backgroundColor:e.trailColor}:void 0),a=P(()=>{var g;return(g=e.size)!==null&&g!==void 0?g:[-1,e.strokeWidth||(e.size==="small"?6:8)]}),s=P(()=>dg(a.value,"line",{strokeWidth:e.strokeWidth})),u=P(()=>{const{percent:g}=e;return m({width:`${hl(g)}%`,height:`${s.value.height}px`,borderRadius:i.value},r.value)}),c=P(()=>Nf(e)),d=P(()=>{const{success:g}=e;return{width:`${hl(c.value)}%`,height:`${s.value.height}px`,borderRadius:i.value,backgroundColor:g?.strokeColor}}),f={width:s.value.width<0?"100%":s.value.width,height:`${s.value.height}px`};return()=>{var g;return p(Ve,null,[p("div",D(D({},o),{},{class:[`${e.prefixCls}-outer`,o.class],style:[o.style,f]}),[p("div",{class:`${e.prefixCls}-inner`,style:l.value},[p("div",{class:`${e.prefixCls}-bg`,style:u.value},null),c.value!==void 0?p("div",{class:`${e.prefixCls}-success-bg`,style:d.value},null):null])]),(g=n.default)===null||g===void 0?void 0:g.call(n)])}}}),woe={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},Ooe=e=>{const t=re(null);return An(()=>{const n=Date.now();let o=!1;e.value.forEach(r=>{const i=r?.$el||r;if(!i)return;o=!0;const l=i.style;l.transitionDuration=".3s, .3s, .3s, .06s",t.value&&n-t.value<100&&(l.transitionDuration="0s, 0s")}),o&&(t.value=Date.now())}),e},Poe={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String};var Ioe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r4&&arguments[4]!==void 0?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0;const l=50-o/2;let a=0,s=-l,u=0,c=-2*l;switch(i){case"left":a=-l,s=0,u=2*l,c=0;break;case"right":a=l,s=0,u=-2*l,c=0;break;case"bottom":s=l,c=2*l;break}const d=`M 50,50 m ${a},${s} a ${l},${l} 0 1 1 ${u},${-c} - a ${l},${l} 0 1 1 ${-u},${c}`,f=Math.PI*2*l,g={stroke:n,strokeDasharray:`${t/100*(f-r)}px ${f}px`,strokeDashoffset:`-${r/2+e/100*(f-r)}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:d,pathStyle:g}}const Toe=oe({compatConfig:{MODE:3},name:"VCCircle",props:Ze(Poe,woe),setup(e){Xw+=1;const t=re(Xw),n=P(()=>Yw(e.percent)),o=P(()=>Yw(e.strokeColor)),[r,i]=cy();Ooe(i);const l=()=>{const{prefixCls:a,strokeWidth:s,strokeLinecap:u,gapDegree:c,gapPosition:d}=e;let f=0;return n.value.map((g,v)=>{const h=o.value[v]||o.value[o.value.length-1],b=Object.prototype.toString.call(h)==="[object Object]"?`url(#${a}-gradient-${t.value})`:"",{pathString:y,pathStyle:S}=qw(f,g,h,s,c,d);f+=g;const $={key:v,d:y,stroke:b,"stroke-linecap":u,"stroke-width":s,opacity:g===0?0:1,"fill-opacity":"0",class:`${a}-circle-path`,style:S};return p("path",D({ref:r(v)},$),null)})};return()=>{const{prefixCls:a,strokeWidth:s,trailWidth:u,gapDegree:c,gapPosition:d,trailColor:f,strokeLinecap:g,strokeColor:v}=e,h=Ioe(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"]),{pathString:b,pathStyle:y}=qw(0,100,f,s,c,d);delete h.percent;const S=o.value.find(x=>Object.prototype.toString.call(x)==="[object Object]"),$={d:b,stroke:f,"stroke-linecap":g,"stroke-width":u||s,"fill-opacity":"0",class:`${a}-circle-trail`,style:y};return p("svg",D({class:`${a}-circle`,viewBox:"0 0 100 100"},h),[S&&p("defs",null,[p("linearGradient",{id:`${a}-gradient-${t.value}`,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(S).sort((x,C)=>Uw(x)-Uw(C)).map((x,C)=>p("stop",{key:C,offset:x,"stop-color":S[x]},null))])]),p("path",$,null),l().reverse()])}}}),Eoe=()=>m(m({},ug()),{strokeColor:yt()}),Moe=3,_oe=e=>Moe/e*100,Aoe=oe({compatConfig:{MODE:3},name:"ProgressCircle",inheritAttrs:!1,props:Ze(Eoe(),{trailColor:null}),setup(e,t){let{slots:n,attrs:o}=t;const r=P(()=>{var h;return(h=e.width)!==null&&h!==void 0?h:120}),i=P(()=>{var h;return(h=e.size)!==null&&h!==void 0?h:[r.value,r.value]}),l=P(()=>dg(i.value,"circle")),a=P(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),s=P(()=>({width:`${l.value.width}px`,height:`${l.value.height}px`,fontSize:`${l.value.width*.15+6}px`})),u=P(()=>{var h;return(h=e.strokeWidth)!==null&&h!==void 0?h:Math.max(_oe(l.value.width),6)}),c=P(()=>e.gapPosition||e.type==="dashboard"&&"bottom"||void 0),d=P(()=>moe(e)),f=P(()=>Object.prototype.toString.call(e.strokeColor)==="[object Object]"),g=P(()=>boe({success:e.success,strokeColor:e.strokeColor})),v=P(()=>({[`${e.prefixCls}-inner`]:!0,[`${e.prefixCls}-circle-gradient`]:f.value}));return()=>{var h;const b=p(Toe,{percent:d.value,strokeWidth:u.value,trailWidth:u.value,strokeColor:g.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:a.value,gapPosition:c.value},null);return p("div",D(D({},o),{},{class:[v.value,o.class],style:[o.style,s.value]}),[l.value.width<=20?p(Qn,null,{default:()=>[p("span",null,[b])],title:n.default}):p(Ve,null,[b,(h=n.default)===null||h===void 0?void 0:h.call(n)])])}}}),Roe=()=>m(m({},ug()),{steps:Number,strokeColor:Fe(),trailColor:String}),Doe=oe({compatConfig:{MODE:3},name:"Steps",props:Roe(),setup(e,t){let{slots:n}=t;const o=P(()=>Math.round(e.steps*((e.percent||0)/100))),r=P(()=>{var a;return(a=e.size)!==null&&a!==void 0?a:[e.size==="small"?2:14,e.strokeWidth||8]}),i=P(()=>dg(r.value,"step",{steps:e.steps,strokeWidth:e.strokeWidth||8})),l=P(()=>{const{steps:a,strokeColor:s,trailColor:u,prefixCls:c}=e,d=[];for(let f=0;f{var a;return p("div",{class:`${e.prefixCls}-steps-outer`},[l.value,(a=n.default)===null||a===void 0?void 0:a.call(n)])}}}),Noe=new nt("antProgressActive",{"0%":{transform:"translateX(-100%) scaleX(0)",opacity:.1},"20%":{transform:"translateX(-100%) scaleX(0)",opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}}),Boe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:m(m({},Ue(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:Noe,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},koe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:`${e.fontSize/e.fontSizeSM}em`}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},Foe=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},Loe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},zoe=Ke("Progress",e=>{const t=e.marginXXS/2,n=ke(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Boe(n),koe(n),Foe(n),Loe(n)]});var Hoe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rArray.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor),u=P(()=>{const{percent:v=0}=e,h=Nf(e);return parseInt(h!==void 0?h.toString():v.toString(),10)}),c=P(()=>{const{status:v}=e;return!voe.includes(v)&&u.value>=100?"success":v||"normal"}),d=P(()=>{const{type:v,showInfo:h,size:b}=e,y=r.value;return{[y]:!0,[`${y}-inline-circle`]:v==="circle"&&dg(b,"circle").width<=20,[`${y}-${v==="dashboard"&&"circle"||v}`]:!0,[`${y}-status-${c.value}`]:!0,[`${y}-show-info`]:h,[`${y}-${b}`]:b,[`${y}-rtl`]:i.value==="rtl",[a.value]:!0}}),f=P(()=>typeof e.strokeColor=="string"||Array.isArray(e.strokeColor)?e.strokeColor:void 0),g=()=>{const{showInfo:v,format:h,type:b,percent:y,title:S}=e,$=Nf(e);if(!v)return null;let x;const C=h||n?.format||(w=>`${w}%`),O=b==="line";return h||n?.format||c.value!=="exception"&&c.value!=="success"?x=C(hl(y),hl($)):c.value==="exception"?x=p(O?Dn:Rn,null,null):c.value==="success"&&(x=p(O?Jo:ja,null,null)),p("span",{class:`${r.value}-text`,title:S===void 0&&typeof x=="string"?x:void 0},[x])};return()=>{const{type:v,steps:h,title:b}=e,{class:y}=o,S=Hoe(o,["class"]),$=g();let x;return v==="line"?x=h?p(Doe,D(D({},e),{},{strokeColor:f.value,prefixCls:r.value,steps:h}),{default:()=>[$]}):p(xoe,D(D({},e),{},{strokeColor:s.value,prefixCls:r.value,direction:i.value}),{default:()=>[$]}):(v==="circle"||v==="dashboard")&&(x=p(Aoe,D(D({},e),{},{prefixCls:r.value,strokeColor:s.value,progressStatus:c.value}),{default:()=>[$]})),l(p("div",D(D({role:"progressbar"},S),{},{class:[d.value,y],title:b}),[x]))}}}),Yy=It(joe);function Voe(e){let t=e.scrollX;const n="scrollLeft";if(typeof t!="number"){const o=e.document;t=o.documentElement[n],typeof t!="number"&&(t=o.body[n])}return t}function Woe(e){let t,n;const o=e.ownerDocument,{body:r}=o,i=o&&o.documentElement,l=e.getBoundingClientRect();return t=l.left,n=l.top,t-=i.clientLeft||r.clientLeft||0,n-=i.clientTop||r.clientTop||0,{left:t,top:n}}function Koe(e){const t=Woe(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=Voe(o),t.left}var Goe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};function Zw(e){for(var t=1;t{const{index:s}=e;n("hover",a,s)},r=a=>{const{index:s}=e;n("click",a,s)},i=a=>{const{index:s}=e;a.keyCode===13&&n("click",a,s)},l=P(()=>{const{prefixCls:a,index:s,value:u,allowHalf:c,focused:d}=e,f=s+1;let g=a;return u===0&&s===0&&d?g+=` ${a}-focused`:c&&u+.5>=f&&u{const{disabled:a,prefixCls:s,characterRender:u,character:c,index:d,count:f,value:g}=e,v=typeof c=="function"?c({disabled:a,prefixCls:s,index:d,count:f,value:g}):c;let h=p("li",{class:l.value},[p("div",{onClick:a?null:r,onKeydown:a?null:i,onMousemove:a?null:o,role:"radio","aria-checked":g>d?"true":"false","aria-posinset":d+1,"aria-setsize":f,tabindex:a?-1:0},[p("div",{class:`${s}-first`},[v]),p("div",{class:`${s}-second`},[v])])]);return u&&(h=u(h,e)),h}}}),qoe=e=>{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.rateStarHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${e.lineWidth}px dashed ${e.rateStarColor}`,transform:e.rateStarHoverScale}},"&-first, &-second":{color:e.defaultColor,transition:`all ${e.motionDurationMid}`,userSelect:"none",[e.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},Zoe=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),Qoe=e=>{const{componentCls:t}=e;return{[t]:m(m(m(m(m({},Ue(e)),{display:"inline-block",margin:0,padding:0,color:e.rateStarColor,fontSize:e.rateStarSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","&:hover":{transform:"scale(1)"}}}),qoe(e)),{[`+ ${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,fontSize:e.fontSize}}),Zoe(e))}},Joe=Ke("Rate",e=>{const{colorFillContent:t}=e,n=ke(e,{rateStarColor:e["yellow-6"],rateStarSize:e.controlHeightLG*.5,rateStarHoverScale:"scale(1.1)",defaultColor:t});return[Qoe(n)]}),ere=()=>({prefixCls:String,count:Number,value:Number,allowHalf:{type:Boolean,default:void 0},allowClear:{type:Boolean,default:void 0},tooltips:Array,disabled:{type:Boolean,default:void 0},character:W.any,autofocus:{type:Boolean,default:void 0},tabindex:W.oneOfType([W.number,W.string]),direction:String,id:String,onChange:Function,onHoverChange:Function,"onUpdate:value":Function,onFocus:Function,onBlur:Function,onKeydown:Function}),tre=oe({compatConfig:{MODE:3},name:"ARate",inheritAttrs:!1,props:Ze(ere(),{value:0,count:5,allowHalf:!1,allowClear:!0,tabindex:0,direction:"ltr"}),setup(e,t){let{slots:n,attrs:o,emit:r,expose:i}=t;const{prefixCls:l,direction:a}=Te("rate",e),[s,u]=Joe(l),c=Qt(),d=re(),[f,g]=cy(),v=ct({value:e.value,focused:!1,cleanedValue:null,hoverValue:void 0});ye(()=>e.value,()=>{v.value=e.value});const h=E=>Hn(g.value.get(E)),b=(E,A)=>{const R=a.value==="rtl";let z=E+1;if(e.allowHalf){const _=h(E),N=Koe(_),B=_.clientWidth;(R&&A-N>B/2||!R&&A-N{e.value===void 0&&(v.value=E),r("update:value",E),r("change",E),c.onFieldChange()},S=(E,A)=>{const R=b(A,E.pageX);R!==v.cleanedValue&&(v.hoverValue=R,v.cleanedValue=null),r("hoverChange",R)},$=()=>{v.hoverValue=void 0,v.cleanedValue=null,r("hoverChange",void 0)},x=(E,A)=>{const{allowClear:R}=e,z=b(A,E.pageX);let _=!1;R&&(_=z===v.value),$(),y(_?0:z),v.cleanedValue=_?z:null},C=E=>{v.focused=!0,r("focus",E)},O=E=>{v.focused=!1,r("blur",E),c.onFieldBlur()},w=E=>{const{keyCode:A}=E,{count:R,allowHalf:z}=e,_=a.value==="rtl";A===Pe.RIGHT&&v.value0&&!_||A===Pe.RIGHT&&v.value>0&&_?(z?v.value-=.5:v.value-=1,y(v.value),E.preventDefault()):A===Pe.LEFT&&v.value{e.disabled||d.value.focus()};i({focus:I,blur:()=>{e.disabled||d.value.blur()}}),je(()=>{const{autofocus:E,disabled:A}=e;E&&!A&&I()});const M=(E,A)=>{let{index:R}=A;const{tooltips:z}=e;return z?p(Qn,{title:z[R]},{default:()=>[E]}):E};return()=>{const{count:E,allowHalf:A,disabled:R,tabindex:z,id:_=c.id.value}=e,{class:N,style:B}=o,k=[],F=R?`${l.value}-disabled`:"",L=e.character||n.character||(()=>p(qy,null,null));for(let j=0;jp("svg",{width:"252",height:"294"},[p("defs",null,[p("path",{d:"M0 .387h251.772v251.772H0z"},null)]),p("g",{fill:"none","fill-rule":"evenodd"},[p("g",{transform:"translate(0 .012)"},[p("mask",{fill:"#fff"},null),p("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"},null)]),p("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"},null),p("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF","stroke-width":"2"},null),p("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"},null),p("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"},null),p("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF","stroke-width":"2"},null),p("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"},null),p("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF","stroke-width":"2"},null),p("path",{stroke:"#FFF","stroke-width":"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"},null),p("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"},null),p("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"},null),p("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"},null),p("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"},null),p("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"},null),p("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"},null),p("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"},null),p("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"},null),p("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"},null),p("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"},null),p("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"},null),p("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"},null),p("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"},null),p("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"},null),p("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"},null),p("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"},null),p("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"},null),p("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"},null),p("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"},null),p("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"},null),p("path",{stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"},null),p("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"},null),p("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"},null),p("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"},null),p("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"},null),p("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"},null),p("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"},null),p("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"},null),p("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"},null),p("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"},null),p("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"},null),p("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"},null),p("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),lre=()=>p("svg",{width:"254",height:"294"},[p("defs",null,[p("path",{d:"M0 .335h253.49v253.49H0z"},null),p("path",{d:"M0 293.665h253.49V.401H0z"},null)]),p("g",{fill:"none","fill-rule":"evenodd"},[p("g",{transform:"translate(0 .067)"},[p("mask",{fill:"#fff"},null),p("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"},null)]),p("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"},null),p("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF","stroke-width":"2"},null),p("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"},null),p("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"},null),p("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"},null),p("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"},null),p("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"},null),p("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"},null),p("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"},null),p("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"},null),p("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"},null),p("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"},null),p("path",{stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"},null),p("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7","stroke-width":"1.136","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"},null),p("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"},null),p("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"},null),p("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"},null),p("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"},null),p("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"},null),p("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"},null),p("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"},null),p("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"},null),p("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"},null),p("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"},null),p("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"},null),p("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8","stroke-width":"1.032","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"},null),p("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"},null),p("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"},null),p("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"},null),p("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"},null),p("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"},null),p("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"},null),p("mask",{fill:"#fff"},null),p("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"},null),p("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"},null),p("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),p("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"},null),p("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),p("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),p("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"},null),p("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),p("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"},null),p("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"},null),p("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"},null)])]),are=()=>p("svg",{width:"251",height:"294"},[p("g",{fill:"none","fill-rule":"evenodd"},[p("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"},null),p("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"},null),p("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF","stroke-width":"2"},null),p("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"},null),p("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"},null),p("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF","stroke-width":"2"},null),p("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"},null),p("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF","stroke-width":"2"},null),p("path",{stroke:"#FFF","stroke-width":"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"},null),p("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"},null),p("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"},null),p("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"},null),p("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"},null),p("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"},null),p("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"},null),p("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"},null),p("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"},null),p("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"},null),p("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"},null),p("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"},null),p("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7","stroke-width":".932","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"},null),p("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"},null),p("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"},null),p("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"},null),p("path",{stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"},null),p("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"},null),p("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"},null),p("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552","stroke-width":"1.526","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7","stroke-width":"1.114","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E","stroke-width":".795","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"},null),p("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E","stroke-width":".75","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"},null),p("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"},null),p("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"},null),p("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"},null),p("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"},null),p("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"},null),p("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"},null),p("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"},null),p("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"},null),p("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"},null),p("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),sre=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:o,padding:r,paddingXL:i,paddingXS:l,paddingLG:a,marginXS:s,lineHeight:u}=e;return{[t]:{padding:`${a*2}px ${i}px`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:a,textAlign:"center",[`& > ${o}`]:{fontSize:e.resultIconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.resultTitleFontSize,lineHeight:n,marginBlock:s,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.resultSubtitleFontSize,lineHeight:u,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:a,padding:`${a}px ${r*2.5}px`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.resultExtraMargin,textAlign:"center","& > *":{marginInlineEnd:l,"&:last-child":{marginInlineEnd:0}}}}},cre=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},ure=e=>[sre(e),cre(e)],dre=e=>ure(e),fre=Ke("Result",e=>{const{paddingLG:t,fontSizeHeading3:n}=e,o=e.fontSize,r=`${t}px 0 0 0`,i=e.colorInfo,l=e.colorError,a=e.colorSuccess,s=e.colorWarning,u=ke(e,{resultTitleFontSize:n,resultSubtitleFontSize:o,resultIconFontSize:n*3,resultExtraMargin:r,resultInfoIconColor:i,resultErrorIconColor:l,resultSuccessIconColor:a,resultWarningIconColor:s});return[dre(u)]},{imageWidth:250,imageHeight:295}),pre={success:Jo,error:Dn,info:er,warning:Zy},Wc={404:ire,500:lre,403:are},gre=Object.keys(Wc),hre=()=>({prefixCls:String,icon:W.any,status:{type:[Number,String],default:"info"},title:W.any,subTitle:W.any,extra:W.any}),vre=(e,t)=>{let{status:n,icon:o}=t;if(gre.includes(`${n}`)){const l=Wc[n];return p("div",{class:`${e}-icon ${e}-image`},[p(l,null,null)])}const r=pre[n],i=o||p(r,null,null);return p("div",{class:`${e}-icon`},[i])},mre=(e,t)=>t&&p("div",{class:`${e}-extra`},[t]),vl=oe({compatConfig:{MODE:3},name:"AResult",inheritAttrs:!1,props:hre(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Te("result",e),[l,a]=fre(r),s=P(()=>le(r.value,a.value,`${r.value}-${e.status}`,{[`${r.value}-rtl`]:i.value==="rtl"}));return()=>{var u,c,d,f,g,v,h,b;const y=(u=e.title)!==null&&u!==void 0?u:(c=n.title)===null||c===void 0?void 0:c.call(n),S=(d=e.subTitle)!==null&&d!==void 0?d:(f=n.subTitle)===null||f===void 0?void 0:f.call(n),$=(g=e.icon)!==null&&g!==void 0?g:(v=n.icon)===null||v===void 0?void 0:v.call(n),x=(h=e.extra)!==null&&h!==void 0?h:(b=n.extra)===null||b===void 0?void 0:b.call(n),C=r.value;return l(p("div",D(D({},o),{},{class:[s.value,o.class]}),[vre(C,{status:e.status,icon:$}),p("div",{class:`${C}-title`},[y]),S&&p("div",{class:`${C}-subtitle`},[S]),mre(C,x),n.default&&p("div",{class:`${C}-content`},[n.default()])]))}}});vl.PRESENTED_IMAGE_403=Wc[403];vl.PRESENTED_IMAGE_404=Wc[404];vl.PRESENTED_IMAGE_500=Wc[500];vl.install=function(e){return e.component(vl.name,vl),e};const bre=It($y),Qy=(e,t)=>{let{attrs:n}=t;const{included:o,vertical:r,style:i,class:l}=n;let{length:a,offset:s,reverse:u}=n;a<0&&(u=!u,a=Math.abs(a),s=100-s);const c=r?{[u?"top":"bottom"]:`${s}%`,[u?"bottom":"top"]:"auto",height:`${a}%`}:{[u?"right":"left"]:`${s}%`,[u?"left":"right"]:"auto",width:`${a}%`},d=m(m({},i),c);return o?p("div",{class:l,style:d},null):null};Qy.inheritAttrs=!1;const yre=(e,t,n,o,r,i)=>{const l=Object.keys(t).map(parseFloat).sort((a,s)=>a-s);if(n&&o)for(let a=r;a<=i;a+=o)l.indexOf(a)===-1&&l.push(a);return l},aT=(e,t)=>{let{attrs:n}=t;const{prefixCls:o,vertical:r,reverse:i,marks:l,dots:a,step:s,included:u,lowerBound:c,upperBound:d,max:f,min:g,dotStyle:v,activeDotStyle:h}=n,b=f-g,y=yre(r,l,a,s,g,f).map(S=>{const $=`${Math.abs(S-g)/b*100}%`,x=!u&&S===d||u&&S<=d&&S>=c;let C=r?m(m({},v),{[i?"top":"bottom"]:$}):m(m({},v),{[i?"right":"left"]:$});x&&(C=m(m({},C),h));const O=le({[`${o}-dot`]:!0,[`${o}-dot-active`]:x,[`${o}-dot-reverse`]:i});return p("span",{class:O,style:C,key:S},null)});return p("div",{class:`${o}-step`},[y])};aT.inheritAttrs=!1;const sT=(e,t)=>{let{attrs:n,slots:o}=t;const{class:r,vertical:i,reverse:l,marks:a,included:s,upperBound:u,lowerBound:c,max:d,min:f,onClickLabel:g}=n,v=Object.keys(a),h=o.mark,b=d-f,y=v.map(parseFloat).sort((S,$)=>S-$).map(S=>{const $=typeof a[S]=="function"?a[S]():a[S],x=typeof $=="object"&&!Kt($);let C=x?$.label:$;if(!C&&C!==0)return null;h&&(C=h({point:S,label:C}));const O=!s&&S===u||s&&S<=u&&S>=c,w=le({[`${r}-text`]:!0,[`${r}-text-active`]:O}),I={marginBottom:"-50%",[l?"top":"bottom"]:`${(S-f)/b*100}%`},T={transform:`translateX(${l?"50%":"-50%"})`,msTransform:`translateX(${l?"50%":"-50%"})`,[l?"right":"left"]:`${(S-f)/b*100}%`},M=i?I:T,E=x?m(m({},M),$.style):M,A={[Yt?"onTouchstartPassive":"onTouchstart"]:R=>g(R,S)};return p("span",D({class:w,style:E,key:S,onMousedown:R=>g(R,S)},A),[C])});return p("div",{class:r},[y])};sT.inheritAttrs=!1;const cT=oe({compatConfig:{MODE:3},name:"Handle",inheritAttrs:!1,props:{prefixCls:String,vertical:{type:Boolean,default:void 0},offset:Number,disabled:{type:Boolean,default:void 0},min:Number,max:Number,value:Number,tabindex:W.oneOfType([W.number,W.string]),reverse:{type:Boolean,default:void 0},ariaLabel:String,ariaLabelledBy:String,ariaValueTextFormatter:Function,onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function}},setup(e,t){let{attrs:n,emit:o,expose:r}=t;const i=ne(!1),l=ne(),a=()=>{document.activeElement===l.value&&(i.value=!0)},s=b=>{i.value=!1,o("blur",b)},u=()=>{i.value=!1},c=()=>{var b;(b=l.value)===null||b===void 0||b.focus()},d=()=>{var b;(b=l.value)===null||b===void 0||b.blur()},f=()=>{i.value=!0,c()},g=b=>{b.preventDefault(),c(),o("mousedown",b)};r({focus:c,blur:d,clickFocus:f,ref:l});let v=null;je(()=>{v=Et(document,"mouseup",a)}),Qe(()=>{v?.remove()});const h=P(()=>{const{vertical:b,offset:y,reverse:S}=e;return b?{[S?"top":"bottom"]:`${y}%`,[S?"bottom":"top"]:"auto",transform:S?null:"translateY(+50%)"}:{[S?"right":"left"]:`${y}%`,[S?"left":"right"]:"auto",transform:`translateX(${S?"+":"-"}50%)`}});return()=>{const{prefixCls:b,disabled:y,min:S,max:$,value:x,tabindex:C,ariaLabel:O,ariaLabelledBy:w,ariaValueTextFormatter:I,onMouseenter:T,onMouseleave:M}=e,E=le(n.class,{[`${b}-handle-click-focused`]:i.value}),A={"aria-valuemin":S,"aria-valuemax":$,"aria-valuenow":x,"aria-disabled":!!y},R=[n.style,h.value];let z=C||0;(y||C===null)&&(z=null);let _;I&&(_=I(x));const N=m(m(m(m({},n),{role:"slider",tabindex:z}),A),{class:E,onBlur:s,onKeydown:u,onMousedown:g,onMouseenter:T,onMouseleave:M,ref:l,style:R});return p("div",D(D({},N),{},{"aria-label":O,"aria-labelledby":w,"aria-valuetext":_}),null)}}});function Hh(e,t){try{return Object.keys(t).some(n=>e.target===t[n].ref)}catch{return!1}}function uT(e,t){let{min:n,max:o}=t;return eo}function Jw(e){return e.touches.length>1||e.type.toLowerCase()==="touchend"&&e.touches.length>0}function e2(e,t){let{marks:n,step:o,min:r,max:i}=t;const l=Object.keys(n).map(parseFloat);if(o!==null){const s=Math.pow(10,dT(o)),u=Math.floor((i*s-r*s)/(o*s)),c=Math.min((e-r)/o,u),d=Math.round(c)*o+r;l.push(d)}const a=l.map(s=>Math.abs(e-s));return l[a.indexOf(Math.min(...a))]}function dT(e){const t=e.toString();let n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}function t2(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.clientY:t.pageX)/n}function n2(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.touches[0].clientY:t.touches[0].pageX)/n}function o2(e,t){const n=t.getBoundingClientRect();return e?n.top+n.height*.5:window.scrollX+n.left+n.width*.5}function Jy(e,t){let{max:n,min:o}=t;return e<=o?o:e>=n?n:e}function fT(e,t){const{step:n}=t,o=isFinite(e2(e,t))?e2(e,t):0;return n===null?o:parseFloat(o.toFixed(dT(n)))}function Da(e){e.stopPropagation(),e.preventDefault()}function Sre(e,t,n){const o={increase:(l,a)=>l+a,decrease:(l,a)=>l-a},r=o[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),i=Object.keys(n.marks)[r];return n.step?o[e](t,n.step):Object.keys(n.marks).length&&n.marks[i]?n.marks[i]:t}function pT(e,t,n){const o="increase",r="decrease";let i=o;switch(e.keyCode){case Pe.UP:i=t&&n?r:o;break;case Pe.RIGHT:i=!t&&n?r:o;break;case Pe.DOWN:i=t&&n?o:r;break;case Pe.LEFT:i=!t&&n?o:r;break;case Pe.END:return(l,a)=>a.max;case Pe.HOME:return(l,a)=>a.min;case Pe.PAGE_UP:return(l,a)=>l+a.step*2;case Pe.PAGE_DOWN:return(l,a)=>l-a.step*2;default:return}return(l,a)=>Sre(i,l,a)}var $re=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{this.document=this.sliderRef&&this.sliderRef.ownerDocument;const{autofocus:n,disabled:o}=this;n&&!o&&this.focus()})},beforeUnmount(){this.$nextTick(()=>{this.removeDocumentEvents()})},methods:{defaultHandle(n){var{index:o,directives:r,className:i,style:l}=n,a=$re(n,["index","directives","className","style"]);if(delete a.dragging,a.value===null)return null;const s=m(m({},a),{class:i,style:l,key:o});return p(cT,s,null)},onDown(n,o){let r=o;const{draggableTrack:i,vertical:l}=this.$props,{bounds:a}=this.$data,s=i&&this.positionGetValue?this.positionGetValue(r)||[]:[],u=Hh(n,this.handlesRefs);if(this.dragTrack=i&&a.length>=2&&!u&&!s.map((c,d)=>{const f=d?!0:c>=a[d];return d===s.length-1?c<=a[d]:f}).some(c=>!c),this.dragTrack)this.dragOffset=r,this.startBounds=[...a];else{if(!u)this.dragOffset=0;else{const c=o2(l,n.target);this.dragOffset=r-c,r=c}this.onStart(r)}},onMouseDown(n){if(n.button!==0)return;this.removeDocumentEvents();const o=this.$props.vertical,r=t2(o,n);this.onDown(n,r),this.addDocumentMouseEvents()},onTouchStart(n){if(Jw(n))return;const o=this.vertical,r=n2(o,n);this.onDown(n,r),this.addDocumentTouchEvents(),Da(n)},onFocus(n){const{vertical:o}=this;if(Hh(n,this.handlesRefs)&&!this.dragTrack){const r=o2(o,n.target);this.dragOffset=0,this.onStart(r),Da(n),this.$emit("focus",n)}},onBlur(n){this.dragTrack||this.onEnd(),this.$emit("blur",n)},onMouseUp(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove(n){if(!this.sliderRef){this.onEnd();return}const o=t2(this.vertical,n);this.onMove(n,o-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove(n){if(Jw(n)||!this.sliderRef){this.onEnd();return}const o=n2(this.vertical,n);this.onMove(n,o-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown(n){this.sliderRef&&Hh(n,this.handlesRefs)&&this.onKeyboard(n)},onClickMarkLabel(n,o){n.stopPropagation(),this.onChange({sValue:o}),this.setState({sValue:o},()=>this.onEnd(!0))},getSliderStart(){const n=this.sliderRef,{vertical:o,reverse:r}=this,i=n.getBoundingClientRect();return o?r?i.bottom:i.top:window.scrollX+(r?i.right:i.left)},getSliderLength(){const n=this.sliderRef;if(!n)return 0;const o=n.getBoundingClientRect();return this.vertical?o.height:o.width},addDocumentTouchEvents(){this.onTouchMoveListener=Et(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=Et(this.document,"touchend",this.onEnd)},addDocumentMouseEvents(){this.onMouseMoveListener=Et(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=Et(this.document,"mouseup",this.onEnd)},removeDocumentEvents(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},focus(){var n;this.$props.disabled||(n=this.handlesRefs[0])===null||n===void 0||n.focus()},blur(){this.$props.disabled||Object.keys(this.handlesRefs).forEach(n=>{var o,r;(r=(o=this.handlesRefs[n])===null||o===void 0?void 0:o.blur)===null||r===void 0||r.call(o)})},calcValue(n){const{vertical:o,min:r,max:i}=this,l=Math.abs(Math.max(n,0)/this.getSliderLength());return o?(1-l)*(i-r)+r:l*(i-r)+r},calcValueByPos(n){const r=(this.reverse?-1:1)*(n-this.getSliderStart());return this.trimAlignValue(this.calcValue(r))},calcOffset(n){const{min:o,max:r}=this,i=(n-o)/(r-o);return Math.max(0,i*100)},saveSlider(n){this.sliderRef=n},saveHandle(n,o){this.handlesRefs[n]=o}},render(){const{prefixCls:n,marks:o,dots:r,step:i,included:l,disabled:a,vertical:s,reverse:u,min:c,max:d,maximumTrackStyle:f,railStyle:g,dotStyle:v,activeDotStyle:h,id:b}=this,{class:y,style:S}=this.$attrs,{tracks:$,handles:x}=this.renderSlider(),C=le(n,y,{[`${n}-with-marks`]:Object.keys(o).length,[`${n}-disabled`]:a,[`${n}-vertical`]:s,[`${n}-horizontal`]:!s}),O={vertical:s,marks:o,included:l,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:d,min:c,reverse:u,class:`${n}-mark`,onClickLabel:a?Xi:this.onClickMarkLabel},w={[Yt?"onTouchstartPassive":"onTouchstart"]:a?Xi:this.onTouchStart};return p("div",D(D({id:b,ref:this.saveSlider,tabindex:"-1",class:C},w),{},{onMousedown:a?Xi:this.onMouseDown,onMouseup:a?Xi:this.onMouseUp,onKeydown:a?Xi:this.onKeyDown,onFocus:a?Xi:this.onFocus,onBlur:a?Xi:this.onBlur,style:S}),[p("div",{class:`${n}-rail`,style:m(m({},f),g)},null),$,p(aT,{prefixCls:n,vertical:s,reverse:u,marks:o,dots:r,step:i,included:l,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:d,min:c,dotStyle:v,activeDotStyle:h},null),x,p(sT,O,{mark:this.$slots.mark}),lp(this)])}})}const Cre=oe({compatConfig:{MODE:3},name:"Slider",mixins:[Al],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:W.oneOfType([W.number,W.string]),reverse:{type:Boolean,default:void 0},min:Number,max:Number,ariaLabelForHandle:String,ariaLabelledByForHandle:String,ariaValueTextFormatterForHandle:String,startPoint:Number},emits:["beforeChange","afterChange","change"],data(){const e=this.defaultValue!==void 0?this.defaultValue:this.min,t=this.value!==void 0?this.value:e;return{sValue:this.trimAlignValue(t),dragging:!1}},watch:{value:{handler(e){this.setChangeValue(e)},deep:!0},min(){const{sValue:e}=this;this.setChangeValue(e)},max(){const{sValue:e}=this;this.setChangeValue(e)}},methods:{setChangeValue(e){const t=e!==void 0?e:this.sValue,n=this.trimAlignValue(t,this.$props);n!==this.sValue&&(this.setState({sValue:n}),uT(t,this.$props)&&this.$emit("change",n))},onChange(e){const t=!Ar(this,"value"),n=e.sValue>this.max?m(m({},e),{sValue:this.max}):e;t&&this.setState(n);const o=n.sValue;this.$emit("change",o)},onStart(e){this.setState({dragging:!0});const{sValue:t}=this;this.$emit("beforeChange",t);const n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e,n!==t&&(this.prevMovedHandleIndex=0,this.onChange({sValue:n}))},onEnd(e){const{dragging:t}=this;this.removeDocumentEvents(),(t||e)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove(e,t){Da(e);const{sValue:n}=this,o=this.calcValueByPos(t);o!==n&&this.onChange({sValue:o})},onKeyboard(e){const{reverse:t,vertical:n}=this.$props,o=pT(e,n,t);if(o){Da(e);const{sValue:r}=this,i=o(r,this.$props),l=this.trimAlignValue(i);if(l===r)return;this.onChange({sValue:l}),this.$emit("afterChange",l),this.onEnd()}},getLowerBound(){const e=this.$props.startPoint||this.$props.min;return this.$data.sValue>e?e:this.$data.sValue},getUpperBound(){return this.$data.sValue1&&arguments[1]!==void 0?arguments[1]:{};if(e===null)return null;const n=m(m({},this.$props),t),o=Jy(e,n);return fT(o,n)},getTrack(e){let{prefixCls:t,reverse:n,vertical:o,included:r,minimumTrackStyle:i,mergedTrackStyle:l,length:a,offset:s}=e;return p(Qy,{class:`${t}-track`,vertical:o,included:r,offset:s,reverse:n,length:a,style:m(m({},i),l)},null)},renderSlider(){const{prefixCls:e,vertical:t,included:n,disabled:o,minimumTrackStyle:r,trackStyle:i,handleStyle:l,tabindex:a,ariaLabelForHandle:s,ariaLabelledByForHandle:u,ariaValueTextFormatterForHandle:c,min:d,max:f,startPoint:g,reverse:v,handle:h,defaultHandle:b}=this,y=h||b,{sValue:S,dragging:$}=this,x=this.calcOffset(S),C=y({class:`${e}-handle`,prefixCls:e,vertical:t,offset:x,value:S,dragging:$,disabled:o,min:d,max:f,reverse:v,index:0,tabindex:a,ariaLabel:s,ariaLabelledBy:u,ariaValueTextFormatter:c,style:l[0]||l,ref:I=>this.saveHandle(0,I),onFocus:this.onFocus,onBlur:this.onBlur}),O=g!==void 0?this.calcOffset(g):0,w=i[0]||i;return{tracks:this.getTrack({prefixCls:e,reverse:v,vertical:t,included:n,offset:O,minimumTrackStyle:r,mergedTrackStyle:w,length:x-O}),handles:C}}}}),xre=gT(Cre),fs=e=>{let{value:t,handle:n,bounds:o,props:r}=e;const{allowCross:i,pushable:l}=r,a=Number(l),s=Jy(t,r);let u=s;return!i&&n!=null&&o!==void 0&&(n>0&&s<=o[n-1]+a&&(u=o[n-1]+a),n=o[n+1]-a&&(u=o[n+1]-a)),fT(u,r)},wre={defaultValue:W.arrayOf(W.number),value:W.arrayOf(W.number),count:Number,pushable:$P(W.oneOfType([W.looseBool,W.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:W.arrayOf(W.number),prefixCls:String,min:Number,max:Number,autofocus:{type:Boolean,default:void 0},ariaLabelGroupForHandles:Array,ariaLabelledByGroupForHandles:Array,ariaValueTextFormatterGroupForHandles:Array,draggableTrack:{type:Boolean,default:void 0}},Ore=oe({compatConfig:{MODE:3},name:"Range",mixins:[Al],inheritAttrs:!1,props:Ze(wre,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:["beforeChange","afterChange","change"],displayName:"Range",data(){const{count:e,min:t,max:n}=this,o=Array(...Array(e+1)).map(()=>t),r=Ar(this,"defaultValue")?this.defaultValue:o;let{value:i}=this;i===void 0&&(i=r);const l=i.map((s,u)=>fs({value:s,handle:u,props:this.$props}));return{sHandle:null,recent:l[0]===n?0:l.length-1,bounds:l}},watch:{value:{handler(e){const{bounds:t}=this;this.setChangeValue(e||t)},deep:!0},min(){const{value:e}=this;this.setChangeValue(e||this.bounds)},max(){const{value:e}=this;this.setChangeValue(e||this.bounds)}},methods:{setChangeValue(e){const{bounds:t}=this;let n=e.map((o,r)=>fs({value:o,handle:r,bounds:t,props:this.$props}));if(t.length===n.length){if(n.every((o,r)=>o===t[r]))return null}else n=e.map((o,r)=>fs({value:o,handle:r,props:this.$props}));if(this.setState({bounds:n}),e.some(o=>uT(o,this.$props))){const o=e.map(r=>Jy(r,this.$props));this.$emit("change",o)}},onChange(e){if(!Ar(this,"value"))this.setState(e);else{const r={};["sHandle","recent"].forEach(i=>{e[i]!==void 0&&(r[i]=e[i])}),Object.keys(r).length&&this.setState(r)}const o=m(m({},this.$data),e).bounds;this.$emit("change",o)},positionGetValue(e){const t=this.getValue(),n=this.calcValueByPos(e),o=this.getClosestBound(n),r=this.getBoundNeedMoving(n,o),i=t[r];if(n===i)return null;const l=[...t];return l[r]=n,l},onStart(e){const{bounds:t}=this;this.$emit("beforeChange",t);const n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e;const o=this.getClosestBound(n);this.prevMovedHandleIndex=this.getBoundNeedMoving(n,o),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex});const r=t[this.prevMovedHandleIndex];if(n===r)return;const i=[...t];i[this.prevMovedHandleIndex]=n,this.onChange({bounds:i})},onEnd(e){const{sHandle:t}=this;this.removeDocumentEvents(),t||(this.dragTrack=!1),(t!==null||e)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove(e,t,n,o){Da(e);const{$data:r,$props:i}=this,l=i.max||100,a=i.min||0;if(n){let f=i.vertical?-t:t;f=i.reverse?-f:f;const g=l-Math.max(...o),v=a-Math.min(...o),h=Math.min(Math.max(f/(this.getSliderLength()/100),v),g),b=o.map(y=>Math.floor(Math.max(Math.min(y+h,l),a)));r.bounds.map((y,S)=>y===b[S]).some(y=>!y)&&this.onChange({bounds:b});return}const{bounds:s,sHandle:u}=this,c=this.calcValueByPos(t),d=s[u];c!==d&&this.moveTo(c)},onKeyboard(e){const{reverse:t,vertical:n}=this.$props,o=pT(e,n,t);if(o){Da(e);const{bounds:r,sHandle:i}=this,l=r[i===null?this.recent:i],a=o(l,this.$props),s=fs({value:a,handle:i,bounds:r,props:this.$props});if(s===l)return;this.moveTo(s,!0)}},getClosestBound(e){const{bounds:t}=this;let n=0;for(let o=1;o=t[o]&&(n=o);return Math.abs(t[n+1]-e)a-s),this.internalPointsCache={marks:e,step:t,points:l}}return this.internalPointsCache.points},moveTo(e,t){const n=[...this.bounds],{sHandle:o,recent:r}=this,i=o===null?r:o;n[i]=e;let l=i;this.$props.pushable!==!1?this.pushSurroundingHandles(n,l):this.$props.allowCross&&(n.sort((a,s)=>a-s),l=n.indexOf(e)),this.onChange({recent:l,sHandle:l,bounds:n}),t&&(this.$emit("afterChange",n),this.setState({},()=>{this.handlesRefs[l].focus()}),this.onEnd())},pushSurroundingHandles(e,t){const n=e[t],{pushable:o}=this,r=Number(o);let i=0;if(e[t+1]-n=o.length||i<0)return!1;const l=t+n,a=o[i],{pushable:s}=this,u=Number(s),c=n*(e[l]-a);return this.pushHandle(e,l,n,u-c)?(e[t]=a,!0):!1},trimAlignValue(e){const{sHandle:t,bounds:n}=this;return fs({value:e,handle:t,bounds:n,props:this.$props})},ensureValueNotConflict(e,t,n){let{allowCross:o,pushable:r}=n;const i=this.$data||{},{bounds:l}=i;if(e=e===void 0?i.sHandle:e,r=Number(r),!o&&e!=null&&l!==void 0){if(e>0&&t<=l[e-1]+r)return l[e-1]+r;if(e=l[e+1]-r)return l[e+1]-r}return t},getTrack(e){let{bounds:t,prefixCls:n,reverse:o,vertical:r,included:i,offsets:l,trackStyle:a}=e;return t.slice(0,-1).map((s,u)=>{const c=u+1,d=le({[`${n}-track`]:!0,[`${n}-track-${c}`]:!0});return p(Qy,{class:d,vertical:r,reverse:o,included:i,offset:l[c-1],length:l[c]-l[c-1],style:a[u],key:c},null)})},renderSlider(){const{sHandle:e,bounds:t,prefixCls:n,vertical:o,included:r,disabled:i,min:l,max:a,reverse:s,handle:u,defaultHandle:c,trackStyle:d,handleStyle:f,tabindex:g,ariaLabelGroupForHandles:v,ariaLabelledByGroupForHandles:h,ariaValueTextFormatterGroupForHandles:b}=this,y=u||c,S=t.map(C=>this.calcOffset(C)),$=`${n}-handle`,x=t.map((C,O)=>{let w=g[O]||0;(i||g[O]===null)&&(w=null);const I=e===O;return y({class:le({[$]:!0,[`${$}-${O+1}`]:!0,[`${$}-dragging`]:I}),prefixCls:n,vertical:o,dragging:I,offset:S[O],value:C,index:O,tabindex:w,min:l,max:a,reverse:s,disabled:i,style:f[O],ref:T=>this.saveHandle(O,T),onFocus:this.onFocus,onBlur:this.onBlur,ariaLabel:v[O],ariaLabelledBy:h[O],ariaValueTextFormatter:b[O]})});return{tracks:this.getTrack({bounds:t,prefixCls:n,reverse:s,vertical:o,included:r,offsets:S,trackStyle:d}),handles:x}}}}),Pre=gT(Ore),Ire=oe({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:V6(),setup(e,t){let{attrs:n,slots:o}=t;const r=re(null),i=re(null);function l(){qe.cancel(i.value),i.value=null}function a(){i.value=qe(()=>{var u;(u=r.value)===null||u===void 0||u.forcePopupAlign(),i.value=null})}const s=()=>{l(),e.open&&a()};return ye([()=>e.open,()=>e.title],()=>{s()},{flush:"post",immediate:!0}),Zf(()=>{s()}),Qe(()=>{l()}),()=>p(Qn,D(D({ref:r},e),n),o)}}),Tre=e=>{const{componentCls:t,controlSize:n,dotSize:o,marginFull:r,marginPart:i,colorFillContentHover:l}=e;return{[t]:m(m({},Ue(e)),{position:"relative",height:n,margin:`${i}px ${r}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${r}px ${i}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.colorFillTertiary,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.colorPrimaryBorder,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.colorFillSecondary},[`${t}-track`]:{backgroundColor:e.colorPrimaryBorderHover},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.colorPrimary}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+e.handleLineWidth*2,height:e.handleSize+e.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorder}`,borderRadius:"50%",cursor:"pointer",transition:` + a ${l},${l} 0 1 1 ${-u},${c}`,f=Math.PI*2*l,g={stroke:n,strokeDasharray:`${t/100*(f-r)}px ${f}px`,strokeDashoffset:`-${r/2+e/100*(f-r)}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:d,pathStyle:g}}const Toe=oe({compatConfig:{MODE:3},name:"VCCircle",props:Ze(Poe,woe),setup(e){Xw+=1;const t=re(Xw),n=P(()=>Yw(e.percent)),o=P(()=>Yw(e.strokeColor)),[r,i]=cy();Ooe(i);const l=()=>{const{prefixCls:a,strokeWidth:s,strokeLinecap:u,gapDegree:c,gapPosition:d}=e;let f=0;return n.value.map((g,v)=>{const h=o.value[v]||o.value[o.value.length-1],b=Object.prototype.toString.call(h)==="[object Object]"?`url(#${a}-gradient-${t.value})`:"",{pathString:y,pathStyle:S}=qw(f,g,h,s,c,d);f+=g;const $={key:v,d:y,stroke:b,"stroke-linecap":u,"stroke-width":s,opacity:g===0?0:1,"fill-opacity":"0",class:`${a}-circle-path`,style:S};return p("path",D({ref:r(v)},$),null)})};return()=>{const{prefixCls:a,strokeWidth:s,trailWidth:u,gapDegree:c,gapPosition:d,trailColor:f,strokeLinecap:g,strokeColor:v}=e,h=Ioe(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"]),{pathString:b,pathStyle:y}=qw(0,100,f,s,c,d);delete h.percent;const S=o.value.find(x=>Object.prototype.toString.call(x)==="[object Object]"),$={d:b,stroke:f,"stroke-linecap":g,"stroke-width":u||s,"fill-opacity":"0",class:`${a}-circle-trail`,style:y};return p("svg",D({class:`${a}-circle`,viewBox:"0 0 100 100"},h),[S&&p("defs",null,[p("linearGradient",{id:`${a}-gradient-${t.value}`,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(S).sort((x,C)=>Uw(x)-Uw(C)).map((x,C)=>p("stop",{key:C,offset:x,"stop-color":S[x]},null))])]),p("path",$,null),l().reverse()])}}}),Eoe=()=>m(m({},ug()),{strokeColor:yt()}),Moe=3,_oe=e=>Moe/e*100,Aoe=oe({compatConfig:{MODE:3},name:"ProgressCircle",inheritAttrs:!1,props:Ze(Eoe(),{trailColor:null}),setup(e,t){let{slots:n,attrs:o}=t;const r=P(()=>{var h;return(h=e.width)!==null&&h!==void 0?h:120}),i=P(()=>{var h;return(h=e.size)!==null&&h!==void 0?h:[r.value,r.value]}),l=P(()=>dg(i.value,"circle")),a=P(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),s=P(()=>({width:`${l.value.width}px`,height:`${l.value.height}px`,fontSize:`${l.value.width*.15+6}px`})),u=P(()=>{var h;return(h=e.strokeWidth)!==null&&h!==void 0?h:Math.max(_oe(l.value.width),6)}),c=P(()=>e.gapPosition||e.type==="dashboard"&&"bottom"||void 0),d=P(()=>moe(e)),f=P(()=>Object.prototype.toString.call(e.strokeColor)==="[object Object]"),g=P(()=>boe({success:e.success,strokeColor:e.strokeColor})),v=P(()=>({[`${e.prefixCls}-inner`]:!0,[`${e.prefixCls}-circle-gradient`]:f.value}));return()=>{var h;const b=p(Toe,{percent:d.value,strokeWidth:u.value,trailWidth:u.value,strokeColor:g.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:a.value,gapPosition:c.value},null);return p("div",D(D({},o),{},{class:[v.value,o.class],style:[o.style,s.value]}),[l.value.width<=20?p(Qn,null,{default:()=>[p("span",null,[b])],title:n.default}):p(Ve,null,[b,(h=n.default)===null||h===void 0?void 0:h.call(n)])])}}}),Roe=()=>m(m({},ug()),{steps:Number,strokeColor:Fe(),trailColor:String}),Doe=oe({compatConfig:{MODE:3},name:"Steps",props:Roe(),setup(e,t){let{slots:n}=t;const o=P(()=>Math.round(e.steps*((e.percent||0)/100))),r=P(()=>{var a;return(a=e.size)!==null&&a!==void 0?a:[e.size==="small"?2:14,e.strokeWidth||8]}),i=P(()=>dg(r.value,"step",{steps:e.steps,strokeWidth:e.strokeWidth||8})),l=P(()=>{const{steps:a,strokeColor:s,trailColor:u,prefixCls:c}=e,d=[];for(let f=0;f{var a;return p("div",{class:`${e.prefixCls}-steps-outer`},[l.value,(a=n.default)===null||a===void 0?void 0:a.call(n)])}}}),Noe=new nt("antProgressActive",{"0%":{transform:"translateX(-100%) scaleX(0)",opacity:.1},"20%":{transform:"translateX(-100%) scaleX(0)",opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}}),Boe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:m(m({},Ue(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:Noe,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},koe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:`${e.fontSize/e.fontSizeSM}em`}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},Foe=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},Loe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},zoe=Ke("Progress",e=>{const t=e.marginXXS/2,n=ke(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Boe(n),koe(n),Foe(n),Loe(n)]});var Hoe=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rArray.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor),u=P(()=>{const{percent:v=0}=e,h=Nf(e);return parseInt(h!==void 0?h.toString():v.toString(),10)}),c=P(()=>{const{status:v}=e;return!voe.includes(v)&&u.value>=100?"success":v||"normal"}),d=P(()=>{const{type:v,showInfo:h,size:b}=e,y=r.value;return{[y]:!0,[`${y}-inline-circle`]:v==="circle"&&dg(b,"circle").width<=20,[`${y}-${v==="dashboard"&&"circle"||v}`]:!0,[`${y}-status-${c.value}`]:!0,[`${y}-show-info`]:h,[`${y}-${b}`]:b,[`${y}-rtl`]:i.value==="rtl",[a.value]:!0}}),f=P(()=>typeof e.strokeColor=="string"||Array.isArray(e.strokeColor)?e.strokeColor:void 0),g=()=>{const{showInfo:v,format:h,type:b,percent:y,title:S}=e,$=Nf(e);if(!v)return null;let x;const C=h||n?.format||(w=>`${w}%`),O=b==="line";return h||n?.format||c.value!=="exception"&&c.value!=="success"?x=C(hl(y),hl($)):c.value==="exception"?x=p(O?Dn:Rn,null,null):c.value==="success"&&(x=p(O?Jo:ja,null,null)),p("span",{class:`${r.value}-text`,title:S===void 0&&typeof x=="string"?x:void 0},[x])};return()=>{const{type:v,steps:h,title:b}=e,{class:y}=o,S=Hoe(o,["class"]),$=g();let x;return v==="line"?x=h?p(Doe,D(D({},e),{},{strokeColor:f.value,prefixCls:r.value,steps:h}),{default:()=>[$]}):p(xoe,D(D({},e),{},{strokeColor:s.value,prefixCls:r.value,direction:i.value}),{default:()=>[$]}):(v==="circle"||v==="dashboard")&&(x=p(Aoe,D(D({},e),{},{prefixCls:r.value,strokeColor:s.value,progressStatus:c.value}),{default:()=>[$]})),l(p("div",D(D({role:"progressbar"},S),{},{class:[d.value,y],title:b}),[x]))}}}),Yy=It(joe);function Voe(e){let t=e.scrollX;const n="scrollLeft";if(typeof t!="number"){const o=e.document;t=o.documentElement[n],typeof t!="number"&&(t=o.body[n])}return t}function Woe(e){let t,n;const o=e.ownerDocument,{body:r}=o,i=o&&o.documentElement,l=e.getBoundingClientRect();return t=l.left,n=l.top,t-=i.clientLeft||r.clientLeft||0,n-=i.clientTop||r.clientTop||0,{left:t,top:n}}function Koe(e){const t=Woe(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=Voe(o),t.left}var Goe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"};function Zw(e){for(var t=1;t{const{index:s}=e;n("hover",a,s)},r=a=>{const{index:s}=e;n("click",a,s)},i=a=>{const{index:s}=e;a.keyCode===13&&n("click",a,s)},l=P(()=>{const{prefixCls:a,index:s,value:u,allowHalf:c,focused:d}=e,f=s+1;let g=a;return u===0&&s===0&&d?g+=` ${a}-focused`:c&&u+.5>=f&&u{const{disabled:a,prefixCls:s,characterRender:u,character:c,index:d,count:f,value:g}=e,v=typeof c=="function"?c({disabled:a,prefixCls:s,index:d,count:f,value:g}):c;let h=p("li",{class:l.value},[p("div",{onClick:a?null:r,onKeydown:a?null:i,onMousemove:a?null:o,role:"radio","aria-checked":g>d?"true":"false","aria-posinset":d+1,"aria-setsize":f,tabindex:a?-1:0},[p("div",{class:`${s}-first`},[v]),p("div",{class:`${s}-second`},[v])])]);return u&&(h=u(h,e)),h}}}),qoe=e=>{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.rateStarHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${e.lineWidth}px dashed ${e.rateStarColor}`,transform:e.rateStarHoverScale}},"&-first, &-second":{color:e.defaultColor,transition:`all ${e.motionDurationMid}`,userSelect:"none",[e.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:"inherit"}}}},Zoe=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),Qoe=e=>{const{componentCls:t}=e;return{[t]:m(m(m(m(m({},Ue(e)),{display:"inline-block",margin:0,padding:0,color:e.rateStarColor,fontSize:e.rateStarSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","&:hover":{transform:"scale(1)"}}}),qoe(e)),{[`+ ${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,fontSize:e.fontSize}}),Zoe(e))}},Joe=Ke("Rate",e=>{const{colorFillContent:t}=e,n=ke(e,{rateStarColor:e["yellow-6"],rateStarSize:e.controlHeightLG*.5,rateStarHoverScale:"scale(1.1)",defaultColor:t});return[Qoe(n)]}),ere=()=>({prefixCls:String,count:Number,value:Number,allowHalf:{type:Boolean,default:void 0},allowClear:{type:Boolean,default:void 0},tooltips:Array,disabled:{type:Boolean,default:void 0},character:W.any,autofocus:{type:Boolean,default:void 0},tabindex:W.oneOfType([W.number,W.string]),direction:String,id:String,onChange:Function,onHoverChange:Function,"onUpdate:value":Function,onFocus:Function,onBlur:Function,onKeydown:Function}),tre=oe({compatConfig:{MODE:3},name:"ARate",inheritAttrs:!1,props:Ze(ere(),{value:0,count:5,allowHalf:!1,allowClear:!0,tabindex:0,direction:"ltr"}),setup(e,t){let{slots:n,attrs:o,emit:r,expose:i}=t;const{prefixCls:l,direction:a}=Te("rate",e),[s,u]=Joe(l),c=Qt(),d=re(),[f,g]=cy(),v=ct({value:e.value,focused:!1,cleanedValue:null,hoverValue:void 0});ye(()=>e.value,()=>{v.value=e.value});const h=E=>Hn(g.value.get(E)),b=(E,A)=>{const R=a.value==="rtl";let z=E+1;if(e.allowHalf){const M=h(E),N=Koe(M),B=M.clientWidth;(R&&A-N>B/2||!R&&A-N{e.value===void 0&&(v.value=E),r("update:value",E),r("change",E),c.onFieldChange()},S=(E,A)=>{const R=b(A,E.pageX);R!==v.cleanedValue&&(v.hoverValue=R,v.cleanedValue=null),r("hoverChange",R)},$=()=>{v.hoverValue=void 0,v.cleanedValue=null,r("hoverChange",void 0)},x=(E,A)=>{const{allowClear:R}=e,z=b(A,E.pageX);let M=!1;R&&(M=z===v.value),$(),y(M?0:z),v.cleanedValue=M?z:null},C=E=>{v.focused=!0,r("focus",E)},O=E=>{v.focused=!1,r("blur",E),c.onFieldBlur()},w=E=>{const{keyCode:A}=E,{count:R,allowHalf:z}=e,M=a.value==="rtl";A===Pe.RIGHT&&v.value0&&!M||A===Pe.RIGHT&&v.value>0&&M?(z?v.value-=.5:v.value-=1,y(v.value),E.preventDefault()):A===Pe.LEFT&&v.value{e.disabled||d.value.focus()};i({focus:I,blur:()=>{e.disabled||d.value.blur()}}),je(()=>{const{autofocus:E,disabled:A}=e;E&&!A&&I()});const _=(E,A)=>{let{index:R}=A;const{tooltips:z}=e;return z?p(Qn,{title:z[R]},{default:()=>[E]}):E};return()=>{const{count:E,allowHalf:A,disabled:R,tabindex:z,id:M=c.id.value}=e,{class:N,style:B}=o,k=[],F=R?`${l.value}-disabled`:"",L=e.character||n.character||(()=>p(qy,null,null));for(let j=0;jp("svg",{width:"252",height:"294"},[p("defs",null,[p("path",{d:"M0 .387h251.772v251.772H0z"},null)]),p("g",{fill:"none","fill-rule":"evenodd"},[p("g",{transform:"translate(0 .012)"},[p("mask",{fill:"#fff"},null),p("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"},null)]),p("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"},null),p("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF","stroke-width":"2"},null),p("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"},null),p("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"},null),p("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF","stroke-width":"2"},null),p("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"},null),p("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF","stroke-width":"2"},null),p("path",{stroke:"#FFF","stroke-width":"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"},null),p("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"},null),p("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"},null),p("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"},null),p("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"},null),p("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"},null),p("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"},null),p("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"},null),p("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"},null),p("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"},null),p("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"},null),p("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"},null),p("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"},null),p("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"},null),p("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"},null),p("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"},null),p("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"},null),p("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"},null),p("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"},null),p("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"},null),p("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"},null),p("path",{stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"},null),p("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E","stroke-width":"1.118","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"},null),p("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"},null),p("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"},null),p("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"},null),p("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"},null),p("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"},null),p("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"},null),p("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"},null),p("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"},null),p("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"},null),p("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"},null),p("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7","stroke-width":"1.101","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),lre=()=>p("svg",{width:"254",height:"294"},[p("defs",null,[p("path",{d:"M0 .335h253.49v253.49H0z"},null),p("path",{d:"M0 293.665h253.49V.401H0z"},null)]),p("g",{fill:"none","fill-rule":"evenodd"},[p("g",{transform:"translate(0 .067)"},[p("mask",{fill:"#fff"},null),p("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"},null)]),p("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"},null),p("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF","stroke-width":"2"},null),p("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"},null),p("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"},null),p("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"},null),p("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"},null),p("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"},null),p("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"},null),p("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"},null),p("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"},null),p("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"},null),p("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"},null),p("path",{stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"},null),p("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552","stroke-width":"1.117","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E","stroke-width":"1.063","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7","stroke-width":"1.136","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"},null),p("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"},null),p("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"},null),p("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"},null),p("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"},null),p("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"},null),p("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"},null),p("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"},null),p("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"},null),p("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"},null),p("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"},null),p("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"},null),p("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8","stroke-width":"1.032","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"},null),p("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"},null),p("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"},null),p("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"},null),p("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"},null),p("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7","stroke-width":"1.085","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788","stroke-width":".774","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"},null),p("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"},null),p("mask",{fill:"#fff"},null),p("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"},null),p("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"},null),p("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),p("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"},null),p("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),p("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"},null),p("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"},null),p("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6","stroke-width":"1.124","stroke-linecap":"round","stroke-linejoin":"round",mask:"url(#d)"},null),p("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"},null),p("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"},null),p("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"},null)])]),are=()=>p("svg",{width:"251",height:"294"},[p("g",{fill:"none","fill-rule":"evenodd"},[p("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"},null),p("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"},null),p("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF","stroke-width":"2"},null),p("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"},null),p("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"},null),p("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF","stroke-width":"2"},null),p("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"},null),p("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF","stroke-width":"2"},null),p("path",{stroke:"#FFF","stroke-width":"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"},null),p("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"},null),p("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"},null),p("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"},null),p("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"},null),p("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"},null),p("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"},null),p("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"},null),p("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"},null),p("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"},null),p("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"},null),p("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"},null),p("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7","stroke-width":".932","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"},null),p("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"},null),p("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"},null),p("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"},null),p("path",{stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"},null),p("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"},null),p("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"},null),p("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552","stroke-width":"1.526","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E","stroke-width":"1.145","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7","stroke-width":"1.114","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E","stroke-width":".795","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"},null),p("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E","stroke-width":".75","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"},null),p("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"},null),p("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"},null),p("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"},null),p("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"},null),p("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"},null),p("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"},null),p("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null),p("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"},null),p("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"},null),p("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"},null),p("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8","stroke-width":"1.051","stroke-linecap":"round","stroke-linejoin":"round"},null)])]),sre=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:o,padding:r,paddingXL:i,paddingXS:l,paddingLG:a,marginXS:s,lineHeight:u}=e;return{[t]:{padding:`${a*2}px ${i}px`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:a,textAlign:"center",[`& > ${o}`]:{fontSize:e.resultIconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.resultTitleFontSize,lineHeight:n,marginBlock:s,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.resultSubtitleFontSize,lineHeight:u,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:a,padding:`${a}px ${r*2.5}px`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.resultExtraMargin,textAlign:"center","& > *":{marginInlineEnd:l,"&:last-child":{marginInlineEnd:0}}}}},cre=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},ure=e=>[sre(e),cre(e)],dre=e=>ure(e),fre=Ke("Result",e=>{const{paddingLG:t,fontSizeHeading3:n}=e,o=e.fontSize,r=`${t}px 0 0 0`,i=e.colorInfo,l=e.colorError,a=e.colorSuccess,s=e.colorWarning,u=ke(e,{resultTitleFontSize:n,resultSubtitleFontSize:o,resultIconFontSize:n*3,resultExtraMargin:r,resultInfoIconColor:i,resultErrorIconColor:l,resultSuccessIconColor:a,resultWarningIconColor:s});return[dre(u)]},{imageWidth:250,imageHeight:295}),pre={success:Jo,error:Dn,info:er,warning:Zy},Wc={404:ire,500:lre,403:are},gre=Object.keys(Wc),hre=()=>({prefixCls:String,icon:W.any,status:{type:[Number,String],default:"info"},title:W.any,subTitle:W.any,extra:W.any}),vre=(e,t)=>{let{status:n,icon:o}=t;if(gre.includes(`${n}`)){const l=Wc[n];return p("div",{class:`${e}-icon ${e}-image`},[p(l,null,null)])}const r=pre[n],i=o||p(r,null,null);return p("div",{class:`${e}-icon`},[i])},mre=(e,t)=>t&&p("div",{class:`${e}-extra`},[t]),vl=oe({compatConfig:{MODE:3},name:"AResult",inheritAttrs:!1,props:hre(),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Te("result",e),[l,a]=fre(r),s=P(()=>le(r.value,a.value,`${r.value}-${e.status}`,{[`${r.value}-rtl`]:i.value==="rtl"}));return()=>{var u,c,d,f,g,v,h,b;const y=(u=e.title)!==null&&u!==void 0?u:(c=n.title)===null||c===void 0?void 0:c.call(n),S=(d=e.subTitle)!==null&&d!==void 0?d:(f=n.subTitle)===null||f===void 0?void 0:f.call(n),$=(g=e.icon)!==null&&g!==void 0?g:(v=n.icon)===null||v===void 0?void 0:v.call(n),x=(h=e.extra)!==null&&h!==void 0?h:(b=n.extra)===null||b===void 0?void 0:b.call(n),C=r.value;return l(p("div",D(D({},o),{},{class:[s.value,o.class]}),[vre(C,{status:e.status,icon:$}),p("div",{class:`${C}-title`},[y]),S&&p("div",{class:`${C}-subtitle`},[S]),mre(C,x),n.default&&p("div",{class:`${C}-content`},[n.default()])]))}}});vl.PRESENTED_IMAGE_403=Wc[403];vl.PRESENTED_IMAGE_404=Wc[404];vl.PRESENTED_IMAGE_500=Wc[500];vl.install=function(e){return e.component(vl.name,vl),e};const bre=It($y),Qy=(e,t)=>{let{attrs:n}=t;const{included:o,vertical:r,style:i,class:l}=n;let{length:a,offset:s,reverse:u}=n;a<0&&(u=!u,a=Math.abs(a),s=100-s);const c=r?{[u?"top":"bottom"]:`${s}%`,[u?"bottom":"top"]:"auto",height:`${a}%`}:{[u?"right":"left"]:`${s}%`,[u?"left":"right"]:"auto",width:`${a}%`},d=m(m({},i),c);return o?p("div",{class:l,style:d},null):null};Qy.inheritAttrs=!1;const yre=(e,t,n,o,r,i)=>{const l=Object.keys(t).map(parseFloat).sort((a,s)=>a-s);if(n&&o)for(let a=r;a<=i;a+=o)l.indexOf(a)===-1&&l.push(a);return l},aT=(e,t)=>{let{attrs:n}=t;const{prefixCls:o,vertical:r,reverse:i,marks:l,dots:a,step:s,included:u,lowerBound:c,upperBound:d,max:f,min:g,dotStyle:v,activeDotStyle:h}=n,b=f-g,y=yre(r,l,a,s,g,f).map(S=>{const $=`${Math.abs(S-g)/b*100}%`,x=!u&&S===d||u&&S<=d&&S>=c;let C=r?m(m({},v),{[i?"top":"bottom"]:$}):m(m({},v),{[i?"right":"left"]:$});x&&(C=m(m({},C),h));const O=le({[`${o}-dot`]:!0,[`${o}-dot-active`]:x,[`${o}-dot-reverse`]:i});return p("span",{class:O,style:C,key:S},null)});return p("div",{class:`${o}-step`},[y])};aT.inheritAttrs=!1;const sT=(e,t)=>{let{attrs:n,slots:o}=t;const{class:r,vertical:i,reverse:l,marks:a,included:s,upperBound:u,lowerBound:c,max:d,min:f,onClickLabel:g}=n,v=Object.keys(a),h=o.mark,b=d-f,y=v.map(parseFloat).sort((S,$)=>S-$).map(S=>{const $=typeof a[S]=="function"?a[S]():a[S],x=typeof $=="object"&&!Kt($);let C=x?$.label:$;if(!C&&C!==0)return null;h&&(C=h({point:S,label:C}));const O=!s&&S===u||s&&S<=u&&S>=c,w=le({[`${r}-text`]:!0,[`${r}-text-active`]:O}),I={marginBottom:"-50%",[l?"top":"bottom"]:`${(S-f)/b*100}%`},T={transform:`translateX(${l?"50%":"-50%"})`,msTransform:`translateX(${l?"50%":"-50%"})`,[l?"right":"left"]:`${(S-f)/b*100}%`},_=i?I:T,E=x?m(m({},_),$.style):_,A={[Yt?"onTouchstartPassive":"onTouchstart"]:R=>g(R,S)};return p("span",D({class:w,style:E,key:S,onMousedown:R=>g(R,S)},A),[C])});return p("div",{class:r},[y])};sT.inheritAttrs=!1;const cT=oe({compatConfig:{MODE:3},name:"Handle",inheritAttrs:!1,props:{prefixCls:String,vertical:{type:Boolean,default:void 0},offset:Number,disabled:{type:Boolean,default:void 0},min:Number,max:Number,value:Number,tabindex:W.oneOfType([W.number,W.string]),reverse:{type:Boolean,default:void 0},ariaLabel:String,ariaLabelledBy:String,ariaValueTextFormatter:Function,onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function}},setup(e,t){let{attrs:n,emit:o,expose:r}=t;const i=ne(!1),l=ne(),a=()=>{document.activeElement===l.value&&(i.value=!0)},s=b=>{i.value=!1,o("blur",b)},u=()=>{i.value=!1},c=()=>{var b;(b=l.value)===null||b===void 0||b.focus()},d=()=>{var b;(b=l.value)===null||b===void 0||b.blur()},f=()=>{i.value=!0,c()},g=b=>{b.preventDefault(),c(),o("mousedown",b)};r({focus:c,blur:d,clickFocus:f,ref:l});let v=null;je(()=>{v=Et(document,"mouseup",a)}),Qe(()=>{v?.remove()});const h=P(()=>{const{vertical:b,offset:y,reverse:S}=e;return b?{[S?"top":"bottom"]:`${y}%`,[S?"bottom":"top"]:"auto",transform:S?null:"translateY(+50%)"}:{[S?"right":"left"]:`${y}%`,[S?"left":"right"]:"auto",transform:`translateX(${S?"+":"-"}50%)`}});return()=>{const{prefixCls:b,disabled:y,min:S,max:$,value:x,tabindex:C,ariaLabel:O,ariaLabelledBy:w,ariaValueTextFormatter:I,onMouseenter:T,onMouseleave:_}=e,E=le(n.class,{[`${b}-handle-click-focused`]:i.value}),A={"aria-valuemin":S,"aria-valuemax":$,"aria-valuenow":x,"aria-disabled":!!y},R=[n.style,h.value];let z=C||0;(y||C===null)&&(z=null);let M;I&&(M=I(x));const N=m(m(m(m({},n),{role:"slider",tabindex:z}),A),{class:E,onBlur:s,onKeydown:u,onMousedown:g,onMouseenter:T,onMouseleave:_,ref:l,style:R});return p("div",D(D({},N),{},{"aria-label":O,"aria-labelledby":w,"aria-valuetext":M}),null)}}});function Hh(e,t){try{return Object.keys(t).some(n=>e.target===t[n].ref)}catch{return!1}}function uT(e,t){let{min:n,max:o}=t;return eo}function Jw(e){return e.touches.length>1||e.type.toLowerCase()==="touchend"&&e.touches.length>0}function e2(e,t){let{marks:n,step:o,min:r,max:i}=t;const l=Object.keys(n).map(parseFloat);if(o!==null){const s=Math.pow(10,dT(o)),u=Math.floor((i*s-r*s)/(o*s)),c=Math.min((e-r)/o,u),d=Math.round(c)*o+r;l.push(d)}const a=l.map(s=>Math.abs(e-s));return l[a.indexOf(Math.min(...a))]}function dT(e){const t=e.toString();let n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n}function t2(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.clientY:t.pageX)/n}function n2(e,t){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(e?t.touches[0].clientY:t.touches[0].pageX)/n}function o2(e,t){const n=t.getBoundingClientRect();return e?n.top+n.height*.5:window.scrollX+n.left+n.width*.5}function Jy(e,t){let{max:n,min:o}=t;return e<=o?o:e>=n?n:e}function fT(e,t){const{step:n}=t,o=isFinite(e2(e,t))?e2(e,t):0;return n===null?o:parseFloat(o.toFixed(dT(n)))}function Da(e){e.stopPropagation(),e.preventDefault()}function Sre(e,t,n){const o={increase:(l,a)=>l+a,decrease:(l,a)=>l-a},r=o[e](Object.keys(n.marks).indexOf(JSON.stringify(t)),1),i=Object.keys(n.marks)[r];return n.step?o[e](t,n.step):Object.keys(n.marks).length&&n.marks[i]?n.marks[i]:t}function pT(e,t,n){const o="increase",r="decrease";let i=o;switch(e.keyCode){case Pe.UP:i=t&&n?r:o;break;case Pe.RIGHT:i=!t&&n?r:o;break;case Pe.DOWN:i=t&&n?o:r;break;case Pe.LEFT:i=!t&&n?o:r;break;case Pe.END:return(l,a)=>a.max;case Pe.HOME:return(l,a)=>a.min;case Pe.PAGE_UP:return(l,a)=>l+a.step*2;case Pe.PAGE_DOWN:return(l,a)=>l-a.step*2;default:return}return(l,a)=>Sre(i,l,a)}var $re=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{this.document=this.sliderRef&&this.sliderRef.ownerDocument;const{autofocus:n,disabled:o}=this;n&&!o&&this.focus()})},beforeUnmount(){this.$nextTick(()=>{this.removeDocumentEvents()})},methods:{defaultHandle(n){var{index:o,directives:r,className:i,style:l}=n,a=$re(n,["index","directives","className","style"]);if(delete a.dragging,a.value===null)return null;const s=m(m({},a),{class:i,style:l,key:o});return p(cT,s,null)},onDown(n,o){let r=o;const{draggableTrack:i,vertical:l}=this.$props,{bounds:a}=this.$data,s=i&&this.positionGetValue?this.positionGetValue(r)||[]:[],u=Hh(n,this.handlesRefs);if(this.dragTrack=i&&a.length>=2&&!u&&!s.map((c,d)=>{const f=d?!0:c>=a[d];return d===s.length-1?c<=a[d]:f}).some(c=>!c),this.dragTrack)this.dragOffset=r,this.startBounds=[...a];else{if(!u)this.dragOffset=0;else{const c=o2(l,n.target);this.dragOffset=r-c,r=c}this.onStart(r)}},onMouseDown(n){if(n.button!==0)return;this.removeDocumentEvents();const o=this.$props.vertical,r=t2(o,n);this.onDown(n,r),this.addDocumentMouseEvents()},onTouchStart(n){if(Jw(n))return;const o=this.vertical,r=n2(o,n);this.onDown(n,r),this.addDocumentTouchEvents(),Da(n)},onFocus(n){const{vertical:o}=this;if(Hh(n,this.handlesRefs)&&!this.dragTrack){const r=o2(o,n.target);this.dragOffset=0,this.onStart(r),Da(n),this.$emit("focus",n)}},onBlur(n){this.dragTrack||this.onEnd(),this.$emit("blur",n)},onMouseUp(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove(n){if(!this.sliderRef){this.onEnd();return}const o=t2(this.vertical,n);this.onMove(n,o-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove(n){if(Jw(n)||!this.sliderRef){this.onEnd();return}const o=n2(this.vertical,n);this.onMove(n,o-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown(n){this.sliderRef&&Hh(n,this.handlesRefs)&&this.onKeyboard(n)},onClickMarkLabel(n,o){n.stopPropagation(),this.onChange({sValue:o}),this.setState({sValue:o},()=>this.onEnd(!0))},getSliderStart(){const n=this.sliderRef,{vertical:o,reverse:r}=this,i=n.getBoundingClientRect();return o?r?i.bottom:i.top:window.scrollX+(r?i.right:i.left)},getSliderLength(){const n=this.sliderRef;if(!n)return 0;const o=n.getBoundingClientRect();return this.vertical?o.height:o.width},addDocumentTouchEvents(){this.onTouchMoveListener=Et(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=Et(this.document,"touchend",this.onEnd)},addDocumentMouseEvents(){this.onMouseMoveListener=Et(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=Et(this.document,"mouseup",this.onEnd)},removeDocumentEvents(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},focus(){var n;this.$props.disabled||(n=this.handlesRefs[0])===null||n===void 0||n.focus()},blur(){this.$props.disabled||Object.keys(this.handlesRefs).forEach(n=>{var o,r;(r=(o=this.handlesRefs[n])===null||o===void 0?void 0:o.blur)===null||r===void 0||r.call(o)})},calcValue(n){const{vertical:o,min:r,max:i}=this,l=Math.abs(Math.max(n,0)/this.getSliderLength());return o?(1-l)*(i-r)+r:l*(i-r)+r},calcValueByPos(n){const r=(this.reverse?-1:1)*(n-this.getSliderStart());return this.trimAlignValue(this.calcValue(r))},calcOffset(n){const{min:o,max:r}=this,i=(n-o)/(r-o);return Math.max(0,i*100)},saveSlider(n){this.sliderRef=n},saveHandle(n,o){this.handlesRefs[n]=o}},render(){const{prefixCls:n,marks:o,dots:r,step:i,included:l,disabled:a,vertical:s,reverse:u,min:c,max:d,maximumTrackStyle:f,railStyle:g,dotStyle:v,activeDotStyle:h,id:b}=this,{class:y,style:S}=this.$attrs,{tracks:$,handles:x}=this.renderSlider(),C=le(n,y,{[`${n}-with-marks`]:Object.keys(o).length,[`${n}-disabled`]:a,[`${n}-vertical`]:s,[`${n}-horizontal`]:!s}),O={vertical:s,marks:o,included:l,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:d,min:c,reverse:u,class:`${n}-mark`,onClickLabel:a?Xi:this.onClickMarkLabel},w={[Yt?"onTouchstartPassive":"onTouchstart"]:a?Xi:this.onTouchStart};return p("div",D(D({id:b,ref:this.saveSlider,tabindex:"-1",class:C},w),{},{onMousedown:a?Xi:this.onMouseDown,onMouseup:a?Xi:this.onMouseUp,onKeydown:a?Xi:this.onKeyDown,onFocus:a?Xi:this.onFocus,onBlur:a?Xi:this.onBlur,style:S}),[p("div",{class:`${n}-rail`,style:m(m({},f),g)},null),$,p(aT,{prefixCls:n,vertical:s,reverse:u,marks:o,dots:r,step:i,included:l,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:d,min:c,dotStyle:v,activeDotStyle:h},null),x,p(sT,O,{mark:this.$slots.mark}),lp(this)])}})}const Cre=oe({compatConfig:{MODE:3},name:"Slider",mixins:[Al],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:W.oneOfType([W.number,W.string]),reverse:{type:Boolean,default:void 0},min:Number,max:Number,ariaLabelForHandle:String,ariaLabelledByForHandle:String,ariaValueTextFormatterForHandle:String,startPoint:Number},emits:["beforeChange","afterChange","change"],data(){const e=this.defaultValue!==void 0?this.defaultValue:this.min,t=this.value!==void 0?this.value:e;return{sValue:this.trimAlignValue(t),dragging:!1}},watch:{value:{handler(e){this.setChangeValue(e)},deep:!0},min(){const{sValue:e}=this;this.setChangeValue(e)},max(){const{sValue:e}=this;this.setChangeValue(e)}},methods:{setChangeValue(e){const t=e!==void 0?e:this.sValue,n=this.trimAlignValue(t,this.$props);n!==this.sValue&&(this.setState({sValue:n}),uT(t,this.$props)&&this.$emit("change",n))},onChange(e){const t=!Ar(this,"value"),n=e.sValue>this.max?m(m({},e),{sValue:this.max}):e;t&&this.setState(n);const o=n.sValue;this.$emit("change",o)},onStart(e){this.setState({dragging:!0});const{sValue:t}=this;this.$emit("beforeChange",t);const n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e,n!==t&&(this.prevMovedHandleIndex=0,this.onChange({sValue:n}))},onEnd(e){const{dragging:t}=this;this.removeDocumentEvents(),(t||e)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove(e,t){Da(e);const{sValue:n}=this,o=this.calcValueByPos(t);o!==n&&this.onChange({sValue:o})},onKeyboard(e){const{reverse:t,vertical:n}=this.$props,o=pT(e,n,t);if(o){Da(e);const{sValue:r}=this,i=o(r,this.$props),l=this.trimAlignValue(i);if(l===r)return;this.onChange({sValue:l}),this.$emit("afterChange",l),this.onEnd()}},getLowerBound(){const e=this.$props.startPoint||this.$props.min;return this.$data.sValue>e?e:this.$data.sValue},getUpperBound(){return this.$data.sValue1&&arguments[1]!==void 0?arguments[1]:{};if(e===null)return null;const n=m(m({},this.$props),t),o=Jy(e,n);return fT(o,n)},getTrack(e){let{prefixCls:t,reverse:n,vertical:o,included:r,minimumTrackStyle:i,mergedTrackStyle:l,length:a,offset:s}=e;return p(Qy,{class:`${t}-track`,vertical:o,included:r,offset:s,reverse:n,length:a,style:m(m({},i),l)},null)},renderSlider(){const{prefixCls:e,vertical:t,included:n,disabled:o,minimumTrackStyle:r,trackStyle:i,handleStyle:l,tabindex:a,ariaLabelForHandle:s,ariaLabelledByForHandle:u,ariaValueTextFormatterForHandle:c,min:d,max:f,startPoint:g,reverse:v,handle:h,defaultHandle:b}=this,y=h||b,{sValue:S,dragging:$}=this,x=this.calcOffset(S),C=y({class:`${e}-handle`,prefixCls:e,vertical:t,offset:x,value:S,dragging:$,disabled:o,min:d,max:f,reverse:v,index:0,tabindex:a,ariaLabel:s,ariaLabelledBy:u,ariaValueTextFormatter:c,style:l[0]||l,ref:I=>this.saveHandle(0,I),onFocus:this.onFocus,onBlur:this.onBlur}),O=g!==void 0?this.calcOffset(g):0,w=i[0]||i;return{tracks:this.getTrack({prefixCls:e,reverse:v,vertical:t,included:n,offset:O,minimumTrackStyle:r,mergedTrackStyle:w,length:x-O}),handles:C}}}}),xre=gT(Cre),fs=e=>{let{value:t,handle:n,bounds:o,props:r}=e;const{allowCross:i,pushable:l}=r,a=Number(l),s=Jy(t,r);let u=s;return!i&&n!=null&&o!==void 0&&(n>0&&s<=o[n-1]+a&&(u=o[n-1]+a),n=o[n+1]-a&&(u=o[n+1]-a)),fT(u,r)},wre={defaultValue:W.arrayOf(W.number),value:W.arrayOf(W.number),count:Number,pushable:$P(W.oneOfType([W.looseBool,W.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:W.arrayOf(W.number),prefixCls:String,min:Number,max:Number,autofocus:{type:Boolean,default:void 0},ariaLabelGroupForHandles:Array,ariaLabelledByGroupForHandles:Array,ariaValueTextFormatterGroupForHandles:Array,draggableTrack:{type:Boolean,default:void 0}},Ore=oe({compatConfig:{MODE:3},name:"Range",mixins:[Al],inheritAttrs:!1,props:Ze(wre,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:["beforeChange","afterChange","change"],displayName:"Range",data(){const{count:e,min:t,max:n}=this,o=Array(...Array(e+1)).map(()=>t),r=Ar(this,"defaultValue")?this.defaultValue:o;let{value:i}=this;i===void 0&&(i=r);const l=i.map((s,u)=>fs({value:s,handle:u,props:this.$props}));return{sHandle:null,recent:l[0]===n?0:l.length-1,bounds:l}},watch:{value:{handler(e){const{bounds:t}=this;this.setChangeValue(e||t)},deep:!0},min(){const{value:e}=this;this.setChangeValue(e||this.bounds)},max(){const{value:e}=this;this.setChangeValue(e||this.bounds)}},methods:{setChangeValue(e){const{bounds:t}=this;let n=e.map((o,r)=>fs({value:o,handle:r,bounds:t,props:this.$props}));if(t.length===n.length){if(n.every((o,r)=>o===t[r]))return null}else n=e.map((o,r)=>fs({value:o,handle:r,props:this.$props}));if(this.setState({bounds:n}),e.some(o=>uT(o,this.$props))){const o=e.map(r=>Jy(r,this.$props));this.$emit("change",o)}},onChange(e){if(!Ar(this,"value"))this.setState(e);else{const r={};["sHandle","recent"].forEach(i=>{e[i]!==void 0&&(r[i]=e[i])}),Object.keys(r).length&&this.setState(r)}const o=m(m({},this.$data),e).bounds;this.$emit("change",o)},positionGetValue(e){const t=this.getValue(),n=this.calcValueByPos(e),o=this.getClosestBound(n),r=this.getBoundNeedMoving(n,o),i=t[r];if(n===i)return null;const l=[...t];return l[r]=n,l},onStart(e){const{bounds:t}=this;this.$emit("beforeChange",t);const n=this.calcValueByPos(e);this.startValue=n,this.startPosition=e;const o=this.getClosestBound(n);this.prevMovedHandleIndex=this.getBoundNeedMoving(n,o),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex});const r=t[this.prevMovedHandleIndex];if(n===r)return;const i=[...t];i[this.prevMovedHandleIndex]=n,this.onChange({bounds:i})},onEnd(e){const{sHandle:t}=this;this.removeDocumentEvents(),t||(this.dragTrack=!1),(t!==null||e)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove(e,t,n,o){Da(e);const{$data:r,$props:i}=this,l=i.max||100,a=i.min||0;if(n){let f=i.vertical?-t:t;f=i.reverse?-f:f;const g=l-Math.max(...o),v=a-Math.min(...o),h=Math.min(Math.max(f/(this.getSliderLength()/100),v),g),b=o.map(y=>Math.floor(Math.max(Math.min(y+h,l),a)));r.bounds.map((y,S)=>y===b[S]).some(y=>!y)&&this.onChange({bounds:b});return}const{bounds:s,sHandle:u}=this,c=this.calcValueByPos(t),d=s[u];c!==d&&this.moveTo(c)},onKeyboard(e){const{reverse:t,vertical:n}=this.$props,o=pT(e,n,t);if(o){Da(e);const{bounds:r,sHandle:i}=this,l=r[i===null?this.recent:i],a=o(l,this.$props),s=fs({value:a,handle:i,bounds:r,props:this.$props});if(s===l)return;this.moveTo(s,!0)}},getClosestBound(e){const{bounds:t}=this;let n=0;for(let o=1;o=t[o]&&(n=o);return Math.abs(t[n+1]-e)a-s),this.internalPointsCache={marks:e,step:t,points:l}}return this.internalPointsCache.points},moveTo(e,t){const n=[...this.bounds],{sHandle:o,recent:r}=this,i=o===null?r:o;n[i]=e;let l=i;this.$props.pushable!==!1?this.pushSurroundingHandles(n,l):this.$props.allowCross&&(n.sort((a,s)=>a-s),l=n.indexOf(e)),this.onChange({recent:l,sHandle:l,bounds:n}),t&&(this.$emit("afterChange",n),this.setState({},()=>{this.handlesRefs[l].focus()}),this.onEnd())},pushSurroundingHandles(e,t){const n=e[t],{pushable:o}=this,r=Number(o);let i=0;if(e[t+1]-n=o.length||i<0)return!1;const l=t+n,a=o[i],{pushable:s}=this,u=Number(s),c=n*(e[l]-a);return this.pushHandle(e,l,n,u-c)?(e[t]=a,!0):!1},trimAlignValue(e){const{sHandle:t,bounds:n}=this;return fs({value:e,handle:t,bounds:n,props:this.$props})},ensureValueNotConflict(e,t,n){let{allowCross:o,pushable:r}=n;const i=this.$data||{},{bounds:l}=i;if(e=e===void 0?i.sHandle:e,r=Number(r),!o&&e!=null&&l!==void 0){if(e>0&&t<=l[e-1]+r)return l[e-1]+r;if(e=l[e+1]-r)return l[e+1]-r}return t},getTrack(e){let{bounds:t,prefixCls:n,reverse:o,vertical:r,included:i,offsets:l,trackStyle:a}=e;return t.slice(0,-1).map((s,u)=>{const c=u+1,d=le({[`${n}-track`]:!0,[`${n}-track-${c}`]:!0});return p(Qy,{class:d,vertical:r,reverse:o,included:i,offset:l[c-1],length:l[c]-l[c-1],style:a[u],key:c},null)})},renderSlider(){const{sHandle:e,bounds:t,prefixCls:n,vertical:o,included:r,disabled:i,min:l,max:a,reverse:s,handle:u,defaultHandle:c,trackStyle:d,handleStyle:f,tabindex:g,ariaLabelGroupForHandles:v,ariaLabelledByGroupForHandles:h,ariaValueTextFormatterGroupForHandles:b}=this,y=u||c,S=t.map(C=>this.calcOffset(C)),$=`${n}-handle`,x=t.map((C,O)=>{let w=g[O]||0;(i||g[O]===null)&&(w=null);const I=e===O;return y({class:le({[$]:!0,[`${$}-${O+1}`]:!0,[`${$}-dragging`]:I}),prefixCls:n,vertical:o,dragging:I,offset:S[O],value:C,index:O,tabindex:w,min:l,max:a,reverse:s,disabled:i,style:f[O],ref:T=>this.saveHandle(O,T),onFocus:this.onFocus,onBlur:this.onBlur,ariaLabel:v[O],ariaLabelledBy:h[O],ariaValueTextFormatter:b[O]})});return{tracks:this.getTrack({bounds:t,prefixCls:n,reverse:s,vertical:o,included:r,offsets:S,trackStyle:d}),handles:x}}}}),Pre=gT(Ore),Ire=oe({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:V6(),setup(e,t){let{attrs:n,slots:o}=t;const r=re(null),i=re(null);function l(){qe.cancel(i.value),i.value=null}function a(){i.value=qe(()=>{var u;(u=r.value)===null||u===void 0||u.forcePopupAlign(),i.value=null})}const s=()=>{l(),e.open&&a()};return ye([()=>e.open,()=>e.title],()=>{s()},{flush:"post",immediate:!0}),Zf(()=>{s()}),Qe(()=>{l()}),()=>p(Qn,D(D({ref:r},e),n),o)}}),Tre=e=>{const{componentCls:t,controlSize:n,dotSize:o,marginFull:r,marginPart:i,colorFillContentHover:l}=e;return{[t]:m(m({},Ue(e)),{position:"relative",height:n,margin:`${i}px ${r}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${r}px ${i}px`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.colorFillTertiary,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},[`${t}-track`]:{position:"absolute",backgroundColor:e.colorPrimaryBorder,borderRadius:e.borderRadiusXS,transition:`background-color ${e.motionDurationMid}`},"&:hover":{[`${t}-rail`]:{backgroundColor:e.colorFillSecondary},[`${t}-track`]:{backgroundColor:e.colorPrimaryBorderHover},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.colorPrimary}},[`${t}-handle`]:{position:"absolute",width:e.handleSize,height:e.handleSize,outline:"none",[`${t}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-e.handleLineWidth,insetBlockStart:-e.handleLineWidth,width:e.handleSize+e.handleLineWidth*2,height:e.handleSize+e.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:e.handleSize,height:e.handleSize,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${e.handleLineWidth}px ${e.colorPrimaryBorder}`,borderRadius:"50%",cursor:"pointer",transition:` inset-inline-start ${e.motionDurationMid}, inset-block-start ${e.motionDurationMid}, width ${e.motionDurationMid}, @@ -388,7 +388,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `]:{backgroundColor:e.colorBgElevated,borderColor:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:e.handleSize,height:e.handleSize,boxShadow:`0 0 0 ${e.handleLineWidth}px ${new pt(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString()}`,insetInlineStart:0,insetBlockStart:0},[` ${t}-mark-text, ${t}-dot - `]:{cursor:"not-allowed !important"}}})}},hT=(e,t)=>{const{componentCls:n,railSize:o,handleSize:r,dotSize:i}=e,l=t?"paddingBlock":"paddingInline",a=t?"width":"height",s=t?"height":"width",u=t?"insetBlockStart":"insetInlineStart",c=t?"top":"insetInlineStart";return{[l]:o,[s]:o*3,[`${n}-rail`]:{[a]:"100%",[s]:o},[`${n}-track`]:{[s]:o},[`${n}-handle`]:{[u]:(o*3-r)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[c]:r,[a]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[c]:o,[a]:"100%",[s]:o},[`${n}-dot`]:{position:"absolute",[u]:(o-i)/2}}},Ere=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:m(m({},hT(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},Mre=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:m(m({},hT(e,!1)),{height:"100%"})}},_re=Ke("Slider",e=>{const t=ke(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[Tre(t),Ere(t),Mre(t)]},e=>{const n=e.controlHeightLG/4,o=e.controlHeightSM/2,r=e.lineWidth+1,i=e.lineWidth+3;return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:o,dotSize:8,handleLineWidth:r,handleLineWidthHover:i}});var r2=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rtypeof e=="number"?e.toString():"",Rre=()=>({id:String,prefixCls:String,tooltipPrefixCls:String,range:Fe([Boolean,Object]),reverse:$e(),min:Number,max:Number,step:Fe([Object,Number]),marks:De(),dots:$e(),value:Fe([Array,Number]),defaultValue:Fe([Array,Number]),included:$e(),disabled:$e(),vertical:$e(),tipFormatter:Fe([Function,Object],()=>Are),tooltipOpen:$e(),tooltipVisible:$e(),tooltipPlacement:Ne(),getTooltipPopupContainer:ve(),autofocus:$e(),handleStyle:Fe([Array,Object]),trackStyle:Fe([Array,Object]),onChange:ve(),onAfterChange:ve(),onFocus:ve(),onBlur:ve(),"onUpdate:value":ve()}),Dre=oe({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:Rre(),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:i}=t;const{prefixCls:l,rootPrefixCls:a,direction:s,getPopupContainer:u,configProvider:c}=Te("slider",e),[d,f]=_re(l),g=Qt(),v=re(),h=re({}),b=(w,I)=>{h.value[w]=I},y=P(()=>e.tooltipPlacement?e.tooltipPlacement:e.vertical?s.value==="rtl"?"left":"right":"top"),S=()=>{var w;(w=v.value)===null||w===void 0||w.focus()},$=()=>{var w;(w=v.value)===null||w===void 0||w.blur()},x=w=>{r("update:value",w),r("change",w),g.onFieldChange()},C=w=>{r("blur",w)};i({focus:S,blur:$});const O=w=>{var{tooltipPrefixCls:I}=w,T=w.info,{value:M,dragging:E,index:A}=T,R=r2(T,["value","dragging","index"]);const{tipFormatter:z,tooltipOpen:_=e.tooltipVisible,getTooltipPopupContainer:N}=e,B=z?h.value[A]||E:!1,k=_||_===void 0&&B;return p(Ire,{prefixCls:I,title:z?z(M):"",open:k,placement:y.value,transitionName:`${a.value}-zoom-down`,key:A,overlayClassName:`${l.value}-tooltip`,getPopupContainer:N||u?.value},{default:()=>[p(cT,D(D({},R),{},{value:M,onMouseenter:()=>b(A,!0),onMouseleave:()=>b(A,!1)}),null)]})};return()=>{const{tooltipPrefixCls:w,range:I,id:T=g.id.value}=e,M=r2(e,["tooltipPrefixCls","range","id"]),E=c.getPrefixCls("tooltip",w),A=le(n.class,{[`${l.value}-rtl`]:s.value==="rtl"},f.value);s.value==="rtl"&&!M.vertical&&(M.reverse=!M.reverse);let R;return typeof I=="object"&&(R=I.draggableTrack),d(I?p(Pre,D(D(D({},n),M),{},{step:M.step,draggableTrack:R,class:A,ref:v,handle:z=>O({tooltipPrefixCls:E,prefixCls:l.value,info:z}),prefixCls:l.value,onChange:x,onBlur:C}),{mark:o.mark}):p(xre,D(D(D({},n),M),{},{id:T,step:M.step,class:A,ref:v,handle:z=>O({tooltipPrefixCls:E,prefixCls:l.value,info:z}),prefixCls:l.value,onChange:x,onBlur:C}),{mark:o.mark}))}}}),Nre=It(Dre);function i2(e){return typeof e=="string"}function Bre(){}const vT=()=>({prefixCls:String,itemWidth:String,active:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},status:Ne(),iconPrefix:String,icon:W.any,adjustMarginRight:String,stepNumber:Number,stepIndex:Number,description:W.any,title:W.any,subTitle:W.any,progressDot:$P(W.oneOfType([W.looseBool,W.func])),tailContent:W.any,icons:W.shape({finish:W.any,error:W.any}).loose,onClick:ve(),onStepClick:ve(),stepIcon:ve(),itemRender:ve(),__legacy:$e()}),mT=oe({compatConfig:{MODE:3},name:"Step",inheritAttrs:!1,props:vT(),setup(e,t){let{slots:n,emit:o,attrs:r}=t;const i=a=>{o("click",a),o("stepClick",e.stepIndex)},l=a=>{let{icon:s,title:u,description:c}=a;const{prefixCls:d,stepNumber:f,status:g,iconPrefix:v,icons:h,progressDot:b=n.progressDot,stepIcon:y=n.stepIcon}=e;let S;const $=le(`${d}-icon`,`${v}icon`,{[`${v}icon-${s}`]:s&&i2(s),[`${v}icon-check`]:!s&&g==="finish"&&(h&&!h.finish||!h),[`${v}icon-cross`]:!s&&g==="error"&&(h&&!h.error||!h)}),x=p("span",{class:`${d}-icon-dot`},null);return b?typeof b=="function"?S=p("span",{class:`${d}-icon`},[b({iconDot:x,index:f-1,status:g,title:u,description:c,prefixCls:d})]):S=p("span",{class:`${d}-icon`},[x]):s&&!i2(s)?S=p("span",{class:`${d}-icon`},[s]):h&&h.finish&&g==="finish"?S=p("span",{class:`${d}-icon`},[h.finish]):h&&h.error&&g==="error"?S=p("span",{class:`${d}-icon`},[h.error]):s||g==="finish"||g==="error"?S=p("span",{class:$},null):S=p("span",{class:`${d}-icon`},[f]),y&&(S=y({index:f-1,status:g,title:u,description:c,node:S})),S};return()=>{var a,s,u,c;const{prefixCls:d,itemWidth:f,active:g,status:v="wait",tailContent:h,adjustMarginRight:b,disabled:y,title:S=(a=n.title)===null||a===void 0?void 0:a.call(n),description:$=(s=n.description)===null||s===void 0?void 0:s.call(n),subTitle:x=(u=n.subTitle)===null||u===void 0?void 0:u.call(n),icon:C=(c=n.icon)===null||c===void 0?void 0:c.call(n),onClick:O,onStepClick:w}=e,I=v||"wait",T=le(`${d}-item`,`${d}-item-${I}`,{[`${d}-item-custom`]:C,[`${d}-item-active`]:g,[`${d}-item-disabled`]:y===!0}),M={};f&&(M.width=f),b&&(M.marginRight=b);const E={onClick:O||Bre};w&&!y&&(E.role="button",E.tabindex=0,E.onClick=i);const A=p("div",D(D({},tt(r,["__legacy"])),{},{class:[T,r.class],style:[r.style,M]}),[p("div",D(D({},E),{},{class:`${d}-item-container`}),[p("div",{class:`${d}-item-tail`},[h]),p("div",{class:`${d}-item-icon`},[l({icon:C,title:S,description:$})]),p("div",{class:`${d}-item-content`},[p("div",{class:`${d}-item-title`},[S,x&&p("div",{title:typeof x=="string"?x:void 0,class:`${d}-item-subtitle`},[x])]),$&&p("div",{class:`${d}-item-description`},[$])])])]);return e.itemRender?e.itemRender(A):A}}});var kre=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r[]),icons:W.shape({finish:W.any,error:W.any}).loose,stepIcon:ve(),isInline:W.looseBool,itemRender:ve()},emits:["change"],setup(e,t){let{slots:n,emit:o}=t;const r=a=>{const{current:s}=e;s!==a&&o("change",a)},i=(a,s,u)=>{const{prefixCls:c,iconPrefix:d,status:f,current:g,initial:v,icons:h,stepIcon:b=n.stepIcon,isInline:y,itemRender:S,progressDot:$=n.progressDot}=e,x=y||$,C=m(m({},a),{class:""}),O=v+s,w={active:O===g,stepNumber:O+1,stepIndex:O,key:O,prefixCls:c,iconPrefix:d,progressDot:x,stepIcon:b,icons:h,onStepClick:r};return f==="error"&&s===g-1&&(C.class=`${c}-next-error`),C.status||(O===g?C.status=f:OS(C,I)),p(mT,D(D(D({},C),w),{},{__legacy:!1}),null))},l=(a,s)=>i(m({},a.props),s,u=>ut(a,u));return()=>{var a;const{prefixCls:s,direction:u,type:c,labelPlacement:d,iconPrefix:f,status:g,size:v,current:h,progressDot:b=n.progressDot,initial:y,icons:S,items:$,isInline:x,itemRender:C}=e,O=kre(e,["prefixCls","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","initial","icons","items","isInline","itemRender"]),w=c==="navigation",I=x||b,T=x?"horizontal":u,M=x?void 0:v,E=I?"vertical":d,A=le(s,`${s}-${u}`,{[`${s}-${M}`]:M,[`${s}-label-${E}`]:T==="horizontal",[`${s}-dot`]:!!I,[`${s}-navigation`]:w,[`${s}-inline`]:x});return p("div",D({class:A},O),[$.filter(R=>R).map((R,z)=>i(R,z)),_t((a=n.default)===null||a===void 0?void 0:a.call(n)).map(l)])}}}),Lre=e=>{const{componentCls:t,stepsIconCustomTop:n,stepsIconCustomSize:o,stepsIconCustomFontSize:r}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:o,height:o,fontSize:r,lineHeight:`${o}px`}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},zre=e=>{const{componentCls:t,stepsIconSize:n,lineHeight:o,stepsSmallIconSize:r}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:n/2+e.controlHeightLG,padding:`${e.paddingXXS}px ${e.paddingLG}px`},"&-content":{display:"block",width:(n/2+e.controlHeightLG)*2,marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:o}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.controlHeightLG+(n-r)/2}}}}}},Hre=e=>{const{componentCls:t,stepsNavContentMaxWidth:n,stepsNavArrowColor:o,stepsNavActiveColor:r,motionDurationSlow:i}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:-e.marginSM}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:-e.margin,paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${i}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:m(m({maxWidth:"100%",paddingInlineEnd:0},Gt),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${e.paddingSM/2}px)`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${e.lineWidth}px ${e.lineType} ${o}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${o}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:r,transition:`width ${i}, inset-inline-start ${i}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.lineWidth*3,height:`calc(100% - ${e.marginLG}px)`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.controlHeight*.25,height:e.controlHeight*.25,marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},jre=e=>{const{antCls:t,componentCls:n}=e;return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:e.paddingXXS,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:e.processIconColor}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:e.paddingXXS,[`> ${n}-item-container > ${n}-item-tail`]:{top:e.marginXXS,insetInlineStart:e.stepsIconSize/2-e.lineWidth+e.paddingXXS}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:e.paddingXXS,paddingInlineStart:e.paddingXXS}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth+e.paddingXXS},[`&${n}-label-vertical`]:{[`${n}-item ${n}-item-tail`]:{top:e.margin-2*e.lineWidth}},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetBlockStart:(e.stepsIconSize-e.stepsProgressSize-e.lineWidth*2)/2,insetInlineStart:(e.stepsIconSize-e.stepsProgressSize-e.lineWidth*2)/2}}}}},Vre=e=>{const{componentCls:t,descriptionWidth:n,lineHeight:o,stepsCurrentDotSize:r,stepsDotSize:i,motionDurationSlow:l}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:o},"&-tail":{top:Math.floor((e.stepsDotSize-e.lineWidth*3)/2),width:"100%",marginTop:0,marginBottom:0,marginInline:`${n/2}px 0`,padding:0,"&::after":{width:`calc(100% - ${e.marginSM*2}px)`,height:e.lineWidth*3,marginInlineStart:e.marginSM}},"&-icon":{width:i,height:i,marginInlineStart:(e.descriptionWidth-i)/2,paddingInlineEnd:0,lineHeight:`${i}px`,background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${l}`,"&::after":{position:"absolute",top:-e.marginSM,insetInlineStart:(i-e.controlHeightLG*1.5)/2,width:e.controlHeightLG*1.5,height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:(i-r)/2,width:r,height:r,lineHeight:`${r}px`,background:"none",marginInlineStart:(e.descriptionWidth-r)/2},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeight-i)/2,marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeight-r)/2,top:0,insetInlineStart:(i-r)/2,marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeight-i)/2,insetInlineStart:0,margin:0,padding:`${i+e.paddingXS}px 0 ${e.paddingXS}px`,"&::after":{marginInlineStart:(i-e.lineWidth)/2}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeightSM-i)/2},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeightSM-r)/2},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeightSM-i)/2}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},Wre=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},Kre=e=>{const{componentCls:t,stepsSmallIconSize:n,fontSizeSM:o,fontSize:r,colorTextDescription:i}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${e.marginXS}px`,fontSize:o,lineHeight:`${n}px`,textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:r,lineHeight:`${n}px`,"&::after":{top:n/2}},[`${t}-item-description`]:{color:i,fontSize:r},[`${t}-item-tail`]:{top:n/2-e.paddingXXS},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:`${n}px`,transform:"none"}}}}},Gre=e=>{const{componentCls:t,stepsSmallIconSize:n,stepsIconSize:o}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.controlHeight*1.5,overflow:"hidden"},[`${t}-item-title`]:{lineHeight:`${o}px`},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.stepsIconSize/2-e.lineWidth,width:e.lineWidth,height:"100%",padding:`${o+e.marginXXS*1.5}px 0 ${e.marginXXS*1.5}px`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth,padding:`${n+e.marginXXS*1.5}px 0 ${e.marginXXS*1.5}px`},[`${t}-item-title`]:{lineHeight:`${n}px`}}}}},Xre=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:o,inlineTailColor:r}=e,i=e.paddingXS+e.lineWidth,l={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:o}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${i}px ${e.paddingXXS}px 0`,margin:`0 ${e.marginXXS/2}px`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.fontSizeSM/4}},"&-content":{width:"auto",marginTop:e.marginXS-e.lineWidth},"&-title":{color:o,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.marginXXS/2},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:i+n/2,transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:r}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":m({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${e.lineWidth}px ${e.lineType} ${r}`}},l),"&-finish":m({[`${t}-item-tail::after`]:{backgroundColor:r},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:r,border:`${e.lineWidth}px ${e.lineType} ${r}`}},l),"&-error":l,"&-active, &-process":m({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,top:0}},l),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:o}}}}}};var la;(function(e){e.wait="wait",e.process="process",e.finish="finish",e.error="error"})(la||(la={}));const Pu=(e,t)=>{const n=`${t.componentCls}-item`,o=`${e}IconColor`,r=`${e}TitleColor`,i=`${e}DescriptionColor`,l=`${e}TailColor`,a=`${e}IconBgColor`,s=`${e}IconBorderColor`,u=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[a],borderColor:t[s],[`> ${t.componentCls}-icon`]:{color:t[o],[`${t.componentCls}-icon-dot`]:{background:t[u]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[u]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[r],"&::after":{backgroundColor:t[l]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[i]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[l]}}},Ure=e=>{const{componentCls:t,motionDurationSlow:n}=e,o=`${t}-item`;return m(m(m(m(m(m({[o]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${o}-container > ${o}-tail, > ${o}-container > ${o}-content > ${o}-title::after`]:{display:"none"}}},[`${o}-container`]:{outline:"none"},[`${o}-icon, ${o}-content`]:{display:"inline-block",verticalAlign:"top"},[`${o}-icon`]:{width:e.stepsIconSize,height:e.stepsIconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.stepsIconFontSize,fontFamily:e.fontFamily,lineHeight:`${e.stepsIconSize}px`,textAlign:"center",borderRadius:e.stepsIconSize,border:`${e.lineWidth}px ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.stepsIconTop,color:e.colorPrimary,lineHeight:1}},[`${o}-tail`]:{position:"absolute",top:e.stepsIconSize/2-e.paddingXXS,insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${o}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:`${e.stepsTitleLineHeight}px`,"&::after":{position:"absolute",top:e.stepsTitleLineHeight/2,insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${o}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${o}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},Pu(la.wait,e)),Pu(la.process,e)),{[`${o}-process > ${o}-container > ${o}-title`]:{fontWeight:e.fontWeightStrong}}),Pu(la.finish,e)),Pu(la.error,e)),{[`${o}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${o}-disabled`]:{cursor:"not-allowed"}})},Yre=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionWidth,whiteSpace:"normal"}}}}},qre=e=>{const{componentCls:t}=e;return{[t]:m(m(m(m(m(m(m(m(m(m(m(m(m({},Ue(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),Ure(e)),Yre(e)),Lre(e)),Kre(e)),Gre(e)),zre(e)),Vre(e)),Hre(e)),Wre(e)),jre(e)),Xre(e))}},Zre=Ke("Steps",e=>{const{wireframe:t,colorTextDisabled:n,fontSizeHeading3:o,fontSize:r,controlHeight:i,controlHeightLG:l,colorTextLightSolid:a,colorText:s,colorPrimary:u,colorTextLabel:c,colorTextDescription:d,colorTextQuaternary:f,colorFillContent:g,controlItemBgActive:v,colorError:h,colorBgContainer:b,colorBorderSecondary:y}=e,S=e.controlHeight,$=e.colorSplit,x=ke(e,{processTailColor:$,stepsNavArrowColor:n,stepsIconSize:S,stepsIconCustomSize:S,stepsIconCustomTop:0,stepsIconCustomFontSize:l/2,stepsIconTop:-.5,stepsIconFontSize:r,stepsTitleLineHeight:i,stepsSmallIconSize:o,stepsDotSize:i/4,stepsCurrentDotSize:l/4,stepsNavContentMaxWidth:"auto",processIconColor:a,processTitleColor:s,processDescriptionColor:s,processIconBgColor:u,processIconBorderColor:u,processDotColor:u,waitIconColor:t?n:c,waitTitleColor:d,waitDescriptionColor:d,waitTailColor:$,waitIconBgColor:t?b:g,waitIconBorderColor:t?n:"transparent",waitDotColor:n,finishIconColor:u,finishTitleColor:s,finishDescriptionColor:d,finishTailColor:u,finishIconBgColor:t?b:v,finishIconBorderColor:t?u:v,finishDotColor:u,errorIconColor:a,errorTitleColor:h,errorDescriptionColor:h,errorTailColor:$,errorIconBgColor:h,errorIconBorderColor:h,errorDotColor:h,stepsNavActiveColor:u,stepsProgressSize:l,inlineDotSize:6,inlineTitleColor:f,inlineTailColor:y});return[qre(x)]},{descriptionWidth:140}),Qre=()=>({prefixCls:String,iconPrefix:String,current:Number,initial:Number,percent:Number,responsive:$e(),items:lt(),labelPlacement:Ne(),status:Ne(),size:Ne(),direction:Ne(),progressDot:Fe([Boolean,Function]),type:Ne(),onChange:ve(),"onUpdate:current":ve()}),jh=oe({compatConfig:{MODE:3},name:"ASteps",inheritAttrs:!1,props:Ze(Qre(),{current:0,responsive:!0,labelPlacement:"horizontal"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const{prefixCls:i,direction:l,configProvider:a}=Te("steps",e),[s,u]=Zre(i),[,c]=Ur(),d=Ua(),f=P(()=>e.responsive&&d.value.xs?"vertical":e.direction),g=P(()=>a.getPrefixCls("",e.iconPrefix)),v=$=>{r("update:current",$),r("change",$)},h=P(()=>e.type==="inline"),b=P(()=>h.value?void 0:e.percent),y=$=>{let{node:x,status:C}=$;if(C==="process"&&e.percent!==void 0){const O=e.size==="small"?c.value.controlHeight:c.value.controlHeightLG;return p("div",{class:`${i.value}-progress-icon`},[p(Yy,{type:"circle",percent:b.value,size:O,strokeWidth:4,format:()=>null},null),x])}return x},S=P(()=>({finish:p(ja,{class:`${i.value}-finish-icon`},null),error:p(Rn,{class:`${i.value}-error-icon`},null)}));return()=>{const $=le({[`${i.value}-rtl`]:l.value==="rtl",[`${i.value}-with-progress`]:b.value!==void 0},n.class,u.value),x=(C,O)=>C.description?p(Qn,{title:C.description},{default:()=>[O]}):O;return s(p(Fre,D(D(D({icons:S.value},n),tt(e,["percent","responsive"])),{},{items:e.items,direction:f.value,prefixCls:i.value,iconPrefix:g.value,class:$,onChange:v,isInline:h.value,itemRender:h.value?x:void 0}),m({stepIcon:y},o)))}}}),bd=oe(m(m({compatConfig:{MODE:3}},mT),{name:"AStep",props:vT()})),Jre=m(jh,{Step:bd,install:e=>(e.component(jh.name,jh),e.component(bd.name,bd),e)}),eie=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${t}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},tie=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},nie=e=>{const{componentCls:t}=e,n=`${t}-handle`;return{[t]:{[n]:{position:"absolute",top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${n}`]:{insetInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding}px)`},[`&:not(${t}-disabled):active`]:{[`${n}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${n}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},oie=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[n]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:e.switchInnerMarginMax,paddingInlineEnd:e.switchInnerMarginMin,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${n}-checked, ${n}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${n}`]:{paddingInlineStart:e.switchInnerMarginMin,paddingInlineEnd:e.switchInnerMarginMax,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.switchPadding*2,marginInlineEnd:-e.switchPadding*2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.switchPadding*2,marginInlineEnd:e.switchPadding*2}}}}}},rie=e=>{const{componentCls:t}=e;return{[t]:m(m(m(m({},Ue(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:`${e.switchHeight}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Kr(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},iie=Ke("Switch",e=>{const t=e.fontSize*e.lineHeight,n=e.controlHeight/2,o=2,r=t-o*2,i=n-o*2,l=ke(e,{switchMinWidth:r*2+o*4,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:r/2,switchInnerMarginMax:r+o+o*2,switchPadding:o,switchPinSize:r,switchBg:e.colorBgContainer,switchMinWidthSM:i*2+o*2,switchHeightSM:n,switchInnerMarginMinSM:i/2,switchInnerMarginMaxSM:i+o+o*2,switchPinSizeSM:i,switchHandleShadow:`0 2px 4px 0 ${new pt("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[rie(l),oie(l),nie(l),tie(l),eie(l)]}),lie=Sn("small","default"),aie=()=>({id:String,prefixCls:String,size:W.oneOf(lie),disabled:{type:Boolean,default:void 0},checkedChildren:W.any,unCheckedChildren:W.any,tabindex:W.oneOfType([W.string,W.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:W.oneOfType([W.string,W.number,W.looseBool]),checkedValue:W.oneOfType([W.string,W.number,W.looseBool]).def(!0),unCheckedValue:W.oneOfType([W.string,W.number,W.looseBool]).def(!1),onChange:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onMouseup:{type:Function},"onUpdate:checked":{type:Function},onBlur:Function,onFocus:Function}),sie=oe({compatConfig:{MODE:3},name:"ASwitch",__ANT_SWITCH:!0,inheritAttrs:!1,props:aie(),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r,emit:i}=t;const l=Qt(),a=Jn(),s=P(()=>{var T;return(T=e.disabled)!==null&&T!==void 0?T:a.value});Jf(()=>{});const u=re(e.checked!==void 0?e.checked:n.defaultChecked),c=P(()=>u.value===e.checkedValue);ye(()=>e.checked,()=>{u.value=e.checked});const{prefixCls:d,direction:f,size:g}=Te("switch",e),[v,h]=iie(d),b=re(),y=()=>{var T;(T=b.value)===null||T===void 0||T.focus()};r({focus:y,blur:()=>{var T;(T=b.value)===null||T===void 0||T.blur()}}),je(()=>{ot(()=>{e.autofocus&&!s.value&&b.value.focus()})});const $=(T,M)=>{s.value||(i("update:checked",T),i("change",T,M),l.onFieldChange())},x=T=>{i("blur",T)},C=T=>{y();const M=c.value?e.unCheckedValue:e.checkedValue;$(M,T),i("click",M,T)},O=T=>{T.keyCode===Pe.LEFT?$(e.unCheckedValue,T):T.keyCode===Pe.RIGHT&&$(e.checkedValue,T),i("keydown",T)},w=T=>{var M;(M=b.value)===null||M===void 0||M.blur(),i("mouseup",T)},I=P(()=>({[`${d.value}-small`]:g.value==="small",[`${d.value}-loading`]:e.loading,[`${d.value}-checked`]:c.value,[`${d.value}-disabled`]:s.value,[d.value]:!0,[`${d.value}-rtl`]:f.value==="rtl",[h.value]:!0}));return()=>{var T;return v(p(Mb,null,{default:()=>[p("button",D(D(D({},tt(e,["prefixCls","checkedChildren","unCheckedChildren","checked","autofocus","checkedValue","unCheckedValue","id","onChange","onUpdate:checked"])),n),{},{id:(T=e.id)!==null&&T!==void 0?T:l.id.value,onKeydown:O,onClick:C,onBlur:x,onMouseup:w,type:"button",role:"switch","aria-checked":u.value,disabled:s.value||e.loading,class:[n.class,I.value],ref:b}),[p("div",{class:`${d.value}-handle`},[e.loading?p(Wn,{class:`${d.value}-loading-icon`},null):null]),p("span",{class:`${d.value}-inner`},[p("span",{class:`${d.value}-inner-checked`},[Zt(o,e,"checkedChildren")]),p("span",{class:`${d.value}-inner-unchecked`},[Zt(o,e,"unCheckedChildren")])])])]}))}}}),cie=It(sie),bT=Symbol("TableContextProps"),uie=e=>{Xe(bT,e)},yr=()=>He(bT,{}),die="RC_TABLE_KEY";function yT(e){return e==null?[]:Array.isArray(e)?e:[e]}function ST(e,t){if(!t&&typeof t!="number")return e;const n=yT(t);let o=e;for(let r=0;r{const{key:r,dataIndex:i}=o||{};let l=r||yT(i).join("-")||die;for(;n[l];)l=`${l}_next`;n[l]=!0,t.push(l)}),t}function fie(){const e={};function t(i,l){l&&Object.keys(l).forEach(a=>{const s=l[a];s&&typeof s=="object"?(i[a]=i[a]||{},t(i[a],s)):i[a]=s})}for(var n=arguments.length,o=new Array(n),r=0;r{t(e,i)}),e}function Tm(e){return e!=null}const $T=Symbol("SlotsContextProps"),pie=e=>{Xe($T,e)},e1=()=>He($T,P(()=>({}))),CT=Symbol("ContextProps"),gie=e=>{Xe(CT,e)},hie=()=>He(CT,{onResizeColumn:()=>{}}),Ca="RC_TABLE_INTERNAL_COL_DEFINE",xT=Symbol("HoverContextProps"),vie=e=>{Xe(xT,e)},mie=()=>He(xT,{startRow:ne(-1),endRow:ne(-1),onHover(){}}),Em=ne(!1),bie=()=>{je(()=>{Em.value=Em.value||Sy("position","sticky")})},yie=()=>Em;var Sie=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r=n}function Cie(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!qt(e)}const pg=oe({name:"Cell",props:["prefixCls","record","index","renderIndex","dataIndex","customRender","component","colSpan","rowSpan","fixLeft","fixRight","firstFixLeft","lastFixLeft","firstFixRight","lastFixRight","appendNode","additionalProps","ellipsis","align","rowType","isSticky","column","cellType","transformCellText"],setup(e,t){let{slots:n}=t;const o=e1(),{onHover:r,startRow:i,endRow:l}=mie(),a=P(()=>{var h,b,y,S;return(y=(h=e.colSpan)!==null&&h!==void 0?h:(b=e.additionalProps)===null||b===void 0?void 0:b.colSpan)!==null&&y!==void 0?y:(S=e.additionalProps)===null||S===void 0?void 0:S.colspan}),s=P(()=>{var h,b,y,S;return(y=(h=e.rowSpan)!==null&&h!==void 0?h:(b=e.additionalProps)===null||b===void 0?void 0:b.rowSpan)!==null&&y!==void 0?y:(S=e.additionalProps)===null||S===void 0?void 0:S.rowspan}),u=io(()=>{const{index:h}=e;return $ie(h,s.value||1,i.value,l.value)}),c=yie(),d=(h,b)=>{var y;const{record:S,index:$,additionalProps:x}=e;S&&r($,$+b-1),(y=x?.onMouseenter)===null||y===void 0||y.call(x,h)},f=h=>{var b;const{record:y,additionalProps:S}=e;y&&r(-1,-1),(b=S?.onMouseleave)===null||b===void 0||b.call(S,h)},g=h=>{const b=_t(h)[0];return qt(b)?b.type===Ei?b.children:Array.isArray(b.children)?g(b.children):void 0:b},v=ne(null);return ye([u,()=>e.prefixCls,v],()=>{const h=Hn(v.value);h&&(u.value?gf(h,`${e.prefixCls}-cell-row-hover`):hf(h,`${e.prefixCls}-cell-row-hover`))}),()=>{var h,b,y,S,$,x;const{prefixCls:C,record:O,index:w,renderIndex:I,dataIndex:T,customRender:M,component:E="td",fixLeft:A,fixRight:R,firstFixLeft:z,lastFixLeft:_,firstFixRight:N,lastFixRight:B,appendNode:k=(h=n.appendNode)===null||h===void 0?void 0:h.call(n),additionalProps:F={},ellipsis:L,align:H,rowType:j,isSticky:Y,column:Q={},cellType:U}=e,ee=`${C}-cell`;let X,J;const Z=(b=n.default)===null||b===void 0?void 0:b.call(n);if(Tm(Z)||U==="header")J=Z;else{const fe=ST(O,T);if(J=fe,M){const de=M({text:fe,value:fe,record:O,index:w,renderIndex:I,column:Q.__originColumn__});Cie(de)?(J=de.children,X=de.props):J=de}if(!(Ca in Q)&&U==="body"&&o.value.bodyCell&&!(!((y=Q.slots)===null||y===void 0)&&y.customRender)){const de=vp(o.value,"bodyCell",{text:fe,value:fe,record:O,index:w,column:Q.__originColumn__},()=>{const be=J===void 0?fe:J;return[typeof be=="object"&&Kt(be)||typeof be!="object"?be:null]});J=bt(de)}e.transformCellText&&(J=e.transformCellText({text:J,record:O,index:w,column:Q.__originColumn__}))}typeof J=="object"&&!Array.isArray(J)&&!qt(J)&&(J=null),L&&(_||N)&&(J=p("span",{class:`${ee}-content`},[J])),Array.isArray(J)&&J.length===1&&(J=J[0]);const G=X||{},{colSpan:q,rowSpan:V,style:K,class:te}=G,ue=Sie(G,["colSpan","rowSpan","style","class"]),ie=(S=q!==void 0?q:a.value)!==null&&S!==void 0?S:1,ae=($=V!==void 0?V:s.value)!==null&&$!==void 0?$:1;if(ie===0||ae===0)return null;const ce={},se=typeof A=="number"&&c.value,pe=typeof R=="number"&&c.value;se&&(ce.position="sticky",ce.left=`${A}px`),pe&&(ce.position="sticky",ce.right=`${R}px`);const ge={};H&&(ge.textAlign=H);let he;const me=L===!0?{showTitle:!0}:L;me&&(me.showTitle||j==="header")&&(typeof J=="string"||typeof J=="number"?he=J.toString():qt(J)&&(he=g([J])));const xe=m(m(m({title:he},ue),F),{colSpan:ie!==1?ie:null,rowSpan:ae!==1?ae:null,class:le(ee,{[`${ee}-fix-left`]:se&&c.value,[`${ee}-fix-left-first`]:z&&c.value,[`${ee}-fix-left-last`]:_&&c.value,[`${ee}-fix-right`]:pe&&c.value,[`${ee}-fix-right-first`]:N&&c.value,[`${ee}-fix-right-last`]:B&&c.value,[`${ee}-ellipsis`]:L,[`${ee}-with-append`]:k,[`${ee}-fix-sticky`]:(se||pe)&&Y&&c.value},F.class,te),onMouseenter:fe=>{d(fe,ae)},onMouseleave:f,style:[F.style,ge,ce,K]});return p(E,D(D({},xe),{},{ref:v}),{default:()=>[k,J,(x=n.dragHandle)===null||x===void 0?void 0:x.call(n)]})}}});function t1(e,t,n,o,r){const i=n[e]||{},l=n[t]||{};let a,s;i.fixed==="left"?a=o.left[e]:l.fixed==="right"&&(s=o.right[t]);let u=!1,c=!1,d=!1,f=!1;const g=n[t+1],v=n[e-1];return r==="rtl"?a!==void 0?f=!(v&&v.fixed==="left"):s!==void 0&&(d=!(g&&g.fixed==="right")):a!==void 0?u=!(g&&g.fixed==="left"):s!==void 0&&(c=!(v&&v.fixed==="right")),{fixLeft:a,fixRight:s,lastFixLeft:u,firstFixRight:c,lastFixRight:d,firstFixLeft:f,isSticky:o.isSticky}}const l2={mouse:{move:"mousemove",stop:"mouseup"},touch:{move:"touchmove",stop:"touchend"}},a2=50,xie=oe({compatConfig:{MODE:3},name:"DragHandle",props:{prefixCls:String,width:{type:Number,required:!0},minWidth:{type:Number,default:a2},maxWidth:{type:Number,default:1/0},column:{type:Object,default:void 0}},setup(e){let t=0,n={remove:()=>{}},o={remove:()=>{}};const r=()=>{n.remove(),o.remove()};$n(()=>{r()}),Le(()=>{Ct(!isNaN(e.width),"Table","width must be a number when use resizable")});const{onResizeColumn:i}=hie(),l=P(()=>typeof e.minWidth=="number"&&!isNaN(e.minWidth)?e.minWidth:a2),a=P(()=>typeof e.maxWidth=="number"&&!isNaN(e.maxWidth)?e.maxWidth:1/0),s=pn();let u=0;const c=ne(!1);let d;const f=$=>{let x=0;$.touches?$.touches.length?x=$.touches[0].pageX:x=$.changedTouches[0].pageX:x=$.pageX;const C=t-x;let O=Math.max(u-C,l.value);O=Math.min(O,a.value),qe.cancel(d),d=qe(()=>{i(O,e.column.__originColumn__)})},g=$=>{f($)},v=$=>{c.value=!1,f($),r()},h=($,x)=>{c.value=!0,r(),u=s.vnode.el.parentNode.getBoundingClientRect().width,!($ instanceof MouseEvent&&$.which!==1)&&($.stopPropagation&&$.stopPropagation(),t=$.touches?$.touches[0].pageX:$.pageX,n=Et(document.documentElement,x.move,g),o=Et(document.documentElement,x.stop,v))},b=$=>{$.stopPropagation(),$.preventDefault(),h($,l2.mouse)},y=$=>{$.stopPropagation(),$.preventDefault(),h($,l2.touch)},S=$=>{$.stopPropagation(),$.preventDefault()};return()=>{const{prefixCls:$}=e,x={[Yt?"onTouchstartPassive":"onTouchstart"]:C=>y(C)};return p("div",D(D({class:`${$}-resize-handle ${c.value?"dragging":""}`,onMousedown:b},x),{},{onClick:S}),[p("div",{class:`${$}-resize-handle-line`},null)])}}}),wie=oe({name:"HeaderRow",props:["cells","stickyOffsets","flattenColumns","rowComponent","cellComponent","index","customHeaderRow"],setup(e){const t=yr();return()=>{const{prefixCls:n,direction:o}=t,{cells:r,stickyOffsets:i,flattenColumns:l,rowComponent:a,cellComponent:s,customHeaderRow:u,index:c}=e;let d;u&&(d=u(r.map(g=>g.column),c));const f=fg(r.map(g=>g.column));return p(a,d,{default:()=>[r.map((g,v)=>{const{column:h}=g,b=t1(g.colStart,g.colEnd,l,i,o);let y;h&&h.customHeaderCell&&(y=g.column.customHeaderCell(h));const S=h;return p(pg,D(D(D({},g),{},{cellType:"header",ellipsis:h.ellipsis,align:h.align,component:s,prefixCls:n,key:f[v]},b),{},{additionalProps:y,rowType:"header",column:h}),{default:()=>h.title,dragHandle:()=>S.resizable?p(xie,{prefixCls:n,width:S.width,minWidth:S.minWidth,maxWidth:S.maxWidth,column:S},null):null})})]})}}});function Oie(e){const t=[];function n(r,i){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[l]=t[l]||[];let a=i;return r.filter(Boolean).map(u=>{const c={key:u.key,class:le(u.className,u.class),column:u,colStart:a};let d=1;const f=u.children;return f&&f.length>0&&(d=n(f,a,l+1).reduce((g,v)=>g+v,0),c.hasSubColumns=!0),"colSpan"in u&&({colSpan:d}=u),"rowSpan"in u&&(c.rowSpan=u.rowSpan),c.colSpan=d,c.colEnd=c.colStart+d-1,t[l].push(c),a+=d,d})}n(e,0);const o=t.length;for(let r=0;r{!("rowSpan"in i)&&!i.hasSubColumns&&(i.rowSpan=o-r)});return t}const s2=oe({name:"TableHeader",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow"],setup(e){const t=yr(),n=P(()=>Oie(e.columns));return()=>{const{prefixCls:o,getComponent:r}=t,{stickyOffsets:i,flattenColumns:l,customHeaderRow:a}=e,s=r(["header","wrapper"],"thead"),u=r(["header","row"],"tr"),c=r(["header","cell"],"th");return p(s,{class:`${o}-thead`},{default:()=>[n.value.map((d,f)=>p(wie,{key:f,flattenColumns:l,cells:d,stickyOffsets:i,rowComponent:u,cellComponent:c,customHeaderRow:a,index:f},null))]})}}}),wT=Symbol("ExpandedRowProps"),Pie=e=>{Xe(wT,e)},Iie=()=>He(wT,{}),OT=oe({name:"ExpandedRow",inheritAttrs:!1,props:["prefixCls","component","cellComponent","expanded","colSpan","isEmpty"],setup(e,t){let{slots:n,attrs:o}=t;const r=yr(),i=Iie(),{fixHeader:l,fixColumn:a,componentWidth:s,horizonScroll:u}=i;return()=>{const{prefixCls:c,component:d,cellComponent:f,expanded:g,colSpan:v,isEmpty:h}=e;return p(d,{class:o.class,style:{display:g?null:"none"}},{default:()=>[p(pg,{component:f,prefixCls:c,colSpan:v},{default:()=>{var b;let y=(b=n.default)===null||b===void 0?void 0:b.call(n);return(h?u.value:a.value)&&(y=p("div",{style:{width:`${s.value-(l.value?r.scrollbarSize:0)}px`,position:"sticky",left:0,overflow:"hidden"},class:`${c}-expanded-row-fixed`},[y])),y}})]})}}}),Tie=oe({name:"MeasureCell",props:["columnKey"],setup(e,t){let{emit:n}=t;const o=re();return je(()=>{o.value&&n("columnResize",e.columnKey,o.value.offsetWidth)}),()=>p(Mo,{onResize:r=>{let{offsetWidth:i}=r;n("columnResize",e.columnKey,i)}},{default:()=>[p("td",{ref:o,style:{padding:0,border:0,height:0}},[p("div",{style:{height:0,overflow:"hidden"}},[Ft(" ")])])]})}}),PT=Symbol("BodyContextProps"),Eie=e=>{Xe(PT,e)},IT=()=>He(PT,{}),Mie=oe({name:"BodyRow",inheritAttrs:!1,props:["record","index","renderIndex","recordKey","expandedKeys","rowComponent","cellComponent","customRow","rowExpandable","indent","rowKey","getRowKey","childrenColumnName"],setup(e,t){let{attrs:n}=t;const o=yr(),r=IT(),i=ne(!1),l=P(()=>e.expandedKeys&&e.expandedKeys.has(e.recordKey));Le(()=>{l.value&&(i.value=!0)});const a=P(()=>r.expandableType==="row"&&(!e.rowExpandable||e.rowExpandable(e.record))),s=P(()=>r.expandableType==="nest"),u=P(()=>e.childrenColumnName&&e.record&&e.record[e.childrenColumnName]),c=P(()=>a.value||s.value),d=(b,y)=>{r.onTriggerExpand(b,y)},f=P(()=>{var b;return((b=e.customRow)===null||b===void 0?void 0:b.call(e,e.record,e.index))||{}}),g=function(b){var y,S;r.expandRowByClick&&c.value&&d(e.record,b);for(var $=arguments.length,x=new Array($>1?$-1:0),C=1;C<$;C++)x[C-1]=arguments[C];(S=(y=f.value)===null||y===void 0?void 0:y.onClick)===null||S===void 0||S.call(y,b,...x)},v=P(()=>{const{record:b,index:y,indent:S}=e,{rowClassName:$}=r;return typeof $=="string"?$:typeof $=="function"?$(b,y,S):""}),h=P(()=>fg(r.flattenColumns));return()=>{const{class:b,style:y}=n,{record:S,index:$,rowKey:x,indent:C=0,rowComponent:O,cellComponent:w}=e,{prefixCls:I,fixedInfoList:T,transformCellText:M}=o,{flattenColumns:E,expandedRowClassName:A,indentSize:R,expandIcon:z,expandedRowRender:_,expandIconColumnIndex:N}=r,B=p(O,D(D({},f.value),{},{"data-row-key":x,class:le(b,`${I}-row`,`${I}-row-level-${C}`,v.value,f.value.class),style:[y,f.value.style],onClick:g}),{default:()=>[E.map((F,L)=>{const{customRender:H,dataIndex:j,className:Y}=F,Q=h[L],U=T[L];let ee;F.customCell&&(ee=F.customCell(S,$,F));const X=L===(N||0)&&s.value?p(Ve,null,[p("span",{style:{paddingLeft:`${R*C}px`},class:`${I}-row-indent indent-level-${C}`},null),z({prefixCls:I,expanded:l.value,expandable:u.value,record:S,onExpand:d})]):null;return p(pg,D(D({cellType:"body",class:Y,ellipsis:F.ellipsis,align:F.align,component:w,prefixCls:I,key:Q,record:S,index:$,renderIndex:e.renderIndex,dataIndex:j,customRender:H},U),{},{additionalProps:ee,column:F,transformCellText:M,appendNode:X}),null)})]});let k;if(a.value&&(i.value||l.value)){const F=_({record:S,index:$,indent:C+1,expanded:l.value}),L=A&&A(S,$,C);k=p(OT,{expanded:l.value,class:le(`${I}-expanded-row`,`${I}-expanded-row-level-${C+1}`,L),prefixCls:I,component:O,cellComponent:w,colSpan:E.length,isEmpty:!1},{default:()=>[F]})}return p(Ve,null,[B,k])}}});function TT(e,t,n,o,r,i){const l=[];l.push({record:e,indent:t,index:i});const a=r(e),s=o?.has(a);if(e&&Array.isArray(e[n])&&s)for(let u=0;u{const i=t.value,l=n.value,a=e.value;if(l?.size){const s=[];for(let u=0;u({record:s,indent:0,index:u}))})}const ET=Symbol("ResizeContextProps"),Aie=e=>{Xe(ET,e)},Rie=()=>He(ET,{onColumnResize:()=>{}}),Die=oe({name:"TableBody",props:["data","getRowKey","measureColumnWidth","expandedKeys","customRow","rowExpandable","childrenColumnName"],setup(e,t){let{slots:n}=t;const o=Rie(),r=yr(),i=IT(),l=_ie(ze(e,"data"),ze(e,"childrenColumnName"),ze(e,"expandedKeys"),ze(e,"getRowKey")),a=ne(-1),s=ne(-1);let u;return vie({startRow:a,endRow:s,onHover:(c,d)=>{clearTimeout(u),u=setTimeout(()=>{a.value=c,s.value=d},100)}}),()=>{var c;const{data:d,getRowKey:f,measureColumnWidth:g,expandedKeys:v,customRow:h,rowExpandable:b,childrenColumnName:y}=e,{onColumnResize:S}=o,{prefixCls:$,getComponent:x}=r,{flattenColumns:C}=i,O=x(["body","wrapper"],"tbody"),w=x(["body","row"],"tr"),I=x(["body","cell"],"td");let T;d.length?T=l.value.map((E,A)=>{const{record:R,indent:z,index:_}=E,N=f(R,A);return p(Mie,{key:N,rowKey:N,record:R,recordKey:N,index:A,renderIndex:_,rowComponent:w,cellComponent:I,expandedKeys:v,customRow:h,getRowKey:f,rowExpandable:b,childrenColumnName:y,indent:z},null)}):T=p(OT,{expanded:!0,class:`${$}-placeholder`,prefixCls:$,component:w,cellComponent:I,colSpan:C.length,isEmpty:!0},{default:()=>[(c=n.emptyNode)===null||c===void 0?void 0:c.call(n)]});const M=fg(C);return p(O,{class:`${$}-tbody`},{default:()=>[g&&p("tr",{"aria-hidden":"true",class:`${$}-measure-row`,style:{height:0,fontSize:0}},[M.map(E=>p(Tie,{key:E,columnKey:E,onColumnResize:S},null))]),T]})}}}),di={};var Nie=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{fixed:o}=n,r=o===!0?"left":o,i=n.children;return i&&i.length>0?[...t,...Mm(i).map(l=>m({fixed:r},l))]:[...t,m(m({},n),{fixed:r})]},[])}function Bie(e){return e.map(t=>{const{fixed:n}=t,o=Nie(t,["fixed"]);let r=n;return n==="left"?r="right":n==="right"&&(r="left"),m({fixed:r},o)})}function kie(e,t){let{prefixCls:n,columns:o,expandable:r,expandedKeys:i,getRowKey:l,onTriggerExpand:a,expandIcon:s,rowExpandable:u,expandIconColumnIndex:c,direction:d,expandRowByClick:f,expandColumnWidth:g,expandFixed:v}=e;const h=e1(),b=P(()=>{if(r.value){let $=o.value.slice();if(!$.includes(di)){const R=c.value||0;R>=0&&$.splice(R,0,di)}const x=$.indexOf(di);$=$.filter((R,z)=>R!==di||z===x);const C=o.value[x];let O;(v.value==="left"||v.value)&&!c.value?O="left":(v.value==="right"||v.value)&&c.value===o.value.length?O="right":O=C?C.fixed:null;const w=i.value,I=u.value,T=s.value,M=n.value,E=f.value,A={[Ca]:{class:`${n.value}-expand-icon-col`,columnType:"EXPAND_COLUMN"},title:vp(h.value,"expandColumnTitle",{},()=>[""]),fixed:O,class:`${n.value}-row-expand-icon-cell`,width:g.value,customRender:R=>{let{record:z,index:_}=R;const N=l.value(z,_),B=w.has(N),k=I?I(z):!0,F=T({prefixCls:M,expanded:B,expandable:k,record:z,onExpand:a});return E?p("span",{onClick:L=>L.stopPropagation()},[F]):F}};return $.map(R=>R===di?A:R)}return o.value.filter($=>$!==di)}),y=P(()=>{let $=b.value;return t.value&&($=t.value($)),$.length||($=[{customRender:()=>null}]),$}),S=P(()=>d.value==="rtl"?Bie(Mm(y.value)):Mm(y.value));return[y,S]}function MT(e){const t=ne(e);let n;const o=ne([]);function r(i){o.value.push(i),qe.cancel(n),n=qe(()=>{const l=o.value;o.value=[],l.forEach(a=>{t.value=a(t.value)})})}return Qe(()=>{qe.cancel(n)}),[t,r]}function Fie(e){const t=re(null),n=re();function o(){clearTimeout(n.value)}function r(l){t.value=l,o(),n.value=setTimeout(()=>{t.value=null,n.value=void 0},100)}function i(){return t.value}return Qe(()=>{o()}),[r,i]}function Lie(e,t,n){return P(()=>{const r=[],i=[];let l=0,a=0;const s=e.value,u=t.value,c=n.value;for(let d=0;d=0;a-=1){const s=t[a],u=n&&n[a],c=u&&u[Ca];if(s||c||l){const d=c||{},{columnType:f}=d,g=zie(d,["columnType"]);r.unshift(p("col",D({key:a,style:{width:typeof s=="number"?`${s}px`:s}},g),null)),l=!0}}return p("colgroup",null,[r])}function _m(e,t){let{slots:n}=t;var o;return p("div",null,[(o=n.default)===null||o===void 0?void 0:o.call(n)])}_m.displayName="Panel";let Hie=0;const jie=oe({name:"TableSummary",props:["fixed"],setup(e,t){let{slots:n}=t;const o=yr(),r=`table-summary-uni-key-${++Hie}`,i=P(()=>e.fixed===""||e.fixed);return Le(()=>{o.summaryCollect(r,i.value)}),Qe(()=>{o.summaryCollect(r,!1)}),()=>{var l;return(l=n.default)===null||l===void 0?void 0:l.call(n)}}}),Vie=oe({compatConfig:{MODE:3},name:"ATableSummaryRow",setup(e,t){let{slots:n}=t;return()=>{var o;return p("tr",null,[(o=n.default)===null||o===void 0?void 0:o.call(n)])}}}),AT=Symbol("SummaryContextProps"),Wie=e=>{Xe(AT,e)},Kie=()=>He(AT,{}),Gie=oe({name:"ATableSummaryCell",props:["index","colSpan","rowSpan","align"],setup(e,t){let{attrs:n,slots:o}=t;const r=yr(),i=Kie();return()=>{const{index:l,colSpan:a=1,rowSpan:s,align:u}=e,{prefixCls:c,direction:d}=r,{scrollColumnIndex:f,stickyOffsets:g,flattenColumns:v}=i,b=l+a-1+1===f?a+1:a,y=t1(l,l+b-1,v,g,d);return p(pg,D({class:n.class,index:l,component:"td",prefixCls:c,record:null,dataIndex:null,align:u,colSpan:b,rowSpan:s,customRender:()=>{var S;return(S=o.default)===null||S===void 0?void 0:S.call(o)}},y),null)}}}),Iu=oe({name:"TableFooter",inheritAttrs:!1,props:["stickyOffsets","flattenColumns"],setup(e,t){let{slots:n}=t;const o=yr();return Wie(ct({stickyOffsets:ze(e,"stickyOffsets"),flattenColumns:ze(e,"flattenColumns"),scrollColumnIndex:P(()=>{const r=e.flattenColumns.length-1,i=e.flattenColumns[r];return i?.scrollbar?r:null})})),()=>{var r;const{prefixCls:i}=o;return p("tfoot",{class:`${i}-summary`},[(r=n.default)===null||r===void 0?void 0:r.call(n)])}}}),Xie=jie;function Uie(e){let{prefixCls:t,record:n,onExpand:o,expanded:r,expandable:i}=e;const l=`${t}-row-expand-icon`;if(!i)return p("span",{class:[l,`${t}-row-spaced`]},null);const a=s=>{o(n,s),s.stopPropagation()};return p("span",{class:{[l]:!0,[`${t}-row-expanded`]:r,[`${t}-row-collapsed`]:!r},onClick:a},null)}function Yie(e,t,n){const o=[];function r(i){(i||[]).forEach((l,a)=>{o.push(t(l,a)),r(l[n])})}return r(e),o}const qie=oe({name:"StickyScrollBar",inheritAttrs:!1,props:["offsetScroll","container","scrollBodyRef","scrollBodySizeInfo"],emits:["scroll"],setup(e,t){let{emit:n,expose:o}=t;const r=yr(),i=ne(0),l=ne(0),a=ne(0);Le(()=>{i.value=e.scrollBodySizeInfo.scrollWidth||0,l.value=e.scrollBodySizeInfo.clientWidth||0,a.value=i.value&&l.value*(l.value/i.value)},{flush:"post"});const s=ne(),[u,c]=MT({scrollLeft:0,isHiddenScrollBar:!0}),d=re({delta:0,x:0}),f=ne(!1),g=()=>{f.value=!1},v=w=>{d.value={delta:w.pageX-u.value.scrollLeft,x:0},f.value=!0,w.preventDefault()},h=w=>{const{buttons:I}=w||window?.event;if(!f.value||I===0){f.value&&(f.value=!1);return}let T=d.value.x+w.pageX-d.value.x-d.value.delta;T<=0&&(T=0),T+a.value>=l.value&&(T=l.value-a.value),n("scroll",{scrollLeft:T/l.value*(i.value+2)}),d.value.x=w.pageX},b=()=>{if(!e.scrollBodyRef.value)return;const w=qd(e.scrollBodyRef.value).top,I=w+e.scrollBodyRef.value.offsetHeight,T=e.container===window?document.documentElement.scrollTop+window.innerHeight:qd(e.container).top+e.container.clientHeight;I-Yd()<=T||w>=T-e.offsetScroll?c(M=>m(m({},M),{isHiddenScrollBar:!0})):c(M=>m(m({},M),{isHiddenScrollBar:!1}))};o({setScrollLeft:w=>{c(I=>m(m({},I),{scrollLeft:w/i.value*l.value||0}))}});let S=null,$=null,x=null,C=null;je(()=>{S=Et(document.body,"mouseup",g,!1),$=Et(document.body,"mousemove",h,!1),x=Et(window,"resize",b,!1)}),Zf(()=>{ot(()=>{b()})}),je(()=>{setTimeout(()=>{ye([a,f],()=>{b()},{immediate:!0,flush:"post"})})}),ye(()=>e.container,()=>{C?.remove(),C=Et(e.container,"scroll",b,!1)},{immediate:!0,flush:"post"}),Qe(()=>{S?.remove(),$?.remove(),C?.remove(),x?.remove()}),ye(()=>m({},u.value),(w,I)=>{w.isHiddenScrollBar!==I?.isHiddenScrollBar&&!w.isHiddenScrollBar&&c(T=>{const M=e.scrollBodyRef.value;return M?m(m({},T),{scrollLeft:M.scrollLeft/M.scrollWidth*M.clientWidth}):T})},{immediate:!0});const O=Yd();return()=>{if(i.value<=l.value||!a.value||u.value.isHiddenScrollBar)return null;const{prefixCls:w}=r;return p("div",{style:{height:`${O}px`,width:`${l.value}px`,bottom:`${e.offsetScroll}px`},class:`${w}-sticky-scroll`},[p("div",{onMousedown:v,ref:s,class:le(`${w}-sticky-scroll-bar`,{[`${w}-sticky-scroll-bar-active`]:f.value}),style:{width:`${a.value}px`,transform:`translate3d(${u.value.scrollLeft}px, 0, 0)`}},null)])}}}),c2=Mn()?window:null;function Zie(e,t){return P(()=>{const{offsetHeader:n=0,offsetSummary:o=0,offsetScroll:r=0,getContainer:i=()=>c2}=typeof e.value=="object"?e.value:{},l=i()||c2,a=!!e.value;return{isSticky:a,stickyClassName:a?`${t.value}-sticky-holder`:"",offsetHeader:n,offsetSummary:o,offsetScroll:r,container:l}})}function Qie(e,t){return P(()=>{const n=[],o=e.value,r=t.value;for(let i=0;ii.isSticky&&!e.fixHeader?0:i.scrollbarSize),a=re(),s=h=>{const{currentTarget:b,deltaX:y}=h;y&&(r("scroll",{currentTarget:b,scrollLeft:b.scrollLeft+y}),h.preventDefault())},u=re();je(()=>{ot(()=>{u.value=Et(a.value,"wheel",s)})}),Qe(()=>{var h;(h=u.value)===null||h===void 0||h.remove()});const c=P(()=>e.flattenColumns.every(h=>h.width&&h.width!==0&&h.width!=="0px")),d=re([]),f=re([]);Le(()=>{const h=e.flattenColumns[e.flattenColumns.length-1],b={fixed:h?h.fixed:null,scrollbar:!0,customHeaderCell:()=>({class:`${i.prefixCls}-cell-scrollbar`})};d.value=l.value?[...e.columns,b]:e.columns,f.value=l.value?[...e.flattenColumns,b]:e.flattenColumns});const g=P(()=>{const{stickyOffsets:h,direction:b}=e,{right:y,left:S}=h;return m(m({},h),{left:b==="rtl"?[...S.map($=>$+l.value),0]:S,right:b==="rtl"?y:[...y.map($=>$+l.value),0],isSticky:i.isSticky})}),v=Qie(ze(e,"colWidths"),ze(e,"columCount"));return()=>{var h;const{noData:b,columCount:y,stickyTopOffset:S,stickyBottomOffset:$,stickyClassName:x,maxContentScroll:C}=e,{isSticky:O}=i;return p("div",{style:m({overflow:"hidden"},O?{top:`${S}px`,bottom:`${$}px`}:{}),ref:a,class:le(n.class,{[x]:!!x})},[p("table",{style:{tableLayout:"fixed",visibility:b||v.value?null:"hidden"}},[(!b||!C||c.value)&&p(_T,{colWidths:v.value?[...v.value,l.value]:[],columCount:y+1,columns:f.value},null),(h=o.default)===null||h===void 0?void 0:h.call(o,m(m({},e),{stickyOffsets:g.value,columns:d.value,flattenColumns:f.value}))])])}}});function d2(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o[r,ze(e,r)])))}const Jie=[],ele={},Am="rc-table-internal-hook",tle=oe({name:"VcTable",inheritAttrs:!1,props:["prefixCls","data","columns","rowKey","tableLayout","scroll","rowClassName","title","footer","id","showHeader","components","customRow","customHeaderRow","direction","expandFixed","expandColumnWidth","expandedRowKeys","defaultExpandedRowKeys","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","onUpdate:expandedRowKeys","defaultExpandAllRows","indentSize","expandIconColumnIndex","expandedRowClassName","childrenColumnName","rowExpandable","sticky","transformColumns","internalHooks","internalRefs","canExpandable","onUpdateInternalRefs","transformCellText"],emits:["expand","expandedRowsChange","updateInternalRefs","update:expandedRowKeys"],setup(e,t){let{attrs:n,slots:o,emit:r}=t;const i=P(()=>e.data||Jie),l=P(()=>!!i.value.length),a=P(()=>fie(e.components,{})),s=(de,be)=>ST(a.value,de)||be,u=P(()=>{const de=e.rowKey;return typeof de=="function"?de:be=>be&&be[de]}),c=P(()=>e.expandIcon||Uie),d=P(()=>e.childrenColumnName||"children"),f=P(()=>e.expandedRowRender?"row":e.canExpandable||i.value.some(de=>de&&typeof de=="object"&&de[d.value])?"nest":!1),g=ne([]);Le(()=>{e.defaultExpandedRowKeys&&(g.value=e.defaultExpandedRowKeys),e.defaultExpandAllRows&&(g.value=Yie(i.value,u.value,d.value))})();const h=P(()=>new Set(e.expandedRowKeys||g.value||[])),b=de=>{const be=u.value(de,i.value.indexOf(de));let we;const Ie=h.value.has(be);Ie?(h.value.delete(be),we=[...h.value]):we=[...h.value,be],g.value=we,r("expand",!Ie,de),r("update:expandedRowKeys",we),r("expandedRowsChange",we)},y=re(0),[S,$]=kie(m(m({},jo(e)),{expandable:P(()=>!!e.expandedRowRender),expandedKeys:h,getRowKey:u,onTriggerExpand:b,expandIcon:c}),P(()=>e.internalHooks===Am?e.transformColumns:null)),x=P(()=>({columns:S.value,flattenColumns:$.value})),C=re(),O=re(),w=re(),I=re({scrollWidth:0,clientWidth:0}),T=re(),[M,E]=ht(!1),[A,R]=ht(!1),[z,_]=MT(new Map),N=P(()=>fg($.value)),B=P(()=>N.value.map(de=>z.value.get(de))),k=P(()=>$.value.length),F=Lie(B,k,ze(e,"direction")),L=P(()=>e.scroll&&Tm(e.scroll.y)),H=P(()=>e.scroll&&Tm(e.scroll.x)||!!e.expandFixed),j=P(()=>H.value&&$.value.some(de=>{let{fixed:be}=de;return be})),Y=re(),Q=Zie(ze(e,"sticky"),ze(e,"prefixCls")),U=ct({}),ee=P(()=>{const de=Object.values(U)[0];return(L.value||Q.value.isSticky)&&de}),X=(de,be)=>{be?U[de]=be:delete U[de]},J=re({}),Z=re({}),G=re({});Le(()=>{L.value&&(Z.value={overflowY:"scroll",maxHeight:Zi(e.scroll.y)}),H.value&&(J.value={overflowX:"auto"},L.value||(Z.value={overflowY:"hidden"}),G.value={width:e.scroll.x===!0?"auto":Zi(e.scroll.x),minWidth:"100%"})});const q=(de,be)=>{mp(C.value)&&_(we=>{if(we.get(de)!==be){const Ie=new Map(we);return Ie.set(de,be),Ie}return we})},[V,K]=Fie();function te(de,be){if(!be)return;if(typeof be=="function"){be(de);return}const we=be.$el||be;we.scrollLeft!==de&&(we.scrollLeft=de)}const ue=de=>{let{currentTarget:be,scrollLeft:we}=de;var Ie;const Ae=e.direction==="rtl",Se=typeof we=="number"?we:be.scrollLeft,Ce=be||ele;if((!K()||K()===Ce)&&(V(Ce),te(Se,O.value),te(Se,w.value),te(Se,T.value),te(Se,(Ie=Y.value)===null||Ie===void 0?void 0:Ie.setScrollLeft)),be){const{scrollWidth:Oe,clientWidth:Me}=be;Ae?(E(-Se0)):(E(Se>0),R(Se{H.value&&w.value?ue({currentTarget:w.value}):(E(!1),R(!1))};let ae;const ce=de=>{de!==y.value&&(ie(),y.value=C.value?C.value.offsetWidth:de)},se=de=>{let{width:be}=de;if(clearTimeout(ae),y.value===0){ce(be);return}ae=setTimeout(()=>{ce(be)},100)};ye([H,()=>e.data,()=>e.columns],()=>{H.value&&ie()},{flush:"post"});const[pe,ge]=ht(0);bie(),je(()=>{ot(()=>{var de,be;ie(),ge(ek(w.value).width),I.value={scrollWidth:((de=w.value)===null||de===void 0?void 0:de.scrollWidth)||0,clientWidth:((be=w.value)===null||be===void 0?void 0:be.clientWidth)||0}})}),An(()=>{ot(()=>{var de,be;const we=((de=w.value)===null||de===void 0?void 0:de.scrollWidth)||0,Ie=((be=w.value)===null||be===void 0?void 0:be.clientWidth)||0;(I.value.scrollWidth!==we||I.value.clientWidth!==Ie)&&(I.value={scrollWidth:we,clientWidth:Ie})})}),Le(()=>{e.internalHooks===Am&&e.internalRefs&&e.onUpdateInternalRefs({body:w.value?w.value.$el||w.value:null})},{flush:"post"});const he=P(()=>e.tableLayout?e.tableLayout:j.value?e.scroll.x==="max-content"?"auto":"fixed":L.value||Q.value.isSticky||$.value.some(de=>{let{ellipsis:be}=de;return be})?"fixed":"auto"),me=()=>{var de;return l.value?null:((de=o.emptyText)===null||de===void 0?void 0:de.call(o))||"No Data"};uie(ct(m(m({},jo(d2(e,"prefixCls","direction","transformCellText"))),{getComponent:s,scrollbarSize:pe,fixedInfoList:P(()=>$.value.map((de,be)=>t1(be,be,$.value,F.value,e.direction))),isSticky:P(()=>Q.value.isSticky),summaryCollect:X}))),Eie(ct(m(m({},jo(d2(e,"rowClassName","expandedRowClassName","expandRowByClick","expandedRowRender","expandIconColumnIndex","indentSize"))),{columns:S,flattenColumns:$,tableLayout:he,expandIcon:c,expandableType:f,onTriggerExpand:b}))),Aie({onColumnResize:q}),Pie({componentWidth:y,fixHeader:L,fixColumn:j,horizonScroll:H});const xe=()=>p(Die,{data:i.value,measureColumnWidth:L.value||H.value||Q.value.isSticky,expandedKeys:h.value,rowExpandable:e.rowExpandable,getRowKey:u.value,customRow:e.customRow,childrenColumnName:d.value},{emptyNode:me}),fe=()=>p(_T,{colWidths:$.value.map(de=>{let{width:be}=de;return be}),columns:$.value},null);return()=>{var de;const{prefixCls:be,scroll:we,tableLayout:Ie,direction:Ae,title:Se=o.title,footer:Ce=o.footer,id:Oe,showHeader:Me,customHeaderRow:Re}=e,{isSticky:_e,offsetHeader:Be,offsetSummary:et,offsetScroll:dt,stickyClassName:it,container:ft}=Q.value,gt=s(["table"],"table"),Ut=s(["body"]),Jt=(de=o.summary)===null||de===void 0?void 0:de.call(o,{pageData:i.value});let on=()=>null;const zt={colWidths:B.value,columCount:$.value.length,stickyOffsets:F.value,customHeaderRow:Re,fixHeader:L.value,scroll:we};if(L.value||_e){let vo=()=>null;typeof Ut=="function"?(vo=()=>Ut(i.value,{scrollbarSize:pe.value,ref:w,onScroll:ue}),zt.colWidths=$.value.map((Gn,ki)=>{let{width:Ee}=Gn;const Ye=ki===S.value.length-1?Ee-pe.value:Ee;return typeof Ye=="number"&&!Number.isNaN(Ye)?Ye:0})):vo=()=>p("div",{style:m(m({},J.value),Z.value),onScroll:ue,ref:w,class:le(`${be}-body`)},[p(gt,{style:m(m({},G.value),{tableLayout:he.value})},{default:()=>[fe(),xe(),!ee.value&&Jt&&p(Iu,{stickyOffsets:F.value,flattenColumns:$.value},{default:()=>[Jt]})]})]);const No=m(m(m({noData:!i.value.length,maxContentScroll:H.value&&we.x==="max-content"},zt),x.value),{direction:Ae,stickyClassName:it,onScroll:ue});on=()=>p(Ve,null,[Me!==!1&&p(u2,D(D({},No),{},{stickyTopOffset:Be,class:`${be}-header`,ref:O}),{default:Gn=>p(Ve,null,[p(s2,Gn,null),ee.value==="top"&&p(Iu,Gn,{default:()=>[Jt]})])}),vo(),ee.value&&ee.value!=="top"&&p(u2,D(D({},No),{},{stickyBottomOffset:et,class:`${be}-summary`,ref:T}),{default:Gn=>p(Iu,Gn,{default:()=>[Jt]})}),_e&&w.value&&p(qie,{ref:Y,offsetScroll:dt,scrollBodyRef:w,onScroll:ue,container:ft,scrollBodySizeInfo:I.value},null)])}else on=()=>p("div",{style:m(m({},J.value),Z.value),class:le(`${be}-content`),onScroll:ue,ref:w},[p(gt,{style:m(m({},G.value),{tableLayout:he.value})},{default:()=>[fe(),Me!==!1&&p(s2,D(D({},zt),x.value),null),xe(),Jt&&p(Iu,{stickyOffsets:F.value,flattenColumns:$.value},{default:()=>[Jt]})]})]);const Cn=_i(n,{aria:!0,data:!0}),Kn=()=>p("div",D(D({},Cn),{},{class:le(be,{[`${be}-rtl`]:Ae==="rtl",[`${be}-ping-left`]:M.value,[`${be}-ping-right`]:A.value,[`${be}-layout-fixed`]:Ie==="fixed",[`${be}-fixed-header`]:L.value,[`${be}-fixed-column`]:j.value,[`${be}-scroll-horizontal`]:H.value,[`${be}-has-fix-left`]:$.value[0]&&$.value[0].fixed,[`${be}-has-fix-right`]:$.value[k.value-1]&&$.value[k.value-1].fixed==="right",[n.class]:n.class}),style:n.style,id:Oe,ref:C}),[Se&&p(_m,{class:`${be}-title`},{default:()=>[Se(i.value)]}),p("div",{class:`${be}-container`},[on()]),Ce&&p(_m,{class:`${be}-footer`},{default:()=>[Ce(i.value)]})]);return H.value?p(Mo,{onResize:se},{default:Kn}):Kn()}}});function nle(){const e=m({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const r=n[o];r!==void 0&&(e[o]=r)})}return e}const Rm=10;function ole(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(r=>{const i=e[r];typeof i!="function"&&(n[r]=i)}),n}function rle(e,t,n){const o=P(()=>t.value&&typeof t.value=="object"?t.value:{}),r=P(()=>o.value.total||0),[i,l]=ht(()=>({current:"defaultCurrent"in o.value?o.value.defaultCurrent:1,pageSize:"defaultPageSize"in o.value?o.value.defaultPageSize:Rm})),a=P(()=>{const c=nle(i.value,o.value,{total:r.value>0?r.value:e.value}),d=Math.ceil((r.value||e.value)/c.pageSize);return c.current>d&&(c.current=d||1),c}),s=(c,d)=>{t.value!==!1&&l({current:c??1,pageSize:d||a.value.pageSize})},u=(c,d)=>{var f,g;t.value&&((g=(f=o.value).onChange)===null||g===void 0||g.call(f,c,d)),s(c,d),n(c,d||a.value.pageSize)};return[P(()=>t.value===!1?{}:m(m({},a.value),{onChange:u})),s]}function ile(e,t,n){const o=ne({});ye([e,t,n],()=>{const i=new Map,l=n.value,a=t.value;function s(u){u.forEach((c,d)=>{const f=l(c,d);i.set(f,c),c&&typeof c=="object"&&a in c&&s(c[a]||[])})}s(e.value),o.value={kvMap:i}},{deep:!0,immediate:!0});function r(i){return o.value.kvMap.get(i)}return[r]}const Ir={},Dm="SELECT_ALL",Nm="SELECT_INVERT",Bm="SELECT_NONE",lle=[];function RT(e,t){let n=[];return(t||[]).forEach(o=>{n.push(o),o&&typeof o=="object"&&e in o&&(n=[...n,...RT(e,o[e])])}),n}function ale(e,t){const n=P(()=>{const T=e.value||{},{checkStrictly:M=!0}=T;return m(m({},T),{checkStrictly:M})}),[o,r]=Pt(n.value.selectedRowKeys||n.value.defaultSelectedRowKeys||lle,{value:P(()=>n.value.selectedRowKeys)}),i=ne(new Map),l=T=>{if(n.value.preserveSelectedRowKeys){const M=new Map;T.forEach(E=>{let A=t.getRecordByKey(E);!A&&i.value.has(E)&&(A=i.value.get(E)),M.set(E,A)}),i.value=M}};Le(()=>{l(o.value)});const a=P(()=>n.value.checkStrictly?null:zc(t.data.value,{externalGetKey:t.getRowKey.value,childrenPropName:t.childrenColumnName.value}).keyEntities),s=P(()=>RT(t.childrenColumnName.value,t.pageData.value)),u=P(()=>{const T=new Map,M=t.getRowKey.value,E=n.value.getCheckboxProps;return s.value.forEach((A,R)=>{const z=M(A,R),_=(E?E(A):null)||{};T.set(z,_)}),T}),{maxLevel:c,levelEntities:d}=Qp(a),f=T=>{var M;return!!(!((M=u.value.get(t.getRowKey.value(T)))===null||M===void 0)&&M.disabled)},g=P(()=>{if(n.value.checkStrictly)return[o.value||[],[]];const{checkedKeys:T,halfCheckedKeys:M}=Io(o.value,!0,a.value,c.value,d.value,f);return[T||[],M]}),v=P(()=>g.value[0]),h=P(()=>g.value[1]),b=P(()=>{const T=n.value.type==="radio"?v.value.slice(0,1):v.value;return new Set(T)}),y=P(()=>n.value.type==="radio"?new Set:new Set(h.value)),[S,$]=ht(null),x=T=>{let M,E;l(T);const{preserveSelectedRowKeys:A,onChange:R}=n.value,{getRecordByKey:z}=t;A?(M=T,E=T.map(_=>i.value.get(_))):(M=[],E=[],T.forEach(_=>{const N=z(_);N!==void 0&&(M.push(_),E.push(N))})),r(M),R?.(M,E)},C=(T,M,E,A)=>{const{onSelect:R}=n.value,{getRecordByKey:z}=t||{};if(R){const _=E.map(N=>z(N));R(z(T),M,_,A)}x(E)},O=P(()=>{const{onSelectInvert:T,onSelectNone:M,selections:E,hideSelectAll:A}=n.value,{data:R,pageData:z,getRowKey:_,locale:N}=t;return!E||A?null:(E===!0?[Dm,Nm,Bm]:E).map(k=>k===Dm?{key:"all",text:N.value.selectionAll,onSelect(){x(R.value.map((F,L)=>_.value(F,L)).filter(F=>{const L=u.value.get(F);return!L?.disabled||b.value.has(F)}))}}:k===Nm?{key:"invert",text:N.value.selectInvert,onSelect(){const F=new Set(b.value);z.value.forEach((H,j)=>{const Y=_.value(H,j),Q=u.value.get(Y);Q?.disabled||(F.has(Y)?F.delete(Y):F.add(Y))});const L=Array.from(F);T&&(Ct(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),T(L)),x(L)}}:k===Bm?{key:"none",text:N.value.selectNone,onSelect(){M?.(),x(Array.from(b.value).filter(F=>{const L=u.value.get(F);return L?.disabled}))}}:k)}),w=P(()=>s.value.length);return[T=>{var M;const{onSelectAll:E,onSelectMultiple:A,columnWidth:R,type:z,fixed:_,renderCell:N,hideSelectAll:B,checkStrictly:k}=n.value,{prefixCls:F,getRecordByKey:L,getRowKey:H,expandType:j,getPopupContainer:Y}=t;if(!e.value)return T.filter(ce=>ce!==Ir);let Q=T.slice();const U=new Set(b.value),ee=s.value.map(H.value).filter(ce=>!u.value.get(ce).disabled),X=ee.every(ce=>U.has(ce)),J=ee.some(ce=>U.has(ce)),Z=()=>{const ce=[];X?ee.forEach(pe=>{U.delete(pe),ce.push(pe)}):ee.forEach(pe=>{U.has(pe)||(U.add(pe),ce.push(pe))});const se=Array.from(U);E?.(!X,se.map(pe=>L(pe)),ce.map(pe=>L(pe))),x(se)};let G;if(z!=="radio"){let ce;if(O.value){const me=p(Vt,{getPopupContainer:Y.value},{default:()=>[O.value.map((xe,fe)=>{const{key:de,text:be,onSelect:we}=xe;return p(Vt.Item,{key:de||fe,onClick:()=>{we?.(ee)}},{default:()=>[be]})})]});ce=p("div",{class:`${F.value}-selection-extra`},[p(Wo,{overlay:me,getPopupContainer:Y.value},{default:()=>[p("span",null,[p(Dl,null,null)])]})])}const se=s.value.map((me,xe)=>{const fe=H.value(me,xe),de=u.value.get(fe)||{};return m({checked:U.has(fe)},de)}).filter(me=>{let{disabled:xe}=me;return xe}),pe=!!se.length&&se.length===w.value,ge=pe&&se.every(me=>{let{checked:xe}=me;return xe}),he=pe&&se.some(me=>{let{checked:xe}=me;return xe});G=!B&&p("div",{class:`${F.value}-selection`},[p(To,{checked:pe?ge:!!w.value&&X,indeterminate:pe?!ge&&he:!X&&J,onChange:Z,disabled:w.value===0||pe,"aria-label":ce?"Custom selection":"Select all",skipGroup:!0},null),ce])}let q;z==="radio"?q=ce=>{let{record:se,index:pe}=ce;const ge=H.value(se,pe),he=U.has(ge);return{node:p(Fn,D(D({},u.value.get(ge)),{},{checked:he,onClick:me=>me.stopPropagation(),onChange:me=>{U.has(ge)||C(ge,!0,[ge],me.nativeEvent)}}),null),checked:he}}:q=ce=>{let{record:se,index:pe}=ce;var ge;const he=H.value(se,pe),me=U.has(he),xe=y.value.has(he),fe=u.value.get(he);let de;return j.value==="nest"?(de=xe,Ct(typeof fe?.indeterminate!="boolean","Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):de=(ge=fe?.indeterminate)!==null&&ge!==void 0?ge:xe,{node:p(To,D(D({},fe),{},{indeterminate:de,checked:me,skipGroup:!0,onClick:be=>be.stopPropagation(),onChange:be=>{let{nativeEvent:we}=be;const{shiftKey:Ie}=we;let Ae=-1,Se=-1;if(Ie&&k){const Ce=new Set([S.value,he]);ee.some((Oe,Me)=>{if(Ce.has(Oe))if(Ae===-1)Ae=Me;else return Se=Me,!0;return!1})}if(Se!==-1&&Ae!==Se&&k){const Ce=ee.slice(Ae,Se+1),Oe=[];me?Ce.forEach(Re=>{U.has(Re)&&(Oe.push(Re),U.delete(Re))}):Ce.forEach(Re=>{U.has(Re)||(Oe.push(Re),U.add(Re))});const Me=Array.from(U);A?.(!me,Me.map(Re=>L(Re)),Oe.map(Re=>L(Re))),x(Me)}else{const Ce=v.value;if(k){const Oe=me?ir(Ce,he):Or(Ce,he);C(he,!me,Oe,we)}else{const Oe=Io([...Ce,he],!0,a.value,c.value,d.value,f),{checkedKeys:Me,halfCheckedKeys:Re}=Oe;let _e=Me;if(me){const Be=new Set(Me);Be.delete(he),_e=Io(Array.from(Be),{halfCheckedKeys:Re},a.value,c.value,d.value,f).checkedKeys}C(he,!me,_e,we)}}$(he)}}),null),checked:me}};const V=ce=>{let{record:se,index:pe}=ce;const{node:ge,checked:he}=q({record:se,index:pe});return N?N(he,se,pe,ge):ge};if(!Q.includes(Ir))if(Q.findIndex(ce=>{var se;return((se=ce[Ca])===null||se===void 0?void 0:se.columnType)==="EXPAND_COLUMN"})===0){const[ce,...se]=Q;Q=[ce,Ir,...se]}else Q=[Ir,...Q];const K=Q.indexOf(Ir);Q=Q.filter((ce,se)=>ce!==Ir||se===K);const te=Q[K-1],ue=Q[K+1];let ie=_;ie===void 0&&(ue?.fixed!==void 0?ie=ue.fixed:te?.fixed!==void 0&&(ie=te.fixed)),ie&&te&&((M=te[Ca])===null||M===void 0?void 0:M.columnType)==="EXPAND_COLUMN"&&te.fixed===void 0&&(te.fixed=ie);const ae={fixed:ie,width:R,className:`${F.value}-selection-column`,title:n.value.columnTitle||G,customRender:V,[Ca]:{class:`${F.value}-selection-col`}};return Q.map(ce=>ce===Ir?ae:ce)},b]}var sle={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};function f2(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:[];const t=bt(e),n=[];return t.forEach(o=>{var r,i,l,a;if(!o)return;const s=o.key,u=((r=o.props)===null||r===void 0?void 0:r.style)||{},c=((i=o.props)===null||i===void 0?void 0:i.class)||"",d=o.props||{};for(const[b,y]of Object.entries(d))d[ka(b)]=y;const f=o.children||{},{default:g}=f,v=fle(f,["default"]),h=m(m(m({},v),d),{style:u,class:c});if(s&&(h.key=s),!((l=o.type)===null||l===void 0)&&l.__ANT_TABLE_COLUMN_GROUP)h.children=DT(typeof g=="function"?g():g);else{const b=(a=o.children)===null||a===void 0?void 0:a.default;h.customRender=h.customRender||b}n.push(h)}),n}const yd="ascend",Vh="descend";function Bf(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function g2(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function ple(e,t){return t?e[e.indexOf(t)+1]:e[0]}function km(e,t,n){let o=[];function r(i,l){o.push({column:i,key:wl(i,l),multiplePriority:Bf(i),sortOrder:i.sortOrder})}return(e||[]).forEach((i,l)=>{const a=Kc(l,n);i.children?("sortOrder"in i&&r(i,a),o=[...o,...km(i.children,t,a)]):i.sorter&&("sortOrder"in i?r(i,a):t&&i.defaultSortOrder&&o.push({column:i,key:wl(i,a),multiplePriority:Bf(i),sortOrder:i.defaultSortOrder}))}),o}function NT(e,t,n,o,r,i,l,a){return(t||[]).map((s,u)=>{const c=Kc(u,a);let d=s;if(d.sorter){const f=d.sortDirections||r,g=d.showSorterTooltip===void 0?l:d.showSorterTooltip,v=wl(d,c),h=n.find(T=>{let{key:M}=T;return M===v}),b=h?h.sortOrder:null,y=ple(f,b),S=f.includes(yd)&&p(o1,{class:le(`${e}-column-sorter-up`,{active:b===yd}),role:"presentation"},null),$=f.includes(Vh)&&p(n1,{role:"presentation",class:le(`${e}-column-sorter-down`,{active:b===Vh})},null),{cancelSort:x,triggerAsc:C,triggerDesc:O}=i||{};let w=x;y===Vh?w=O:y===yd&&(w=C);const I=typeof g=="object"?g:{title:w};d=m(m({},d),{className:le(d.className,{[`${e}-column-sort`]:b}),title:T=>{const M=p("div",{class:`${e}-column-sorters`},[p("span",{class:`${e}-column-title`},[r1(s.title,T)]),p("span",{class:le(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(S&&$)})},[p("span",{class:`${e}-column-sorter-inner`},[S,$])])]);return g?p(Qn,I,{default:()=>[M]}):M},customHeaderCell:T=>{const M=s.customHeaderCell&&s.customHeaderCell(T)||{},E=M.onClick,A=M.onKeydown;return M.onClick=R=>{o({column:s,key:v,sortOrder:y,multiplePriority:Bf(s)}),E&&E(R)},M.onKeydown=R=>{R.keyCode===Pe.ENTER&&(o({column:s,key:v,sortOrder:y,multiplePriority:Bf(s)}),A?.(R))},b&&(M["aria-sort"]=b==="ascend"?"ascending":"descending"),M.class=le(M.class,`${e}-column-has-sorters`),M.tabindex=0,M}})}return"children"in d&&(d=m(m({},d),{children:NT(e,d.children,n,o,r,i,l,c)})),d})}function h2(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function v2(e){const t=e.filter(n=>{let{sortOrder:o}=n;return o}).map(h2);return t.length===0&&e.length?m(m({},h2(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function Fm(e,t,n){const o=t.slice().sort((l,a)=>a.multiplePriority-l.multiplePriority),r=e.slice(),i=o.filter(l=>{let{column:{sorter:a},sortOrder:s}=l;return g2(a)&&s});return i.length?r.sort((l,a)=>{for(let s=0;s{const a=l[n];return a?m(m({},l),{[n]:Fm(a,t,n)}):l}):r}function gle(e){let{prefixCls:t,mergedColumns:n,onSorterChange:o,sortDirections:r,tableLocale:i,showSorterTooltip:l}=e;const[a,s]=ht(km(n.value,!0)),u=P(()=>{let v=!0;const h=km(n.value,!1);if(!h.length)return a.value;const b=[];function y($){v?b.push($):b.push(m(m({},$),{sortOrder:null}))}let S=null;return h.forEach($=>{S===null?(y($),$.sortOrder&&($.multiplePriority===!1?v=!1:S=!0)):(S&&$.multiplePriority!==!1||(v=!1),y($))}),b}),c=P(()=>{const v=u.value.map(h=>{let{column:b,sortOrder:y}=h;return{column:b,order:y}});return{sortColumns:v,sortColumn:v[0]&&v[0].column,sortOrder:v[0]&&v[0].order}});function d(v){let h;v.multiplePriority===!1||!u.value.length||u.value[0].multiplePriority===!1?h=[v]:h=[...u.value.filter(b=>{let{key:y}=b;return y!==v.key}),v],s(h),o(v2(h),h)}const f=v=>NT(t.value,v,u.value,d,r.value,i.value,l.value),g=P(()=>v2(u.value));return[f,u,c,g]}var hle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};function m2(e){for(var t=1;t{const{keyCode:t}=e;t===Pe.ENTER&&e.stopPropagation()},ble=(e,t)=>{let{slots:n}=t;var o;return p("div",{onClick:r=>r.stopPropagation(),onKeydown:mle},[(o=n.default)===null||o===void 0?void 0:o.call(n)])},b2=oe({compatConfig:{MODE:3},name:"FilterSearch",inheritAttrs:!1,props:{value:Ne(),onChange:ve(),filterSearch:Fe([Boolean,Function]),tablePrefixCls:Ne(),locale:De()},setup(e){return()=>{const{value:t,onChange:n,filterSearch:o,tablePrefixCls:r,locale:i}=e;return o?p("div",{class:`${r}-filter-dropdown-search`},[p(tn,{placeholder:i.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,class:`${r}-filter-dropdown-search-input`},{prefix:()=>p(Va,null,null)})]):null}}});var y2=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.motion?e.motion:Rc()),s=(u,c)=>{var d,f,g,v;c==="appear"?(f=(d=a.value)===null||d===void 0?void 0:d.onAfterEnter)===null||f===void 0||f.call(d,u):c==="leave"&&((v=(g=a.value)===null||g===void 0?void 0:g.onAfterLeave)===null||v===void 0||v.call(g,u)),l.value||e.onMotionEnd(),l.value=!0};return ye(()=>e.motionNodes,()=>{e.motionNodes&&e.motionType==="hide"&&r.value&&ot(()=>{r.value=!1})},{immediate:!0,flush:"post"}),je(()=>{e.motionNodes&&e.onMotionStart()}),Qe(()=>{e.motionNodes&&s()}),()=>{const{motion:u,motionNodes:c,motionType:d,active:f,eventKey:g}=e,v=y2(e,["motion","motionNodes","motionType","active","eventKey"]);return c?p(un,D(D({},a.value),{},{appear:d==="show",onAfterAppear:h=>s(h,"appear"),onAfterLeave:h=>s(h,"leave")}),{default:()=>[En(p("div",{class:`${i.value.prefixCls}-treenode-motion`},[c.map(h=>{const b=y2(h.data,[]),{title:y,key:S,isStart:$,isEnd:x}=h;return delete b.children,p(sm,D(D({},b),{},{title:y,active:f,data:h.data,key:S,eventKey:S,isStart:$,isEnd:x}),o)})]),[[jn,r.value]])]}):p(sm,D(D({class:n.class,style:n.style},v),{},{active:f,eventKey:g}),o)}}});function Sle(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const n=e.length,o=t.length;if(Math.abs(n-o)!==1)return{add:!1,key:null};function r(i,l){const a=new Map;i.forEach(u=>{a.set(u,!0)});const s=l.filter(u=>!a.has(u));return s.length===1?s[0]:null}return nl.key===n),r=e[o+1],i=t.findIndex(l=>l.key===n);if(r){const l=t.findIndex(a=>a.key===r.key);return t.slice(i+1,l)}return t.slice(i+1)}var $2=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{},Ol=`RC_TREE_MOTION_${Math.random()}`,Lm={key:Ol},BT={key:Ol,level:0,index:0,pos:"0",node:Lm,nodes:[Lm]},x2={parent:null,children:[],pos:BT.pos,data:Lm,title:null,key:Ol,isStart:[],isEnd:[]};function w2(e,t,n,o){return t===!1||!n?e:e.slice(0,Math.ceil(n/o)+1)}function O2(e){const{key:t,pos:n}=e;return Lc(t,n)}function Cle(e){let t=String(e.key),n=e;for(;n.parent;)n=n.parent,t=`${n.key} > ${t}`;return t}const xle=oe({compatConfig:{MODE:3},name:"NodeList",inheritAttrs:!1,props:PY,setup(e,t){let{expose:n,attrs:o}=t;const r=re(),i=re(),{expandedKeys:l,flattenNodes:a}=g8();n({scrollTo:h=>{r.value.scrollTo(h)},getIndentWidth:()=>i.value.offsetWidth});const s=ne(a.value),u=ne([]),c=re(null);function d(){s.value=a.value,u.value=[],c.value=null,e.onListChangeEnd()}const f=by();ye([()=>l.value.slice(),a],(h,b)=>{let[y,S]=h,[$,x]=b;const C=Sle($,y);if(C.key!==null){const{virtual:O,height:w,itemHeight:I}=e;if(C.add){const T=x.findIndex(A=>{let{key:R}=A;return R===C.key}),M=w2(S2(x,S,C.key),O,w,I),E=x.slice();E.splice(T+1,0,x2),s.value=E,u.value=M,c.value="show"}else{const T=S.findIndex(A=>{let{key:R}=A;return R===C.key}),M=w2(S2(S,x,C.key),O,w,I),E=S.slice();E.splice(T+1,0,x2),s.value=E,u.value=M,c.value="hide"}}else x!==S&&(s.value=S)}),ye(()=>f.value.dragging,h=>{h||d()});const g=P(()=>e.motion===void 0?s.value:a.value),v=()=>{e.onActiveChange(null)};return()=>{const h=m(m({},e),o),{prefixCls:b,selectable:y,checkable:S,disabled:$,motion:x,height:C,itemHeight:O,virtual:w,focusable:I,activeItem:T,focused:M,tabindex:E,onKeydown:A,onFocus:R,onBlur:z,onListChangeStart:_,onListChangeEnd:N}=h,B=$2(h,["prefixCls","selectable","checkable","disabled","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabindex","onKeydown","onFocus","onBlur","onListChangeStart","onListChangeEnd"]);return p(Ve,null,[M&&T&&p("span",{style:C2,"aria-live":"assertive"},[Cle(T)]),p("div",null,[p("input",{style:C2,disabled:I===!1||$,tabindex:I!==!1?E:null,onKeydown:A,onFocus:R,onBlur:z,value:"",onChange:$le,"aria-label":"for screen reader"},null)]),p("div",{class:`${b}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[p("div",{class:`${b}-indent`},[p("div",{ref:i,class:`${b}-indent-unit`},null)])]),p(i6,D(D({},tt(B,["onActiveChange"])),{},{data:g.value,itemKey:O2,height:C,fullHeight:!1,virtual:w,itemHeight:O,prefixCls:`${b}-list`,ref:r,onVisibleChange:(k,F)=>{const L=new Set(k);F.filter(j=>!L.has(j)).some(j=>O2(j)===Ol)&&d()}}),{default:k=>{const{pos:F}=k,L=$2(k.data,[]),{title:H,key:j,isStart:Y,isEnd:Q}=k,U=Lc(j,F);return delete L.key,delete L.children,p(yle,D(D({},L),{},{eventKey:U,title:H,active:!!T&&j===T.key,data:k.data,isStart:Y,isEnd:Q,motion:x,motionNodes:j===Ol?u.value:null,motionType:c.value,onMotionStart:_,onMotionEnd:d,onMousemove:v}),null)}})])}}});function wle(e){let{dropPosition:t,dropLevelOffset:n,indent:o}=e;const r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:"2px"};switch(t){case-1:r.top=0,r.left=`${-n*o}px`;break;case 1:r.bottom=0,r.left=`${-n*o}px`;break;case 0:r.bottom=0,r.left=`${o}`;break}return p("div",{style:r},null)}const Ole=10,kT=oe({compatConfig:{MODE:3},name:"Tree",inheritAttrs:!1,props:Ze(v8(),{prefixCls:"vc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,expandAction:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:wle,allowDrop:()=>!0}),setup(e,t){let{attrs:n,slots:o,expose:r}=t;const i=ne(!1);let l={};const a=ne(),s=ne([]),u=ne([]),c=ne([]),d=ne([]),f=ne([]),g=ne([]),v={},h=ct({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),b=ne([]);ye([()=>e.treeData,()=>e.children],()=>{b.value=e.treeData!==void 0?e.treeData.slice():um(Je(e.children))},{immediate:!0,deep:!0});const y=ne({}),S=ne(!1),$=ne(null),x=ne(!1),C=P(()=>Up(e.fieldNames)),O=ne();let w=null,I=null,T=null;const M=P(()=>({expandedKeysSet:E.value,selectedKeysSet:A.value,loadedKeysSet:R.value,loadingKeysSet:z.value,checkedKeysSet:_.value,halfCheckedKeysSet:N.value,dragOverNodeKey:h.dragOverNodeKey,dropPosition:h.dropPosition,keyEntities:y.value})),E=P(()=>new Set(g.value)),A=P(()=>new Set(s.value)),R=P(()=>new Set(d.value)),z=P(()=>new Set(f.value)),_=P(()=>new Set(u.value)),N=P(()=>new Set(c.value));Le(()=>{if(b.value){const Se=zc(b.value,{fieldNames:C.value});y.value=m({[Ol]:BT},Se.keyEntities)}});let B=!1;ye([()=>e.expandedKeys,()=>e.autoExpandParent,y],(Se,Ce)=>{let[Oe,Me]=Se,[Re,_e]=Ce,Be=g.value;if(e.expandedKeys!==void 0||B&&Me!==_e)Be=e.autoExpandParent||!B&&e.defaultExpandParent?cm(e.expandedKeys,y.value):e.expandedKeys;else if(!B&&e.defaultExpandAll){const et=m({},y.value);delete et[Ol],Be=Object.keys(et).map(dt=>et[dt].key)}else!B&&e.defaultExpandedKeys&&(Be=e.autoExpandParent||e.defaultExpandParent?cm(e.defaultExpandedKeys,y.value):e.defaultExpandedKeys);Be&&(g.value=Be),B=!0},{immediate:!0});const k=ne([]);Le(()=>{k.value=DY(b.value,g.value,C.value)}),Le(()=>{e.selectable&&(e.selectedKeys!==void 0?s.value=Bx(e.selectedKeys,e):!B&&e.defaultSelectedKeys&&(s.value=Bx(e.defaultSelectedKeys,e)))});const{maxLevel:F,levelEntities:L}=Qp(y);Le(()=>{if(e.checkable){let Se;if(e.checkedKeys!==void 0?Se=Oh(e.checkedKeys)||{}:!B&&e.defaultCheckedKeys?Se=Oh(e.defaultCheckedKeys)||{}:b.value&&(Se=Oh(e.checkedKeys)||{checkedKeys:u.value,halfCheckedKeys:c.value}),Se){let{checkedKeys:Ce=[],halfCheckedKeys:Oe=[]}=Se;e.checkStrictly||({checkedKeys:Ce,halfCheckedKeys:Oe}=Io(Ce,!0,y.value,F.value,L.value)),u.value=Ce,c.value=Oe}}}),Le(()=>{e.loadedKeys&&(d.value=e.loadedKeys)});const H=()=>{m(h,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},j=Se=>{O.value.scrollTo(Se)};ye(()=>e.activeKey,()=>{e.activeKey!==void 0&&($.value=e.activeKey)},{immediate:!0}),ye($,Se=>{ot(()=>{Se!==null&&j({key:Se})})},{immediate:!0,flush:"post"});const Y=Se=>{e.expandedKeys===void 0&&(g.value=Se)},Q=()=>{h.draggingNodeKey!==null&&m(h,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),w=null,T=null},U=(Se,Ce)=>{const{onDragend:Oe}=e;h.dragOverNodeKey=null,Q(),Oe?.({event:Se,node:Ce.eventData}),I=null},ee=Se=>{U(Se,null),window.removeEventListener("dragend",ee)},X=(Se,Ce)=>{const{onDragstart:Oe}=e,{eventKey:Me,eventData:Re}=Ce;I=Ce,w={x:Se.clientX,y:Se.clientY};const _e=ir(g.value,Me);h.draggingNodeKey=Me,h.dragChildrenKeys=MY(Me,y.value),a.value=O.value.getIndentWidth(),Y(_e),window.addEventListener("dragend",ee),Oe&&Oe({event:Se,node:Re})},J=(Se,Ce)=>{const{onDragenter:Oe,onExpand:Me,allowDrop:Re,direction:_e}=e,{pos:Be,eventKey:et}=Ce;if(T!==et&&(T=et),!I){H();return}const{dropPosition:dt,dropLevelOffset:it,dropTargetKey:ft,dropContainerKey:gt,dropTargetPos:Ut,dropAllowed:Jt,dragOverNodeKey:on}=Nx(Se,I,Ce,a.value,w,Re,k.value,y.value,E.value,_e);if(h.dragChildrenKeys.indexOf(ft)!==-1||!Jt){H();return}if(l||(l={}),Object.keys(l).forEach(zt=>{clearTimeout(l[zt])}),I.eventKey!==Ce.eventKey&&(l[Be]=window.setTimeout(()=>{if(h.draggingNodeKey===null)return;let zt=g.value.slice();const Cn=y.value[Ce.eventKey];Cn&&(Cn.children||[]).length&&(zt=Or(g.value,Ce.eventKey)),Y(zt),Me&&Me(zt,{node:Ce.eventData,expanded:!0,nativeEvent:Se})},800)),I.eventKey===ft&&it===0){H();return}m(h,{dragOverNodeKey:on,dropPosition:dt,dropLevelOffset:it,dropTargetKey:ft,dropContainerKey:gt,dropTargetPos:Ut,dropAllowed:Jt}),Oe&&Oe({event:Se,node:Ce.eventData,expandedKeys:g.value})},Z=(Se,Ce)=>{const{onDragover:Oe,allowDrop:Me,direction:Re}=e;if(!I)return;const{dropPosition:_e,dropLevelOffset:Be,dropTargetKey:et,dropContainerKey:dt,dropAllowed:it,dropTargetPos:ft,dragOverNodeKey:gt}=Nx(Se,I,Ce,a.value,w,Me,k.value,y.value,E.value,Re);h.dragChildrenKeys.indexOf(et)!==-1||!it||(I.eventKey===et&&Be===0?h.dropPosition===null&&h.dropLevelOffset===null&&h.dropTargetKey===null&&h.dropContainerKey===null&&h.dropTargetPos===null&&h.dropAllowed===!1&&h.dragOverNodeKey===null||H():_e===h.dropPosition&&Be===h.dropLevelOffset&&et===h.dropTargetKey&&dt===h.dropContainerKey&&ft===h.dropTargetPos&&it===h.dropAllowed&>===h.dragOverNodeKey||m(h,{dropPosition:_e,dropLevelOffset:Be,dropTargetKey:et,dropContainerKey:dt,dropTargetPos:ft,dropAllowed:it,dragOverNodeKey:gt}),Oe&&Oe({event:Se,node:Ce.eventData}))},G=(Se,Ce)=>{T===Ce.eventKey&&!Se.currentTarget.contains(Se.relatedTarget)&&(H(),T=null);const{onDragleave:Oe}=e;Oe&&Oe({event:Se,node:Ce.eventData})},q=function(Se,Ce){let Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Me;const{dragChildrenKeys:Re,dropPosition:_e,dropTargetKey:Be,dropTargetPos:et,dropAllowed:dt}=h;if(!dt)return;const{onDrop:it}=e;if(h.dragOverNodeKey=null,Q(),Be===null)return;const ft=m(m({},nd(Be,Je(M.value))),{active:((Me=be.value)===null||Me===void 0?void 0:Me.key)===Be,data:y.value[Be].node});Re.indexOf(Be);const gt=yy(et),Ut={event:Se,node:od(ft),dragNode:I?I.eventData:null,dragNodesKeys:[I.eventKey].concat(Re),dropToGap:_e!==0,dropPosition:_e+Number(gt[gt.length-1])};Oe||it?.(Ut),I=null},V=(Se,Ce)=>{const{expanded:Oe,key:Me}=Ce,Re=k.value.filter(Be=>Be.key===Me)[0],_e=od(m(m({},nd(Me,M.value)),{data:Re.data}));Y(Oe?ir(g.value,Me):Or(g.value,Me)),me(Se,_e)},K=(Se,Ce)=>{const{onClick:Oe,expandAction:Me}=e;Me==="click"&&V(Se,Ce),Oe&&Oe(Se,Ce)},te=(Se,Ce)=>{const{onDblclick:Oe,expandAction:Me}=e;(Me==="doubleclick"||Me==="dblclick")&&V(Se,Ce),Oe&&Oe(Se,Ce)},ue=(Se,Ce)=>{let Oe=s.value;const{onSelect:Me,multiple:Re}=e,{selected:_e}=Ce,Be=Ce[C.value.key],et=!_e;et?Re?Oe=Or(Oe,Be):Oe=[Be]:Oe=ir(Oe,Be);const dt=y.value,it=Oe.map(ft=>{const gt=dt[ft];return gt?gt.node:null}).filter(ft=>ft);e.selectedKeys===void 0&&(s.value=Oe),Me&&Me(Oe,{event:"select",selected:et,node:Ce,selectedNodes:it,nativeEvent:Se})},ie=(Se,Ce,Oe)=>{const{checkStrictly:Me,onCheck:Re}=e,_e=Ce[C.value.key];let Be;const et={event:"check",node:Ce,checked:Oe,nativeEvent:Se},dt=y.value;if(Me){const it=Oe?Or(u.value,_e):ir(u.value,_e),ft=ir(c.value,_e);Be={checked:it,halfChecked:ft},et.checkedNodes=it.map(gt=>dt[gt]).filter(gt=>gt).map(gt=>gt.node),e.checkedKeys===void 0&&(u.value=it)}else{let{checkedKeys:it,halfCheckedKeys:ft}=Io([...u.value,_e],!0,dt,F.value,L.value);if(!Oe){const gt=new Set(it);gt.delete(_e),{checkedKeys:it,halfCheckedKeys:ft}=Io(Array.from(gt),{halfCheckedKeys:ft},dt,F.value,L.value)}Be=it,et.checkedNodes=[],et.checkedNodesPositions=[],et.halfCheckedKeys=ft,it.forEach(gt=>{const Ut=dt[gt];if(!Ut)return;const{node:Jt,pos:on}=Ut;et.checkedNodes.push(Jt),et.checkedNodesPositions.push({node:Jt,pos:on})}),e.checkedKeys===void 0&&(u.value=it,c.value=ft)}Re&&Re(Be,et)},ae=Se=>{const Ce=Se[C.value.key],Oe=new Promise((Me,Re)=>{const{loadData:_e,onLoad:Be}=e;if(!_e||R.value.has(Ce)||z.value.has(Ce))return null;_e(Se).then(()=>{const dt=Or(d.value,Ce),it=ir(f.value,Ce);Be&&Be(dt,{event:"load",node:Se}),e.loadedKeys===void 0&&(d.value=dt),f.value=it,Me()}).catch(dt=>{const it=ir(f.value,Ce);if(f.value=it,v[Ce]=(v[Ce]||0)+1,v[Ce]>=Ole){const ft=Or(d.value,Ce);e.loadedKeys===void 0&&(d.value=ft),Me()}Re(dt)}),f.value=Or(f.value,Ce)});return Oe.catch(()=>{}),Oe},ce=(Se,Ce)=>{const{onMouseenter:Oe}=e;Oe&&Oe({event:Se,node:Ce})},se=(Se,Ce)=>{const{onMouseleave:Oe}=e;Oe&&Oe({event:Se,node:Ce})},pe=(Se,Ce)=>{const{onRightClick:Oe}=e;Oe&&(Se.preventDefault(),Oe({event:Se,node:Ce}))},ge=Se=>{const{onFocus:Ce}=e;S.value=!0,Ce&&Ce(Se)},he=Se=>{const{onBlur:Ce}=e;S.value=!1,de(null),Ce&&Ce(Se)},me=(Se,Ce)=>{let Oe=g.value;const{onExpand:Me,loadData:Re}=e,{expanded:_e}=Ce,Be=Ce[C.value.key];if(x.value)return;Oe.indexOf(Be);const et=!_e;if(et?Oe=Or(Oe,Be):Oe=ir(Oe,Be),Y(Oe),Me&&Me(Oe,{node:Ce,expanded:et,nativeEvent:Se}),et&&Re){const dt=ae(Ce);dt&&dt.then(()=>{}).catch(it=>{const ft=ir(g.value,Be);Y(ft),Promise.reject(it)})}},xe=()=>{x.value=!0},fe=()=>{setTimeout(()=>{x.value=!1})},de=Se=>{const{onActiveChange:Ce}=e;$.value!==Se&&(e.activeKey!==void 0&&($.value=Se),Se!==null&&j({key:Se}),Ce&&Ce(Se))},be=P(()=>$.value===null?null:k.value.find(Se=>{let{key:Ce}=Se;return Ce===$.value})||null),we=Se=>{let Ce=k.value.findIndex(Me=>{let{key:Re}=Me;return Re===$.value});Ce===-1&&Se<0&&(Ce=k.value.length),Ce=(Ce+Se+k.value.length)%k.value.length;const Oe=k.value[Ce];if(Oe){const{key:Me}=Oe;de(Me)}else de(null)},Ie=P(()=>od(m(m({},nd($.value,M.value)),{data:be.value.data,active:!0}))),Ae=Se=>{const{onKeydown:Ce,checkable:Oe,selectable:Me}=e;switch(Se.which){case Pe.UP:{we(-1),Se.preventDefault();break}case Pe.DOWN:{we(1),Se.preventDefault();break}}const Re=be.value;if(Re&&Re.data){const _e=Re.data.isLeaf===!1||!!(Re.data.children||[]).length,Be=Ie.value;switch(Se.which){case Pe.LEFT:{_e&&E.value.has($.value)?me({},Be):Re.parent&&de(Re.parent.key),Se.preventDefault();break}case Pe.RIGHT:{_e&&!E.value.has($.value)?me({},Be):Re.children&&Re.children.length&&de(Re.children[0].key),Se.preventDefault();break}case Pe.ENTER:case Pe.SPACE:{Oe&&!Be.disabled&&Be.checkable!==!1&&!Be.disableCheckbox?ie({},Be,!_.value.has($.value)):!Oe&&Me&&!Be.disabled&&Be.selectable!==!1&&ue({},Be);break}}}Ce&&Ce(Se)};return r({onNodeExpand:me,scrollTo:j,onKeydown:Ae,selectedKeys:P(()=>s.value),checkedKeys:P(()=>u.value),halfCheckedKeys:P(()=>c.value),loadedKeys:P(()=>d.value),loadingKeys:P(()=>f.value),expandedKeys:P(()=>g.value)}),$n(()=>{window.removeEventListener("dragend",ee),i.value=!0}),wY({expandedKeys:g,selectedKeys:s,loadedKeys:d,loadingKeys:f,checkedKeys:u,halfCheckedKeys:c,expandedKeysSet:E,selectedKeysSet:A,loadedKeysSet:R,loadingKeysSet:z,checkedKeysSet:_,halfCheckedKeysSet:N,flattenNodes:k}),()=>{const{draggingNodeKey:Se,dropLevelOffset:Ce,dropContainerKey:Oe,dropTargetKey:Me,dropPosition:Re,dragOverNodeKey:_e}=h,{prefixCls:Be,showLine:et,focusable:dt,tabindex:it=0,selectable:ft,showIcon:gt,icon:Ut=o.icon,switcherIcon:Jt,draggable:on,checkable:zt,checkStrictly:Cn,disabled:Kn,motion:vo,loadData:No,filterTreeNode:Gn,height:ki,itemHeight:Ee,virtual:Ye,dropIndicatorRender:Ge,onContextmenu:$t,onScroll:en,direction:Ht,rootClassName:Xn,rootStyle:hn}=e,{class:tr,style:eo}=n,mo=_i(m(m({},e),n),{aria:!0,data:!0});let At;return on?typeof on=="object"?At=on:typeof on=="function"?At={nodeDraggable:on}:At={}:At=!1,p(xY,{value:{prefixCls:Be,selectable:ft,showIcon:gt,icon:Ut,switcherIcon:Jt,draggable:At,draggingNodeKey:Se,checkable:zt,customCheckable:o.checkable,checkStrictly:Cn,disabled:Kn,keyEntities:y.value,dropLevelOffset:Ce,dropContainerKey:Oe,dropTargetKey:Me,dropPosition:Re,dragOverNodeKey:_e,dragging:Se!==null,indent:a.value,direction:Ht,dropIndicatorRender:Ge,loadData:No,filterTreeNode:Gn,onNodeClick:K,onNodeDoubleClick:te,onNodeExpand:me,onNodeSelect:ue,onNodeCheck:ie,onNodeLoad:ae,onNodeMouseEnter:ce,onNodeMouseLeave:se,onNodeContextMenu:pe,onNodeDragStart:X,onNodeDragEnter:J,onNodeDragOver:Z,onNodeDragLeave:G,onNodeDragEnd:U,onNodeDrop:q,slots:o}},{default:()=>[p("div",{role:"tree",class:le(Be,tr,Xn,{[`${Be}-show-line`]:et,[`${Be}-focused`]:S.value,[`${Be}-active-focused`]:$.value!==null}),style:hn},[p(xle,D({ref:O,prefixCls:Be,style:eo,disabled:Kn,selectable:ft,checkable:!!zt,motion:vo,height:ki,itemHeight:Ee,virtual:Ye,focusable:dt,focused:S.value,tabindex:it,activeItem:be.value,onFocus:ge,onBlur:he,onKeydown:Ae,onActiveChange:de,onListChangeStart:xe,onListChangeEnd:fe,onContextmenu:$t,onScroll:en},mo),null)])]})}}});var Ple={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};function P2(e){for(var t=1;t({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),kle=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Fle=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:r,treeTitleHeight:i}=t,l=(i-t.fontSizeLG)/2,a=t.paddingXS;return{[n]:m(m({},Ue(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:m({},Wr(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Nle,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${o}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${r}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:m({},Wr(t)),[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{width:i,lineHeight:`${i}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${o}:hover &`]:{opacity:.45}},[`&${o}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:m(m({},Ble(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:`${i}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:i/2,bottom:-r,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:i/2*.8,height:i/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:a,marginBlockStart:l},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${i}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:t.controlItemBgHover},[`&${n}-node-selected`]:{backgroundColor:t.controlItemBgActive},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,lineHeight:`${i}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:m({lineHeight:`${i}px`,userSelect:"none"},kle(e,t)),[`${o}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:i/2,bottom:-r,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${i/2}px !important`}}}}})}},Lle=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:o}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:e.colorTextLightSolid,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:e.colorPrimary},[`${t}-switcher`]:{color:e.colorTextLightSolid},[`${t}-node-content-wrapper`]:{color:e.colorTextLightSolid,background:"transparent"}}}}}},LT=(e,t)=>{const n=`.${e}`,o=`${n}-treenode`,r=t.paddingXS/2,i=t.controlHeightSM,l=ke(t,{treeCls:n,treeNodeCls:o,treeNodePadding:r,treeTitleHeight:i});return[Fle(e,l),Lle(l)]},zle=Ke("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:ng(`${n}-checkbox`,e)},LT(n,e),_c(e)]}),zT=()=>{const e=v8();return m(m({},e),{showLine:Fe([Boolean,Object]),multiple:$e(),autoExpandParent:$e(),checkStrictly:$e(),checkable:$e(),disabled:$e(),defaultExpandAll:$e(),defaultExpandParent:$e(),defaultExpandedKeys:lt(),expandedKeys:lt(),checkedKeys:Fe([Array,Object]),defaultCheckedKeys:lt(),selectedKeys:lt(),defaultSelectedKeys:lt(),selectable:$e(),loadedKeys:lt(),draggable:$e(),showIcon:$e(),icon:ve(),switcherIcon:W.any,prefixCls:String,replaceFields:De(),blockNode:$e(),openAnimation:W.any,onDoubleclick:e.onDblclick,"onUpdate:selectedKeys":ve(),"onUpdate:checkedKeys":ve(),"onUpdate:expandedKeys":ve()})},Sd=oe({compatConfig:{MODE:3},name:"ATree",inheritAttrs:!1,props:Ze(zT(),{checkable:!1,selectable:!0,showIcon:!1,blockNode:!1}),slots:Object,setup(e,t){let{attrs:n,expose:o,emit:r,slots:i}=t;e.treeData===void 0&&i.default;const{prefixCls:l,direction:a,virtual:s}=Te("tree",e),[u,c]=zle(l),d=re();o({treeRef:d,onNodeExpand:function(){var b;(b=d.value)===null||b===void 0||b.onNodeExpand(...arguments)},scrollTo:b=>{var y;(y=d.value)===null||y===void 0||y.scrollTo(b)},selectedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.selectedKeys}),checkedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.checkedKeys}),halfCheckedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.halfCheckedKeys}),loadedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.loadedKeys}),loadingKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.loadingKeys}),expandedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.expandedKeys})}),Le(()=>{Ct(e.replaceFields===void 0,"Tree","`replaceFields` is deprecated, please use fieldNames instead")});const g=(b,y)=>{r("update:checkedKeys",b),r("check",b,y)},v=(b,y)=>{r("update:expandedKeys",b),r("expand",b,y)},h=(b,y)=>{r("update:selectedKeys",b),r("select",b,y)};return()=>{const{showIcon:b,showLine:y,switcherIcon:S=i.switcherIcon,icon:$=i.icon,blockNode:x,checkable:C,selectable:O,fieldNames:w=e.replaceFields,motion:I=e.openAnimation,itemHeight:T=28,onDoubleclick:M,onDblclick:E}=e,A=m(m(m({},n),tt(e,["onUpdate:checkedKeys","onUpdate:expandedKeys","onUpdate:selectedKeys","onDoubleclick"])),{showLine:!!y,dropIndicatorRender:Dle,fieldNames:w,icon:$,itemHeight:T}),R=i.default?_t(i.default()):void 0;return u(p(kT,D(D({},A),{},{virtual:s.value,motion:I,ref:d,prefixCls:l.value,class:le({[`${l.value}-icon-hide`]:!b,[`${l.value}-block-node`]:x,[`${l.value}-unselectable`]:!O,[`${l.value}-rtl`]:a.value==="rtl"},n.class,c.value),direction:a.value,checkable:C,selectable:O,switcherIcon:z=>FT(l.value,S,z,i.leafIcon,y),onCheck:g,onExpand:v,onSelect:h,onDblclick:E||M,children:R}),m(m({},i),{checkable:()=>p("span",{class:`${l.value}-checkbox-inner`},null)})))}}});var Hle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};function _2(e){for(var t=1;t{if(a===Tr.End)return!1;if(s(u)){if(l.push(u),a===Tr.None)a=Tr.Start;else if(a===Tr.Start)return a=Tr.End,!1}else a===Tr.Start&&l.push(u);return n.includes(u)}),l}function Wh(e,t,n){const o=[...t],r=[];return d1(e,n,(i,l)=>{const a=o.indexOf(i);return a!==-1&&(r.push(l),o.splice(a,1)),!!o.length}),r}var Gle=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rm(m({},zT()),{expandAction:Fe([Boolean,String])});function Ule(e){const{isLeaf:t,expanded:n}=e;return p(t?gg:n?c1:u1,null,null)}const $d=oe({compatConfig:{MODE:3},name:"ADirectoryTree",inheritAttrs:!1,props:Ze(Xle(),{showIcon:!0,expandAction:"click"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:i}=t;var l;const a=re(e.treeData||um(_t((l=o.default)===null||l===void 0?void 0:l.call(o))));ye(()=>e.treeData,()=>{a.value=e.treeData}),An(()=>{ot(()=>{var T;e.treeData===void 0&&o.default&&(a.value=um(_t((T=o.default)===null||T===void 0?void 0:T.call(o))))})});const s=re(),u=re(),c=P(()=>Up(e.fieldNames)),d=re();i({scrollTo:T=>{var M;(M=d.value)===null||M===void 0||M.scrollTo(T)},selectedKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.selectedKeys}),checkedKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.checkedKeys}),halfCheckedKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.halfCheckedKeys}),loadedKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.loadedKeys}),loadingKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.loadingKeys}),expandedKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.expandedKeys})});const g=()=>{const{keyEntities:T}=zc(a.value,{fieldNames:c.value});let M;return e.defaultExpandAll?M=Object.keys(T):e.defaultExpandParent?M=cm(e.expandedKeys||e.defaultExpandedKeys||[],T):M=e.expandedKeys||e.defaultExpandedKeys,M},v=re(e.selectedKeys||e.defaultSelectedKeys||[]),h=re(g());ye(()=>e.selectedKeys,()=>{e.selectedKeys!==void 0&&(v.value=e.selectedKeys)},{immediate:!0}),ye(()=>e.expandedKeys,()=>{e.expandedKeys!==void 0&&(h.value=e.expandedKeys)},{immediate:!0});const y=Sb((T,M)=>{const{isLeaf:E}=M;E||T.shiftKey||T.metaKey||T.ctrlKey||d.value.onNodeExpand(T,M)},200,{leading:!0}),S=(T,M)=>{e.expandedKeys===void 0&&(h.value=T),r("update:expandedKeys",T),r("expand",T,M)},$=(T,M)=>{const{expandAction:E}=e;E==="click"&&y(T,M),r("click",T,M)},x=(T,M)=>{const{expandAction:E}=e;(E==="dblclick"||E==="doubleclick")&&y(T,M),r("doubleclick",T,M),r("dblclick",T,M)},C=(T,M)=>{const{multiple:E}=e,{node:A,nativeEvent:R}=M,z=A[c.value.key],_=m(m({},M),{selected:!0}),N=R?.ctrlKey||R?.metaKey,B=R?.shiftKey;let k;E&&N?(k=T,s.value=z,u.value=k,_.selectedNodes=Wh(a.value,k,c.value)):E&&B?(k=Array.from(new Set([...u.value||[],...Kle({treeData:a.value,expandedKeys:h.value,startKey:z,endKey:s.value,fieldNames:c.value})])),_.selectedNodes=Wh(a.value,k,c.value)):(k=[z],s.value=z,u.value=k,_.selectedNodes=Wh(a.value,k,c.value)),r("update:selectedKeys",k),r("select",k,_),e.selectedKeys===void 0&&(v.value=k)},O=(T,M)=>{r("update:checkedKeys",T),r("check",T,M)},{prefixCls:w,direction:I}=Te("tree",e);return()=>{const T=le(`${w.value}-directory`,{[`${w.value}-directory-rtl`]:I.value==="rtl"},n.class),{icon:M=o.icon,blockNode:E=!0}=e,A=Gle(e,["icon","blockNode"]);return p(Sd,D(D(D({},n),{},{icon:M||Ule,ref:d,blockNode:E},A),{},{prefixCls:w.value,class:T,expandedKeys:h.value,selectedKeys:v.value,onSelect:C,onClick:$,onDblclick:x,onExpand:S,onCheck:O}),o)}}}),Cd=sm,HT=m(Sd,{DirectoryTree:$d,TreeNode:Cd,install:e=>(e.component(Sd.name,Sd),e.component(Cd.name,Cd),e.component($d.name,$d),e)});function R2(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const o=new Set;function r(i,l){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;const s=o.has(i);if(w0(!s,"Warning: There may be circular references"),s)return!1;if(i===l)return!0;if(n&&a>1)return!1;o.add(i);const u=a+1;if(Array.isArray(i)){if(!Array.isArray(l)||i.length!==l.length)return!1;for(let c=0;cr(i[d],l[d],u))}return!1}return r(e,t)}const{SubMenu:Yle,Item:qle}=Vt;function Zle(e){return e.some(t=>{let{children:n}=t;return n&&n.length>0})}function jT(e,t){return typeof t=="string"||typeof t=="number"?t?.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function VT(e){let{filters:t,prefixCls:n,filteredKeys:o,filterMultiple:r,searchValue:i,filterSearch:l}=e;return t.map((a,s)=>{const u=String(a.value);if(a.children)return p(Yle,{key:u||s,title:a.text,popupClassName:`${n}-dropdown-submenu`},{default:()=>[VT({filters:a.children,prefixCls:n,filteredKeys:o,filterMultiple:r,searchValue:i,filterSearch:l})]});const c=r?To:Fn,d=p(qle,{key:a.value!==void 0?u:s},{default:()=>[p(c,{checked:o.includes(u)},null),p("span",null,[a.text])]});return i.trim()?typeof l=="function"?l(i,a)?d:void 0:jT(i,a.text)?d:void 0:d})}const Qle=oe({name:"FilterDropdown",props:["tablePrefixCls","prefixCls","dropdownPrefixCls","column","filterState","filterMultiple","filterMode","filterSearch","columnKey","triggerFilter","locale","getPopupContainer"],setup(e,t){let{slots:n}=t;const o=e1(),r=P(()=>{var j;return(j=e.filterMode)!==null&&j!==void 0?j:"menu"}),i=P(()=>{var j;return(j=e.filterSearch)!==null&&j!==void 0?j:!1}),l=P(()=>e.column.filterDropdownOpen||e.column.filterDropdownVisible),a=P(()=>e.column.onFilterDropdownOpenChange||e.column.onFilterDropdownVisibleChange),s=ne(!1),u=P(()=>{var j;return!!(e.filterState&&(!((j=e.filterState.filteredKeys)===null||j===void 0)&&j.length||e.filterState.forceFiltered))}),c=P(()=>{var j;return hg((j=e.column)===null||j===void 0?void 0:j.filters)}),d=P(()=>{const{filterDropdown:j,slots:Y={},customFilterDropdown:Q}=e.column;return j||Y.filterDropdown&&o.value[Y.filterDropdown]||Q&&o.value.customFilterDropdown}),f=P(()=>{const{filterIcon:j,slots:Y={}}=e.column;return j||Y.filterIcon&&o.value[Y.filterIcon]||o.value.customFilterIcon}),g=j=>{var Y;s.value=j,(Y=a.value)===null||Y===void 0||Y.call(a,j)},v=P(()=>typeof l.value=="boolean"?l.value:s.value),h=P(()=>{var j;return(j=e.filterState)===null||j===void 0?void 0:j.filteredKeys}),b=ne([]),y=j=>{let{selectedKeys:Y}=j;b.value=Y},S=(j,Y)=>{let{node:Q,checked:U}=Y;e.filterMultiple?y({selectedKeys:j}):y({selectedKeys:U&&Q.key?[Q.key]:[]})};ye(h,()=>{s.value&&y({selectedKeys:h.value||[]})},{immediate:!0});const $=ne([]),x=ne(),C=j=>{x.value=setTimeout(()=>{$.value=j})},O=()=>{clearTimeout(x.value)};Qe(()=>{clearTimeout(x.value)});const w=ne(""),I=j=>{const{value:Y}=j.target;w.value=Y};ye(s,()=>{s.value||(w.value="")});const T=j=>{const{column:Y,columnKey:Q,filterState:U}=e,ee=j&&j.length?j:null;if(ee===null&&(!U||!U.filteredKeys)||R2(ee,U?.filteredKeys,!0))return null;e.triggerFilter({column:Y,key:Q,filteredKeys:ee})},M=()=>{g(!1),T(b.value)},E=function(){let{confirm:j,closeDropdown:Y}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};j&&T([]),Y&&g(!1),w.value="",e.column.filterResetToDefaultFilteredValue?b.value=(e.column.defaultFilteredValue||[]).map(Q=>String(Q)):b.value=[]},A=function(){let{closeDropdown:j}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};j&&g(!1),T(b.value)},R=j=>{j&&h.value!==void 0&&(b.value=h.value||[]),g(j),!j&&!d.value&&M()},{direction:z}=Te("",e),_=j=>{if(j.target.checked){const Y=c.value;b.value=Y}else b.value=[]},N=j=>{let{filters:Y}=j;return(Y||[]).map((Q,U)=>{const ee=String(Q.value),X={title:Q.text,key:Q.value!==void 0?ee:U};return Q.children&&(X.children=N({filters:Q.children})),X})},B=j=>{var Y;return m(m({},j),{text:j.title,value:j.key,children:((Y=j.children)===null||Y===void 0?void 0:Y.map(Q=>B(Q)))||[]})},k=P(()=>N({filters:e.column.filters})),F=P(()=>le({[`${e.dropdownPrefixCls}-menu-without-submenu`]:!Zle(e.column.filters||[])})),L=()=>{const j=b.value,{column:Y,locale:Q,tablePrefixCls:U,filterMultiple:ee,dropdownPrefixCls:X,getPopupContainer:J,prefixCls:Z}=e;return(Y.filters||[]).length===0?p(gi,{image:gi.PRESENTED_IMAGE_SIMPLE,description:Q.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}},null):r.value==="tree"?p(Ve,null,[p(b2,{filterSearch:i.value,value:w.value,onChange:I,tablePrefixCls:U,locale:Q},null),p("div",{class:`${U}-filter-dropdown-tree`},[ee?p(To,{class:`${U}-filter-dropdown-checkall`,onChange:_,checked:j.length===c.value.length,indeterminate:j.length>0&&j.length[Q.filterCheckall]}):null,p(HT,{checkable:!0,selectable:!1,blockNode:!0,multiple:ee,checkStrictly:!ee,class:`${X}-menu`,onCheck:S,checkedKeys:j,selectedKeys:j,showIcon:!1,treeData:k.value,autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:w.value.trim()?G=>typeof i.value=="function"?i.value(w.value,B(G)):jT(w.value,G.title):void 0},null)])]):p(Ve,null,[p(b2,{filterSearch:i.value,value:w.value,onChange:I,tablePrefixCls:U,locale:Q},null),p(Vt,{multiple:ee,prefixCls:`${X}-menu`,class:F.value,onClick:O,onSelect:y,onDeselect:y,selectedKeys:j,getPopupContainer:J,openKeys:$.value,onOpenChange:C},{default:()=>VT({filters:Y.filters||[],filterSearch:i.value,prefixCls:Z,filteredKeys:b.value,filterMultiple:ee,searchValue:w.value})})])},H=P(()=>{const j=b.value;return e.column.filterResetToDefaultFilteredValue?R2((e.column.defaultFilteredValue||[]).map(Y=>String(Y)),j,!0):j.length===0});return()=>{var j;const{tablePrefixCls:Y,prefixCls:Q,column:U,dropdownPrefixCls:ee,locale:X,getPopupContainer:J}=e;let Z;typeof d.value=="function"?Z=d.value({prefixCls:`${ee}-custom`,setSelectedKeys:V=>y({selectedKeys:V}),selectedKeys:b.value,confirm:A,clearFilters:E,filters:U.filters,visible:v.value,column:U.__originColumn__,close:()=>{g(!1)}}):d.value?Z=d.value:Z=p(Ve,null,[L(),p("div",{class:`${Q}-dropdown-btns`},[p(Lt,{type:"link",size:"small",disabled:H.value,onClick:()=>E()},{default:()=>[X.filterReset]}),p(Lt,{type:"primary",size:"small",onClick:M},{default:()=>[X.filterConfirm]})])]);const G=p(ble,{class:`${Q}-dropdown`},{default:()=>[Z]});let q;return typeof f.value=="function"?q=f.value({filtered:u.value,column:U.__originColumn__}):f.value?q=f.value:q=p(i1,null,null),p("div",{class:`${Q}-column`},[p("span",{class:`${Y}-column-title`},[(j=n.default)===null||j===void 0?void 0:j.call(n)]),p(Wo,{overlay:G,trigger:["click"],open:v.value,onOpenChange:R,getPopupContainer:J,placement:z.value==="rtl"?"bottomLeft":"bottomRight"},{default:()=>[p("span",{role:"button",tabindex:-1,class:le(`${Q}-trigger`,{active:u.value}),onClick:V=>{V.stopPropagation()}},[q])]})])}}});function zm(e,t,n){let o=[];return(e||[]).forEach((r,i)=>{var l,a;const s=Kc(i,n),u=r.filterDropdown||((l=r?.slots)===null||l===void 0?void 0:l.filterDropdown)||r.customFilterDropdown;if(r.filters||u||"onFilter"in r)if("filteredValue"in r){let c=r.filteredValue;u||(c=(a=c?.map(String))!==null&&a!==void 0?a:c),o.push({column:r,key:wl(r,s),filteredKeys:c,forceFiltered:r.filtered})}else o.push({column:r,key:wl(r,s),filteredKeys:t&&r.defaultFilteredValue?r.defaultFilteredValue:void 0,forceFiltered:r.filtered});"children"in r&&(o=[...o,...zm(r.children,t,s)])}),o}function WT(e,t,n,o,r,i,l,a){return n.map((s,u)=>{var c;const d=Kc(u,a),{filterMultiple:f=!0,filterMode:g,filterSearch:v}=s;let h=s;const b=s.filterDropdown||((c=s?.slots)===null||c===void 0?void 0:c.filterDropdown)||s.customFilterDropdown;if(h.filters||b){const y=wl(h,d),S=o.find($=>{let{key:x}=$;return y===x});h=m(m({},h),{title:$=>p(Qle,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:h,columnKey:y,filterState:S,filterMultiple:f,filterMode:g,filterSearch:v,triggerFilter:i,locale:r,getPopupContainer:l},{default:()=>[r1(s.title,$)]})})}return"children"in h&&(h=m(m({},h),{children:WT(e,t,h.children,o,r,i,l,d)})),h})}function hg(e){let t=[];return(e||[]).forEach(n=>{let{value:o,children:r}=n;t.push(o),r&&(t=[...t,...hg(r)])}),t}function D2(e){const t={};return e.forEach(n=>{let{key:o,filteredKeys:r,column:i}=n;var l;const a=i.filterDropdown||((l=i?.slots)===null||l===void 0?void 0:l.filterDropdown)||i.customFilterDropdown,{filters:s}=i;if(a)t[o]=r||null;else if(Array.isArray(r)){const u=hg(s);t[o]=u.filter(c=>r.includes(String(c)))}else t[o]=null}),t}function N2(e,t){return t.reduce((n,o)=>{const{column:{onFilter:r,filters:i},filteredKeys:l}=o;return r&&l&&l.length?n.filter(a=>l.some(s=>{const u=hg(i),c=u.findIndex(f=>String(f)===String(s)),d=c!==-1?u[c]:s;return r(d,a)})):n},e)}function KT(e){return e.flatMap(t=>"children"in t?[t,...KT(t.children||[])]:[t])}function Jle(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:o,locale:r,onFilterChange:i,getPopupContainer:l}=e;const a=P(()=>KT(o.value)),[s,u]=ht(zm(a.value,!0)),c=P(()=>{const v=zm(a.value,!1);if(v.length===0)return v;let h=!0,b=!0;if(v.forEach(y=>{let{filteredKeys:S}=y;S!==void 0?h=!1:b=!1}),h){const y=(a.value||[]).map((S,$)=>wl(S,Kc($)));return s.value.filter(S=>{let{key:$}=S;return y.includes($)}).map(S=>{const $=a.value[y.findIndex(x=>x===S.key)];return m(m({},S),{column:m(m({},S.column),$),forceFiltered:$.filtered})})}return Ct(b,"Table","Columns should all contain `filteredValue` or not contain `filteredValue`."),v}),d=P(()=>D2(c.value)),f=v=>{const h=c.value.filter(b=>{let{key:y}=b;return y!==v.key});h.push(v),u(h),i(D2(h),h)};return[v=>WT(t.value,n.value,v,c.value,r.value,f,l.value),c,d]}function GT(e,t){return e.map(n=>{const o=m({},n);return o.title=r1(o.title,t),"children"in o&&(o.children=GT(o.children,t)),o})}function eae(e){return[n=>GT(n,e.value)]}function tae(e){return function(n){let{prefixCls:o,onExpand:r,record:i,expanded:l,expandable:a}=n;const s=`${o}-row-expand-icon`;return p("button",{type:"button",onClick:u=>{r(i,u),u.stopPropagation()},class:le(s,{[`${s}-spaced`]:!a,[`${s}-expanded`]:a&&l,[`${s}-collapsed`]:a&&!l}),"aria-label":l?e.collapse:e.expand,"aria-expanded":l},null)}}function XT(e,t){const n=t.value;return e.map(o=>{var r;if(o===Ir||o===di)return o;const i=m({},o),{slots:l={}}=i;return i.__originColumn__=o,Ct(!("slots"in i),"Table","`column.slots` is deprecated. Please use `v-slot:headerCell` `v-slot:bodyCell` instead."),Object.keys(l).forEach(a=>{const s=l[a];i[a]===void 0&&n[s]&&(i[a]=n[s])}),t.value.headerCell&&!(!((r=o.slots)===null||r===void 0)&&r.title)&&(i.title=vp(t.value,"headerCell",{title:o.title,column:o},()=>[o.title])),"children"in i&&Array.isArray(i.children)&&(i.children=XT(i.children,t)),i})}function nae(e){return[n=>XT(n,e)]}const oae=e=>{const{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,o=(r,i,l)=>({[`&${t}-${r}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${i}px -${l+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:m(m(m({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,[` + `]:{cursor:"not-allowed !important"}}})}},hT=(e,t)=>{const{componentCls:n,railSize:o,handleSize:r,dotSize:i}=e,l=t?"paddingBlock":"paddingInline",a=t?"width":"height",s=t?"height":"width",u=t?"insetBlockStart":"insetInlineStart",c=t?"top":"insetInlineStart";return{[l]:o,[s]:o*3,[`${n}-rail`]:{[a]:"100%",[s]:o},[`${n}-track`]:{[s]:o},[`${n}-handle`]:{[u]:(o*3-r)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[c]:r,[a]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[c]:o,[a]:"100%",[s]:o},[`${n}-dot`]:{position:"absolute",[u]:(o-i)/2}}},Ere=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:m(m({},hT(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},Mre=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:m(m({},hT(e,!1)),{height:"100%"})}},_re=Ke("Slider",e=>{const t=ke(e,{marginPart:(e.controlHeight-e.controlSize)/2,marginFull:e.controlSize/2,marginPartWithMark:e.controlHeightLG-e.controlSize});return[Tre(t),Ere(t),Mre(t)]},e=>{const n=e.controlHeightLG/4,o=e.controlHeightSM/2,r=e.lineWidth+1,i=e.lineWidth+3;return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:o,dotSize:8,handleLineWidth:r,handleLineWidthHover:i}});var r2=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rtypeof e=="number"?e.toString():"",Rre=()=>({id:String,prefixCls:String,tooltipPrefixCls:String,range:Fe([Boolean,Object]),reverse:$e(),min:Number,max:Number,step:Fe([Object,Number]),marks:De(),dots:$e(),value:Fe([Array,Number]),defaultValue:Fe([Array,Number]),included:$e(),disabled:$e(),vertical:$e(),tipFormatter:Fe([Function,Object],()=>Are),tooltipOpen:$e(),tooltipVisible:$e(),tooltipPlacement:Ne(),getTooltipPopupContainer:ve(),autofocus:$e(),handleStyle:Fe([Array,Object]),trackStyle:Fe([Array,Object]),onChange:ve(),onAfterChange:ve(),onFocus:ve(),onBlur:ve(),"onUpdate:value":ve()}),Dre=oe({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:Rre(),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:i}=t;const{prefixCls:l,rootPrefixCls:a,direction:s,getPopupContainer:u,configProvider:c}=Te("slider",e),[d,f]=_re(l),g=Qt(),v=re(),h=re({}),b=(w,I)=>{h.value[w]=I},y=P(()=>e.tooltipPlacement?e.tooltipPlacement:e.vertical?s.value==="rtl"?"left":"right":"top"),S=()=>{var w;(w=v.value)===null||w===void 0||w.focus()},$=()=>{var w;(w=v.value)===null||w===void 0||w.blur()},x=w=>{r("update:value",w),r("change",w),g.onFieldChange()},C=w=>{r("blur",w)};i({focus:S,blur:$});const O=w=>{var{tooltipPrefixCls:I}=w,T=w.info,{value:_,dragging:E,index:A}=T,R=r2(T,["value","dragging","index"]);const{tipFormatter:z,tooltipOpen:M=e.tooltipVisible,getTooltipPopupContainer:N}=e,B=z?h.value[A]||E:!1,k=M||M===void 0&&B;return p(Ire,{prefixCls:I,title:z?z(_):"",open:k,placement:y.value,transitionName:`${a.value}-zoom-down`,key:A,overlayClassName:`${l.value}-tooltip`,getPopupContainer:N||u?.value},{default:()=>[p(cT,D(D({},R),{},{value:_,onMouseenter:()=>b(A,!0),onMouseleave:()=>b(A,!1)}),null)]})};return()=>{const{tooltipPrefixCls:w,range:I,id:T=g.id.value}=e,_=r2(e,["tooltipPrefixCls","range","id"]),E=c.getPrefixCls("tooltip",w),A=le(n.class,{[`${l.value}-rtl`]:s.value==="rtl"},f.value);s.value==="rtl"&&!_.vertical&&(_.reverse=!_.reverse);let R;return typeof I=="object"&&(R=I.draggableTrack),d(I?p(Pre,D(D(D({},n),_),{},{step:_.step,draggableTrack:R,class:A,ref:v,handle:z=>O({tooltipPrefixCls:E,prefixCls:l.value,info:z}),prefixCls:l.value,onChange:x,onBlur:C}),{mark:o.mark}):p(xre,D(D(D({},n),_),{},{id:T,step:_.step,class:A,ref:v,handle:z=>O({tooltipPrefixCls:E,prefixCls:l.value,info:z}),prefixCls:l.value,onChange:x,onBlur:C}),{mark:o.mark}))}}}),Nre=It(Dre);function i2(e){return typeof e=="string"}function Bre(){}const vT=()=>({prefixCls:String,itemWidth:String,active:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},status:Ne(),iconPrefix:String,icon:W.any,adjustMarginRight:String,stepNumber:Number,stepIndex:Number,description:W.any,title:W.any,subTitle:W.any,progressDot:$P(W.oneOfType([W.looseBool,W.func])),tailContent:W.any,icons:W.shape({finish:W.any,error:W.any}).loose,onClick:ve(),onStepClick:ve(),stepIcon:ve(),itemRender:ve(),__legacy:$e()}),mT=oe({compatConfig:{MODE:3},name:"Step",inheritAttrs:!1,props:vT(),setup(e,t){let{slots:n,emit:o,attrs:r}=t;const i=a=>{o("click",a),o("stepClick",e.stepIndex)},l=a=>{let{icon:s,title:u,description:c}=a;const{prefixCls:d,stepNumber:f,status:g,iconPrefix:v,icons:h,progressDot:b=n.progressDot,stepIcon:y=n.stepIcon}=e;let S;const $=le(`${d}-icon`,`${v}icon`,{[`${v}icon-${s}`]:s&&i2(s),[`${v}icon-check`]:!s&&g==="finish"&&(h&&!h.finish||!h),[`${v}icon-cross`]:!s&&g==="error"&&(h&&!h.error||!h)}),x=p("span",{class:`${d}-icon-dot`},null);return b?typeof b=="function"?S=p("span",{class:`${d}-icon`},[b({iconDot:x,index:f-1,status:g,title:u,description:c,prefixCls:d})]):S=p("span",{class:`${d}-icon`},[x]):s&&!i2(s)?S=p("span",{class:`${d}-icon`},[s]):h&&h.finish&&g==="finish"?S=p("span",{class:`${d}-icon`},[h.finish]):h&&h.error&&g==="error"?S=p("span",{class:`${d}-icon`},[h.error]):s||g==="finish"||g==="error"?S=p("span",{class:$},null):S=p("span",{class:`${d}-icon`},[f]),y&&(S=y({index:f-1,status:g,title:u,description:c,node:S})),S};return()=>{var a,s,u,c;const{prefixCls:d,itemWidth:f,active:g,status:v="wait",tailContent:h,adjustMarginRight:b,disabled:y,title:S=(a=n.title)===null||a===void 0?void 0:a.call(n),description:$=(s=n.description)===null||s===void 0?void 0:s.call(n),subTitle:x=(u=n.subTitle)===null||u===void 0?void 0:u.call(n),icon:C=(c=n.icon)===null||c===void 0?void 0:c.call(n),onClick:O,onStepClick:w}=e,I=v||"wait",T=le(`${d}-item`,`${d}-item-${I}`,{[`${d}-item-custom`]:C,[`${d}-item-active`]:g,[`${d}-item-disabled`]:y===!0}),_={};f&&(_.width=f),b&&(_.marginRight=b);const E={onClick:O||Bre};w&&!y&&(E.role="button",E.tabindex=0,E.onClick=i);const A=p("div",D(D({},tt(r,["__legacy"])),{},{class:[T,r.class],style:[r.style,_]}),[p("div",D(D({},E),{},{class:`${d}-item-container`}),[p("div",{class:`${d}-item-tail`},[h]),p("div",{class:`${d}-item-icon`},[l({icon:C,title:S,description:$})]),p("div",{class:`${d}-item-content`},[p("div",{class:`${d}-item-title`},[S,x&&p("div",{title:typeof x=="string"?x:void 0,class:`${d}-item-subtitle`},[x])]),$&&p("div",{class:`${d}-item-description`},[$])])])]);return e.itemRender?e.itemRender(A):A}}});var kre=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r[]),icons:W.shape({finish:W.any,error:W.any}).loose,stepIcon:ve(),isInline:W.looseBool,itemRender:ve()},emits:["change"],setup(e,t){let{slots:n,emit:o}=t;const r=a=>{const{current:s}=e;s!==a&&o("change",a)},i=(a,s,u)=>{const{prefixCls:c,iconPrefix:d,status:f,current:g,initial:v,icons:h,stepIcon:b=n.stepIcon,isInline:y,itemRender:S,progressDot:$=n.progressDot}=e,x=y||$,C=m(m({},a),{class:""}),O=v+s,w={active:O===g,stepNumber:O+1,stepIndex:O,key:O,prefixCls:c,iconPrefix:d,progressDot:x,stepIcon:b,icons:h,onStepClick:r};return f==="error"&&s===g-1&&(C.class=`${c}-next-error`),C.status||(O===g?C.status=f:OS(C,I)),p(mT,D(D(D({},C),w),{},{__legacy:!1}),null))},l=(a,s)=>i(m({},a.props),s,u=>ut(a,u));return()=>{var a;const{prefixCls:s,direction:u,type:c,labelPlacement:d,iconPrefix:f,status:g,size:v,current:h,progressDot:b=n.progressDot,initial:y,icons:S,items:$,isInline:x,itemRender:C}=e,O=kre(e,["prefixCls","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","initial","icons","items","isInline","itemRender"]),w=c==="navigation",I=x||b,T=x?"horizontal":u,_=x?void 0:v,E=I?"vertical":d,A=le(s,`${s}-${u}`,{[`${s}-${_}`]:_,[`${s}-label-${E}`]:T==="horizontal",[`${s}-dot`]:!!I,[`${s}-navigation`]:w,[`${s}-inline`]:x});return p("div",D({class:A},O),[$.filter(R=>R).map((R,z)=>i(R,z)),At((a=n.default)===null||a===void 0?void 0:a.call(n)).map(l)])}}}),Lre=e=>{const{componentCls:t,stepsIconCustomTop:n,stepsIconCustomSize:o,stepsIconCustomFontSize:r}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:o,height:o,fontSize:r,lineHeight:`${o}px`}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},zre=e=>{const{componentCls:t,stepsIconSize:n,lineHeight:o,stepsSmallIconSize:r}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:n/2+e.controlHeightLG,padding:`${e.paddingXXS}px ${e.paddingLG}px`},"&-content":{display:"block",width:(n/2+e.controlHeightLG)*2,marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:o}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.controlHeightLG+(n-r)/2}}}}}},Hre=e=>{const{componentCls:t,stepsNavContentMaxWidth:n,stepsNavArrowColor:o,stepsNavActiveColor:r,motionDurationSlow:i}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:-e.marginSM}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:-e.margin,paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${i}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:m(m({maxWidth:"100%",paddingInlineEnd:0},Gt),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${e.paddingSM/2}px)`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${e.lineWidth}px ${e.lineType} ${o}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${e.lineWidth}px ${e.lineType} ${o}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:r,transition:`width ${i}, inset-inline-start ${i}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.lineWidth*3,height:`calc(100% - ${e.marginLG}px)`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.controlHeight*.25,height:e.controlHeight*.25,marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},jre=e=>{const{antCls:t,componentCls:n}=e;return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:e.paddingXXS,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:e.processIconColor}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:e.paddingXXS,[`> ${n}-item-container > ${n}-item-tail`]:{top:e.marginXXS,insetInlineStart:e.stepsIconSize/2-e.lineWidth+e.paddingXXS}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:e.paddingXXS,paddingInlineStart:e.paddingXXS}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth+e.paddingXXS},[`&${n}-label-vertical`]:{[`${n}-item ${n}-item-tail`]:{top:e.margin-2*e.lineWidth}},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetBlockStart:(e.stepsIconSize-e.stepsProgressSize-e.lineWidth*2)/2,insetInlineStart:(e.stepsIconSize-e.stepsProgressSize-e.lineWidth*2)/2}}}}},Vre=e=>{const{componentCls:t,descriptionWidth:n,lineHeight:o,stepsCurrentDotSize:r,stepsDotSize:i,motionDurationSlow:l}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:o},"&-tail":{top:Math.floor((e.stepsDotSize-e.lineWidth*3)/2),width:"100%",marginTop:0,marginBottom:0,marginInline:`${n/2}px 0`,padding:0,"&::after":{width:`calc(100% - ${e.marginSM*2}px)`,height:e.lineWidth*3,marginInlineStart:e.marginSM}},"&-icon":{width:i,height:i,marginInlineStart:(e.descriptionWidth-i)/2,paddingInlineEnd:0,lineHeight:`${i}px`,background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${l}`,"&::after":{position:"absolute",top:-e.marginSM,insetInlineStart:(i-e.controlHeightLG*1.5)/2,width:e.controlHeightLG*1.5,height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:(i-r)/2,width:r,height:r,lineHeight:`${r}px`,background:"none",marginInlineStart:(e.descriptionWidth-r)/2},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeight-i)/2,marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeight-r)/2,top:0,insetInlineStart:(i-r)/2,marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeight-i)/2,insetInlineStart:0,margin:0,padding:`${i+e.paddingXS}px 0 ${e.paddingXS}px`,"&::after":{marginInlineStart:(i-e.lineWidth)/2}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:(e.controlHeightSM-i)/2},[`${t}-item-process ${t}-item-icon`]:{marginTop:(e.controlHeightSM-r)/2},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:(e.controlHeightSM-i)/2}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},Wre=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},Kre=e=>{const{componentCls:t,stepsSmallIconSize:n,fontSizeSM:o,fontSize:r,colorTextDescription:i}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${e.marginXS}px`,fontSize:o,lineHeight:`${n}px`,textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:r,lineHeight:`${n}px`,"&::after":{top:n/2}},[`${t}-item-description`]:{color:i,fontSize:r},[`${t}-item-tail`]:{top:n/2-e.paddingXXS},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:`${n}px`,transform:"none"}}}}},Gre=e=>{const{componentCls:t,stepsSmallIconSize:n,stepsIconSize:o}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.controlHeight*1.5,overflow:"hidden"},[`${t}-item-title`]:{lineHeight:`${o}px`},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.stepsIconSize/2-e.lineWidth,width:e.lineWidth,height:"100%",padding:`${o+e.marginXXS*1.5}px 0 ${e.marginXXS*1.5}px`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.stepsSmallIconSize/2-e.lineWidth,padding:`${n+e.marginXXS*1.5}px 0 ${e.marginXXS*1.5}px`},[`${t}-item-title`]:{lineHeight:`${n}px`}}}}},Xre=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:o,inlineTailColor:r}=e,i=e.paddingXS+e.lineWidth,l={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:o}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${i}px ${e.paddingXXS}px 0`,margin:`0 ${e.marginXXS/2}px`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.fontSizeSM/4}},"&-content":{width:"auto",marginTop:e.marginXS-e.lineWidth},"&-title":{color:o,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.marginXXS/2},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:i+n/2,transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:r}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":m({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${e.lineWidth}px ${e.lineType} ${r}`}},l),"&-finish":m({[`${t}-item-tail::after`]:{backgroundColor:r},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:r,border:`${e.lineWidth}px ${e.lineType} ${r}`}},l),"&-error":l,"&-active, &-process":m({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${n/2}px)`,top:0}},l),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:o}}}}}};var la;(function(e){e.wait="wait",e.process="process",e.finish="finish",e.error="error"})(la||(la={}));const Pu=(e,t)=>{const n=`${t.componentCls}-item`,o=`${e}IconColor`,r=`${e}TitleColor`,i=`${e}DescriptionColor`,l=`${e}TailColor`,a=`${e}IconBgColor`,s=`${e}IconBorderColor`,u=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[a],borderColor:t[s],[`> ${t.componentCls}-icon`]:{color:t[o],[`${t.componentCls}-icon-dot`]:{background:t[u]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[u]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[r],"&::after":{backgroundColor:t[l]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[i]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[l]}}},Ure=e=>{const{componentCls:t,motionDurationSlow:n}=e,o=`${t}-item`;return m(m(m(m(m(m({[o]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${o}-container > ${o}-tail, > ${o}-container > ${o}-content > ${o}-title::after`]:{display:"none"}}},[`${o}-container`]:{outline:"none"},[`${o}-icon, ${o}-content`]:{display:"inline-block",verticalAlign:"top"},[`${o}-icon`]:{width:e.stepsIconSize,height:e.stepsIconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.stepsIconFontSize,fontFamily:e.fontFamily,lineHeight:`${e.stepsIconSize}px`,textAlign:"center",borderRadius:e.stepsIconSize,border:`${e.lineWidth}px ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.stepsIconTop,color:e.colorPrimary,lineHeight:1}},[`${o}-tail`]:{position:"absolute",top:e.stepsIconSize/2-e.paddingXXS,insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${o}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:`${e.stepsTitleLineHeight}px`,"&::after":{position:"absolute",top:e.stepsTitleLineHeight/2,insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${o}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${o}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},Pu(la.wait,e)),Pu(la.process,e)),{[`${o}-process > ${o}-container > ${o}-title`]:{fontWeight:e.fontWeightStrong}}),Pu(la.finish,e)),Pu(la.error,e)),{[`${o}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${o}-disabled`]:{cursor:"not-allowed"}})},Yre=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionWidth,whiteSpace:"normal"}}}}},qre=e=>{const{componentCls:t}=e;return{[t]:m(m(m(m(m(m(m(m(m(m(m(m(m({},Ue(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),Ure(e)),Yre(e)),Lre(e)),Kre(e)),Gre(e)),zre(e)),Vre(e)),Hre(e)),Wre(e)),jre(e)),Xre(e))}},Zre=Ke("Steps",e=>{const{wireframe:t,colorTextDisabled:n,fontSizeHeading3:o,fontSize:r,controlHeight:i,controlHeightLG:l,colorTextLightSolid:a,colorText:s,colorPrimary:u,colorTextLabel:c,colorTextDescription:d,colorTextQuaternary:f,colorFillContent:g,controlItemBgActive:v,colorError:h,colorBgContainer:b,colorBorderSecondary:y}=e,S=e.controlHeight,$=e.colorSplit,x=ke(e,{processTailColor:$,stepsNavArrowColor:n,stepsIconSize:S,stepsIconCustomSize:S,stepsIconCustomTop:0,stepsIconCustomFontSize:l/2,stepsIconTop:-.5,stepsIconFontSize:r,stepsTitleLineHeight:i,stepsSmallIconSize:o,stepsDotSize:i/4,stepsCurrentDotSize:l/4,stepsNavContentMaxWidth:"auto",processIconColor:a,processTitleColor:s,processDescriptionColor:s,processIconBgColor:u,processIconBorderColor:u,processDotColor:u,waitIconColor:t?n:c,waitTitleColor:d,waitDescriptionColor:d,waitTailColor:$,waitIconBgColor:t?b:g,waitIconBorderColor:t?n:"transparent",waitDotColor:n,finishIconColor:u,finishTitleColor:s,finishDescriptionColor:d,finishTailColor:u,finishIconBgColor:t?b:v,finishIconBorderColor:t?u:v,finishDotColor:u,errorIconColor:a,errorTitleColor:h,errorDescriptionColor:h,errorTailColor:$,errorIconBgColor:h,errorIconBorderColor:h,errorDotColor:h,stepsNavActiveColor:u,stepsProgressSize:l,inlineDotSize:6,inlineTitleColor:f,inlineTailColor:y});return[qre(x)]},{descriptionWidth:140}),Qre=()=>({prefixCls:String,iconPrefix:String,current:Number,initial:Number,percent:Number,responsive:$e(),items:lt(),labelPlacement:Ne(),status:Ne(),size:Ne(),direction:Ne(),progressDot:Fe([Boolean,Function]),type:Ne(),onChange:ve(),"onUpdate:current":ve()}),jh=oe({compatConfig:{MODE:3},name:"ASteps",inheritAttrs:!1,props:Ze(Qre(),{current:0,responsive:!0,labelPlacement:"horizontal"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r}=t;const{prefixCls:i,direction:l,configProvider:a}=Te("steps",e),[s,u]=Zre(i),[,c]=Ur(),d=Ua(),f=P(()=>e.responsive&&d.value.xs?"vertical":e.direction),g=P(()=>a.getPrefixCls("",e.iconPrefix)),v=$=>{r("update:current",$),r("change",$)},h=P(()=>e.type==="inline"),b=P(()=>h.value?void 0:e.percent),y=$=>{let{node:x,status:C}=$;if(C==="process"&&e.percent!==void 0){const O=e.size==="small"?c.value.controlHeight:c.value.controlHeightLG;return p("div",{class:`${i.value}-progress-icon`},[p(Yy,{type:"circle",percent:b.value,size:O,strokeWidth:4,format:()=>null},null),x])}return x},S=P(()=>({finish:p(ja,{class:`${i.value}-finish-icon`},null),error:p(Rn,{class:`${i.value}-error-icon`},null)}));return()=>{const $=le({[`${i.value}-rtl`]:l.value==="rtl",[`${i.value}-with-progress`]:b.value!==void 0},n.class,u.value),x=(C,O)=>C.description?p(Qn,{title:C.description},{default:()=>[O]}):O;return s(p(Fre,D(D(D({icons:S.value},n),tt(e,["percent","responsive"])),{},{items:e.items,direction:f.value,prefixCls:i.value,iconPrefix:g.value,class:$,onChange:v,isInline:h.value,itemRender:h.value?x:void 0}),m({stepIcon:y},o)))}}}),bd=oe(m(m({compatConfig:{MODE:3}},mT),{name:"AStep",props:vT()})),Jre=m(jh,{Step:bd,install:e=>(e.component(jh.name,jh),e.component(bd.name,bd),e)}),eie=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[`&${t}-small`]:{minWidth:e.switchMinWidthSM,height:e.switchHeightSM,lineHeight:`${e.switchHeightSM}px`,[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMaxSM,paddingInlineEnd:e.switchInnerMarginMinSM,[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeightSM,marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:e.switchPinSizeSM,height:e.switchPinSizeSM},[`${t}-loading-icon`]:{top:(e.switchPinSizeSM-e.switchLoadingIconSize)/2,fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:e.switchInnerMarginMinSM,paddingInlineEnd:e.switchInnerMarginMaxSM,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding*2}px + ${e.switchInnerMarginMaxSM*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSizeSM+e.switchPadding*2}px - ${e.switchInnerMarginMaxSM*2}px)`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${e.switchPinSizeSM+e.switchPadding}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.marginXXS/2,marginInlineEnd:-e.marginXXS/2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.marginXXS/2,marginInlineEnd:e.marginXXS/2}}}}}}},tie=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:(e.switchPinSize-e.fontSize)/2,color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},nie=e=>{const{componentCls:t}=e,n=`${t}-handle`;return{[t]:{[n]:{position:"absolute",top:e.switchPadding,insetInlineStart:e.switchPadding,width:e.switchPinSize,height:e.switchPinSize,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:e.colorWhite,borderRadius:e.switchPinSize/2,boxShadow:e.switchHandleShadow,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${n}`]:{insetInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding}px)`},[`&:not(${t}-disabled):active`]:{[`${n}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${n}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},oie=e=>{const{componentCls:t}=e,n=`${t}-inner`;return{[t]:{[n]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:e.switchInnerMarginMax,paddingInlineEnd:e.switchInnerMarginMin,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${n}-checked, ${n}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none"},[`${n}-checked`]:{marginInlineStart:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`},[`${n}-unchecked`]:{marginTop:-e.switchHeight,marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${n}`]:{paddingInlineStart:e.switchInnerMarginMin,paddingInlineEnd:e.switchInnerMarginMax,[`${n}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${n}-unchecked`]:{marginInlineStart:`calc(100% - ${e.switchPinSize+e.switchPadding*2}px + ${e.switchInnerMarginMax*2}px)`,marginInlineEnd:`calc(-100% + ${e.switchPinSize+e.switchPadding*2}px - ${e.switchInnerMarginMax*2}px)`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${n}`]:{[`${n}-unchecked`]:{marginInlineStart:e.switchPadding*2,marginInlineEnd:-e.switchPadding*2}},[`&${t}-checked ${n}`]:{[`${n}-checked`]:{marginInlineStart:-e.switchPadding*2,marginInlineEnd:e.switchPadding*2}}}}}},rie=e=>{const{componentCls:t}=e;return{[t]:m(m(m(m({},Ue(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:e.switchMinWidth,height:e.switchHeight,lineHeight:`${e.switchHeight}px`,verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Kr(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},iie=Ke("Switch",e=>{const t=e.fontSize*e.lineHeight,n=e.controlHeight/2,o=2,r=t-o*2,i=n-o*2,l=ke(e,{switchMinWidth:r*2+o*4,switchHeight:t,switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchInnerMarginMin:r/2,switchInnerMarginMax:r+o+o*2,switchPadding:o,switchPinSize:r,switchBg:e.colorBgContainer,switchMinWidthSM:i*2+o*2,switchHeightSM:n,switchInnerMarginMinSM:i/2,switchInnerMarginMaxSM:i+o+o*2,switchPinSizeSM:i,switchHandleShadow:`0 2px 4px 0 ${new pt("#00230b").setAlpha(.2).toRgbString()}`,switchLoadingIconSize:e.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[rie(l),oie(l),nie(l),tie(l),eie(l)]}),lie=Sn("small","default"),aie=()=>({id:String,prefixCls:String,size:W.oneOf(lie),disabled:{type:Boolean,default:void 0},checkedChildren:W.any,unCheckedChildren:W.any,tabindex:W.oneOfType([W.string,W.number]),autofocus:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},checked:W.oneOfType([W.string,W.number,W.looseBool]),checkedValue:W.oneOfType([W.string,W.number,W.looseBool]).def(!0),unCheckedValue:W.oneOfType([W.string,W.number,W.looseBool]).def(!1),onChange:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onMouseup:{type:Function},"onUpdate:checked":{type:Function},onBlur:Function,onFocus:Function}),sie=oe({compatConfig:{MODE:3},name:"ASwitch",__ANT_SWITCH:!0,inheritAttrs:!1,props:aie(),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r,emit:i}=t;const l=Qt(),a=Jn(),s=P(()=>{var T;return(T=e.disabled)!==null&&T!==void 0?T:a.value});Jf(()=>{});const u=re(e.checked!==void 0?e.checked:n.defaultChecked),c=P(()=>u.value===e.checkedValue);ye(()=>e.checked,()=>{u.value=e.checked});const{prefixCls:d,direction:f,size:g}=Te("switch",e),[v,h]=iie(d),b=re(),y=()=>{var T;(T=b.value)===null||T===void 0||T.focus()};r({focus:y,blur:()=>{var T;(T=b.value)===null||T===void 0||T.blur()}}),je(()=>{ot(()=>{e.autofocus&&!s.value&&b.value.focus()})});const $=(T,_)=>{s.value||(i("update:checked",T),i("change",T,_),l.onFieldChange())},x=T=>{i("blur",T)},C=T=>{y();const _=c.value?e.unCheckedValue:e.checkedValue;$(_,T),i("click",_,T)},O=T=>{T.keyCode===Pe.LEFT?$(e.unCheckedValue,T):T.keyCode===Pe.RIGHT&&$(e.checkedValue,T),i("keydown",T)},w=T=>{var _;(_=b.value)===null||_===void 0||_.blur(),i("mouseup",T)},I=P(()=>({[`${d.value}-small`]:g.value==="small",[`${d.value}-loading`]:e.loading,[`${d.value}-checked`]:c.value,[`${d.value}-disabled`]:s.value,[d.value]:!0,[`${d.value}-rtl`]:f.value==="rtl",[h.value]:!0}));return()=>{var T;return v(p(Mb,null,{default:()=>[p("button",D(D(D({},tt(e,["prefixCls","checkedChildren","unCheckedChildren","checked","autofocus","checkedValue","unCheckedValue","id","onChange","onUpdate:checked"])),n),{},{id:(T=e.id)!==null&&T!==void 0?T:l.id.value,onKeydown:O,onClick:C,onBlur:x,onMouseup:w,type:"button",role:"switch","aria-checked":u.value,disabled:s.value||e.loading,class:[n.class,I.value],ref:b}),[p("div",{class:`${d.value}-handle`},[e.loading?p(Wn,{class:`${d.value}-loading-icon`},null):null]),p("span",{class:`${d.value}-inner`},[p("span",{class:`${d.value}-inner-checked`},[Zt(o,e,"checkedChildren")]),p("span",{class:`${d.value}-inner-unchecked`},[Zt(o,e,"unCheckedChildren")])])])]}))}}}),cie=It(sie),bT=Symbol("TableContextProps"),uie=e=>{Xe(bT,e)},yr=()=>He(bT,{}),die="RC_TABLE_KEY";function yT(e){return e==null?[]:Array.isArray(e)?e:[e]}function ST(e,t){if(!t&&typeof t!="number")return e;const n=yT(t);let o=e;for(let r=0;r{const{key:r,dataIndex:i}=o||{};let l=r||yT(i).join("-")||die;for(;n[l];)l=`${l}_next`;n[l]=!0,t.push(l)}),t}function fie(){const e={};function t(i,l){l&&Object.keys(l).forEach(a=>{const s=l[a];s&&typeof s=="object"?(i[a]=i[a]||{},t(i[a],s)):i[a]=s})}for(var n=arguments.length,o=new Array(n),r=0;r{t(e,i)}),e}function Tm(e){return e!=null}const $T=Symbol("SlotsContextProps"),pie=e=>{Xe($T,e)},e1=()=>He($T,P(()=>({}))),CT=Symbol("ContextProps"),gie=e=>{Xe(CT,e)},hie=()=>He(CT,{onResizeColumn:()=>{}}),Ca="RC_TABLE_INTERNAL_COL_DEFINE",xT=Symbol("HoverContextProps"),vie=e=>{Xe(xT,e)},mie=()=>He(xT,{startRow:ne(-1),endRow:ne(-1),onHover(){}}),Em=ne(!1),bie=()=>{je(()=>{Em.value=Em.value||Sy("position","sticky")})},yie=()=>Em;var Sie=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r=n}function Cie(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!qt(e)}const pg=oe({name:"Cell",props:["prefixCls","record","index","renderIndex","dataIndex","customRender","component","colSpan","rowSpan","fixLeft","fixRight","firstFixLeft","lastFixLeft","firstFixRight","lastFixRight","appendNode","additionalProps","ellipsis","align","rowType","isSticky","column","cellType","transformCellText"],setup(e,t){let{slots:n}=t;const o=e1(),{onHover:r,startRow:i,endRow:l}=mie(),a=P(()=>{var h,b,y,S;return(y=(h=e.colSpan)!==null&&h!==void 0?h:(b=e.additionalProps)===null||b===void 0?void 0:b.colSpan)!==null&&y!==void 0?y:(S=e.additionalProps)===null||S===void 0?void 0:S.colspan}),s=P(()=>{var h,b,y,S;return(y=(h=e.rowSpan)!==null&&h!==void 0?h:(b=e.additionalProps)===null||b===void 0?void 0:b.rowSpan)!==null&&y!==void 0?y:(S=e.additionalProps)===null||S===void 0?void 0:S.rowspan}),u=io(()=>{const{index:h}=e;return $ie(h,s.value||1,i.value,l.value)}),c=yie(),d=(h,b)=>{var y;const{record:S,index:$,additionalProps:x}=e;S&&r($,$+b-1),(y=x?.onMouseenter)===null||y===void 0||y.call(x,h)},f=h=>{var b;const{record:y,additionalProps:S}=e;y&&r(-1,-1),(b=S?.onMouseleave)===null||b===void 0||b.call(S,h)},g=h=>{const b=At(h)[0];return qt(b)?b.type===Ei?b.children:Array.isArray(b.children)?g(b.children):void 0:b},v=ne(null);return ye([u,()=>e.prefixCls,v],()=>{const h=Hn(v.value);h&&(u.value?gf(h,`${e.prefixCls}-cell-row-hover`):hf(h,`${e.prefixCls}-cell-row-hover`))}),()=>{var h,b,y,S,$,x;const{prefixCls:C,record:O,index:w,renderIndex:I,dataIndex:T,customRender:_,component:E="td",fixLeft:A,fixRight:R,firstFixLeft:z,lastFixLeft:M,firstFixRight:N,lastFixRight:B,appendNode:k=(h=n.appendNode)===null||h===void 0?void 0:h.call(n),additionalProps:F={},ellipsis:L,align:H,rowType:j,isSticky:Y,column:Q={},cellType:U}=e,ee=`${C}-cell`;let X,J;const Z=(b=n.default)===null||b===void 0?void 0:b.call(n);if(Tm(Z)||U==="header")J=Z;else{const fe=ST(O,T);if(J=fe,_){const de=_({text:fe,value:fe,record:O,index:w,renderIndex:I,column:Q.__originColumn__});Cie(de)?(J=de.children,X=de.props):J=de}if(!(Ca in Q)&&U==="body"&&o.value.bodyCell&&!(!((y=Q.slots)===null||y===void 0)&&y.customRender)){const de=vp(o.value,"bodyCell",{text:fe,value:fe,record:O,index:w,column:Q.__originColumn__},()=>{const be=J===void 0?fe:J;return[typeof be=="object"&&Kt(be)||typeof be!="object"?be:null]});J=bt(de)}e.transformCellText&&(J=e.transformCellText({text:J,record:O,index:w,column:Q.__originColumn__}))}typeof J=="object"&&!Array.isArray(J)&&!qt(J)&&(J=null),L&&(M||N)&&(J=p("span",{class:`${ee}-content`},[J])),Array.isArray(J)&&J.length===1&&(J=J[0]);const G=X||{},{colSpan:q,rowSpan:V,style:K,class:te}=G,ue=Sie(G,["colSpan","rowSpan","style","class"]),ie=(S=q!==void 0?q:a.value)!==null&&S!==void 0?S:1,ae=($=V!==void 0?V:s.value)!==null&&$!==void 0?$:1;if(ie===0||ae===0)return null;const ce={},se=typeof A=="number"&&c.value,pe=typeof R=="number"&&c.value;se&&(ce.position="sticky",ce.left=`${A}px`),pe&&(ce.position="sticky",ce.right=`${R}px`);const ge={};H&&(ge.textAlign=H);let he;const me=L===!0?{showTitle:!0}:L;me&&(me.showTitle||j==="header")&&(typeof J=="string"||typeof J=="number"?he=J.toString():qt(J)&&(he=g([J])));const xe=m(m(m({title:he},ue),F),{colSpan:ie!==1?ie:null,rowSpan:ae!==1?ae:null,class:le(ee,{[`${ee}-fix-left`]:se&&c.value,[`${ee}-fix-left-first`]:z&&c.value,[`${ee}-fix-left-last`]:M&&c.value,[`${ee}-fix-right`]:pe&&c.value,[`${ee}-fix-right-first`]:N&&c.value,[`${ee}-fix-right-last`]:B&&c.value,[`${ee}-ellipsis`]:L,[`${ee}-with-append`]:k,[`${ee}-fix-sticky`]:(se||pe)&&Y&&c.value},F.class,te),onMouseenter:fe=>{d(fe,ae)},onMouseleave:f,style:[F.style,ge,ce,K]});return p(E,D(D({},xe),{},{ref:v}),{default:()=>[k,J,(x=n.dragHandle)===null||x===void 0?void 0:x.call(n)]})}}});function t1(e,t,n,o,r){const i=n[e]||{},l=n[t]||{};let a,s;i.fixed==="left"?a=o.left[e]:l.fixed==="right"&&(s=o.right[t]);let u=!1,c=!1,d=!1,f=!1;const g=n[t+1],v=n[e-1];return r==="rtl"?a!==void 0?f=!(v&&v.fixed==="left"):s!==void 0&&(d=!(g&&g.fixed==="right")):a!==void 0?u=!(g&&g.fixed==="left"):s!==void 0&&(c=!(v&&v.fixed==="right")),{fixLeft:a,fixRight:s,lastFixLeft:u,firstFixRight:c,lastFixRight:d,firstFixLeft:f,isSticky:o.isSticky}}const l2={mouse:{move:"mousemove",stop:"mouseup"},touch:{move:"touchmove",stop:"touchend"}},a2=50,xie=oe({compatConfig:{MODE:3},name:"DragHandle",props:{prefixCls:String,width:{type:Number,required:!0},minWidth:{type:Number,default:a2},maxWidth:{type:Number,default:1/0},column:{type:Object,default:void 0}},setup(e){let t=0,n={remove:()=>{}},o={remove:()=>{}};const r=()=>{n.remove(),o.remove()};$n(()=>{r()}),Le(()=>{Ct(!isNaN(e.width),"Table","width must be a number when use resizable")});const{onResizeColumn:i}=hie(),l=P(()=>typeof e.minWidth=="number"&&!isNaN(e.minWidth)?e.minWidth:a2),a=P(()=>typeof e.maxWidth=="number"&&!isNaN(e.maxWidth)?e.maxWidth:1/0),s=pn();let u=0;const c=ne(!1);let d;const f=$=>{let x=0;$.touches?$.touches.length?x=$.touches[0].pageX:x=$.changedTouches[0].pageX:x=$.pageX;const C=t-x;let O=Math.max(u-C,l.value);O=Math.min(O,a.value),qe.cancel(d),d=qe(()=>{i(O,e.column.__originColumn__)})},g=$=>{f($)},v=$=>{c.value=!1,f($),r()},h=($,x)=>{c.value=!0,r(),u=s.vnode.el.parentNode.getBoundingClientRect().width,!($ instanceof MouseEvent&&$.which!==1)&&($.stopPropagation&&$.stopPropagation(),t=$.touches?$.touches[0].pageX:$.pageX,n=Et(document.documentElement,x.move,g),o=Et(document.documentElement,x.stop,v))},b=$=>{$.stopPropagation(),$.preventDefault(),h($,l2.mouse)},y=$=>{$.stopPropagation(),$.preventDefault(),h($,l2.touch)},S=$=>{$.stopPropagation(),$.preventDefault()};return()=>{const{prefixCls:$}=e,x={[Yt?"onTouchstartPassive":"onTouchstart"]:C=>y(C)};return p("div",D(D({class:`${$}-resize-handle ${c.value?"dragging":""}`,onMousedown:b},x),{},{onClick:S}),[p("div",{class:`${$}-resize-handle-line`},null)])}}}),wie=oe({name:"HeaderRow",props:["cells","stickyOffsets","flattenColumns","rowComponent","cellComponent","index","customHeaderRow"],setup(e){const t=yr();return()=>{const{prefixCls:n,direction:o}=t,{cells:r,stickyOffsets:i,flattenColumns:l,rowComponent:a,cellComponent:s,customHeaderRow:u,index:c}=e;let d;u&&(d=u(r.map(g=>g.column),c));const f=fg(r.map(g=>g.column));return p(a,d,{default:()=>[r.map((g,v)=>{const{column:h}=g,b=t1(g.colStart,g.colEnd,l,i,o);let y;h&&h.customHeaderCell&&(y=g.column.customHeaderCell(h));const S=h;return p(pg,D(D(D({},g),{},{cellType:"header",ellipsis:h.ellipsis,align:h.align,component:s,prefixCls:n,key:f[v]},b),{},{additionalProps:y,rowType:"header",column:h}),{default:()=>h.title,dragHandle:()=>S.resizable?p(xie,{prefixCls:n,width:S.width,minWidth:S.minWidth,maxWidth:S.maxWidth,column:S},null):null})})]})}}});function Oie(e){const t=[];function n(r,i){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[l]=t[l]||[];let a=i;return r.filter(Boolean).map(u=>{const c={key:u.key,class:le(u.className,u.class),column:u,colStart:a};let d=1;const f=u.children;return f&&f.length>0&&(d=n(f,a,l+1).reduce((g,v)=>g+v,0),c.hasSubColumns=!0),"colSpan"in u&&({colSpan:d}=u),"rowSpan"in u&&(c.rowSpan=u.rowSpan),c.colSpan=d,c.colEnd=c.colStart+d-1,t[l].push(c),a+=d,d})}n(e,0);const o=t.length;for(let r=0;r{!("rowSpan"in i)&&!i.hasSubColumns&&(i.rowSpan=o-r)});return t}const s2=oe({name:"TableHeader",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow"],setup(e){const t=yr(),n=P(()=>Oie(e.columns));return()=>{const{prefixCls:o,getComponent:r}=t,{stickyOffsets:i,flattenColumns:l,customHeaderRow:a}=e,s=r(["header","wrapper"],"thead"),u=r(["header","row"],"tr"),c=r(["header","cell"],"th");return p(s,{class:`${o}-thead`},{default:()=>[n.value.map((d,f)=>p(wie,{key:f,flattenColumns:l,cells:d,stickyOffsets:i,rowComponent:u,cellComponent:c,customHeaderRow:a,index:f},null))]})}}}),wT=Symbol("ExpandedRowProps"),Pie=e=>{Xe(wT,e)},Iie=()=>He(wT,{}),OT=oe({name:"ExpandedRow",inheritAttrs:!1,props:["prefixCls","component","cellComponent","expanded","colSpan","isEmpty"],setup(e,t){let{slots:n,attrs:o}=t;const r=yr(),i=Iie(),{fixHeader:l,fixColumn:a,componentWidth:s,horizonScroll:u}=i;return()=>{const{prefixCls:c,component:d,cellComponent:f,expanded:g,colSpan:v,isEmpty:h}=e;return p(d,{class:o.class,style:{display:g?null:"none"}},{default:()=>[p(pg,{component:f,prefixCls:c,colSpan:v},{default:()=>{var b;let y=(b=n.default)===null||b===void 0?void 0:b.call(n);return(h?u.value:a.value)&&(y=p("div",{style:{width:`${s.value-(l.value?r.scrollbarSize:0)}px`,position:"sticky",left:0,overflow:"hidden"},class:`${c}-expanded-row-fixed`},[y])),y}})]})}}}),Tie=oe({name:"MeasureCell",props:["columnKey"],setup(e,t){let{emit:n}=t;const o=re();return je(()=>{o.value&&n("columnResize",e.columnKey,o.value.offsetWidth)}),()=>p(Mo,{onResize:r=>{let{offsetWidth:i}=r;n("columnResize",e.columnKey,i)}},{default:()=>[p("td",{ref:o,style:{padding:0,border:0,height:0}},[p("div",{style:{height:0,overflow:"hidden"}},[Ft(" ")])])]})}}),PT=Symbol("BodyContextProps"),Eie=e=>{Xe(PT,e)},IT=()=>He(PT,{}),Mie=oe({name:"BodyRow",inheritAttrs:!1,props:["record","index","renderIndex","recordKey","expandedKeys","rowComponent","cellComponent","customRow","rowExpandable","indent","rowKey","getRowKey","childrenColumnName"],setup(e,t){let{attrs:n}=t;const o=yr(),r=IT(),i=ne(!1),l=P(()=>e.expandedKeys&&e.expandedKeys.has(e.recordKey));Le(()=>{l.value&&(i.value=!0)});const a=P(()=>r.expandableType==="row"&&(!e.rowExpandable||e.rowExpandable(e.record))),s=P(()=>r.expandableType==="nest"),u=P(()=>e.childrenColumnName&&e.record&&e.record[e.childrenColumnName]),c=P(()=>a.value||s.value),d=(b,y)=>{r.onTriggerExpand(b,y)},f=P(()=>{var b;return((b=e.customRow)===null||b===void 0?void 0:b.call(e,e.record,e.index))||{}}),g=function(b){var y,S;r.expandRowByClick&&c.value&&d(e.record,b);for(var $=arguments.length,x=new Array($>1?$-1:0),C=1;C<$;C++)x[C-1]=arguments[C];(S=(y=f.value)===null||y===void 0?void 0:y.onClick)===null||S===void 0||S.call(y,b,...x)},v=P(()=>{const{record:b,index:y,indent:S}=e,{rowClassName:$}=r;return typeof $=="string"?$:typeof $=="function"?$(b,y,S):""}),h=P(()=>fg(r.flattenColumns));return()=>{const{class:b,style:y}=n,{record:S,index:$,rowKey:x,indent:C=0,rowComponent:O,cellComponent:w}=e,{prefixCls:I,fixedInfoList:T,transformCellText:_}=o,{flattenColumns:E,expandedRowClassName:A,indentSize:R,expandIcon:z,expandedRowRender:M,expandIconColumnIndex:N}=r,B=p(O,D(D({},f.value),{},{"data-row-key":x,class:le(b,`${I}-row`,`${I}-row-level-${C}`,v.value,f.value.class),style:[y,f.value.style],onClick:g}),{default:()=>[E.map((F,L)=>{const{customRender:H,dataIndex:j,className:Y}=F,Q=h[L],U=T[L];let ee;F.customCell&&(ee=F.customCell(S,$,F));const X=L===(N||0)&&s.value?p(Ve,null,[p("span",{style:{paddingLeft:`${R*C}px`},class:`${I}-row-indent indent-level-${C}`},null),z({prefixCls:I,expanded:l.value,expandable:u.value,record:S,onExpand:d})]):null;return p(pg,D(D({cellType:"body",class:Y,ellipsis:F.ellipsis,align:F.align,component:w,prefixCls:I,key:Q,record:S,index:$,renderIndex:e.renderIndex,dataIndex:j,customRender:H},U),{},{additionalProps:ee,column:F,transformCellText:_,appendNode:X}),null)})]});let k;if(a.value&&(i.value||l.value)){const F=M({record:S,index:$,indent:C+1,expanded:l.value}),L=A&&A(S,$,C);k=p(OT,{expanded:l.value,class:le(`${I}-expanded-row`,`${I}-expanded-row-level-${C+1}`,L),prefixCls:I,component:O,cellComponent:w,colSpan:E.length,isEmpty:!1},{default:()=>[F]})}return p(Ve,null,[B,k])}}});function TT(e,t,n,o,r,i){const l=[];l.push({record:e,indent:t,index:i});const a=r(e),s=o?.has(a);if(e&&Array.isArray(e[n])&&s)for(let u=0;u{const i=t.value,l=n.value,a=e.value;if(l?.size){const s=[];for(let u=0;u({record:s,indent:0,index:u}))})}const ET=Symbol("ResizeContextProps"),Aie=e=>{Xe(ET,e)},Rie=()=>He(ET,{onColumnResize:()=>{}}),Die=oe({name:"TableBody",props:["data","getRowKey","measureColumnWidth","expandedKeys","customRow","rowExpandable","childrenColumnName"],setup(e,t){let{slots:n}=t;const o=Rie(),r=yr(),i=IT(),l=_ie(ze(e,"data"),ze(e,"childrenColumnName"),ze(e,"expandedKeys"),ze(e,"getRowKey")),a=ne(-1),s=ne(-1);let u;return vie({startRow:a,endRow:s,onHover:(c,d)=>{clearTimeout(u),u=setTimeout(()=>{a.value=c,s.value=d},100)}}),()=>{var c;const{data:d,getRowKey:f,measureColumnWidth:g,expandedKeys:v,customRow:h,rowExpandable:b,childrenColumnName:y}=e,{onColumnResize:S}=o,{prefixCls:$,getComponent:x}=r,{flattenColumns:C}=i,O=x(["body","wrapper"],"tbody"),w=x(["body","row"],"tr"),I=x(["body","cell"],"td");let T;d.length?T=l.value.map((E,A)=>{const{record:R,indent:z,index:M}=E,N=f(R,A);return p(Mie,{key:N,rowKey:N,record:R,recordKey:N,index:A,renderIndex:M,rowComponent:w,cellComponent:I,expandedKeys:v,customRow:h,getRowKey:f,rowExpandable:b,childrenColumnName:y,indent:z},null)}):T=p(OT,{expanded:!0,class:`${$}-placeholder`,prefixCls:$,component:w,cellComponent:I,colSpan:C.length,isEmpty:!0},{default:()=>[(c=n.emptyNode)===null||c===void 0?void 0:c.call(n)]});const _=fg(C);return p(O,{class:`${$}-tbody`},{default:()=>[g&&p("tr",{"aria-hidden":"true",class:`${$}-measure-row`,style:{height:0,fontSize:0}},[_.map(E=>p(Tie,{key:E,columnKey:E,onColumnResize:S},null))]),T]})}}}),di={};var Nie=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{fixed:o}=n,r=o===!0?"left":o,i=n.children;return i&&i.length>0?[...t,...Mm(i).map(l=>m({fixed:r},l))]:[...t,m(m({},n),{fixed:r})]},[])}function Bie(e){return e.map(t=>{const{fixed:n}=t,o=Nie(t,["fixed"]);let r=n;return n==="left"?r="right":n==="right"&&(r="left"),m({fixed:r},o)})}function kie(e,t){let{prefixCls:n,columns:o,expandable:r,expandedKeys:i,getRowKey:l,onTriggerExpand:a,expandIcon:s,rowExpandable:u,expandIconColumnIndex:c,direction:d,expandRowByClick:f,expandColumnWidth:g,expandFixed:v}=e;const h=e1(),b=P(()=>{if(r.value){let $=o.value.slice();if(!$.includes(di)){const R=c.value||0;R>=0&&$.splice(R,0,di)}const x=$.indexOf(di);$=$.filter((R,z)=>R!==di||z===x);const C=o.value[x];let O;(v.value==="left"||v.value)&&!c.value?O="left":(v.value==="right"||v.value)&&c.value===o.value.length?O="right":O=C?C.fixed:null;const w=i.value,I=u.value,T=s.value,_=n.value,E=f.value,A={[Ca]:{class:`${n.value}-expand-icon-col`,columnType:"EXPAND_COLUMN"},title:vp(h.value,"expandColumnTitle",{},()=>[""]),fixed:O,class:`${n.value}-row-expand-icon-cell`,width:g.value,customRender:R=>{let{record:z,index:M}=R;const N=l.value(z,M),B=w.has(N),k=I?I(z):!0,F=T({prefixCls:_,expanded:B,expandable:k,record:z,onExpand:a});return E?p("span",{onClick:L=>L.stopPropagation()},[F]):F}};return $.map(R=>R===di?A:R)}return o.value.filter($=>$!==di)}),y=P(()=>{let $=b.value;return t.value&&($=t.value($)),$.length||($=[{customRender:()=>null}]),$}),S=P(()=>d.value==="rtl"?Bie(Mm(y.value)):Mm(y.value));return[y,S]}function MT(e){const t=ne(e);let n;const o=ne([]);function r(i){o.value.push(i),qe.cancel(n),n=qe(()=>{const l=o.value;o.value=[],l.forEach(a=>{t.value=a(t.value)})})}return Qe(()=>{qe.cancel(n)}),[t,r]}function Fie(e){const t=re(null),n=re();function o(){clearTimeout(n.value)}function r(l){t.value=l,o(),n.value=setTimeout(()=>{t.value=null,n.value=void 0},100)}function i(){return t.value}return Qe(()=>{o()}),[r,i]}function Lie(e,t,n){return P(()=>{const r=[],i=[];let l=0,a=0;const s=e.value,u=t.value,c=n.value;for(let d=0;d=0;a-=1){const s=t[a],u=n&&n[a],c=u&&u[Ca];if(s||c||l){const d=c||{},{columnType:f}=d,g=zie(d,["columnType"]);r.unshift(p("col",D({key:a,style:{width:typeof s=="number"?`${s}px`:s}},g),null)),l=!0}}return p("colgroup",null,[r])}function _m(e,t){let{slots:n}=t;var o;return p("div",null,[(o=n.default)===null||o===void 0?void 0:o.call(n)])}_m.displayName="Panel";let Hie=0;const jie=oe({name:"TableSummary",props:["fixed"],setup(e,t){let{slots:n}=t;const o=yr(),r=`table-summary-uni-key-${++Hie}`,i=P(()=>e.fixed===""||e.fixed);return Le(()=>{o.summaryCollect(r,i.value)}),Qe(()=>{o.summaryCollect(r,!1)}),()=>{var l;return(l=n.default)===null||l===void 0?void 0:l.call(n)}}}),Vie=oe({compatConfig:{MODE:3},name:"ATableSummaryRow",setup(e,t){let{slots:n}=t;return()=>{var o;return p("tr",null,[(o=n.default)===null||o===void 0?void 0:o.call(n)])}}}),AT=Symbol("SummaryContextProps"),Wie=e=>{Xe(AT,e)},Kie=()=>He(AT,{}),Gie=oe({name:"ATableSummaryCell",props:["index","colSpan","rowSpan","align"],setup(e,t){let{attrs:n,slots:o}=t;const r=yr(),i=Kie();return()=>{const{index:l,colSpan:a=1,rowSpan:s,align:u}=e,{prefixCls:c,direction:d}=r,{scrollColumnIndex:f,stickyOffsets:g,flattenColumns:v}=i,b=l+a-1+1===f?a+1:a,y=t1(l,l+b-1,v,g,d);return p(pg,D({class:n.class,index:l,component:"td",prefixCls:c,record:null,dataIndex:null,align:u,colSpan:b,rowSpan:s,customRender:()=>{var S;return(S=o.default)===null||S===void 0?void 0:S.call(o)}},y),null)}}}),Iu=oe({name:"TableFooter",inheritAttrs:!1,props:["stickyOffsets","flattenColumns"],setup(e,t){let{slots:n}=t;const o=yr();return Wie(ct({stickyOffsets:ze(e,"stickyOffsets"),flattenColumns:ze(e,"flattenColumns"),scrollColumnIndex:P(()=>{const r=e.flattenColumns.length-1,i=e.flattenColumns[r];return i?.scrollbar?r:null})})),()=>{var r;const{prefixCls:i}=o;return p("tfoot",{class:`${i}-summary`},[(r=n.default)===null||r===void 0?void 0:r.call(n)])}}}),Xie=jie;function Uie(e){let{prefixCls:t,record:n,onExpand:o,expanded:r,expandable:i}=e;const l=`${t}-row-expand-icon`;if(!i)return p("span",{class:[l,`${t}-row-spaced`]},null);const a=s=>{o(n,s),s.stopPropagation()};return p("span",{class:{[l]:!0,[`${t}-row-expanded`]:r,[`${t}-row-collapsed`]:!r},onClick:a},null)}function Yie(e,t,n){const o=[];function r(i){(i||[]).forEach((l,a)=>{o.push(t(l,a)),r(l[n])})}return r(e),o}const qie=oe({name:"StickyScrollBar",inheritAttrs:!1,props:["offsetScroll","container","scrollBodyRef","scrollBodySizeInfo"],emits:["scroll"],setup(e,t){let{emit:n,expose:o}=t;const r=yr(),i=ne(0),l=ne(0),a=ne(0);Le(()=>{i.value=e.scrollBodySizeInfo.scrollWidth||0,l.value=e.scrollBodySizeInfo.clientWidth||0,a.value=i.value&&l.value*(l.value/i.value)},{flush:"post"});const s=ne(),[u,c]=MT({scrollLeft:0,isHiddenScrollBar:!0}),d=re({delta:0,x:0}),f=ne(!1),g=()=>{f.value=!1},v=w=>{d.value={delta:w.pageX-u.value.scrollLeft,x:0},f.value=!0,w.preventDefault()},h=w=>{const{buttons:I}=w||window?.event;if(!f.value||I===0){f.value&&(f.value=!1);return}let T=d.value.x+w.pageX-d.value.x-d.value.delta;T<=0&&(T=0),T+a.value>=l.value&&(T=l.value-a.value),n("scroll",{scrollLeft:T/l.value*(i.value+2)}),d.value.x=w.pageX},b=()=>{if(!e.scrollBodyRef.value)return;const w=qd(e.scrollBodyRef.value).top,I=w+e.scrollBodyRef.value.offsetHeight,T=e.container===window?document.documentElement.scrollTop+window.innerHeight:qd(e.container).top+e.container.clientHeight;I-Yd()<=T||w>=T-e.offsetScroll?c(_=>m(m({},_),{isHiddenScrollBar:!0})):c(_=>m(m({},_),{isHiddenScrollBar:!1}))};o({setScrollLeft:w=>{c(I=>m(m({},I),{scrollLeft:w/i.value*l.value||0}))}});let S=null,$=null,x=null,C=null;je(()=>{S=Et(document.body,"mouseup",g,!1),$=Et(document.body,"mousemove",h,!1),x=Et(window,"resize",b,!1)}),Zf(()=>{ot(()=>{b()})}),je(()=>{setTimeout(()=>{ye([a,f],()=>{b()},{immediate:!0,flush:"post"})})}),ye(()=>e.container,()=>{C?.remove(),C=Et(e.container,"scroll",b,!1)},{immediate:!0,flush:"post"}),Qe(()=>{S?.remove(),$?.remove(),C?.remove(),x?.remove()}),ye(()=>m({},u.value),(w,I)=>{w.isHiddenScrollBar!==I?.isHiddenScrollBar&&!w.isHiddenScrollBar&&c(T=>{const _=e.scrollBodyRef.value;return _?m(m({},T),{scrollLeft:_.scrollLeft/_.scrollWidth*_.clientWidth}):T})},{immediate:!0});const O=Yd();return()=>{if(i.value<=l.value||!a.value||u.value.isHiddenScrollBar)return null;const{prefixCls:w}=r;return p("div",{style:{height:`${O}px`,width:`${l.value}px`,bottom:`${e.offsetScroll}px`},class:`${w}-sticky-scroll`},[p("div",{onMousedown:v,ref:s,class:le(`${w}-sticky-scroll-bar`,{[`${w}-sticky-scroll-bar-active`]:f.value}),style:{width:`${a.value}px`,transform:`translate3d(${u.value.scrollLeft}px, 0, 0)`}},null)])}}}),c2=Mn()?window:null;function Zie(e,t){return P(()=>{const{offsetHeader:n=0,offsetSummary:o=0,offsetScroll:r=0,getContainer:i=()=>c2}=typeof e.value=="object"?e.value:{},l=i()||c2,a=!!e.value;return{isSticky:a,stickyClassName:a?`${t.value}-sticky-holder`:"",offsetHeader:n,offsetSummary:o,offsetScroll:r,container:l}})}function Qie(e,t){return P(()=>{const n=[],o=e.value,r=t.value;for(let i=0;ii.isSticky&&!e.fixHeader?0:i.scrollbarSize),a=re(),s=h=>{const{currentTarget:b,deltaX:y}=h;y&&(r("scroll",{currentTarget:b,scrollLeft:b.scrollLeft+y}),h.preventDefault())},u=re();je(()=>{ot(()=>{u.value=Et(a.value,"wheel",s)})}),Qe(()=>{var h;(h=u.value)===null||h===void 0||h.remove()});const c=P(()=>e.flattenColumns.every(h=>h.width&&h.width!==0&&h.width!=="0px")),d=re([]),f=re([]);Le(()=>{const h=e.flattenColumns[e.flattenColumns.length-1],b={fixed:h?h.fixed:null,scrollbar:!0,customHeaderCell:()=>({class:`${i.prefixCls}-cell-scrollbar`})};d.value=l.value?[...e.columns,b]:e.columns,f.value=l.value?[...e.flattenColumns,b]:e.flattenColumns});const g=P(()=>{const{stickyOffsets:h,direction:b}=e,{right:y,left:S}=h;return m(m({},h),{left:b==="rtl"?[...S.map($=>$+l.value),0]:S,right:b==="rtl"?y:[...y.map($=>$+l.value),0],isSticky:i.isSticky})}),v=Qie(ze(e,"colWidths"),ze(e,"columCount"));return()=>{var h;const{noData:b,columCount:y,stickyTopOffset:S,stickyBottomOffset:$,stickyClassName:x,maxContentScroll:C}=e,{isSticky:O}=i;return p("div",{style:m({overflow:"hidden"},O?{top:`${S}px`,bottom:`${$}px`}:{}),ref:a,class:le(n.class,{[x]:!!x})},[p("table",{style:{tableLayout:"fixed",visibility:b||v.value?null:"hidden"}},[(!b||!C||c.value)&&p(_T,{colWidths:v.value?[...v.value,l.value]:[],columCount:y+1,columns:f.value},null),(h=o.default)===null||h===void 0?void 0:h.call(o,m(m({},e),{stickyOffsets:g.value,columns:d.value,flattenColumns:f.value}))])])}}});function d2(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o[r,ze(e,r)])))}const Jie=[],ele={},Am="rc-table-internal-hook",tle=oe({name:"VcTable",inheritAttrs:!1,props:["prefixCls","data","columns","rowKey","tableLayout","scroll","rowClassName","title","footer","id","showHeader","components","customRow","customHeaderRow","direction","expandFixed","expandColumnWidth","expandedRowKeys","defaultExpandedRowKeys","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","onUpdate:expandedRowKeys","defaultExpandAllRows","indentSize","expandIconColumnIndex","expandedRowClassName","childrenColumnName","rowExpandable","sticky","transformColumns","internalHooks","internalRefs","canExpandable","onUpdateInternalRefs","transformCellText"],emits:["expand","expandedRowsChange","updateInternalRefs","update:expandedRowKeys"],setup(e,t){let{attrs:n,slots:o,emit:r}=t;const i=P(()=>e.data||Jie),l=P(()=>!!i.value.length),a=P(()=>fie(e.components,{})),s=(de,be)=>ST(a.value,de)||be,u=P(()=>{const de=e.rowKey;return typeof de=="function"?de:be=>be&&be[de]}),c=P(()=>e.expandIcon||Uie),d=P(()=>e.childrenColumnName||"children"),f=P(()=>e.expandedRowRender?"row":e.canExpandable||i.value.some(de=>de&&typeof de=="object"&&de[d.value])?"nest":!1),g=ne([]);Le(()=>{e.defaultExpandedRowKeys&&(g.value=e.defaultExpandedRowKeys),e.defaultExpandAllRows&&(g.value=Yie(i.value,u.value,d.value))})();const h=P(()=>new Set(e.expandedRowKeys||g.value||[])),b=de=>{const be=u.value(de,i.value.indexOf(de));let we;const Ie=h.value.has(be);Ie?(h.value.delete(be),we=[...h.value]):we=[...h.value,be],g.value=we,r("expand",!Ie,de),r("update:expandedRowKeys",we),r("expandedRowsChange",we)},y=re(0),[S,$]=kie(m(m({},jo(e)),{expandable:P(()=>!!e.expandedRowRender),expandedKeys:h,getRowKey:u,onTriggerExpand:b,expandIcon:c}),P(()=>e.internalHooks===Am?e.transformColumns:null)),x=P(()=>({columns:S.value,flattenColumns:$.value})),C=re(),O=re(),w=re(),I=re({scrollWidth:0,clientWidth:0}),T=re(),[_,E]=ht(!1),[A,R]=ht(!1),[z,M]=MT(new Map),N=P(()=>fg($.value)),B=P(()=>N.value.map(de=>z.value.get(de))),k=P(()=>$.value.length),F=Lie(B,k,ze(e,"direction")),L=P(()=>e.scroll&&Tm(e.scroll.y)),H=P(()=>e.scroll&&Tm(e.scroll.x)||!!e.expandFixed),j=P(()=>H.value&&$.value.some(de=>{let{fixed:be}=de;return be})),Y=re(),Q=Zie(ze(e,"sticky"),ze(e,"prefixCls")),U=ct({}),ee=P(()=>{const de=Object.values(U)[0];return(L.value||Q.value.isSticky)&&de}),X=(de,be)=>{be?U[de]=be:delete U[de]},J=re({}),Z=re({}),G=re({});Le(()=>{L.value&&(Z.value={overflowY:"scroll",maxHeight:Zi(e.scroll.y)}),H.value&&(J.value={overflowX:"auto"},L.value||(Z.value={overflowY:"hidden"}),G.value={width:e.scroll.x===!0?"auto":Zi(e.scroll.x),minWidth:"100%"})});const q=(de,be)=>{mp(C.value)&&M(we=>{if(we.get(de)!==be){const Ie=new Map(we);return Ie.set(de,be),Ie}return we})},[V,K]=Fie();function te(de,be){if(!be)return;if(typeof be=="function"){be(de);return}const we=be.$el||be;we.scrollLeft!==de&&(we.scrollLeft=de)}const ue=de=>{let{currentTarget:be,scrollLeft:we}=de;var Ie;const Ae=e.direction==="rtl",Se=typeof we=="number"?we:be.scrollLeft,Ce=be||ele;if((!K()||K()===Ce)&&(V(Ce),te(Se,O.value),te(Se,w.value),te(Se,T.value),te(Se,(Ie=Y.value)===null||Ie===void 0?void 0:Ie.setScrollLeft)),be){const{scrollWidth:Oe,clientWidth:Me}=be;Ae?(E(-Se0)):(E(Se>0),R(Se{H.value&&w.value?ue({currentTarget:w.value}):(E(!1),R(!1))};let ae;const ce=de=>{de!==y.value&&(ie(),y.value=C.value?C.value.offsetWidth:de)},se=de=>{let{width:be}=de;if(clearTimeout(ae),y.value===0){ce(be);return}ae=setTimeout(()=>{ce(be)},100)};ye([H,()=>e.data,()=>e.columns],()=>{H.value&&ie()},{flush:"post"});const[pe,ge]=ht(0);bie(),je(()=>{ot(()=>{var de,be;ie(),ge(ek(w.value).width),I.value={scrollWidth:((de=w.value)===null||de===void 0?void 0:de.scrollWidth)||0,clientWidth:((be=w.value)===null||be===void 0?void 0:be.clientWidth)||0}})}),An(()=>{ot(()=>{var de,be;const we=((de=w.value)===null||de===void 0?void 0:de.scrollWidth)||0,Ie=((be=w.value)===null||be===void 0?void 0:be.clientWidth)||0;(I.value.scrollWidth!==we||I.value.clientWidth!==Ie)&&(I.value={scrollWidth:we,clientWidth:Ie})})}),Le(()=>{e.internalHooks===Am&&e.internalRefs&&e.onUpdateInternalRefs({body:w.value?w.value.$el||w.value:null})},{flush:"post"});const he=P(()=>e.tableLayout?e.tableLayout:j.value?e.scroll.x==="max-content"?"auto":"fixed":L.value||Q.value.isSticky||$.value.some(de=>{let{ellipsis:be}=de;return be})?"fixed":"auto"),me=()=>{var de;return l.value?null:((de=o.emptyText)===null||de===void 0?void 0:de.call(o))||"No Data"};uie(ct(m(m({},jo(d2(e,"prefixCls","direction","transformCellText"))),{getComponent:s,scrollbarSize:pe,fixedInfoList:P(()=>$.value.map((de,be)=>t1(be,be,$.value,F.value,e.direction))),isSticky:P(()=>Q.value.isSticky),summaryCollect:X}))),Eie(ct(m(m({},jo(d2(e,"rowClassName","expandedRowClassName","expandRowByClick","expandedRowRender","expandIconColumnIndex","indentSize"))),{columns:S,flattenColumns:$,tableLayout:he,expandIcon:c,expandableType:f,onTriggerExpand:b}))),Aie({onColumnResize:q}),Pie({componentWidth:y,fixHeader:L,fixColumn:j,horizonScroll:H});const xe=()=>p(Die,{data:i.value,measureColumnWidth:L.value||H.value||Q.value.isSticky,expandedKeys:h.value,rowExpandable:e.rowExpandable,getRowKey:u.value,customRow:e.customRow,childrenColumnName:d.value},{emptyNode:me}),fe=()=>p(_T,{colWidths:$.value.map(de=>{let{width:be}=de;return be}),columns:$.value},null);return()=>{var de;const{prefixCls:be,scroll:we,tableLayout:Ie,direction:Ae,title:Se=o.title,footer:Ce=o.footer,id:Oe,showHeader:Me,customHeaderRow:Re}=e,{isSticky:_e,offsetHeader:Be,offsetSummary:et,offsetScroll:dt,stickyClassName:it,container:ft}=Q.value,gt=s(["table"],"table"),Ut=s(["body"]),Jt=(de=o.summary)===null||de===void 0?void 0:de.call(o,{pageData:i.value});let on=()=>null;const zt={colWidths:B.value,columCount:$.value.length,stickyOffsets:F.value,customHeaderRow:Re,fixHeader:L.value,scroll:we};if(L.value||_e){let vo=()=>null;typeof Ut=="function"?(vo=()=>Ut(i.value,{scrollbarSize:pe.value,ref:w,onScroll:ue}),zt.colWidths=$.value.map((Gn,ki)=>{let{width:Ee}=Gn;const Ye=ki===S.value.length-1?Ee-pe.value:Ee;return typeof Ye=="number"&&!Number.isNaN(Ye)?Ye:0})):vo=()=>p("div",{style:m(m({},J.value),Z.value),onScroll:ue,ref:w,class:le(`${be}-body`)},[p(gt,{style:m(m({},G.value),{tableLayout:he.value})},{default:()=>[fe(),xe(),!ee.value&&Jt&&p(Iu,{stickyOffsets:F.value,flattenColumns:$.value},{default:()=>[Jt]})]})]);const No=m(m(m({noData:!i.value.length,maxContentScroll:H.value&&we.x==="max-content"},zt),x.value),{direction:Ae,stickyClassName:it,onScroll:ue});on=()=>p(Ve,null,[Me!==!1&&p(u2,D(D({},No),{},{stickyTopOffset:Be,class:`${be}-header`,ref:O}),{default:Gn=>p(Ve,null,[p(s2,Gn,null),ee.value==="top"&&p(Iu,Gn,{default:()=>[Jt]})])}),vo(),ee.value&&ee.value!=="top"&&p(u2,D(D({},No),{},{stickyBottomOffset:et,class:`${be}-summary`,ref:T}),{default:Gn=>p(Iu,Gn,{default:()=>[Jt]})}),_e&&w.value&&p(qie,{ref:Y,offsetScroll:dt,scrollBodyRef:w,onScroll:ue,container:ft,scrollBodySizeInfo:I.value},null)])}else on=()=>p("div",{style:m(m({},J.value),Z.value),class:le(`${be}-content`),onScroll:ue,ref:w},[p(gt,{style:m(m({},G.value),{tableLayout:he.value})},{default:()=>[fe(),Me!==!1&&p(s2,D(D({},zt),x.value),null),xe(),Jt&&p(Iu,{stickyOffsets:F.value,flattenColumns:$.value},{default:()=>[Jt]})]})]);const Cn=_i(n,{aria:!0,data:!0}),Kn=()=>p("div",D(D({},Cn),{},{class:le(be,{[`${be}-rtl`]:Ae==="rtl",[`${be}-ping-left`]:_.value,[`${be}-ping-right`]:A.value,[`${be}-layout-fixed`]:Ie==="fixed",[`${be}-fixed-header`]:L.value,[`${be}-fixed-column`]:j.value,[`${be}-scroll-horizontal`]:H.value,[`${be}-has-fix-left`]:$.value[0]&&$.value[0].fixed,[`${be}-has-fix-right`]:$.value[k.value-1]&&$.value[k.value-1].fixed==="right",[n.class]:n.class}),style:n.style,id:Oe,ref:C}),[Se&&p(_m,{class:`${be}-title`},{default:()=>[Se(i.value)]}),p("div",{class:`${be}-container`},[on()]),Ce&&p(_m,{class:`${be}-footer`},{default:()=>[Ce(i.value)]})]);return H.value?p(Mo,{onResize:se},{default:Kn}):Kn()}}});function nle(){const e=m({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const r=n[o];r!==void 0&&(e[o]=r)})}return e}const Rm=10;function ole(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(r=>{const i=e[r];typeof i!="function"&&(n[r]=i)}),n}function rle(e,t,n){const o=P(()=>t.value&&typeof t.value=="object"?t.value:{}),r=P(()=>o.value.total||0),[i,l]=ht(()=>({current:"defaultCurrent"in o.value?o.value.defaultCurrent:1,pageSize:"defaultPageSize"in o.value?o.value.defaultPageSize:Rm})),a=P(()=>{const c=nle(i.value,o.value,{total:r.value>0?r.value:e.value}),d=Math.ceil((r.value||e.value)/c.pageSize);return c.current>d&&(c.current=d||1),c}),s=(c,d)=>{t.value!==!1&&l({current:c??1,pageSize:d||a.value.pageSize})},u=(c,d)=>{var f,g;t.value&&((g=(f=o.value).onChange)===null||g===void 0||g.call(f,c,d)),s(c,d),n(c,d||a.value.pageSize)};return[P(()=>t.value===!1?{}:m(m({},a.value),{onChange:u})),s]}function ile(e,t,n){const o=ne({});ye([e,t,n],()=>{const i=new Map,l=n.value,a=t.value;function s(u){u.forEach((c,d)=>{const f=l(c,d);i.set(f,c),c&&typeof c=="object"&&a in c&&s(c[a]||[])})}s(e.value),o.value={kvMap:i}},{deep:!0,immediate:!0});function r(i){return o.value.kvMap.get(i)}return[r]}const Ir={},Dm="SELECT_ALL",Nm="SELECT_INVERT",Bm="SELECT_NONE",lle=[];function RT(e,t){let n=[];return(t||[]).forEach(o=>{n.push(o),o&&typeof o=="object"&&e in o&&(n=[...n,...RT(e,o[e])])}),n}function ale(e,t){const n=P(()=>{const T=e.value||{},{checkStrictly:_=!0}=T;return m(m({},T),{checkStrictly:_})}),[o,r]=Pt(n.value.selectedRowKeys||n.value.defaultSelectedRowKeys||lle,{value:P(()=>n.value.selectedRowKeys)}),i=ne(new Map),l=T=>{if(n.value.preserveSelectedRowKeys){const _=new Map;T.forEach(E=>{let A=t.getRecordByKey(E);!A&&i.value.has(E)&&(A=i.value.get(E)),_.set(E,A)}),i.value=_}};Le(()=>{l(o.value)});const a=P(()=>n.value.checkStrictly?null:zc(t.data.value,{externalGetKey:t.getRowKey.value,childrenPropName:t.childrenColumnName.value}).keyEntities),s=P(()=>RT(t.childrenColumnName.value,t.pageData.value)),u=P(()=>{const T=new Map,_=t.getRowKey.value,E=n.value.getCheckboxProps;return s.value.forEach((A,R)=>{const z=_(A,R),M=(E?E(A):null)||{};T.set(z,M)}),T}),{maxLevel:c,levelEntities:d}=Qp(a),f=T=>{var _;return!!(!((_=u.value.get(t.getRowKey.value(T)))===null||_===void 0)&&_.disabled)},g=P(()=>{if(n.value.checkStrictly)return[o.value||[],[]];const{checkedKeys:T,halfCheckedKeys:_}=Io(o.value,!0,a.value,c.value,d.value,f);return[T||[],_]}),v=P(()=>g.value[0]),h=P(()=>g.value[1]),b=P(()=>{const T=n.value.type==="radio"?v.value.slice(0,1):v.value;return new Set(T)}),y=P(()=>n.value.type==="radio"?new Set:new Set(h.value)),[S,$]=ht(null),x=T=>{let _,E;l(T);const{preserveSelectedRowKeys:A,onChange:R}=n.value,{getRecordByKey:z}=t;A?(_=T,E=T.map(M=>i.value.get(M))):(_=[],E=[],T.forEach(M=>{const N=z(M);N!==void 0&&(_.push(M),E.push(N))})),r(_),R?.(_,E)},C=(T,_,E,A)=>{const{onSelect:R}=n.value,{getRecordByKey:z}=t||{};if(R){const M=E.map(N=>z(N));R(z(T),_,M,A)}x(E)},O=P(()=>{const{onSelectInvert:T,onSelectNone:_,selections:E,hideSelectAll:A}=n.value,{data:R,pageData:z,getRowKey:M,locale:N}=t;return!E||A?null:(E===!0?[Dm,Nm,Bm]:E).map(k=>k===Dm?{key:"all",text:N.value.selectionAll,onSelect(){x(R.value.map((F,L)=>M.value(F,L)).filter(F=>{const L=u.value.get(F);return!L?.disabled||b.value.has(F)}))}}:k===Nm?{key:"invert",text:N.value.selectInvert,onSelect(){const F=new Set(b.value);z.value.forEach((H,j)=>{const Y=M.value(H,j),Q=u.value.get(Y);Q?.disabled||(F.has(Y)?F.delete(Y):F.add(Y))});const L=Array.from(F);T&&(Ct(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),T(L)),x(L)}}:k===Bm?{key:"none",text:N.value.selectNone,onSelect(){_?.(),x(Array.from(b.value).filter(F=>{const L=u.value.get(F);return L?.disabled}))}}:k)}),w=P(()=>s.value.length);return[T=>{var _;const{onSelectAll:E,onSelectMultiple:A,columnWidth:R,type:z,fixed:M,renderCell:N,hideSelectAll:B,checkStrictly:k}=n.value,{prefixCls:F,getRecordByKey:L,getRowKey:H,expandType:j,getPopupContainer:Y}=t;if(!e.value)return T.filter(ce=>ce!==Ir);let Q=T.slice();const U=new Set(b.value),ee=s.value.map(H.value).filter(ce=>!u.value.get(ce).disabled),X=ee.every(ce=>U.has(ce)),J=ee.some(ce=>U.has(ce)),Z=()=>{const ce=[];X?ee.forEach(pe=>{U.delete(pe),ce.push(pe)}):ee.forEach(pe=>{U.has(pe)||(U.add(pe),ce.push(pe))});const se=Array.from(U);E?.(!X,se.map(pe=>L(pe)),ce.map(pe=>L(pe))),x(se)};let G;if(z!=="radio"){let ce;if(O.value){const me=p(Vt,{getPopupContainer:Y.value},{default:()=>[O.value.map((xe,fe)=>{const{key:de,text:be,onSelect:we}=xe;return p(Vt.Item,{key:de||fe,onClick:()=>{we?.(ee)}},{default:()=>[be]})})]});ce=p("div",{class:`${F.value}-selection-extra`},[p(Wo,{overlay:me,getPopupContainer:Y.value},{default:()=>[p("span",null,[p(Dl,null,null)])]})])}const se=s.value.map((me,xe)=>{const fe=H.value(me,xe),de=u.value.get(fe)||{};return m({checked:U.has(fe)},de)}).filter(me=>{let{disabled:xe}=me;return xe}),pe=!!se.length&&se.length===w.value,ge=pe&&se.every(me=>{let{checked:xe}=me;return xe}),he=pe&&se.some(me=>{let{checked:xe}=me;return xe});G=!B&&p("div",{class:`${F.value}-selection`},[p(To,{checked:pe?ge:!!w.value&&X,indeterminate:pe?!ge&&he:!X&&J,onChange:Z,disabled:w.value===0||pe,"aria-label":ce?"Custom selection":"Select all",skipGroup:!0},null),ce])}let q;z==="radio"?q=ce=>{let{record:se,index:pe}=ce;const ge=H.value(se,pe),he=U.has(ge);return{node:p(Fn,D(D({},u.value.get(ge)),{},{checked:he,onClick:me=>me.stopPropagation(),onChange:me=>{U.has(ge)||C(ge,!0,[ge],me.nativeEvent)}}),null),checked:he}}:q=ce=>{let{record:se,index:pe}=ce;var ge;const he=H.value(se,pe),me=U.has(he),xe=y.value.has(he),fe=u.value.get(he);let de;return j.value==="nest"?(de=xe,Ct(typeof fe?.indeterminate!="boolean","Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):de=(ge=fe?.indeterminate)!==null&&ge!==void 0?ge:xe,{node:p(To,D(D({},fe),{},{indeterminate:de,checked:me,skipGroup:!0,onClick:be=>be.stopPropagation(),onChange:be=>{let{nativeEvent:we}=be;const{shiftKey:Ie}=we;let Ae=-1,Se=-1;if(Ie&&k){const Ce=new Set([S.value,he]);ee.some((Oe,Me)=>{if(Ce.has(Oe))if(Ae===-1)Ae=Me;else return Se=Me,!0;return!1})}if(Se!==-1&&Ae!==Se&&k){const Ce=ee.slice(Ae,Se+1),Oe=[];me?Ce.forEach(Re=>{U.has(Re)&&(Oe.push(Re),U.delete(Re))}):Ce.forEach(Re=>{U.has(Re)||(Oe.push(Re),U.add(Re))});const Me=Array.from(U);A?.(!me,Me.map(Re=>L(Re)),Oe.map(Re=>L(Re))),x(Me)}else{const Ce=v.value;if(k){const Oe=me?ir(Ce,he):Or(Ce,he);C(he,!me,Oe,we)}else{const Oe=Io([...Ce,he],!0,a.value,c.value,d.value,f),{checkedKeys:Me,halfCheckedKeys:Re}=Oe;let _e=Me;if(me){const Be=new Set(Me);Be.delete(he),_e=Io(Array.from(Be),{halfCheckedKeys:Re},a.value,c.value,d.value,f).checkedKeys}C(he,!me,_e,we)}}$(he)}}),null),checked:me}};const V=ce=>{let{record:se,index:pe}=ce;const{node:ge,checked:he}=q({record:se,index:pe});return N?N(he,se,pe,ge):ge};if(!Q.includes(Ir))if(Q.findIndex(ce=>{var se;return((se=ce[Ca])===null||se===void 0?void 0:se.columnType)==="EXPAND_COLUMN"})===0){const[ce,...se]=Q;Q=[ce,Ir,...se]}else Q=[Ir,...Q];const K=Q.indexOf(Ir);Q=Q.filter((ce,se)=>ce!==Ir||se===K);const te=Q[K-1],ue=Q[K+1];let ie=M;ie===void 0&&(ue?.fixed!==void 0?ie=ue.fixed:te?.fixed!==void 0&&(ie=te.fixed)),ie&&te&&((_=te[Ca])===null||_===void 0?void 0:_.columnType)==="EXPAND_COLUMN"&&te.fixed===void 0&&(te.fixed=ie);const ae={fixed:ie,width:R,className:`${F.value}-selection-column`,title:n.value.columnTitle||G,customRender:V,[Ca]:{class:`${F.value}-selection-col`}};return Q.map(ce=>ce===Ir?ae:ce)},b]}var sle={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};function f2(e){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:[];const t=bt(e),n=[];return t.forEach(o=>{var r,i,l,a;if(!o)return;const s=o.key,u=((r=o.props)===null||r===void 0?void 0:r.style)||{},c=((i=o.props)===null||i===void 0?void 0:i.class)||"",d=o.props||{};for(const[b,y]of Object.entries(d))d[ka(b)]=y;const f=o.children||{},{default:g}=f,v=fle(f,["default"]),h=m(m(m({},v),d),{style:u,class:c});if(s&&(h.key=s),!((l=o.type)===null||l===void 0)&&l.__ANT_TABLE_COLUMN_GROUP)h.children=DT(typeof g=="function"?g():g);else{const b=(a=o.children)===null||a===void 0?void 0:a.default;h.customRender=h.customRender||b}n.push(h)}),n}const yd="ascend",Vh="descend";function Bf(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function g2(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function ple(e,t){return t?e[e.indexOf(t)+1]:e[0]}function km(e,t,n){let o=[];function r(i,l){o.push({column:i,key:wl(i,l),multiplePriority:Bf(i),sortOrder:i.sortOrder})}return(e||[]).forEach((i,l)=>{const a=Kc(l,n);i.children?("sortOrder"in i&&r(i,a),o=[...o,...km(i.children,t,a)]):i.sorter&&("sortOrder"in i?r(i,a):t&&i.defaultSortOrder&&o.push({column:i,key:wl(i,a),multiplePriority:Bf(i),sortOrder:i.defaultSortOrder}))}),o}function NT(e,t,n,o,r,i,l,a){return(t||[]).map((s,u)=>{const c=Kc(u,a);let d=s;if(d.sorter){const f=d.sortDirections||r,g=d.showSorterTooltip===void 0?l:d.showSorterTooltip,v=wl(d,c),h=n.find(T=>{let{key:_}=T;return _===v}),b=h?h.sortOrder:null,y=ple(f,b),S=f.includes(yd)&&p(o1,{class:le(`${e}-column-sorter-up`,{active:b===yd}),role:"presentation"},null),$=f.includes(Vh)&&p(n1,{role:"presentation",class:le(`${e}-column-sorter-down`,{active:b===Vh})},null),{cancelSort:x,triggerAsc:C,triggerDesc:O}=i||{};let w=x;y===Vh?w=O:y===yd&&(w=C);const I=typeof g=="object"?g:{title:w};d=m(m({},d),{className:le(d.className,{[`${e}-column-sort`]:b}),title:T=>{const _=p("div",{class:`${e}-column-sorters`},[p("span",{class:`${e}-column-title`},[r1(s.title,T)]),p("span",{class:le(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(S&&$)})},[p("span",{class:`${e}-column-sorter-inner`},[S,$])])]);return g?p(Qn,I,{default:()=>[_]}):_},customHeaderCell:T=>{const _=s.customHeaderCell&&s.customHeaderCell(T)||{},E=_.onClick,A=_.onKeydown;return _.onClick=R=>{o({column:s,key:v,sortOrder:y,multiplePriority:Bf(s)}),E&&E(R)},_.onKeydown=R=>{R.keyCode===Pe.ENTER&&(o({column:s,key:v,sortOrder:y,multiplePriority:Bf(s)}),A?.(R))},b&&(_["aria-sort"]=b==="ascend"?"ascending":"descending"),_.class=le(_.class,`${e}-column-has-sorters`),_.tabindex=0,_}})}return"children"in d&&(d=m(m({},d),{children:NT(e,d.children,n,o,r,i,l,c)})),d})}function h2(e){const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}}function v2(e){const t=e.filter(n=>{let{sortOrder:o}=n;return o}).map(h2);return t.length===0&&e.length?m(m({},h2(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function Fm(e,t,n){const o=t.slice().sort((l,a)=>a.multiplePriority-l.multiplePriority),r=e.slice(),i=o.filter(l=>{let{column:{sorter:a},sortOrder:s}=l;return g2(a)&&s});return i.length?r.sort((l,a)=>{for(let s=0;s{const a=l[n];return a?m(m({},l),{[n]:Fm(a,t,n)}):l}):r}function gle(e){let{prefixCls:t,mergedColumns:n,onSorterChange:o,sortDirections:r,tableLocale:i,showSorterTooltip:l}=e;const[a,s]=ht(km(n.value,!0)),u=P(()=>{let v=!0;const h=km(n.value,!1);if(!h.length)return a.value;const b=[];function y($){v?b.push($):b.push(m(m({},$),{sortOrder:null}))}let S=null;return h.forEach($=>{S===null?(y($),$.sortOrder&&($.multiplePriority===!1?v=!1:S=!0)):(S&&$.multiplePriority!==!1||(v=!1),y($))}),b}),c=P(()=>{const v=u.value.map(h=>{let{column:b,sortOrder:y}=h;return{column:b,order:y}});return{sortColumns:v,sortColumn:v[0]&&v[0].column,sortOrder:v[0]&&v[0].order}});function d(v){let h;v.multiplePriority===!1||!u.value.length||u.value[0].multiplePriority===!1?h=[v]:h=[...u.value.filter(b=>{let{key:y}=b;return y!==v.key}),v],s(h),o(v2(h),h)}const f=v=>NT(t.value,v,u.value,d,r.value,i.value,l.value),g=P(()=>v2(u.value));return[f,u,c,g]}var hle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"};function m2(e){for(var t=1;t{const{keyCode:t}=e;t===Pe.ENTER&&e.stopPropagation()},ble=(e,t)=>{let{slots:n}=t;var o;return p("div",{onClick:r=>r.stopPropagation(),onKeydown:mle},[(o=n.default)===null||o===void 0?void 0:o.call(n)])},b2=oe({compatConfig:{MODE:3},name:"FilterSearch",inheritAttrs:!1,props:{value:Ne(),onChange:ve(),filterSearch:Fe([Boolean,Function]),tablePrefixCls:Ne(),locale:De()},setup(e){return()=>{const{value:t,onChange:n,filterSearch:o,tablePrefixCls:r,locale:i}=e;return o?p("div",{class:`${r}-filter-dropdown-search`},[p(tn,{placeholder:i.filterSearchPlaceholder,onChange:n,value:t,htmlSize:1,class:`${r}-filter-dropdown-search-input`},{prefix:()=>p(Va,null,null)})]):null}}});var y2=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);re.motion?e.motion:Rc()),s=(u,c)=>{var d,f,g,v;c==="appear"?(f=(d=a.value)===null||d===void 0?void 0:d.onAfterEnter)===null||f===void 0||f.call(d,u):c==="leave"&&((v=(g=a.value)===null||g===void 0?void 0:g.onAfterLeave)===null||v===void 0||v.call(g,u)),l.value||e.onMotionEnd(),l.value=!0};return ye(()=>e.motionNodes,()=>{e.motionNodes&&e.motionType==="hide"&&r.value&&ot(()=>{r.value=!1})},{immediate:!0,flush:"post"}),je(()=>{e.motionNodes&&e.onMotionStart()}),Qe(()=>{e.motionNodes&&s()}),()=>{const{motion:u,motionNodes:c,motionType:d,active:f,eventKey:g}=e,v=y2(e,["motion","motionNodes","motionType","active","eventKey"]);return c?p(un,D(D({},a.value),{},{appear:d==="show",onAfterAppear:h=>s(h,"appear"),onAfterLeave:h=>s(h,"leave")}),{default:()=>[En(p("div",{class:`${i.value.prefixCls}-treenode-motion`},[c.map(h=>{const b=y2(h.data,[]),{title:y,key:S,isStart:$,isEnd:x}=h;return delete b.children,p(sm,D(D({},b),{},{title:y,active:f,data:h.data,key:S,eventKey:S,isStart:$,isEnd:x}),o)})]),[[jn,r.value]])]}):p(sm,D(D({class:n.class,style:n.style},v),{},{active:f,eventKey:g}),o)}}});function Sle(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const n=e.length,o=t.length;if(Math.abs(n-o)!==1)return{add:!1,key:null};function r(i,l){const a=new Map;i.forEach(u=>{a.set(u,!0)});const s=l.filter(u=>!a.has(u));return s.length===1?s[0]:null}return nl.key===n),r=e[o+1],i=t.findIndex(l=>l.key===n);if(r){const l=t.findIndex(a=>a.key===r.key);return t.slice(i+1,l)}return t.slice(i+1)}var $2=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{},Ol=`RC_TREE_MOTION_${Math.random()}`,Lm={key:Ol},BT={key:Ol,level:0,index:0,pos:"0",node:Lm,nodes:[Lm]},x2={parent:null,children:[],pos:BT.pos,data:Lm,title:null,key:Ol,isStart:[],isEnd:[]};function w2(e,t,n,o){return t===!1||!n?e:e.slice(0,Math.ceil(n/o)+1)}function O2(e){const{key:t,pos:n}=e;return Lc(t,n)}function Cle(e){let t=String(e.key),n=e;for(;n.parent;)n=n.parent,t=`${n.key} > ${t}`;return t}const xle=oe({compatConfig:{MODE:3},name:"NodeList",inheritAttrs:!1,props:PY,setup(e,t){let{expose:n,attrs:o}=t;const r=re(),i=re(),{expandedKeys:l,flattenNodes:a}=g8();n({scrollTo:h=>{r.value.scrollTo(h)},getIndentWidth:()=>i.value.offsetWidth});const s=ne(a.value),u=ne([]),c=re(null);function d(){s.value=a.value,u.value=[],c.value=null,e.onListChangeEnd()}const f=by();ye([()=>l.value.slice(),a],(h,b)=>{let[y,S]=h,[$,x]=b;const C=Sle($,y);if(C.key!==null){const{virtual:O,height:w,itemHeight:I}=e;if(C.add){const T=x.findIndex(A=>{let{key:R}=A;return R===C.key}),_=w2(S2(x,S,C.key),O,w,I),E=x.slice();E.splice(T+1,0,x2),s.value=E,u.value=_,c.value="show"}else{const T=S.findIndex(A=>{let{key:R}=A;return R===C.key}),_=w2(S2(S,x,C.key),O,w,I),E=S.slice();E.splice(T+1,0,x2),s.value=E,u.value=_,c.value="hide"}}else x!==S&&(s.value=S)}),ye(()=>f.value.dragging,h=>{h||d()});const g=P(()=>e.motion===void 0?s.value:a.value),v=()=>{e.onActiveChange(null)};return()=>{const h=m(m({},e),o),{prefixCls:b,selectable:y,checkable:S,disabled:$,motion:x,height:C,itemHeight:O,virtual:w,focusable:I,activeItem:T,focused:_,tabindex:E,onKeydown:A,onFocus:R,onBlur:z,onListChangeStart:M,onListChangeEnd:N}=h,B=$2(h,["prefixCls","selectable","checkable","disabled","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabindex","onKeydown","onFocus","onBlur","onListChangeStart","onListChangeEnd"]);return p(Ve,null,[_&&T&&p("span",{style:C2,"aria-live":"assertive"},[Cle(T)]),p("div",null,[p("input",{style:C2,disabled:I===!1||$,tabindex:I!==!1?E:null,onKeydown:A,onFocus:R,onBlur:z,value:"",onChange:$le,"aria-label":"for screen reader"},null)]),p("div",{class:`${b}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[p("div",{class:`${b}-indent`},[p("div",{ref:i,class:`${b}-indent-unit`},null)])]),p(i6,D(D({},tt(B,["onActiveChange"])),{},{data:g.value,itemKey:O2,height:C,fullHeight:!1,virtual:w,itemHeight:O,prefixCls:`${b}-list`,ref:r,onVisibleChange:(k,F)=>{const L=new Set(k);F.filter(j=>!L.has(j)).some(j=>O2(j)===Ol)&&d()}}),{default:k=>{const{pos:F}=k,L=$2(k.data,[]),{title:H,key:j,isStart:Y,isEnd:Q}=k,U=Lc(j,F);return delete L.key,delete L.children,p(yle,D(D({},L),{},{eventKey:U,title:H,active:!!T&&j===T.key,data:k.data,isStart:Y,isEnd:Q,motion:x,motionNodes:j===Ol?u.value:null,motionType:c.value,onMotionStart:M,onMotionEnd:d,onMousemove:v}),null)}})])}}});function wle(e){let{dropPosition:t,dropLevelOffset:n,indent:o}=e;const r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:"2px"};switch(t){case-1:r.top=0,r.left=`${-n*o}px`;break;case 1:r.bottom=0,r.left=`${-n*o}px`;break;case 0:r.bottom=0,r.left=`${o}`;break}return p("div",{style:r},null)}const Ole=10,kT=oe({compatConfig:{MODE:3},name:"Tree",inheritAttrs:!1,props:Ze(v8(),{prefixCls:"vc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,expandAction:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:wle,allowDrop:()=>!0}),setup(e,t){let{attrs:n,slots:o,expose:r}=t;const i=ne(!1);let l={};const a=ne(),s=ne([]),u=ne([]),c=ne([]),d=ne([]),f=ne([]),g=ne([]),v={},h=ct({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),b=ne([]);ye([()=>e.treeData,()=>e.children],()=>{b.value=e.treeData!==void 0?e.treeData.slice():um(Je(e.children))},{immediate:!0,deep:!0});const y=ne({}),S=ne(!1),$=ne(null),x=ne(!1),C=P(()=>Up(e.fieldNames)),O=ne();let w=null,I=null,T=null;const _=P(()=>({expandedKeysSet:E.value,selectedKeysSet:A.value,loadedKeysSet:R.value,loadingKeysSet:z.value,checkedKeysSet:M.value,halfCheckedKeysSet:N.value,dragOverNodeKey:h.dragOverNodeKey,dropPosition:h.dropPosition,keyEntities:y.value})),E=P(()=>new Set(g.value)),A=P(()=>new Set(s.value)),R=P(()=>new Set(d.value)),z=P(()=>new Set(f.value)),M=P(()=>new Set(u.value)),N=P(()=>new Set(c.value));Le(()=>{if(b.value){const Se=zc(b.value,{fieldNames:C.value});y.value=m({[Ol]:BT},Se.keyEntities)}});let B=!1;ye([()=>e.expandedKeys,()=>e.autoExpandParent,y],(Se,Ce)=>{let[Oe,Me]=Se,[Re,_e]=Ce,Be=g.value;if(e.expandedKeys!==void 0||B&&Me!==_e)Be=e.autoExpandParent||!B&&e.defaultExpandParent?cm(e.expandedKeys,y.value):e.expandedKeys;else if(!B&&e.defaultExpandAll){const et=m({},y.value);delete et[Ol],Be=Object.keys(et).map(dt=>et[dt].key)}else!B&&e.defaultExpandedKeys&&(Be=e.autoExpandParent||e.defaultExpandParent?cm(e.defaultExpandedKeys,y.value):e.defaultExpandedKeys);Be&&(g.value=Be),B=!0},{immediate:!0});const k=ne([]);Le(()=>{k.value=DY(b.value,g.value,C.value)}),Le(()=>{e.selectable&&(e.selectedKeys!==void 0?s.value=Bx(e.selectedKeys,e):!B&&e.defaultSelectedKeys&&(s.value=Bx(e.defaultSelectedKeys,e)))});const{maxLevel:F,levelEntities:L}=Qp(y);Le(()=>{if(e.checkable){let Se;if(e.checkedKeys!==void 0?Se=Oh(e.checkedKeys)||{}:!B&&e.defaultCheckedKeys?Se=Oh(e.defaultCheckedKeys)||{}:b.value&&(Se=Oh(e.checkedKeys)||{checkedKeys:u.value,halfCheckedKeys:c.value}),Se){let{checkedKeys:Ce=[],halfCheckedKeys:Oe=[]}=Se;e.checkStrictly||({checkedKeys:Ce,halfCheckedKeys:Oe}=Io(Ce,!0,y.value,F.value,L.value)),u.value=Ce,c.value=Oe}}}),Le(()=>{e.loadedKeys&&(d.value=e.loadedKeys)});const H=()=>{m(h,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},j=Se=>{O.value.scrollTo(Se)};ye(()=>e.activeKey,()=>{e.activeKey!==void 0&&($.value=e.activeKey)},{immediate:!0}),ye($,Se=>{ot(()=>{Se!==null&&j({key:Se})})},{immediate:!0,flush:"post"});const Y=Se=>{e.expandedKeys===void 0&&(g.value=Se)},Q=()=>{h.draggingNodeKey!==null&&m(h,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),w=null,T=null},U=(Se,Ce)=>{const{onDragend:Oe}=e;h.dragOverNodeKey=null,Q(),Oe?.({event:Se,node:Ce.eventData}),I=null},ee=Se=>{U(Se,null),window.removeEventListener("dragend",ee)},X=(Se,Ce)=>{const{onDragstart:Oe}=e,{eventKey:Me,eventData:Re}=Ce;I=Ce,w={x:Se.clientX,y:Se.clientY};const _e=ir(g.value,Me);h.draggingNodeKey=Me,h.dragChildrenKeys=MY(Me,y.value),a.value=O.value.getIndentWidth(),Y(_e),window.addEventListener("dragend",ee),Oe&&Oe({event:Se,node:Re})},J=(Se,Ce)=>{const{onDragenter:Oe,onExpand:Me,allowDrop:Re,direction:_e}=e,{pos:Be,eventKey:et}=Ce;if(T!==et&&(T=et),!I){H();return}const{dropPosition:dt,dropLevelOffset:it,dropTargetKey:ft,dropContainerKey:gt,dropTargetPos:Ut,dropAllowed:Jt,dragOverNodeKey:on}=Nx(Se,I,Ce,a.value,w,Re,k.value,y.value,E.value,_e);if(h.dragChildrenKeys.indexOf(ft)!==-1||!Jt){H();return}if(l||(l={}),Object.keys(l).forEach(zt=>{clearTimeout(l[zt])}),I.eventKey!==Ce.eventKey&&(l[Be]=window.setTimeout(()=>{if(h.draggingNodeKey===null)return;let zt=g.value.slice();const Cn=y.value[Ce.eventKey];Cn&&(Cn.children||[]).length&&(zt=Or(g.value,Ce.eventKey)),Y(zt),Me&&Me(zt,{node:Ce.eventData,expanded:!0,nativeEvent:Se})},800)),I.eventKey===ft&&it===0){H();return}m(h,{dragOverNodeKey:on,dropPosition:dt,dropLevelOffset:it,dropTargetKey:ft,dropContainerKey:gt,dropTargetPos:Ut,dropAllowed:Jt}),Oe&&Oe({event:Se,node:Ce.eventData,expandedKeys:g.value})},Z=(Se,Ce)=>{const{onDragover:Oe,allowDrop:Me,direction:Re}=e;if(!I)return;const{dropPosition:_e,dropLevelOffset:Be,dropTargetKey:et,dropContainerKey:dt,dropAllowed:it,dropTargetPos:ft,dragOverNodeKey:gt}=Nx(Se,I,Ce,a.value,w,Me,k.value,y.value,E.value,Re);h.dragChildrenKeys.indexOf(et)!==-1||!it||(I.eventKey===et&&Be===0?h.dropPosition===null&&h.dropLevelOffset===null&&h.dropTargetKey===null&&h.dropContainerKey===null&&h.dropTargetPos===null&&h.dropAllowed===!1&&h.dragOverNodeKey===null||H():_e===h.dropPosition&&Be===h.dropLevelOffset&&et===h.dropTargetKey&&dt===h.dropContainerKey&&ft===h.dropTargetPos&&it===h.dropAllowed&>===h.dragOverNodeKey||m(h,{dropPosition:_e,dropLevelOffset:Be,dropTargetKey:et,dropContainerKey:dt,dropTargetPos:ft,dropAllowed:it,dragOverNodeKey:gt}),Oe&&Oe({event:Se,node:Ce.eventData}))},G=(Se,Ce)=>{T===Ce.eventKey&&!Se.currentTarget.contains(Se.relatedTarget)&&(H(),T=null);const{onDragleave:Oe}=e;Oe&&Oe({event:Se,node:Ce.eventData})},q=function(Se,Ce){let Oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Me;const{dragChildrenKeys:Re,dropPosition:_e,dropTargetKey:Be,dropTargetPos:et,dropAllowed:dt}=h;if(!dt)return;const{onDrop:it}=e;if(h.dragOverNodeKey=null,Q(),Be===null)return;const ft=m(m({},nd(Be,Je(_.value))),{active:((Me=be.value)===null||Me===void 0?void 0:Me.key)===Be,data:y.value[Be].node});Re.indexOf(Be);const gt=yy(et),Ut={event:Se,node:od(ft),dragNode:I?I.eventData:null,dragNodesKeys:[I.eventKey].concat(Re),dropToGap:_e!==0,dropPosition:_e+Number(gt[gt.length-1])};Oe||it?.(Ut),I=null},V=(Se,Ce)=>{const{expanded:Oe,key:Me}=Ce,Re=k.value.filter(Be=>Be.key===Me)[0],_e=od(m(m({},nd(Me,_.value)),{data:Re.data}));Y(Oe?ir(g.value,Me):Or(g.value,Me)),me(Se,_e)},K=(Se,Ce)=>{const{onClick:Oe,expandAction:Me}=e;Me==="click"&&V(Se,Ce),Oe&&Oe(Se,Ce)},te=(Se,Ce)=>{const{onDblclick:Oe,expandAction:Me}=e;(Me==="doubleclick"||Me==="dblclick")&&V(Se,Ce),Oe&&Oe(Se,Ce)},ue=(Se,Ce)=>{let Oe=s.value;const{onSelect:Me,multiple:Re}=e,{selected:_e}=Ce,Be=Ce[C.value.key],et=!_e;et?Re?Oe=Or(Oe,Be):Oe=[Be]:Oe=ir(Oe,Be);const dt=y.value,it=Oe.map(ft=>{const gt=dt[ft];return gt?gt.node:null}).filter(ft=>ft);e.selectedKeys===void 0&&(s.value=Oe),Me&&Me(Oe,{event:"select",selected:et,node:Ce,selectedNodes:it,nativeEvent:Se})},ie=(Se,Ce,Oe)=>{const{checkStrictly:Me,onCheck:Re}=e,_e=Ce[C.value.key];let Be;const et={event:"check",node:Ce,checked:Oe,nativeEvent:Se},dt=y.value;if(Me){const it=Oe?Or(u.value,_e):ir(u.value,_e),ft=ir(c.value,_e);Be={checked:it,halfChecked:ft},et.checkedNodes=it.map(gt=>dt[gt]).filter(gt=>gt).map(gt=>gt.node),e.checkedKeys===void 0&&(u.value=it)}else{let{checkedKeys:it,halfCheckedKeys:ft}=Io([...u.value,_e],!0,dt,F.value,L.value);if(!Oe){const gt=new Set(it);gt.delete(_e),{checkedKeys:it,halfCheckedKeys:ft}=Io(Array.from(gt),{halfCheckedKeys:ft},dt,F.value,L.value)}Be=it,et.checkedNodes=[],et.checkedNodesPositions=[],et.halfCheckedKeys=ft,it.forEach(gt=>{const Ut=dt[gt];if(!Ut)return;const{node:Jt,pos:on}=Ut;et.checkedNodes.push(Jt),et.checkedNodesPositions.push({node:Jt,pos:on})}),e.checkedKeys===void 0&&(u.value=it,c.value=ft)}Re&&Re(Be,et)},ae=Se=>{const Ce=Se[C.value.key],Oe=new Promise((Me,Re)=>{const{loadData:_e,onLoad:Be}=e;if(!_e||R.value.has(Ce)||z.value.has(Ce))return null;_e(Se).then(()=>{const dt=Or(d.value,Ce),it=ir(f.value,Ce);Be&&Be(dt,{event:"load",node:Se}),e.loadedKeys===void 0&&(d.value=dt),f.value=it,Me()}).catch(dt=>{const it=ir(f.value,Ce);if(f.value=it,v[Ce]=(v[Ce]||0)+1,v[Ce]>=Ole){const ft=Or(d.value,Ce);e.loadedKeys===void 0&&(d.value=ft),Me()}Re(dt)}),f.value=Or(f.value,Ce)});return Oe.catch(()=>{}),Oe},ce=(Se,Ce)=>{const{onMouseenter:Oe}=e;Oe&&Oe({event:Se,node:Ce})},se=(Se,Ce)=>{const{onMouseleave:Oe}=e;Oe&&Oe({event:Se,node:Ce})},pe=(Se,Ce)=>{const{onRightClick:Oe}=e;Oe&&(Se.preventDefault(),Oe({event:Se,node:Ce}))},ge=Se=>{const{onFocus:Ce}=e;S.value=!0,Ce&&Ce(Se)},he=Se=>{const{onBlur:Ce}=e;S.value=!1,de(null),Ce&&Ce(Se)},me=(Se,Ce)=>{let Oe=g.value;const{onExpand:Me,loadData:Re}=e,{expanded:_e}=Ce,Be=Ce[C.value.key];if(x.value)return;Oe.indexOf(Be);const et=!_e;if(et?Oe=Or(Oe,Be):Oe=ir(Oe,Be),Y(Oe),Me&&Me(Oe,{node:Ce,expanded:et,nativeEvent:Se}),et&&Re){const dt=ae(Ce);dt&&dt.then(()=>{}).catch(it=>{const ft=ir(g.value,Be);Y(ft),Promise.reject(it)})}},xe=()=>{x.value=!0},fe=()=>{setTimeout(()=>{x.value=!1})},de=Se=>{const{onActiveChange:Ce}=e;$.value!==Se&&(e.activeKey!==void 0&&($.value=Se),Se!==null&&j({key:Se}),Ce&&Ce(Se))},be=P(()=>$.value===null?null:k.value.find(Se=>{let{key:Ce}=Se;return Ce===$.value})||null),we=Se=>{let Ce=k.value.findIndex(Me=>{let{key:Re}=Me;return Re===$.value});Ce===-1&&Se<0&&(Ce=k.value.length),Ce=(Ce+Se+k.value.length)%k.value.length;const Oe=k.value[Ce];if(Oe){const{key:Me}=Oe;de(Me)}else de(null)},Ie=P(()=>od(m(m({},nd($.value,_.value)),{data:be.value.data,active:!0}))),Ae=Se=>{const{onKeydown:Ce,checkable:Oe,selectable:Me}=e;switch(Se.which){case Pe.UP:{we(-1),Se.preventDefault();break}case Pe.DOWN:{we(1),Se.preventDefault();break}}const Re=be.value;if(Re&&Re.data){const _e=Re.data.isLeaf===!1||!!(Re.data.children||[]).length,Be=Ie.value;switch(Se.which){case Pe.LEFT:{_e&&E.value.has($.value)?me({},Be):Re.parent&&de(Re.parent.key),Se.preventDefault();break}case Pe.RIGHT:{_e&&!E.value.has($.value)?me({},Be):Re.children&&Re.children.length&&de(Re.children[0].key),Se.preventDefault();break}case Pe.ENTER:case Pe.SPACE:{Oe&&!Be.disabled&&Be.checkable!==!1&&!Be.disableCheckbox?ie({},Be,!M.value.has($.value)):!Oe&&Me&&!Be.disabled&&Be.selectable!==!1&&ue({},Be);break}}}Ce&&Ce(Se)};return r({onNodeExpand:me,scrollTo:j,onKeydown:Ae,selectedKeys:P(()=>s.value),checkedKeys:P(()=>u.value),halfCheckedKeys:P(()=>c.value),loadedKeys:P(()=>d.value),loadingKeys:P(()=>f.value),expandedKeys:P(()=>g.value)}),$n(()=>{window.removeEventListener("dragend",ee),i.value=!0}),wY({expandedKeys:g,selectedKeys:s,loadedKeys:d,loadingKeys:f,checkedKeys:u,halfCheckedKeys:c,expandedKeysSet:E,selectedKeysSet:A,loadedKeysSet:R,loadingKeysSet:z,checkedKeysSet:M,halfCheckedKeysSet:N,flattenNodes:k}),()=>{const{draggingNodeKey:Se,dropLevelOffset:Ce,dropContainerKey:Oe,dropTargetKey:Me,dropPosition:Re,dragOverNodeKey:_e}=h,{prefixCls:Be,showLine:et,focusable:dt,tabindex:it=0,selectable:ft,showIcon:gt,icon:Ut=o.icon,switcherIcon:Jt,draggable:on,checkable:zt,checkStrictly:Cn,disabled:Kn,motion:vo,loadData:No,filterTreeNode:Gn,height:ki,itemHeight:Ee,virtual:Ye,dropIndicatorRender:Ge,onContextmenu:$t,onScroll:en,direction:Ht,rootClassName:Xn,rootStyle:hn}=e,{class:tr,style:eo}=n,mo=_i(m(m({},e),n),{aria:!0,data:!0});let Rt;return on?typeof on=="object"?Rt=on:typeof on=="function"?Rt={nodeDraggable:on}:Rt={}:Rt=!1,p(xY,{value:{prefixCls:Be,selectable:ft,showIcon:gt,icon:Ut,switcherIcon:Jt,draggable:Rt,draggingNodeKey:Se,checkable:zt,customCheckable:o.checkable,checkStrictly:Cn,disabled:Kn,keyEntities:y.value,dropLevelOffset:Ce,dropContainerKey:Oe,dropTargetKey:Me,dropPosition:Re,dragOverNodeKey:_e,dragging:Se!==null,indent:a.value,direction:Ht,dropIndicatorRender:Ge,loadData:No,filterTreeNode:Gn,onNodeClick:K,onNodeDoubleClick:te,onNodeExpand:me,onNodeSelect:ue,onNodeCheck:ie,onNodeLoad:ae,onNodeMouseEnter:ce,onNodeMouseLeave:se,onNodeContextMenu:pe,onNodeDragStart:X,onNodeDragEnter:J,onNodeDragOver:Z,onNodeDragLeave:G,onNodeDragEnd:U,onNodeDrop:q,slots:o}},{default:()=>[p("div",{role:"tree",class:le(Be,tr,Xn,{[`${Be}-show-line`]:et,[`${Be}-focused`]:S.value,[`${Be}-active-focused`]:$.value!==null}),style:hn},[p(xle,D({ref:O,prefixCls:Be,style:eo,disabled:Kn,selectable:ft,checkable:!!zt,motion:vo,height:ki,itemHeight:Ee,virtual:Ye,focusable:dt,focused:S.value,tabindex:it,activeItem:be.value,onFocus:ge,onBlur:he,onKeydown:Ae,onActiveChange:de,onListChangeStart:xe,onListChangeEnd:fe,onContextmenu:$t,onScroll:en},mo),null)])]})}}});var Ple={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};function P2(e){for(var t=1;t({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),kle=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Fle=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:r,treeTitleHeight:i}=t,l=(i-t.fontSizeLG)/2,a=t.paddingXS;return{[n]:m(m({},Ue(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${n}-rtl`]:{[`${n}-switcher`]:{"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${n}-active-focused)`]:m({},Wr(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:r,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Nle,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${o}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${r}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${n}-node-content-wrapper`]:m({},Wr(t)),[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${n}-draggable-icon`]:{width:i,lineHeight:`${i}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${o}:hover &`]:{opacity:.45}},[`&${o}-disabled`]:{[`${n}-draggable-icon`]:{visibility:"hidden"}}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:i}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher`]:m(m({},Ble(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,margin:0,lineHeight:`${i}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${n}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:i/2,bottom:-r,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:i/2*.8,height:i/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-checkbox`]:{top:"initial",marginInlineEnd:a,marginBlockStart:l},[`${n}-node-content-wrapper, ${n}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:i,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${i}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:t.controlItemBgHover},[`&${n}-node-selected`]:{backgroundColor:t.controlItemBgActive},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,lineHeight:`${i}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}-node-content-wrapper`]:m({lineHeight:`${i}px`,userSelect:"none"},kle(e,t)),[`${o}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${n}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:i/2,bottom:-r,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last`]:{[`${n}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${i/2}px !important`}}}}})}},Lle=e=>{const{treeCls:t,treeNodeCls:n,treeNodePadding:o}=e;return{[`${t}${t}-directory`]:{[n]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:o,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:e.colorTextLightSolid,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:e.colorPrimary},[`${t}-switcher`]:{color:e.colorTextLightSolid},[`${t}-node-content-wrapper`]:{color:e.colorTextLightSolid,background:"transparent"}}}}}},LT=(e,t)=>{const n=`.${e}`,o=`${n}-treenode`,r=t.paddingXS/2,i=t.controlHeightSM,l=ke(t,{treeCls:n,treeNodeCls:o,treeNodePadding:r,treeTitleHeight:i});return[Fle(e,l),Lle(l)]},zle=Ke("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:ng(`${n}-checkbox`,e)},LT(n,e),_c(e)]}),zT=()=>{const e=v8();return m(m({},e),{showLine:Fe([Boolean,Object]),multiple:$e(),autoExpandParent:$e(),checkStrictly:$e(),checkable:$e(),disabled:$e(),defaultExpandAll:$e(),defaultExpandParent:$e(),defaultExpandedKeys:lt(),expandedKeys:lt(),checkedKeys:Fe([Array,Object]),defaultCheckedKeys:lt(),selectedKeys:lt(),defaultSelectedKeys:lt(),selectable:$e(),loadedKeys:lt(),draggable:$e(),showIcon:$e(),icon:ve(),switcherIcon:W.any,prefixCls:String,replaceFields:De(),blockNode:$e(),openAnimation:W.any,onDoubleclick:e.onDblclick,"onUpdate:selectedKeys":ve(),"onUpdate:checkedKeys":ve(),"onUpdate:expandedKeys":ve()})},Sd=oe({compatConfig:{MODE:3},name:"ATree",inheritAttrs:!1,props:Ze(zT(),{checkable:!1,selectable:!0,showIcon:!1,blockNode:!1}),slots:Object,setup(e,t){let{attrs:n,expose:o,emit:r,slots:i}=t;e.treeData===void 0&&i.default;const{prefixCls:l,direction:a,virtual:s}=Te("tree",e),[u,c]=zle(l),d=re();o({treeRef:d,onNodeExpand:function(){var b;(b=d.value)===null||b===void 0||b.onNodeExpand(...arguments)},scrollTo:b=>{var y;(y=d.value)===null||y===void 0||y.scrollTo(b)},selectedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.selectedKeys}),checkedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.checkedKeys}),halfCheckedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.halfCheckedKeys}),loadedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.loadedKeys}),loadingKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.loadingKeys}),expandedKeys:P(()=>{var b;return(b=d.value)===null||b===void 0?void 0:b.expandedKeys})}),Le(()=>{Ct(e.replaceFields===void 0,"Tree","`replaceFields` is deprecated, please use fieldNames instead")});const g=(b,y)=>{r("update:checkedKeys",b),r("check",b,y)},v=(b,y)=>{r("update:expandedKeys",b),r("expand",b,y)},h=(b,y)=>{r("update:selectedKeys",b),r("select",b,y)};return()=>{const{showIcon:b,showLine:y,switcherIcon:S=i.switcherIcon,icon:$=i.icon,blockNode:x,checkable:C,selectable:O,fieldNames:w=e.replaceFields,motion:I=e.openAnimation,itemHeight:T=28,onDoubleclick:_,onDblclick:E}=e,A=m(m(m({},n),tt(e,["onUpdate:checkedKeys","onUpdate:expandedKeys","onUpdate:selectedKeys","onDoubleclick"])),{showLine:!!y,dropIndicatorRender:Dle,fieldNames:w,icon:$,itemHeight:T}),R=i.default?At(i.default()):void 0;return u(p(kT,D(D({},A),{},{virtual:s.value,motion:I,ref:d,prefixCls:l.value,class:le({[`${l.value}-icon-hide`]:!b,[`${l.value}-block-node`]:x,[`${l.value}-unselectable`]:!O,[`${l.value}-rtl`]:a.value==="rtl"},n.class,c.value),direction:a.value,checkable:C,selectable:O,switcherIcon:z=>FT(l.value,S,z,i.leafIcon,y),onCheck:g,onExpand:v,onSelect:h,onDblclick:E||_,children:R}),m(m({},i),{checkable:()=>p("span",{class:`${l.value}-checkbox-inner`},null)})))}}});var Hle={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};function _2(e){for(var t=1;t{if(a===Tr.End)return!1;if(s(u)){if(l.push(u),a===Tr.None)a=Tr.Start;else if(a===Tr.Start)return a=Tr.End,!1}else a===Tr.Start&&l.push(u);return n.includes(u)}),l}function Wh(e,t,n){const o=[...t],r=[];return d1(e,n,(i,l)=>{const a=o.indexOf(i);return a!==-1&&(r.push(l),o.splice(a,1)),!!o.length}),r}var Gle=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rm(m({},zT()),{expandAction:Fe([Boolean,String])});function Ule(e){const{isLeaf:t,expanded:n}=e;return p(t?gg:n?c1:u1,null,null)}const $d=oe({compatConfig:{MODE:3},name:"ADirectoryTree",inheritAttrs:!1,props:Ze(Xle(),{showIcon:!0,expandAction:"click"}),slots:Object,setup(e,t){let{attrs:n,slots:o,emit:r,expose:i}=t;var l;const a=re(e.treeData||um(At((l=o.default)===null||l===void 0?void 0:l.call(o))));ye(()=>e.treeData,()=>{a.value=e.treeData}),An(()=>{ot(()=>{var T;e.treeData===void 0&&o.default&&(a.value=um(At((T=o.default)===null||T===void 0?void 0:T.call(o))))})});const s=re(),u=re(),c=P(()=>Up(e.fieldNames)),d=re();i({scrollTo:T=>{var _;(_=d.value)===null||_===void 0||_.scrollTo(T)},selectedKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.selectedKeys}),checkedKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.checkedKeys}),halfCheckedKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.halfCheckedKeys}),loadedKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.loadedKeys}),loadingKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.loadingKeys}),expandedKeys:P(()=>{var T;return(T=d.value)===null||T===void 0?void 0:T.expandedKeys})});const g=()=>{const{keyEntities:T}=zc(a.value,{fieldNames:c.value});let _;return e.defaultExpandAll?_=Object.keys(T):e.defaultExpandParent?_=cm(e.expandedKeys||e.defaultExpandedKeys||[],T):_=e.expandedKeys||e.defaultExpandedKeys,_},v=re(e.selectedKeys||e.defaultSelectedKeys||[]),h=re(g());ye(()=>e.selectedKeys,()=>{e.selectedKeys!==void 0&&(v.value=e.selectedKeys)},{immediate:!0}),ye(()=>e.expandedKeys,()=>{e.expandedKeys!==void 0&&(h.value=e.expandedKeys)},{immediate:!0});const y=Sb((T,_)=>{const{isLeaf:E}=_;E||T.shiftKey||T.metaKey||T.ctrlKey||d.value.onNodeExpand(T,_)},200,{leading:!0}),S=(T,_)=>{e.expandedKeys===void 0&&(h.value=T),r("update:expandedKeys",T),r("expand",T,_)},$=(T,_)=>{const{expandAction:E}=e;E==="click"&&y(T,_),r("click",T,_)},x=(T,_)=>{const{expandAction:E}=e;(E==="dblclick"||E==="doubleclick")&&y(T,_),r("doubleclick",T,_),r("dblclick",T,_)},C=(T,_)=>{const{multiple:E}=e,{node:A,nativeEvent:R}=_,z=A[c.value.key],M=m(m({},_),{selected:!0}),N=R?.ctrlKey||R?.metaKey,B=R?.shiftKey;let k;E&&N?(k=T,s.value=z,u.value=k,M.selectedNodes=Wh(a.value,k,c.value)):E&&B?(k=Array.from(new Set([...u.value||[],...Kle({treeData:a.value,expandedKeys:h.value,startKey:z,endKey:s.value,fieldNames:c.value})])),M.selectedNodes=Wh(a.value,k,c.value)):(k=[z],s.value=z,u.value=k,M.selectedNodes=Wh(a.value,k,c.value)),r("update:selectedKeys",k),r("select",k,M),e.selectedKeys===void 0&&(v.value=k)},O=(T,_)=>{r("update:checkedKeys",T),r("check",T,_)},{prefixCls:w,direction:I}=Te("tree",e);return()=>{const T=le(`${w.value}-directory`,{[`${w.value}-directory-rtl`]:I.value==="rtl"},n.class),{icon:_=o.icon,blockNode:E=!0}=e,A=Gle(e,["icon","blockNode"]);return p(Sd,D(D(D({},n),{},{icon:_||Ule,ref:d,blockNode:E},A),{},{prefixCls:w.value,class:T,expandedKeys:h.value,selectedKeys:v.value,onSelect:C,onClick:$,onDblclick:x,onExpand:S,onCheck:O}),o)}}}),Cd=sm,HT=m(Sd,{DirectoryTree:$d,TreeNode:Cd,install:e=>(e.component(Sd.name,Sd),e.component(Cd.name,Cd),e.component($d.name,$d),e)});function R2(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const o=new Set;function r(i,l){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;const s=o.has(i);if(w0(!s,"Warning: There may be circular references"),s)return!1;if(i===l)return!0;if(n&&a>1)return!1;o.add(i);const u=a+1;if(Array.isArray(i)){if(!Array.isArray(l)||i.length!==l.length)return!1;for(let c=0;cr(i[d],l[d],u))}return!1}return r(e,t)}const{SubMenu:Yle,Item:qle}=Vt;function Zle(e){return e.some(t=>{let{children:n}=t;return n&&n.length>0})}function jT(e,t){return typeof t=="string"||typeof t=="number"?t?.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function VT(e){let{filters:t,prefixCls:n,filteredKeys:o,filterMultiple:r,searchValue:i,filterSearch:l}=e;return t.map((a,s)=>{const u=String(a.value);if(a.children)return p(Yle,{key:u||s,title:a.text,popupClassName:`${n}-dropdown-submenu`},{default:()=>[VT({filters:a.children,prefixCls:n,filteredKeys:o,filterMultiple:r,searchValue:i,filterSearch:l})]});const c=r?To:Fn,d=p(qle,{key:a.value!==void 0?u:s},{default:()=>[p(c,{checked:o.includes(u)},null),p("span",null,[a.text])]});return i.trim()?typeof l=="function"?l(i,a)?d:void 0:jT(i,a.text)?d:void 0:d})}const Qle=oe({name:"FilterDropdown",props:["tablePrefixCls","prefixCls","dropdownPrefixCls","column","filterState","filterMultiple","filterMode","filterSearch","columnKey","triggerFilter","locale","getPopupContainer"],setup(e,t){let{slots:n}=t;const o=e1(),r=P(()=>{var j;return(j=e.filterMode)!==null&&j!==void 0?j:"menu"}),i=P(()=>{var j;return(j=e.filterSearch)!==null&&j!==void 0?j:!1}),l=P(()=>e.column.filterDropdownOpen||e.column.filterDropdownVisible),a=P(()=>e.column.onFilterDropdownOpenChange||e.column.onFilterDropdownVisibleChange),s=ne(!1),u=P(()=>{var j;return!!(e.filterState&&(!((j=e.filterState.filteredKeys)===null||j===void 0)&&j.length||e.filterState.forceFiltered))}),c=P(()=>{var j;return hg((j=e.column)===null||j===void 0?void 0:j.filters)}),d=P(()=>{const{filterDropdown:j,slots:Y={},customFilterDropdown:Q}=e.column;return j||Y.filterDropdown&&o.value[Y.filterDropdown]||Q&&o.value.customFilterDropdown}),f=P(()=>{const{filterIcon:j,slots:Y={}}=e.column;return j||Y.filterIcon&&o.value[Y.filterIcon]||o.value.customFilterIcon}),g=j=>{var Y;s.value=j,(Y=a.value)===null||Y===void 0||Y.call(a,j)},v=P(()=>typeof l.value=="boolean"?l.value:s.value),h=P(()=>{var j;return(j=e.filterState)===null||j===void 0?void 0:j.filteredKeys}),b=ne([]),y=j=>{let{selectedKeys:Y}=j;b.value=Y},S=(j,Y)=>{let{node:Q,checked:U}=Y;e.filterMultiple?y({selectedKeys:j}):y({selectedKeys:U&&Q.key?[Q.key]:[]})};ye(h,()=>{s.value&&y({selectedKeys:h.value||[]})},{immediate:!0});const $=ne([]),x=ne(),C=j=>{x.value=setTimeout(()=>{$.value=j})},O=()=>{clearTimeout(x.value)};Qe(()=>{clearTimeout(x.value)});const w=ne(""),I=j=>{const{value:Y}=j.target;w.value=Y};ye(s,()=>{s.value||(w.value="")});const T=j=>{const{column:Y,columnKey:Q,filterState:U}=e,ee=j&&j.length?j:null;if(ee===null&&(!U||!U.filteredKeys)||R2(ee,U?.filteredKeys,!0))return null;e.triggerFilter({column:Y,key:Q,filteredKeys:ee})},_=()=>{g(!1),T(b.value)},E=function(){let{confirm:j,closeDropdown:Y}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};j&&T([]),Y&&g(!1),w.value="",e.column.filterResetToDefaultFilteredValue?b.value=(e.column.defaultFilteredValue||[]).map(Q=>String(Q)):b.value=[]},A=function(){let{closeDropdown:j}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};j&&g(!1),T(b.value)},R=j=>{j&&h.value!==void 0&&(b.value=h.value||[]),g(j),!j&&!d.value&&_()},{direction:z}=Te("",e),M=j=>{if(j.target.checked){const Y=c.value;b.value=Y}else b.value=[]},N=j=>{let{filters:Y}=j;return(Y||[]).map((Q,U)=>{const ee=String(Q.value),X={title:Q.text,key:Q.value!==void 0?ee:U};return Q.children&&(X.children=N({filters:Q.children})),X})},B=j=>{var Y;return m(m({},j),{text:j.title,value:j.key,children:((Y=j.children)===null||Y===void 0?void 0:Y.map(Q=>B(Q)))||[]})},k=P(()=>N({filters:e.column.filters})),F=P(()=>le({[`${e.dropdownPrefixCls}-menu-without-submenu`]:!Zle(e.column.filters||[])})),L=()=>{const j=b.value,{column:Y,locale:Q,tablePrefixCls:U,filterMultiple:ee,dropdownPrefixCls:X,getPopupContainer:J,prefixCls:Z}=e;return(Y.filters||[]).length===0?p(gi,{image:gi.PRESENTED_IMAGE_SIMPLE,description:Q.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}},null):r.value==="tree"?p(Ve,null,[p(b2,{filterSearch:i.value,value:w.value,onChange:I,tablePrefixCls:U,locale:Q},null),p("div",{class:`${U}-filter-dropdown-tree`},[ee?p(To,{class:`${U}-filter-dropdown-checkall`,onChange:M,checked:j.length===c.value.length,indeterminate:j.length>0&&j.length[Q.filterCheckall]}):null,p(HT,{checkable:!0,selectable:!1,blockNode:!0,multiple:ee,checkStrictly:!ee,class:`${X}-menu`,onCheck:S,checkedKeys:j,selectedKeys:j,showIcon:!1,treeData:k.value,autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:w.value.trim()?G=>typeof i.value=="function"?i.value(w.value,B(G)):jT(w.value,G.title):void 0},null)])]):p(Ve,null,[p(b2,{filterSearch:i.value,value:w.value,onChange:I,tablePrefixCls:U,locale:Q},null),p(Vt,{multiple:ee,prefixCls:`${X}-menu`,class:F.value,onClick:O,onSelect:y,onDeselect:y,selectedKeys:j,getPopupContainer:J,openKeys:$.value,onOpenChange:C},{default:()=>VT({filters:Y.filters||[],filterSearch:i.value,prefixCls:Z,filteredKeys:b.value,filterMultiple:ee,searchValue:w.value})})])},H=P(()=>{const j=b.value;return e.column.filterResetToDefaultFilteredValue?R2((e.column.defaultFilteredValue||[]).map(Y=>String(Y)),j,!0):j.length===0});return()=>{var j;const{tablePrefixCls:Y,prefixCls:Q,column:U,dropdownPrefixCls:ee,locale:X,getPopupContainer:J}=e;let Z;typeof d.value=="function"?Z=d.value({prefixCls:`${ee}-custom`,setSelectedKeys:V=>y({selectedKeys:V}),selectedKeys:b.value,confirm:A,clearFilters:E,filters:U.filters,visible:v.value,column:U.__originColumn__,close:()=>{g(!1)}}):d.value?Z=d.value:Z=p(Ve,null,[L(),p("div",{class:`${Q}-dropdown-btns`},[p(Lt,{type:"link",size:"small",disabled:H.value,onClick:()=>E()},{default:()=>[X.filterReset]}),p(Lt,{type:"primary",size:"small",onClick:_},{default:()=>[X.filterConfirm]})])]);const G=p(ble,{class:`${Q}-dropdown`},{default:()=>[Z]});let q;return typeof f.value=="function"?q=f.value({filtered:u.value,column:U.__originColumn__}):f.value?q=f.value:q=p(i1,null,null),p("div",{class:`${Q}-column`},[p("span",{class:`${Y}-column-title`},[(j=n.default)===null||j===void 0?void 0:j.call(n)]),p(Wo,{overlay:G,trigger:["click"],open:v.value,onOpenChange:R,getPopupContainer:J,placement:z.value==="rtl"?"bottomLeft":"bottomRight"},{default:()=>[p("span",{role:"button",tabindex:-1,class:le(`${Q}-trigger`,{active:u.value}),onClick:V=>{V.stopPropagation()}},[q])]})])}}});function zm(e,t,n){let o=[];return(e||[]).forEach((r,i)=>{var l,a;const s=Kc(i,n),u=r.filterDropdown||((l=r?.slots)===null||l===void 0?void 0:l.filterDropdown)||r.customFilterDropdown;if(r.filters||u||"onFilter"in r)if("filteredValue"in r){let c=r.filteredValue;u||(c=(a=c?.map(String))!==null&&a!==void 0?a:c),o.push({column:r,key:wl(r,s),filteredKeys:c,forceFiltered:r.filtered})}else o.push({column:r,key:wl(r,s),filteredKeys:t&&r.defaultFilteredValue?r.defaultFilteredValue:void 0,forceFiltered:r.filtered});"children"in r&&(o=[...o,...zm(r.children,t,s)])}),o}function WT(e,t,n,o,r,i,l,a){return n.map((s,u)=>{var c;const d=Kc(u,a),{filterMultiple:f=!0,filterMode:g,filterSearch:v}=s;let h=s;const b=s.filterDropdown||((c=s?.slots)===null||c===void 0?void 0:c.filterDropdown)||s.customFilterDropdown;if(h.filters||b){const y=wl(h,d),S=o.find($=>{let{key:x}=$;return y===x});h=m(m({},h),{title:$=>p(Qle,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:h,columnKey:y,filterState:S,filterMultiple:f,filterMode:g,filterSearch:v,triggerFilter:i,locale:r,getPopupContainer:l},{default:()=>[r1(s.title,$)]})})}return"children"in h&&(h=m(m({},h),{children:WT(e,t,h.children,o,r,i,l,d)})),h})}function hg(e){let t=[];return(e||[]).forEach(n=>{let{value:o,children:r}=n;t.push(o),r&&(t=[...t,...hg(r)])}),t}function D2(e){const t={};return e.forEach(n=>{let{key:o,filteredKeys:r,column:i}=n;var l;const a=i.filterDropdown||((l=i?.slots)===null||l===void 0?void 0:l.filterDropdown)||i.customFilterDropdown,{filters:s}=i;if(a)t[o]=r||null;else if(Array.isArray(r)){const u=hg(s);t[o]=u.filter(c=>r.includes(String(c)))}else t[o]=null}),t}function N2(e,t){return t.reduce((n,o)=>{const{column:{onFilter:r,filters:i},filteredKeys:l}=o;return r&&l&&l.length?n.filter(a=>l.some(s=>{const u=hg(i),c=u.findIndex(f=>String(f)===String(s)),d=c!==-1?u[c]:s;return r(d,a)})):n},e)}function KT(e){return e.flatMap(t=>"children"in t?[t,...KT(t.children||[])]:[t])}function Jle(e){let{prefixCls:t,dropdownPrefixCls:n,mergedColumns:o,locale:r,onFilterChange:i,getPopupContainer:l}=e;const a=P(()=>KT(o.value)),[s,u]=ht(zm(a.value,!0)),c=P(()=>{const v=zm(a.value,!1);if(v.length===0)return v;let h=!0,b=!0;if(v.forEach(y=>{let{filteredKeys:S}=y;S!==void 0?h=!1:b=!1}),h){const y=(a.value||[]).map((S,$)=>wl(S,Kc($)));return s.value.filter(S=>{let{key:$}=S;return y.includes($)}).map(S=>{const $=a.value[y.findIndex(x=>x===S.key)];return m(m({},S),{column:m(m({},S.column),$),forceFiltered:$.filtered})})}return Ct(b,"Table","Columns should all contain `filteredValue` or not contain `filteredValue`."),v}),d=P(()=>D2(c.value)),f=v=>{const h=c.value.filter(b=>{let{key:y}=b;return y!==v.key});h.push(v),u(h),i(D2(h),h)};return[v=>WT(t.value,n.value,v,c.value,r.value,f,l.value),c,d]}function GT(e,t){return e.map(n=>{const o=m({},n);return o.title=r1(o.title,t),"children"in o&&(o.children=GT(o.children,t)),o})}function eae(e){return[n=>GT(n,e.value)]}function tae(e){return function(n){let{prefixCls:o,onExpand:r,record:i,expanded:l,expandable:a}=n;const s=`${o}-row-expand-icon`;return p("button",{type:"button",onClick:u=>{r(i,u),u.stopPropagation()},class:le(s,{[`${s}-spaced`]:!a,[`${s}-expanded`]:a&&l,[`${s}-collapsed`]:a&&!l}),"aria-label":l?e.collapse:e.expand,"aria-expanded":l},null)}}function XT(e,t){const n=t.value;return e.map(o=>{var r;if(o===Ir||o===di)return o;const i=m({},o),{slots:l={}}=i;return i.__originColumn__=o,Ct(!("slots"in i),"Table","`column.slots` is deprecated. Please use `v-slot:headerCell` `v-slot:bodyCell` instead."),Object.keys(l).forEach(a=>{const s=l[a];i[a]===void 0&&n[s]&&(i[a]=n[s])}),t.value.headerCell&&!(!((r=o.slots)===null||r===void 0)&&r.title)&&(i.title=vp(t.value,"headerCell",{title:o.title,column:o},()=>[o.title])),"children"in i&&Array.isArray(i.children)&&(i.children=XT(i.children,t)),i})}function nae(e){return[n=>XT(n,e)]}const oae=e=>{const{componentCls:t}=e,n=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,o=(r,i,l)=>({[`&${t}-${r}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${i}px -${l+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:m(m(m({[`> ${t}-title`]:{border:n,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:n,[` > ${t}-content, > ${t}-header, > ${t}-body, @@ -402,7 +402,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `]:{"> td":{borderInlineEnd:0}}}}}},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:n,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}}}}},rae=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:m(m({},Gt),{wordBreak:"keep-all",[` &${t}-cell-fix-left-last, &${t}-cell-fix-right-first - `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},iae=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"&:hover > td":{background:e.colorBgContainer}}}}},lae=e=>{const{componentCls:t,antCls:n,controlInteractiveSize:o,motionDurationSlow:r,lineWidth:i,paddingXS:l,lineType:a,tableBorderColor:s,tableExpandIconBg:u,tableExpandColumnWidth:c,borderRadius:d,fontSize:f,fontSizeSM:g,lineHeight:v,tablePaddingVertical:h,tablePaddingHorizontal:b,tableExpandedRowBg:y,paddingXXS:S}=e,$=o/2-i,x=$*2+i*3,C=`${i}px ${a} ${s}`,O=S-i;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:m(m({},pp(e)),{position:"relative",float:"left",boxSizing:"border-box",width:x,height:x,padding:0,color:"inherit",lineHeight:`${x}px`,background:u,border:C,borderRadius:d,transform:`scale(${o/x})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:$,insetInlineEnd:O,insetInlineStart:O,height:i},"&::after":{top:O,bottom:O,insetInlineStart:$,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:(f*v-i*3)/2-Math.ceil((g*1.4-i*3)/2),marginInlineEnd:l},[`tr${t}-expanded-row`]:{"&, &:hover":{"> td":{background:y}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${h}px -${b}px`,padding:`${h}px ${b}px`}}}},aae=e=>{const{componentCls:t,antCls:n,iconCls:o,tableFilterDropdownWidth:r,tableFilterDropdownSearchWidth:i,paddingXXS:l,paddingXS:a,colorText:s,lineWidth:u,lineType:c,tableBorderColor:d,tableHeaderIconColor:f,fontSizeSM:g,tablePaddingHorizontal:v,borderRadius:h,motionDurationSlow:b,colorTextDescription:y,colorPrimary:S,tableHeaderFilterActiveBg:$,colorTextDisabled:x,tableFilterDropdownBg:C,tableFilterDropdownHeight:O,controlItemBgHover:w,controlItemBgActive:I,boxShadowSecondary:T}=e,M=`${n}-dropdown`,E=`${t}-filter-dropdown`,A=`${n}-tree`,R=`${u}px ${c} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-l,marginInline:`${l}px ${-v/2}px`,padding:`0 ${l}px`,color:f,fontSize:g,borderRadius:h,cursor:"pointer",transition:`all ${b}`,"&:hover":{color:y,background:$},"&.active":{color:S}}}},{[`${n}-dropdown`]:{[E]:m(m({},Ue(e)),{minWidth:r,backgroundColor:C,borderRadius:h,boxShadow:T,[`${M}-menu`]:{maxHeight:O,overflowX:"hidden",border:0,boxShadow:"none","&:empty::after":{display:"block",padding:`${a}px 0`,color:x,fontSize:g,textAlign:"center",content:'"Not Found"'}},[`${E}-tree`]:{paddingBlock:`${a}px 0`,paddingInline:a,[A]:{padding:0},[`${A}-treenode ${A}-node-content-wrapper:hover`]:{backgroundColor:w},[`${A}-treenode-checkbox-checked ${A}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:I}}},[`${E}-search`]:{padding:a,borderBottom:R,"&-input":{input:{minWidth:i},[o]:{color:x}}},[`${E}-checkall`]:{width:"100%",marginBottom:l,marginInlineStart:l},[`${E}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${a-u}px ${a}px`,overflow:"hidden",backgroundColor:"inherit",borderTop:R}})}},{[`${n}-dropdown ${E}, ${E}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:a,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},sae=e=>{const{componentCls:t,lineWidth:n,colorSplit:o,motionDurationSlow:r,zIndexTableFixed:i,tableBg:l,zIndexTableSticky:a}=e,s=o;return{[`${t}-wrapper`]:{[` + `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},iae=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"&:hover > td":{background:e.colorBgContainer}}}}},lae=e=>{const{componentCls:t,antCls:n,controlInteractiveSize:o,motionDurationSlow:r,lineWidth:i,paddingXS:l,lineType:a,tableBorderColor:s,tableExpandIconBg:u,tableExpandColumnWidth:c,borderRadius:d,fontSize:f,fontSizeSM:g,lineHeight:v,tablePaddingVertical:h,tablePaddingHorizontal:b,tableExpandedRowBg:y,paddingXXS:S}=e,$=o/2-i,x=$*2+i*3,C=`${i}px ${a} ${s}`,O=S-i;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:m(m({},pp(e)),{position:"relative",float:"left",boxSizing:"border-box",width:x,height:x,padding:0,color:"inherit",lineHeight:`${x}px`,background:u,border:C,borderRadius:d,transform:`scale(${o/x})`,transition:`all ${r}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:$,insetInlineEnd:O,insetInlineStart:O,height:i},"&::after":{top:O,bottom:O,insetInlineStart:$,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:(f*v-i*3)/2-Math.ceil((g*1.4-i*3)/2),marginInlineEnd:l},[`tr${t}-expanded-row`]:{"&, &:hover":{"> td":{background:y}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${h}px -${b}px`,padding:`${h}px ${b}px`}}}},aae=e=>{const{componentCls:t,antCls:n,iconCls:o,tableFilterDropdownWidth:r,tableFilterDropdownSearchWidth:i,paddingXXS:l,paddingXS:a,colorText:s,lineWidth:u,lineType:c,tableBorderColor:d,tableHeaderIconColor:f,fontSizeSM:g,tablePaddingHorizontal:v,borderRadius:h,motionDurationSlow:b,colorTextDescription:y,colorPrimary:S,tableHeaderFilterActiveBg:$,colorTextDisabled:x,tableFilterDropdownBg:C,tableFilterDropdownHeight:O,controlItemBgHover:w,controlItemBgActive:I,boxShadowSecondary:T}=e,_=`${n}-dropdown`,E=`${t}-filter-dropdown`,A=`${n}-tree`,R=`${u}px ${c} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-l,marginInline:`${l}px ${-v/2}px`,padding:`0 ${l}px`,color:f,fontSize:g,borderRadius:h,cursor:"pointer",transition:`all ${b}`,"&:hover":{color:y,background:$},"&.active":{color:S}}}},{[`${n}-dropdown`]:{[E]:m(m({},Ue(e)),{minWidth:r,backgroundColor:C,borderRadius:h,boxShadow:T,[`${_}-menu`]:{maxHeight:O,overflowX:"hidden",border:0,boxShadow:"none","&:empty::after":{display:"block",padding:`${a}px 0`,color:x,fontSize:g,textAlign:"center",content:'"Not Found"'}},[`${E}-tree`]:{paddingBlock:`${a}px 0`,paddingInline:a,[A]:{padding:0},[`${A}-treenode ${A}-node-content-wrapper:hover`]:{backgroundColor:w},[`${A}-treenode-checkbox-checked ${A}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:I}}},[`${E}-search`]:{padding:a,borderBottom:R,"&-input":{input:{minWidth:i},[o]:{color:x}}},[`${E}-checkall`]:{width:"100%",marginBottom:l,marginInlineStart:l},[`${E}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${a-u}px ${a}px`,overflow:"hidden",backgroundColor:"inherit",borderTop:R}})}},{[`${n}-dropdown ${E}, ${E}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:a,color:s},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},sae=e=>{const{componentCls:t,lineWidth:n,colorSplit:o,motionDurationSlow:r,zIndexTableFixed:i,tableBg:l,zIndexTableSticky:a}=e,s=o;return{[`${t}-wrapper`]:{[` ${t}-cell-fix-left, ${t}-cell-fix-right `]:{position:"sticky !important",zIndex:i,background:l},[` @@ -442,7 +442,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `]:{[t]:{marginBlock:`-${o}px`,marginInline:`${e.tableExpandColumnWidth-r}px -${r}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},[` &${t}-row:hover > td, > td${t}-cell-row-hover - `]:{background:h},[`&${t}-row-selected`]:{"> td":{background:b},"&:hover > td":{background:y}}}},[`${t}-footer`]:{padding:`${o}px ${r}px`,color:S,background:$}})}},bae=Ke("Table",e=>{const{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:o,colorTextHeading:r,colorSplit:i,colorBorderSecondary:l,fontSize:a,padding:s,paddingXS:u,paddingSM:c,controlHeight:d,colorFillAlter:f,colorIcon:g,colorIconHover:v,opacityLoading:h,colorBgContainer:b,borderRadiusLG:y,colorFillContent:S,colorFillSecondary:$,controlInteractiveSize:x}=e,C=new pt(g),O=new pt(v),w=t,I=2,T=new pt($).onBackground(b).toHexString(),M=new pt(S).onBackground(b).toHexString(),E=new pt(f).onBackground(b).toHexString(),A=ke(e,{tableFontSize:a,tableBg:b,tableRadius:y,tablePaddingVertical:s,tablePaddingHorizontal:s,tablePaddingVerticalMiddle:c,tablePaddingHorizontalMiddle:u,tablePaddingVerticalSmall:u,tablePaddingHorizontalSmall:u,tableBorderColor:l,tableHeaderTextColor:r,tableHeaderBg:E,tableFooterTextColor:r,tableFooterBg:E,tableHeaderCellSplitColor:l,tableHeaderSortBg:T,tableHeaderSortHoverBg:M,tableHeaderIconColor:C.clone().setAlpha(C.getAlpha()*h).toRgbString(),tableHeaderIconColorHover:O.clone().setAlpha(O.getAlpha()*h).toRgbString(),tableBodySortBg:E,tableFixedHeaderSortActiveBg:T,tableHeaderFilterActiveBg:S,tableFilterDropdownBg:b,tableRowHoverBg:E,tableSelectedRowBg:w,tableSelectedRowHoverBg:n,zIndexTableFixed:I,zIndexTableSticky:I+1,tableFontSizeMiddle:a,tableFontSizeSmall:a,tableSelectionColumnWidth:d,tableExpandIconBg:b,tableExpandColumnWidth:x+2*e.padding,tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollBg:i});return[mae(A),cae(A),B2(A),hae(A),aae(A),oae(A),uae(A),lae(A),B2(A),iae(A),fae(A),sae(A),vae(A),rae(A),pae(A),gae(A),dae(A)]}),yae=[],UT=()=>({prefixCls:Ne(),columns:lt(),rowKey:Fe([String,Function]),tableLayout:Ne(),rowClassName:Fe([String,Function]),title:ve(),footer:ve(),id:Ne(),showHeader:$e(),components:De(),customRow:ve(),customHeaderRow:ve(),direction:Ne(),expandFixed:Fe([Boolean,String]),expandColumnWidth:Number,expandedRowKeys:lt(),defaultExpandedRowKeys:lt(),expandedRowRender:ve(),expandRowByClick:$e(),expandIcon:ve(),onExpand:ve(),onExpandedRowsChange:ve(),"onUpdate:expandedRowKeys":ve(),defaultExpandAllRows:$e(),indentSize:Number,expandIconColumnIndex:Number,showExpandColumn:$e(),expandedRowClassName:ve(),childrenColumnName:Ne(),rowExpandable:ve(),sticky:Fe([Boolean,Object]),dropdownPrefixCls:String,dataSource:lt(),pagination:Fe([Boolean,Object]),loading:Fe([Boolean,Object]),size:Ne(),bordered:$e(),locale:De(),onChange:ve(),onResizeColumn:ve(),rowSelection:De(),getPopupContainer:ve(),scroll:De(),sortDirections:lt(),showSorterTooltip:Fe([Boolean,Object],!0),transformCellText:ve()}),Sae=oe({name:"InternalTable",inheritAttrs:!1,props:Ze(m(m({},UT()),{contextSlots:De()}),{rowKey:"key"}),setup(e,t){let{attrs:n,slots:o,expose:r,emit:i}=t;Ct(!(typeof e.rowKey=="function"&&e.rowKey.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."),pie(P(()=>e.contextSlots)),gie({onResizeColumn:(ie,ae)=>{i("resizeColumn",ie,ae)}});const l=Ua(),a=P(()=>{const ie=new Set(Object.keys(l.value).filter(ae=>l.value[ae]));return e.columns.filter(ae=>!ae.responsive||ae.responsive.some(ce=>ie.has(ce)))}),{size:s,renderEmpty:u,direction:c,prefixCls:d,configProvider:f}=Te("table",e),[g,v]=bae(d),h=P(()=>{var ie;return e.transformCellText||((ie=f.transformCellText)===null||ie===void 0?void 0:ie.value)}),[b]=Do("Table",Vn.Table,ze(e,"locale")),y=P(()=>e.dataSource||yae),S=P(()=>f.getPrefixCls("dropdown",e.dropdownPrefixCls)),$=P(()=>e.childrenColumnName||"children"),x=P(()=>y.value.some(ie=>ie?.[$.value])?"nest":e.expandedRowRender?"row":null),C=ct({body:null}),O=ie=>{m(C,ie)},w=P(()=>typeof e.rowKey=="function"?e.rowKey:ie=>ie?.[e.rowKey]),[I]=ile(y,$,w),T={},M=function(ie,ae){let ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{pagination:se,scroll:pe,onChange:ge}=e,he=m(m({},T),ie);ce&&(T.resetPagination(),he.pagination.current&&(he.pagination.current=1),se&&se.onChange&&se.onChange(1,he.pagination.pageSize)),pe&&pe.scrollToFirstRowOnChange!==!1&&C.body&&A0(0,{getContainer:()=>C.body}),ge?.(he.pagination,he.filters,he.sorter,{currentDataSource:N2(Fm(y.value,he.sorterStates,$.value),he.filterStates),action:ae})},E=(ie,ae)=>{M({sorter:ie,sorterStates:ae},"sort",!1)},[A,R,z,_]=gle({prefixCls:d,mergedColumns:a,onSorterChange:E,sortDirections:P(()=>e.sortDirections||["ascend","descend"]),tableLocale:b,showSorterTooltip:ze(e,"showSorterTooltip")}),N=P(()=>Fm(y.value,R.value,$.value)),B=(ie,ae)=>{M({filters:ie,filterStates:ae},"filter",!0)},[k,F,L]=Jle({prefixCls:d,locale:b,dropdownPrefixCls:S,mergedColumns:a,onFilterChange:B,getPopupContainer:ze(e,"getPopupContainer")}),H=P(()=>N2(N.value,F.value)),[j]=nae(ze(e,"contextSlots")),Y=P(()=>{const ie={},ae=L.value;return Object.keys(ae).forEach(ce=>{ae[ce]!==null&&(ie[ce]=ae[ce])}),m(m({},z.value),{filters:ie})}),[Q]=eae(Y),U=(ie,ae)=>{M({pagination:m(m({},T.pagination),{current:ie,pageSize:ae})},"paginate")},[ee,X]=rle(P(()=>H.value.length),ze(e,"pagination"),U);Le(()=>{T.sorter=_.value,T.sorterStates=R.value,T.filters=L.value,T.filterStates=F.value,T.pagination=e.pagination===!1?{}:ole(ee.value,e.pagination),T.resetPagination=X});const J=P(()=>{if(e.pagination===!1||!ee.value.pageSize)return H.value;const{current:ie=1,total:ae,pageSize:ce=Rm}=ee.value;return Ct(ie>0,"Table","`current` should be positive number."),H.value.lengthce?H.value.slice((ie-1)*ce,ie*ce):H.value:H.value.slice((ie-1)*ce,ie*ce)});Le(()=>{ot(()=>{const{total:ie,pageSize:ae=Rm}=ee.value;H.value.lengthae&&Ct(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.")})},{flush:"post"});const Z=P(()=>e.showExpandColumn===!1?-1:x.value==="nest"&&e.expandIconColumnIndex===void 0?e.rowSelection?1:0:e.expandIconColumnIndex>0&&e.rowSelection?e.expandIconColumnIndex-1:e.expandIconColumnIndex),G=re();ye(()=>e.rowSelection,()=>{G.value=e.rowSelection?m({},e.rowSelection):e.rowSelection},{deep:!0,immediate:!0});const[q,V]=ale(G,{prefixCls:d,data:H,pageData:J,getRowKey:w,getRecordByKey:I,expandType:x,childrenColumnName:$,locale:b,getPopupContainer:P(()=>e.getPopupContainer)}),K=(ie,ae,ce)=>{let se;const{rowClassName:pe}=e;return typeof pe=="function"?se=le(pe(ie,ae,ce)):se=le(pe),le({[`${d.value}-row-selected`]:V.value.has(w.value(ie,ae))},se)};r({selectedKeySet:V});const te=P(()=>typeof e.indentSize=="number"?e.indentSize:15),ue=ie=>Q(q(k(A(j(ie)))));return()=>{var ie;const{expandIcon:ae=o.expandIcon||tae(b.value),pagination:ce,loading:se,bordered:pe}=e;let ge,he;if(ce!==!1&&(!((ie=ee.value)===null||ie===void 0)&&ie.total)){let de;ee.value.size?de=ee.value.size:de=s.value==="small"||s.value==="middle"?"small":void 0;const be=Ae=>p(cg,D(D({},ee.value),{},{class:[`${d.value}-pagination ${d.value}-pagination-${Ae}`,ee.value.class],size:de}),null),we=c.value==="rtl"?"left":"right",{position:Ie}=ee.value;if(Ie!==null&&Array.isArray(Ie)){const Ae=Ie.find(Oe=>Oe.includes("top")),Se=Ie.find(Oe=>Oe.includes("bottom")),Ce=Ie.every(Oe=>`${Oe}`=="none");!Ae&&!Se&&!Ce&&(he=be(we)),Ae&&(ge=be(Ae.toLowerCase().replace("top",""))),Se&&(he=be(Se.toLowerCase().replace("bottom","")))}else he=be(we)}let me;typeof se=="boolean"?me={spinning:se}:typeof se=="object"&&(me=m({spinning:!0},se));const xe=le(`${d.value}-wrapper`,{[`${d.value}-wrapper-rtl`]:c.value==="rtl"},n.class,v.value),fe=tt(e,["columns"]);return g(p("div",{class:xe,style:n.style},[p(gr,D({spinning:!1},me),{default:()=>[ge,p(tle,D(D(D({},n),fe),{},{expandedRowKeys:e.expandedRowKeys,defaultExpandedRowKeys:e.defaultExpandedRowKeys,expandIconColumnIndex:Z.value,indentSize:te.value,expandIcon:ae,columns:a.value,direction:c.value,prefixCls:d.value,class:le({[`${d.value}-middle`]:s.value==="middle",[`${d.value}-small`]:s.value==="small",[`${d.value}-bordered`]:pe,[`${d.value}-empty`]:y.value.length===0}),data:J.value,rowKey:w.value,rowClassName:K,internalHooks:Am,internalRefs:C,onUpdateInternalRefs:O,transformColumns:ue,transformCellText:h.value}),m(m({},o),{emptyText:()=>{var de,be;return((de=o.emptyText)===null||de===void 0?void 0:de.call(o))||((be=e.locale)===null||be===void 0?void 0:be.emptyText)||u("Table")}})),he]})]))}}}),Kh=oe({name:"ATable",inheritAttrs:!1,props:Ze(UT(),{rowKey:"key"}),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r}=t;const i=re();return r({table:i}),()=>{var l;const a=e.columns||DT((l=o.default)===null||l===void 0?void 0:l.call(o));return p(Sae,D(D(D({ref:i},n),e),{},{columns:a||[],expandedRowRender:o.expandedRowRender||e.expandedRowRender,contextSlots:m({},o)}),o)}}}),xd=oe({name:"ATableColumn",slots:Object,render(){return null}}),wd=oe({name:"ATableColumnGroup",slots:Object,__ANT_TABLE_COLUMN_GROUP:!0,render(){return null}}),kf=Vie,Ff=Gie,Od=m(Xie,{Cell:Ff,Row:kf,name:"ATableSummary"}),$ae=m(Kh,{SELECTION_ALL:Dm,SELECTION_INVERT:Nm,SELECTION_NONE:Bm,SELECTION_COLUMN:Ir,EXPAND_COLUMN:di,Column:xd,ColumnGroup:wd,Summary:Od,install:e=>(e.component(Od.name,Od),e.component(Ff.name,Ff),e.component(kf.name,kf),e.component(Kh.name,Kh),e.component(xd.name,xd),e.component(wd.name,wd),e)}),Cae={prefixCls:String,placeholder:String,value:String,handleClear:Function,disabled:{type:Boolean,default:void 0},onChange:Function},xae=oe({compatConfig:{MODE:3},name:"Search",inheritAttrs:!1,props:Ze(Cae,{placeholder:""}),emits:["change"],setup(e,t){let{emit:n}=t;const o=r=>{var i;n("change",r),r.target.value===""&&((i=e.handleClear)===null||i===void 0||i.call(e))};return()=>{const{placeholder:r,value:i,prefixCls:l,disabled:a}=e;return p(tn,{placeholder:r,class:l,value:i,onChange:o,disabled:a,allowClear:!0},{prefix:()=>p(Va,null,null)})}}});var wae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};function k2(e){for(var t=1;t{const{renderedText:o,renderedEl:r,item:i,checked:l,disabled:a,prefixCls:s,showRemove:u}=e,c=le({[`${s}-content-item`]:!0,[`${s}-content-item-disabled`]:a||i.disabled});let d;return(typeof o=="string"||typeof o=="number")&&(d=String(o)),p(Il,{componentName:"Transfer",defaultLocale:Vn.Transfer},{default:f=>{const g=p("span",{class:`${s}-content-item-text`},[r]);return u?p("li",{class:c,title:d},[g,p(Df,{disabled:a||i.disabled,class:`${s}-content-item-remove`,"aria-label":f.remove,onClick:()=>{n("remove",i)}},{default:()=>[p(vg,null,null)]})]):p("li",{class:c,title:d,onClick:a||i.disabled?Pae:()=>{n("click",i)}},[p(To,{class:`${s}-checkbox`,checked:l,disabled:a||i.disabled},null),g])}})}}}),Eae={prefixCls:String,filteredRenderItems:W.array.def([]),selectedKeys:W.array,disabled:$e(),showRemove:$e(),pagination:W.any,onItemSelect:Function,onScroll:Function,onItemRemove:Function};function Mae(e){if(!e)return null;const t={pageSize:10,simple:!0,showSizeChanger:!1,showLessItems:!1};return typeof e=="object"?m(m({},t),e):t}const _ae=oe({compatConfig:{MODE:3},name:"ListBody",inheritAttrs:!1,props:Eae,emits:["itemSelect","itemRemove","scroll"],setup(e,t){let{emit:n,expose:o}=t;const r=re(1),i=d=>{const{selectedKeys:f}=e,g=f.indexOf(d.key)>=0;n("itemSelect",d.key,!g)},l=d=>{n("itemRemove",[d.key])},a=d=>{n("scroll",d)},s=P(()=>Mae(e.pagination));ye([s,()=>e.filteredRenderItems],()=>{if(s.value){const d=Math.ceil(e.filteredRenderItems.length/s.value.pageSize);r.value=Math.min(r.value,d)}},{immediate:!0});const u=P(()=>{const{filteredRenderItems:d}=e;let f=d;return s.value&&(f=d.slice((r.value-1)*s.value.pageSize,r.value*s.value.pageSize)),f}),c=d=>{r.value=d};return o({items:u}),()=>{const{prefixCls:d,filteredRenderItems:f,selectedKeys:g,disabled:v,showRemove:h}=e;let b=null;s.value&&(b=p(cg,{simple:s.value.simple,showSizeChanger:s.value.showSizeChanger,showLessItems:s.value.showLessItems,size:"small",disabled:v,class:`${d}-pagination`,total:f.length,pageSize:s.value.pageSize,current:r.value,onChange:c},null));const y=u.value.map(S=>{let{renderedEl:$,renderedText:x,item:C}=S;const{disabled:O}=C,w=g.indexOf(C.key)>=0;return p(Tae,{disabled:v||O,key:C.key,item:C,renderedText:x,renderedEl:$,checked:w,prefixCls:d,onClick:i,onRemove:l,showRemove:h},null)});return p(Ve,null,[p("ul",{class:le(`${d}-content`,{[`${d}-content-show-remove`]:h}),onScroll:a},[y]),b])}}}),Hm=e=>{const t=new Map;return e.forEach((n,o)=>{t.set(n,o)}),t},Aae=e=>{const t=new Map;return e.forEach((n,o)=>{let{disabled:r,key:i}=n;r&&t.set(i,o)}),t},Rae=()=>null;function Dae(e){return!!(e&&!Kt(e)&&Object.prototype.toString.call(e)==="[object Object]")}function Tu(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const Nae={prefixCls:String,dataSource:lt([]),filter:String,filterOption:Function,checkedKeys:W.arrayOf(W.string),handleFilter:Function,handleClear:Function,renderItem:Function,showSearch:$e(!1),searchPlaceholder:String,notFoundContent:W.any,itemUnit:String,itemsUnit:String,renderList:W.any,disabled:$e(),direction:Ne(),showSelectAll:$e(),remove:String,selectAll:String,selectCurrent:String,selectInvert:String,removeAll:String,removeCurrent:String,selectAllLabel:W.any,showRemove:$e(),pagination:W.any,onItemSelect:Function,onItemSelectAll:Function,onItemRemove:Function,onScroll:Function},F2=oe({compatConfig:{MODE:3},name:"TransferList",inheritAttrs:!1,props:Nae,slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const r=re(""),i=re(),l=re(),a=(C,O)=>{let w=C?C(O):null;const I=!!w&&_t(w).length>0;return I||(w=p(_ae,D(D({},O),{},{ref:l}),null)),{customize:I,bodyContent:w}},s=C=>{const{renderItem:O=Rae}=e,w=O(C),I=Dae(w);return{renderedText:I?w.value:w,renderedEl:I?w.label:w,item:C}},u=re([]),c=re([]);Le(()=>{const C=[],O=[];e.dataSource.forEach(w=>{const I=s(w),{renderedText:T}=I;if(r.value&&r.value.trim()&&!y(T,w))return null;C.push(w),O.push(I)}),u.value=C,c.value=O});const d=P(()=>{const{checkedKeys:C}=e;if(C.length===0)return"none";const O=Hm(C);return u.value.every(w=>O.has(w.key)||!!w.disabled)?"all":"part"}),f=P(()=>Tu(u.value)),g=(C,O)=>Array.from(new Set([...C,...e.checkedKeys])).filter(w=>O.indexOf(w)===-1),v=C=>{let{disabled:O,prefixCls:w}=C;var I;const T=d.value==="all";return p(To,{disabled:((I=e.dataSource)===null||I===void 0?void 0:I.length)===0||O,checked:T,indeterminate:d.value==="part",class:`${w}-checkbox`,onChange:()=>{const E=f.value;e.onItemSelectAll(g(T?[]:E,T?e.checkedKeys:[]))}},null)},h=C=>{var O;const{target:{value:w}}=C;r.value=w,(O=e.handleFilter)===null||O===void 0||O.call(e,C)},b=C=>{var O;r.value="",(O=e.handleClear)===null||O===void 0||O.call(e,C)},y=(C,O)=>{const{filterOption:w}=e;return w?w(r.value,O):C.includes(r.value)},S=(C,O)=>{const{itemsUnit:w,itemUnit:I,selectAllLabel:T}=e;if(T)return typeof T=="function"?T({selectedCount:C,totalCount:O}):T;const M=O>1?w:I;return p(Ve,null,[(C>0?`${C}/`:"")+O,Ft(" "),M])},$=P(()=>Array.isArray(e.notFoundContent)?e.notFoundContent[e.direction==="left"?0:1]:e.notFoundContent),x=(C,O,w,I,T,M)=>{const E=T?p("div",{class:`${C}-body-search-wrapper`},[p(xae,{prefixCls:`${C}-search`,onChange:h,handleClear:b,placeholder:O,value:r.value,disabled:M},null)]):null;let A;const{onEvents:R}=y0(n),{bodyContent:z,customize:_}=a(I,m(m(m({},e),{filteredItems:u.value,filteredRenderItems:c.value,selectedKeys:w}),R));return _?A=p("div",{class:`${C}-body-customize-wrapper`},[z]):A=u.value.length?z:p("div",{class:`${C}-body-not-found`},[$.value]),p("div",{class:T?`${C}-body ${C}-body-with-search`:`${C}-body`,ref:i},[E,A])};return()=>{var C,O;const{prefixCls:w,checkedKeys:I,disabled:T,showSearch:M,searchPlaceholder:E,selectAll:A,selectCurrent:R,selectInvert:z,removeAll:_,removeCurrent:N,renderList:B,onItemSelectAll:k,onItemRemove:F,showSelectAll:L=!0,showRemove:H,pagination:j}=e,Y=(C=o.footer)===null||C===void 0?void 0:C.call(o,m({},e)),Q=le(w,{[`${w}-with-pagination`]:!!j,[`${w}-with-footer`]:!!Y}),U=x(w,E,I,B,M,T),ee=Y?p("div",{class:`${w}-footer`},[Y]):null,X=!H&&!j&&v({disabled:T,prefixCls:w});let J=null;H?J=p(Vt,null,{default:()=>[j&&p(Vt.Item,{key:"removeCurrent",onClick:()=>{const G=Tu((l.value.items||[]).map(q=>q.item));F?.(G)}},{default:()=>[N]}),p(Vt.Item,{key:"removeAll",onClick:()=>{F?.(f.value)}},{default:()=>[_]})]}):J=p(Vt,null,{default:()=>[p(Vt.Item,{key:"selectAll",onClick:()=>{const G=f.value;k(g(G,[]))}},{default:()=>[A]}),j&&p(Vt.Item,{onClick:()=>{const G=Tu((l.value.items||[]).map(q=>q.item));k(g(G,[]))}},{default:()=>[R]}),p(Vt.Item,{key:"selectInvert",onClick:()=>{let G;j?G=Tu((l.value.items||[]).map(te=>te.item)):G=f.value;const q=new Set(I),V=[],K=[];G.forEach(te=>{q.has(te)?K.push(te):V.push(te)}),k(g(V,K))}},{default:()=>[z]})]});const Z=p(Wo,{class:`${w}-header-dropdown`,overlay:J,disabled:T},{default:()=>[p(Dl,null,null)]});return p("div",{class:Q,style:n.style},[p("div",{class:`${w}-header`},[L?p(Ve,null,[X,Z]):null,p("span",{class:`${w}-header-selected`},[p("span",null,[S(I.length,u.value.length)]),p("span",{class:`${w}-header-title`},[(O=o.titleText)===null||O===void 0?void 0:O.call(o)])])]),U,ee])}}});function L2(){}const f1=e=>{const{disabled:t,moveToLeft:n=L2,moveToRight:o=L2,leftArrowText:r="",rightArrowText:i="",leftActive:l,rightActive:a,class:s,style:u,direction:c,oneWay:d}=e;return p("div",{class:s,style:u},[p(Lt,{type:"primary",size:"small",disabled:t||!a,onClick:o,icon:p(c!=="rtl"?ho:mr,null,null)},{default:()=>[i]}),!d&&p(Lt,{type:"primary",size:"small",disabled:t||!l,onClick:n,icon:p(c!=="rtl"?mr:ho,null,null)},{default:()=>[r]})])};f1.displayName="Operation";f1.inheritAttrs=!1;const Bae=e=>{const{antCls:t,componentCls:n,listHeight:o,controlHeightLG:r,marginXXS:i,margin:l}=e,a=`${t}-table`,s=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:o},[`${a}-wrapper`]:{[`${a}-small`]:{border:0,borderRadius:0,[`${a}-selection-column`]:{width:r,minWidth:r}},[`${a}-pagination${a}-pagination`]:{margin:`${l}px 0 ${i}px`}},[`${s}[disabled]`]:{backgroundColor:"transparent"}}}},z2=(e,t)=>{const{componentCls:n,colorBorder:o}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:o}}}},kae=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:m({},z2(e,e.colorError)),[`${t}-status-warning`]:m({},z2(e,e.colorWarning))}},Fae=e=>{const{componentCls:t,colorBorder:n,colorSplit:o,lineWidth:r,transferItemHeight:i,transferHeaderHeight:l,transferHeaderVerticalPadding:a,transferItemPaddingVertical:s,controlItemBgActive:u,controlItemBgActiveHover:c,colorTextDisabled:d,listHeight:f,listWidth:g,listWidthLG:v,fontSizeIcon:h,marginXS:b,paddingSM:y,lineType:S,iconCls:$,motionDurationSlow:x}=e;return{display:"flex",flexDirection:"column",width:g,height:f,border:`${r}px ${S} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:v,height:"auto"},"&-search":{[`${$}-search`]:{color:d}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:l,padding:`${a-r}px ${y}px ${a}px`,color:e.colorText,background:e.colorBgContainer,borderBottom:`${r}px ${S} ${o}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":m(m({},Gt),{flex:"auto",textAlign:"end"}),"&-dropdown":m(m({},Tl()),{fontSize:h,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",overflow:"hidden",fontSize:e.fontSize,"&-search-wrapper":{position:"relative",flex:"none",padding:y}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:i,padding:`${s}px ${y}px`,transition:`all ${x}`,"> *:not(:last-child)":{marginInlineEnd:b},"> *":{flex:"none"},"&-text":m(m({},Gt),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${x}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:"absolute",insert:`-${s}px -50%`,content:'""'}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:e.controlItemBgHover,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:c}},"&-checked":{backgroundColor:u},"&-disabled":{color:d,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:`${e.paddingXS}px 0`,textAlign:"end",borderTop:`${r}px ${S} ${o}`},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:d,textAlign:"center"},"&-footer":{borderTop:`${r}px ${S} ${o}`},"&-checkbox":{lineHeight:1}}},Lae=e=>{const{antCls:t,iconCls:n,componentCls:o,transferHeaderHeight:r,marginXS:i,marginXXS:l,fontSizeIcon:a,fontSize:s,lineHeight:u}=e;return{[o]:m(m({},Ue(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${o}-disabled`]:{[`${o}-list`]:{background:e.colorBgContainerDisabled}},[`${o}-list`]:Fae(e),[`${o}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${i}px`,verticalAlign:"middle",[`${t}-btn`]:{display:"block","&:first-child":{marginBottom:l},[n]:{fontSize:a}}},[`${t}-empty-image`]:{maxHeight:r/2-Math.round(s*u)}})}},zae=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Hae=Ke("Transfer",e=>{const{fontSize:t,lineHeight:n,lineWidth:o,controlHeightLG:r,controlHeight:i}=e,l=Math.round(t*n),a=r,s=i,u=ke(e,{transferItemHeight:s,transferHeaderHeight:a,transferHeaderVerticalPadding:Math.ceil((a-o-l)/2),transferItemPaddingVertical:(s-l)/2});return[Lae(u),Bae(u),kae(u),zae(u)]},{listWidth:180,listHeight:200,listWidthLG:250}),jae=()=>({id:String,prefixCls:String,dataSource:lt([]),disabled:$e(),targetKeys:lt(),selectedKeys:lt(),render:ve(),listStyle:Fe([Function,Object],()=>({})),operationStyle:De(void 0),titles:lt(),operations:lt(),showSearch:$e(!1),filterOption:ve(),searchPlaceholder:String,notFoundContent:W.any,locale:De(),rowKey:ve(),showSelectAll:$e(),selectAllLabels:lt(),children:ve(),oneWay:$e(),pagination:Fe([Object,Boolean]),status:Ne(),onChange:ve(),onSelectChange:ve(),onSearch:ve(),onScroll:ve(),"onUpdate:targetKeys":ve(),"onUpdate:selectedKeys":ve()}),Vae=oe({compatConfig:{MODE:3},name:"ATransfer",inheritAttrs:!1,props:jae(),slots:Object,setup(e,t){let{emit:n,attrs:o,slots:r,expose:i}=t;const{configProvider:l,prefixCls:a,direction:s}=Te("transfer",e),[u,c]=Hae(a),d=re([]),f=re([]),g=Qt(),v=dn.useInject(),h=P(()=>Qo(v.status,e.status));ye(()=>e.selectedKeys,()=>{var U,ee;d.value=((U=e.selectedKeys)===null||U===void 0?void 0:U.filter(X=>e.targetKeys.indexOf(X)===-1))||[],f.value=((ee=e.selectedKeys)===null||ee===void 0?void 0:ee.filter(X=>e.targetKeys.indexOf(X)>-1))||[]},{immediate:!0});const b=(U,ee)=>{const X={notFoundContent:ee("Transfer")},J=Zt(r,e,"notFoundContent");return J&&(X.notFoundContent=J),e.searchPlaceholder!==void 0&&(X.searchPlaceholder=e.searchPlaceholder),m(m(m({},U),X),e.locale)},y=U=>{const{targetKeys:ee=[],dataSource:X=[]}=e,J=U==="right"?d.value:f.value,Z=Aae(X),G=J.filter(te=>!Z.has(te)),q=Hm(G),V=U==="right"?G.concat(ee):ee.filter(te=>!q.has(te)),K=U==="right"?"left":"right";U==="right"?d.value=[]:f.value=[],n("update:targetKeys",V),w(K,[]),n("change",V,U,G),g.onFieldChange()},S=()=>{y("left")},$=()=>{y("right")},x=(U,ee)=>{w(U,ee)},C=U=>x("left",U),O=U=>x("right",U),w=(U,ee)=>{U==="left"?(e.selectedKeys||(d.value=ee),n("update:selectedKeys",[...ee,...f.value]),n("selectChange",ee,Je(f.value))):(e.selectedKeys||(f.value=ee),n("update:selectedKeys",[...ee,...d.value]),n("selectChange",Je(d.value),ee))},I=(U,ee)=>{const X=ee.target.value;n("search",U,X)},T=U=>{I("left",U)},M=U=>{I("right",U)},E=U=>{n("search",U,"")},A=()=>{E("left")},R=()=>{E("right")},z=(U,ee,X)=>{const J=U==="left"?[...d.value]:[...f.value],Z=J.indexOf(ee);Z>-1&&J.splice(Z,1),X&&J.push(ee),w(U,J)},_=(U,ee)=>z("left",U,ee),N=(U,ee)=>z("right",U,ee),B=U=>{const{targetKeys:ee=[]}=e,X=ee.filter(J=>!U.includes(J));n("update:targetKeys",X),n("change",X,"left",[...U])},k=(U,ee)=>{n("scroll",U,ee)},F=U=>{k("left",U)},L=U=>{k("right",U)},H=(U,ee)=>typeof U=="function"?U({direction:ee}):U,j=re([]),Y=re([]);Le(()=>{const{dataSource:U,rowKey:ee,targetKeys:X=[]}=e,J=[],Z=new Array(X.length),G=Hm(X);U.forEach(q=>{ee&&(q.key=ee(q)),G.has(q.key)?Z[G.get(q.key)]=q:J.push(q)}),j.value=J,Y.value=Z}),i({handleSelectChange:w});const Q=U=>{var ee,X,J,Z,G,q;const{disabled:V,operations:K=[],showSearch:te,listStyle:ue,operationStyle:ie,filterOption:ae,showSelectAll:ce,selectAllLabels:se=[],oneWay:pe,pagination:ge,id:he=g.id.value}=e,{class:me,style:xe}=o,fe=r.children,de=!fe&&ge,be=l.renderEmpty,we=b(U,be),{footer:Ie}=r,Ae=e.render||r.render,Se=f.value.length>0,Ce=d.value.length>0,Oe=le(a.value,me,{[`${a.value}-disabled`]:V,[`${a.value}-customize-list`]:!!fe,[`${a.value}-rtl`]:s.value==="rtl"},Tn(a.value,h.value,v.hasFeedback),c.value),Me=e.titles,Re=(J=(ee=Me&&Me[0])!==null&&ee!==void 0?ee:(X=r.leftTitle)===null||X===void 0?void 0:X.call(r))!==null&&J!==void 0?J:(we.titles||["",""])[0],_e=(q=(Z=Me&&Me[1])!==null&&Z!==void 0?Z:(G=r.rightTitle)===null||G===void 0?void 0:G.call(r))!==null&&q!==void 0?q:(we.titles||["",""])[1];return p("div",D(D({},o),{},{class:Oe,style:xe,id:he}),[p(F2,D({key:"leftList",prefixCls:`${a.value}-list`,dataSource:j.value,filterOption:ae,style:H(ue,"left"),checkedKeys:d.value,handleFilter:T,handleClear:A,onItemSelect:_,onItemSelectAll:C,renderItem:Ae,showSearch:te,renderList:fe,onScroll:F,disabled:V,direction:s.value==="rtl"?"right":"left",showSelectAll:ce,selectAllLabel:se[0]||r.leftSelectAllLabel,pagination:de},we),{titleText:()=>Re,footer:Ie}),p(f1,{key:"operation",class:`${a.value}-operation`,rightActive:Ce,rightArrowText:K[0],moveToRight:$,leftActive:Se,leftArrowText:K[1],moveToLeft:S,style:ie,disabled:V,direction:s.value,oneWay:pe},null),p(F2,D({key:"rightList",prefixCls:`${a.value}-list`,dataSource:Y.value,filterOption:ae,style:H(ue,"right"),checkedKeys:f.value,handleFilter:M,handleClear:R,onItemSelect:N,onItemSelectAll:O,onItemRemove:B,renderItem:Ae,showSearch:te,renderList:fe,onScroll:L,disabled:V,direction:s.value==="rtl"?"left":"right",showSelectAll:ce,selectAllLabel:se[1]||r.rightSelectAllLabel,showRemove:pe,pagination:de},we),{titleText:()=>_e,footer:Ie})])};return()=>u(p(Il,{componentName:"Transfer",defaultLocale:Vn.Transfer,children:Q},null))}}),Wae=It(Vae);function Kae(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function Gae(e){const{label:t,value:n,children:o}=e||{},r=n||"value";return{_title:t?[t]:["title","label"],value:r,key:r,children:o||"children"}}function jm(e){return e.disabled||e.disableCheckbox||e.checkable===!1}function Xae(e,t){const n=[];function o(r){r.forEach(i=>{n.push(i[t.value]);const l=i[t.children];l&&o(l)})}return o(e),n}function H2(e){return e==null}const YT=Symbol("TreeSelectContextPropsKey");function Uae(e){return Xe(YT,e)}function Yae(){return He(YT,{})}const qae={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Zae=oe({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{slots:n,expose:o}=t;const r=Tc(),i=wp(),l=Yae(),a=re(),s=nb(()=>l.treeData,[()=>r.open,()=>l.treeData],C=>C[0]),u=P(()=>{const{checkable:C,halfCheckedKeys:O,checkedKeys:w}=i;return C?{checked:w,halfChecked:O}:null});ye(()=>r.open,()=>{ot(()=>{var C;r.open&&!r.multiple&&i.checkedKeys.length&&((C=a.value)===null||C===void 0||C.scrollTo({key:i.checkedKeys[0]}))})},{immediate:!0,flush:"post"});const c=P(()=>String(r.searchValue).toLowerCase()),d=C=>c.value?String(C[i.treeNodeFilterProp]).toLowerCase().includes(c.value):!1,f=ne(i.treeDefaultExpandedKeys),g=ne(null);ye(()=>r.searchValue,()=>{r.searchValue&&(g.value=Xae(Je(l.treeData),Je(l.fieldNames)))},{immediate:!0});const v=P(()=>i.treeExpandedKeys?i.treeExpandedKeys.slice():r.searchValue?g.value:f.value),h=C=>{var O;f.value=C,g.value=C,(O=i.onTreeExpand)===null||O===void 0||O.call(i,C)},b=C=>{C.preventDefault()},y=(C,O)=>{let{node:w}=O;var I,T;const{checkable:M,checkedKeys:E}=i;M&&jm(w)||((I=l.onSelect)===null||I===void 0||I.call(l,w.key,{selected:!E.includes(w.key)}),r.multiple||(T=r.toggleOpen)===null||T===void 0||T.call(r,!1))},S=re(null),$=P(()=>i.keyEntities[S.value]),x=C=>{S.value=C};return o({scrollTo:function(){for(var C,O,w=arguments.length,I=new Array(w),T=0;T{var O;const{which:w}=C;switch(w){case Pe.UP:case Pe.DOWN:case Pe.LEFT:case Pe.RIGHT:(O=a.value)===null||O===void 0||O.onKeydown(C);break;case Pe.ENTER:{if($.value){const{selectable:I,value:T}=$.value.node||{};I!==!1&&y(null,{node:{key:S.value},selected:!i.checkedKeys.includes(T)})}break}case Pe.ESC:r.toggleOpen(!1)}},onKeyup:()=>{}}),()=>{var C;const{prefixCls:O,multiple:w,searchValue:I,open:T,notFoundContent:M=(C=n.notFoundContent)===null||C===void 0?void 0:C.call(n)}=r,{listHeight:E,listItemHeight:A,virtual:R,dropdownMatchSelectWidth:z,treeExpandAction:_}=l,{checkable:N,treeDefaultExpandAll:B,treeIcon:k,showTreeIcon:F,switcherIcon:L,treeLine:H,loadData:j,treeLoadedKeys:Y,treeMotion:Q,onTreeLoad:U,checkedKeys:ee}=i;if(s.value.length===0)return p("div",{role:"listbox",class:`${O}-empty`,onMousedown:b},[M]);const X={fieldNames:l.fieldNames};return Y&&(X.loadedKeys=Y),v.value&&(X.expandedKeys=v.value),p("div",{onMousedown:b},[$.value&&T&&p("span",{style:qae,"aria-live":"assertive"},[$.value.node.value]),p(kT,D(D({ref:a,focusable:!1,prefixCls:`${O}-tree`,treeData:s.value,height:E,itemHeight:A,virtual:R!==!1&&z!==!1,multiple:w,icon:k,showIcon:F,switcherIcon:L,showLine:H,loadData:I?null:j,motion:Q,activeKey:S.value,checkable:N,checkStrictly:!0,checkedKeys:u.value,selectedKeys:N?[]:ee,defaultExpandAll:B},X),{},{onActiveChange:x,onSelect:y,onCheck:y,onExpand:h,onLoad:U,filterTreeNode:d,expandAction:_}),m(m({},n),{checkable:i.customSlots.treeCheckable}))])}}}),Qae="SHOW_ALL",qT="SHOW_PARENT",p1="SHOW_CHILD";function j2(e,t,n,o){const r=new Set(e);return t===p1?e.filter(i=>{const l=n[i];return!(l&&l.children&&l.children.some(a=>{let{node:s}=a;return r.has(s[o.value])})&&l.children.every(a=>{let{node:s}=a;return jm(s)||r.has(s[o.value])}))}):t===qT?e.filter(i=>{const l=n[i],a=l?l.parent:null;return!(a&&!jm(a.node)&&r.has(a.key))}):e}const Za=()=>null;Za.inheritAttrs=!1;Za.displayName="ATreeSelectNode";Za.isTreeSelectNode=!0;var Jae=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r0&&arguments[0]!==void 0?arguments[0]:[];return _t(n).map(o=>{var r,i,l;if(!ese(o))return null;const a=o.children||{},s=o.key,u={};for(const[w,I]of Object.entries(o.props))u[ka(w)]=I;const{isLeaf:c,checkable:d,selectable:f,disabled:g,disableCheckbox:v}=u,h={isLeaf:c||c===""||void 0,checkable:d||d===""||void 0,selectable:f||f===""||void 0,disabled:g||g===""||void 0,disableCheckbox:v||v===""||void 0},b=m(m({},u),h),{title:y=(r=a.title)===null||r===void 0?void 0:r.call(a,b),switcherIcon:S=(i=a.switcherIcon)===null||i===void 0?void 0:i.call(a,b)}=u,$=Jae(u,["title","switcherIcon"]),x=(l=a.default)===null||l===void 0?void 0:l.call(a),C=m(m(m({},$),{title:y,switcherIcon:S,key:s,isLeaf:c}),h),O=t(x);return O.length&&(C.children=O),C})}return t(e)}function Vm(e){if(!e)return e;const t=m({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return t}}),t}function nse(e,t,n,o,r,i){let l=null,a=null;function s(){function u(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return c.map((g,v)=>{const h=`${d}-${v}`,b=g[i.value],y=n.includes(b),S=u(g[i.children]||[],h,y),$=p(Za,g,{default:()=>[S.map(x=>x.node)]});if(t===b&&(l=$),y){const x={pos:h,node:$,children:S};return f||a.push(x),x}return null}).filter(g=>g)}a||(a=[],u(o),a.sort((c,d)=>{let{node:{props:{value:f}}}=c,{node:{props:{value:g}}}=d;const v=n.indexOf(f),h=n.indexOf(g);return v-h}))}Object.defineProperty(e,"triggerNode",{get(){return s(),l}}),Object.defineProperty(e,"allCheckedNodes",{get(){return s(),r?a:a.map(u=>{let{node:c}=u;return c})}})}function ose(e,t){let{id:n,pId:o,rootPId:r}=t;const i={},l=[];return e.map(s=>{const u=m({},s),c=u[n];return i[c]=u,u.key=u.key||c,u}).forEach(s=>{const u=s[o],c=i[u];c&&(c.children=c.children||[],c.children.push(s)),(u===r||!c&&r===null)&&l.push(s)}),l}function rse(e,t,n){const o=ne();return ye([n,e,t],()=>{const r=n.value;e.value?o.value=n.value?ose(Je(e.value),m({id:"id",pId:"pId",rootPId:null},r!==!0?r:{})):Je(e.value).slice():o.value=tse(Je(t.value))},{immediate:!0,deep:!0}),o}const ise=(e=>{const t=ne({valueLabels:new Map}),n=ne();return ye(e,()=>{n.value=Je(e.value)},{immediate:!0}),[P(()=>{const{valueLabels:r}=t.value,i=new Map,l=n.value.map(a=>{var s;const{value:u}=a,c=(s=a.label)!==null&&s!==void 0?s:r.get(u);return i.set(u,c),m(m({},a),{label:c})});return t.value.valueLabels=i,l})]}),lse=((e,t)=>{const n=ne(new Map),o=ne({});return Le(()=>{const r=t.value,i=zc(e.value,{fieldNames:r,initWrapper:l=>m(m({},l),{valueEntities:new Map}),processEntity:(l,a)=>{const s=l.node[r.value];a.valueEntities.set(s,l)}});n.value=i.valueEntities,o.value=i.keyEntities}),{valueEntities:n,keyEntities:o}}),ase=((e,t,n,o,r,i)=>{const l=ne([]),a=ne([]);return Le(()=>{let s=e.value.map(d=>{let{value:f}=d;return f}),u=t.value.map(d=>{let{value:f}=d;return f});const c=s.filter(d=>!o.value[d]);n.value&&({checkedKeys:s,halfCheckedKeys:u}=Io(s,!0,o.value,r.value,i.value)),l.value=Array.from(new Set([...c,...s])),a.value=u}),[l,a]}),sse=((e,t,n)=>{let{treeNodeFilterProp:o,filterTreeNode:r,fieldNames:i}=n;return P(()=>{const{children:l}=i.value,a=t.value,s=o?.value;if(!a||r.value===!1)return e.value;let u;if(typeof r.value=="function")u=r.value;else{const d=a.toUpperCase();u=(f,g)=>{const v=g[s];return String(v).toUpperCase().includes(d)}}function c(d){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const g=[];for(let v=0,h=d.length;ve.treeCheckable&&!e.treeCheckStrictly),a=P(()=>e.treeCheckable||e.treeCheckStrictly),s=P(()=>e.treeCheckStrictly||e.labelInValue),u=P(()=>a.value||e.multiple),c=P(()=>Gae(e.fieldNames)),[d,f]=Pt("",{value:P(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:he=>he||""}),g=he=>{var me;f(he),(me=e.onSearch)===null||me===void 0||me.call(e,he)},v=rse(ze(e,"treeData"),ze(e,"children"),ze(e,"treeDataSimpleMode")),{keyEntities:h,valueEntities:b}=lse(v,c),y=he=>{const me=[],xe=[];return he.forEach(fe=>{b.value.has(fe)?xe.push(fe):me.push(fe)}),{missingRawValues:me,existRawValues:xe}},S=sse(v,d,{fieldNames:c,treeNodeFilterProp:ze(e,"treeNodeFilterProp"),filterTreeNode:ze(e,"filterTreeNode")}),$=he=>{if(he){if(e.treeNodeLabelProp)return he[e.treeNodeLabelProp];const{_title:me}=c.value;for(let xe=0;xeKae(he).map(xe=>cse(xe)?{value:xe}:xe),C=he=>x(he).map(xe=>{let{label:fe}=xe;const{value:de,halfChecked:be}=xe;let we;const Ie=b.value.get(de);return Ie&&(fe=fe??$(Ie.node),we=Ie.node.disabled),{label:fe,value:de,halfChecked:be,disabled:we}}),[O,w]=Pt(e.defaultValue,{value:ze(e,"value")}),I=P(()=>x(O.value)),T=ne([]),M=ne([]);Le(()=>{const he=[],me=[];I.value.forEach(xe=>{xe.halfChecked?me.push(xe):he.push(xe)}),T.value=he,M.value=me});const E=P(()=>T.value.map(he=>he.value)),{maxLevel:A,levelEntities:R}=Qp(h),[z,_]=ase(T,M,l,h,A,R),N=P(()=>{const xe=j2(z.value,e.showCheckedStrategy,h.value,c.value).map(be=>{var we,Ie,Ae;return(Ae=(Ie=(we=h.value[be])===null||we===void 0?void 0:we.node)===null||Ie===void 0?void 0:Ie[c.value.value])!==null&&Ae!==void 0?Ae:be}).map(be=>{const we=T.value.find(Ie=>Ie.value===be);return{value:be,label:we?.label}}),fe=C(xe),de=fe[0];return!u.value&&de&&H2(de.value)&&H2(de.label)?[]:fe.map(be=>{var we;return m(m({},be),{label:(we=be.label)!==null&&we!==void 0?we:be.value})})}),[B]=ise(N),k=(he,me,xe)=>{const fe=C(he);if(w(fe),e.autoClearSearchValue&&f(""),e.onChange){let de=he;l.value&&(de=j2(he,e.showCheckedStrategy,h.value,c.value).map(Re=>{const _e=b.value.get(Re);return _e?_e.node[c.value.value]:Re}));const{triggerValue:be,selected:we}=me||{triggerValue:void 0,selected:void 0};let Ie=de;if(e.treeCheckStrictly){const Me=M.value.filter(Re=>!de.includes(Re.value));Ie=[...Ie,...Me]}const Ae=C(Ie),Se={preValue:T.value,triggerValue:be};let Ce=!0;(e.treeCheckStrictly||xe==="selection"&&!we)&&(Ce=!1),nse(Se,be,he,v.value,Ce,c.value),a.value?Se.checked=we:Se.selected=we;const Oe=s.value?Ae:Ae.map(Me=>Me.value);e.onChange(u.value?Oe:Oe[0],s.value?null:Ae.map(Me=>Me.label),Se)}},F=(he,me)=>{let{selected:xe,source:fe}=me;var de,be,we;const Ie=Je(h.value),Ae=Je(b.value),Se=Ie[he],Ce=Se?.node,Oe=(de=Ce?.[c.value.value])!==null&&de!==void 0?de:he;if(!u.value)k([Oe],{selected:!0,triggerValue:Oe},"option");else{let Me=xe?[...E.value,Oe]:z.value.filter(Re=>Re!==Oe);if(l.value){const{missingRawValues:Re,existRawValues:_e}=y(Me),Be=_e.map(dt=>Ae.get(dt).key);let et;xe?{checkedKeys:et}=Io(Be,!0,Ie,A.value,R.value):{checkedKeys:et}=Io(Be,{halfCheckedKeys:_.value},Ie,A.value,R.value),Me=[...Re,...et.map(dt=>Ie[dt].node[c.value.value])]}k(Me,{selected:xe,triggerValue:Oe},fe||"option")}xe||!u.value?(be=e.onSelect)===null||be===void 0||be.call(e,Oe,Vm(Ce)):(we=e.onDeselect)===null||we===void 0||we.call(e,Oe,Vm(Ce))},L=he=>{if(e.onDropdownVisibleChange){const me={};Object.defineProperty(me,"documentClickClose",{get(){return!1}}),e.onDropdownVisibleChange(he,me)}},H=(he,me)=>{const xe=he.map(fe=>fe.value);if(me.type==="clear"){k(xe,{},"selection");return}me.values.length&&F(me.values[0].value,{selected:!1,source:"selection"})},{treeNodeFilterProp:j,loadData:Y,treeLoadedKeys:Q,onTreeLoad:U,treeDefaultExpandAll:ee,treeExpandedKeys:X,treeDefaultExpandedKeys:J,onTreeExpand:Z,virtual:G,listHeight:q,listItemHeight:V,treeLine:K,treeIcon:te,showTreeIcon:ue,switcherIcon:ie,treeMotion:ae,customSlots:ce,dropdownMatchSelectWidth:se,treeExpandAction:pe}=jo(e);Ok(Zd({checkable:a,loadData:Y,treeLoadedKeys:Q,onTreeLoad:U,checkedKeys:z,halfCheckedKeys:_,treeDefaultExpandAll:ee,treeExpandedKeys:X,treeDefaultExpandedKeys:J,onTreeExpand:Z,treeIcon:te,treeMotion:ae,showTreeIcon:ue,switcherIcon:ie,treeLine:K,treeNodeFilterProp:j,keyEntities:h,customSlots:ce})),Uae(Zd({virtual:G,listHeight:q,listItemHeight:V,treeData:S,fieldNames:c,onSelect:F,dropdownMatchSelectWidth:se,treeExpandAction:pe}));const ge=re();return o({focus(){var he;(he=ge.value)===null||he===void 0||he.focus()},blur(){var he;(he=ge.value)===null||he===void 0||he.blur()},scrollTo(he){var me;(me=ge.value)===null||me===void 0||me.scrollTo(he)}}),()=>{var he;const me=tt(e,["id","prefixCls","customSlots","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","virtual","listHeight","listItemHeight","onDropdownVisibleChange","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"]);return p(tb,D(D(D({ref:ge},n),me),{},{id:i,prefixCls:e.prefixCls,mode:u.value?"multiple":void 0,displayValues:B.value,onDisplayValuesChange:H,searchValue:d.value,onSearch:g,OptionList:Zae,emptyOptions:!v.value.length,onDropdownVisibleChange:L,tagRender:e.tagRender||r.tagRender,dropdownMatchSelectWidth:(he=e.dropdownMatchSelectWidth)!==null&&he!==void 0?he:!0}),r)}}}),dse=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:o}=e,r=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${e.paddingXS}px ${e.paddingXS/2}px`},LT(n,ke(e,{colorBgContainer:o})),{[r]:{borderRadius:0,"&-list-holder-inner":{alignItems:"stretch",[`${r}-treenode`]:{[`${r}-node-content-wrapper`]:{flex:"auto"}}}}},ng(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${r}-switcher${r}-switcher_close`]:{[`${r}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function fse(e,t){return Ke("TreeSelect",n=>{const o=ke(n,{treePrefixCls:t.value});return[dse(o)]})(e)}const V2=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function pse(){return m(m({},tt(ZT(),["showTreeIcon","treeMotion","inputIcon","getInputElement","treeLine","customSlots"])),{suffixIcon:W.any,size:Ne(),bordered:$e(),treeLine:Fe([Boolean,Object]),replaceFields:De(),placement:Ne(),status:Ne(),popupClassName:String,dropdownClassName:String,"onUpdate:value":ve(),"onUpdate:treeExpandedKeys":ve(),"onUpdate:searchValue":ve()})}const Gh=oe({compatConfig:{MODE:3},name:"ATreeSelect",inheritAttrs:!1,props:Ze(pse(),{choiceTransitionName:"",listHeight:256,treeIcon:!1,listItemHeight:26,bordered:!0}),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r,emit:i}=t;e.treeData===void 0&&o.default,Ct(e.multiple!==!1||!e.treeCheckable,"TreeSelect","`multiple` will always be `true` when `treeCheckable` is true"),Ct(e.replaceFields===void 0,"TreeSelect","`replaceFields` is deprecated, please use fieldNames instead"),Ct(!e.dropdownClassName,"TreeSelect","`dropdownClassName` is deprecated. Please use `popupClassName` instead.");const l=Qt(),a=dn.useInject(),s=P(()=>Qo(a.status,e.status)),{prefixCls:u,renderEmpty:c,direction:d,virtual:f,dropdownMatchSelectWidth:g,size:v,getPopupContainer:h,getPrefixCls:b,disabled:y}=Te("select",e),{compactSize:S,compactItemClassnames:$}=Ri(u,d),x=P(()=>S.value||v.value),C=Jn(),O=P(()=>{var Q;return(Q=y.value)!==null&&Q!==void 0?Q:C.value}),w=P(()=>b()),I=P(()=>e.placement!==void 0?e.placement:d.value==="rtl"?"bottomRight":"bottomLeft"),T=P(()=>V2(w.value,Z0(I.value),e.transitionName)),M=P(()=>V2(w.value,"",e.choiceTransitionName)),E=P(()=>b("select-tree",e.prefixCls)),A=P(()=>b("tree-select",e.prefixCls)),[R,z]=xb(u),[_]=fse(A,E),N=P(()=>le(e.popupClassName||e.dropdownClassName,`${A.value}-dropdown`,{[`${A.value}-dropdown-rtl`]:d.value==="rtl"},z.value)),B=P(()=>!!(e.treeCheckable||e.multiple)),k=P(()=>e.showArrow!==void 0?e.showArrow:e.loading||!B.value),F=re();r({focus(){var Q,U;(U=(Q=F.value).focus)===null||U===void 0||U.call(Q)},blur(){var Q,U;(U=(Q=F.value).blur)===null||U===void 0||U.call(Q)}});const L=function(){for(var Q=arguments.length,U=new Array(Q),ee=0;ee{i("update:treeExpandedKeys",Q),i("treeExpand",Q)},j=Q=>{i("update:searchValue",Q),i("search",Q)},Y=Q=>{i("blur",Q),l.onFieldBlur()};return()=>{var Q,U,ee;const{notFoundContent:X=(Q=o.notFoundContent)===null||Q===void 0?void 0:Q.call(o),prefixCls:J,bordered:Z,listHeight:G,listItemHeight:q,multiple:V,treeIcon:K,treeLine:te,showArrow:ue,switcherIcon:ie=(U=o.switcherIcon)===null||U===void 0?void 0:U.call(o),fieldNames:ae=e.replaceFields,id:ce=l.id.value,placeholder:se=(ee=o.placeholder)===null||ee===void 0?void 0:ee.call(o)}=e,{isFormItemInput:pe,hasFeedback:ge,feedbackIcon:he}=a,{suffixIcon:me,removeIcon:xe,clearIcon:fe}=sb(m(m({},e),{multiple:B.value,showArrow:k.value,hasFeedback:ge,feedbackIcon:he,prefixCls:u.value}),o);let de;X!==void 0?de=X:de=c("Select");const be=tt(e,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","bordered","status","onUpdate:value","onUpdate:treeExpandedKeys","onUpdate:searchValue"]),we=le(!J&&A.value,{[`${u.value}-lg`]:x.value==="large",[`${u.value}-sm`]:x.value==="small",[`${u.value}-rtl`]:d.value==="rtl",[`${u.value}-borderless`]:!Z,[`${u.value}-in-form-item`]:pe},Tn(u.value,s.value,ge),$.value,n.class,z.value),Ie={};return e.treeData===void 0&&o.default&&(Ie.children=bt(o.default())),R(_(p(use,D(D(D(D({},n),be),{},{disabled:O.value,virtual:f.value,dropdownMatchSelectWidth:g.value,id:ce,fieldNames:ae,ref:F,prefixCls:u.value,class:we,listHeight:G,listItemHeight:q,treeLine:!!te,inputIcon:me,multiple:V,removeIcon:xe,clearIcon:fe,switcherIcon:Ae=>FT(E.value,ie,Ae,o.leafIcon,te),showTreeIcon:K,notFoundContent:de,getPopupContainer:h?.value,treeMotion:null,dropdownClassName:N.value,choiceTransitionName:M.value,onChange:L,onBlur:Y,onSearch:j,onTreeExpand:H},Ie),{},{transitionName:T.value,customSlots:m(m({},o),{treeCheckable:()=>p("span",{class:`${u.value}-tree-checkbox-inner`},null)}),maxTagPlaceholder:e.maxTagPlaceholder||o.maxTagPlaceholder,placement:I.value,showArrow:ge||ue,placeholder:se}),m(m({},o),{treeCheckable:()=>p("span",{class:`${u.value}-tree-checkbox-inner`},null)}))))}}}),Wm=Za,gse=m(Gh,{TreeNode:Za,SHOW_ALL:Qae,SHOW_PARENT:qT,SHOW_CHILD:p1,install:e=>(e.component(Gh.name,Gh),e.component(Wm.displayName,Wm),e)}),Xh=()=>({format:String,showNow:$e(),showHour:$e(),showMinute:$e(),showSecond:$e(),use12Hours:$e(),hourStep:Number,minuteStep:Number,secondStep:Number,hideDisabledOptions:$e(),popupClassName:String,status:Ne()});function hse(e){const t=g5(e,m(m({},Xh()),{order:{type:Boolean,default:!0}})),{TimePicker:n,RangePicker:o}=t,r=oe({name:"ATimePicker",inheritAttrs:!1,props:m(m(m(m({},If()),d5()),Xh()),{addon:{type:Function}}),slots:Object,setup(l,a){let{slots:s,expose:u,emit:c,attrs:d}=a;const f=l,g=Qt();Ct(!(s.addon||f.addon),"TimePicker","`addon` is deprecated. Please use `v-slot:renderExtraFooter` instead.");const v=re();u({focus:()=>{var x;(x=v.value)===null||x===void 0||x.focus()},blur:()=>{var x;(x=v.value)===null||x===void 0||x.blur()}});const h=(x,C)=>{c("update:value",x),c("change",x,C),g.onFieldChange()},b=x=>{c("update:open",x),c("openChange",x)},y=x=>{c("focus",x)},S=x=>{c("blur",x),g.onFieldBlur()},$=x=>{c("ok",x)};return()=>{const{id:x=g.id.value}=f;return p(n,D(D(D({},d),tt(f,["onUpdate:value","onUpdate:open"])),{},{id:x,dropdownClassName:f.popupClassName,mode:void 0,ref:v,renderExtraFooter:f.addon||s.addon||f.renderExtraFooter||s.renderExtraFooter,onChange:h,onOpenChange:b,onFocus:y,onBlur:S,onOk:$}),s)}}}),i=oe({name:"ATimeRangePicker",inheritAttrs:!1,props:m(m(m(m({},If()),f5()),Xh()),{order:{type:Boolean,default:!0}}),slots:Object,setup(l,a){let{slots:s,expose:u,emit:c,attrs:d}=a;const f=l,g=re(),v=Qt();u({focus:()=>{var O;(O=g.value)===null||O===void 0||O.focus()},blur:()=>{var O;(O=g.value)===null||O===void 0||O.blur()}});const h=(O,w)=>{c("update:value",O),c("change",O,w),v.onFieldChange()},b=O=>{c("update:open",O),c("openChange",O)},y=O=>{c("focus",O)},S=O=>{c("blur",O),v.onFieldBlur()},$=(O,w)=>{c("panelChange",O,w)},x=O=>{c("ok",O)},C=(O,w,I)=>{c("calendarChange",O,w,I)};return()=>{const{id:O=v.id.value}=f;return p(o,D(D(D({},d),tt(f,["onUpdate:open","onUpdate:value"])),{},{id:O,dropdownClassName:f.popupClassName,picker:"time",mode:void 0,ref:g,onChange:h,onOpenChange:b,onFocus:y,onBlur:S,onPanelChange:$,onOk:x,onCalendarChange:C}),s)}}});return{TimePicker:r,TimeRangePicker:i}}const{TimePicker:Eu,TimeRangePicker:Pd}=hse(kb),vse=m(Eu,{TimePicker:Eu,TimeRangePicker:Pd,install:e=>(e.component(Eu.name,Eu),e.component(Pd.name,Pd),e)}),mse=()=>({prefixCls:String,color:String,dot:W.any,pending:$e(),position:W.oneOf(Sn("left","right","")).def(""),label:W.any}),$c=oe({compatConfig:{MODE:3},name:"ATimelineItem",props:Ze(mse(),{color:"blue",pending:!1}),slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=Te("timeline",e),r=P(()=>({[`${o.value}-item`]:!0,[`${o.value}-item-pending`]:e.pending})),i=P(()=>/blue|red|green|gray/.test(e.color||"")?void 0:e.color||"blue"),l=P(()=>({[`${o.value}-item-head`]:!0,[`${o.value}-item-head-${e.color||"blue"}`]:!i.value}));return()=>{var a,s,u;const{label:c=(a=n.label)===null||a===void 0?void 0:a.call(n),dot:d=(s=n.dot)===null||s===void 0?void 0:s.call(n)}=e;return p("li",{class:r.value},[c&&p("div",{class:`${o.value}-item-label`},[c]),p("div",{class:`${o.value}-item-tail`},null),p("div",{class:[l.value,!!d&&`${o.value}-item-head-custom`],style:{borderColor:i.value,color:i.value}},[d]),p("div",{class:`${o.value}-item-content`},[(u=n.default)===null||u===void 0?void 0:u.call(n)])])}}}),bse=e=>{const{componentCls:t}=e;return{[t]:m(m({},Ue(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.timeLineItemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize,insetInlineStart:(e.timeLineItemHeadSize-e.timeLineItemTailWidth)/2,height:`calc(100% - ${e.timeLineItemHeadSize}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px ${e.lineType} ${e.colorSplit}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.timeLineItemHeadSize,height:e.timeLineItemHeadSize,backgroundColor:e.colorBgContainer,border:`${e.timeLineHeadBorderWidth}px ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize/2,insetInlineStart:e.timeLineItemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.timeLineItemCustomHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.lineWidth,marginInlineStart:e.margin+e.timeLineItemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:e.controlHeightLG*1.2}}},[`&${t}-alternate, + `]:{background:h},[`&${t}-row-selected`]:{"> td":{background:b},"&:hover > td":{background:y}}}},[`${t}-footer`]:{padding:`${o}px ${r}px`,color:S,background:$}})}},bae=Ke("Table",e=>{const{controlItemBgActive:t,controlItemBgActiveHover:n,colorTextPlaceholder:o,colorTextHeading:r,colorSplit:i,colorBorderSecondary:l,fontSize:a,padding:s,paddingXS:u,paddingSM:c,controlHeight:d,colorFillAlter:f,colorIcon:g,colorIconHover:v,opacityLoading:h,colorBgContainer:b,borderRadiusLG:y,colorFillContent:S,colorFillSecondary:$,controlInteractiveSize:x}=e,C=new pt(g),O=new pt(v),w=t,I=2,T=new pt($).onBackground(b).toHexString(),_=new pt(S).onBackground(b).toHexString(),E=new pt(f).onBackground(b).toHexString(),A=ke(e,{tableFontSize:a,tableBg:b,tableRadius:y,tablePaddingVertical:s,tablePaddingHorizontal:s,tablePaddingVerticalMiddle:c,tablePaddingHorizontalMiddle:u,tablePaddingVerticalSmall:u,tablePaddingHorizontalSmall:u,tableBorderColor:l,tableHeaderTextColor:r,tableHeaderBg:E,tableFooterTextColor:r,tableFooterBg:E,tableHeaderCellSplitColor:l,tableHeaderSortBg:T,tableHeaderSortHoverBg:_,tableHeaderIconColor:C.clone().setAlpha(C.getAlpha()*h).toRgbString(),tableHeaderIconColorHover:O.clone().setAlpha(O.getAlpha()*h).toRgbString(),tableBodySortBg:E,tableFixedHeaderSortActiveBg:T,tableHeaderFilterActiveBg:S,tableFilterDropdownBg:b,tableRowHoverBg:E,tableSelectedRowBg:w,tableSelectedRowHoverBg:n,zIndexTableFixed:I,zIndexTableSticky:I+1,tableFontSizeMiddle:a,tableFontSizeSmall:a,tableSelectionColumnWidth:d,tableExpandIconBg:b,tableExpandColumnWidth:x+2*e.padding,tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollBg:i});return[mae(A),cae(A),B2(A),hae(A),aae(A),oae(A),uae(A),lae(A),B2(A),iae(A),fae(A),sae(A),vae(A),rae(A),pae(A),gae(A),dae(A)]}),yae=[],UT=()=>({prefixCls:Ne(),columns:lt(),rowKey:Fe([String,Function]),tableLayout:Ne(),rowClassName:Fe([String,Function]),title:ve(),footer:ve(),id:Ne(),showHeader:$e(),components:De(),customRow:ve(),customHeaderRow:ve(),direction:Ne(),expandFixed:Fe([Boolean,String]),expandColumnWidth:Number,expandedRowKeys:lt(),defaultExpandedRowKeys:lt(),expandedRowRender:ve(),expandRowByClick:$e(),expandIcon:ve(),onExpand:ve(),onExpandedRowsChange:ve(),"onUpdate:expandedRowKeys":ve(),defaultExpandAllRows:$e(),indentSize:Number,expandIconColumnIndex:Number,showExpandColumn:$e(),expandedRowClassName:ve(),childrenColumnName:Ne(),rowExpandable:ve(),sticky:Fe([Boolean,Object]),dropdownPrefixCls:String,dataSource:lt(),pagination:Fe([Boolean,Object]),loading:Fe([Boolean,Object]),size:Ne(),bordered:$e(),locale:De(),onChange:ve(),onResizeColumn:ve(),rowSelection:De(),getPopupContainer:ve(),scroll:De(),sortDirections:lt(),showSorterTooltip:Fe([Boolean,Object],!0),transformCellText:ve()}),Sae=oe({name:"InternalTable",inheritAttrs:!1,props:Ze(m(m({},UT()),{contextSlots:De()}),{rowKey:"key"}),setup(e,t){let{attrs:n,slots:o,expose:r,emit:i}=t;Ct(!(typeof e.rowKey=="function"&&e.rowKey.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."),pie(P(()=>e.contextSlots)),gie({onResizeColumn:(ie,ae)=>{i("resizeColumn",ie,ae)}});const l=Ua(),a=P(()=>{const ie=new Set(Object.keys(l.value).filter(ae=>l.value[ae]));return e.columns.filter(ae=>!ae.responsive||ae.responsive.some(ce=>ie.has(ce)))}),{size:s,renderEmpty:u,direction:c,prefixCls:d,configProvider:f}=Te("table",e),[g,v]=bae(d),h=P(()=>{var ie;return e.transformCellText||((ie=f.transformCellText)===null||ie===void 0?void 0:ie.value)}),[b]=Do("Table",Vn.Table,ze(e,"locale")),y=P(()=>e.dataSource||yae),S=P(()=>f.getPrefixCls("dropdown",e.dropdownPrefixCls)),$=P(()=>e.childrenColumnName||"children"),x=P(()=>y.value.some(ie=>ie?.[$.value])?"nest":e.expandedRowRender?"row":null),C=ct({body:null}),O=ie=>{m(C,ie)},w=P(()=>typeof e.rowKey=="function"?e.rowKey:ie=>ie?.[e.rowKey]),[I]=ile(y,$,w),T={},_=function(ie,ae){let ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{pagination:se,scroll:pe,onChange:ge}=e,he=m(m({},T),ie);ce&&(T.resetPagination(),he.pagination.current&&(he.pagination.current=1),se&&se.onChange&&se.onChange(1,he.pagination.pageSize)),pe&&pe.scrollToFirstRowOnChange!==!1&&C.body&&A0(0,{getContainer:()=>C.body}),ge?.(he.pagination,he.filters,he.sorter,{currentDataSource:N2(Fm(y.value,he.sorterStates,$.value),he.filterStates),action:ae})},E=(ie,ae)=>{_({sorter:ie,sorterStates:ae},"sort",!1)},[A,R,z,M]=gle({prefixCls:d,mergedColumns:a,onSorterChange:E,sortDirections:P(()=>e.sortDirections||["ascend","descend"]),tableLocale:b,showSorterTooltip:ze(e,"showSorterTooltip")}),N=P(()=>Fm(y.value,R.value,$.value)),B=(ie,ae)=>{_({filters:ie,filterStates:ae},"filter",!0)},[k,F,L]=Jle({prefixCls:d,locale:b,dropdownPrefixCls:S,mergedColumns:a,onFilterChange:B,getPopupContainer:ze(e,"getPopupContainer")}),H=P(()=>N2(N.value,F.value)),[j]=nae(ze(e,"contextSlots")),Y=P(()=>{const ie={},ae=L.value;return Object.keys(ae).forEach(ce=>{ae[ce]!==null&&(ie[ce]=ae[ce])}),m(m({},z.value),{filters:ie})}),[Q]=eae(Y),U=(ie,ae)=>{_({pagination:m(m({},T.pagination),{current:ie,pageSize:ae})},"paginate")},[ee,X]=rle(P(()=>H.value.length),ze(e,"pagination"),U);Le(()=>{T.sorter=M.value,T.sorterStates=R.value,T.filters=L.value,T.filterStates=F.value,T.pagination=e.pagination===!1?{}:ole(ee.value,e.pagination),T.resetPagination=X});const J=P(()=>{if(e.pagination===!1||!ee.value.pageSize)return H.value;const{current:ie=1,total:ae,pageSize:ce=Rm}=ee.value;return Ct(ie>0,"Table","`current` should be positive number."),H.value.lengthce?H.value.slice((ie-1)*ce,ie*ce):H.value:H.value.slice((ie-1)*ce,ie*ce)});Le(()=>{ot(()=>{const{total:ie,pageSize:ae=Rm}=ee.value;H.value.lengthae&&Ct(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.")})},{flush:"post"});const Z=P(()=>e.showExpandColumn===!1?-1:x.value==="nest"&&e.expandIconColumnIndex===void 0?e.rowSelection?1:0:e.expandIconColumnIndex>0&&e.rowSelection?e.expandIconColumnIndex-1:e.expandIconColumnIndex),G=re();ye(()=>e.rowSelection,()=>{G.value=e.rowSelection?m({},e.rowSelection):e.rowSelection},{deep:!0,immediate:!0});const[q,V]=ale(G,{prefixCls:d,data:H,pageData:J,getRowKey:w,getRecordByKey:I,expandType:x,childrenColumnName:$,locale:b,getPopupContainer:P(()=>e.getPopupContainer)}),K=(ie,ae,ce)=>{let se;const{rowClassName:pe}=e;return typeof pe=="function"?se=le(pe(ie,ae,ce)):se=le(pe),le({[`${d.value}-row-selected`]:V.value.has(w.value(ie,ae))},se)};r({selectedKeySet:V});const te=P(()=>typeof e.indentSize=="number"?e.indentSize:15),ue=ie=>Q(q(k(A(j(ie)))));return()=>{var ie;const{expandIcon:ae=o.expandIcon||tae(b.value),pagination:ce,loading:se,bordered:pe}=e;let ge,he;if(ce!==!1&&(!((ie=ee.value)===null||ie===void 0)&&ie.total)){let de;ee.value.size?de=ee.value.size:de=s.value==="small"||s.value==="middle"?"small":void 0;const be=Ae=>p(cg,D(D({},ee.value),{},{class:[`${d.value}-pagination ${d.value}-pagination-${Ae}`,ee.value.class],size:de}),null),we=c.value==="rtl"?"left":"right",{position:Ie}=ee.value;if(Ie!==null&&Array.isArray(Ie)){const Ae=Ie.find(Oe=>Oe.includes("top")),Se=Ie.find(Oe=>Oe.includes("bottom")),Ce=Ie.every(Oe=>`${Oe}`=="none");!Ae&&!Se&&!Ce&&(he=be(we)),Ae&&(ge=be(Ae.toLowerCase().replace("top",""))),Se&&(he=be(Se.toLowerCase().replace("bottom","")))}else he=be(we)}let me;typeof se=="boolean"?me={spinning:se}:typeof se=="object"&&(me=m({spinning:!0},se));const xe=le(`${d.value}-wrapper`,{[`${d.value}-wrapper-rtl`]:c.value==="rtl"},n.class,v.value),fe=tt(e,["columns"]);return g(p("div",{class:xe,style:n.style},[p(gr,D({spinning:!1},me),{default:()=>[ge,p(tle,D(D(D({},n),fe),{},{expandedRowKeys:e.expandedRowKeys,defaultExpandedRowKeys:e.defaultExpandedRowKeys,expandIconColumnIndex:Z.value,indentSize:te.value,expandIcon:ae,columns:a.value,direction:c.value,prefixCls:d.value,class:le({[`${d.value}-middle`]:s.value==="middle",[`${d.value}-small`]:s.value==="small",[`${d.value}-bordered`]:pe,[`${d.value}-empty`]:y.value.length===0}),data:J.value,rowKey:w.value,rowClassName:K,internalHooks:Am,internalRefs:C,onUpdateInternalRefs:O,transformColumns:ue,transformCellText:h.value}),m(m({},o),{emptyText:()=>{var de,be;return((de=o.emptyText)===null||de===void 0?void 0:de.call(o))||((be=e.locale)===null||be===void 0?void 0:be.emptyText)||u("Table")}})),he]})]))}}}),Kh=oe({name:"ATable",inheritAttrs:!1,props:Ze(UT(),{rowKey:"key"}),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r}=t;const i=re();return r({table:i}),()=>{var l;const a=e.columns||DT((l=o.default)===null||l===void 0?void 0:l.call(o));return p(Sae,D(D(D({ref:i},n),e),{},{columns:a||[],expandedRowRender:o.expandedRowRender||e.expandedRowRender,contextSlots:m({},o)}),o)}}}),xd=oe({name:"ATableColumn",slots:Object,render(){return null}}),wd=oe({name:"ATableColumnGroup",slots:Object,__ANT_TABLE_COLUMN_GROUP:!0,render(){return null}}),kf=Vie,Ff=Gie,Od=m(Xie,{Cell:Ff,Row:kf,name:"ATableSummary"}),$ae=m(Kh,{SELECTION_ALL:Dm,SELECTION_INVERT:Nm,SELECTION_NONE:Bm,SELECTION_COLUMN:Ir,EXPAND_COLUMN:di,Column:xd,ColumnGroup:wd,Summary:Od,install:e=>(e.component(Od.name,Od),e.component(Ff.name,Ff),e.component(kf.name,kf),e.component(Kh.name,Kh),e.component(xd.name,xd),e.component(wd.name,wd),e)}),Cae={prefixCls:String,placeholder:String,value:String,handleClear:Function,disabled:{type:Boolean,default:void 0},onChange:Function},xae=oe({compatConfig:{MODE:3},name:"Search",inheritAttrs:!1,props:Ze(Cae,{placeholder:""}),emits:["change"],setup(e,t){let{emit:n}=t;const o=r=>{var i;n("change",r),r.target.value===""&&((i=e.handleClear)===null||i===void 0||i.call(e))};return()=>{const{placeholder:r,value:i,prefixCls:l,disabled:a}=e;return p(tn,{placeholder:r,class:l,value:i,onChange:o,disabled:a,allowClear:!0},{prefix:()=>p(Va,null,null)})}}});var wae={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};function k2(e){for(var t=1;t{const{renderedText:o,renderedEl:r,item:i,checked:l,disabled:a,prefixCls:s,showRemove:u}=e,c=le({[`${s}-content-item`]:!0,[`${s}-content-item-disabled`]:a||i.disabled});let d;return(typeof o=="string"||typeof o=="number")&&(d=String(o)),p(Il,{componentName:"Transfer",defaultLocale:Vn.Transfer},{default:f=>{const g=p("span",{class:`${s}-content-item-text`},[r]);return u?p("li",{class:c,title:d},[g,p(Df,{disabled:a||i.disabled,class:`${s}-content-item-remove`,"aria-label":f.remove,onClick:()=>{n("remove",i)}},{default:()=>[p(vg,null,null)]})]):p("li",{class:c,title:d,onClick:a||i.disabled?Pae:()=>{n("click",i)}},[p(To,{class:`${s}-checkbox`,checked:l,disabled:a||i.disabled},null),g])}})}}}),Eae={prefixCls:String,filteredRenderItems:W.array.def([]),selectedKeys:W.array,disabled:$e(),showRemove:$e(),pagination:W.any,onItemSelect:Function,onScroll:Function,onItemRemove:Function};function Mae(e){if(!e)return null;const t={pageSize:10,simple:!0,showSizeChanger:!1,showLessItems:!1};return typeof e=="object"?m(m({},t),e):t}const _ae=oe({compatConfig:{MODE:3},name:"ListBody",inheritAttrs:!1,props:Eae,emits:["itemSelect","itemRemove","scroll"],setup(e,t){let{emit:n,expose:o}=t;const r=re(1),i=d=>{const{selectedKeys:f}=e,g=f.indexOf(d.key)>=0;n("itemSelect",d.key,!g)},l=d=>{n("itemRemove",[d.key])},a=d=>{n("scroll",d)},s=P(()=>Mae(e.pagination));ye([s,()=>e.filteredRenderItems],()=>{if(s.value){const d=Math.ceil(e.filteredRenderItems.length/s.value.pageSize);r.value=Math.min(r.value,d)}},{immediate:!0});const u=P(()=>{const{filteredRenderItems:d}=e;let f=d;return s.value&&(f=d.slice((r.value-1)*s.value.pageSize,r.value*s.value.pageSize)),f}),c=d=>{r.value=d};return o({items:u}),()=>{const{prefixCls:d,filteredRenderItems:f,selectedKeys:g,disabled:v,showRemove:h}=e;let b=null;s.value&&(b=p(cg,{simple:s.value.simple,showSizeChanger:s.value.showSizeChanger,showLessItems:s.value.showLessItems,size:"small",disabled:v,class:`${d}-pagination`,total:f.length,pageSize:s.value.pageSize,current:r.value,onChange:c},null));const y=u.value.map(S=>{let{renderedEl:$,renderedText:x,item:C}=S;const{disabled:O}=C,w=g.indexOf(C.key)>=0;return p(Tae,{disabled:v||O,key:C.key,item:C,renderedText:x,renderedEl:$,checked:w,prefixCls:d,onClick:i,onRemove:l,showRemove:h},null)});return p(Ve,null,[p("ul",{class:le(`${d}-content`,{[`${d}-content-show-remove`]:h}),onScroll:a},[y]),b])}}}),Hm=e=>{const t=new Map;return e.forEach((n,o)=>{t.set(n,o)}),t},Aae=e=>{const t=new Map;return e.forEach((n,o)=>{let{disabled:r,key:i}=n;r&&t.set(i,o)}),t},Rae=()=>null;function Dae(e){return!!(e&&!Kt(e)&&Object.prototype.toString.call(e)==="[object Object]")}function Tu(e){return e.filter(t=>!t.disabled).map(t=>t.key)}const Nae={prefixCls:String,dataSource:lt([]),filter:String,filterOption:Function,checkedKeys:W.arrayOf(W.string),handleFilter:Function,handleClear:Function,renderItem:Function,showSearch:$e(!1),searchPlaceholder:String,notFoundContent:W.any,itemUnit:String,itemsUnit:String,renderList:W.any,disabled:$e(),direction:Ne(),showSelectAll:$e(),remove:String,selectAll:String,selectCurrent:String,selectInvert:String,removeAll:String,removeCurrent:String,selectAllLabel:W.any,showRemove:$e(),pagination:W.any,onItemSelect:Function,onItemSelectAll:Function,onItemRemove:Function,onScroll:Function},F2=oe({compatConfig:{MODE:3},name:"TransferList",inheritAttrs:!1,props:Nae,slots:Object,setup(e,t){let{attrs:n,slots:o}=t;const r=re(""),i=re(),l=re(),a=(C,O)=>{let w=C?C(O):null;const I=!!w&&At(w).length>0;return I||(w=p(_ae,D(D({},O),{},{ref:l}),null)),{customize:I,bodyContent:w}},s=C=>{const{renderItem:O=Rae}=e,w=O(C),I=Dae(w);return{renderedText:I?w.value:w,renderedEl:I?w.label:w,item:C}},u=re([]),c=re([]);Le(()=>{const C=[],O=[];e.dataSource.forEach(w=>{const I=s(w),{renderedText:T}=I;if(r.value&&r.value.trim()&&!y(T,w))return null;C.push(w),O.push(I)}),u.value=C,c.value=O});const d=P(()=>{const{checkedKeys:C}=e;if(C.length===0)return"none";const O=Hm(C);return u.value.every(w=>O.has(w.key)||!!w.disabled)?"all":"part"}),f=P(()=>Tu(u.value)),g=(C,O)=>Array.from(new Set([...C,...e.checkedKeys])).filter(w=>O.indexOf(w)===-1),v=C=>{let{disabled:O,prefixCls:w}=C;var I;const T=d.value==="all";return p(To,{disabled:((I=e.dataSource)===null||I===void 0?void 0:I.length)===0||O,checked:T,indeterminate:d.value==="part",class:`${w}-checkbox`,onChange:()=>{const E=f.value;e.onItemSelectAll(g(T?[]:E,T?e.checkedKeys:[]))}},null)},h=C=>{var O;const{target:{value:w}}=C;r.value=w,(O=e.handleFilter)===null||O===void 0||O.call(e,C)},b=C=>{var O;r.value="",(O=e.handleClear)===null||O===void 0||O.call(e,C)},y=(C,O)=>{const{filterOption:w}=e;return w?w(r.value,O):C.includes(r.value)},S=(C,O)=>{const{itemsUnit:w,itemUnit:I,selectAllLabel:T}=e;if(T)return typeof T=="function"?T({selectedCount:C,totalCount:O}):T;const _=O>1?w:I;return p(Ve,null,[(C>0?`${C}/`:"")+O,Ft(" "),_])},$=P(()=>Array.isArray(e.notFoundContent)?e.notFoundContent[e.direction==="left"?0:1]:e.notFoundContent),x=(C,O,w,I,T,_)=>{const E=T?p("div",{class:`${C}-body-search-wrapper`},[p(xae,{prefixCls:`${C}-search`,onChange:h,handleClear:b,placeholder:O,value:r.value,disabled:_},null)]):null;let A;const{onEvents:R}=y0(n),{bodyContent:z,customize:M}=a(I,m(m(m({},e),{filteredItems:u.value,filteredRenderItems:c.value,selectedKeys:w}),R));return M?A=p("div",{class:`${C}-body-customize-wrapper`},[z]):A=u.value.length?z:p("div",{class:`${C}-body-not-found`},[$.value]),p("div",{class:T?`${C}-body ${C}-body-with-search`:`${C}-body`,ref:i},[E,A])};return()=>{var C,O;const{prefixCls:w,checkedKeys:I,disabled:T,showSearch:_,searchPlaceholder:E,selectAll:A,selectCurrent:R,selectInvert:z,removeAll:M,removeCurrent:N,renderList:B,onItemSelectAll:k,onItemRemove:F,showSelectAll:L=!0,showRemove:H,pagination:j}=e,Y=(C=o.footer)===null||C===void 0?void 0:C.call(o,m({},e)),Q=le(w,{[`${w}-with-pagination`]:!!j,[`${w}-with-footer`]:!!Y}),U=x(w,E,I,B,_,T),ee=Y?p("div",{class:`${w}-footer`},[Y]):null,X=!H&&!j&&v({disabled:T,prefixCls:w});let J=null;H?J=p(Vt,null,{default:()=>[j&&p(Vt.Item,{key:"removeCurrent",onClick:()=>{const G=Tu((l.value.items||[]).map(q=>q.item));F?.(G)}},{default:()=>[N]}),p(Vt.Item,{key:"removeAll",onClick:()=>{F?.(f.value)}},{default:()=>[M]})]}):J=p(Vt,null,{default:()=>[p(Vt.Item,{key:"selectAll",onClick:()=>{const G=f.value;k(g(G,[]))}},{default:()=>[A]}),j&&p(Vt.Item,{onClick:()=>{const G=Tu((l.value.items||[]).map(q=>q.item));k(g(G,[]))}},{default:()=>[R]}),p(Vt.Item,{key:"selectInvert",onClick:()=>{let G;j?G=Tu((l.value.items||[]).map(te=>te.item)):G=f.value;const q=new Set(I),V=[],K=[];G.forEach(te=>{q.has(te)?K.push(te):V.push(te)}),k(g(V,K))}},{default:()=>[z]})]});const Z=p(Wo,{class:`${w}-header-dropdown`,overlay:J,disabled:T},{default:()=>[p(Dl,null,null)]});return p("div",{class:Q,style:n.style},[p("div",{class:`${w}-header`},[L?p(Ve,null,[X,Z]):null,p("span",{class:`${w}-header-selected`},[p("span",null,[S(I.length,u.value.length)]),p("span",{class:`${w}-header-title`},[(O=o.titleText)===null||O===void 0?void 0:O.call(o)])])]),U,ee])}}});function L2(){}const f1=e=>{const{disabled:t,moveToLeft:n=L2,moveToRight:o=L2,leftArrowText:r="",rightArrowText:i="",leftActive:l,rightActive:a,class:s,style:u,direction:c,oneWay:d}=e;return p("div",{class:s,style:u},[p(Lt,{type:"primary",size:"small",disabled:t||!a,onClick:o,icon:p(c!=="rtl"?ho:mr,null,null)},{default:()=>[i]}),!d&&p(Lt,{type:"primary",size:"small",disabled:t||!l,onClick:n,icon:p(c!=="rtl"?mr:ho,null,null)},{default:()=>[r]})])};f1.displayName="Operation";f1.inheritAttrs=!1;const Bae=e=>{const{antCls:t,componentCls:n,listHeight:o,controlHeightLG:r,marginXXS:i,margin:l}=e,a=`${t}-table`,s=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:o},[`${a}-wrapper`]:{[`${a}-small`]:{border:0,borderRadius:0,[`${a}-selection-column`]:{width:r,minWidth:r}},[`${a}-pagination${a}-pagination`]:{margin:`${l}px 0 ${i}px`}},[`${s}[disabled]`]:{backgroundColor:"transparent"}}}},z2=(e,t)=>{const{componentCls:n,colorBorder:o}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:o}}}},kae=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:m({},z2(e,e.colorError)),[`${t}-status-warning`]:m({},z2(e,e.colorWarning))}},Fae=e=>{const{componentCls:t,colorBorder:n,colorSplit:o,lineWidth:r,transferItemHeight:i,transferHeaderHeight:l,transferHeaderVerticalPadding:a,transferItemPaddingVertical:s,controlItemBgActive:u,controlItemBgActiveHover:c,colorTextDisabled:d,listHeight:f,listWidth:g,listWidthLG:v,fontSizeIcon:h,marginXS:b,paddingSM:y,lineType:S,iconCls:$,motionDurationSlow:x}=e;return{display:"flex",flexDirection:"column",width:g,height:f,border:`${r}px ${S} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:v,height:"auto"},"&-search":{[`${$}-search`]:{color:d}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:l,padding:`${a-r}px ${y}px ${a}px`,color:e.colorText,background:e.colorBgContainer,borderBottom:`${r}px ${S} ${o}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":m(m({},Gt),{flex:"auto",textAlign:"end"}),"&-dropdown":m(m({},Tl()),{fontSize:h,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",overflow:"hidden",fontSize:e.fontSize,"&-search-wrapper":{position:"relative",flex:"none",padding:y}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none","&-item":{display:"flex",alignItems:"center",minHeight:i,padding:`${s}px ${y}px`,transition:`all ${x}`,"> *:not(:last-child)":{marginInlineEnd:b},"> *":{flex:"none"},"&-text":m(m({},Gt),{flex:"auto"}),"&-remove":{position:"relative",color:n,cursor:"pointer",transition:`all ${x}`,"&:hover":{color:e.colorLinkHover},"&::after":{position:"absolute",insert:`-${s}px -50%`,content:'""'}},[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:e.controlItemBgHover,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:c}},"&-checked":{backgroundColor:u},"&-disabled":{color:d,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:`${e.paddingXS}px 0`,textAlign:"end",borderTop:`${r}px ${S} ${o}`},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:d,textAlign:"center"},"&-footer":{borderTop:`${r}px ${S} ${o}`},"&-checkbox":{lineHeight:1}}},Lae=e=>{const{antCls:t,iconCls:n,componentCls:o,transferHeaderHeight:r,marginXS:i,marginXXS:l,fontSizeIcon:a,fontSize:s,lineHeight:u}=e;return{[o]:m(m({},Ue(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${o}-disabled`]:{[`${o}-list`]:{background:e.colorBgContainerDisabled}},[`${o}-list`]:Fae(e),[`${o}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${i}px`,verticalAlign:"middle",[`${t}-btn`]:{display:"block","&:first-child":{marginBottom:l},[n]:{fontSize:a}}},[`${t}-empty-image`]:{maxHeight:r/2-Math.round(s*u)}})}},zae=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Hae=Ke("Transfer",e=>{const{fontSize:t,lineHeight:n,lineWidth:o,controlHeightLG:r,controlHeight:i}=e,l=Math.round(t*n),a=r,s=i,u=ke(e,{transferItemHeight:s,transferHeaderHeight:a,transferHeaderVerticalPadding:Math.ceil((a-o-l)/2),transferItemPaddingVertical:(s-l)/2});return[Lae(u),Bae(u),kae(u),zae(u)]},{listWidth:180,listHeight:200,listWidthLG:250}),jae=()=>({id:String,prefixCls:String,dataSource:lt([]),disabled:$e(),targetKeys:lt(),selectedKeys:lt(),render:ve(),listStyle:Fe([Function,Object],()=>({})),operationStyle:De(void 0),titles:lt(),operations:lt(),showSearch:$e(!1),filterOption:ve(),searchPlaceholder:String,notFoundContent:W.any,locale:De(),rowKey:ve(),showSelectAll:$e(),selectAllLabels:lt(),children:ve(),oneWay:$e(),pagination:Fe([Object,Boolean]),status:Ne(),onChange:ve(),onSelectChange:ve(),onSearch:ve(),onScroll:ve(),"onUpdate:targetKeys":ve(),"onUpdate:selectedKeys":ve()}),Vae=oe({compatConfig:{MODE:3},name:"ATransfer",inheritAttrs:!1,props:jae(),slots:Object,setup(e,t){let{emit:n,attrs:o,slots:r,expose:i}=t;const{configProvider:l,prefixCls:a,direction:s}=Te("transfer",e),[u,c]=Hae(a),d=re([]),f=re([]),g=Qt(),v=dn.useInject(),h=P(()=>Qo(v.status,e.status));ye(()=>e.selectedKeys,()=>{var U,ee;d.value=((U=e.selectedKeys)===null||U===void 0?void 0:U.filter(X=>e.targetKeys.indexOf(X)===-1))||[],f.value=((ee=e.selectedKeys)===null||ee===void 0?void 0:ee.filter(X=>e.targetKeys.indexOf(X)>-1))||[]},{immediate:!0});const b=(U,ee)=>{const X={notFoundContent:ee("Transfer")},J=Zt(r,e,"notFoundContent");return J&&(X.notFoundContent=J),e.searchPlaceholder!==void 0&&(X.searchPlaceholder=e.searchPlaceholder),m(m(m({},U),X),e.locale)},y=U=>{const{targetKeys:ee=[],dataSource:X=[]}=e,J=U==="right"?d.value:f.value,Z=Aae(X),G=J.filter(te=>!Z.has(te)),q=Hm(G),V=U==="right"?G.concat(ee):ee.filter(te=>!q.has(te)),K=U==="right"?"left":"right";U==="right"?d.value=[]:f.value=[],n("update:targetKeys",V),w(K,[]),n("change",V,U,G),g.onFieldChange()},S=()=>{y("left")},$=()=>{y("right")},x=(U,ee)=>{w(U,ee)},C=U=>x("left",U),O=U=>x("right",U),w=(U,ee)=>{U==="left"?(e.selectedKeys||(d.value=ee),n("update:selectedKeys",[...ee,...f.value]),n("selectChange",ee,Je(f.value))):(e.selectedKeys||(f.value=ee),n("update:selectedKeys",[...ee,...d.value]),n("selectChange",Je(d.value),ee))},I=(U,ee)=>{const X=ee.target.value;n("search",U,X)},T=U=>{I("left",U)},_=U=>{I("right",U)},E=U=>{n("search",U,"")},A=()=>{E("left")},R=()=>{E("right")},z=(U,ee,X)=>{const J=U==="left"?[...d.value]:[...f.value],Z=J.indexOf(ee);Z>-1&&J.splice(Z,1),X&&J.push(ee),w(U,J)},M=(U,ee)=>z("left",U,ee),N=(U,ee)=>z("right",U,ee),B=U=>{const{targetKeys:ee=[]}=e,X=ee.filter(J=>!U.includes(J));n("update:targetKeys",X),n("change",X,"left",[...U])},k=(U,ee)=>{n("scroll",U,ee)},F=U=>{k("left",U)},L=U=>{k("right",U)},H=(U,ee)=>typeof U=="function"?U({direction:ee}):U,j=re([]),Y=re([]);Le(()=>{const{dataSource:U,rowKey:ee,targetKeys:X=[]}=e,J=[],Z=new Array(X.length),G=Hm(X);U.forEach(q=>{ee&&(q.key=ee(q)),G.has(q.key)?Z[G.get(q.key)]=q:J.push(q)}),j.value=J,Y.value=Z}),i({handleSelectChange:w});const Q=U=>{var ee,X,J,Z,G,q;const{disabled:V,operations:K=[],showSearch:te,listStyle:ue,operationStyle:ie,filterOption:ae,showSelectAll:ce,selectAllLabels:se=[],oneWay:pe,pagination:ge,id:he=g.id.value}=e,{class:me,style:xe}=o,fe=r.children,de=!fe&&ge,be=l.renderEmpty,we=b(U,be),{footer:Ie}=r,Ae=e.render||r.render,Se=f.value.length>0,Ce=d.value.length>0,Oe=le(a.value,me,{[`${a.value}-disabled`]:V,[`${a.value}-customize-list`]:!!fe,[`${a.value}-rtl`]:s.value==="rtl"},Tn(a.value,h.value,v.hasFeedback),c.value),Me=e.titles,Re=(J=(ee=Me&&Me[0])!==null&&ee!==void 0?ee:(X=r.leftTitle)===null||X===void 0?void 0:X.call(r))!==null&&J!==void 0?J:(we.titles||["",""])[0],_e=(q=(Z=Me&&Me[1])!==null&&Z!==void 0?Z:(G=r.rightTitle)===null||G===void 0?void 0:G.call(r))!==null&&q!==void 0?q:(we.titles||["",""])[1];return p("div",D(D({},o),{},{class:Oe,style:xe,id:he}),[p(F2,D({key:"leftList",prefixCls:`${a.value}-list`,dataSource:j.value,filterOption:ae,style:H(ue,"left"),checkedKeys:d.value,handleFilter:T,handleClear:A,onItemSelect:M,onItemSelectAll:C,renderItem:Ae,showSearch:te,renderList:fe,onScroll:F,disabled:V,direction:s.value==="rtl"?"right":"left",showSelectAll:ce,selectAllLabel:se[0]||r.leftSelectAllLabel,pagination:de},we),{titleText:()=>Re,footer:Ie}),p(f1,{key:"operation",class:`${a.value}-operation`,rightActive:Ce,rightArrowText:K[0],moveToRight:$,leftActive:Se,leftArrowText:K[1],moveToLeft:S,style:ie,disabled:V,direction:s.value,oneWay:pe},null),p(F2,D({key:"rightList",prefixCls:`${a.value}-list`,dataSource:Y.value,filterOption:ae,style:H(ue,"right"),checkedKeys:f.value,handleFilter:_,handleClear:R,onItemSelect:N,onItemSelectAll:O,onItemRemove:B,renderItem:Ae,showSearch:te,renderList:fe,onScroll:L,disabled:V,direction:s.value==="rtl"?"left":"right",showSelectAll:ce,selectAllLabel:se[1]||r.rightSelectAllLabel,showRemove:pe,pagination:de},we),{titleText:()=>_e,footer:Ie})])};return()=>u(p(Il,{componentName:"Transfer",defaultLocale:Vn.Transfer,children:Q},null))}}),Wae=It(Vae);function Kae(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function Gae(e){const{label:t,value:n,children:o}=e||{},r=n||"value";return{_title:t?[t]:["title","label"],value:r,key:r,children:o||"children"}}function jm(e){return e.disabled||e.disableCheckbox||e.checkable===!1}function Xae(e,t){const n=[];function o(r){r.forEach(i=>{n.push(i[t.value]);const l=i[t.children];l&&o(l)})}return o(e),n}function H2(e){return e==null}const YT=Symbol("TreeSelectContextPropsKey");function Uae(e){return Xe(YT,e)}function Yae(){return He(YT,{})}const qae={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Zae=oe({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(e,t){let{slots:n,expose:o}=t;const r=Tc(),i=wp(),l=Yae(),a=re(),s=nb(()=>l.treeData,[()=>r.open,()=>l.treeData],C=>C[0]),u=P(()=>{const{checkable:C,halfCheckedKeys:O,checkedKeys:w}=i;return C?{checked:w,halfChecked:O}:null});ye(()=>r.open,()=>{ot(()=>{var C;r.open&&!r.multiple&&i.checkedKeys.length&&((C=a.value)===null||C===void 0||C.scrollTo({key:i.checkedKeys[0]}))})},{immediate:!0,flush:"post"});const c=P(()=>String(r.searchValue).toLowerCase()),d=C=>c.value?String(C[i.treeNodeFilterProp]).toLowerCase().includes(c.value):!1,f=ne(i.treeDefaultExpandedKeys),g=ne(null);ye(()=>r.searchValue,()=>{r.searchValue&&(g.value=Xae(Je(l.treeData),Je(l.fieldNames)))},{immediate:!0});const v=P(()=>i.treeExpandedKeys?i.treeExpandedKeys.slice():r.searchValue?g.value:f.value),h=C=>{var O;f.value=C,g.value=C,(O=i.onTreeExpand)===null||O===void 0||O.call(i,C)},b=C=>{C.preventDefault()},y=(C,O)=>{let{node:w}=O;var I,T;const{checkable:_,checkedKeys:E}=i;_&&jm(w)||((I=l.onSelect)===null||I===void 0||I.call(l,w.key,{selected:!E.includes(w.key)}),r.multiple||(T=r.toggleOpen)===null||T===void 0||T.call(r,!1))},S=re(null),$=P(()=>i.keyEntities[S.value]),x=C=>{S.value=C};return o({scrollTo:function(){for(var C,O,w=arguments.length,I=new Array(w),T=0;T{var O;const{which:w}=C;switch(w){case Pe.UP:case Pe.DOWN:case Pe.LEFT:case Pe.RIGHT:(O=a.value)===null||O===void 0||O.onKeydown(C);break;case Pe.ENTER:{if($.value){const{selectable:I,value:T}=$.value.node||{};I!==!1&&y(null,{node:{key:S.value},selected:!i.checkedKeys.includes(T)})}break}case Pe.ESC:r.toggleOpen(!1)}},onKeyup:()=>{}}),()=>{var C;const{prefixCls:O,multiple:w,searchValue:I,open:T,notFoundContent:_=(C=n.notFoundContent)===null||C===void 0?void 0:C.call(n)}=r,{listHeight:E,listItemHeight:A,virtual:R,dropdownMatchSelectWidth:z,treeExpandAction:M}=l,{checkable:N,treeDefaultExpandAll:B,treeIcon:k,showTreeIcon:F,switcherIcon:L,treeLine:H,loadData:j,treeLoadedKeys:Y,treeMotion:Q,onTreeLoad:U,checkedKeys:ee}=i;if(s.value.length===0)return p("div",{role:"listbox",class:`${O}-empty`,onMousedown:b},[_]);const X={fieldNames:l.fieldNames};return Y&&(X.loadedKeys=Y),v.value&&(X.expandedKeys=v.value),p("div",{onMousedown:b},[$.value&&T&&p("span",{style:qae,"aria-live":"assertive"},[$.value.node.value]),p(kT,D(D({ref:a,focusable:!1,prefixCls:`${O}-tree`,treeData:s.value,height:E,itemHeight:A,virtual:R!==!1&&z!==!1,multiple:w,icon:k,showIcon:F,switcherIcon:L,showLine:H,loadData:I?null:j,motion:Q,activeKey:S.value,checkable:N,checkStrictly:!0,checkedKeys:u.value,selectedKeys:N?[]:ee,defaultExpandAll:B},X),{},{onActiveChange:x,onSelect:y,onCheck:y,onExpand:h,onLoad:U,filterTreeNode:d,expandAction:M}),m(m({},n),{checkable:i.customSlots.treeCheckable}))])}}}),Qae="SHOW_ALL",qT="SHOW_PARENT",p1="SHOW_CHILD";function j2(e,t,n,o){const r=new Set(e);return t===p1?e.filter(i=>{const l=n[i];return!(l&&l.children&&l.children.some(a=>{let{node:s}=a;return r.has(s[o.value])})&&l.children.every(a=>{let{node:s}=a;return jm(s)||r.has(s[o.value])}))}):t===qT?e.filter(i=>{const l=n[i],a=l?l.parent:null;return!(a&&!jm(a.node)&&r.has(a.key))}):e}const Za=()=>null;Za.inheritAttrs=!1;Za.displayName="ATreeSelectNode";Za.isTreeSelectNode=!0;var Jae=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r0&&arguments[0]!==void 0?arguments[0]:[];return At(n).map(o=>{var r,i,l;if(!ese(o))return null;const a=o.children||{},s=o.key,u={};for(const[w,I]of Object.entries(o.props))u[ka(w)]=I;const{isLeaf:c,checkable:d,selectable:f,disabled:g,disableCheckbox:v}=u,h={isLeaf:c||c===""||void 0,checkable:d||d===""||void 0,selectable:f||f===""||void 0,disabled:g||g===""||void 0,disableCheckbox:v||v===""||void 0},b=m(m({},u),h),{title:y=(r=a.title)===null||r===void 0?void 0:r.call(a,b),switcherIcon:S=(i=a.switcherIcon)===null||i===void 0?void 0:i.call(a,b)}=u,$=Jae(u,["title","switcherIcon"]),x=(l=a.default)===null||l===void 0?void 0:l.call(a),C=m(m(m({},$),{title:y,switcherIcon:S,key:s,isLeaf:c}),h),O=t(x);return O.length&&(C.children=O),C})}return t(e)}function Vm(e){if(!e)return e;const t=m({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return t}}),t}function nse(e,t,n,o,r,i){let l=null,a=null;function s(){function u(c){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return c.map((g,v)=>{const h=`${d}-${v}`,b=g[i.value],y=n.includes(b),S=u(g[i.children]||[],h,y),$=p(Za,g,{default:()=>[S.map(x=>x.node)]});if(t===b&&(l=$),y){const x={pos:h,node:$,children:S};return f||a.push(x),x}return null}).filter(g=>g)}a||(a=[],u(o),a.sort((c,d)=>{let{node:{props:{value:f}}}=c,{node:{props:{value:g}}}=d;const v=n.indexOf(f),h=n.indexOf(g);return v-h}))}Object.defineProperty(e,"triggerNode",{get(){return s(),l}}),Object.defineProperty(e,"allCheckedNodes",{get(){return s(),r?a:a.map(u=>{let{node:c}=u;return c})}})}function ose(e,t){let{id:n,pId:o,rootPId:r}=t;const i={},l=[];return e.map(s=>{const u=m({},s),c=u[n];return i[c]=u,u.key=u.key||c,u}).forEach(s=>{const u=s[o],c=i[u];c&&(c.children=c.children||[],c.children.push(s)),(u===r||!c&&r===null)&&l.push(s)}),l}function rse(e,t,n){const o=ne();return ye([n,e,t],()=>{const r=n.value;e.value?o.value=n.value?ose(Je(e.value),m({id:"id",pId:"pId",rootPId:null},r!==!0?r:{})):Je(e.value).slice():o.value=tse(Je(t.value))},{immediate:!0,deep:!0}),o}const ise=(e=>{const t=ne({valueLabels:new Map}),n=ne();return ye(e,()=>{n.value=Je(e.value)},{immediate:!0}),[P(()=>{const{valueLabels:r}=t.value,i=new Map,l=n.value.map(a=>{var s;const{value:u}=a,c=(s=a.label)!==null&&s!==void 0?s:r.get(u);return i.set(u,c),m(m({},a),{label:c})});return t.value.valueLabels=i,l})]}),lse=((e,t)=>{const n=ne(new Map),o=ne({});return Le(()=>{const r=t.value,i=zc(e.value,{fieldNames:r,initWrapper:l=>m(m({},l),{valueEntities:new Map}),processEntity:(l,a)=>{const s=l.node[r.value];a.valueEntities.set(s,l)}});n.value=i.valueEntities,o.value=i.keyEntities}),{valueEntities:n,keyEntities:o}}),ase=((e,t,n,o,r,i)=>{const l=ne([]),a=ne([]);return Le(()=>{let s=e.value.map(d=>{let{value:f}=d;return f}),u=t.value.map(d=>{let{value:f}=d;return f});const c=s.filter(d=>!o.value[d]);n.value&&({checkedKeys:s,halfCheckedKeys:u}=Io(s,!0,o.value,r.value,i.value)),l.value=Array.from(new Set([...c,...s])),a.value=u}),[l,a]}),sse=((e,t,n)=>{let{treeNodeFilterProp:o,filterTreeNode:r,fieldNames:i}=n;return P(()=>{const{children:l}=i.value,a=t.value,s=o?.value;if(!a||r.value===!1)return e.value;let u;if(typeof r.value=="function")u=r.value;else{const d=a.toUpperCase();u=(f,g)=>{const v=g[s];return String(v).toUpperCase().includes(d)}}function c(d){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const g=[];for(let v=0,h=d.length;ve.treeCheckable&&!e.treeCheckStrictly),a=P(()=>e.treeCheckable||e.treeCheckStrictly),s=P(()=>e.treeCheckStrictly||e.labelInValue),u=P(()=>a.value||e.multiple),c=P(()=>Gae(e.fieldNames)),[d,f]=Pt("",{value:P(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:he=>he||""}),g=he=>{var me;f(he),(me=e.onSearch)===null||me===void 0||me.call(e,he)},v=rse(ze(e,"treeData"),ze(e,"children"),ze(e,"treeDataSimpleMode")),{keyEntities:h,valueEntities:b}=lse(v,c),y=he=>{const me=[],xe=[];return he.forEach(fe=>{b.value.has(fe)?xe.push(fe):me.push(fe)}),{missingRawValues:me,existRawValues:xe}},S=sse(v,d,{fieldNames:c,treeNodeFilterProp:ze(e,"treeNodeFilterProp"),filterTreeNode:ze(e,"filterTreeNode")}),$=he=>{if(he){if(e.treeNodeLabelProp)return he[e.treeNodeLabelProp];const{_title:me}=c.value;for(let xe=0;xeKae(he).map(xe=>cse(xe)?{value:xe}:xe),C=he=>x(he).map(xe=>{let{label:fe}=xe;const{value:de,halfChecked:be}=xe;let we;const Ie=b.value.get(de);return Ie&&(fe=fe??$(Ie.node),we=Ie.node.disabled),{label:fe,value:de,halfChecked:be,disabled:we}}),[O,w]=Pt(e.defaultValue,{value:ze(e,"value")}),I=P(()=>x(O.value)),T=ne([]),_=ne([]);Le(()=>{const he=[],me=[];I.value.forEach(xe=>{xe.halfChecked?me.push(xe):he.push(xe)}),T.value=he,_.value=me});const E=P(()=>T.value.map(he=>he.value)),{maxLevel:A,levelEntities:R}=Qp(h),[z,M]=ase(T,_,l,h,A,R),N=P(()=>{const xe=j2(z.value,e.showCheckedStrategy,h.value,c.value).map(be=>{var we,Ie,Ae;return(Ae=(Ie=(we=h.value[be])===null||we===void 0?void 0:we.node)===null||Ie===void 0?void 0:Ie[c.value.value])!==null&&Ae!==void 0?Ae:be}).map(be=>{const we=T.value.find(Ie=>Ie.value===be);return{value:be,label:we?.label}}),fe=C(xe),de=fe[0];return!u.value&&de&&H2(de.value)&&H2(de.label)?[]:fe.map(be=>{var we;return m(m({},be),{label:(we=be.label)!==null&&we!==void 0?we:be.value})})}),[B]=ise(N),k=(he,me,xe)=>{const fe=C(he);if(w(fe),e.autoClearSearchValue&&f(""),e.onChange){let de=he;l.value&&(de=j2(he,e.showCheckedStrategy,h.value,c.value).map(Re=>{const _e=b.value.get(Re);return _e?_e.node[c.value.value]:Re}));const{triggerValue:be,selected:we}=me||{triggerValue:void 0,selected:void 0};let Ie=de;if(e.treeCheckStrictly){const Me=_.value.filter(Re=>!de.includes(Re.value));Ie=[...Ie,...Me]}const Ae=C(Ie),Se={preValue:T.value,triggerValue:be};let Ce=!0;(e.treeCheckStrictly||xe==="selection"&&!we)&&(Ce=!1),nse(Se,be,he,v.value,Ce,c.value),a.value?Se.checked=we:Se.selected=we;const Oe=s.value?Ae:Ae.map(Me=>Me.value);e.onChange(u.value?Oe:Oe[0],s.value?null:Ae.map(Me=>Me.label),Se)}},F=(he,me)=>{let{selected:xe,source:fe}=me;var de,be,we;const Ie=Je(h.value),Ae=Je(b.value),Se=Ie[he],Ce=Se?.node,Oe=(de=Ce?.[c.value.value])!==null&&de!==void 0?de:he;if(!u.value)k([Oe],{selected:!0,triggerValue:Oe},"option");else{let Me=xe?[...E.value,Oe]:z.value.filter(Re=>Re!==Oe);if(l.value){const{missingRawValues:Re,existRawValues:_e}=y(Me),Be=_e.map(dt=>Ae.get(dt).key);let et;xe?{checkedKeys:et}=Io(Be,!0,Ie,A.value,R.value):{checkedKeys:et}=Io(Be,{halfCheckedKeys:M.value},Ie,A.value,R.value),Me=[...Re,...et.map(dt=>Ie[dt].node[c.value.value])]}k(Me,{selected:xe,triggerValue:Oe},fe||"option")}xe||!u.value?(be=e.onSelect)===null||be===void 0||be.call(e,Oe,Vm(Ce)):(we=e.onDeselect)===null||we===void 0||we.call(e,Oe,Vm(Ce))},L=he=>{if(e.onDropdownVisibleChange){const me={};Object.defineProperty(me,"documentClickClose",{get(){return!1}}),e.onDropdownVisibleChange(he,me)}},H=(he,me)=>{const xe=he.map(fe=>fe.value);if(me.type==="clear"){k(xe,{},"selection");return}me.values.length&&F(me.values[0].value,{selected:!1,source:"selection"})},{treeNodeFilterProp:j,loadData:Y,treeLoadedKeys:Q,onTreeLoad:U,treeDefaultExpandAll:ee,treeExpandedKeys:X,treeDefaultExpandedKeys:J,onTreeExpand:Z,virtual:G,listHeight:q,listItemHeight:V,treeLine:K,treeIcon:te,showTreeIcon:ue,switcherIcon:ie,treeMotion:ae,customSlots:ce,dropdownMatchSelectWidth:se,treeExpandAction:pe}=jo(e);Ok(Zd({checkable:a,loadData:Y,treeLoadedKeys:Q,onTreeLoad:U,checkedKeys:z,halfCheckedKeys:M,treeDefaultExpandAll:ee,treeExpandedKeys:X,treeDefaultExpandedKeys:J,onTreeExpand:Z,treeIcon:te,treeMotion:ae,showTreeIcon:ue,switcherIcon:ie,treeLine:K,treeNodeFilterProp:j,keyEntities:h,customSlots:ce})),Uae(Zd({virtual:G,listHeight:q,listItemHeight:V,treeData:S,fieldNames:c,onSelect:F,dropdownMatchSelectWidth:se,treeExpandAction:pe}));const ge=re();return o({focus(){var he;(he=ge.value)===null||he===void 0||he.focus()},blur(){var he;(he=ge.value)===null||he===void 0||he.blur()},scrollTo(he){var me;(me=ge.value)===null||me===void 0||me.scrollTo(he)}}),()=>{var he;const me=tt(e,["id","prefixCls","customSlots","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","virtual","listHeight","listItemHeight","onDropdownVisibleChange","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"]);return p(tb,D(D(D({ref:ge},n),me),{},{id:i,prefixCls:e.prefixCls,mode:u.value?"multiple":void 0,displayValues:B.value,onDisplayValuesChange:H,searchValue:d.value,onSearch:g,OptionList:Zae,emptyOptions:!v.value.length,onDropdownVisibleChange:L,tagRender:e.tagRender||r.tagRender,dropdownMatchSelectWidth:(he=e.dropdownMatchSelectWidth)!==null&&he!==void 0?he:!0}),r)}}}),dse=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:o}=e,r=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${e.paddingXS}px ${e.paddingXS/2}px`},LT(n,ke(e,{colorBgContainer:o})),{[r]:{borderRadius:0,"&-list-holder-inner":{alignItems:"stretch",[`${r}-treenode`]:{[`${r}-node-content-wrapper`]:{flex:"auto"}}}}},ng(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${r}-switcher${r}-switcher_close`]:{[`${r}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};function fse(e,t){return Ke("TreeSelect",n=>{const o=ke(n,{treePrefixCls:t.value});return[dse(o)]})(e)}const V2=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function pse(){return m(m({},tt(ZT(),["showTreeIcon","treeMotion","inputIcon","getInputElement","treeLine","customSlots"])),{suffixIcon:W.any,size:Ne(),bordered:$e(),treeLine:Fe([Boolean,Object]),replaceFields:De(),placement:Ne(),status:Ne(),popupClassName:String,dropdownClassName:String,"onUpdate:value":ve(),"onUpdate:treeExpandedKeys":ve(),"onUpdate:searchValue":ve()})}const Gh=oe({compatConfig:{MODE:3},name:"ATreeSelect",inheritAttrs:!1,props:Ze(pse(),{choiceTransitionName:"",listHeight:256,treeIcon:!1,listItemHeight:26,bordered:!0}),slots:Object,setup(e,t){let{attrs:n,slots:o,expose:r,emit:i}=t;e.treeData===void 0&&o.default,Ct(e.multiple!==!1||!e.treeCheckable,"TreeSelect","`multiple` will always be `true` when `treeCheckable` is true"),Ct(e.replaceFields===void 0,"TreeSelect","`replaceFields` is deprecated, please use fieldNames instead"),Ct(!e.dropdownClassName,"TreeSelect","`dropdownClassName` is deprecated. Please use `popupClassName` instead.");const l=Qt(),a=dn.useInject(),s=P(()=>Qo(a.status,e.status)),{prefixCls:u,renderEmpty:c,direction:d,virtual:f,dropdownMatchSelectWidth:g,size:v,getPopupContainer:h,getPrefixCls:b,disabled:y}=Te("select",e),{compactSize:S,compactItemClassnames:$}=Ri(u,d),x=P(()=>S.value||v.value),C=Jn(),O=P(()=>{var Q;return(Q=y.value)!==null&&Q!==void 0?Q:C.value}),w=P(()=>b()),I=P(()=>e.placement!==void 0?e.placement:d.value==="rtl"?"bottomRight":"bottomLeft"),T=P(()=>V2(w.value,Z0(I.value),e.transitionName)),_=P(()=>V2(w.value,"",e.choiceTransitionName)),E=P(()=>b("select-tree",e.prefixCls)),A=P(()=>b("tree-select",e.prefixCls)),[R,z]=xb(u),[M]=fse(A,E),N=P(()=>le(e.popupClassName||e.dropdownClassName,`${A.value}-dropdown`,{[`${A.value}-dropdown-rtl`]:d.value==="rtl"},z.value)),B=P(()=>!!(e.treeCheckable||e.multiple)),k=P(()=>e.showArrow!==void 0?e.showArrow:e.loading||!B.value),F=re();r({focus(){var Q,U;(U=(Q=F.value).focus)===null||U===void 0||U.call(Q)},blur(){var Q,U;(U=(Q=F.value).blur)===null||U===void 0||U.call(Q)}});const L=function(){for(var Q=arguments.length,U=new Array(Q),ee=0;ee{i("update:treeExpandedKeys",Q),i("treeExpand",Q)},j=Q=>{i("update:searchValue",Q),i("search",Q)},Y=Q=>{i("blur",Q),l.onFieldBlur()};return()=>{var Q,U,ee;const{notFoundContent:X=(Q=o.notFoundContent)===null||Q===void 0?void 0:Q.call(o),prefixCls:J,bordered:Z,listHeight:G,listItemHeight:q,multiple:V,treeIcon:K,treeLine:te,showArrow:ue,switcherIcon:ie=(U=o.switcherIcon)===null||U===void 0?void 0:U.call(o),fieldNames:ae=e.replaceFields,id:ce=l.id.value,placeholder:se=(ee=o.placeholder)===null||ee===void 0?void 0:ee.call(o)}=e,{isFormItemInput:pe,hasFeedback:ge,feedbackIcon:he}=a,{suffixIcon:me,removeIcon:xe,clearIcon:fe}=sb(m(m({},e),{multiple:B.value,showArrow:k.value,hasFeedback:ge,feedbackIcon:he,prefixCls:u.value}),o);let de;X!==void 0?de=X:de=c("Select");const be=tt(e,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","bordered","status","onUpdate:value","onUpdate:treeExpandedKeys","onUpdate:searchValue"]),we=le(!J&&A.value,{[`${u.value}-lg`]:x.value==="large",[`${u.value}-sm`]:x.value==="small",[`${u.value}-rtl`]:d.value==="rtl",[`${u.value}-borderless`]:!Z,[`${u.value}-in-form-item`]:pe},Tn(u.value,s.value,ge),$.value,n.class,z.value),Ie={};return e.treeData===void 0&&o.default&&(Ie.children=bt(o.default())),R(M(p(use,D(D(D(D({},n),be),{},{disabled:O.value,virtual:f.value,dropdownMatchSelectWidth:g.value,id:ce,fieldNames:ae,ref:F,prefixCls:u.value,class:we,listHeight:G,listItemHeight:q,treeLine:!!te,inputIcon:me,multiple:V,removeIcon:xe,clearIcon:fe,switcherIcon:Ae=>FT(E.value,ie,Ae,o.leafIcon,te),showTreeIcon:K,notFoundContent:de,getPopupContainer:h?.value,treeMotion:null,dropdownClassName:N.value,choiceTransitionName:_.value,onChange:L,onBlur:Y,onSearch:j,onTreeExpand:H},Ie),{},{transitionName:T.value,customSlots:m(m({},o),{treeCheckable:()=>p("span",{class:`${u.value}-tree-checkbox-inner`},null)}),maxTagPlaceholder:e.maxTagPlaceholder||o.maxTagPlaceholder,placement:I.value,showArrow:ge||ue,placeholder:se}),m(m({},o),{treeCheckable:()=>p("span",{class:`${u.value}-tree-checkbox-inner`},null)}))))}}}),Wm=Za,gse=m(Gh,{TreeNode:Za,SHOW_ALL:Qae,SHOW_PARENT:qT,SHOW_CHILD:p1,install:e=>(e.component(Gh.name,Gh),e.component(Wm.displayName,Wm),e)}),Xh=()=>({format:String,showNow:$e(),showHour:$e(),showMinute:$e(),showSecond:$e(),use12Hours:$e(),hourStep:Number,minuteStep:Number,secondStep:Number,hideDisabledOptions:$e(),popupClassName:String,status:Ne()});function hse(e){const t=g5(e,m(m({},Xh()),{order:{type:Boolean,default:!0}})),{TimePicker:n,RangePicker:o}=t,r=oe({name:"ATimePicker",inheritAttrs:!1,props:m(m(m(m({},If()),d5()),Xh()),{addon:{type:Function}}),slots:Object,setup(l,a){let{slots:s,expose:u,emit:c,attrs:d}=a;const f=l,g=Qt();Ct(!(s.addon||f.addon),"TimePicker","`addon` is deprecated. Please use `v-slot:renderExtraFooter` instead.");const v=re();u({focus:()=>{var x;(x=v.value)===null||x===void 0||x.focus()},blur:()=>{var x;(x=v.value)===null||x===void 0||x.blur()}});const h=(x,C)=>{c("update:value",x),c("change",x,C),g.onFieldChange()},b=x=>{c("update:open",x),c("openChange",x)},y=x=>{c("focus",x)},S=x=>{c("blur",x),g.onFieldBlur()},$=x=>{c("ok",x)};return()=>{const{id:x=g.id.value}=f;return p(n,D(D(D({},d),tt(f,["onUpdate:value","onUpdate:open"])),{},{id:x,dropdownClassName:f.popupClassName,mode:void 0,ref:v,renderExtraFooter:f.addon||s.addon||f.renderExtraFooter||s.renderExtraFooter,onChange:h,onOpenChange:b,onFocus:y,onBlur:S,onOk:$}),s)}}}),i=oe({name:"ATimeRangePicker",inheritAttrs:!1,props:m(m(m(m({},If()),f5()),Xh()),{order:{type:Boolean,default:!0}}),slots:Object,setup(l,a){let{slots:s,expose:u,emit:c,attrs:d}=a;const f=l,g=re(),v=Qt();u({focus:()=>{var O;(O=g.value)===null||O===void 0||O.focus()},blur:()=>{var O;(O=g.value)===null||O===void 0||O.blur()}});const h=(O,w)=>{c("update:value",O),c("change",O,w),v.onFieldChange()},b=O=>{c("update:open",O),c("openChange",O)},y=O=>{c("focus",O)},S=O=>{c("blur",O),v.onFieldBlur()},$=(O,w)=>{c("panelChange",O,w)},x=O=>{c("ok",O)},C=(O,w,I)=>{c("calendarChange",O,w,I)};return()=>{const{id:O=v.id.value}=f;return p(o,D(D(D({},d),tt(f,["onUpdate:open","onUpdate:value"])),{},{id:O,dropdownClassName:f.popupClassName,picker:"time",mode:void 0,ref:g,onChange:h,onOpenChange:b,onFocus:y,onBlur:S,onPanelChange:$,onOk:x,onCalendarChange:C}),s)}}});return{TimePicker:r,TimeRangePicker:i}}const{TimePicker:Eu,TimeRangePicker:Pd}=hse(kb),vse=m(Eu,{TimePicker:Eu,TimeRangePicker:Pd,install:e=>(e.component(Eu.name,Eu),e.component(Pd.name,Pd),e)}),mse=()=>({prefixCls:String,color:String,dot:W.any,pending:$e(),position:W.oneOf(Sn("left","right","")).def(""),label:W.any}),$c=oe({compatConfig:{MODE:3},name:"ATimelineItem",props:Ze(mse(),{color:"blue",pending:!1}),slots:Object,setup(e,t){let{slots:n}=t;const{prefixCls:o}=Te("timeline",e),r=P(()=>({[`${o.value}-item`]:!0,[`${o.value}-item-pending`]:e.pending})),i=P(()=>/blue|red|green|gray/.test(e.color||"")?void 0:e.color||"blue"),l=P(()=>({[`${o.value}-item-head`]:!0,[`${o.value}-item-head-${e.color||"blue"}`]:!i.value}));return()=>{var a,s,u;const{label:c=(a=n.label)===null||a===void 0?void 0:a.call(n),dot:d=(s=n.dot)===null||s===void 0?void 0:s.call(n)}=e;return p("li",{class:r.value},[c&&p("div",{class:`${o.value}-item-label`},[c]),p("div",{class:`${o.value}-item-tail`},null),p("div",{class:[l.value,!!d&&`${o.value}-item-head-custom`],style:{borderColor:i.value,color:i.value}},[d]),p("div",{class:`${o.value}-item-content`},[(u=n.default)===null||u===void 0?void 0:u.call(n)])])}}}),bse=e=>{const{componentCls:t}=e;return{[t]:m(m({},Ue(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.timeLineItemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize,insetInlineStart:(e.timeLineItemHeadSize-e.timeLineItemTailWidth)/2,height:`calc(100% - ${e.timeLineItemHeadSize}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px ${e.lineType} ${e.colorSplit}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.timeLineItemHeadSize,height:e.timeLineItemHeadSize,backgroundColor:e.colorBgContainer,border:`${e.timeLineHeadBorderWidth}px ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:e.timeLineItemHeadSize/2,insetInlineStart:e.timeLineItemHeadSize/2,width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.timeLineItemCustomHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.lineWidth,marginInlineStart:e.margin+e.timeLineItemHeadSize,marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:e.controlHeightLG*1.2}}},[`&${t}-alternate, &${t}-right, &${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:`-${e.marginXXS}px`,"&-custom":{marginInlineStart:e.timeLineItemTailWidth/2}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${e.marginXXS}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${e.marginSM}px)`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail, ${t}-item-head, @@ -450,7 +450,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ${t}-item-last ${t}-item-tail`]:{display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`&${t}-reverse ${t}-item-last - ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`${t}-item-content`]:{minHeight:e.controlHeightLG*1.2}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.timeLineItemTailWidth,width:`calc(50% - ${e.marginSM}px)`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${e.marginSM}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},yse=Ke("Timeline",e=>{const t=ke(e,{timeLineItemPaddingBottom:e.padding*1.25,timeLineItemHeadSize:10,timeLineItemCustomHeadPaddingVertical:e.paddingXXS,timeLinePaddingInlineEnd:2,timeLineItemTailWidth:e.lineWidthBold,timeLineHeadBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3});return[bse(t)]}),Sse=()=>({prefixCls:String,pending:W.any,pendingDot:W.any,reverse:$e(),mode:W.oneOf(Sn("left","alternate","right",""))}),Ws=oe({compatConfig:{MODE:3},name:"ATimeline",inheritAttrs:!1,props:Ze(Sse(),{reverse:!1,mode:""}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Te("timeline",e),[l,a]=yse(r),s=(u,c)=>{const d=u.props||{};return e.mode==="alternate"?d.position==="right"?`${r.value}-item-right`:d.position==="left"?`${r.value}-item-left`:c%2===0?`${r.value}-item-left`:`${r.value}-item-right`:e.mode==="left"?`${r.value}-item-left`:e.mode==="right"?`${r.value}-item-right`:d.position==="right"?`${r.value}-item-right`:""};return()=>{var u,c,d;const{pending:f=(u=n.pending)===null||u===void 0?void 0:u.call(n),pendingDot:g=(c=n.pendingDot)===null||c===void 0?void 0:c.call(n),reverse:v,mode:h}=e,b=typeof f=="boolean"?null:f,y=_t((d=n.default)===null||d===void 0?void 0:d.call(n)),S=f?p($c,{pending:!!f,dot:g||p(Wn,null,null)},{default:()=>[b]}):null;S&&y.push(S);const $=v?y.reverse():y,x=$.length,C=`${r.value}-item-last`,O=$.map((T,M)=>{const E=M===x-2?C:"",A=M===x-1?C:"";return cn(T,{class:le([!v&&f?E:A,s(T,M)])})}),w=$.some(T=>{var M,E;return!!(!((M=T.props)===null||M===void 0)&&M.label||!((E=T.children)===null||E===void 0)&&E.label)}),I=le(r.value,{[`${r.value}-pending`]:!!f,[`${r.value}-reverse`]:!!v,[`${r.value}-${h}`]:!!h&&!w,[`${r.value}-label`]:w,[`${r.value}-rtl`]:i.value==="rtl"},o.class,a.value);return l(p("ul",D(D({},o),{},{class:I}),[O]))}}});Ws.Item=$c;Ws.install=function(e){return e.component(Ws.name,Ws),e.component($c.name,$c),e};var $se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};function W2(e){for(var t=1;t{const{sizeMarginHeadingVerticalEnd:r,fontWeightStrong:i}=o;return{marginBottom:r,color:n,fontWeight:i,fontSize:e,lineHeight:t}},wse=e=>{const t=[1,2,3,4,5],n={};return t.forEach(o=>{n[` + ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${e.margin}px)`,borderInlineStart:`${e.timeLineItemTailWidth}px dotted ${e.colorSplit}`},[`${t}-item-content`]:{minHeight:e.controlHeightLG*1.2}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:-(e.fontSize*e.lineHeight-e.fontSize)+e.timeLineItemTailWidth,width:`calc(50% - ${e.marginSM}px)`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${e.marginSM}px)`,width:`calc(50% - ${e.marginSM}px)`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},yse=Ke("Timeline",e=>{const t=ke(e,{timeLineItemPaddingBottom:e.padding*1.25,timeLineItemHeadSize:10,timeLineItemCustomHeadPaddingVertical:e.paddingXXS,timeLinePaddingInlineEnd:2,timeLineItemTailWidth:e.lineWidthBold,timeLineHeadBorderWidth:e.wireframe?e.lineWidthBold:e.lineWidth*3});return[bse(t)]}),Sse=()=>({prefixCls:String,pending:W.any,pendingDot:W.any,reverse:$e(),mode:W.oneOf(Sn("left","alternate","right",""))}),Ws=oe({compatConfig:{MODE:3},name:"ATimeline",inheritAttrs:!1,props:Ze(Sse(),{reverse:!1,mode:""}),slots:Object,setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Te("timeline",e),[l,a]=yse(r),s=(u,c)=>{const d=u.props||{};return e.mode==="alternate"?d.position==="right"?`${r.value}-item-right`:d.position==="left"?`${r.value}-item-left`:c%2===0?`${r.value}-item-left`:`${r.value}-item-right`:e.mode==="left"?`${r.value}-item-left`:e.mode==="right"?`${r.value}-item-right`:d.position==="right"?`${r.value}-item-right`:""};return()=>{var u,c,d;const{pending:f=(u=n.pending)===null||u===void 0?void 0:u.call(n),pendingDot:g=(c=n.pendingDot)===null||c===void 0?void 0:c.call(n),reverse:v,mode:h}=e,b=typeof f=="boolean"?null:f,y=At((d=n.default)===null||d===void 0?void 0:d.call(n)),S=f?p($c,{pending:!!f,dot:g||p(Wn,null,null)},{default:()=>[b]}):null;S&&y.push(S);const $=v?y.reverse():y,x=$.length,C=`${r.value}-item-last`,O=$.map((T,_)=>{const E=_===x-2?C:"",A=_===x-1?C:"";return cn(T,{class:le([!v&&f?E:A,s(T,_)])})}),w=$.some(T=>{var _,E;return!!(!((_=T.props)===null||_===void 0)&&_.label||!((E=T.children)===null||E===void 0)&&E.label)}),I=le(r.value,{[`${r.value}-pending`]:!!f,[`${r.value}-reverse`]:!!v,[`${r.value}-${h}`]:!!h&&!w,[`${r.value}-label`]:w,[`${r.value}-rtl`]:i.value==="rtl"},o.class,a.value);return l(p("ul",D(D({},o),{},{class:I}),[O]))}}});Ws.Item=$c;Ws.install=function(e){return e.component(Ws.name,Ws),e.component($c.name,$c),e};var $se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};function W2(e){for(var t=1;t{const{sizeMarginHeadingVerticalEnd:r,fontWeightStrong:i}=o;return{marginBottom:r,color:n,fontWeight:i,fontSize:e,lineHeight:t}},wse=e=>{const t=[1,2,3,4,5],n={};return t.forEach(o=>{n[` h${o}&, div&-h${o}, div&-h${o} > textarea, @@ -465,10 +465,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ${t}-expand, ${t}-edit, ${t}-copy - `]:m(m({},pp(e)),{marginInlineStart:e.marginXXS})}),Ise(e)),Tse(e)),Ese()),{"&-rtl":{direction:"rtl"}})}},QT=Ke("Typography",e=>[Mse(e)],{sizeMarginHeadingVerticalStart:"1.2em",sizeMarginHeadingVerticalEnd:"0.5em"}),_se=()=>({prefixCls:String,value:String,maxlength:Number,autoSize:{type:[Boolean,Object]},onSave:Function,onCancel:Function,onEnd:Function,onChange:Function,originContent:String,direction:String,component:String}),Ase=oe({compatConfig:{MODE:3},name:"Editable",inheritAttrs:!1,props:_se(),setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:i}=jo(e),l=ct({current:e.value||"",lastKeyCode:void 0,inComposition:!1,cancelFlag:!1});ye(()=>e.value,S=>{l.current=S});const a=re();je(()=>{var S;if(a.value){const $=(S=a.value)===null||S===void 0?void 0:S.resizableTextArea,x=$?.textArea;x.focus();const{length:C}=x.value;x.setSelectionRange(C,C)}});function s(S){a.value=S}function u(S){let{target:{value:$}}=S;l.current=$.replace(/[\r\n]/g,""),n("change",l.current)}function c(){l.inComposition=!0}function d(){l.inComposition=!1}function f(S){const{keyCode:$}=S;$===Pe.ENTER&&S.preventDefault(),!l.inComposition&&(l.lastKeyCode=$)}function g(S){const{keyCode:$,ctrlKey:x,altKey:C,metaKey:O,shiftKey:w}=S;l.lastKeyCode===$&&!l.inComposition&&!x&&!C&&!O&&!w&&($===Pe.ENTER?(h(),n("end")):$===Pe.ESC&&(l.current=e.originContent,n("cancel")))}function v(){h()}function h(){n("save",l.current.trim())}const[b,y]=QT(i);return()=>{const S=le({[`${i.value}`]:!0,[`${i.value}-edit-content`]:!0,[`${i.value}-rtl`]:e.direction==="rtl",[e.component?`${i.value}-${e.component}`:""]:!0},r.class,y.value);return b(p("div",D(D({},r),{},{class:S}),[p(Ry,{ref:s,maxlength:e.maxlength,value:l.current,onChange:u,onKeydown:f,onKeyup:g,onCompositionstart:c,onCompositionend:d,onBlur:v,rows:1,autoSize:e.autoSize===void 0||e.autoSize},null),o.enterIcon?o.enterIcon({className:`${e.prefixCls}-edit-content-confirm`}):p(g1,{class:`${e.prefixCls}-edit-content-confirm`},null)]))}}}),Rse=3,Dse=8;let Yn;const Uh={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function JT(e,t){e.setAttribute("aria-hidden","true");const n=window.getComputedStyle(t),o=dk(n);e.setAttribute("style",o),e.style.position="fixed",e.style.left="0",e.style.height="auto",e.style.minHeight="auto",e.style.maxHeight="auto",e.style.paddingTop="0",e.style.paddingBottom="0",e.style.borderTopWidth="0",e.style.borderBottomWidth="0",e.style.top="-999999px",e.style.zIndex="-1000",e.style.textOverflow="clip",e.style.whiteSpace="normal",e.style.webkitLineClamp="none"}function Nse(e){const t=document.createElement("div");JT(t,e),t.appendChild(document.createTextNode("text")),document.body.appendChild(t);const n=t.getBoundingClientRect().height;return document.body.removeChild(t),n}const Bse=((e,t,n,o,r)=>{Yn||(Yn=document.createElement("div"),Yn.setAttribute("aria-hidden","true"),document.body.appendChild(Yn));const{rows:i,suffix:l=""}=t,a=Nse(e),s=Math.round(a*i*100)/100;JT(Yn,e);const u=aO({render(){return p("div",{style:Uh},[p("span",{style:Uh},[n,l]),p("span",{style:Uh},[o])])}});u.mount(Yn);function c(){return Math.round(Yn.getBoundingClientRect().height*100)/100-.1<=s}if(c())return u.unmount(),{content:n,text:Yn.innerHTML,ellipsis:!1};const d=Array.prototype.slice.apply(Yn.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter($=>{let{nodeType:x,data:C}=$;return x!==Dse&&C!==""}),f=Array.prototype.slice.apply(Yn.childNodes[0].childNodes[1].cloneNode(!0).childNodes);u.unmount();const g=[];Yn.innerHTML="";const v=document.createElement("span");Yn.appendChild(v);const h=document.createTextNode(r+l);v.appendChild(h),f.forEach($=>{Yn.appendChild($)});function b($){v.insertBefore($,h)}function y($,x){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:x.length,w=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const I=Math.floor((C+O)/2),T=x.slice(0,I);if($.textContent=T,C>=O-1)for(let M=O;M>=C;M-=1){const E=x.slice(0,M);if($.textContent=E,c()||!E)return M===x.length?{finished:!1,vNode:x}:{finished:!0,vNode:E}}return c()?y($,x,I,O,I):y($,x,C,I,w)}function S($){if($.nodeType===Rse){const C=$.textContent||"",O=document.createTextNode(C);return b(O),y(O,C)}return{finished:!1,vNode:null}}return d.some($=>{const{finished:x,vNode:C}=S($);return C&&g.push(C),x}),{content:g,text:Yn.innerHTML,ellipsis:!0}});var kse=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,direction:String,component:String}),Zn=oe({name:"ATypography",inheritAttrs:!1,props:Fse(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Te("typography",e),[l,a]=QT(r);return()=>{var s;const u=m(m({},e),o),{prefixCls:c,direction:d,component:f="article"}=u,g=kse(u,["prefixCls","direction","component"]);return l(p(f,D(D({},g),{},{class:le(r.value,{[`${r.value}-rtl`]:i.value==="rtl"},o.class,a.value)}),{default:()=>[(s=n.default)===null||s===void 0?void 0:s.call(n)]}))}}}),Lse=()=>{const e=document.getSelection();if(!e.rangeCount)return function(){};let t=document.activeElement;const n=[];for(let o=0;o"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();const d=K2[t.format]||K2.default;window.clipboardData.setData(d,e)}else c.clipboardData.clearData(),c.clipboardData.setData(t.format,e);t.onCopy&&(c.preventDefault(),t.onCopy(c.clipboardData))}),document.body.appendChild(l),r.selectNodeContents(l),i.addRange(r),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");a=!0}catch(u){s&&console.error("unable to copy using execCommand: ",u),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),a=!0}catch(c){s&&console.error("unable to copy using clipboardData: ",c),s&&console.error("falling back to prompt"),n=Hse("message"in t?t.message:zse),window.prompt(n,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(r):i.removeAllRanges()),l&&document.body.removeChild(l),o()}return a}var Vse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};function G2(e){for(var t=1;t({editable:{type:[Boolean,Object],default:void 0},copyable:{type:[Boolean,Object],default:void 0},prefixCls:String,component:String,type:String,disabled:{type:Boolean,default:void 0},ellipsis:{type:[Boolean,Object],default:void 0},code:{type:Boolean,default:void 0},mark:{type:Boolean,default:void 0},underline:{type:Boolean,default:void 0},delete:{type:Boolean,default:void 0},strong:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},content:String,"onUpdate:content":Function}),Xc=oe({compatConfig:{MODE:3},name:"TypographyBase",inheritAttrs:!1,props:Gc(),setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:i,direction:l}=Te("typography",e),a=ct({copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1,expandStr:"",copyStr:"",copiedStr:"",editStr:"",copyId:void 0,rafId:void 0,prevProps:void 0,originContent:""}),s=re(),u=re(),c=P(()=>{const _=e.ellipsis;return _?m({rows:1,expandable:!1},typeof _=="object"?_:null):{}});je(()=>{a.clientRendered=!0,I()}),Qe(()=>{clearTimeout(a.copyId),qe.cancel(a.rafId)}),ye([()=>c.value.rows,()=>e.content],()=>{ot(()=>{O()})},{flush:"post",deep:!0}),Le(()=>{e.content===void 0&&(fo(!e.editable),fo(!e.ellipsis))});function d(){var _;return e.ellipsis||e.editable?e.content:(_=Hn(s.value))===null||_===void 0?void 0:_.innerText}function f(_){const{onExpand:N}=c.value;a.expanded=!0,N?.(_)}function g(_){_.preventDefault(),a.originContent=e.content,C(!0)}function v(_){h(_),C(!1)}function h(_){const{onChange:N}=S.value;_!==e.content&&(r("update:content",_),N?.(_))}function b(){var _,N;(N=(_=S.value).onCancel)===null||N===void 0||N.call(_),C(!1)}function y(_){_.preventDefault(),_.stopPropagation();const{copyable:N}=e,B=m({},typeof N=="object"?N:null);B.text===void 0&&(B.text=d()),jse(B.text||""),a.copied=!0,ot(()=>{B.onCopy&&B.onCopy(_),a.copyId=setTimeout(()=>{a.copied=!1},3e3)})}const S=P(()=>{const _=e.editable;return _?m({},typeof _=="object"?_:null):{editing:!1}}),[$,x]=Pt(!1,{value:P(()=>S.value.editing)});function C(_){const{onStart:N}=S.value;_&&N&&N(),x(_)}ye($,_=>{var N;_||(N=u.value)===null||N===void 0||N.focus()},{flush:"post"});function O(_){if(_){const{width:N,height:B}=_;if(!N||!B)return}qe.cancel(a.rafId),a.rafId=qe(()=>{I()})}const w=P(()=>{const{rows:_,expandable:N,suffix:B,onEllipsis:k,tooltip:F}=c.value;return B||F||e.editable||e.copyable||N||k?!1:_===1?Yse:Use}),I=()=>{const{ellipsisText:_,isEllipsis:N}=a,{rows:B,suffix:k,onEllipsis:F}=c.value;if(!B||B<0||!Hn(s.value)||a.expanded||e.content===void 0||w.value)return;const{content:L,text:H,ellipsis:j}=Bse(Hn(s.value),{rows:B,suffix:k},e.content,z(!0),U2);(_!==H||a.isEllipsis!==j)&&(a.ellipsisText=H,a.ellipsisContent=L,a.isEllipsis=j,N!==j&&F&&F(j))};function T(_,N){let{mark:B,code:k,underline:F,delete:L,strong:H,keyboard:j}=_,Y=N;function Q(U,ee){if(!U)return;const X=(function(){return Y})();Y=p(ee,null,{default:()=>[X]})}return Q(H,"strong"),Q(F,"u"),Q(L,"del"),Q(k,"code"),Q(B,"mark"),Q(j,"kbd"),Y}function M(_){const{expandable:N,symbol:B}=c.value;if(!N||!_&&(a.expanded||!a.isEllipsis))return null;const k=(n.ellipsisSymbol?n.ellipsisSymbol():B)||a.expandStr;return p("a",{key:"expand",class:`${i.value}-expand`,onClick:f,"aria-label":a.expandStr},[k])}function E(){if(!e.editable)return;const{tooltip:_,triggerType:N=["icon"]}=e.editable,B=n.editableIcon?n.editableIcon():p(v1,{role:"button"},null),k=n.editableTooltip?n.editableTooltip():a.editStr,F=typeof k=="string"?k:"";return N.indexOf("icon")!==-1?p(Qn,{key:"edit",title:_===!1?"":k},{default:()=>[p(Df,{ref:u,class:`${i.value}-edit`,onClick:g,"aria-label":F},{default:()=>[B]})]}):null}function A(){if(!e.copyable)return;const{tooltip:_}=e.copyable,N=a.copied?a.copiedStr:a.copyStr,B=n.copyableTooltip?n.copyableTooltip({copied:a.copied}):N,k=typeof B=="string"?B:"",F=a.copied?p(ja,null,null):p(h1,null,null),L=n.copyableIcon?n.copyableIcon({copied:!!a.copied}):F;return p(Qn,{key:"copy",title:_===!1?"":B},{default:()=>[p(Df,{class:[`${i.value}-copy`,{[`${i.value}-copy-success`]:a.copied}],onClick:y,"aria-label":k},{default:()=>[L]})]})}function R(){const{class:_,style:N}=o,{maxlength:B,autoSize:k,onEnd:F}=S.value;return p(Ase,{class:_,style:N,prefixCls:i.value,value:e.content,originContent:a.originContent,maxlength:B,autoSize:k,onSave:v,onChange:h,onCancel:b,onEnd:F,direction:l.value,component:e.component},{enterIcon:n.editableEnterIcon})}function z(_){return[M(_),E(),A()].filter(N=>N)}return()=>{var _;const{triggerType:N=["icon"]}=S.value,B=e.ellipsis||e.editable?e.content!==void 0?e.content:(_=n.default)===null||_===void 0?void 0:_.call(n):n.default?n.default():e.content;return $.value?R():p(Il,{componentName:"Text",children:k=>{const F=m(m({},e),o),{type:L,disabled:H,content:j,class:Y,style:Q}=F,U=Xse(F,["type","disabled","content","class","style"]),{rows:ee,suffix:X,tooltip:J}=c.value,{edit:Z,copy:G,copied:q,expand:V}=k;a.editStr=Z,a.copyStr=G,a.copiedStr=q,a.expandStr=V;const K=tt(U,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard","onUpdate:content"]),te=w.value,ue=ee===1&&te,ie=ee&&ee>1&&te;let ae=B,ce;if(ee&&a.isEllipsis&&!a.expanded&&!te){const{title:ge}=U;let he=ge||"";!ge&&(typeof B=="string"||typeof B=="number")&&(he=String(B)),he=he?.slice(String(a.ellipsisContent||"").length),ae=p(Ve,null,[Je(a.ellipsisContent),p("span",{title:he,"aria-hidden":"true"},[U2]),X])}else ae=p(Ve,null,[B,X]);ae=T(e,ae);const se=J&&ee&&a.isEllipsis&&!a.expanded&&!te,pe=n.ellipsisTooltip?n.ellipsisTooltip():J;return p(Mo,{onResize:O,disabled:!ee},{default:()=>[p(Zn,D({ref:s,class:[{[`${i.value}-${L}`]:L,[`${i.value}-disabled`]:H,[`${i.value}-ellipsis`]:ee,[`${i.value}-single-line`]:ee===1&&!a.isEllipsis,[`${i.value}-ellipsis-single-line`]:ue,[`${i.value}-ellipsis-multiple-line`]:ie},Y],style:m(m({},Q),{WebkitLineClamp:ie?ee:void 0}),"aria-label":ce,direction:l.value,onClick:N.indexOf("text")!==-1?g:()=>{}},K),{default:()=>[se?p(Qn,{title:J===!0?B:pe},{default:()=>[p("span",null,[ae])]}):ae,z()]})]})}},null)}}});var qse=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rtt(m(m({},Gc()),{ellipsis:{type:Boolean,default:void 0}}),["component"]),Qa=(e,t)=>{let{slots:n,attrs:o}=t;const r=m(m({},e),o),{ellipsis:i,rel:l}=r,a=qse(r,["ellipsis","rel"]),s=m(m({},a),{rel:l===void 0&&a.target==="_blank"?"noopener noreferrer":l,ellipsis:!!i,component:"a"});return delete s.navigate,p(Xc,s,n)};Qa.displayName="ATypographyLink";Qa.inheritAttrs=!1;Qa.props=Zse();const Qse=()=>tt(Gc(),["component"]),Ja=(e,t)=>{let{slots:n,attrs:o}=t;const r=m(m(m({},e),{component:"div"}),o);return p(Xc,r,n)};Ja.displayName="ATypographyParagraph";Ja.inheritAttrs=!1;Ja.props=Qse();const Jse=()=>m(m({},tt(Gc(),["component"])),{ellipsis:{type:[Boolean,Object],default:void 0}}),es=(e,t)=>{let{slots:n,attrs:o}=t;const{ellipsis:r}=e,i=m(m(m({},e),{ellipsis:r&&typeof r=="object"?tt(r,["expandable","rows"]):r,component:"span"}),o);return p(Xc,i,n)};es.displayName="ATypographyText";es.inheritAttrs=!1;es.props=Jse();var ece=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rm(m({},tt(Gc(),["component","strong"])),{level:Number}),ts=(e,t)=>{let{slots:n,attrs:o}=t;const{level:r=1}=e,i=ece(e,["level"]);let l;tce.includes(r)?l=`h${r}`:l="h1";const a=m(m(m({},i),{component:l}),o);return p(Xc,a,n)};ts.displayName="ATypographyTitle";ts.inheritAttrs=!1;ts.props=nce();Zn.Text=es;Zn.Title=ts;Zn.Paragraph=Ja;Zn.Link=Qa;Zn.Base=Xc;Zn.install=function(e){return e.component(Zn.name,Zn),e.component(Zn.Text.displayName,es),e.component(Zn.Title.displayName,ts),e.component(Zn.Paragraph.displayName,Ja),e.component(Zn.Link.displayName,Qa),e};function oce(e,t){const n=`cannot ${e.method} ${e.action} ${t.status}'`,o=new Error(n);return o.status=t.status,o.method=e.method,o.url=e.action,o}function Y2(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function rce(e){const t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});const n=new FormData;e.data&&Object.keys(e.data).forEach(r=>{const i=e.data[r];if(Array.isArray(i)){i.forEach(l=>{n.append(`${r}[]`,l)});return}n.append(r,i)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(oce(e,t),Y2(t)):e.onSuccess(Y2(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};return o["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach(r=>{o[r]!==null&&t.setRequestHeader(r,o[r])}),t.send(n),{abort(){t.abort()}}}const ice=+new Date;let lce=0;function Yh(){return`vc-upload-${ice}-${++lce}`}const qh=((e,t)=>{if(e&&t){const n=Array.isArray(t)?t:t.split(","),o=e.name||"",r=e.type||"",i=r.replace(/\/.*$/,"");return n.some(l=>{const a=l.trim();if(/^\*(\/\*)?$/.test(l))return!0;if(a.charAt(0)==="."){const s=o.toLowerCase(),u=a.toLowerCase();let c=[u];return(u===".jpg"||u===".jpeg")&&(c=[".jpg",".jpeg"]),c.some(d=>s.endsWith(d))}return/\/\*$/.test(a)?i===a.replace(/\/.*$/,""):!!(r===a||/^\w+$/.test(a))})}return!0});function ace(e,t){const n=e.createReader();let o=[];function r(){n.readEntries(i=>{const l=Array.prototype.slice.apply(i);o=o.concat(l),!l.length?t(o):r()})}r()}const sce=(e,t,n)=>{const o=(r,i)=>{r.path=i||"",r.isFile?r.file(l=>{n(l)&&(r.fullPath&&!l.webkitRelativePath&&(Object.defineProperties(l,{webkitRelativePath:{writable:!0}}),l.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(l,{webkitRelativePath:{writable:!1}})),t([l]))}):r.isDirectory&&ace(r,l=>{l.forEach(a=>{o(a,`${i}${r.name}/`)})})};e.forEach(r=>{o(r.webkitGetAsEntry())})},eE=()=>({capture:[Boolean,String],multipart:{type:Boolean,default:void 0},name:String,disabled:{type:Boolean,default:void 0},componentTag:String,action:[String,Function],method:String,directory:{type:Boolean,default:void 0},data:[Object,Function],headers:Object,accept:String,multiple:{type:Boolean,default:void 0},onBatchStart:Function,onReject:Function,onStart:Function,onError:Function,onSuccess:Function,onProgress:Function,beforeUpload:Function,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},prefixCls:String,id:String,onMouseenter:Function,onMouseleave:Function,onClick:Function});var cce=function(e,t,n,o){function r(i){return i instanceof n?i:new n(function(l){l(i)})}return new(n||(n=Promise))(function(i,l){function a(c){try{u(o.next(c))}catch(d){l(d)}}function s(c){try{u(o.throw(c))}catch(d){l(d)}}function u(c){c.done?i(c.value):r(c.value).then(a,s)}u((o=o.apply(e,t||[])).next())})},uce=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rcce(this,void 0,void 0,function*(){const{beforeUpload:x}=e;let C=S;if(x){try{C=yield x(S,$)}catch{C=!1}if(C===!1)return{origin:S,parsedFile:null,action:null,data:null}}const{action:O}=e;let w;typeof O=="function"?w=yield O(S):w=O;const{data:I}=e;let T;typeof I=="function"?T=yield I(S):T=I;const M=(typeof C=="object"||typeof C=="string")&&C?C:S;let E;M instanceof File?E=M:E=new File([M],S.name,{type:S.type});const A=E;return A.uid=S.uid,{origin:S,data:T,parsedFile:A,action:w}}),c=S=>{let{data:$,origin:x,action:C,parsedFile:O}=S;if(!s)return;const{onStart:w,customRequest:I,name:T,headers:M,withCredentials:E,method:A}=e,{uid:R}=x,z=I||rce,_={action:C,filename:T,data:$,file:O,headers:M,withCredentials:E,method:A||"post",onProgress:N=>{const{onProgress:B}=e;B?.(N,O)},onSuccess:(N,B)=>{const{onSuccess:k}=e;k?.(N,O,B),delete l[R]},onError:(N,B)=>{const{onError:k}=e;k?.(N,B,O),delete l[R]}};w(x),l[R]=z(_)},d=()=>{i.value=Yh()},f=S=>{if(S){const $=S.uid?S.uid:S;l[$]&&l[$].abort&&l[$].abort(),delete l[$]}else Object.keys(l).forEach($=>{l[$]&&l[$].abort&&l[$].abort(),delete l[$]})};je(()=>{s=!0}),Qe(()=>{s=!1,f()});const g=S=>{const $=[...S],x=$.map(C=>(C.uid=Yh(),u(C,$)));Promise.all(x).then(C=>{const{onBatchStart:O}=e;O?.(C.map(w=>{let{origin:I,parsedFile:T}=w;return{file:I,parsedFile:T}})),C.filter(w=>w.parsedFile!==null).forEach(w=>{c(w)})})},v=S=>{const{accept:$,directory:x}=e,{files:C}=S.target,O=[...C].filter(w=>!x||qh(w,$));g(O),d()},h=S=>{const $=a.value;if(!$)return;const{onClick:x}=e;$.click(),x&&x(S)},b=S=>{S.key==="Enter"&&h(S)},y=S=>{const{multiple:$}=e;if(S.preventDefault(),S.type!=="dragover")if(e.directory)sce(Array.prototype.slice.call(S.dataTransfer.items),g,x=>qh(x,e.accept));else{const x=mj(Array.prototype.slice.call(S.dataTransfer.files),w=>qh(w,e.accept));let C=x[0];const O=x[1];$===!1&&(C=C.slice(0,1)),g(C),O.length&&e.onReject&&e.onReject(O)}};return r({abort:f}),()=>{var S;const{componentTag:$,prefixCls:x,disabled:C,id:O,multiple:w,accept:I,capture:T,directory:M,openFileDialogOnClick:E,onMouseenter:A,onMouseleave:R}=e,z=uce(e,["componentTag","prefixCls","disabled","id","multiple","accept","capture","directory","openFileDialogOnClick","onMouseenter","onMouseleave"]),_={[x]:!0,[`${x}-disabled`]:C,[o.class]:!!o.class},N=M?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return p($,D(D({},C?{}:{onClick:E?h:()=>{},onKeydown:E?b:()=>{},onMouseenter:A,onMouseleave:R,onDrop:y,onDragover:y,tabindex:"0"}),{},{class:_,role:"button",style:o.style}),{default:()=>[p("input",D(D(D({},_i(z,{aria:!0,data:!0})),{},{id:O,type:"file",ref:a,onClick:k=>k.stopPropagation(),onCancel:k=>k.stopPropagation(),key:i.value,style:{display:"none"},accept:I},N),{},{multiple:w,onChange:v},T!=null?{capture:T}:{}),null),(S=n.default)===null||S===void 0?void 0:S.call(n)]})}}});function Zh(){}const q2=oe({compatConfig:{MODE:3},name:"Upload",inheritAttrs:!1,props:Ze(eE(),{componentTag:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Zh,onError:Zh,onSuccess:Zh,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0}),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const i=re();return r({abort:a=>{var s;(s=i.value)===null||s===void 0||s.abort(a)}}),()=>p(dce,D(D(D({},e),o),{},{ref:i}),n)}});var fce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};function Z2(e){for(var t=1;t{let{uid:i}=r;return i===e.uid});return o===-1?n.push(e):n[o]=e,n}function Qh(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(o=>o[n]===e[n])[0]}function yce(e,t){const n=e.uid!==void 0?"uid":"name",o=t.filter(r=>r[n]!==e[n]);return o.length===t.length?null:o}const Sce=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),o=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(o)||[""])[0]},nE=e=>e.indexOf("image/")===0,$ce=e=>{if(e.type&&!e.thumbUrl)return nE(e.type);const t=e.thumbUrl||e.url||"",n=Sce(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n)?!0:!(/^data:/.test(t)||n)},oi=200;function Cce(e){return new Promise(t=>{if(!e.type||!nE(e.type)){t("");return}const n=document.createElement("canvas");n.width=oi,n.height=oi,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${oi}px; height: ${oi}px; z-index: 9999; display: none;`,document.body.appendChild(n);const o=n.getContext("2d"),r=new Image;if(r.onload=()=>{const{width:i,height:l}=r;let a=oi,s=oi,u=0,c=0;i>l?(s=l*(oi/i),c=-(s-a)/2):(a=i*(oi/l),u=-(a-s)/2),o.drawImage(r,u,c,a,s);const d=n.toDataURL();document.body.removeChild(n),t(d)},r.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.addEventListener("load",()=>{i.result&&(r.src=i.result)}),i.readAsDataURL(e)}else r.src=window.URL.createObjectURL(e)})}var xce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};function e4(e){for(var t=1;t({prefixCls:String,locale:De(void 0),file:De(),items:lt(),listType:Ne(),isImgUrl:ve(),showRemoveIcon:$e(),showDownloadIcon:$e(),showPreviewIcon:$e(),removeIcon:ve(),downloadIcon:ve(),previewIcon:ve(),iconRender:ve(),actionIconRender:ve(),itemRender:ve(),onPreview:ve(),onClose:ve(),onDownload:ve(),progress:De()}),Pce=oe({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:Oce(),setup(e,t){let{slots:n,attrs:o}=t;var r;const i=ne(!1),l=ne();je(()=>{l.value=setTimeout(()=>{i.value=!0},300)}),Qe(()=>{clearTimeout(l.value)});const a=ne((r=e.file)===null||r===void 0?void 0:r.status);ye(()=>{var c;return(c=e.file)===null||c===void 0?void 0:c.status},c=>{c!=="removed"&&(a.value=c)});const{rootPrefixCls:s}=Te("upload",e),u=P(()=>Ro(`${s.value}-fade`));return()=>{var c,d;const{prefixCls:f,locale:g,listType:v,file:h,items:b,progress:y,iconRender:S=n.iconRender,actionIconRender:$=n.actionIconRender,itemRender:x=n.itemRender,isImgUrl:C,showPreviewIcon:O,showRemoveIcon:w,showDownloadIcon:I,previewIcon:T=n.previewIcon,removeIcon:M=n.removeIcon,downloadIcon:E=n.downloadIcon,onPreview:A,onDownload:R,onClose:z}=e,{class:_,style:N}=o,B=S({file:h});let k=p("div",{class:`${f}-text-icon`},[B]);if(v==="picture"||v==="picture-card")if(a.value==="uploading"||!h.thumbUrl&&!h.url){const K={[`${f}-list-item-thumbnail`]:!0,[`${f}-list-item-file`]:a.value!=="uploading"};k=p("div",{class:K},[B])}else{const K=C?.(h)?p("img",{src:h.thumbUrl||h.url,alt:h.name,class:`${f}-list-item-image`,crossorigin:h.crossOrigin},null):B,te={[`${f}-list-item-thumbnail`]:!0,[`${f}-list-item-file`]:C&&!C(h)};k=p("a",{class:te,onClick:ue=>A(h,ue),href:h.url||h.thumbUrl,target:"_blank",rel:"noopener noreferrer"},[K])}const F={[`${f}-list-item`]:!0,[`${f}-list-item-${a.value}`]:!0},L=typeof h.linkProps=="string"?JSON.parse(h.linkProps):h.linkProps,H=w?$({customIcon:M?M({file:h}):p(vg,null,null),callback:()=>z(h),prefixCls:f,title:g.removeFile}):null,j=I&&a.value==="done"?$({customIcon:E?E({file:h}):p(S1,null,null),callback:()=>R(h),prefixCls:f,title:g.downloadFile}):null,Y=v!=="picture-card"&&p("span",{key:"download-delete",class:[`${f}-list-item-actions`,{picture:v==="picture"}]},[j,H]),Q=`${f}-list-item-name`,U=h.url?[p("a",D(D({key:"view",target:"_blank",rel:"noopener noreferrer",class:Q,title:h.name},L),{},{href:h.url,onClick:K=>A(h,K)}),[h.name]),Y]:[p("span",{key:"view",class:Q,onClick:K=>A(h,K),title:h.name},[h.name]),Y],ee={pointerEvents:"none",opacity:.5},X=O?p("a",{href:h.url||h.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:h.url||h.thumbUrl?void 0:ee,onClick:K=>A(h,K),title:g.previewFile},[T?T({file:h}):p(jc,null,null)]):null,J=v==="picture-card"&&a.value!=="uploading"&&p("span",{class:`${f}-list-item-actions`},[X,a.value==="done"&&j,H]),Z=p("div",{class:F},[k,U,J,i.value&&p(un,u.value,{default:()=>[En(p("div",{class:`${f}-list-item-progress`},["percent"in h?p(Yy,D(D({},y),{},{type:"line",percent:h.percent}),null):null]),[[jn,a.value==="uploading"]])]})]),G={[`${f}-list-item-container`]:!0,[`${_}`]:!!_},q=h.response&&typeof h.response=="string"?h.response:((c=h.error)===null||c===void 0?void 0:c.statusText)||((d=h.error)===null||d===void 0?void 0:d.message)||g.uploadError,V=a.value==="error"?p(Qn,{title:q,getPopupContainer:K=>K.parentNode},{default:()=>[Z]}):Z;return p("div",{class:G,style:N},[x?x({originNode:V,file:h,fileList:b,actions:{download:R.bind(null,h),preview:A.bind(null,h),remove:z.bind(null,h)}}):V])}}}),Ice=(e,t)=>{let{slots:n}=t;var o;return _t((o=n.default)===null||o===void 0?void 0:o.call(n))[0]},Tce=oe({compatConfig:{MODE:3},name:"AUploadList",props:Ze(bce(),{listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:Cce,isImageUrl:$ce,items:[],appendActionVisible:!0}),setup(e,t){let{slots:n,expose:o}=t;const r=ne(!1);je(()=>{r.value==!0});const i=ne([]);ye(()=>e.items,function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.value=h.slice()},{immediate:!0,deep:!0}),Le(()=>{if(e.listType!=="picture"&&e.listType!=="picture-card")return;let h=!1;(e.items||[]).forEach((b,y)=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(b.originFileObj instanceof File||b.originFileObj instanceof Blob)||b.thumbUrl!==void 0||(b.thumbUrl="",e.previewFile&&e.previewFile(b.originFileObj).then(S=>{const $=S||"";$!==b.thumbUrl&&(i.value[y].thumbUrl=$,h=!0)}))}),h&&u3(i)});const l=(h,b)=>{if(e.onPreview)return b?.preventDefault(),e.onPreview(h)},a=h=>{typeof e.onDownload=="function"?e.onDownload(h):h.url&&window.open(h.url)},s=h=>{var b;(b=e.onRemove)===null||b===void 0||b.call(e,h)},u=h=>{let{file:b}=h;const y=e.iconRender||n.iconRender;if(y)return y({file:b,listType:e.listType});const S=b.status==="uploading",$=e.isImageUrl&&e.isImageUrl(b)?p(b1,null,null):p(y1,null,null);let x=p(S?Wn:m1,null,null);return e.listType==="picture"?x=S?p(Wn,null,null):$:e.listType==="picture-card"&&(x=S?e.locale.uploading:$),x},c=h=>{const{customIcon:b,callback:y,prefixCls:S,title:$}=h,x={type:"text",size:"small",title:$,onClick:()=>{y()},class:`${S}-list-item-action`};return Kt(b)?p(Lt,x,{icon:()=>b}):p(Lt,x,{default:()=>[p("span",null,[b])]})};o({handlePreview:l,handleDownload:a});const{prefixCls:d,rootPrefixCls:f}=Te("upload",e),g=P(()=>({[`${d.value}-list`]:!0,[`${d.value}-list-${e.listType}`]:!0})),v=P(()=>{const h=m({},Rc(`${f.value}-motion-collapse`));delete h.onAfterAppear,delete h.onAfterEnter,delete h.onAfterLeave;const b=m(m({},xp(`${d.value}-${e.listType==="picture-card"?"animate-inline":"animate"}`)),{class:g.value,appear:r.value});return e.listType!=="picture-card"?m(m({},h),b):b});return()=>{const{listType:h,locale:b,isImageUrl:y,showPreviewIcon:S,showRemoveIcon:$,showDownloadIcon:x,removeIcon:C,previewIcon:O,downloadIcon:w,progress:I,appendAction:T,itemRender:M,appendActionVisible:E}=e,A=T?.(),R=i.value;return p(op,D(D({},v.value),{},{tag:"div"}),{default:()=>[R.map(z=>{const{uid:_}=z;return p(Pce,{key:_,locale:b,prefixCls:d.value,file:z,items:R,progress:I,listType:h,isImgUrl:y,showPreviewIcon:S,showRemoveIcon:$,showDownloadIcon:x,onPreview:l,onDownload:a,onClose:s,removeIcon:C,previewIcon:O,downloadIcon:w,itemRender:M},m(m({},n),{iconRender:u,actionIconRender:c}))}),T?En(p(Ice,{key:"__ant_upload_appendAction"},{default:()=>A}),[[jn,!!E]]):null]})}}}),Ece=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:"not-allowed",[`p${t}-drag-icon ${n}, + `]:m(m({},pp(e)),{marginInlineStart:e.marginXXS})}),Ise(e)),Tse(e)),Ese()),{"&-rtl":{direction:"rtl"}})}},QT=Ke("Typography",e=>[Mse(e)],{sizeMarginHeadingVerticalStart:"1.2em",sizeMarginHeadingVerticalEnd:"0.5em"}),_se=()=>({prefixCls:String,value:String,maxlength:Number,autoSize:{type:[Boolean,Object]},onSave:Function,onCancel:Function,onEnd:Function,onChange:Function,originContent:String,direction:String,component:String}),Ase=oe({compatConfig:{MODE:3},name:"Editable",inheritAttrs:!1,props:_se(),setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:i}=jo(e),l=ct({current:e.value||"",lastKeyCode:void 0,inComposition:!1,cancelFlag:!1});ye(()=>e.value,S=>{l.current=S});const a=re();je(()=>{var S;if(a.value){const $=(S=a.value)===null||S===void 0?void 0:S.resizableTextArea,x=$?.textArea;x.focus();const{length:C}=x.value;x.setSelectionRange(C,C)}});function s(S){a.value=S}function u(S){let{target:{value:$}}=S;l.current=$.replace(/[\r\n]/g,""),n("change",l.current)}function c(){l.inComposition=!0}function d(){l.inComposition=!1}function f(S){const{keyCode:$}=S;$===Pe.ENTER&&S.preventDefault(),!l.inComposition&&(l.lastKeyCode=$)}function g(S){const{keyCode:$,ctrlKey:x,altKey:C,metaKey:O,shiftKey:w}=S;l.lastKeyCode===$&&!l.inComposition&&!x&&!C&&!O&&!w&&($===Pe.ENTER?(h(),n("end")):$===Pe.ESC&&(l.current=e.originContent,n("cancel")))}function v(){h()}function h(){n("save",l.current.trim())}const[b,y]=QT(i);return()=>{const S=le({[`${i.value}`]:!0,[`${i.value}-edit-content`]:!0,[`${i.value}-rtl`]:e.direction==="rtl",[e.component?`${i.value}-${e.component}`:""]:!0},r.class,y.value);return b(p("div",D(D({},r),{},{class:S}),[p(Ry,{ref:s,maxlength:e.maxlength,value:l.current,onChange:u,onKeydown:f,onKeyup:g,onCompositionstart:c,onCompositionend:d,onBlur:v,rows:1,autoSize:e.autoSize===void 0||e.autoSize},null),o.enterIcon?o.enterIcon({className:`${e.prefixCls}-edit-content-confirm`}):p(g1,{class:`${e.prefixCls}-edit-content-confirm`},null)]))}}}),Rse=3,Dse=8;let Yn;const Uh={padding:0,margin:0,display:"inline",lineHeight:"inherit"};function JT(e,t){e.setAttribute("aria-hidden","true");const n=window.getComputedStyle(t),o=dk(n);e.setAttribute("style",o),e.style.position="fixed",e.style.left="0",e.style.height="auto",e.style.minHeight="auto",e.style.maxHeight="auto",e.style.paddingTop="0",e.style.paddingBottom="0",e.style.borderTopWidth="0",e.style.borderBottomWidth="0",e.style.top="-999999px",e.style.zIndex="-1000",e.style.textOverflow="clip",e.style.whiteSpace="normal",e.style.webkitLineClamp="none"}function Nse(e){const t=document.createElement("div");JT(t,e),t.appendChild(document.createTextNode("text")),document.body.appendChild(t);const n=t.getBoundingClientRect().height;return document.body.removeChild(t),n}const Bse=((e,t,n,o,r)=>{Yn||(Yn=document.createElement("div"),Yn.setAttribute("aria-hidden","true"),document.body.appendChild(Yn));const{rows:i,suffix:l=""}=t,a=Nse(e),s=Math.round(a*i*100)/100;JT(Yn,e);const u=aO({render(){return p("div",{style:Uh},[p("span",{style:Uh},[n,l]),p("span",{style:Uh},[o])])}});u.mount(Yn);function c(){return Math.round(Yn.getBoundingClientRect().height*100)/100-.1<=s}if(c())return u.unmount(),{content:n,text:Yn.innerHTML,ellipsis:!1};const d=Array.prototype.slice.apply(Yn.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter($=>{let{nodeType:x,data:C}=$;return x!==Dse&&C!==""}),f=Array.prototype.slice.apply(Yn.childNodes[0].childNodes[1].cloneNode(!0).childNodes);u.unmount();const g=[];Yn.innerHTML="";const v=document.createElement("span");Yn.appendChild(v);const h=document.createTextNode(r+l);v.appendChild(h),f.forEach($=>{Yn.appendChild($)});function b($){v.insertBefore($,h)}function y($,x){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,O=arguments.length>3&&arguments[3]!==void 0?arguments[3]:x.length,w=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;const I=Math.floor((C+O)/2),T=x.slice(0,I);if($.textContent=T,C>=O-1)for(let _=O;_>=C;_-=1){const E=x.slice(0,_);if($.textContent=E,c()||!E)return _===x.length?{finished:!1,vNode:x}:{finished:!0,vNode:E}}return c()?y($,x,I,O,I):y($,x,C,I,w)}function S($){if($.nodeType===Rse){const C=$.textContent||"",O=document.createTextNode(C);return b(O),y(O,C)}return{finished:!1,vNode:null}}return d.some($=>{const{finished:x,vNode:C}=S($);return C&&g.push(C),x}),{content:g,text:Yn.innerHTML,ellipsis:!0}});var kse=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r({prefixCls:String,direction:String,component:String}),Zn=oe({name:"ATypography",inheritAttrs:!1,props:Fse(),setup(e,t){let{slots:n,attrs:o}=t;const{prefixCls:r,direction:i}=Te("typography",e),[l,a]=QT(r);return()=>{var s;const u=m(m({},e),o),{prefixCls:c,direction:d,component:f="article"}=u,g=kse(u,["prefixCls","direction","component"]);return l(p(f,D(D({},g),{},{class:le(r.value,{[`${r.value}-rtl`]:i.value==="rtl"},o.class,a.value)}),{default:()=>[(s=n.default)===null||s===void 0?void 0:s.call(n)]}))}}}),Lse=()=>{const e=document.getSelection();if(!e.rangeCount)return function(){};let t=document.activeElement;const n=[];for(let o=0;o"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();const d=K2[t.format]||K2.default;window.clipboardData.setData(d,e)}else c.clipboardData.clearData(),c.clipboardData.setData(t.format,e);t.onCopy&&(c.preventDefault(),t.onCopy(c.clipboardData))}),document.body.appendChild(l),r.selectNodeContents(l),i.addRange(r),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");a=!0}catch(u){s&&console.error("unable to copy using execCommand: ",u),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),a=!0}catch(c){s&&console.error("unable to copy using clipboardData: ",c),s&&console.error("falling back to prompt"),n=Hse("message"in t?t.message:zse),window.prompt(n,e)}}finally{i&&(typeof i.removeRange=="function"?i.removeRange(r):i.removeAllRanges()),l&&document.body.removeChild(l),o()}return a}var Vse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};function G2(e){for(var t=1;t({editable:{type:[Boolean,Object],default:void 0},copyable:{type:[Boolean,Object],default:void 0},prefixCls:String,component:String,type:String,disabled:{type:Boolean,default:void 0},ellipsis:{type:[Boolean,Object],default:void 0},code:{type:Boolean,default:void 0},mark:{type:Boolean,default:void 0},underline:{type:Boolean,default:void 0},delete:{type:Boolean,default:void 0},strong:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},content:String,"onUpdate:content":Function}),Xc=oe({compatConfig:{MODE:3},name:"TypographyBase",inheritAttrs:!1,props:Gc(),setup(e,t){let{slots:n,attrs:o,emit:r}=t;const{prefixCls:i,direction:l}=Te("typography",e),a=ct({copied:!1,ellipsisText:"",ellipsisContent:null,isEllipsis:!1,expanded:!1,clientRendered:!1,expandStr:"",copyStr:"",copiedStr:"",editStr:"",copyId:void 0,rafId:void 0,prevProps:void 0,originContent:""}),s=re(),u=re(),c=P(()=>{const M=e.ellipsis;return M?m({rows:1,expandable:!1},typeof M=="object"?M:null):{}});je(()=>{a.clientRendered=!0,I()}),Qe(()=>{clearTimeout(a.copyId),qe.cancel(a.rafId)}),ye([()=>c.value.rows,()=>e.content],()=>{ot(()=>{O()})},{flush:"post",deep:!0}),Le(()=>{e.content===void 0&&(fo(!e.editable),fo(!e.ellipsis))});function d(){var M;return e.ellipsis||e.editable?e.content:(M=Hn(s.value))===null||M===void 0?void 0:M.innerText}function f(M){const{onExpand:N}=c.value;a.expanded=!0,N?.(M)}function g(M){M.preventDefault(),a.originContent=e.content,C(!0)}function v(M){h(M),C(!1)}function h(M){const{onChange:N}=S.value;M!==e.content&&(r("update:content",M),N?.(M))}function b(){var M,N;(N=(M=S.value).onCancel)===null||N===void 0||N.call(M),C(!1)}function y(M){M.preventDefault(),M.stopPropagation();const{copyable:N}=e,B=m({},typeof N=="object"?N:null);B.text===void 0&&(B.text=d()),jse(B.text||""),a.copied=!0,ot(()=>{B.onCopy&&B.onCopy(M),a.copyId=setTimeout(()=>{a.copied=!1},3e3)})}const S=P(()=>{const M=e.editable;return M?m({},typeof M=="object"?M:null):{editing:!1}}),[$,x]=Pt(!1,{value:P(()=>S.value.editing)});function C(M){const{onStart:N}=S.value;M&&N&&N(),x(M)}ye($,M=>{var N;M||(N=u.value)===null||N===void 0||N.focus()},{flush:"post"});function O(M){if(M){const{width:N,height:B}=M;if(!N||!B)return}qe.cancel(a.rafId),a.rafId=qe(()=>{I()})}const w=P(()=>{const{rows:M,expandable:N,suffix:B,onEllipsis:k,tooltip:F}=c.value;return B||F||e.editable||e.copyable||N||k?!1:M===1?Yse:Use}),I=()=>{const{ellipsisText:M,isEllipsis:N}=a,{rows:B,suffix:k,onEllipsis:F}=c.value;if(!B||B<0||!Hn(s.value)||a.expanded||e.content===void 0||w.value)return;const{content:L,text:H,ellipsis:j}=Bse(Hn(s.value),{rows:B,suffix:k},e.content,z(!0),U2);(M!==H||a.isEllipsis!==j)&&(a.ellipsisText=H,a.ellipsisContent=L,a.isEllipsis=j,N!==j&&F&&F(j))};function T(M,N){let{mark:B,code:k,underline:F,delete:L,strong:H,keyboard:j}=M,Y=N;function Q(U,ee){if(!U)return;const X=(function(){return Y})();Y=p(ee,null,{default:()=>[X]})}return Q(H,"strong"),Q(F,"u"),Q(L,"del"),Q(k,"code"),Q(B,"mark"),Q(j,"kbd"),Y}function _(M){const{expandable:N,symbol:B}=c.value;if(!N||!M&&(a.expanded||!a.isEllipsis))return null;const k=(n.ellipsisSymbol?n.ellipsisSymbol():B)||a.expandStr;return p("a",{key:"expand",class:`${i.value}-expand`,onClick:f,"aria-label":a.expandStr},[k])}function E(){if(!e.editable)return;const{tooltip:M,triggerType:N=["icon"]}=e.editable,B=n.editableIcon?n.editableIcon():p(v1,{role:"button"},null),k=n.editableTooltip?n.editableTooltip():a.editStr,F=typeof k=="string"?k:"";return N.indexOf("icon")!==-1?p(Qn,{key:"edit",title:M===!1?"":k},{default:()=>[p(Df,{ref:u,class:`${i.value}-edit`,onClick:g,"aria-label":F},{default:()=>[B]})]}):null}function A(){if(!e.copyable)return;const{tooltip:M}=e.copyable,N=a.copied?a.copiedStr:a.copyStr,B=n.copyableTooltip?n.copyableTooltip({copied:a.copied}):N,k=typeof B=="string"?B:"",F=a.copied?p(ja,null,null):p(h1,null,null),L=n.copyableIcon?n.copyableIcon({copied:!!a.copied}):F;return p(Qn,{key:"copy",title:M===!1?"":B},{default:()=>[p(Df,{class:[`${i.value}-copy`,{[`${i.value}-copy-success`]:a.copied}],onClick:y,"aria-label":k},{default:()=>[L]})]})}function R(){const{class:M,style:N}=o,{maxlength:B,autoSize:k,onEnd:F}=S.value;return p(Ase,{class:M,style:N,prefixCls:i.value,value:e.content,originContent:a.originContent,maxlength:B,autoSize:k,onSave:v,onChange:h,onCancel:b,onEnd:F,direction:l.value,component:e.component},{enterIcon:n.editableEnterIcon})}function z(M){return[_(M),E(),A()].filter(N=>N)}return()=>{var M;const{triggerType:N=["icon"]}=S.value,B=e.ellipsis||e.editable?e.content!==void 0?e.content:(M=n.default)===null||M===void 0?void 0:M.call(n):n.default?n.default():e.content;return $.value?R():p(Il,{componentName:"Text",children:k=>{const F=m(m({},e),o),{type:L,disabled:H,content:j,class:Y,style:Q}=F,U=Xse(F,["type","disabled","content","class","style"]),{rows:ee,suffix:X,tooltip:J}=c.value,{edit:Z,copy:G,copied:q,expand:V}=k;a.editStr=Z,a.copyStr=G,a.copiedStr=q,a.expandStr=V;const K=tt(U,["prefixCls","editable","copyable","ellipsis","mark","code","delete","underline","strong","keyboard","onUpdate:content"]),te=w.value,ue=ee===1&&te,ie=ee&&ee>1&&te;let ae=B,ce;if(ee&&a.isEllipsis&&!a.expanded&&!te){const{title:ge}=U;let he=ge||"";!ge&&(typeof B=="string"||typeof B=="number")&&(he=String(B)),he=he?.slice(String(a.ellipsisContent||"").length),ae=p(Ve,null,[Je(a.ellipsisContent),p("span",{title:he,"aria-hidden":"true"},[U2]),X])}else ae=p(Ve,null,[B,X]);ae=T(e,ae);const se=J&&ee&&a.isEllipsis&&!a.expanded&&!te,pe=n.ellipsisTooltip?n.ellipsisTooltip():J;return p(Mo,{onResize:O,disabled:!ee},{default:()=>[p(Zn,D({ref:s,class:[{[`${i.value}-${L}`]:L,[`${i.value}-disabled`]:H,[`${i.value}-ellipsis`]:ee,[`${i.value}-single-line`]:ee===1&&!a.isEllipsis,[`${i.value}-ellipsis-single-line`]:ue,[`${i.value}-ellipsis-multiple-line`]:ie},Y],style:m(m({},Q),{WebkitLineClamp:ie?ee:void 0}),"aria-label":ce,direction:l.value,onClick:N.indexOf("text")!==-1?g:()=>{}},K),{default:()=>[se?p(Qn,{title:J===!0?B:pe},{default:()=>[p("span",null,[ae])]}):ae,z()]})]})}},null)}}});var qse=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rtt(m(m({},Gc()),{ellipsis:{type:Boolean,default:void 0}}),["component"]),Qa=(e,t)=>{let{slots:n,attrs:o}=t;const r=m(m({},e),o),{ellipsis:i,rel:l}=r,a=qse(r,["ellipsis","rel"]),s=m(m({},a),{rel:l===void 0&&a.target==="_blank"?"noopener noreferrer":l,ellipsis:!!i,component:"a"});return delete s.navigate,p(Xc,s,n)};Qa.displayName="ATypographyLink";Qa.inheritAttrs=!1;Qa.props=Zse();const Qse=()=>tt(Gc(),["component"]),Ja=(e,t)=>{let{slots:n,attrs:o}=t;const r=m(m(m({},e),{component:"div"}),o);return p(Xc,r,n)};Ja.displayName="ATypographyParagraph";Ja.inheritAttrs=!1;Ja.props=Qse();const Jse=()=>m(m({},tt(Gc(),["component"])),{ellipsis:{type:[Boolean,Object],default:void 0}}),es=(e,t)=>{let{slots:n,attrs:o}=t;const{ellipsis:r}=e,i=m(m(m({},e),{ellipsis:r&&typeof r=="object"?tt(r,["expandable","rows"]):r,component:"span"}),o);return p(Xc,i,n)};es.displayName="ATypographyText";es.inheritAttrs=!1;es.props=Jse();var ece=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rm(m({},tt(Gc(),["component","strong"])),{level:Number}),ts=(e,t)=>{let{slots:n,attrs:o}=t;const{level:r=1}=e,i=ece(e,["level"]);let l;tce.includes(r)?l=`h${r}`:l="h1";const a=m(m(m({},i),{component:l}),o);return p(Xc,a,n)};ts.displayName="ATypographyTitle";ts.inheritAttrs=!1;ts.props=nce();Zn.Text=es;Zn.Title=ts;Zn.Paragraph=Ja;Zn.Link=Qa;Zn.Base=Xc;Zn.install=function(e){return e.component(Zn.name,Zn),e.component(Zn.Text.displayName,es),e.component(Zn.Title.displayName,ts),e.component(Zn.Paragraph.displayName,Ja),e.component(Zn.Link.displayName,Qa),e};function oce(e,t){const n=`cannot ${e.method} ${e.action} ${t.status}'`,o=new Error(n);return o.status=t.status,o.method=e.method,o.url=e.action,o}function Y2(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function rce(e){const t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});const n=new FormData;e.data&&Object.keys(e.data).forEach(r=>{const i=e.data[r];if(Array.isArray(i)){i.forEach(l=>{n.append(`${r}[]`,l)});return}n.append(r,i)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(oce(e,t),Y2(t)):e.onSuccess(Y2(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};return o["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach(r=>{o[r]!==null&&t.setRequestHeader(r,o[r])}),t.send(n),{abort(){t.abort()}}}const ice=+new Date;let lce=0;function Yh(){return`vc-upload-${ice}-${++lce}`}const qh=((e,t)=>{if(e&&t){const n=Array.isArray(t)?t:t.split(","),o=e.name||"",r=e.type||"",i=r.replace(/\/.*$/,"");return n.some(l=>{const a=l.trim();if(/^\*(\/\*)?$/.test(l))return!0;if(a.charAt(0)==="."){const s=o.toLowerCase(),u=a.toLowerCase();let c=[u];return(u===".jpg"||u===".jpeg")&&(c=[".jpg",".jpeg"]),c.some(d=>s.endsWith(d))}return/\/\*$/.test(a)?i===a.replace(/\/.*$/,""):!!(r===a||/^\w+$/.test(a))})}return!0});function ace(e,t){const n=e.createReader();let o=[];function r(){n.readEntries(i=>{const l=Array.prototype.slice.apply(i);o=o.concat(l),!l.length?t(o):r()})}r()}const sce=(e,t,n)=>{const o=(r,i)=>{r.path=i||"",r.isFile?r.file(l=>{n(l)&&(r.fullPath&&!l.webkitRelativePath&&(Object.defineProperties(l,{webkitRelativePath:{writable:!0}}),l.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(l,{webkitRelativePath:{writable:!1}})),t([l]))}):r.isDirectory&&ace(r,l=>{l.forEach(a=>{o(a,`${i}${r.name}/`)})})};e.forEach(r=>{o(r.webkitGetAsEntry())})},eE=()=>({capture:[Boolean,String],multipart:{type:Boolean,default:void 0},name:String,disabled:{type:Boolean,default:void 0},componentTag:String,action:[String,Function],method:String,directory:{type:Boolean,default:void 0},data:[Object,Function],headers:Object,accept:String,multiple:{type:Boolean,default:void 0},onBatchStart:Function,onReject:Function,onStart:Function,onError:Function,onSuccess:Function,onProgress:Function,beforeUpload:Function,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},prefixCls:String,id:String,onMouseenter:Function,onMouseleave:Function,onClick:Function});var cce=function(e,t,n,o){function r(i){return i instanceof n?i:new n(function(l){l(i)})}return new(n||(n=Promise))(function(i,l){function a(c){try{u(o.next(c))}catch(d){l(d)}}function s(c){try{u(o.throw(c))}catch(d){l(d)}}function u(c){c.done?i(c.value):r(c.value).then(a,s)}u((o=o.apply(e,t||[])).next())})},uce=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);rcce(this,void 0,void 0,function*(){const{beforeUpload:x}=e;let C=S;if(x){try{C=yield x(S,$)}catch{C=!1}if(C===!1)return{origin:S,parsedFile:null,action:null,data:null}}const{action:O}=e;let w;typeof O=="function"?w=yield O(S):w=O;const{data:I}=e;let T;typeof I=="function"?T=yield I(S):T=I;const _=(typeof C=="object"||typeof C=="string")&&C?C:S;let E;_ instanceof File?E=_:E=new File([_],S.name,{type:S.type});const A=E;return A.uid=S.uid,{origin:S,data:T,parsedFile:A,action:w}}),c=S=>{let{data:$,origin:x,action:C,parsedFile:O}=S;if(!s)return;const{onStart:w,customRequest:I,name:T,headers:_,withCredentials:E,method:A}=e,{uid:R}=x,z=I||rce,M={action:C,filename:T,data:$,file:O,headers:_,withCredentials:E,method:A||"post",onProgress:N=>{const{onProgress:B}=e;B?.(N,O)},onSuccess:(N,B)=>{const{onSuccess:k}=e;k?.(N,O,B),delete l[R]},onError:(N,B)=>{const{onError:k}=e;k?.(N,B,O),delete l[R]}};w(x),l[R]=z(M)},d=()=>{i.value=Yh()},f=S=>{if(S){const $=S.uid?S.uid:S;l[$]&&l[$].abort&&l[$].abort(),delete l[$]}else Object.keys(l).forEach($=>{l[$]&&l[$].abort&&l[$].abort(),delete l[$]})};je(()=>{s=!0}),Qe(()=>{s=!1,f()});const g=S=>{const $=[...S],x=$.map(C=>(C.uid=Yh(),u(C,$)));Promise.all(x).then(C=>{const{onBatchStart:O}=e;O?.(C.map(w=>{let{origin:I,parsedFile:T}=w;return{file:I,parsedFile:T}})),C.filter(w=>w.parsedFile!==null).forEach(w=>{c(w)})})},v=S=>{const{accept:$,directory:x}=e,{files:C}=S.target,O=[...C].filter(w=>!x||qh(w,$));g(O),d()},h=S=>{const $=a.value;if(!$)return;const{onClick:x}=e;$.click(),x&&x(S)},b=S=>{S.key==="Enter"&&h(S)},y=S=>{const{multiple:$}=e;if(S.preventDefault(),S.type!=="dragover")if(e.directory)sce(Array.prototype.slice.call(S.dataTransfer.items),g,x=>qh(x,e.accept));else{const x=mj(Array.prototype.slice.call(S.dataTransfer.files),w=>qh(w,e.accept));let C=x[0];const O=x[1];$===!1&&(C=C.slice(0,1)),g(C),O.length&&e.onReject&&e.onReject(O)}};return r({abort:f}),()=>{var S;const{componentTag:$,prefixCls:x,disabled:C,id:O,multiple:w,accept:I,capture:T,directory:_,openFileDialogOnClick:E,onMouseenter:A,onMouseleave:R}=e,z=uce(e,["componentTag","prefixCls","disabled","id","multiple","accept","capture","directory","openFileDialogOnClick","onMouseenter","onMouseleave"]),M={[x]:!0,[`${x}-disabled`]:C,[o.class]:!!o.class},N=_?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return p($,D(D({},C?{}:{onClick:E?h:()=>{},onKeydown:E?b:()=>{},onMouseenter:A,onMouseleave:R,onDrop:y,onDragover:y,tabindex:"0"}),{},{class:M,role:"button",style:o.style}),{default:()=>[p("input",D(D(D({},_i(z,{aria:!0,data:!0})),{},{id:O,type:"file",ref:a,onClick:k=>k.stopPropagation(),onCancel:k=>k.stopPropagation(),key:i.value,style:{display:"none"},accept:I},N),{},{multiple:w,onChange:v},T!=null?{capture:T}:{}),null),(S=n.default)===null||S===void 0?void 0:S.call(n)]})}}});function Zh(){}const q2=oe({compatConfig:{MODE:3},name:"Upload",inheritAttrs:!1,props:Ze(eE(),{componentTag:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Zh,onError:Zh,onSuccess:Zh,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0}),setup(e,t){let{slots:n,attrs:o,expose:r}=t;const i=re();return r({abort:a=>{var s;(s=i.value)===null||s===void 0||s.abort(a)}}),()=>p(dce,D(D(D({},e),o),{},{ref:i}),n)}});var fce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"};function Z2(e){for(var t=1;t{let{uid:i}=r;return i===e.uid});return o===-1?n.push(e):n[o]=e,n}function Qh(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(o=>o[n]===e[n])[0]}function yce(e,t){const n=e.uid!==void 0?"uid":"name",o=t.filter(r=>r[n]!==e[n]);return o.length===t.length?null:o}const Sce=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),o=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(o)||[""])[0]},nE=e=>e.indexOf("image/")===0,$ce=e=>{if(e.type&&!e.thumbUrl)return nE(e.type);const t=e.thumbUrl||e.url||"",n=Sce(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(n)?!0:!(/^data:/.test(t)||n)},oi=200;function Cce(e){return new Promise(t=>{if(!e.type||!nE(e.type)){t("");return}const n=document.createElement("canvas");n.width=oi,n.height=oi,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${oi}px; height: ${oi}px; z-index: 9999; display: none;`,document.body.appendChild(n);const o=n.getContext("2d"),r=new Image;if(r.onload=()=>{const{width:i,height:l}=r;let a=oi,s=oi,u=0,c=0;i>l?(s=l*(oi/i),c=-(s-a)/2):(a=i*(oi/l),u=-(a-s)/2),o.drawImage(r,u,c,a,s);const d=n.toDataURL();document.body.removeChild(n),t(d)},r.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.addEventListener("load",()=>{i.result&&(r.src=i.result)}),i.readAsDataURL(e)}else r.src=window.URL.createObjectURL(e)})}var xce={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};function e4(e){for(var t=1;t({prefixCls:String,locale:De(void 0),file:De(),items:lt(),listType:Ne(),isImgUrl:ve(),showRemoveIcon:$e(),showDownloadIcon:$e(),showPreviewIcon:$e(),removeIcon:ve(),downloadIcon:ve(),previewIcon:ve(),iconRender:ve(),actionIconRender:ve(),itemRender:ve(),onPreview:ve(),onClose:ve(),onDownload:ve(),progress:De()}),Pce=oe({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:Oce(),setup(e,t){let{slots:n,attrs:o}=t;var r;const i=ne(!1),l=ne();je(()=>{l.value=setTimeout(()=>{i.value=!0},300)}),Qe(()=>{clearTimeout(l.value)});const a=ne((r=e.file)===null||r===void 0?void 0:r.status);ye(()=>{var c;return(c=e.file)===null||c===void 0?void 0:c.status},c=>{c!=="removed"&&(a.value=c)});const{rootPrefixCls:s}=Te("upload",e),u=P(()=>Ro(`${s.value}-fade`));return()=>{var c,d;const{prefixCls:f,locale:g,listType:v,file:h,items:b,progress:y,iconRender:S=n.iconRender,actionIconRender:$=n.actionIconRender,itemRender:x=n.itemRender,isImgUrl:C,showPreviewIcon:O,showRemoveIcon:w,showDownloadIcon:I,previewIcon:T=n.previewIcon,removeIcon:_=n.removeIcon,downloadIcon:E=n.downloadIcon,onPreview:A,onDownload:R,onClose:z}=e,{class:M,style:N}=o,B=S({file:h});let k=p("div",{class:`${f}-text-icon`},[B]);if(v==="picture"||v==="picture-card")if(a.value==="uploading"||!h.thumbUrl&&!h.url){const K={[`${f}-list-item-thumbnail`]:!0,[`${f}-list-item-file`]:a.value!=="uploading"};k=p("div",{class:K},[B])}else{const K=C?.(h)?p("img",{src:h.thumbUrl||h.url,alt:h.name,class:`${f}-list-item-image`,crossorigin:h.crossOrigin},null):B,te={[`${f}-list-item-thumbnail`]:!0,[`${f}-list-item-file`]:C&&!C(h)};k=p("a",{class:te,onClick:ue=>A(h,ue),href:h.url||h.thumbUrl,target:"_blank",rel:"noopener noreferrer"},[K])}const F={[`${f}-list-item`]:!0,[`${f}-list-item-${a.value}`]:!0},L=typeof h.linkProps=="string"?JSON.parse(h.linkProps):h.linkProps,H=w?$({customIcon:_?_({file:h}):p(vg,null,null),callback:()=>z(h),prefixCls:f,title:g.removeFile}):null,j=I&&a.value==="done"?$({customIcon:E?E({file:h}):p(S1,null,null),callback:()=>R(h),prefixCls:f,title:g.downloadFile}):null,Y=v!=="picture-card"&&p("span",{key:"download-delete",class:[`${f}-list-item-actions`,{picture:v==="picture"}]},[j,H]),Q=`${f}-list-item-name`,U=h.url?[p("a",D(D({key:"view",target:"_blank",rel:"noopener noreferrer",class:Q,title:h.name},L),{},{href:h.url,onClick:K=>A(h,K)}),[h.name]),Y]:[p("span",{key:"view",class:Q,onClick:K=>A(h,K),title:h.name},[h.name]),Y],ee={pointerEvents:"none",opacity:.5},X=O?p("a",{href:h.url||h.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:h.url||h.thumbUrl?void 0:ee,onClick:K=>A(h,K),title:g.previewFile},[T?T({file:h}):p(jc,null,null)]):null,J=v==="picture-card"&&a.value!=="uploading"&&p("span",{class:`${f}-list-item-actions`},[X,a.value==="done"&&j,H]),Z=p("div",{class:F},[k,U,J,i.value&&p(un,u.value,{default:()=>[En(p("div",{class:`${f}-list-item-progress`},["percent"in h?p(Yy,D(D({},y),{},{type:"line",percent:h.percent}),null):null]),[[jn,a.value==="uploading"]])]})]),G={[`${f}-list-item-container`]:!0,[`${M}`]:!!M},q=h.response&&typeof h.response=="string"?h.response:((c=h.error)===null||c===void 0?void 0:c.statusText)||((d=h.error)===null||d===void 0?void 0:d.message)||g.uploadError,V=a.value==="error"?p(Qn,{title:q,getPopupContainer:K=>K.parentNode},{default:()=>[Z]}):Z;return p("div",{class:G,style:N},[x?x({originNode:V,file:h,fileList:b,actions:{download:R.bind(null,h),preview:A.bind(null,h),remove:z.bind(null,h)}}):V])}}}),Ice=(e,t)=>{let{slots:n}=t;var o;return At((o=n.default)===null||o===void 0?void 0:o.call(n))[0]},Tce=oe({compatConfig:{MODE:3},name:"AUploadList",props:Ze(bce(),{listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:Cce,isImageUrl:$ce,items:[],appendActionVisible:!0}),setup(e,t){let{slots:n,expose:o}=t;const r=ne(!1);je(()=>{r.value==!0});const i=ne([]);ye(()=>e.items,function(){let h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.value=h.slice()},{immediate:!0,deep:!0}),Le(()=>{if(e.listType!=="picture"&&e.listType!=="picture-card")return;let h=!1;(e.items||[]).forEach((b,y)=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(b.originFileObj instanceof File||b.originFileObj instanceof Blob)||b.thumbUrl!==void 0||(b.thumbUrl="",e.previewFile&&e.previewFile(b.originFileObj).then(S=>{const $=S||"";$!==b.thumbUrl&&(i.value[y].thumbUrl=$,h=!0)}))}),h&&u3(i)});const l=(h,b)=>{if(e.onPreview)return b?.preventDefault(),e.onPreview(h)},a=h=>{typeof e.onDownload=="function"?e.onDownload(h):h.url&&window.open(h.url)},s=h=>{var b;(b=e.onRemove)===null||b===void 0||b.call(e,h)},u=h=>{let{file:b}=h;const y=e.iconRender||n.iconRender;if(y)return y({file:b,listType:e.listType});const S=b.status==="uploading",$=e.isImageUrl&&e.isImageUrl(b)?p(b1,null,null):p(y1,null,null);let x=p(S?Wn:m1,null,null);return e.listType==="picture"?x=S?p(Wn,null,null):$:e.listType==="picture-card"&&(x=S?e.locale.uploading:$),x},c=h=>{const{customIcon:b,callback:y,prefixCls:S,title:$}=h,x={type:"text",size:"small",title:$,onClick:()=>{y()},class:`${S}-list-item-action`};return Kt(b)?p(Lt,x,{icon:()=>b}):p(Lt,x,{default:()=>[p("span",null,[b])]})};o({handlePreview:l,handleDownload:a});const{prefixCls:d,rootPrefixCls:f}=Te("upload",e),g=P(()=>({[`${d.value}-list`]:!0,[`${d.value}-list-${e.listType}`]:!0})),v=P(()=>{const h=m({},Rc(`${f.value}-motion-collapse`));delete h.onAfterAppear,delete h.onAfterEnter,delete h.onAfterLeave;const b=m(m({},xp(`${d.value}-${e.listType==="picture-card"?"animate-inline":"animate"}`)),{class:g.value,appear:r.value});return e.listType!=="picture-card"?m(m({},h),b):b});return()=>{const{listType:h,locale:b,isImageUrl:y,showPreviewIcon:S,showRemoveIcon:$,showDownloadIcon:x,removeIcon:C,previewIcon:O,downloadIcon:w,progress:I,appendAction:T,itemRender:_,appendActionVisible:E}=e,A=T?.(),R=i.value;return p(op,D(D({},v.value),{},{tag:"div"}),{default:()=>[R.map(z=>{const{uid:M}=z;return p(Pce,{key:M,locale:b,prefixCls:d.value,file:z,items:R,progress:I,listType:h,isImgUrl:y,showPreviewIcon:S,showRemoveIcon:$,showDownloadIcon:x,onPreview:l,onDownload:a,onClose:s,removeIcon:C,previewIcon:O,downloadIcon:w,itemRender:_},m(m({},n),{iconRender:u,actionIconRender:c}))}),T?En(p(Ice,{key:"__ant_upload_appendAction"},{default:()=>A}),[[jn,!!E]]):null]})}}}),Ece=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:"not-allowed",[`p${t}-drag-icon ${n}, p${t}-text, p${t}-hint `]:{color:e.colorTextDisabled}}}}}},Mce=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSize:r,lineHeight:i}=e,l=`${t}-list-item`,a=`${l}-actions`,s=`${l}-action`,u=Math.round(r*i);return{[`${t}-wrapper`]:{[`${t}-list`]:m(m({},Xo()),{lineHeight:e.lineHeight,[l]:{position:"relative",height:e.lineHeight*r,marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${l}-name`]:m(m({},Gt),{padding:`0 ${e.paddingXS}px`,lineHeight:i,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[a]:{[s]:{opacity:0},[`${s}${n}-btn-sm`]:{height:u,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` ${s}:focus, &.picture ${s} - `]:{opacity:1},[o]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${o}`]:{color:e.colorText}},[`${t}-icon ${o}`]:{color:e.colorTextDescription,fontSize:r},[`${l}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:r+e.paddingXS,fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${l}:hover ${s}`]:{opacity:1,color:e.colorText},[`${l}-error`]:{color:e.colorError,[`${l}-name, ${t}-icon ${o}`]:{color:e.colorError},[a]:{[`${o}, ${o}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},t4=new nt("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),n4=new nt("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),_ce=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:t4},[`${n}-leave`]:{animationName:n4}}},t4,n4]},Ace=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:o,uploadProgressOffset:r}=e,i=`${t}-list`,l=`${i}-item`;return{[`${t}-wrapper`]:{[`${i}${i}-picture, ${i}${i}-picture-card`]:{[l]:{position:"relative",height:o+e.lineWidth*2+e.paddingXS*2,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:m(m({},Gt),{width:o,height:o,lineHeight:`${o+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:r,width:`calc(100% - ${e.paddingSM*2}px)`,marginTop:0,paddingInlineStart:o+e.paddingXS}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{"svg path[fill='#e6f7ff']":{fill:e.colorErrorBg},"svg path[fill='#1890ff']":{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:r}}}}}},Rce=e=>{const{componentCls:t,iconCls:n,fontSizeLG:o,colorTextLightSolid:r}=e,i=`${t}-list`,l=`${i}-item`,a=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:m(m({},Xo()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:a,height:a,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${i}${i}-picture-card`]:{[`${i}-item-container`]:{display:"inline-block",width:a,height:a,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${e.paddingXS*2}px)`,height:`calc(100% - ${e.paddingXS*2}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:o,margin:`0 ${e.marginXXS}px`,fontSize:o,cursor:"pointer",transition:`all ${e.motionDurationSlow}`}},[`${l}-actions, ${l}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new pt(r).setAlpha(.65).toRgbString(),"&:hover":{color:r}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${e.paddingXS*2}px)`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${e.paddingXS*2}px)`,paddingInlineStart:0}}})}},Dce=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Nce=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:m(m({},Ue(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},Bce=Ke("Upload",e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightLG:i}=e,l=Math.round(n*o),a=ke(e,{uploadThumbnailSize:t*2,uploadProgressOffset:l/2+r,uploadPicCardSize:i*2.55});return[Nce(a),Ece(a),Ace(a),Rce(a),Mce(a),_ce(a),Dce(a),_c(a)]});var kce=function(e,t,n,o){function r(i){return i instanceof n?i:new n(function(l){l(i)})}return new(n||(n=Promise))(function(i,l){function a(c){try{u(o.next(c))}catch(d){l(d)}}function s(c){try{u(o.throw(c))}catch(d){l(d)}}function u(c){c.done?i(c.value):r(c.value).then(a,s)}u((o=o.apply(e,t||[])).next())})},Fce=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var E;return(E=s.value)!==null&&E!==void 0?E:d.value}),[g,v]=Pt(e.defaultFileList||[],{value:ze(e,"fileList"),postState:E=>{const A=Date.now();return(E??[]).map((R,z)=>(!R.uid&&!Object.isFrozen(R)&&(R.uid=`__AUTO__${A}_${z}__`),R))}}),h=re("drop"),b=re(null);je(()=>{Ct(e.fileList!==void 0||o.value===void 0,"Upload","`value` is not a valid prop, do you mean `fileList`?"),Ct(e.transformFile===void 0,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),Ct(e.remove===void 0,"Upload","`remove` props is deprecated. Please use `remove` event.")});const y=(E,A,R)=>{var z,_;let N=[...A];e.maxCount===1?N=N.slice(-1):e.maxCount&&(N=N.slice(0,e.maxCount)),v(N);const B={file:E,fileList:N};R&&(B.event=R),(z=e["onUpdate:fileList"])===null||z===void 0||z.call(e,B.fileList),(_=e.onChange)===null||_===void 0||_.call(e,B),i.onFieldChange()},S=(E,A)=>kce(this,void 0,void 0,function*(){const{beforeUpload:R,transformFile:z}=e;let _=E;if(R){const N=yield R(E,A);if(N===!1)return!1;if(delete E[ys],N===ys)return Object.defineProperty(E,ys,{value:!0,configurable:!0}),!1;typeof N=="object"&&N&&(_=N)}return z&&(_=yield z(_)),_}),$=E=>{const A=E.filter(_=>!_.file[ys]);if(!A.length)return;const R=A.map(_=>Mu(_.file));let z=[...g.value];R.forEach(_=>{z=_u(_,z)}),R.forEach((_,N)=>{let B=_;if(A[N].parsedFile)_.status="uploading";else{const{originFileObj:k}=_;let F;try{F=new File([k],k.name,{type:k.type})}catch{F=new Blob([k],{type:k.type}),F.name=k.name,F.lastModifiedDate=new Date,F.lastModified=new Date().getTime()}F.uid=_.uid,B=F}y(B,z)})},x=(E,A,R)=>{try{typeof E=="string"&&(E=JSON.parse(E))}catch{}if(!Qh(A,g.value))return;const z=Mu(A);z.status="done",z.percent=100,z.response=E,z.xhr=R;const _=_u(z,g.value);y(z,_)},C=(E,A)=>{if(!Qh(A,g.value))return;const R=Mu(A);R.status="uploading",R.percent=E.percent;const z=_u(R,g.value);y(R,z,E)},O=(E,A,R)=>{if(!Qh(R,g.value))return;const z=Mu(R);z.error=E,z.response=A,z.status="error";const _=_u(z,g.value);y(z,_)},w=E=>{let A;const R=e.onRemove||e.remove;Promise.resolve(typeof R=="function"?R(E):R).then(z=>{var _,N;if(z===!1)return;const B=yce(E,g.value);B&&(A=m(m({},E),{status:"removed"}),(_=g.value)===null||_===void 0||_.forEach(k=>{const F=A.uid!==void 0?"uid":"name";k[F]===A[F]&&!Object.isFrozen(k)&&(k.status="removed")}),(N=b.value)===null||N===void 0||N.abort(A),y(A,B))})},I=E=>{var A;h.value=E.type,E.type==="drop"&&((A=e.onDrop)===null||A===void 0||A.call(e,E))};r({onBatchStart:$,onSuccess:x,onProgress:C,onError:O,fileList:g,upload:b});const[T]=Do("Upload",Vn.Upload,P(()=>e.locale)),M=(E,A)=>{const{removeIcon:R,previewIcon:z,downloadIcon:_,previewFile:N,onPreview:B,onDownload:k,isImageUrl:F,progress:L,itemRender:H,iconRender:j,showUploadList:Y}=e,{showDownloadIcon:Q,showPreviewIcon:U,showRemoveIcon:ee}=typeof Y=="boolean"?{}:Y;return Y?p(Tce,{prefixCls:l.value,listType:e.listType,items:g.value,previewFile:N,onPreview:B,onDownload:k,onRemove:w,showRemoveIcon:!f.value&&ee,showPreviewIcon:U,showDownloadIcon:Q,removeIcon:R,previewIcon:z,downloadIcon:_,iconRender:j,locale:T.value,isImageUrl:F,progress:L,itemRender:H,appendActionVisible:A,appendAction:E},m({},n)):E?.()};return()=>{var E,A,R;const{listType:z,type:_}=e,{class:N,style:B}=o,k=Fce(o,["class","style"]),F=m(m(m({onBatchStart:$,onError:O,onProgress:C,onSuccess:x},k),e),{id:(E=e.id)!==null&&E!==void 0?E:i.id.value,prefixCls:l.value,beforeUpload:S,onChange:void 0,disabled:f.value});delete F.remove,(!n.default||f.value)&&delete F.id;const L={[`${l.value}-rtl`]:a.value==="rtl"};if(_==="drag"){const Q=le(l.value,{[`${l.value}-drag`]:!0,[`${l.value}-drag-uploading`]:g.value.some(U=>U.status==="uploading"),[`${l.value}-drag-hover`]:h.value==="dragover",[`${l.value}-disabled`]:f.value,[`${l.value}-rtl`]:a.value==="rtl"},o.class,c.value);return u(p("span",D(D({},o),{},{class:le(`${l.value}-wrapper`,L,N,c.value)}),[p("div",{class:Q,onDrop:I,onDragover:I,onDragleave:I,style:o.style},[p(q2,D(D({},F),{},{ref:b,class:`${l.value}-btn`}),D({default:()=>[p("div",{class:`${l.value}-drag-container`},[(A=n.default)===null||A===void 0?void 0:A.call(n)])]},n))]),M()]))}const H=le(l.value,{[`${l.value}-select`]:!0,[`${l.value}-select-${z}`]:!0,[`${l.value}-disabled`]:f.value,[`${l.value}-rtl`]:a.value==="rtl"}),j=bt((R=n.default)===null||R===void 0?void 0:R.call(n)),Y=Q=>p("div",{class:H,style:Q},[p(q2,D(D({},F),{},{ref:b}),n)]);return u(z==="picture-card"?p("span",D(D({},o),{},{class:le(`${l.value}-wrapper`,`${l.value}-picture-card-wrapper`,L,o.class,c.value)}),[M(Y,!!(j&&j.length))]):p("span",D(D({},o),{},{class:le(`${l.value}-wrapper`,L,o.class,c.value)}),[Y(j&&j.length?void 0:{display:"none"}),M()]))}}});var o4=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{height:r}=e,i=o4(e,["height"]),{style:l}=o,a=o4(o,["style"]),s=m(m(m({},i),a),{type:"drag",style:m(m({},l),{height:typeof r=="number"?`${r}px`:r})});return p(Id,s,n)}}}),Lce=Td,zce=m(Id,{Dragger:Td,LIST_IGNORE:ys,install(e){return e.component(Id.name,Id),e.component(Td.name,Td),e}});function Hce(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function jce(e){return Object.keys(e).map(t=>`${Hce(t)}: ${e[t]};`).join(" ")}function r4(){return window.devicePixelRatio||1}function Jh(e,t,n,o){e.translate(t,n),e.rotate(Math.PI/180*Number(o)),e.translate(-t,-n)}const Vce=(e,t)=>{let n=!1;return e.removedNodes.length&&(n=Array.from(e.removedNodes).some(o=>o===t)),e.type==="attributes"&&e.target===t&&(n=!0),n};var Wce=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r2&&arguments[2]!==void 0?arguments[2]:{};const{window:o=DI}=n,r=Wce(n,["window"]);let i;const l=AI(()=>o&&"MutationObserver"in o),a=()=>{i&&(i.disconnect(),i=void 0)},s=ye(()=>oy(e),c=>{a(),l.value&&o&&c&&(i=new MutationObserver(t),i.observe(c,r))},{immediate:!0}),u=()=>{a(),s()};return _I(u),{isSupported:l,stop:u}}const ev=2,i4=3,Gce=()=>({zIndex:Number,rotate:Number,width:Number,height:Number,image:String,content:Fe([String,Array]),font:De(),rootClassName:String,gap:lt(),offset:lt()}),Xce=oe({name:"AWatermark",inheritAttrs:!1,props:Ze(Gce(),{zIndex:9,rotate:-22,font:{},gap:[100,100]}),setup(e,t){let{slots:n,attrs:o}=t;const[,r]=Ur(),i=ne(),l=ne(),a=ne(!1),s=P(()=>{var M,E;return(E=(M=e.gap)===null||M===void 0?void 0:M[0])!==null&&E!==void 0?E:100}),u=P(()=>{var M,E;return(E=(M=e.gap)===null||M===void 0?void 0:M[1])!==null&&E!==void 0?E:100}),c=P(()=>s.value/2),d=P(()=>u.value/2),f=P(()=>{var M,E;return(E=(M=e.offset)===null||M===void 0?void 0:M[0])!==null&&E!==void 0?E:c.value}),g=P(()=>{var M,E;return(E=(M=e.offset)===null||M===void 0?void 0:M[1])!==null&&E!==void 0?E:d.value}),v=P(()=>{var M,E;return(E=(M=e.font)===null||M===void 0?void 0:M.fontSize)!==null&&E!==void 0?E:r.value.fontSizeLG}),h=P(()=>{var M,E;return(E=(M=e.font)===null||M===void 0?void 0:M.fontWeight)!==null&&E!==void 0?E:"normal"}),b=P(()=>{var M,E;return(E=(M=e.font)===null||M===void 0?void 0:M.fontStyle)!==null&&E!==void 0?E:"normal"}),y=P(()=>{var M,E;return(E=(M=e.font)===null||M===void 0?void 0:M.fontFamily)!==null&&E!==void 0?E:"sans-serif"}),S=P(()=>{var M,E;return(E=(M=e.font)===null||M===void 0?void 0:M.color)!==null&&E!==void 0?E:r.value.colorFill}),$=P(()=>{var M;const E={zIndex:(M=e.zIndex)!==null&&M!==void 0?M:9,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let A=f.value-c.value,R=g.value-d.value;return A>0&&(E.left=`${A}px`,E.width=`calc(100% - ${A}px)`,A=0),R>0&&(E.top=`${R}px`,E.height=`calc(100% - ${R}px)`,R=0),E.backgroundPosition=`${A}px ${R}px`,E}),x=()=>{l.value&&(l.value.remove(),l.value=void 0)},C=(M,E)=>{var A;i.value&&l.value&&(a.value=!0,l.value.setAttribute("style",jce(m(m({},$.value),{backgroundImage:`url('${M}')`,backgroundSize:`${(s.value+E)*ev}px`}))),(A=i.value)===null||A===void 0||A.append(l.value),setTimeout(()=>{a.value=!1}))},O=M=>{let E=120,A=64;const R=e.content,z=e.image,_=e.width,N=e.height;if(!z&&M.measureText){M.font=`${Number(v.value)}px ${y.value}`;const B=Array.isArray(R)?R:[R],k=B.map(F=>M.measureText(F).width);E=Math.ceil(Math.max(...k)),A=Number(v.value)*B.length+(B.length-1)*i4}return[_??E,N??A]},w=(M,E,A,R,z)=>{const _=r4(),N=e.content,B=Number(v.value)*_;M.font=`${b.value} normal ${h.value} ${B}px/${z}px ${y.value}`,M.fillStyle=S.value,M.textAlign="center",M.textBaseline="top",M.translate(R/2,0);const k=Array.isArray(N)?N:[N];k?.forEach((F,L)=>{M.fillText(F??"",E,A+L*(B+i4*_))})},I=()=>{var M;const E=document.createElement("canvas"),A=E.getContext("2d"),R=e.image,z=(M=e.rotate)!==null&&M!==void 0?M:-22;if(A){l.value||(l.value=document.createElement("div"));const _=r4(),[N,B]=O(A),k=(s.value+N)*_,F=(u.value+B)*_;E.setAttribute("width",`${k*ev}px`),E.setAttribute("height",`${F*ev}px`);const L=s.value*_/2,H=u.value*_/2,j=N*_,Y=B*_,Q=(j+s.value*_)/2,U=(Y+u.value*_)/2,ee=L+k,X=H+F,J=Q+k,Z=U+F;if(A.save(),Jh(A,Q,U,z),R){const G=new Image;G.onload=()=>{A.drawImage(G,L,H,j,Y),A.restore(),Jh(A,J,Z,z),A.drawImage(G,ee,X,j,Y),C(E.toDataURL(),N)},G.crossOrigin="anonymous",G.referrerPolicy="no-referrer",G.src=R}else w(A,L,H,j,Y),A.restore(),Jh(A,J,Z,z),w(A,ee,X,j,Y),C(E.toDataURL(),N)}};return je(()=>{I()}),ye(()=>[e,r.value.colorFill,r.value.fontSizeLG],()=>{I()},{deep:!0,flush:"post"}),Qe(()=>{x()}),Kce(i,M=>{a.value||M.forEach(E=>{Vce(E,l.value)&&(x(),I())})},{attributes:!0,subtree:!0,childList:!0,attributeFilter:["style","class"]}),()=>{var M;return p("div",D(D({},o),{},{ref:i,class:[o.class,e.rootClassName],style:[{position:"relative"},o.style]}),[(M=n.default)===null||M===void 0?void 0:M.call(n)])}}}),Uce=It(Xce);function l4(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function a4(e){return{backgroundColor:e.bgColorSelected,boxShadow:e.boxShadow}}const Yce=m({overflow:"hidden"},Gt),qce=e=>{const{componentCls:t}=e;return{[t]:m(m(m(m(m({},Ue(e)),{display:"inline-block",padding:e.segmentedContainerPadding,color:e.labelColor,backgroundColor:e.bgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,"&-selected":m(m({},a4(e)),{color:e.labelColorHover}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.labelColorHover,"&::after":{backgroundColor:e.bgColorHover}},"&-label":m({minHeight:e.controlHeight-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeight-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontal}px`},Yce),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:m(m({},a4(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${e.paddingXXS}px 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:e.controlHeightLG-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeightLG-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontal}px`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:e.controlHeightSM-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeightSM-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontalSM}px`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),l4(`&-disabled ${t}-item`,e)),l4(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},Zce=Ke("Segmented",e=>{const{lineWidthBold:t,lineWidth:n,colorTextLabel:o,colorText:r,colorFillSecondary:i,colorBgLayout:l,colorBgElevated:a}=e,s=ke(e,{segmentedPaddingHorizontal:e.controlPaddingHorizontal-n,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-n,segmentedContainerPadding:t,labelColor:o,labelColorHover:r,bgColor:l,bgColorHover:i,bgColorSelected:a});return[qce(s)]}),s4=e=>e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null,Ul=e=>e!==void 0?`${e}px`:void 0,Qce=oe({props:{value:yt(),getValueIndex:yt(),prefixCls:yt(),motionName:yt(),onMotionStart:yt(),onMotionEnd:yt(),direction:yt(),containerRef:yt()},emits:["motionStart","motionEnd"],setup(e,t){let{emit:n}=t;const o=re(),r=v=>{var h;const b=e.getValueIndex(v),y=(h=e.containerRef.value)===null||h===void 0?void 0:h.querySelectorAll(`.${e.prefixCls}-item`)[b];return y?.offsetParent&&y},i=re(null),l=re(null);ye(()=>e.value,(v,h)=>{const b=r(h),y=r(v),S=s4(b),$=s4(y);i.value=S,l.value=$,n(b&&y?"motionStart":"motionEnd")},{flush:"post"});const a=P(()=>{var v,h;return e.direction==="rtl"?Ul(-((v=i.value)===null||v===void 0?void 0:v.right)):Ul((h=i.value)===null||h===void 0?void 0:h.left)}),s=P(()=>{var v,h;return e.direction==="rtl"?Ul(-((v=l.value)===null||v===void 0?void 0:v.right)):Ul((h=l.value)===null||h===void 0?void 0:h.left)});let u;const c=v=>{clearTimeout(u),ot(()=>{v&&(v.style.transform="translateX(var(--thumb-start-left))",v.style.width="var(--thumb-start-width)")})},d=v=>{u=setTimeout(()=>{v&&(gf(v,`${e.motionName}-appear-active`),v.style.transform="translateX(var(--thumb-active-left))",v.style.width="var(--thumb-active-width)")})},f=v=>{i.value=null,l.value=null,v&&(v.style.transform=null,v.style.width=null,hf(v,`${e.motionName}-appear-active`)),n("motionEnd")},g=P(()=>{var v,h;return{"--thumb-start-left":a.value,"--thumb-start-width":Ul((v=i.value)===null||v===void 0?void 0:v.width),"--thumb-active-left":s.value,"--thumb-active-width":Ul((h=l.value)===null||h===void 0?void 0:h.width)}});return Qe(()=>{clearTimeout(u)}),()=>{const v={ref:o,style:g.value,class:[`${e.prefixCls}-thumb`]};return p(un,{appear:!0,onBeforeEnter:c,onEnter:d,onAfterEnter:f},{default:()=>[!i.value||!l.value?null:p("div",v,null)]})}}});function Jce(e){return e.map(t=>typeof t=="object"&&t!==null?t:{label:t?.toString(),title:t?.toString(),value:t})}const eue=()=>({prefixCls:String,options:lt(),block:$e(),disabled:$e(),size:Ne(),value:m(m({},Fe([String,Number])),{required:!0}),motionName:String,onChange:ve(),"onUpdate:value":ve()}),oE=(e,t)=>{let{slots:n,emit:o}=t;const{value:r,disabled:i,payload:l,title:a,prefixCls:s,label:u=n.label,checked:c,className:d}=e,f=g=>{i||o("change",g,r)};return p("label",{class:le({[`${s}-item-disabled`]:i},d)},[p("input",{class:`${s}-item-input`,type:"radio",disabled:i,checked:c,onChange:f},null),p("div",{class:`${s}-item-label`,title:typeof a=="string"?a:""},[typeof u=="function"?u({value:r,disabled:i,payload:l,title:a}):u??r])])};oE.inheritAttrs=!1;const tue=oe({name:"ASegmented",inheritAttrs:!1,props:Ze(eue(),{options:[],motionName:"thumb-motion"}),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:i,direction:l,size:a}=Te("segmented",e),[s,u]=Zce(i),c=ne(),d=ne(!1),f=P(()=>Jce(e.options)),g=(v,h)=>{e.disabled||(n("update:value",h),n("change",h))};return()=>{const v=i.value;return s(p("div",D(D({},r),{},{class:le(v,{[u.value]:!0,[`${v}-block`]:e.block,[`${v}-disabled`]:e.disabled,[`${v}-lg`]:a.value=="large",[`${v}-sm`]:a.value=="small",[`${v}-rtl`]:l.value==="rtl"},r.class),ref:c}),[p("div",{class:`${v}-group`},[p(Qce,{containerRef:c,prefixCls:v,value:e.value,motionName:`${v}-${e.motionName}`,direction:l.value,getValueIndex:h=>f.value.findIndex(b=>b.value===h),onMotionStart:()=>{d.value=!0},onMotionEnd:()=>{d.value=!1}},null),f.value.map(h=>p(oE,D(D({key:h.value,prefixCls:v,checked:h.value===e.value,onChange:g},h),{},{className:le(h.className,`${v}-item`,{[`${v}-item-selected`]:h.value===e.value&&!d.value}),disabled:!!e.disabled||!!h.disabled}),o))])]))}}}),nue=It(tue),oue=e=>{const{componentCls:t}=e;return{[t]:m(m({},Ue(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,position:"relative",width:"100%",height:"100%",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired , & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent"}}},rue=Ke("QRCode",e=>oue(ke(e,{QRCodeTextColor:"rgba(0, 0, 0, 0.88)",QRCodeMaskBackgroundColor:"rgba(255, 255, 255, 0.96)"})));var iue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"}}]},name:"dashboard",theme:"outlined"};function c4(e){for(var t=1;t({size:{type:Number,default:160},value:{type:String,required:!0},type:Ne("canvas"),color:String,bgColor:String,includeMargin:Boolean,imageSettings:De()}),yue=()=>m(m({},I1()),{errorLevel:Ne("M"),icon:String,iconSize:{type:Number,default:40},status:Ne("active"),bordered:{type:Boolean,default:!0}});var Po;(function(e){class t{static encodeText(a,s){const u=e.QrSegment.makeSegments(a);return t.encodeSegments(u,s)}static encodeBinary(a,s){const u=e.QrSegment.makeBytes(a);return t.encodeSegments([u],s)}static encodeSegments(a,s){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(t.MIN_VERSION<=u&&u<=c&&c<=t.MAX_VERSION)||d<-1||d>7)throw new RangeError("Invalid value");let g,v;for(g=u;;g++){const S=t.getNumDataCodewords(g,s)*8,$=i.getTotalBits(a,g);if($<=S){v=$;break}if(g>=c)throw new RangeError("Data too long")}for(const S of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])f&&v<=t.getNumDataCodewords(g,S)*8&&(s=S);const h=[];for(const S of a){n(S.mode.modeBits,4,h),n(S.numChars,S.mode.numCharCountBits(g),h);for(const $ of S.getData())h.push($)}r(h.length==v);const b=t.getNumDataCodewords(g,s)*8;r(h.length<=b),n(0,Math.min(4,b-h.length),h),n(0,(8-h.length%8)%8,h),r(h.length%8==0);for(let S=236;h.lengthy[$>>>3]|=S<<7-($&7)),new t(g,s,y,d)}constructor(a,s,u,c){if(this.version=a,this.errorCorrectionLevel=s,this.modules=[],this.isFunction=[],at.MAX_VERSION)throw new RangeError("Version value out of range");if(c<-1||c>7)throw new RangeError("Mask value out of range");this.size=a*4+17;const d=[];for(let g=0;g>>9)*1335;const c=(s<<10|u)^21522;r(c>>>15==0);for(let d=0;d<=5;d++)this.setFunctionModule(8,d,o(c,d));this.setFunctionModule(8,7,o(c,6)),this.setFunctionModule(8,8,o(c,7)),this.setFunctionModule(7,8,o(c,8));for(let d=9;d<15;d++)this.setFunctionModule(14-d,8,o(c,d));for(let d=0;d<8;d++)this.setFunctionModule(this.size-1-d,8,o(c,d));for(let d=8;d<15;d++)this.setFunctionModule(8,this.size-15+d,o(c,d));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let a=this.version;for(let u=0;u<12;u++)a=a<<1^(a>>>11)*7973;const s=this.version<<12|a;r(s>>>18==0);for(let u=0;u<18;u++){const c=o(s,u),d=this.size-11+u%3,f=Math.floor(u/3);this.setFunctionModule(d,f,c),this.setFunctionModule(f,d,c)}}drawFinderPattern(a,s){for(let u=-4;u<=4;u++)for(let c=-4;c<=4;c++){const d=Math.max(Math.abs(c),Math.abs(u)),f=a+c,g=s+u;0<=f&&f{(S!=v-d||x>=g)&&y.push($[S])});return r(y.length==f),y}drawCodewords(a){if(a.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let s=0;for(let u=this.size-1;u>=1;u-=2){u==6&&(u=5);for(let c=0;c>>3],7-(s&7)),s++)}}r(s==a.length*8)}applyMask(a){if(a<0||a>7)throw new RangeError("Mask value out of range");for(let s=0;s5&&a++):(this.finderPenaltyAddHistory(g,v),f||(a+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),f=this.modules[d][h],g=1);a+=this.finderPenaltyTerminateAndCount(f,g,v)*t.PENALTY_N3}for(let d=0;d5&&a++):(this.finderPenaltyAddHistory(g,v),f||(a+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),f=this.modules[h][d],g=1);a+=this.finderPenaltyTerminateAndCount(f,g,v)*t.PENALTY_N3}for(let d=0;df+(g?1:0),s);const u=this.size*this.size,c=Math.ceil(Math.abs(s*20-u*10)/u)-1;return r(0<=c&&c<=9),a+=c*t.PENALTY_N4,r(0<=a&&a<=2568888),a}getAlignmentPatternPositions(){if(this.version==1)return[];{const a=Math.floor(this.version/7)+2,s=this.version==32?26:Math.ceil((this.version*4+4)/(a*2-2))*2,u=[6];for(let c=this.size-7;u.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let s=(16*a+128)*a+64;if(a>=2){const u=Math.floor(a/7)+2;s-=(25*u-10)*u-55,a>=7&&(s-=36)}return r(208<=s&&s<=29648),s}static getNumDataCodewords(a,s){return Math.floor(t.getNumRawDataModules(a)/8)-t.ECC_CODEWORDS_PER_BLOCK[s.ordinal][a]*t.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][a]}static reedSolomonComputeDivisor(a){if(a<1||a>255)throw new RangeError("Degree out of range");const s=[];for(let c=0;c0);for(const c of a){const d=c^u.shift();u.push(0),s.forEach((f,g)=>u[g]^=t.reedSolomonMultiply(f,d))}return u}static reedSolomonMultiply(a,s){if(a>>>8||s>>>8)throw new RangeError("Byte out of range");let u=0;for(let c=7;c>=0;c--)u=u<<1^(u>>>7)*285,u^=(s>>>c&1)*a;return r(u>>>8==0),u}finderPenaltyCountPatterns(a){const s=a[1];r(s<=this.size*3);const u=s>0&&a[2]==s&&a[3]==s*3&&a[4]==s&&a[5]==s;return(u&&a[0]>=s*4&&a[6]>=s?1:0)+(u&&a[6]>=s*4&&a[0]>=s?1:0)}finderPenaltyTerminateAndCount(a,s,u){return a&&(this.finderPenaltyAddHistory(s,u),s=0),s+=this.size,this.finderPenaltyAddHistory(s,u),this.finderPenaltyCountPatterns(u)}finderPenaltyAddHistory(a,s){s[0]==0&&(a+=this.size),s.pop(),s.unshift(a)}}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(l,a,s){if(a<0||a>31||l>>>a)throw new RangeError("Value out of range");for(let u=a-1;u>=0;u--)s.push(l>>>u&1)}function o(l,a){return(l>>>a&1)!=0}function r(l){if(!l)throw new Error("Assertion error")}class i{static makeBytes(a){const s=[];for(const u of a)n(u,8,s);return new i(i.Mode.BYTE,a.length,s)}static makeNumeric(a){if(!i.isNumeric(a))throw new RangeError("String contains non-numeric characters");const s=[];for(let u=0;u=1<1&&arguments[1]!==void 0?arguments[1]:0;const n=[];return e.forEach(function(o,r){let i=null;o.forEach(function(l,a){if(!l&&i!==null){n.push(`M${i+t} ${r+t}h${a-i}v1H${i+t}z`),i=null;return}if(a===o.length-1){if(!l)return;i===null?n.push(`M${a+t},${r+t} h1v1H${a+t}z`):n.push(`M${i+t},${r+t} h${a+1-i}v1H${i+t}z`);return}l&&i===null&&(i=a)})}),n.join("")}function uE(e,t){return e.slice().map((n,o)=>o=t.y+t.h?n:n.map((r,i)=>i=t.x+t.w?r:!1))}function dE(e,t,n,o){if(o==null)return null;const r=e.length+n*2,i=Math.floor(t*Cue),l=r/t,a=(o.width||i)*l,s=(o.height||i)*l,u=o.x==null?e.length/2-a/2:o.x*l,c=o.y==null?e.length/2-s/2:o.y*l;let d=null;if(o.excavate){const f=Math.floor(u),g=Math.floor(c),v=Math.ceil(a+u-f),h=Math.ceil(s+c-g);d={x:f,y:g,w:v,h}}return{x:u,y:c,h:s,w:a,excavation:d}}function fE(e,t){return t!=null?Math.floor(t):e?Sue:$ue}const xue=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),wue=oe({name:"QRCodeCanvas",inheritAttrs:!1,props:m(m({},I1()),{level:String,bgColor:String,fgColor:String,marginSize:Number}),setup(e,t){let{attrs:n,expose:o}=t;const r=P(()=>{var s;return(s=e.imageSettings)===null||s===void 0?void 0:s.src}),i=ne(null),l=ne(null),a=ne(!1);return o({toDataURL:(s,u)=>{var c;return(c=i.value)===null||c===void 0?void 0:c.toDataURL(s,u)}}),Le(()=>{const{value:s,size:u=Km,level:c=iE,bgColor:d=lE,fgColor:f=aE,includeMargin:g=sE,marginSize:v,imageSettings:h}=e;if(i.value!=null){const b=i.value,y=b.getContext("2d");if(!y)return;let S=Po.QrCode.encodeText(s,rE[c]).getModules();const $=fE(g,v),x=S.length+$*2,C=dE(S,u,$,h),O=l.value,w=a.value&&C!=null&&O!==null&&O.complete&&O.naturalHeight!==0&&O.naturalWidth!==0;w&&C.excavation!=null&&(S=uE(S,C.excavation));const I=window.devicePixelRatio||1;b.height=b.width=u*I;const T=u/x*I;y.scale(T,T),y.fillStyle=d,y.fillRect(0,0,x,x),y.fillStyle=f,xue?y.fill(new Path2D(cE(S,$))):S.forEach(function(M,E){M.forEach(function(A,R){A&&y.fillRect(R+$,E+$,1,1)})}),w&&y.drawImage(O,C.x+$,C.y+$,C.w,C.h)}},{flush:"post"}),ye(r,()=>{a.value=!1}),()=>{var s;const u=(s=e.size)!==null&&s!==void 0?s:Km,c={height:`${u}px`,width:`${u}px`};let d=null;return r.value!=null&&(d=p("img",{src:r.value,key:r.value,style:{display:"none"},onLoad:()=>{a.value=!0},ref:l},null)),p(Ve,null,[p("canvas",D(D({},n),{},{style:[c,n.style],ref:i}),null),d])}}}),Oue=oe({name:"QRCodeSVG",inheritAttrs:!1,props:m(m({},I1()),{color:String,level:String,bgColor:String,fgColor:String,marginSize:Number,title:String}),setup(e){let t=null,n=null,o=null,r=null,i=null,l=null;return Le(()=>{const{value:a,size:s=Km,level:u=iE,includeMargin:c=sE,marginSize:d,imageSettings:f}=e;t=Po.QrCode.encodeText(a,rE[u]).getModules(),n=fE(c,d),o=t.length+n*2,r=dE(t,s,n,f),f!=null&&r!=null&&(r.excavation!=null&&(t=uE(t,r.excavation)),l=p("image",{"xlink:href":f.src,height:r.h,width:r.w,x:r.x+n,y:r.y+n,preserveAspectRatio:"none"},null)),i=cE(t,n)}),()=>{const a=e.bgColor&&lE,s=e.fgColor&&aE;return p("svg",{height:e.size,width:e.size,viewBox:`0 0 ${o} ${o}`},[!!e.title&&p("title",null,[e.title]),p("path",{fill:a,d:`M0,0 h${o}v${o}H0z`,"shape-rendering":"crispEdges"},null),p("path",{fill:s,d:i,"shape-rendering":"crispEdges"},null),l])}}}),Pue=oe({name:"AQrcode",inheritAttrs:!1,props:yue(),emits:["refresh"],setup(e,t){let{emit:n,attrs:o,expose:r}=t;const[i]=Do("QRCode"),{prefixCls:l}=Te("qrcode",e),[a,s]=rue(l),[,u]=Ur(),c=re();r({toDataURL:(f,g)=>{var v;return(v=c.value)===null||v===void 0?void 0:v.toDataURL(f,g)}});const d=P(()=>{const{value:f,icon:g="",size:v=160,iconSize:h=40,color:b=u.value.colorText,bgColor:y="transparent",errorLevel:S="M"}=e,$={src:g,x:void 0,y:void 0,height:h,width:h,excavate:!0};return{value:f,size:v-(u.value.paddingSM+u.value.lineWidth)*2,level:S,bgColor:y,fgColor:b,imageSettings:g?$:void 0}});return()=>{const f=l.value;return a(p("div",D(D({},o),{},{style:[o.style,{width:`${e.size}px`,height:`${e.size}px`,backgroundColor:d.value.bgColor}],class:[s.value,f,{[`${f}-borderless`]:!e.bordered}]}),[e.status!=="active"&&p("div",{class:`${f}-mask`},[e.status==="loading"&&p(gr,null,null),e.status==="expired"&&p(Ve,null,[p("p",{class:`${f}-expired`},[i.value.expired]),p(Lt,{type:"link",onClick:g=>n("refresh",g)},{default:()=>[i.value.refresh],icon:()=>p(w1,null,null)})]),e.status==="scanned"&&p("p",{class:`${f}-scanned`},[i.value.scanned])]),e.type==="canvas"?p(wue,D({ref:c},d.value),null):p(Oue,d.value,null)]))}}}),Iue=It(Pue);function Tue(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:o,right:r,bottom:i,left:l}=e.getBoundingClientRect();return o>=0&&l>=0&&r<=t&&i<=n}function Eue(e,t,n,o){const[r,i]=ht(void 0);Le(()=>{const c=typeof e.value=="function"?e.value():e.value;i(c||null)},{flush:"post"});const[l,a]=ht(null),s=()=>{if(!t.value){a(null);return}if(r.value){!Tue(r.value)&&t.value&&r.value.scrollIntoView(o.value);const{left:c,top:d,width:f,height:g}=r.value.getBoundingClientRect(),v={left:c,top:d,width:f,height:g,radius:0};JSON.stringify(l.value)!==JSON.stringify(v)&&a(v)}else a(null)};return je(()=>{ye([t,r],()=>{s()},{flush:"post",immediate:!0}),window.addEventListener("resize",s)}),Qe(()=>{window.removeEventListener("resize",s)}),[P(()=>{var c,d;if(!l.value)return l.value;const f=((c=n.value)===null||c===void 0?void 0:c.offset)||6,g=((d=n.value)===null||d===void 0?void 0:d.radius)||2;return{left:l.value.left-f,top:l.value.top-f,width:l.value.width+f*2,height:l.value.height+f*2,radius:g}}),r]}const Mue=()=>({arrow:Fe([Boolean,Object]),target:Fe([String,Function,Object]),title:Fe([String,Object]),description:Fe([String,Object]),placement:Ne(),mask:Fe([Object,Boolean],!0),className:{type:String},style:De(),scrollIntoViewOptions:Fe([Boolean,Object])}),T1=()=>m(m({},Mue()),{prefixCls:{type:String},total:{type:Number},current:{type:Number},onClose:ve(),onFinish:ve(),renderPanel:ve(),onPrev:ve(),onNext:ve()}),_ue=oe({name:"DefaultPanel",inheritAttrs:!1,props:T1(),setup(e,t){let{attrs:n}=t;return()=>{const{prefixCls:o,current:r,total:i,title:l,description:a,onClose:s,onPrev:u,onNext:c,onFinish:d}=e;return p("div",D(D({},n),{},{class:le(`${o}-content`,n.class)}),[p("div",{class:`${o}-inner`},[p("button",{type:"button",onClick:s,"aria-label":"Close",class:`${o}-close`},[p("span",{class:`${o}-close-x`},[Ft("×")])]),p("div",{class:`${o}-header`},[p("div",{class:`${o}-title`},[l])]),p("div",{class:`${o}-description`},[a]),p("div",{class:`${o}-footer`},[p("div",{class:`${o}-sliders`},[i>1?[...Array.from({length:i}).keys()].map((f,g)=>p("span",{key:f,class:g===r?"active":""},null)):null]),p("div",{class:`${o}-buttons`},[r!==0?p("button",{class:`${o}-prev-btn`,onClick:u},[Ft("Prev")]):null,r===i-1?p("button",{class:`${o}-finish-btn`,onClick:d},[Ft("Finish")]):p("button",{class:`${o}-next-btn`,onClick:c},[Ft("Next")])])])])])}}}),Aue=oe({name:"TourStep",inheritAttrs:!1,props:T1(),setup(e,t){let{attrs:n}=t;return()=>{const{current:o,renderPanel:r}=e;return p(Ve,null,[typeof r=="function"?r(m(m({},n),e),o):p(_ue,D(D({},n),e),null)])}}});let v4=0;const Rue=Mn();function Due(){let e;return Rue?(e=v4,v4+=1):e="TEST_OR_SSR",e}function Nue(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:re("");const t=`vc_unique_${Due()}`;return e.value||t}const Au={fill:"transparent","pointer-events":"auto"},Bue=oe({name:"TourMask",props:{prefixCls:{type:String},pos:De(),rootClassName:{type:String},showMask:$e(),fill:{type:String,default:"rgba(0,0,0,0.5)"},open:$e(),animated:Fe([Boolean,Object]),zIndex:{type:Number}},setup(e,t){let{attrs:n}=t;const o=Nue();return()=>{const{prefixCls:r,open:i,rootClassName:l,pos:a,showMask:s,fill:u,animated:c,zIndex:d}=e,f=`${r}-mask-${o}`,g=typeof c=="object"?c?.placeholder:c;return p(Ic,{visible:i,autoLock:!0},{default:()=>i&&p("div",D(D({},n),{},{class:le(`${r}-mask`,l,n.class),style:[{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:d,pointerEvents:"none"},n.style]}),[s?p("svg",{style:{width:"100%",height:"100%"}},[p("defs",null,[p("mask",{id:f},[p("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"},null),a&&p("rect",{x:a.left,y:a.top,rx:a.radius,width:a.width,height:a.height,fill:"black",class:g?`${r}-placeholder-animated`:""},null)])]),p("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:u,mask:`url(#${f})`},null),a&&p(Ve,null,[p("rect",D(D({},Au),{},{x:"0",y:"0",width:"100%",height:a.top}),null),p("rect",D(D({},Au),{},{x:"0",y:"0",width:a.left,height:"100%"}),null),p("rect",D(D({},Au),{},{x:"0",y:a.top+a.height,width:"100%",height:`calc(100vh - ${a.top+a.height}px)`}),null),p("rect",D(D({},Au),{},{x:a.left+a.width,y:"0",width:`calc(100vw - ${a.left+a.width}px)`,height:"100%"}),null)])]):null])})}}}),kue=[0,0],m4={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function pE(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const t={};return Object.keys(m4).forEach(n=>{t[n]=m(m({},m4[n]),{autoArrow:e,targetOffset:kue})}),t}pE();var Fue=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{builtinPlacements:e,popupAlign:t}=wP();return{builtinPlacements:e,popupAlign:t,steps:lt(),open:$e(),defaultCurrent:{type:Number},current:{type:Number},onChange:ve(),onClose:ve(),onFinish:ve(),mask:Fe([Boolean,Object],!0),arrow:Fe([Boolean,Object],!0),rootClassName:{type:String},placement:Ne("bottom"),prefixCls:{type:String,default:"rc-tour"},renderPanel:ve(),gap:De(),animated:Fe([Boolean,Object]),scrollIntoViewOptions:Fe([Boolean,Object],!0),zIndex:{type:Number,default:1001}}},Lue=oe({name:"Tour",inheritAttrs:!1,props:Ze(gE(),{}),setup(e){const{defaultCurrent:t,placement:n,mask:o,scrollIntoViewOptions:r,open:i,gap:l,arrow:a}=jo(e),s=re(),[u,c]=Pt(0,{value:P(()=>e.current),defaultValue:t.value}),[d,f]=Pt(void 0,{value:P(()=>e.open),postState:w=>u.value<0||u.value>=e.steps.length?!1:w??!0}),g=ne(d.value);Le(()=>{d.value&&!g.value&&c(0),g.value=d.value});const v=P(()=>e.steps[u.value]||{}),h=P(()=>{var w;return(w=v.value.placement)!==null&&w!==void 0?w:n.value}),b=P(()=>{var w;return d.value&&((w=v.value.mask)!==null&&w!==void 0?w:o.value)}),y=P(()=>{var w;return(w=v.value.scrollIntoViewOptions)!==null&&w!==void 0?w:r.value}),[S,$]=Eue(P(()=>v.value.target),i,l,y),x=P(()=>$.value?typeof v.value.arrow>"u"?a.value:v.value.arrow:!1),C=P(()=>typeof x.value=="object"?x.value.pointAtCenter:!1);ye(C,()=>{var w;(w=s.value)===null||w===void 0||w.forcePopupAlign()}),ye(u,()=>{var w;(w=s.value)===null||w===void 0||w.forcePopupAlign()});const O=w=>{var I;c(w),(I=e.onChange)===null||I===void 0||I.call(e,w)};return()=>{var w;const{prefixCls:I,steps:T,onClose:M,onFinish:E,rootClassName:A,renderPanel:R,animated:z,zIndex:_}=e,N=Fue(e,["prefixCls","steps","onClose","onFinish","rootClassName","renderPanel","animated","zIndex"]);if($.value===void 0)return null;const B=()=>{f(!1),M?.(u.value)},k=typeof b.value=="boolean"?b.value:!!b.value,F=typeof b.value=="boolean"?void 0:b.value,L=()=>$.value||document.body,H=()=>p(Aue,D({arrow:x.value,key:"content",prefixCls:I,total:T.length,renderPanel:R,onPrev:()=>{O(u.value-1)},onNext:()=>{O(u.value+1)},onClose:B,current:u.value,onFinish:()=>{B(),E?.()}},v.value),null),j=P(()=>{const Y=S.value||tv,Q={};return Object.keys(Y).forEach(U=>{typeof Y[U]=="number"?Q[U]=`${Y[U]}px`:Q[U]=Y[U]}),Q});return d.value?p(Ve,null,[p(Bue,{zIndex:_,prefixCls:I,pos:S.value,showMask:k,style:F?.style,fill:F?.color,open:d.value,animated:z,rootClassName:A},null),p(Rl,D(D({},N),{},{arrow:!!N.arrow,builtinPlacements:v.value.target?(w=N.builtinPlacements)!==null&&w!==void 0?w:pE(C.value):void 0,ref:s,popupStyle:v.value.target?v.value.style:m(m({},v.value.style),{position:"fixed",left:tv.left,top:tv.top,transform:"translate(-50%, -50%)"}),popupPlacement:h.value,popupVisible:d.value,popupClassName:le(A,v.value.className),prefixCls:I,popup:H,forceRender:!1,destroyPopupOnHide:!0,zIndex:_,mask:!1,getTriggerDOMNode:L}),{default:()=>[p(Ic,{visible:d.value,autoLock:!0},{default:()=>[p("div",{class:le(A,`${I}-target-placeholder`),style:m(m({},j.value),{position:"fixed",pointerEvents:"none"})},null)]})]})]):null}}}),zue=()=>m(m({},gE()),{steps:{type:Array},prefixCls:{type:String},current:{type:Number},type:{type:String},"onUpdate:current":Function}),Hue=()=>m(m({},T1()),{cover:{type:Object},nextButtonProps:{type:Object},prevButtonProps:{type:Object},current:{type:Number},type:{type:String}}),jue=oe({name:"ATourPanel",inheritAttrs:!1,props:Hue(),setup(e,t){let{attrs:n,slots:o}=t;const{current:r,total:i}=jo(e),l=P(()=>r.value===i.value-1),a=u=>{var c;const d=e.prevButtonProps;(c=e.onPrev)===null||c===void 0||c.call(e,u),typeof d?.onClick=="function"&&d?.onClick()},s=u=>{var c,d;const f=e.nextButtonProps;l.value?(c=e.onFinish)===null||c===void 0||c.call(e,u):(d=e.onNext)===null||d===void 0||d.call(e,u),typeof f?.onClick=="function"&&f?.onClick()};return()=>{const{prefixCls:u,title:c,onClose:d,cover:f,description:g,type:v,arrow:h}=e,b=e.prevButtonProps,y=e.nextButtonProps;let S;c&&(S=p("div",{class:`${u}-header`},[p("div",{class:`${u}-title`},[c])]));let $;g&&($=p("div",{class:`${u}-description`},[g]));let x;f&&(x=p("div",{class:`${u}-cover`},[f]));let C;o.indicatorsRender?C=o.indicatorsRender({current:r.value,total:i}):C=[...Array.from({length:i.value}).keys()].map((I,T)=>p("span",{key:I,class:le(T===r.value&&`${u}-indicator-active`,`${u}-indicator`)},null));const O=v==="primary"?"default":"primary",w={type:"default",ghost:v==="primary"};return p(Il,{componentName:"Tour",defaultLocale:Vn.Tour},{default:I=>{var T;return p("div",D(D({},n),{},{class:le(v==="primary"?`${u}-primary`:"",n.class,`${u}-content`)}),[h&&p("div",{class:`${u}-arrow`,key:"arrow"},null),p("div",{class:`${u}-inner`},[p(Rn,{class:`${u}-close`,onClick:d},null),x,S,$,p("div",{class:`${u}-footer`},[i.value>1&&p("div",{class:`${u}-indicators`},[C]),p("div",{class:`${u}-buttons`},[r.value!==0?p(Lt,D(D(D({},w),b),{},{onClick:a,size:"small",class:le(`${u}-prev-btn`,b?.className)}),{default:()=>[Sv(b?.children)?b.children():(T=b?.children)!==null&&T!==void 0?T:I.Previous]}):null,p(Lt,D(D({type:O},y),{},{onClick:s,size:"small",class:le(`${u}-next-btn`,y?.className)}),{default:()=>[Sv(y?.children)?y?.children():l.value?I.Finish:I.Next]})])])])])}})}}}),Vue=e=>{let{defaultType:t,steps:n,current:o,defaultCurrent:r}=e;const i=re(r?.value),l=P(()=>o?.value);ye(l,c=>{i.value=c??r?.value},{immediate:!0});const a=c=>{i.value=c},s=P(()=>{var c,d;return typeof i.value=="number"?n&&((d=(c=n.value)===null||c===void 0?void 0:c[i.value])===null||d===void 0?void 0:d.type):t?.value});return{currentMergedType:P(()=>{var c;return(c=s.value)!==null&&c!==void 0?c:t?.value}),updateInnerCurrent:a}},Wue=e=>{const{componentCls:t,lineHeight:n,padding:o,paddingXS:r,borderRadius:i,borderRadiusXS:l,colorPrimary:a,colorText:s,colorFill:u,indicatorHeight:c,indicatorWidth:d,boxShadowTertiary:f,tourZIndexPopup:g,fontSize:v,colorBgContainer:h,fontWeightStrong:b,marginXS:y,colorTextLightSolid:S,tourBorderRadius:$,colorWhite:x,colorBgTextHover:C,tourCloseSize:O,motionDurationSlow:w,antCls:I}=e;return[{[t]:m(m({},Ue(e)),{color:s,position:"absolute",zIndex:g,display:"block",visibility:"visible",fontSize:v,lineHeight:n,width:520,"--antd-arrow-background-color":h,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:$,boxShadow:f,position:"relative",backgroundColor:h,border:"none",backgroundClip:"padding-box",[`${t}-close`]:{position:"absolute",top:o,insetInlineEnd:o,color:e.colorIcon,outline:"none",width:O,height:O,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${t}-cover`]:{textAlign:"center",padding:`${o+O+r}px ${o}px 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${o}px ${o}px ${r}px`,[`${t}-title`]:{lineHeight:n,fontSize:v,fontWeight:b}},[`${t}-description`]:{padding:`0 ${o}px`,lineHeight:n,wordWrap:"break-word"},[`${t}-footer`]:{padding:`${r}px ${o}px ${o}px`,textAlign:"end",borderRadius:`0 0 ${l}px ${l}px`,display:"flex",[`${t}-indicators`]:{display:"inline-block",[`${t}-indicator`]:{width:d,height:c,display:"inline-block",borderRadius:"50%",background:u,"&:not(:last-child)":{marginInlineEnd:c},"&-active":{background:a}}},[`${t}-buttons`]:{marginInlineStart:"auto",[`${I}-btn`]:{marginInlineStart:y}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":a,[`${t}-inner`]:{color:S,textAlign:"start",textDecoration:"none",backgroundColor:a,borderRadius:i,boxShadow:f,[`${t}-close`]:{color:S},[`${t}-indicators`]:{[`${t}-indicator`]:{background:new pt(S).setAlpha(.15).toRgbString(),"&-active":{background:S}}},[`${t}-prev-btn`]:{color:S,borderColor:new pt(S).setAlpha(.15).toRgbString(),backgroundColor:a,"&:hover":{backgroundColor:new pt(S).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${t}-next-btn`]:{color:a,borderColor:"transparent",background:x,"&:hover":{background:new pt(C).onBackground(x).toRgbString()}}}}}),[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${w}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min($,Ib)}}},Tb(e,{colorBg:"var(--antd-arrow-background-color)",contentRadius:$,limitVerticalRadius:!0})]},Kue=Ke("Tour",e=>{const{borderRadiusLG:t,fontSize:n,lineHeight:o}=e,r=ke(e,{tourZIndexPopup:e.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t,tourCloseSize:n*o});return[Wue(r)]});var Gue=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{steps:h,current:b,type:y,rootClassName:S}=e,$=Gue(e,["steps","current","type","rootClassName"]),x=le({[`${u.value}-primary`]:g.value==="primary",[`${u.value}-rtl`]:c.value==="rtl"},f.value,S),C=(I,T)=>p(jue,D(D({},I),{},{type:y,current:T}),{indicatorsRender:r.indicatorsRender}),O=I=>{v(I),o("update:current",I),o("change",I)},w=P(()=>Pb({arrowPointAtCenter:!0,autoAdjustOverflow:!0}));return d(p(Lue,D(D(D({},n),$),{},{rootClassName:x,prefixCls:u.value,current:b,defaultCurrent:e.defaultCurrent,animated:!0,renderPanel:C,onChange:O,steps:h,builtinPlacements:w.value}),null))}}}),Uue=It(Xue),hE=Symbol("appConfigContext"),Yue=e=>Xe(hE,e),que=()=>He(hE,{}),vE=Symbol("appContext"),Zue=e=>Xe(vE,e),Que=ct({message:{},notification:{},modal:{}}),Jue=()=>He(vE,Que),ede=e=>{const{componentCls:t,colorText:n,fontSize:o,lineHeight:r,fontFamily:i}=e;return{[t]:{color:n,fontSize:o,lineHeight:r,fontFamily:i}}},tde=Ke("App",e=>[ede(e)]),nde=()=>({rootClassName:String,message:De(),notification:De()}),ode=()=>Jue(),Ks=oe({name:"AApp",props:Ze(nde(),{}),setup(e,t){let{slots:n}=t;const{prefixCls:o}=Te("app",e),[r,i]=tde(o),l=P(()=>le(i.value,o.value,e.rootClassName)),a=que(),s=P(()=>({message:m(m({},a.message),e.message),notification:m(m({},a.notification),e.notification)}));Yue(s.value);const[u,c]=j8(s.value.message),[d,f]=e5(s.value.notification),[g,v]=oT(),h=P(()=>({message:u,notification:d,modal:g}));return Zue(h.value),()=>{var b;return r(p("div",{class:l.value},[v(),c(),f(),(b=n.default)===null||b===void 0?void 0:b.call(n)]))}}});Ks.useApp=ode;Ks.install=function(e){e.component(Ks.name,Ks)};const mE=["wrap","nowrap","wrap-reverse"],bE=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],yE=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],rde=(e,t)=>{const n={};return mE.forEach(o=>{n[`${e}-wrap-${o}`]=t.wrap===o}),n},ide=(e,t)=>{const n={};return yE.forEach(o=>{n[`${e}-align-${o}`]=t.align===o}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},lde=(e,t)=>{const n={};return bE.forEach(o=>{n[`${e}-justify-${o}`]=t.justify===o}),n};function ade(e,t){return le(m(m(m({},rde(e,t)),ide(e,t)),lde(e,t)))}const sde=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},cde=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},ude=e=>{const{componentCls:t}=e,n={};return mE.forEach(o=>{n[`${t}-wrap-${o}`]={flexWrap:o}}),n},dde=e=>{const{componentCls:t}=e,n={};return yE.forEach(o=>{n[`${t}-align-${o}`]={alignItems:o}}),n},fde=e=>{const{componentCls:t}=e,n={};return bE.forEach(o=>{n[`${t}-justify-${o}`]={justifyContent:o}}),n},pde=Ke("Flex",e=>{const t=ke(e,{flexGapSM:e.paddingXS,flexGap:e.padding,flexGapLG:e.paddingLG});return[sde(t),cde(t),ude(t),dde(t),fde(t)]});function b4(e){return["small","middle","large"].includes(e)}const gde=()=>({prefixCls:Ne(),vertical:$e(),wrap:Ne(),justify:Ne(),align:Ne(),flex:Fe([Number,String]),gap:Fe([Number,String]),component:yt()});var hde=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var c;return[l.value,s.value,ade(l.value,e),{[`${l.value}-rtl`]:i.value==="rtl",[`${l.value}-gap-${e.gap}`]:b4(e.gap),[`${l.value}-vertical`]:(c=e.vertical)!==null&&c!==void 0?c:r?.value.vertical}]});return()=>{var c;const{flex:d,gap:f,component:g="div"}=e,v=hde(e,["flex","gap","component"]),h={};return d&&(h.flex=d),f&&!b4(f)&&(h.gap=`${f}px`),a(p(g,D({class:[o.class,u.value],style:[o.style,h]},tt(v,["justify","wrap","align","vertical"])),{default:()=>[(c=n.default)===null||c===void 0?void 0:c.call(n)]}))}}}),mde=It(vde),y4=Object.freeze(Object.defineProperty({__proto__:null,Affix:cP,Alert:zV,Anchor:Ji,AnchorLink:R0,App:Ks,AutoComplete:hV,AutoCompleteOptGroup:gV,AutoCompleteOption:pV,Avatar:dl,AvatarGroup:lf,BackTop:Mf,Badge:Bs,BadgeRibbon:af,Breadcrumb:fl,BreadcrumbItem:pc,BreadcrumbSeparator:vf,Button:Lt,ButtonGroup:ff,Calendar:RX,Card:ma,CardGrid:$f,CardMeta:Sf,Carousel:yY,Cascader:DZ,CheckableTag:Pf,Checkbox:To,CheckboxGroup:wf,Col:zZ,Collapse:Fs,CollapsePanel:Cf,Comment:KZ,Compact:of,ConfigProvider:gl,DatePicker:sJ,Descriptions:Jl,DescriptionsItem:h5,DirectoryTree:$d,Divider:$J,Drawer:BJ,Dropdown:Wo,DropdownButton:fc,Empty:gi,Flex:mde,FloatButton:wi,FloatButtonGroup:Ef,Form:hi,FormItem:D8,FormItemRest:ef,Grid:LZ,Image:tl,ImagePreviewGroup:F5,Input:tn,InputGroup:O5,InputNumber:pte,InputPassword:T5,InputSearch:P5,Layout:Pte,LayoutContent:Ote,LayoutFooter:xte,LayoutHeader:Cte,LayoutSider:wte,List:ai,ListItem:V5,ListItemMeta:H5,LocaleProvider:F8,Mentions:Rne,MentionsOption:md,Menu:Vt,MenuDivider:hc,MenuItem:pr,MenuItemGroup:gc,Modal:Bt,MonthPicker:sd,PageHeader:coe,Pagination:cg,Popconfirm:hoe,Popover:Eb,Progress:Yy,QRCode:Iue,QuarterPicker:cd,Radio:Fn,RadioButton:bf,RadioGroup:ry,RangePicker:ud,Rate:nre,Result:vl,Row:bre,Segmented:nue,Select:gn,SelectOptGroup:uV,SelectOption:cV,Skeleton:wn,SkeletonAvatar:gy,SkeletonButton:dy,SkeletonImage:py,SkeletonInput:fy,SkeletonTitle:Wp,Slider:Nre,Space:$a,Spin:gr,Statistic:Rr,StatisticCountdown:Yne,Step:bd,Steps:Jre,SubMenu:xl,Switch:cie,TabPane:yf,Table:$ae,TableColumn:xd,TableColumnGroup:wd,TableSummary:Od,TableSummaryCell:Ff,TableSummaryRow:kf,Tabs:pl,Tag:Sa,Textarea:Ry,TimePicker:vse,TimeRangePicker:Pd,Timeline:Ws,TimelineItem:$c,Tooltip:Qn,Tour:Uue,Transfer:Wae,Tree:HT,TreeNode:Cd,TreeSelect:gse,TreeSelectNode:Wm,Typography:Zn,TypographyLink:Qa,TypographyParagraph:Ja,TypographyText:es,TypographyTitle:ts,Upload:zce,UploadDragger:Lce,Watermark:Uce,WeekPicker:ad,message:Oo,notification:Ii},Symbol.toStringTag,{value:"Module"})),bde=function(e){return Object.keys(y4).forEach(t=>{const n=y4[t];n.install&&e.use(n)}),e.use(sR.StyleProvider),e.config.globalProperties.$message=Oo,e.config.globalProperties.$notification=Ii,e.config.globalProperties.$info=Bt.info,e.config.globalProperties.$success=Bt.success,e.config.globalProperties.$error=Bt.error,e.config.globalProperties.$warning=Bt.warning,e.config.globalProperties.$confirm=Bt.confirm,e.config.globalProperties.$destroyAll=Bt.destroyAll,e},yde={version:ZO,install:bde};const ea=typeof document<"u";function SE(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Sde(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&SE(e.default)}const wt=Object.assign;function nv(e,t){const n={};for(const o in t){const r=t[o];n[o]=qo(r)?r.map(e):e(r)}return n}const Gs=()=>{},qo=Array.isArray;function S4(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}const $E=/#/g,$de=/&/g,Cde=/\//g,xde=/=/g,wde=/\?/g,CE=/\+/g,Ode=/%5B/g,Pde=/%5D/g,xE=/%5E/g,Ide=/%60/g,wE=/%7B/g,Tde=/%7C/g,OE=/%7D/g,Ede=/%20/g;function E1(e){return e==null?"":encodeURI(""+e).replace(Tde,"|").replace(Ode,"[").replace(Pde,"]")}function Mde(e){return E1(e).replace(wE,"{").replace(OE,"}").replace(xE,"^")}function Gm(e){return E1(e).replace(CE,"%2B").replace(Ede,"+").replace($E,"%23").replace($de,"%26").replace(Ide,"`").replace(wE,"{").replace(OE,"}").replace(xE,"^")}function _de(e){return Gm(e).replace(xde,"%3D")}function Ade(e){return E1(e).replace($E,"%23").replace(wde,"%3F")}function Rde(e){return Ade(e).replace(Cde,"%2F")}function Cc(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Dde=/\/$/,Nde=e=>e.replace(Dde,"");function ov(e,t,n="/"){let o,r={},i="",l="";const a=t.indexOf("#");let s=t.indexOf("?");return s=a>=0&&s>a?-1:s,s>=0&&(o=t.slice(0,s),i=t.slice(s,a>0?a:t.length),r=e(i.slice(1))),a>=0&&(o=o||t.slice(0,a),l=t.slice(a,t.length)),o=Lde(o??t,n),{fullPath:o+i+l,path:o,query:r,hash:Cc(l)}}function Bde(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function $4(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function kde(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&Na(t.matched[o],n.matched[r])&&PE(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Na(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function PE(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Fde(e[n],t[n]))return!1;return!0}function Fde(e,t){return qo(e)?C4(e,t):qo(t)?C4(t,e):e?.valueOf()===t?.valueOf()}function C4(e,t){return qo(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function Lde(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];(r===".."||r===".")&&o.push("");let i=n.length-1,l,a;for(l=0;l1&&i--;else break;return n.slice(0,i).join("/")+"/"+o.slice(l).join("/")}const ri={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Xm=(function(e){return e.pop="pop",e.push="push",e})({}),rv=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function zde(e){if(!e)if(ea){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Nde(e)}const Hde=/^[^#]+#/;function jde(e,t){return e.replace(Hde,"#")+t}function Vde(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const mg=()=>({left:window.scrollX,top:window.scrollY});function Wde(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Vde(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function x4(e,t){return(history.state?history.state.position-t:-1)+e}const Um=new Map;function Kde(e,t){Um.set(e,t)}function Gde(e){const t=Um.get(e);return Um.delete(e),t}function Xde(e){return typeof e=="string"||e&&typeof e=="object"}function IE(e){return typeof e=="string"||typeof e=="symbol"}let jt=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const TE=Symbol("");jt.MATCHER_NOT_FOUND+"",jt.NAVIGATION_GUARD_REDIRECT+"",jt.NAVIGATION_ABORTED+"",jt.NAVIGATION_CANCELLED+"",jt.NAVIGATION_DUPLICATED+"";function Ba(e,t){return wt(new Error,{type:e,[TE]:!0},t)}function wr(e,t){return e instanceof Error&&TE in e&&(t==null||!!(e.type&t))}const Ude=["params","query","hash"];function Yde(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Ude)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function qde(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;or&&Gm(r)):[o&&Gm(o)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function Zde(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=qo(o)?o.map(r=>r==null?null:""+r):o==null?o:""+o)}return t}const Qde=Symbol(""),O4=Symbol(""),bg=Symbol(""),EE=Symbol(""),Ym=Symbol("");function ps(){let e=[];function t(o){return e.push(o),()=>{const r=e.indexOf(o);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function fi(e,t,n,o,r,i=l=>l()){const l=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise((a,s)=>{const u=f=>{f===!1?s(Ba(jt.NAVIGATION_ABORTED,{from:n,to:t})):f instanceof Error?s(f):Xde(f)?s(Ba(jt.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(l&&o.enterCallbacks[r]===l&&typeof f=="function"&&l.push(f),a())},c=i(()=>e.call(o&&o.instances[r],t,n,u));let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch(f=>s(f))})}function iv(e,t,n,o,r=i=>i()){const i=[];for(const l of e)for(const a in l.components){let s=l.components[a];if(!(t!=="beforeRouteEnter"&&!l.instances[a]))if(SE(s)){const u=(s.__vccOpts||s)[t];u&&i.push(fi(u,n,o,l,a,r))}else{let u=s();i.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${l.path}"`);const d=Sde(c)?c.default:c;l.mods[a]=c,l.components[a]=d;const f=(d.__vccOpts||d)[t];return f&&fi(f,n,o,l,a,r)()}))}}return i}function Jde(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let l=0;lNa(u,a))?o.push(a):n.push(a));const s=e.matched[l];s&&(t.matched.find(u=>Na(u,s))||r.push(s))}return[n,o,r]}let efe=()=>location.protocol+"//"+location.host;function ME(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let l=r.includes(e.slice(i))?e.slice(i).length:1,a=r.slice(l);return a[0]!=="/"&&(a="/"+a),$4(a,"")}return $4(n,e)+o+r}function tfe(e,t,n,o){let r=[],i=[],l=null;const a=({state:f})=>{const g=ME(e,location),v=n.value,h=t.value;let b=0;if(f){if(n.value=g,t.value=f,l&&l===v){l=null;return}b=h?f.position-h.position:0}else o(g);r.forEach(y=>{y(n.value,v,{delta:b,type:Xm.pop,direction:b?b>0?rv.forward:rv.back:rv.unknown})})};function s(){l=n.value}function u(f){r.push(f);const g=()=>{const v=r.indexOf(f);v>-1&&r.splice(v,1)};return i.push(g),g}function c(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(wt({},f.state,{scroll:mg()}),"")}}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:s,listen:u,destroy:d}}function P4(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?mg():null}}function nfe(e){const{history:t,location:n}=window,o={value:ME(e,n)},r={value:t.state};r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,u,c){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+s:efe()+e+s;try{t[c?"replaceState":"pushState"](u,"",f),r.value=u}catch(g){console.error(g),n[c?"replace":"assign"](f)}}function l(s,u){i(s,wt({},t.state,P4(r.value.back,s,r.value.forward,!0),u,{position:r.value.position}),!0),o.value=s}function a(s,u){const c=wt({},r.value,t.state,{forward:s,scroll:mg()});i(c.current,c,!0),i(s,wt({},P4(o.value,s,null),{position:c.position+1},u),!1),o.value=s}return{location:o,state:r,push:a,replace:l}}function ofe(e){e=zde(e);const t=nfe(e),n=tfe(e,t.state,t.location,t.replace);function o(i,l=!0){l||n.pauseListeners(),history.go(i)}const r=wt({location:"",base:e,go:o,createHref:jde.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let ll=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var rn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(rn||{});const rfe={type:ll.Static,value:""},ife=/[a-zA-Z0-9_]/;function lfe(e){if(!e)return[[]];if(e==="/")return[[rfe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=rn.Static,o=n;const r=[];let i;function l(){i&&r.push(i),i=[]}let a=0,s,u="",c="";function d(){u&&(n===rn.Static?i.push({type:ll.Static,value:u}):n===rn.Param||n===rn.ParamRegExp||n===rn.ParamRegExpEnd?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:ll.Param,value:u,regexp:c,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=s}for(;at.length?t.length===1&&t[0]===kn.Static+kn.Segment?1:-1:0}function _E(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const dfe={strict:!1,end:!0,sensitive:!1};function ffe(e,t,n){const o=cfe(lfe(e.path),n),r=wt(o,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function pfe(e,t){const n=[],o=new Map;t=S4(dfe,t);function r(d){return o.get(d)}function i(d,f,g){const v=!g,h=M4(d);h.aliasOf=g&&g.record;const b=S4(t,d),y=[h];if("alias"in d){const x=typeof d.alias=="string"?[d.alias]:d.alias;for(const C of x)y.push(M4(wt({},h,{components:g?g.record.components:h.components,path:C,aliasOf:g?g.record:h})))}let S,$;for(const x of y){const{path:C}=x;if(f&&C[0]!=="/"){const O=f.record.path,w=O[O.length-1]==="/"?"":"/";x.path=f.record.path+(C&&w+C)}if(S=ffe(x,f,b),g?g.alias.push(S):($=$||S,$!==S&&$.alias.push(S),v&&d.name&&!_4(S)&&l(d.name)),AE(S)&&s(S),h.children){const O=h.children;for(let w=0;w{l($)}:Gs}function l(d){if(IE(d)){const f=o.get(d);f&&(o.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(l),f.alias.forEach(l))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&o.delete(d.record.name),d.children.forEach(l),d.alias.forEach(l))}}function a(){return n}function s(d){const f=vfe(d,n);n.splice(f,0,d),d.record.name&&!_4(d)&&o.set(d.record.name,d)}function u(d,f){let g,v={},h,b;if("name"in d&&d.name){if(g=o.get(d.name),!g)throw Ba(jt.MATCHER_NOT_FOUND,{location:d});b=g.record.name,v=wt(E4(f.params,g.keys.filter($=>!$.optional).concat(g.parent?g.parent.keys.filter($=>$.optional):[]).map($=>$.name)),d.params&&E4(d.params,g.keys.map($=>$.name))),h=g.stringify(v)}else if(d.path!=null)h=d.path,g=n.find($=>$.re.test(h)),g&&(v=g.parse(h),b=g.record.name);else{if(g=f.name?o.get(f.name):n.find($=>$.re.test(f.path)),!g)throw Ba(jt.MATCHER_NOT_FOUND,{location:d,currentLocation:f});b=g.record.name,v=wt({},f.params,d.params),h=g.stringify(v)}const y=[];let S=g;for(;S;)y.unshift(S.record),S=S.parent;return{name:b,path:h,params:v,matched:y,meta:hfe(y)}}e.forEach(d=>i(d));function c(){n.length=0,o.clear()}return{addRoute:i,resolve:u,removeRoute:l,clearRoutes:c,getRoutes:a,getRecordMatcher:r}}function E4(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function M4(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:gfe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function gfe(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function _4(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function hfe(e){return e.reduce((t,n)=>wt(t,n.meta),{})}function vfe(e,t){let n=0,o=t.length;for(;n!==o;){const i=n+o>>1;_E(e,t[i])<0?o=i:n=i+1}const r=mfe(e);return r&&(o=t.lastIndexOf(r,o-1)),o}function mfe(e){let t=e;for(;t=t.parent;)if(AE(t)&&_E(e,t)===0)return t}function AE({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function A4(e){const t=He(bg),n=He(EE),o=P(()=>{const s=St(e.to);return t.resolve(s)}),r=P(()=>{const{matched:s}=o.value,{length:u}=s,c=s[u-1],d=n.matched;if(!c||!d.length)return-1;const f=d.findIndex(Na.bind(null,c));if(f>-1)return f;const g=R4(s[u-2]);return u>1&&R4(c)===g&&d[d.length-1].path!==g?d.findIndex(Na.bind(null,s[u-2])):f}),i=P(()=>r.value>-1&&Cfe(n.params,o.value.params)),l=P(()=>r.value>-1&&r.value===n.matched.length-1&&PE(n.params,o.value.params));function a(s={}){if($fe(s)){const u=t[St(e.replace)?"replace":"push"](St(e.to)).catch(Gs);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:o,href:P(()=>o.value.href),isActive:i,isExactActive:l,navigate:a}}function bfe(e){return e.length===1?e[0]:e}const yfe=oe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:A4,setup(e,{slots:t}){const n=ct(A4(e)),{options:o}=He(bg),r=P(()=>({[D4(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[D4(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&bfe(t.default(n));return e.custom?i:Vr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),Sfe=yfe;function $fe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Cfe(e,t){for(const n in t){const o=t[n],r=e[n];if(typeof o=="string"){if(o!==r)return!1}else if(!qo(r)||r.length!==o.length||o.some((i,l)=>i.valueOf()!==r[l].valueOf()))return!1}return!0}function R4(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const D4=(e,t,n)=>e??t??n,xfe=oe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=He(Ym),r=P(()=>e.route||o.value),i=He(O4,0),l=P(()=>{let u=St(i);const{matched:c}=r.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),a=P(()=>r.value.matched[l.value]);Xe(O4,P(()=>l.value+1)),Xe(Qde,a),Xe(Ym,r);const s=re();return ye(()=>[s.value,a.value,e.name],([u,c,d],[f,g,v])=>{c&&(c.instances[d]=u,g&&g!==c&&u&&u===f&&(c.leaveGuards.size||(c.leaveGuards=g.leaveGuards),c.updateGuards.size||(c.updateGuards=g.updateGuards))),u&&c&&(!g||!Na(c,g)||!f)&&(c.enterCallbacks[d]||[]).forEach(h=>h(u))},{flush:"post"}),()=>{const u=r.value,c=e.name,d=a.value,f=d&&d.components[c];if(!f)return N4(n.default,{Component:f,route:u});const g=d.props[c],v=g?g===!0?u.params:typeof g=="function"?g(u):g:null,b=Vr(f,wt({},v,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(d.instances[c]=null)},ref:s}));return N4(n.default,{Component:b,route:u})||b}}});function N4(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const wfe=xfe;function Ofe(e){const t=pfe(e.routes,e),n=e.parseQuery||qde,o=e.stringifyQuery||w4,r=e.history,i=ps(),l=ps(),a=ps(),s=ne(ri);let u=ri;ea&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=nv.bind(null,X=>""+X),d=nv.bind(null,Rde),f=nv.bind(null,Cc);function g(X,J){let Z,G;return IE(X)?(Z=t.getRecordMatcher(X),G=J):G=X,t.addRoute(G,Z)}function v(X){const J=t.getRecordMatcher(X);J&&t.removeRoute(J)}function h(){return t.getRoutes().map(X=>X.record)}function b(X){return!!t.getRecordMatcher(X)}function y(X,J){if(J=wt({},J||s.value),typeof X=="string"){const te=ov(n,X,J.path),ue=t.resolve({path:te.path},J),ie=r.createHref(te.fullPath);return wt(te,ue,{params:f(ue.params),hash:Cc(te.hash),redirectedFrom:void 0,href:ie})}let Z;if(X.path!=null)Z=wt({},X,{path:ov(n,X.path,J.path).path});else{const te=wt({},X.params);for(const ue in te)te[ue]==null&&delete te[ue];Z=wt({},X,{params:d(te)}),J.params=d(J.params)}const G=t.resolve(Z,J),q=X.hash||"";G.params=c(f(G.params));const V=Bde(o,wt({},X,{hash:Mde(q),path:G.path})),K=r.createHref(V);return wt({fullPath:V,hash:q,query:o===w4?Zde(X.query):X.query||{}},G,{redirectedFrom:void 0,href:K})}function S(X){return typeof X=="string"?ov(n,X,s.value.path):wt({},X)}function $(X,J){if(u!==X)return Ba(jt.NAVIGATION_CANCELLED,{from:J,to:X})}function x(X){return w(X)}function C(X){return x(wt(S(X),{replace:!0}))}function O(X,J){const Z=X.matched[X.matched.length-1];if(Z&&Z.redirect){const{redirect:G}=Z;let q=typeof G=="function"?G(X,J):G;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=S(q):{path:q},q.params={}),wt({query:X.query,hash:X.hash,params:q.path!=null?{}:X.params},q)}}function w(X,J){const Z=u=y(X),G=s.value,q=X.state,V=X.force,K=X.replace===!0,te=O(Z,G);if(te)return w(wt(S(te),{state:typeof te=="object"?wt({},q,te.state):q,force:V,replace:K}),J||Z);const ue=Z;ue.redirectedFrom=J;let ie;return!V&&kde(o,G,Z)&&(ie=Ba(jt.NAVIGATION_DUPLICATED,{to:ue,from:G}),H(G,G,!0,!1)),(ie?Promise.resolve(ie):M(ue,G)).catch(ae=>wr(ae)?wr(ae,jt.NAVIGATION_GUARD_REDIRECT)?ae:L(ae):k(ae,ue,G)).then(ae=>{if(ae){if(wr(ae,jt.NAVIGATION_GUARD_REDIRECT))return w(wt({replace:K},S(ae.to),{state:typeof ae.to=="object"?wt({},q,ae.to.state):q,force:V}),J||ue)}else ae=A(ue,G,!0,K,q);return E(ue,G,ae),ae})}function I(X,J){const Z=$(X,J);return Z?Promise.reject(Z):Promise.resolve()}function T(X){const J=Q.values().next().value;return J&&typeof J.runWithContext=="function"?J.runWithContext(X):X()}function M(X,J){let Z;const[G,q,V]=Jde(X,J);Z=iv(G.reverse(),"beforeRouteLeave",X,J);for(const te of G)te.leaveGuards.forEach(ue=>{Z.push(fi(ue,X,J))});const K=I.bind(null,X,J);return Z.push(K),ee(Z).then(()=>{Z=[];for(const te of i.list())Z.push(fi(te,X,J));return Z.push(K),ee(Z)}).then(()=>{Z=iv(q,"beforeRouteUpdate",X,J);for(const te of q)te.updateGuards.forEach(ue=>{Z.push(fi(ue,X,J))});return Z.push(K),ee(Z)}).then(()=>{Z=[];for(const te of V)if(te.beforeEnter)if(qo(te.beforeEnter))for(const ue of te.beforeEnter)Z.push(fi(ue,X,J));else Z.push(fi(te.beforeEnter,X,J));return Z.push(K),ee(Z)}).then(()=>(X.matched.forEach(te=>te.enterCallbacks={}),Z=iv(V,"beforeRouteEnter",X,J,T),Z.push(K),ee(Z))).then(()=>{Z=[];for(const te of l.list())Z.push(fi(te,X,J));return Z.push(K),ee(Z)}).catch(te=>wr(te,jt.NAVIGATION_CANCELLED)?te:Promise.reject(te))}function E(X,J,Z){a.list().forEach(G=>T(()=>G(X,J,Z)))}function A(X,J,Z,G,q){const V=$(X,J);if(V)return V;const K=J===ri,te=ea?history.state:{};Z&&(G||K?r.replace(X.fullPath,wt({scroll:K&&te&&te.scroll},q)):r.push(X.fullPath,q)),s.value=X,H(X,J,Z,K),L()}let R;function z(){R||(R=r.listen((X,J,Z)=>{if(!U.listening)return;const G=y(X),q=O(G,U.currentRoute.value);if(q){w(wt(q,{replace:!0,force:!0}),G).catch(Gs);return}u=G;const V=s.value;ea&&Kde(x4(V.fullPath,Z.delta),mg()),M(G,V).catch(K=>wr(K,jt.NAVIGATION_ABORTED|jt.NAVIGATION_CANCELLED)?K:wr(K,jt.NAVIGATION_GUARD_REDIRECT)?(w(wt(S(K.to),{force:!0}),G).then(te=>{wr(te,jt.NAVIGATION_ABORTED|jt.NAVIGATION_DUPLICATED)&&!Z.delta&&Z.type===Xm.pop&&r.go(-1,!1)}).catch(Gs),Promise.reject()):(Z.delta&&r.go(-Z.delta,!1),k(K,G,V))).then(K=>{K=K||A(G,V,!1),K&&(Z.delta&&!wr(K,jt.NAVIGATION_CANCELLED)?r.go(-Z.delta,!1):Z.type===Xm.pop&&wr(K,jt.NAVIGATION_ABORTED|jt.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),E(G,V,K)}).catch(Gs)}))}let _=ps(),N=ps(),B;function k(X,J,Z){L(X);const G=N.list();return G.length?G.forEach(q=>q(X,J,Z)):console.error(X),Promise.reject(X)}function F(){return B&&s.value!==ri?Promise.resolve():new Promise((X,J)=>{_.add([X,J])})}function L(X){return B||(B=!X,z(),_.list().forEach(([J,Z])=>X?Z(X):J()),_.reset()),X}function H(X,J,Z,G){const{scrollBehavior:q}=e;if(!ea||!q)return Promise.resolve();const V=!Z&&Gde(x4(X.fullPath,0))||(G||!Z)&&history.state&&history.state.scroll||null;return ot().then(()=>q(X,J,V)).then(K=>K&&Wde(K)).catch(K=>k(K,X,J))}const j=X=>r.go(X);let Y;const Q=new Set,U={currentRoute:s,listening:!0,addRoute:g,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:h,resolve:y,options:e,push:x,replace:C,go:j,back:()=>j(-1),forward:()=>j(1),beforeEach:i.add,beforeResolve:l.add,afterEach:a.add,onError:N.add,isReady:F,install(X){X.component("RouterLink",Sfe),X.component("RouterView",wfe),X.config.globalProperties.$router=U,Object.defineProperty(X.config.globalProperties,"$route",{enumerable:!0,get:()=>St(s)}),ea&&!Y&&s.value===ri&&(Y=!0,x(r.location).catch(G=>{}));const J={};for(const G in ri)Object.defineProperty(J,G,{get:()=>s.value[G],enumerable:!0});X.provide(bg,U),X.provide(EE,s3(J)),X.provide(Ym,s);const Z=X.unmount;Q.add(X),X.unmount=function(){Q.delete(X),Q.size<1&&(u=ri,R&&R(),R=null,s.value=ri,Y=!1,B=!1),Z()}}};function ee(X){return X.reduce((J,Z)=>J.then(()=>T(Z)),Promise.resolve())}return U}function Pfe(){return He(bg)}const RE=C_("settings",{state:()=>({token:localStorage.getItem("admin_token")||"",serverConfig:{},browserConfig:{},workerConfig:[],poolConfig:{strategy:"least_busy",failover:{enabled:!1,maxRetries:3}},adapterConfig:{},adaptersMeta:[]}),actions:{setToken(e){this.token=e,e?localStorage.setItem("admin_token",e):localStorage.removeItem("admin_token")},getHeaders(){const e={"Content-Type":"application/json"};return this.token&&(e.Authorization=`Bearer ${this.token}`),e},async checkAuth(){try{return(await fetch("/admin/status",{headers:this.getHeaders()})).status!==401}catch{return!1}},async handleResponse(e,t){let n={};try{n=await e.json()}catch{}return e.ok?(t&&Oo.success(t),{success:!0,data:n}):(console.error("Request failed:",e.status,n),Bt.error({title:"保存失败",content:n.message||`请求未成功: ${e.status} ${e.statusText}`,okText:"好的"}),{success:!1,data:n})},async fetchServerConfig(){try{const e=await fetch("/admin/config/server",{headers:this.getHeaders()});e.ok&&(this.serverConfig=await e.json())}catch(e){console.error("Fetch server config failed",e)}},async saveServerConfig(e){try{const t=await fetch("/admin/config/server",{method:"POST",headers:this.getHeaders(),body:JSON.stringify(e)});if((await this.handleResponse(t,"服务器设置保存成功")).success)return this.serverConfig=e,!0}catch(t){Bt.error({title:"保存失败 (网络异常)",content:t.message})}return!1},async fetchBrowserConfig(){try{const e=await fetch("/admin/config/browser",{headers:this.getHeaders()});e.ok&&(this.browserConfig=await e.json())}catch(e){console.error("Fetch browser config failed",e)}},async saveBrowserConfig(e){try{const t=await fetch("/admin/config/browser",{method:"POST",headers:this.getHeaders(),body:JSON.stringify(e)});if((await this.handleResponse(t,"浏览器设置保存成功")).success)return this.browserConfig=e,!0}catch(t){Bt.error({title:"保存失败 (网络异常)",content:t.message})}return!1},async fetchWorkerConfig(){try{const e=await fetch("/admin/config/instances",{headers:this.getHeaders()});e.ok&&(this.workerConfig=await e.json())}catch(e){console.error("Fetch instance configuration failed",e)}},async saveWorkerConfig(e){try{const t=await fetch("/admin/config/instances",{method:"POST",headers:this.getHeaders(),body:JSON.stringify(e)});if((await this.handleResponse(t,"实例配置保存成功")).success)return this.workerConfig=e,!0}catch(t){Bt.error({title:"保存失败 (网络异常)",content:t.message})}return!1},async fetchPoolConfig(){try{const e=await fetch("/admin/config/pool",{headers:this.getHeaders()});if(e.ok){const t=await e.json();this.poolConfig={strategy:t.strategy||"least_busy",failover:{enabled:t.failover?.enabled||!1,maxRetries:t.failover?.maxRetries||3}}}}catch(e){console.error("Fetch pool config failed",e)}},async savePoolConfig(e){try{const t=await fetch("/admin/config/pool",{method:"POST",headers:this.getHeaders(),body:JSON.stringify(e)});if((await this.handleResponse(t,"工作池设置保存成功")).success)return this.poolConfig=e,!0}catch(t){Bt.error({title:"保存失败 (网络异常)",content:t.message})}return!1},async fetchAdaptersMeta(){try{const e=await fetch("/admin/adapters",{headers:this.getHeaders()});e.ok&&(this.adaptersMeta=await e.json())}catch(e){console.error("Fetch adapters meta failed",e)}},async fetchAdapterConfig(){try{const e=await fetch("/admin/config/adapters",{headers:this.getHeaders()});e.ok&&(this.adapterConfig=await e.json())}catch(e){console.error("Fetch adapter config failed",e)}},async saveAdapterConfig(e){try{const t=await fetch("/admin/config/adapters",{method:"POST",headers:this.getHeaders(),body:JSON.stringify(e)});if((await this.handleResponse(t,"适配器设置保存成功")).success)return this.adapterConfig={...this.adapterConfig,...e},!0}catch(t){Bt.error({title:"保存失败 (网络异常)",content:t.message})}return!1}}}),Ife={style:{padding:"20px 0"}},Tfe={style:{"text-align":"center","margin-bottom":"24px"}},Efe={__name:"LoginModal",props:{visible:{type:Boolean,required:!0}},emits:["update:visible","success"],setup(e,{emit:t}){const n=t,o=RE(),r=re(o.token),i=re(!1),l=async()=>{if(!r.value){Oo.warning("请输入 Token");return}i.value=!0;try{const a=o.token;o.setToken(r.value),await o.checkAuth()?(Oo.success("验证成功"),n("success"),n("update:visible",!1)):(Oo.error("Token 验证失败,请检查是否正确"),o.setToken(a))}catch{Oo.error("验证过程发生错误")}finally{i.value=!1}};return(a,s)=>{const u=ln("a-avatar"),c=ln("a-input-password"),d=ln("a-form-item"),f=ln("a-button"),g=ln("a-form"),v=ln("a-modal");return Nd(),h0(v,{open:e.visible,title:"需要身份验证",closable:!1,maskClosable:!1,footer:null,width:"400px",centered:""},{default:xt(()=>[qn("div",Ife,[qn("div",Tfe,[p(u,{size:64,style:{"background-color":"#1890ff"}},{icon:xt(()=>[p(St(Lf))]),_:1}),s[1]||(s[1]=qn("div",{style:{"margin-top":"16px","font-size":"16px","font-weight":"500"}}," WebAI2API 管理面板 ",-1)),s[2]||(s[2]=qn("div",{style:{color:"#8c8c8c","margin-top":"8px"}}," 请输入访问 Token 以继续 ",-1))]),p(g,{layout:"vertical"},{default:xt(()=>[p(d,{label:"Access Token"},{default:xt(()=>[p(c,{value:r.value,"onUpdate:value":s[0]||(s[0]=h=>r.value=h),placeholder:"请输入 Token",size:"large",onPressEnter:l},{prefix:xt(()=>[p(St(Lf),{style:{color:"rgba(0,0,0,.25)"}})]),_:1},8,["value"])]),_:1}),p(f,{type:"primary",block:"",size:"large",loading:i.value,onClick:l},{default:xt(()=>[...s[3]||(s[3]=[Ft(" 验证并登录 ",-1)])]),_:1},8,["loading"])]),_:1})])]),_:1},8,["open"])}}},Mfe=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},_fe={key:1},Afe={href:"https://github.com/foxhui/WebAI2API",target:"_blank",style:{color:"#8c8c8c","font-size":"20px"}},Rfe={__name:"App",setup(e){const t=Pfe(),n=RE(),o=re(["dash"]),r=re(!1),i=re(!1),l=re(!1),a=()=>{l.value=!0,n.setToken(""),setTimeout(()=>{l.value=!1,i.value=!0},500)},s={dash:"/","settings-server":"/settings/server","settings-workers":"/settings/workers","settings-browser":"/settings/browser","settings-adapters":"/settings/adapters","tools-display":"/tools/display","tools-cache":"/tools/cache"},u=({key:d})=>{const f=s[d];f&&t.push(f)},c=re(!0);return je(async()=>{const d=()=>{window.innerWidth<=768&&(r.value=!0)};d(),window.addEventListener("resize",d);try{n.token?await n.checkAuth()||(n.setToken(""),i.value=!0):i.value=!0}catch(f){console.error("Auth check failed",f),i.value=!0}finally{c.value=!1}$n(()=>{window.removeEventListener("resize",d)})}),(d,f)=>{const g=ln("a-spin"),v=ln("a-button"),h=ln("a-flex"),b=ln("a-layout-header"),y=ln("a-menu-item"),S=ln("a-sub-menu"),$=ln("a-menu"),x=ln("a-layout-sider"),C=ln("router-view"),O=ln("a-layout-content"),w=ln("a-card"),I=ln("a-layout-footer"),T=ln("a-layout");return c.value?(Nd(),h0(g,{key:0,spinning:c.value,tip:"正在验证身份...",size:"large",style:{height:"100vh",display:"flex","align-items":"center","justify-content":"center"}},null,8,["spinning"])):(Nd(),O7("div",_fe,[p(Efe,{visible:i.value,"onUpdate:visible":f[0]||(f[0]=M=>i.value=M)},null,8,["visible"]),p(T,{style:{"min-height":"100vh"},theme:"light"},{default:xt(()=>[p(b,{class:"header",style:{background:"rgba(255, 255, 255, 0.7)","backdrop-filter":"blur(20px)","-webkit-backdrop-filter":"blur(20px)","border-bottom":"1.5px solid rgba(0, 0, 0, 0.05)",display:"flex","align-items":"center",padding:"0 24px",position:"fixed",width:"100%",top:"0","z-index":"1000"}},{default:xt(()=>[f[4]||(f[4]=qn("div",{class:"logo",style:{"font-size":"1.25rem","font-weight":"bold",color:"#1890ff","margin-right":"24px"}}," WebAI2API ",-1)),p(h,{justify:"end",align:"center",style:{flex:"1"}},{default:xt(()=>[p(v,{danger:"",loading:l.value,onClick:a},{icon:xt(()=>[p(St(x1))]),default:xt(()=>[f[3]||(f[3]=Ft(" 退出登录 ",-1))]),_:1},8,["loading"])]),_:1})]),_:1}),p(T,{style:{"margin-top":"64px"}},{default:xt(()=>[p(x,{collapsed:r.value,"onUpdate:collapsed":f[2]||(f[2]=M=>r.value=M),collapsible:"",theme:"light",style:{position:"fixed",left:"0",top:"64px",height:"calc(100vh - 64px)","overflow-y":"auto","z-index":"100"}},{default:xt(()=>[p($,{selectedKeys:o.value,"onUpdate:selectedKeys":f[1]||(f[1]=M=>o.value=M),mode:"inline",onClick:u},{default:xt(()=>[p(y,{key:"dash"},{default:xt(()=>[p(St($1)),f[5]||(f[5]=qn("span",null,"状态概览",-1))]),_:1}),p(S,{key:"settings"},{title:xt(()=>[qn("span",null,[p(St(O1)),f[6]||(f[6]=qn("span",null,"系统设置",-1))])]),default:xt(()=>[p(y,{key:"settings-server"},{default:xt(()=>[...f[7]||(f[7]=[Ft("服务器",-1)])]),_:1}),p(y,{key:"settings-workers"},{default:xt(()=>[...f[8]||(f[8]=[Ft("工作池",-1)])]),_:1}),p(y,{key:"settings-browser"},{default:xt(()=>[...f[9]||(f[9]=[Ft("浏览器",-1)])]),_:1}),p(y,{key:"settings-adapters"},{default:xt(()=>[...f[10]||(f[10]=[Ft("适配器",-1)])]),_:1})]),_:1}),p(S,{key:"tools"},{title:xt(()=>[qn("span",null,[p(St(P1)),f[11]||(f[11]=qn("span",null,"系统管理",-1))])]),default:xt(()=>[p(y,{key:"tools-display"},{default:xt(()=>[...f[12]||(f[12]=[Ft("虚拟显示器",-1)])]),_:1}),p(y,{key:"tools-cache"},{default:xt(()=>[...f[13]||(f[13]=[Ft("缓存与重启",-1)])]),_:1})]),_:1})]),_:1},8,["selectedKeys"])]),_:1},8,["collapsed"]),p(T,{style:Gf({marginLeft:r.value?"80px":"200px",padding:"16px",transition:"margin-left 0.2s"})},{default:xt(()=>[p(O,{style:{"min-height":"280px"}},{default:xt(()=>[p(C)]),_:1}),p(I,{class:"footer",style:{padding:"0px","margin-top":"10px"}},{default:xt(()=>[p(w,{bordered:!1,bodyStyle:{padding:"16px 24px",display:"flex",justifyContent:"space-between",alignItems:"center"}},{default:xt(()=>[qn("div",null,[qn("a",Afe,[p(St(C1))])])]),_:1})]),_:1})]),_:1},8,["style"])]),_:1})]),_:1})]))}}},Dfe=Mfe(Rfe,[["__scopeId","data-v-7bbb1a7b"]]),Nfe=[{path:"/",component:()=>Fi(()=>import("./dash-BUMZuoA4.js"),__vite__mapDeps([0,1]))},{path:"/settings/server",component:()=>Fi(()=>import("./server-Bl64bbT7.js"),__vite__mapDeps([2,3]))},{path:"/settings/workers",component:()=>Fi(()=>import("./workers-B-8PS4Qq.js"),[])},{path:"/settings/browser",component:()=>Fi(()=>import("./browser-CMZHE2mN.js"),[])},{path:"/settings/adapters",component:()=>Fi(()=>import("./adapters-DclklCA-.js"),[])},{path:"/tools/display",component:()=>Fi(()=>import("./display-Bpu1-5NI.js"),[])},{path:"/tools/cache",component:()=>Fi(()=>import("./cache-Cy4mgfN4.js"),__vite__mapDeps([4,1]))}],Bfe=Ofe({history:ofe(),routes:Nfe}),kfe=v_(),yg=aO(Dfe);yg.use(kfe);yg.use(Bfe);yg.use(yde);yg.mount("#app");export{Np as C,vg as D,Bp as E,Ve as F,We as I,Wn as L,x1 as P,O1 as S,Mfe as _,$n as a,h0 as b,p as c,Nd as d,ln as e,qn as f,Ft as g,O7 as h,Hfe as i,RE as j,ct as k,P as l,zfe as m,Vr as n,je as o,u1 as p,Oo as q,re as r,rg as s,rM as t,St as u,C_ as v,xt as w}; + `]:{opacity:1},[o]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${o}`]:{color:e.colorText}},[`${t}-icon ${o}`]:{color:e.colorTextDescription,fontSize:r},[`${l}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:r+e.paddingXS,fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${l}:hover ${s}`]:{opacity:1,color:e.colorText},[`${l}-error`]:{color:e.colorError,[`${l}-name, ${t}-icon ${o}`]:{color:e.colorError},[a]:{[`${o}, ${o}:hover`]:{color:e.colorError},[s]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},t4=new nt("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),n4=new nt("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),_ce=e=>{const{componentCls:t}=e,n=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${n}-appear, ${n}-enter, ${n}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${n}-appear, ${n}-enter`]:{animationName:t4},[`${n}-leave`]:{animationName:n4}}},t4,n4]},Ace=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:o,uploadProgressOffset:r}=e,i=`${t}-list`,l=`${i}-item`;return{[`${t}-wrapper`]:{[`${i}${i}-picture, ${i}${i}-picture-card`]:{[l]:{position:"relative",height:o+e.lineWidth*2+e.paddingXS*2,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:m(m({},Gt),{width:o,height:o,lineHeight:`${o+e.paddingSM}px`,textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:r,width:`calc(100% - ${e.paddingSM*2}px)`,marginTop:0,paddingInlineStart:o+e.paddingXS}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{"svg path[fill='#e6f7ff']":{fill:e.colorErrorBg},"svg path[fill='#1890ff']":{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:r}}}}}},Rce=e=>{const{componentCls:t,iconCls:n,fontSizeLG:o,colorTextLightSolid:r}=e,i=`${t}-list`,l=`${i}-item`,a=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:m(m({},Xo()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:a,height:a,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${i}${i}-picture-card`]:{[`${i}-item-container`]:{display:"inline-block",width:a,height:a,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${e.paddingXS*2}px)`,height:`calc(100% - ${e.paddingXS*2}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${n}-eye, ${n}-download, ${n}-delete`]:{zIndex:10,width:o,margin:`0 ${e.marginXXS}px`,fontSize:o,cursor:"pointer",transition:`all ${e.motionDurationSlow}`}},[`${l}-actions, ${l}-actions:hover`]:{[`${n}-eye, ${n}-download, ${n}-delete`]:{color:new pt(r).setAlpha(.65).toRgbString(),"&:hover":{color:r}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${e.paddingXS*2}px)`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${e.paddingXS*2}px)`,paddingInlineStart:0}}})}},Dce=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Nce=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:m(m({},Ue(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},Bce=Ke("Upload",e=>{const{fontSizeHeading3:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightLG:i}=e,l=Math.round(n*o),a=ke(e,{uploadThumbnailSize:t*2,uploadProgressOffset:l/2+r,uploadPicCardSize:i*2.55});return[Nce(a),Ece(a),Ace(a),Rce(a),Mce(a),_ce(a),Dce(a),_c(a)]});var kce=function(e,t,n,o){function r(i){return i instanceof n?i:new n(function(l){l(i)})}return new(n||(n=Promise))(function(i,l){function a(c){try{u(o.next(c))}catch(d){l(d)}}function s(c){try{u(o.throw(c))}catch(d){l(d)}}function u(c){c.done?i(c.value):r(c.value).then(a,s)}u((o=o.apply(e,t||[])).next())})},Fce=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var E;return(E=s.value)!==null&&E!==void 0?E:d.value}),[g,v]=Pt(e.defaultFileList||[],{value:ze(e,"fileList"),postState:E=>{const A=Date.now();return(E??[]).map((R,z)=>(!R.uid&&!Object.isFrozen(R)&&(R.uid=`__AUTO__${A}_${z}__`),R))}}),h=re("drop"),b=re(null);je(()=>{Ct(e.fileList!==void 0||o.value===void 0,"Upload","`value` is not a valid prop, do you mean `fileList`?"),Ct(e.transformFile===void 0,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),Ct(e.remove===void 0,"Upload","`remove` props is deprecated. Please use `remove` event.")});const y=(E,A,R)=>{var z,M;let N=[...A];e.maxCount===1?N=N.slice(-1):e.maxCount&&(N=N.slice(0,e.maxCount)),v(N);const B={file:E,fileList:N};R&&(B.event=R),(z=e["onUpdate:fileList"])===null||z===void 0||z.call(e,B.fileList),(M=e.onChange)===null||M===void 0||M.call(e,B),i.onFieldChange()},S=(E,A)=>kce(this,void 0,void 0,function*(){const{beforeUpload:R,transformFile:z}=e;let M=E;if(R){const N=yield R(E,A);if(N===!1)return!1;if(delete E[ys],N===ys)return Object.defineProperty(E,ys,{value:!0,configurable:!0}),!1;typeof N=="object"&&N&&(M=N)}return z&&(M=yield z(M)),M}),$=E=>{const A=E.filter(M=>!M.file[ys]);if(!A.length)return;const R=A.map(M=>Mu(M.file));let z=[...g.value];R.forEach(M=>{z=_u(M,z)}),R.forEach((M,N)=>{let B=M;if(A[N].parsedFile)M.status="uploading";else{const{originFileObj:k}=M;let F;try{F=new File([k],k.name,{type:k.type})}catch{F=new Blob([k],{type:k.type}),F.name=k.name,F.lastModifiedDate=new Date,F.lastModified=new Date().getTime()}F.uid=M.uid,B=F}y(B,z)})},x=(E,A,R)=>{try{typeof E=="string"&&(E=JSON.parse(E))}catch{}if(!Qh(A,g.value))return;const z=Mu(A);z.status="done",z.percent=100,z.response=E,z.xhr=R;const M=_u(z,g.value);y(z,M)},C=(E,A)=>{if(!Qh(A,g.value))return;const R=Mu(A);R.status="uploading",R.percent=E.percent;const z=_u(R,g.value);y(R,z,E)},O=(E,A,R)=>{if(!Qh(R,g.value))return;const z=Mu(R);z.error=E,z.response=A,z.status="error";const M=_u(z,g.value);y(z,M)},w=E=>{let A;const R=e.onRemove||e.remove;Promise.resolve(typeof R=="function"?R(E):R).then(z=>{var M,N;if(z===!1)return;const B=yce(E,g.value);B&&(A=m(m({},E),{status:"removed"}),(M=g.value)===null||M===void 0||M.forEach(k=>{const F=A.uid!==void 0?"uid":"name";k[F]===A[F]&&!Object.isFrozen(k)&&(k.status="removed")}),(N=b.value)===null||N===void 0||N.abort(A),y(A,B))})},I=E=>{var A;h.value=E.type,E.type==="drop"&&((A=e.onDrop)===null||A===void 0||A.call(e,E))};r({onBatchStart:$,onSuccess:x,onProgress:C,onError:O,fileList:g,upload:b});const[T]=Do("Upload",Vn.Upload,P(()=>e.locale)),_=(E,A)=>{const{removeIcon:R,previewIcon:z,downloadIcon:M,previewFile:N,onPreview:B,onDownload:k,isImageUrl:F,progress:L,itemRender:H,iconRender:j,showUploadList:Y}=e,{showDownloadIcon:Q,showPreviewIcon:U,showRemoveIcon:ee}=typeof Y=="boolean"?{}:Y;return Y?p(Tce,{prefixCls:l.value,listType:e.listType,items:g.value,previewFile:N,onPreview:B,onDownload:k,onRemove:w,showRemoveIcon:!f.value&&ee,showPreviewIcon:U,showDownloadIcon:Q,removeIcon:R,previewIcon:z,downloadIcon:M,iconRender:j,locale:T.value,isImageUrl:F,progress:L,itemRender:H,appendActionVisible:A,appendAction:E},m({},n)):E?.()};return()=>{var E,A,R;const{listType:z,type:M}=e,{class:N,style:B}=o,k=Fce(o,["class","style"]),F=m(m(m({onBatchStart:$,onError:O,onProgress:C,onSuccess:x},k),e),{id:(E=e.id)!==null&&E!==void 0?E:i.id.value,prefixCls:l.value,beforeUpload:S,onChange:void 0,disabled:f.value});delete F.remove,(!n.default||f.value)&&delete F.id;const L={[`${l.value}-rtl`]:a.value==="rtl"};if(M==="drag"){const Q=le(l.value,{[`${l.value}-drag`]:!0,[`${l.value}-drag-uploading`]:g.value.some(U=>U.status==="uploading"),[`${l.value}-drag-hover`]:h.value==="dragover",[`${l.value}-disabled`]:f.value,[`${l.value}-rtl`]:a.value==="rtl"},o.class,c.value);return u(p("span",D(D({},o),{},{class:le(`${l.value}-wrapper`,L,N,c.value)}),[p("div",{class:Q,onDrop:I,onDragover:I,onDragleave:I,style:o.style},[p(q2,D(D({},F),{},{ref:b,class:`${l.value}-btn`}),D({default:()=>[p("div",{class:`${l.value}-drag-container`},[(A=n.default)===null||A===void 0?void 0:A.call(n)])]},n))]),_()]))}const H=le(l.value,{[`${l.value}-select`]:!0,[`${l.value}-select-${z}`]:!0,[`${l.value}-disabled`]:f.value,[`${l.value}-rtl`]:a.value==="rtl"}),j=bt((R=n.default)===null||R===void 0?void 0:R.call(n)),Y=Q=>p("div",{class:H,style:Q},[p(q2,D(D({},F),{},{ref:b}),n)]);return u(z==="picture-card"?p("span",D(D({},o),{},{class:le(`${l.value}-wrapper`,`${l.value}-picture-card-wrapper`,L,o.class,c.value)}),[_(Y,!!(j&&j.length))]):p("span",D(D({},o),{},{class:le(`${l.value}-wrapper`,L,o.class,c.value)}),[Y(j&&j.length?void 0:{display:"none"}),_()]))}}});var o4=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{height:r}=e,i=o4(e,["height"]),{style:l}=o,a=o4(o,["style"]),s=m(m(m({},i),a),{type:"drag",style:m(m({},l),{height:typeof r=="number"?`${r}px`:r})});return p(Id,s,n)}}}),Lce=Td,zce=m(Id,{Dragger:Td,LIST_IGNORE:ys,install(e){return e.component(Id.name,Id),e.component(Td.name,Td),e}});function Hce(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function jce(e){return Object.keys(e).map(t=>`${Hce(t)}: ${e[t]};`).join(" ")}function r4(){return window.devicePixelRatio||1}function Jh(e,t,n,o){e.translate(t,n),e.rotate(Math.PI/180*Number(o)),e.translate(-t,-n)}const Vce=(e,t)=>{let n=!1;return e.removedNodes.length&&(n=Array.from(e.removedNodes).some(o=>o===t)),e.type==="attributes"&&e.target===t&&(n=!0),n};var Wce=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r2&&arguments[2]!==void 0?arguments[2]:{};const{window:o=DI}=n,r=Wce(n,["window"]);let i;const l=AI(()=>o&&"MutationObserver"in o),a=()=>{i&&(i.disconnect(),i=void 0)},s=ye(()=>oy(e),c=>{a(),l.value&&o&&c&&(i=new MutationObserver(t),i.observe(c,r))},{immediate:!0}),u=()=>{a(),s()};return _I(u),{isSupported:l,stop:u}}const ev=2,i4=3,Gce=()=>({zIndex:Number,rotate:Number,width:Number,height:Number,image:String,content:Fe([String,Array]),font:De(),rootClassName:String,gap:lt(),offset:lt()}),Xce=oe({name:"AWatermark",inheritAttrs:!1,props:Ze(Gce(),{zIndex:9,rotate:-22,font:{},gap:[100,100]}),setup(e,t){let{slots:n,attrs:o}=t;const[,r]=Ur(),i=ne(),l=ne(),a=ne(!1),s=P(()=>{var _,E;return(E=(_=e.gap)===null||_===void 0?void 0:_[0])!==null&&E!==void 0?E:100}),u=P(()=>{var _,E;return(E=(_=e.gap)===null||_===void 0?void 0:_[1])!==null&&E!==void 0?E:100}),c=P(()=>s.value/2),d=P(()=>u.value/2),f=P(()=>{var _,E;return(E=(_=e.offset)===null||_===void 0?void 0:_[0])!==null&&E!==void 0?E:c.value}),g=P(()=>{var _,E;return(E=(_=e.offset)===null||_===void 0?void 0:_[1])!==null&&E!==void 0?E:d.value}),v=P(()=>{var _,E;return(E=(_=e.font)===null||_===void 0?void 0:_.fontSize)!==null&&E!==void 0?E:r.value.fontSizeLG}),h=P(()=>{var _,E;return(E=(_=e.font)===null||_===void 0?void 0:_.fontWeight)!==null&&E!==void 0?E:"normal"}),b=P(()=>{var _,E;return(E=(_=e.font)===null||_===void 0?void 0:_.fontStyle)!==null&&E!==void 0?E:"normal"}),y=P(()=>{var _,E;return(E=(_=e.font)===null||_===void 0?void 0:_.fontFamily)!==null&&E!==void 0?E:"sans-serif"}),S=P(()=>{var _,E;return(E=(_=e.font)===null||_===void 0?void 0:_.color)!==null&&E!==void 0?E:r.value.colorFill}),$=P(()=>{var _;const E={zIndex:(_=e.zIndex)!==null&&_!==void 0?_:9,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let A=f.value-c.value,R=g.value-d.value;return A>0&&(E.left=`${A}px`,E.width=`calc(100% - ${A}px)`,A=0),R>0&&(E.top=`${R}px`,E.height=`calc(100% - ${R}px)`,R=0),E.backgroundPosition=`${A}px ${R}px`,E}),x=()=>{l.value&&(l.value.remove(),l.value=void 0)},C=(_,E)=>{var A;i.value&&l.value&&(a.value=!0,l.value.setAttribute("style",jce(m(m({},$.value),{backgroundImage:`url('${_}')`,backgroundSize:`${(s.value+E)*ev}px`}))),(A=i.value)===null||A===void 0||A.append(l.value),setTimeout(()=>{a.value=!1}))},O=_=>{let E=120,A=64;const R=e.content,z=e.image,M=e.width,N=e.height;if(!z&&_.measureText){_.font=`${Number(v.value)}px ${y.value}`;const B=Array.isArray(R)?R:[R],k=B.map(F=>_.measureText(F).width);E=Math.ceil(Math.max(...k)),A=Number(v.value)*B.length+(B.length-1)*i4}return[M??E,N??A]},w=(_,E,A,R,z)=>{const M=r4(),N=e.content,B=Number(v.value)*M;_.font=`${b.value} normal ${h.value} ${B}px/${z}px ${y.value}`,_.fillStyle=S.value,_.textAlign="center",_.textBaseline="top",_.translate(R/2,0);const k=Array.isArray(N)?N:[N];k?.forEach((F,L)=>{_.fillText(F??"",E,A+L*(B+i4*M))})},I=()=>{var _;const E=document.createElement("canvas"),A=E.getContext("2d"),R=e.image,z=(_=e.rotate)!==null&&_!==void 0?_:-22;if(A){l.value||(l.value=document.createElement("div"));const M=r4(),[N,B]=O(A),k=(s.value+N)*M,F=(u.value+B)*M;E.setAttribute("width",`${k*ev}px`),E.setAttribute("height",`${F*ev}px`);const L=s.value*M/2,H=u.value*M/2,j=N*M,Y=B*M,Q=(j+s.value*M)/2,U=(Y+u.value*M)/2,ee=L+k,X=H+F,J=Q+k,Z=U+F;if(A.save(),Jh(A,Q,U,z),R){const G=new Image;G.onload=()=>{A.drawImage(G,L,H,j,Y),A.restore(),Jh(A,J,Z,z),A.drawImage(G,ee,X,j,Y),C(E.toDataURL(),N)},G.crossOrigin="anonymous",G.referrerPolicy="no-referrer",G.src=R}else w(A,L,H,j,Y),A.restore(),Jh(A,J,Z,z),w(A,ee,X,j,Y),C(E.toDataURL(),N)}};return je(()=>{I()}),ye(()=>[e,r.value.colorFill,r.value.fontSizeLG],()=>{I()},{deep:!0,flush:"post"}),Qe(()=>{x()}),Kce(i,_=>{a.value||_.forEach(E=>{Vce(E,l.value)&&(x(),I())})},{attributes:!0,subtree:!0,childList:!0,attributeFilter:["style","class"]}),()=>{var _;return p("div",D(D({},o),{},{ref:i,class:[o.class,e.rootClassName],style:[{position:"relative"},o.style]}),[(_=n.default)===null||_===void 0?void 0:_.call(n)])}}}),Uce=It(Xce);function l4(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function a4(e){return{backgroundColor:e.bgColorSelected,boxShadow:e.boxShadow}}const Yce=m({overflow:"hidden"},Gt),qce=e=>{const{componentCls:t}=e;return{[t]:m(m(m(m(m({},Ue(e)),{display:"inline-block",padding:e.segmentedContainerPadding,color:e.labelColor,backgroundColor:e.bgColor,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,[`${t}-group`]:{position:"relative",display:"flex",alignItems:"stretch",justifyItems:"flex-start",width:"100%"},[`&${t}-rtl`]:{direction:"rtl"},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,"&-selected":m(m({},a4(e)),{color:e.labelColorHover}),"&::after":{content:'""',position:"absolute",width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",transition:`background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.labelColorHover,"&::after":{backgroundColor:e.bgColorHover}},"&-label":m({minHeight:e.controlHeight-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeight-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontal}px`},Yce),"&-icon + *":{marginInlineStart:e.marginSM/2},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:m(m({},a4(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${e.paddingXXS}px 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:e.controlHeightLG-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeightLG-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontal}px`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:e.controlHeightSM-e.segmentedContainerPadding*2,lineHeight:`${e.controlHeightSM-e.segmentedContainerPadding*2}px`,padding:`0 ${e.segmentedPaddingHorizontalSM}px`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),l4(`&-disabled ${t}-item`,e)),l4(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"}})}},Zce=Ke("Segmented",e=>{const{lineWidthBold:t,lineWidth:n,colorTextLabel:o,colorText:r,colorFillSecondary:i,colorBgLayout:l,colorBgElevated:a}=e,s=ke(e,{segmentedPaddingHorizontal:e.controlPaddingHorizontal-n,segmentedPaddingHorizontalSM:e.controlPaddingHorizontalSM-n,segmentedContainerPadding:t,labelColor:o,labelColorHover:r,bgColor:l,bgColorHover:i,bgColorSelected:a});return[qce(s)]}),s4=e=>e?{left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth}:null,Ul=e=>e!==void 0?`${e}px`:void 0,Qce=oe({props:{value:yt(),getValueIndex:yt(),prefixCls:yt(),motionName:yt(),onMotionStart:yt(),onMotionEnd:yt(),direction:yt(),containerRef:yt()},emits:["motionStart","motionEnd"],setup(e,t){let{emit:n}=t;const o=re(),r=v=>{var h;const b=e.getValueIndex(v),y=(h=e.containerRef.value)===null||h===void 0?void 0:h.querySelectorAll(`.${e.prefixCls}-item`)[b];return y?.offsetParent&&y},i=re(null),l=re(null);ye(()=>e.value,(v,h)=>{const b=r(h),y=r(v),S=s4(b),$=s4(y);i.value=S,l.value=$,n(b&&y?"motionStart":"motionEnd")},{flush:"post"});const a=P(()=>{var v,h;return e.direction==="rtl"?Ul(-((v=i.value)===null||v===void 0?void 0:v.right)):Ul((h=i.value)===null||h===void 0?void 0:h.left)}),s=P(()=>{var v,h;return e.direction==="rtl"?Ul(-((v=l.value)===null||v===void 0?void 0:v.right)):Ul((h=l.value)===null||h===void 0?void 0:h.left)});let u;const c=v=>{clearTimeout(u),ot(()=>{v&&(v.style.transform="translateX(var(--thumb-start-left))",v.style.width="var(--thumb-start-width)")})},d=v=>{u=setTimeout(()=>{v&&(gf(v,`${e.motionName}-appear-active`),v.style.transform="translateX(var(--thumb-active-left))",v.style.width="var(--thumb-active-width)")})},f=v=>{i.value=null,l.value=null,v&&(v.style.transform=null,v.style.width=null,hf(v,`${e.motionName}-appear-active`)),n("motionEnd")},g=P(()=>{var v,h;return{"--thumb-start-left":a.value,"--thumb-start-width":Ul((v=i.value)===null||v===void 0?void 0:v.width),"--thumb-active-left":s.value,"--thumb-active-width":Ul((h=l.value)===null||h===void 0?void 0:h.width)}});return Qe(()=>{clearTimeout(u)}),()=>{const v={ref:o,style:g.value,class:[`${e.prefixCls}-thumb`]};return p(un,{appear:!0,onBeforeEnter:c,onEnter:d,onAfterEnter:f},{default:()=>[!i.value||!l.value?null:p("div",v,null)]})}}});function Jce(e){return e.map(t=>typeof t=="object"&&t!==null?t:{label:t?.toString(),title:t?.toString(),value:t})}const eue=()=>({prefixCls:String,options:lt(),block:$e(),disabled:$e(),size:Ne(),value:m(m({},Fe([String,Number])),{required:!0}),motionName:String,onChange:ve(),"onUpdate:value":ve()}),oE=(e,t)=>{let{slots:n,emit:o}=t;const{value:r,disabled:i,payload:l,title:a,prefixCls:s,label:u=n.label,checked:c,className:d}=e,f=g=>{i||o("change",g,r)};return p("label",{class:le({[`${s}-item-disabled`]:i},d)},[p("input",{class:`${s}-item-input`,type:"radio",disabled:i,checked:c,onChange:f},null),p("div",{class:`${s}-item-label`,title:typeof a=="string"?a:""},[typeof u=="function"?u({value:r,disabled:i,payload:l,title:a}):u??r])])};oE.inheritAttrs=!1;const tue=oe({name:"ASegmented",inheritAttrs:!1,props:Ze(eue(),{options:[],motionName:"thumb-motion"}),slots:Object,setup(e,t){let{emit:n,slots:o,attrs:r}=t;const{prefixCls:i,direction:l,size:a}=Te("segmented",e),[s,u]=Zce(i),c=ne(),d=ne(!1),f=P(()=>Jce(e.options)),g=(v,h)=>{e.disabled||(n("update:value",h),n("change",h))};return()=>{const v=i.value;return s(p("div",D(D({},r),{},{class:le(v,{[u.value]:!0,[`${v}-block`]:e.block,[`${v}-disabled`]:e.disabled,[`${v}-lg`]:a.value=="large",[`${v}-sm`]:a.value=="small",[`${v}-rtl`]:l.value==="rtl"},r.class),ref:c}),[p("div",{class:`${v}-group`},[p(Qce,{containerRef:c,prefixCls:v,value:e.value,motionName:`${v}-${e.motionName}`,direction:l.value,getValueIndex:h=>f.value.findIndex(b=>b.value===h),onMotionStart:()=>{d.value=!0},onMotionEnd:()=>{d.value=!1}},null),f.value.map(h=>p(oE,D(D({key:h.value,prefixCls:v,checked:h.value===e.value,onChange:g},h),{},{className:le(h.className,`${v}-item`,{[`${v}-item-selected`]:h.value===e.value&&!d.value}),disabled:!!e.disabled||!!h.disabled}),o))])]))}}}),nue=It(tue),oue=e=>{const{componentCls:t}=e;return{[t]:m(m({},Ue(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${e.lineWidth}px ${e.lineType} ${e.colorSplit}`,position:"relative",width:"100%",height:"100%",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired , & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent"}}},rue=Ke("QRCode",e=>oue(ke(e,{QRCodeTextColor:"rgba(0, 0, 0, 0.88)",QRCodeMaskBackgroundColor:"rgba(255, 255, 255, 0.96)"})));var iue={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"}}]},name:"dashboard",theme:"outlined"};function c4(e){for(var t=1;t({size:{type:Number,default:160},value:{type:String,required:!0},type:Ne("canvas"),color:String,bgColor:String,includeMargin:Boolean,imageSettings:De()}),yue=()=>m(m({},I1()),{errorLevel:Ne("M"),icon:String,iconSize:{type:Number,default:40},status:Ne("active"),bordered:{type:Boolean,default:!0}});var Po;(function(e){class t{static encodeText(a,s){const u=e.QrSegment.makeSegments(a);return t.encodeSegments(u,s)}static encodeBinary(a,s){const u=e.QrSegment.makeBytes(a);return t.encodeSegments([u],s)}static encodeSegments(a,s){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:40,d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1,f=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(!(t.MIN_VERSION<=u&&u<=c&&c<=t.MAX_VERSION)||d<-1||d>7)throw new RangeError("Invalid value");let g,v;for(g=u;;g++){const S=t.getNumDataCodewords(g,s)*8,$=i.getTotalBits(a,g);if($<=S){v=$;break}if(g>=c)throw new RangeError("Data too long")}for(const S of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])f&&v<=t.getNumDataCodewords(g,S)*8&&(s=S);const h=[];for(const S of a){n(S.mode.modeBits,4,h),n(S.numChars,S.mode.numCharCountBits(g),h);for(const $ of S.getData())h.push($)}r(h.length==v);const b=t.getNumDataCodewords(g,s)*8;r(h.length<=b),n(0,Math.min(4,b-h.length),h),n(0,(8-h.length%8)%8,h),r(h.length%8==0);for(let S=236;h.lengthy[$>>>3]|=S<<7-($&7)),new t(g,s,y,d)}constructor(a,s,u,c){if(this.version=a,this.errorCorrectionLevel=s,this.modules=[],this.isFunction=[],at.MAX_VERSION)throw new RangeError("Version value out of range");if(c<-1||c>7)throw new RangeError("Mask value out of range");this.size=a*4+17;const d=[];for(let g=0;g>>9)*1335;const c=(s<<10|u)^21522;r(c>>>15==0);for(let d=0;d<=5;d++)this.setFunctionModule(8,d,o(c,d));this.setFunctionModule(8,7,o(c,6)),this.setFunctionModule(8,8,o(c,7)),this.setFunctionModule(7,8,o(c,8));for(let d=9;d<15;d++)this.setFunctionModule(14-d,8,o(c,d));for(let d=0;d<8;d++)this.setFunctionModule(this.size-1-d,8,o(c,d));for(let d=8;d<15;d++)this.setFunctionModule(8,this.size-15+d,o(c,d));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let a=this.version;for(let u=0;u<12;u++)a=a<<1^(a>>>11)*7973;const s=this.version<<12|a;r(s>>>18==0);for(let u=0;u<18;u++){const c=o(s,u),d=this.size-11+u%3,f=Math.floor(u/3);this.setFunctionModule(d,f,c),this.setFunctionModule(f,d,c)}}drawFinderPattern(a,s){for(let u=-4;u<=4;u++)for(let c=-4;c<=4;c++){const d=Math.max(Math.abs(c),Math.abs(u)),f=a+c,g=s+u;0<=f&&f{(S!=v-d||x>=g)&&y.push($[S])});return r(y.length==f),y}drawCodewords(a){if(a.length!=Math.floor(t.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let s=0;for(let u=this.size-1;u>=1;u-=2){u==6&&(u=5);for(let c=0;c>>3],7-(s&7)),s++)}}r(s==a.length*8)}applyMask(a){if(a<0||a>7)throw new RangeError("Mask value out of range");for(let s=0;s5&&a++):(this.finderPenaltyAddHistory(g,v),f||(a+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),f=this.modules[d][h],g=1);a+=this.finderPenaltyTerminateAndCount(f,g,v)*t.PENALTY_N3}for(let d=0;d5&&a++):(this.finderPenaltyAddHistory(g,v),f||(a+=this.finderPenaltyCountPatterns(v)*t.PENALTY_N3),f=this.modules[h][d],g=1);a+=this.finderPenaltyTerminateAndCount(f,g,v)*t.PENALTY_N3}for(let d=0;df+(g?1:0),s);const u=this.size*this.size,c=Math.ceil(Math.abs(s*20-u*10)/u)-1;return r(0<=c&&c<=9),a+=c*t.PENALTY_N4,r(0<=a&&a<=2568888),a}getAlignmentPatternPositions(){if(this.version==1)return[];{const a=Math.floor(this.version/7)+2,s=this.version==32?26:Math.ceil((this.version*4+4)/(a*2-2))*2,u=[6];for(let c=this.size-7;u.lengtht.MAX_VERSION)throw new RangeError("Version number out of range");let s=(16*a+128)*a+64;if(a>=2){const u=Math.floor(a/7)+2;s-=(25*u-10)*u-55,a>=7&&(s-=36)}return r(208<=s&&s<=29648),s}static getNumDataCodewords(a,s){return Math.floor(t.getNumRawDataModules(a)/8)-t.ECC_CODEWORDS_PER_BLOCK[s.ordinal][a]*t.NUM_ERROR_CORRECTION_BLOCKS[s.ordinal][a]}static reedSolomonComputeDivisor(a){if(a<1||a>255)throw new RangeError("Degree out of range");const s=[];for(let c=0;c0);for(const c of a){const d=c^u.shift();u.push(0),s.forEach((f,g)=>u[g]^=t.reedSolomonMultiply(f,d))}return u}static reedSolomonMultiply(a,s){if(a>>>8||s>>>8)throw new RangeError("Byte out of range");let u=0;for(let c=7;c>=0;c--)u=u<<1^(u>>>7)*285,u^=(s>>>c&1)*a;return r(u>>>8==0),u}finderPenaltyCountPatterns(a){const s=a[1];r(s<=this.size*3);const u=s>0&&a[2]==s&&a[3]==s*3&&a[4]==s&&a[5]==s;return(u&&a[0]>=s*4&&a[6]>=s?1:0)+(u&&a[6]>=s*4&&a[0]>=s?1:0)}finderPenaltyTerminateAndCount(a,s,u){return a&&(this.finderPenaltyAddHistory(s,u),s=0),s+=this.size,this.finderPenaltyAddHistory(s,u),this.finderPenaltyCountPatterns(u)}finderPenaltyAddHistory(a,s){s[0]==0&&(a+=this.size),s.pop(),s.unshift(a)}}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(l,a,s){if(a<0||a>31||l>>>a)throw new RangeError("Value out of range");for(let u=a-1;u>=0;u--)s.push(l>>>u&1)}function o(l,a){return(l>>>a&1)!=0}function r(l){if(!l)throw new Error("Assertion error")}class i{static makeBytes(a){const s=[];for(const u of a)n(u,8,s);return new i(i.Mode.BYTE,a.length,s)}static makeNumeric(a){if(!i.isNumeric(a))throw new RangeError("String contains non-numeric characters");const s=[];for(let u=0;u=1<1&&arguments[1]!==void 0?arguments[1]:0;const n=[];return e.forEach(function(o,r){let i=null;o.forEach(function(l,a){if(!l&&i!==null){n.push(`M${i+t} ${r+t}h${a-i}v1H${i+t}z`),i=null;return}if(a===o.length-1){if(!l)return;i===null?n.push(`M${a+t},${r+t} h1v1H${a+t}z`):n.push(`M${i+t},${r+t} h${a+1-i}v1H${i+t}z`);return}l&&i===null&&(i=a)})}),n.join("")}function uE(e,t){return e.slice().map((n,o)=>o=t.y+t.h?n:n.map((r,i)=>i=t.x+t.w?r:!1))}function dE(e,t,n,o){if(o==null)return null;const r=e.length+n*2,i=Math.floor(t*Cue),l=r/t,a=(o.width||i)*l,s=(o.height||i)*l,u=o.x==null?e.length/2-a/2:o.x*l,c=o.y==null?e.length/2-s/2:o.y*l;let d=null;if(o.excavate){const f=Math.floor(u),g=Math.floor(c),v=Math.ceil(a+u-f),h=Math.ceil(s+c-g);d={x:f,y:g,w:v,h}}return{x:u,y:c,h:s,w:a,excavation:d}}function fE(e,t){return t!=null?Math.floor(t):e?Sue:$ue}const xue=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),wue=oe({name:"QRCodeCanvas",inheritAttrs:!1,props:m(m({},I1()),{level:String,bgColor:String,fgColor:String,marginSize:Number}),setup(e,t){let{attrs:n,expose:o}=t;const r=P(()=>{var s;return(s=e.imageSettings)===null||s===void 0?void 0:s.src}),i=ne(null),l=ne(null),a=ne(!1);return o({toDataURL:(s,u)=>{var c;return(c=i.value)===null||c===void 0?void 0:c.toDataURL(s,u)}}),Le(()=>{const{value:s,size:u=Km,level:c=iE,bgColor:d=lE,fgColor:f=aE,includeMargin:g=sE,marginSize:v,imageSettings:h}=e;if(i.value!=null){const b=i.value,y=b.getContext("2d");if(!y)return;let S=Po.QrCode.encodeText(s,rE[c]).getModules();const $=fE(g,v),x=S.length+$*2,C=dE(S,u,$,h),O=l.value,w=a.value&&C!=null&&O!==null&&O.complete&&O.naturalHeight!==0&&O.naturalWidth!==0;w&&C.excavation!=null&&(S=uE(S,C.excavation));const I=window.devicePixelRatio||1;b.height=b.width=u*I;const T=u/x*I;y.scale(T,T),y.fillStyle=d,y.fillRect(0,0,x,x),y.fillStyle=f,xue?y.fill(new Path2D(cE(S,$))):S.forEach(function(_,E){_.forEach(function(A,R){A&&y.fillRect(R+$,E+$,1,1)})}),w&&y.drawImage(O,C.x+$,C.y+$,C.w,C.h)}},{flush:"post"}),ye(r,()=>{a.value=!1}),()=>{var s;const u=(s=e.size)!==null&&s!==void 0?s:Km,c={height:`${u}px`,width:`${u}px`};let d=null;return r.value!=null&&(d=p("img",{src:r.value,key:r.value,style:{display:"none"},onLoad:()=>{a.value=!0},ref:l},null)),p(Ve,null,[p("canvas",D(D({},n),{},{style:[c,n.style],ref:i}),null),d])}}}),Oue=oe({name:"QRCodeSVG",inheritAttrs:!1,props:m(m({},I1()),{color:String,level:String,bgColor:String,fgColor:String,marginSize:Number,title:String}),setup(e){let t=null,n=null,o=null,r=null,i=null,l=null;return Le(()=>{const{value:a,size:s=Km,level:u=iE,includeMargin:c=sE,marginSize:d,imageSettings:f}=e;t=Po.QrCode.encodeText(a,rE[u]).getModules(),n=fE(c,d),o=t.length+n*2,r=dE(t,s,n,f),f!=null&&r!=null&&(r.excavation!=null&&(t=uE(t,r.excavation)),l=p("image",{"xlink:href":f.src,height:r.h,width:r.w,x:r.x+n,y:r.y+n,preserveAspectRatio:"none"},null)),i=cE(t,n)}),()=>{const a=e.bgColor&&lE,s=e.fgColor&&aE;return p("svg",{height:e.size,width:e.size,viewBox:`0 0 ${o} ${o}`},[!!e.title&&p("title",null,[e.title]),p("path",{fill:a,d:`M0,0 h${o}v${o}H0z`,"shape-rendering":"crispEdges"},null),p("path",{fill:s,d:i,"shape-rendering":"crispEdges"},null),l])}}}),Pue=oe({name:"AQrcode",inheritAttrs:!1,props:yue(),emits:["refresh"],setup(e,t){let{emit:n,attrs:o,expose:r}=t;const[i]=Do("QRCode"),{prefixCls:l}=Te("qrcode",e),[a,s]=rue(l),[,u]=Ur(),c=re();r({toDataURL:(f,g)=>{var v;return(v=c.value)===null||v===void 0?void 0:v.toDataURL(f,g)}});const d=P(()=>{const{value:f,icon:g="",size:v=160,iconSize:h=40,color:b=u.value.colorText,bgColor:y="transparent",errorLevel:S="M"}=e,$={src:g,x:void 0,y:void 0,height:h,width:h,excavate:!0};return{value:f,size:v-(u.value.paddingSM+u.value.lineWidth)*2,level:S,bgColor:y,fgColor:b,imageSettings:g?$:void 0}});return()=>{const f=l.value;return a(p("div",D(D({},o),{},{style:[o.style,{width:`${e.size}px`,height:`${e.size}px`,backgroundColor:d.value.bgColor}],class:[s.value,f,{[`${f}-borderless`]:!e.bordered}]}),[e.status!=="active"&&p("div",{class:`${f}-mask`},[e.status==="loading"&&p(gr,null,null),e.status==="expired"&&p(Ve,null,[p("p",{class:`${f}-expired`},[i.value.expired]),p(Lt,{type:"link",onClick:g=>n("refresh",g)},{default:()=>[i.value.refresh],icon:()=>p(w1,null,null)})]),e.status==="scanned"&&p("p",{class:`${f}-scanned`},[i.value.scanned])]),e.type==="canvas"?p(wue,D({ref:c},d.value),null):p(Oue,d.value,null)]))}}}),Iue=It(Pue);function Tue(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:o,right:r,bottom:i,left:l}=e.getBoundingClientRect();return o>=0&&l>=0&&r<=t&&i<=n}function Eue(e,t,n,o){const[r,i]=ht(void 0);Le(()=>{const c=typeof e.value=="function"?e.value():e.value;i(c||null)},{flush:"post"});const[l,a]=ht(null),s=()=>{if(!t.value){a(null);return}if(r.value){!Tue(r.value)&&t.value&&r.value.scrollIntoView(o.value);const{left:c,top:d,width:f,height:g}=r.value.getBoundingClientRect(),v={left:c,top:d,width:f,height:g,radius:0};JSON.stringify(l.value)!==JSON.stringify(v)&&a(v)}else a(null)};return je(()=>{ye([t,r],()=>{s()},{flush:"post",immediate:!0}),window.addEventListener("resize",s)}),Qe(()=>{window.removeEventListener("resize",s)}),[P(()=>{var c,d;if(!l.value)return l.value;const f=((c=n.value)===null||c===void 0?void 0:c.offset)||6,g=((d=n.value)===null||d===void 0?void 0:d.radius)||2;return{left:l.value.left-f,top:l.value.top-f,width:l.value.width+f*2,height:l.value.height+f*2,radius:g}}),r]}const Mue=()=>({arrow:Fe([Boolean,Object]),target:Fe([String,Function,Object]),title:Fe([String,Object]),description:Fe([String,Object]),placement:Ne(),mask:Fe([Object,Boolean],!0),className:{type:String},style:De(),scrollIntoViewOptions:Fe([Boolean,Object])}),T1=()=>m(m({},Mue()),{prefixCls:{type:String},total:{type:Number},current:{type:Number},onClose:ve(),onFinish:ve(),renderPanel:ve(),onPrev:ve(),onNext:ve()}),_ue=oe({name:"DefaultPanel",inheritAttrs:!1,props:T1(),setup(e,t){let{attrs:n}=t;return()=>{const{prefixCls:o,current:r,total:i,title:l,description:a,onClose:s,onPrev:u,onNext:c,onFinish:d}=e;return p("div",D(D({},n),{},{class:le(`${o}-content`,n.class)}),[p("div",{class:`${o}-inner`},[p("button",{type:"button",onClick:s,"aria-label":"Close",class:`${o}-close`},[p("span",{class:`${o}-close-x`},[Ft("×")])]),p("div",{class:`${o}-header`},[p("div",{class:`${o}-title`},[l])]),p("div",{class:`${o}-description`},[a]),p("div",{class:`${o}-footer`},[p("div",{class:`${o}-sliders`},[i>1?[...Array.from({length:i}).keys()].map((f,g)=>p("span",{key:f,class:g===r?"active":""},null)):null]),p("div",{class:`${o}-buttons`},[r!==0?p("button",{class:`${o}-prev-btn`,onClick:u},[Ft("Prev")]):null,r===i-1?p("button",{class:`${o}-finish-btn`,onClick:d},[Ft("Finish")]):p("button",{class:`${o}-next-btn`,onClick:c},[Ft("Next")])])])])])}}}),Aue=oe({name:"TourStep",inheritAttrs:!1,props:T1(),setup(e,t){let{attrs:n}=t;return()=>{const{current:o,renderPanel:r}=e;return p(Ve,null,[typeof r=="function"?r(m(m({},n),e),o):p(_ue,D(D({},n),e),null)])}}});let v4=0;const Rue=Mn();function Due(){let e;return Rue?(e=v4,v4+=1):e="TEST_OR_SSR",e}function Nue(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:re("");const t=`vc_unique_${Due()}`;return e.value||t}const Au={fill:"transparent","pointer-events":"auto"},Bue=oe({name:"TourMask",props:{prefixCls:{type:String},pos:De(),rootClassName:{type:String},showMask:$e(),fill:{type:String,default:"rgba(0,0,0,0.5)"},open:$e(),animated:Fe([Boolean,Object]),zIndex:{type:Number}},setup(e,t){let{attrs:n}=t;const o=Nue();return()=>{const{prefixCls:r,open:i,rootClassName:l,pos:a,showMask:s,fill:u,animated:c,zIndex:d}=e,f=`${r}-mask-${o}`,g=typeof c=="object"?c?.placeholder:c;return p(Ic,{visible:i,autoLock:!0},{default:()=>i&&p("div",D(D({},n),{},{class:le(`${r}-mask`,l,n.class),style:[{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:d,pointerEvents:"none"},n.style]}),[s?p("svg",{style:{width:"100%",height:"100%"}},[p("defs",null,[p("mask",{id:f},[p("rect",{x:"0",y:"0",width:"100vw",height:"100vh",fill:"white"},null),a&&p("rect",{x:a.left,y:a.top,rx:a.radius,width:a.width,height:a.height,fill:"black",class:g?`${r}-placeholder-animated`:""},null)])]),p("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:u,mask:`url(#${f})`},null),a&&p(Ve,null,[p("rect",D(D({},Au),{},{x:"0",y:"0",width:"100%",height:a.top}),null),p("rect",D(D({},Au),{},{x:"0",y:"0",width:a.left,height:"100%"}),null),p("rect",D(D({},Au),{},{x:"0",y:a.top+a.height,width:"100%",height:`calc(100vh - ${a.top+a.height}px)`}),null),p("rect",D(D({},Au),{},{x:a.left+a.width,y:"0",width:`calc(100vw - ${a.left+a.width}px)`,height:"100%"}),null)])]):null])})}}}),kue=[0,0],m4={left:{points:["cr","cl"],offset:[-8,0]},right:{points:["cl","cr"],offset:[8,0]},top:{points:["bc","tc"],offset:[0,-8]},bottom:{points:["tc","bc"],offset:[0,8]},topLeft:{points:["bl","tl"],offset:[0,-8]},leftTop:{points:["tr","tl"],offset:[-8,0]},topRight:{points:["br","tr"],offset:[0,-8]},rightTop:{points:["tl","tr"],offset:[8,0]},bottomRight:{points:["tr","br"],offset:[0,8]},rightBottom:{points:["bl","br"],offset:[8,0]},bottomLeft:{points:["tl","bl"],offset:[0,8]},leftBottom:{points:["br","bl"],offset:[-8,0]}};function pE(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const t={};return Object.keys(m4).forEach(n=>{t[n]=m(m({},m4[n]),{autoArrow:e,targetOffset:kue})}),t}pE();var Fue=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{builtinPlacements:e,popupAlign:t}=wP();return{builtinPlacements:e,popupAlign:t,steps:lt(),open:$e(),defaultCurrent:{type:Number},current:{type:Number},onChange:ve(),onClose:ve(),onFinish:ve(),mask:Fe([Boolean,Object],!0),arrow:Fe([Boolean,Object],!0),rootClassName:{type:String},placement:Ne("bottom"),prefixCls:{type:String,default:"rc-tour"},renderPanel:ve(),gap:De(),animated:Fe([Boolean,Object]),scrollIntoViewOptions:Fe([Boolean,Object],!0),zIndex:{type:Number,default:1001}}},Lue=oe({name:"Tour",inheritAttrs:!1,props:Ze(gE(),{}),setup(e){const{defaultCurrent:t,placement:n,mask:o,scrollIntoViewOptions:r,open:i,gap:l,arrow:a}=jo(e),s=re(),[u,c]=Pt(0,{value:P(()=>e.current),defaultValue:t.value}),[d,f]=Pt(void 0,{value:P(()=>e.open),postState:w=>u.value<0||u.value>=e.steps.length?!1:w??!0}),g=ne(d.value);Le(()=>{d.value&&!g.value&&c(0),g.value=d.value});const v=P(()=>e.steps[u.value]||{}),h=P(()=>{var w;return(w=v.value.placement)!==null&&w!==void 0?w:n.value}),b=P(()=>{var w;return d.value&&((w=v.value.mask)!==null&&w!==void 0?w:o.value)}),y=P(()=>{var w;return(w=v.value.scrollIntoViewOptions)!==null&&w!==void 0?w:r.value}),[S,$]=Eue(P(()=>v.value.target),i,l,y),x=P(()=>$.value?typeof v.value.arrow>"u"?a.value:v.value.arrow:!1),C=P(()=>typeof x.value=="object"?x.value.pointAtCenter:!1);ye(C,()=>{var w;(w=s.value)===null||w===void 0||w.forcePopupAlign()}),ye(u,()=>{var w;(w=s.value)===null||w===void 0||w.forcePopupAlign()});const O=w=>{var I;c(w),(I=e.onChange)===null||I===void 0||I.call(e,w)};return()=>{var w;const{prefixCls:I,steps:T,onClose:_,onFinish:E,rootClassName:A,renderPanel:R,animated:z,zIndex:M}=e,N=Fue(e,["prefixCls","steps","onClose","onFinish","rootClassName","renderPanel","animated","zIndex"]);if($.value===void 0)return null;const B=()=>{f(!1),_?.(u.value)},k=typeof b.value=="boolean"?b.value:!!b.value,F=typeof b.value=="boolean"?void 0:b.value,L=()=>$.value||document.body,H=()=>p(Aue,D({arrow:x.value,key:"content",prefixCls:I,total:T.length,renderPanel:R,onPrev:()=>{O(u.value-1)},onNext:()=>{O(u.value+1)},onClose:B,current:u.value,onFinish:()=>{B(),E?.()}},v.value),null),j=P(()=>{const Y=S.value||tv,Q={};return Object.keys(Y).forEach(U=>{typeof Y[U]=="number"?Q[U]=`${Y[U]}px`:Q[U]=Y[U]}),Q});return d.value?p(Ve,null,[p(Bue,{zIndex:M,prefixCls:I,pos:S.value,showMask:k,style:F?.style,fill:F?.color,open:d.value,animated:z,rootClassName:A},null),p(Rl,D(D({},N),{},{arrow:!!N.arrow,builtinPlacements:v.value.target?(w=N.builtinPlacements)!==null&&w!==void 0?w:pE(C.value):void 0,ref:s,popupStyle:v.value.target?v.value.style:m(m({},v.value.style),{position:"fixed",left:tv.left,top:tv.top,transform:"translate(-50%, -50%)"}),popupPlacement:h.value,popupVisible:d.value,popupClassName:le(A,v.value.className),prefixCls:I,popup:H,forceRender:!1,destroyPopupOnHide:!0,zIndex:M,mask:!1,getTriggerDOMNode:L}),{default:()=>[p(Ic,{visible:d.value,autoLock:!0},{default:()=>[p("div",{class:le(A,`${I}-target-placeholder`),style:m(m({},j.value),{position:"fixed",pointerEvents:"none"})},null)]})]})]):null}}}),zue=()=>m(m({},gE()),{steps:{type:Array},prefixCls:{type:String},current:{type:Number},type:{type:String},"onUpdate:current":Function}),Hue=()=>m(m({},T1()),{cover:{type:Object},nextButtonProps:{type:Object},prevButtonProps:{type:Object},current:{type:Number},type:{type:String}}),jue=oe({name:"ATourPanel",inheritAttrs:!1,props:Hue(),setup(e,t){let{attrs:n,slots:o}=t;const{current:r,total:i}=jo(e),l=P(()=>r.value===i.value-1),a=u=>{var c;const d=e.prevButtonProps;(c=e.onPrev)===null||c===void 0||c.call(e,u),typeof d?.onClick=="function"&&d?.onClick()},s=u=>{var c,d;const f=e.nextButtonProps;l.value?(c=e.onFinish)===null||c===void 0||c.call(e,u):(d=e.onNext)===null||d===void 0||d.call(e,u),typeof f?.onClick=="function"&&f?.onClick()};return()=>{const{prefixCls:u,title:c,onClose:d,cover:f,description:g,type:v,arrow:h}=e,b=e.prevButtonProps,y=e.nextButtonProps;let S;c&&(S=p("div",{class:`${u}-header`},[p("div",{class:`${u}-title`},[c])]));let $;g&&($=p("div",{class:`${u}-description`},[g]));let x;f&&(x=p("div",{class:`${u}-cover`},[f]));let C;o.indicatorsRender?C=o.indicatorsRender({current:r.value,total:i}):C=[...Array.from({length:i.value}).keys()].map((I,T)=>p("span",{key:I,class:le(T===r.value&&`${u}-indicator-active`,`${u}-indicator`)},null));const O=v==="primary"?"default":"primary",w={type:"default",ghost:v==="primary"};return p(Il,{componentName:"Tour",defaultLocale:Vn.Tour},{default:I=>{var T;return p("div",D(D({},n),{},{class:le(v==="primary"?`${u}-primary`:"",n.class,`${u}-content`)}),[h&&p("div",{class:`${u}-arrow`,key:"arrow"},null),p("div",{class:`${u}-inner`},[p(Rn,{class:`${u}-close`,onClick:d},null),x,S,$,p("div",{class:`${u}-footer`},[i.value>1&&p("div",{class:`${u}-indicators`},[C]),p("div",{class:`${u}-buttons`},[r.value!==0?p(Lt,D(D(D({},w),b),{},{onClick:a,size:"small",class:le(`${u}-prev-btn`,b?.className)}),{default:()=>[Sv(b?.children)?b.children():(T=b?.children)!==null&&T!==void 0?T:I.Previous]}):null,p(Lt,D(D({type:O},y),{},{onClick:s,size:"small",class:le(`${u}-next-btn`,y?.className)}),{default:()=>[Sv(y?.children)?y?.children():l.value?I.Finish:I.Next]})])])])])}})}}}),Vue=e=>{let{defaultType:t,steps:n,current:o,defaultCurrent:r}=e;const i=re(r?.value),l=P(()=>o?.value);ye(l,c=>{i.value=c??r?.value},{immediate:!0});const a=c=>{i.value=c},s=P(()=>{var c,d;return typeof i.value=="number"?n&&((d=(c=n.value)===null||c===void 0?void 0:c[i.value])===null||d===void 0?void 0:d.type):t?.value});return{currentMergedType:P(()=>{var c;return(c=s.value)!==null&&c!==void 0?c:t?.value}),updateInnerCurrent:a}},Wue=e=>{const{componentCls:t,lineHeight:n,padding:o,paddingXS:r,borderRadius:i,borderRadiusXS:l,colorPrimary:a,colorText:s,colorFill:u,indicatorHeight:c,indicatorWidth:d,boxShadowTertiary:f,tourZIndexPopup:g,fontSize:v,colorBgContainer:h,fontWeightStrong:b,marginXS:y,colorTextLightSolid:S,tourBorderRadius:$,colorWhite:x,colorBgTextHover:C,tourCloseSize:O,motionDurationSlow:w,antCls:I}=e;return[{[t]:m(m({},Ue(e)),{color:s,position:"absolute",zIndex:g,display:"block",visibility:"visible",fontSize:v,lineHeight:n,width:520,"--antd-arrow-background-color":h,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:$,boxShadow:f,position:"relative",backgroundColor:h,border:"none",backgroundClip:"padding-box",[`${t}-close`]:{position:"absolute",top:o,insetInlineEnd:o,color:e.colorIcon,outline:"none",width:O,height:O,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${t}-cover`]:{textAlign:"center",padding:`${o+O+r}px ${o}px 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${o}px ${o}px ${r}px`,[`${t}-title`]:{lineHeight:n,fontSize:v,fontWeight:b}},[`${t}-description`]:{padding:`0 ${o}px`,lineHeight:n,wordWrap:"break-word"},[`${t}-footer`]:{padding:`${r}px ${o}px ${o}px`,textAlign:"end",borderRadius:`0 0 ${l}px ${l}px`,display:"flex",[`${t}-indicators`]:{display:"inline-block",[`${t}-indicator`]:{width:d,height:c,display:"inline-block",borderRadius:"50%",background:u,"&:not(:last-child)":{marginInlineEnd:c},"&-active":{background:a}}},[`${t}-buttons`]:{marginInlineStart:"auto",[`${I}-btn`]:{marginInlineStart:y}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":a,[`${t}-inner`]:{color:S,textAlign:"start",textDecoration:"none",backgroundColor:a,borderRadius:i,boxShadow:f,[`${t}-close`]:{color:S},[`${t}-indicators`]:{[`${t}-indicator`]:{background:new pt(S).setAlpha(.15).toRgbString(),"&-active":{background:S}}},[`${t}-prev-btn`]:{color:S,borderColor:new pt(S).setAlpha(.15).toRgbString(),backgroundColor:a,"&:hover":{backgroundColor:new pt(S).setAlpha(.15).toRgbString(),borderColor:"transparent"}},[`${t}-next-btn`]:{color:a,borderColor:"transparent",background:x,"&:hover":{background:new pt(C).onBackground(x).toRgbString()}}}}}),[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${w}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:Math.min($,Ib)}}},Tb(e,{colorBg:"var(--antd-arrow-background-color)",contentRadius:$,limitVerticalRadius:!0})]},Kue=Ke("Tour",e=>{const{borderRadiusLG:t,fontSize:n,lineHeight:o}=e,r=ke(e,{tourZIndexPopup:e.zIndexPopupBase+70,indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t,tourCloseSize:n*o});return[Wue(r)]});var Gue=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{const{steps:h,current:b,type:y,rootClassName:S}=e,$=Gue(e,["steps","current","type","rootClassName"]),x=le({[`${u.value}-primary`]:g.value==="primary",[`${u.value}-rtl`]:c.value==="rtl"},f.value,S),C=(I,T)=>p(jue,D(D({},I),{},{type:y,current:T}),{indicatorsRender:r.indicatorsRender}),O=I=>{v(I),o("update:current",I),o("change",I)},w=P(()=>Pb({arrowPointAtCenter:!0,autoAdjustOverflow:!0}));return d(p(Lue,D(D(D({},n),$),{},{rootClassName:x,prefixCls:u.value,current:b,defaultCurrent:e.defaultCurrent,animated:!0,renderPanel:C,onChange:O,steps:h,builtinPlacements:w.value}),null))}}}),Uue=It(Xue),hE=Symbol("appConfigContext"),Yue=e=>Xe(hE,e),que=()=>He(hE,{}),vE=Symbol("appContext"),Zue=e=>Xe(vE,e),Que=ct({message:{},notification:{},modal:{}}),Jue=()=>He(vE,Que),ede=e=>{const{componentCls:t,colorText:n,fontSize:o,lineHeight:r,fontFamily:i}=e;return{[t]:{color:n,fontSize:o,lineHeight:r,fontFamily:i}}},tde=Ke("App",e=>[ede(e)]),nde=()=>({rootClassName:String,message:De(),notification:De()}),ode=()=>Jue(),Ks=oe({name:"AApp",props:Ze(nde(),{}),setup(e,t){let{slots:n}=t;const{prefixCls:o}=Te("app",e),[r,i]=tde(o),l=P(()=>le(i.value,o.value,e.rootClassName)),a=que(),s=P(()=>({message:m(m({},a.message),e.message),notification:m(m({},a.notification),e.notification)}));Yue(s.value);const[u,c]=j8(s.value.message),[d,f]=e5(s.value.notification),[g,v]=oT(),h=P(()=>({message:u,notification:d,modal:g}));return Zue(h.value),()=>{var b;return r(p("div",{class:l.value},[v(),c(),f(),(b=n.default)===null||b===void 0?void 0:b.call(n)]))}}});Ks.useApp=ode;Ks.install=function(e){e.component(Ks.name,Ks)};const mE=["wrap","nowrap","wrap-reverse"],bE=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],yE=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],rde=(e,t)=>{const n={};return mE.forEach(o=>{n[`${e}-wrap-${o}`]=t.wrap===o}),n},ide=(e,t)=>{const n={};return yE.forEach(o=>{n[`${e}-align-${o}`]=t.align===o}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},lde=(e,t)=>{const n={};return bE.forEach(o=>{n[`${e}-justify-${o}`]=t.justify===o}),n};function ade(e,t){return le(m(m(m({},rde(e,t)),ide(e,t)),lde(e,t)))}const sde=e=>{const{componentCls:t}=e;return{[t]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},cde=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},ude=e=>{const{componentCls:t}=e,n={};return mE.forEach(o=>{n[`${t}-wrap-${o}`]={flexWrap:o}}),n},dde=e=>{const{componentCls:t}=e,n={};return yE.forEach(o=>{n[`${t}-align-${o}`]={alignItems:o}}),n},fde=e=>{const{componentCls:t}=e,n={};return bE.forEach(o=>{n[`${t}-justify-${o}`]={justifyContent:o}}),n},pde=Ke("Flex",e=>{const t=ke(e,{flexGapSM:e.paddingXS,flexGap:e.padding,flexGapLG:e.paddingLG});return[sde(t),cde(t),ude(t),dde(t),fde(t)]});function b4(e){return["small","middle","large"].includes(e)}const gde=()=>({prefixCls:Ne(),vertical:$e(),wrap:Ne(),justify:Ne(),align:Ne(),flex:Fe([Number,String]),gap:Fe([Number,String]),component:yt()});var hde=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,o=Object.getOwnPropertySymbols(e);r{var c;return[l.value,s.value,ade(l.value,e),{[`${l.value}-rtl`]:i.value==="rtl",[`${l.value}-gap-${e.gap}`]:b4(e.gap),[`${l.value}-vertical`]:(c=e.vertical)!==null&&c!==void 0?c:r?.value.vertical}]});return()=>{var c;const{flex:d,gap:f,component:g="div"}=e,v=hde(e,["flex","gap","component"]),h={};return d&&(h.flex=d),f&&!b4(f)&&(h.gap=`${f}px`),a(p(g,D({class:[o.class,u.value],style:[o.style,h]},tt(v,["justify","wrap","align","vertical"])),{default:()=>[(c=n.default)===null||c===void 0?void 0:c.call(n)]}))}}}),mde=It(vde),y4=Object.freeze(Object.defineProperty({__proto__:null,Affix:cP,Alert:zV,Anchor:Ji,AnchorLink:R0,App:Ks,AutoComplete:hV,AutoCompleteOptGroup:gV,AutoCompleteOption:pV,Avatar:dl,AvatarGroup:lf,BackTop:Mf,Badge:Bs,BadgeRibbon:af,Breadcrumb:fl,BreadcrumbItem:pc,BreadcrumbSeparator:vf,Button:Lt,ButtonGroup:ff,Calendar:RX,Card:ma,CardGrid:$f,CardMeta:Sf,Carousel:yY,Cascader:DZ,CheckableTag:Pf,Checkbox:To,CheckboxGroup:wf,Col:zZ,Collapse:Fs,CollapsePanel:Cf,Comment:KZ,Compact:of,ConfigProvider:gl,DatePicker:sJ,Descriptions:Jl,DescriptionsItem:h5,DirectoryTree:$d,Divider:$J,Drawer:BJ,Dropdown:Wo,DropdownButton:fc,Empty:gi,Flex:mde,FloatButton:wi,FloatButtonGroup:Ef,Form:hi,FormItem:D8,FormItemRest:ef,Grid:LZ,Image:tl,ImagePreviewGroup:F5,Input:tn,InputGroup:O5,InputNumber:pte,InputPassword:T5,InputSearch:P5,Layout:Pte,LayoutContent:Ote,LayoutFooter:xte,LayoutHeader:Cte,LayoutSider:wte,List:ai,ListItem:V5,ListItemMeta:H5,LocaleProvider:F8,Mentions:Rne,MentionsOption:md,Menu:Vt,MenuDivider:hc,MenuItem:pr,MenuItemGroup:gc,Modal:Mt,MonthPicker:sd,PageHeader:coe,Pagination:cg,Popconfirm:hoe,Popover:Eb,Progress:Yy,QRCode:Iue,QuarterPicker:cd,Radio:Fn,RadioButton:bf,RadioGroup:ry,RangePicker:ud,Rate:nre,Result:vl,Row:bre,Segmented:nue,Select:gn,SelectOptGroup:uV,SelectOption:cV,Skeleton:wn,SkeletonAvatar:gy,SkeletonButton:dy,SkeletonImage:py,SkeletonInput:fy,SkeletonTitle:Wp,Slider:Nre,Space:$a,Spin:gr,Statistic:Rr,StatisticCountdown:Yne,Step:bd,Steps:Jre,SubMenu:xl,Switch:cie,TabPane:yf,Table:$ae,TableColumn:xd,TableColumnGroup:wd,TableSummary:Od,TableSummaryCell:Ff,TableSummaryRow:kf,Tabs:pl,Tag:Sa,Textarea:Ry,TimePicker:vse,TimeRangePicker:Pd,Timeline:Ws,TimelineItem:$c,Tooltip:Qn,Tour:Uue,Transfer:Wae,Tree:HT,TreeNode:Cd,TreeSelect:gse,TreeSelectNode:Wm,Typography:Zn,TypographyLink:Qa,TypographyParagraph:Ja,TypographyText:es,TypographyTitle:ts,Upload:zce,UploadDragger:Lce,Watermark:Uce,WeekPicker:ad,message:Oo,notification:Ii},Symbol.toStringTag,{value:"Module"})),bde=function(e){return Object.keys(y4).forEach(t=>{const n=y4[t];n.install&&e.use(n)}),e.use(sR.StyleProvider),e.config.globalProperties.$message=Oo,e.config.globalProperties.$notification=Ii,e.config.globalProperties.$info=Mt.info,e.config.globalProperties.$success=Mt.success,e.config.globalProperties.$error=Mt.error,e.config.globalProperties.$warning=Mt.warning,e.config.globalProperties.$confirm=Mt.confirm,e.config.globalProperties.$destroyAll=Mt.destroyAll,e},yde={version:ZO,install:bde};const ea=typeof document<"u";function SE(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Sde(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&SE(e.default)}const wt=Object.assign;function nv(e,t){const n={};for(const o in t){const r=t[o];n[o]=qo(r)?r.map(e):e(r)}return n}const Gs=()=>{},qo=Array.isArray;function S4(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}const $E=/#/g,$de=/&/g,Cde=/\//g,xde=/=/g,wde=/\?/g,CE=/\+/g,Ode=/%5B/g,Pde=/%5D/g,xE=/%5E/g,Ide=/%60/g,wE=/%7B/g,Tde=/%7C/g,OE=/%7D/g,Ede=/%20/g;function E1(e){return e==null?"":encodeURI(""+e).replace(Tde,"|").replace(Ode,"[").replace(Pde,"]")}function Mde(e){return E1(e).replace(wE,"{").replace(OE,"}").replace(xE,"^")}function Gm(e){return E1(e).replace(CE,"%2B").replace(Ede,"+").replace($E,"%23").replace($de,"%26").replace(Ide,"`").replace(wE,"{").replace(OE,"}").replace(xE,"^")}function _de(e){return Gm(e).replace(xde,"%3D")}function Ade(e){return E1(e).replace($E,"%23").replace(wde,"%3F")}function Rde(e){return Ade(e).replace(Cde,"%2F")}function Cc(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Dde=/\/$/,Nde=e=>e.replace(Dde,"");function ov(e,t,n="/"){let o,r={},i="",l="";const a=t.indexOf("#");let s=t.indexOf("?");return s=a>=0&&s>a?-1:s,s>=0&&(o=t.slice(0,s),i=t.slice(s,a>0?a:t.length),r=e(i.slice(1))),a>=0&&(o=o||t.slice(0,a),l=t.slice(a,t.length)),o=Lde(o??t,n),{fullPath:o+i+l,path:o,query:r,hash:Cc(l)}}function Bde(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function $4(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function kde(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&Na(t.matched[o],n.matched[r])&&PE(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Na(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function PE(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Fde(e[n],t[n]))return!1;return!0}function Fde(e,t){return qo(e)?C4(e,t):qo(t)?C4(t,e):e?.valueOf()===t?.valueOf()}function C4(e,t){return qo(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function Lde(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),r=o[o.length-1];(r===".."||r===".")&&o.push("");let i=n.length-1,l,a;for(l=0;l1&&i--;else break;return n.slice(0,i).join("/")+"/"+o.slice(l).join("/")}const ri={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Xm=(function(e){return e.pop="pop",e.push="push",e})({}),rv=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function zde(e){if(!e)if(ea){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Nde(e)}const Hde=/^[^#]+#/;function jde(e,t){return e.replace(Hde,"#")+t}function Vde(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const mg=()=>({left:window.scrollX,top:window.scrollY});function Wde(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Vde(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function x4(e,t){return(history.state?history.state.position-t:-1)+e}const Um=new Map;function Kde(e,t){Um.set(e,t)}function Gde(e){const t=Um.get(e);return Um.delete(e),t}function Xde(e){return typeof e=="string"||e&&typeof e=="object"}function IE(e){return typeof e=="string"||typeof e=="symbol"}let jt=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const TE=Symbol("");jt.MATCHER_NOT_FOUND+"",jt.NAVIGATION_GUARD_REDIRECT+"",jt.NAVIGATION_ABORTED+"",jt.NAVIGATION_CANCELLED+"",jt.NAVIGATION_DUPLICATED+"";function Ba(e,t){return wt(new Error,{type:e,[TE]:!0},t)}function wr(e,t){return e instanceof Error&&TE in e&&(t==null||!!(e.type&t))}const Ude=["params","query","hash"];function Yde(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Ude)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function qde(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;or&&Gm(r)):[o&&Gm(o)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function Zde(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=qo(o)?o.map(r=>r==null?null:""+r):o==null?o:""+o)}return t}const Qde=Symbol(""),O4=Symbol(""),bg=Symbol(""),EE=Symbol(""),Ym=Symbol("");function ps(){let e=[];function t(o){return e.push(o),()=>{const r=e.indexOf(o);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function fi(e,t,n,o,r,i=l=>l()){const l=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise((a,s)=>{const u=f=>{f===!1?s(Ba(jt.NAVIGATION_ABORTED,{from:n,to:t})):f instanceof Error?s(f):Xde(f)?s(Ba(jt.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(l&&o.enterCallbacks[r]===l&&typeof f=="function"&&l.push(f),a())},c=i(()=>e.call(o&&o.instances[r],t,n,u));let d=Promise.resolve(c);e.length<3&&(d=d.then(u)),d.catch(f=>s(f))})}function iv(e,t,n,o,r=i=>i()){const i=[];for(const l of e)for(const a in l.components){let s=l.components[a];if(!(t!=="beforeRouteEnter"&&!l.instances[a]))if(SE(s)){const u=(s.__vccOpts||s)[t];u&&i.push(fi(u,n,o,l,a,r))}else{let u=s();i.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${a}" at "${l.path}"`);const d=Sde(c)?c.default:c;l.mods[a]=c,l.components[a]=d;const f=(d.__vccOpts||d)[t];return f&&fi(f,n,o,l,a,r)()}))}}return i}function Jde(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let l=0;lNa(u,a))?o.push(a):n.push(a));const s=e.matched[l];s&&(t.matched.find(u=>Na(u,s))||r.push(s))}return[n,o,r]}let efe=()=>location.protocol+"//"+location.host;function ME(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let l=r.includes(e.slice(i))?e.slice(i).length:1,a=r.slice(l);return a[0]!=="/"&&(a="/"+a),$4(a,"")}return $4(n,e)+o+r}function tfe(e,t,n,o){let r=[],i=[],l=null;const a=({state:f})=>{const g=ME(e,location),v=n.value,h=t.value;let b=0;if(f){if(n.value=g,t.value=f,l&&l===v){l=null;return}b=h?f.position-h.position:0}else o(g);r.forEach(y=>{y(n.value,v,{delta:b,type:Xm.pop,direction:b?b>0?rv.forward:rv.back:rv.unknown})})};function s(){l=n.value}function u(f){r.push(f);const g=()=>{const v=r.indexOf(f);v>-1&&r.splice(v,1)};return i.push(g),g}function c(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(wt({},f.state,{scroll:mg()}),"")}}function d(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",c),document.removeEventListener("visibilitychange",c)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",c),document.addEventListener("visibilitychange",c),{pauseListeners:s,listen:u,destroy:d}}function P4(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?mg():null}}function nfe(e){const{history:t,location:n}=window,o={value:ME(e,n)},r={value:t.state};r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,u,c){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+s:efe()+e+s;try{t[c?"replaceState":"pushState"](u,"",f),r.value=u}catch(g){console.error(g),n[c?"replace":"assign"](f)}}function l(s,u){i(s,wt({},t.state,P4(r.value.back,s,r.value.forward,!0),u,{position:r.value.position}),!0),o.value=s}function a(s,u){const c=wt({},r.value,t.state,{forward:s,scroll:mg()});i(c.current,c,!0),i(s,wt({},P4(o.value,s,null),{position:c.position+1},u),!1),o.value=s}return{location:o,state:r,push:a,replace:l}}function ofe(e){e=zde(e);const t=nfe(e),n=tfe(e,t.state,t.location,t.replace);function o(i,l=!0){l||n.pauseListeners(),history.go(i)}const r=wt({location:"",base:e,go:o,createHref:jde.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let ll=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var rn=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(rn||{});const rfe={type:ll.Static,value:""},ife=/[a-zA-Z0-9_]/;function lfe(e){if(!e)return[[]];if(e==="/")return[[rfe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${u}": ${g}`)}let n=rn.Static,o=n;const r=[];let i;function l(){i&&r.push(i),i=[]}let a=0,s,u="",c="";function d(){u&&(n===rn.Static?i.push({type:ll.Static,value:u}):n===rn.Param||n===rn.ParamRegExp||n===rn.ParamRegExpEnd?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:ll.Param,value:u,regexp:c,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=s}for(;at.length?t.length===1&&t[0]===kn.Static+kn.Segment?1:-1:0}function _E(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const dfe={strict:!1,end:!0,sensitive:!1};function ffe(e,t,n){const o=cfe(lfe(e.path),n),r=wt(o,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function pfe(e,t){const n=[],o=new Map;t=S4(dfe,t);function r(d){return o.get(d)}function i(d,f,g){const v=!g,h=M4(d);h.aliasOf=g&&g.record;const b=S4(t,d),y=[h];if("alias"in d){const x=typeof d.alias=="string"?[d.alias]:d.alias;for(const C of x)y.push(M4(wt({},h,{components:g?g.record.components:h.components,path:C,aliasOf:g?g.record:h})))}let S,$;for(const x of y){const{path:C}=x;if(f&&C[0]!=="/"){const O=f.record.path,w=O[O.length-1]==="/"?"":"/";x.path=f.record.path+(C&&w+C)}if(S=ffe(x,f,b),g?g.alias.push(S):($=$||S,$!==S&&$.alias.push(S),v&&d.name&&!_4(S)&&l(d.name)),AE(S)&&s(S),h.children){const O=h.children;for(let w=0;w{l($)}:Gs}function l(d){if(IE(d)){const f=o.get(d);f&&(o.delete(d),n.splice(n.indexOf(f),1),f.children.forEach(l),f.alias.forEach(l))}else{const f=n.indexOf(d);f>-1&&(n.splice(f,1),d.record.name&&o.delete(d.record.name),d.children.forEach(l),d.alias.forEach(l))}}function a(){return n}function s(d){const f=vfe(d,n);n.splice(f,0,d),d.record.name&&!_4(d)&&o.set(d.record.name,d)}function u(d,f){let g,v={},h,b;if("name"in d&&d.name){if(g=o.get(d.name),!g)throw Ba(jt.MATCHER_NOT_FOUND,{location:d});b=g.record.name,v=wt(E4(f.params,g.keys.filter($=>!$.optional).concat(g.parent?g.parent.keys.filter($=>$.optional):[]).map($=>$.name)),d.params&&E4(d.params,g.keys.map($=>$.name))),h=g.stringify(v)}else if(d.path!=null)h=d.path,g=n.find($=>$.re.test(h)),g&&(v=g.parse(h),b=g.record.name);else{if(g=f.name?o.get(f.name):n.find($=>$.re.test(f.path)),!g)throw Ba(jt.MATCHER_NOT_FOUND,{location:d,currentLocation:f});b=g.record.name,v=wt({},f.params,d.params),h=g.stringify(v)}const y=[];let S=g;for(;S;)y.unshift(S.record),S=S.parent;return{name:b,path:h,params:v,matched:y,meta:hfe(y)}}e.forEach(d=>i(d));function c(){n.length=0,o.clear()}return{addRoute:i,resolve:u,removeRoute:l,clearRoutes:c,getRoutes:a,getRecordMatcher:r}}function E4(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function M4(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:gfe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function gfe(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="object"?n[o]:n;return t}function _4(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function hfe(e){return e.reduce((t,n)=>wt(t,n.meta),{})}function vfe(e,t){let n=0,o=t.length;for(;n!==o;){const i=n+o>>1;_E(e,t[i])<0?o=i:n=i+1}const r=mfe(e);return r&&(o=t.lastIndexOf(r,o-1)),o}function mfe(e){let t=e;for(;t=t.parent;)if(AE(t)&&_E(e,t)===0)return t}function AE({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function A4(e){const t=He(bg),n=He(EE),o=P(()=>{const s=St(e.to);return t.resolve(s)}),r=P(()=>{const{matched:s}=o.value,{length:u}=s,c=s[u-1],d=n.matched;if(!c||!d.length)return-1;const f=d.findIndex(Na.bind(null,c));if(f>-1)return f;const g=R4(s[u-2]);return u>1&&R4(c)===g&&d[d.length-1].path!==g?d.findIndex(Na.bind(null,s[u-2])):f}),i=P(()=>r.value>-1&&Cfe(n.params,o.value.params)),l=P(()=>r.value>-1&&r.value===n.matched.length-1&&PE(n.params,o.value.params));function a(s={}){if($fe(s)){const u=t[St(e.replace)?"replace":"push"](St(e.to)).catch(Gs);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:o,href:P(()=>o.value.href),isActive:i,isExactActive:l,navigate:a}}function bfe(e){return e.length===1?e[0]:e}const yfe=oe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:A4,setup(e,{slots:t}){const n=ct(A4(e)),{options:o}=He(bg),r=P(()=>({[D4(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[D4(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&bfe(t.default(n));return e.custom?i:Vr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),Sfe=yfe;function $fe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Cfe(e,t){for(const n in t){const o=t[n],r=e[n];if(typeof o=="string"){if(o!==r)return!1}else if(!qo(r)||r.length!==o.length||o.some((i,l)=>i.valueOf()!==r[l].valueOf()))return!1}return!0}function R4(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const D4=(e,t,n)=>e??t??n,xfe=oe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=He(Ym),r=P(()=>e.route||o.value),i=He(O4,0),l=P(()=>{let u=St(i);const{matched:c}=r.value;let d;for(;(d=c[u])&&!d.components;)u++;return u}),a=P(()=>r.value.matched[l.value]);Xe(O4,P(()=>l.value+1)),Xe(Qde,a),Xe(Ym,r);const s=re();return ye(()=>[s.value,a.value,e.name],([u,c,d],[f,g,v])=>{c&&(c.instances[d]=u,g&&g!==c&&u&&u===f&&(c.leaveGuards.size||(c.leaveGuards=g.leaveGuards),c.updateGuards.size||(c.updateGuards=g.updateGuards))),u&&c&&(!g||!Na(c,g)||!f)&&(c.enterCallbacks[d]||[]).forEach(h=>h(u))},{flush:"post"}),()=>{const u=r.value,c=e.name,d=a.value,f=d&&d.components[c];if(!f)return N4(n.default,{Component:f,route:u});const g=d.props[c],v=g?g===!0?u.params:typeof g=="function"?g(u):g:null,b=Vr(f,wt({},v,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(d.instances[c]=null)},ref:s}));return N4(n.default,{Component:b,route:u})||b}}});function N4(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const wfe=xfe;function Ofe(e){const t=pfe(e.routes,e),n=e.parseQuery||qde,o=e.stringifyQuery||w4,r=e.history,i=ps(),l=ps(),a=ps(),s=ne(ri);let u=ri;ea&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=nv.bind(null,X=>""+X),d=nv.bind(null,Rde),f=nv.bind(null,Cc);function g(X,J){let Z,G;return IE(X)?(Z=t.getRecordMatcher(X),G=J):G=X,t.addRoute(G,Z)}function v(X){const J=t.getRecordMatcher(X);J&&t.removeRoute(J)}function h(){return t.getRoutes().map(X=>X.record)}function b(X){return!!t.getRecordMatcher(X)}function y(X,J){if(J=wt({},J||s.value),typeof X=="string"){const te=ov(n,X,J.path),ue=t.resolve({path:te.path},J),ie=r.createHref(te.fullPath);return wt(te,ue,{params:f(ue.params),hash:Cc(te.hash),redirectedFrom:void 0,href:ie})}let Z;if(X.path!=null)Z=wt({},X,{path:ov(n,X.path,J.path).path});else{const te=wt({},X.params);for(const ue in te)te[ue]==null&&delete te[ue];Z=wt({},X,{params:d(te)}),J.params=d(J.params)}const G=t.resolve(Z,J),q=X.hash||"";G.params=c(f(G.params));const V=Bde(o,wt({},X,{hash:Mde(q),path:G.path})),K=r.createHref(V);return wt({fullPath:V,hash:q,query:o===w4?Zde(X.query):X.query||{}},G,{redirectedFrom:void 0,href:K})}function S(X){return typeof X=="string"?ov(n,X,s.value.path):wt({},X)}function $(X,J){if(u!==X)return Ba(jt.NAVIGATION_CANCELLED,{from:J,to:X})}function x(X){return w(X)}function C(X){return x(wt(S(X),{replace:!0}))}function O(X,J){const Z=X.matched[X.matched.length-1];if(Z&&Z.redirect){const{redirect:G}=Z;let q=typeof G=="function"?G(X,J):G;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=S(q):{path:q},q.params={}),wt({query:X.query,hash:X.hash,params:q.path!=null?{}:X.params},q)}}function w(X,J){const Z=u=y(X),G=s.value,q=X.state,V=X.force,K=X.replace===!0,te=O(Z,G);if(te)return w(wt(S(te),{state:typeof te=="object"?wt({},q,te.state):q,force:V,replace:K}),J||Z);const ue=Z;ue.redirectedFrom=J;let ie;return!V&&kde(o,G,Z)&&(ie=Ba(jt.NAVIGATION_DUPLICATED,{to:ue,from:G}),H(G,G,!0,!1)),(ie?Promise.resolve(ie):_(ue,G)).catch(ae=>wr(ae)?wr(ae,jt.NAVIGATION_GUARD_REDIRECT)?ae:L(ae):k(ae,ue,G)).then(ae=>{if(ae){if(wr(ae,jt.NAVIGATION_GUARD_REDIRECT))return w(wt({replace:K},S(ae.to),{state:typeof ae.to=="object"?wt({},q,ae.to.state):q,force:V}),J||ue)}else ae=A(ue,G,!0,K,q);return E(ue,G,ae),ae})}function I(X,J){const Z=$(X,J);return Z?Promise.reject(Z):Promise.resolve()}function T(X){const J=Q.values().next().value;return J&&typeof J.runWithContext=="function"?J.runWithContext(X):X()}function _(X,J){let Z;const[G,q,V]=Jde(X,J);Z=iv(G.reverse(),"beforeRouteLeave",X,J);for(const te of G)te.leaveGuards.forEach(ue=>{Z.push(fi(ue,X,J))});const K=I.bind(null,X,J);return Z.push(K),ee(Z).then(()=>{Z=[];for(const te of i.list())Z.push(fi(te,X,J));return Z.push(K),ee(Z)}).then(()=>{Z=iv(q,"beforeRouteUpdate",X,J);for(const te of q)te.updateGuards.forEach(ue=>{Z.push(fi(ue,X,J))});return Z.push(K),ee(Z)}).then(()=>{Z=[];for(const te of V)if(te.beforeEnter)if(qo(te.beforeEnter))for(const ue of te.beforeEnter)Z.push(fi(ue,X,J));else Z.push(fi(te.beforeEnter,X,J));return Z.push(K),ee(Z)}).then(()=>(X.matched.forEach(te=>te.enterCallbacks={}),Z=iv(V,"beforeRouteEnter",X,J,T),Z.push(K),ee(Z))).then(()=>{Z=[];for(const te of l.list())Z.push(fi(te,X,J));return Z.push(K),ee(Z)}).catch(te=>wr(te,jt.NAVIGATION_CANCELLED)?te:Promise.reject(te))}function E(X,J,Z){a.list().forEach(G=>T(()=>G(X,J,Z)))}function A(X,J,Z,G,q){const V=$(X,J);if(V)return V;const K=J===ri,te=ea?history.state:{};Z&&(G||K?r.replace(X.fullPath,wt({scroll:K&&te&&te.scroll},q)):r.push(X.fullPath,q)),s.value=X,H(X,J,Z,K),L()}let R;function z(){R||(R=r.listen((X,J,Z)=>{if(!U.listening)return;const G=y(X),q=O(G,U.currentRoute.value);if(q){w(wt(q,{replace:!0,force:!0}),G).catch(Gs);return}u=G;const V=s.value;ea&&Kde(x4(V.fullPath,Z.delta),mg()),_(G,V).catch(K=>wr(K,jt.NAVIGATION_ABORTED|jt.NAVIGATION_CANCELLED)?K:wr(K,jt.NAVIGATION_GUARD_REDIRECT)?(w(wt(S(K.to),{force:!0}),G).then(te=>{wr(te,jt.NAVIGATION_ABORTED|jt.NAVIGATION_DUPLICATED)&&!Z.delta&&Z.type===Xm.pop&&r.go(-1,!1)}).catch(Gs),Promise.reject()):(Z.delta&&r.go(-Z.delta,!1),k(K,G,V))).then(K=>{K=K||A(G,V,!1),K&&(Z.delta&&!wr(K,jt.NAVIGATION_CANCELLED)?r.go(-Z.delta,!1):Z.type===Xm.pop&&wr(K,jt.NAVIGATION_ABORTED|jt.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),E(G,V,K)}).catch(Gs)}))}let M=ps(),N=ps(),B;function k(X,J,Z){L(X);const G=N.list();return G.length?G.forEach(q=>q(X,J,Z)):console.error(X),Promise.reject(X)}function F(){return B&&s.value!==ri?Promise.resolve():new Promise((X,J)=>{M.add([X,J])})}function L(X){return B||(B=!X,z(),M.list().forEach(([J,Z])=>X?Z(X):J()),M.reset()),X}function H(X,J,Z,G){const{scrollBehavior:q}=e;if(!ea||!q)return Promise.resolve();const V=!Z&&Gde(x4(X.fullPath,0))||(G||!Z)&&history.state&&history.state.scroll||null;return ot().then(()=>q(X,J,V)).then(K=>K&&Wde(K)).catch(K=>k(K,X,J))}const j=X=>r.go(X);let Y;const Q=new Set,U={currentRoute:s,listening:!0,addRoute:g,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:h,resolve:y,options:e,push:x,replace:C,go:j,back:()=>j(-1),forward:()=>j(1),beforeEach:i.add,beforeResolve:l.add,afterEach:a.add,onError:N.add,isReady:F,install(X){X.component("RouterLink",Sfe),X.component("RouterView",wfe),X.config.globalProperties.$router=U,Object.defineProperty(X.config.globalProperties,"$route",{enumerable:!0,get:()=>St(s)}),ea&&!Y&&s.value===ri&&(Y=!0,x(r.location).catch(G=>{}));const J={};for(const G in ri)Object.defineProperty(J,G,{get:()=>s.value[G],enumerable:!0});X.provide(bg,U),X.provide(EE,s3(J)),X.provide(Ym,s);const Z=X.unmount;Q.add(X),X.unmount=function(){Q.delete(X),Q.size<1&&(u=ri,R&&R(),R=null,s.value=ri,Y=!1,B=!1),Z()}}};function ee(X){return X.reduce((J,Z)=>J.then(()=>T(Z)),Promise.resolve())}return U}function Pfe(){return He(bg)}const RE=C_("settings",{state:()=>({token:localStorage.getItem("admin_token")||"",serverConfig:{},browserConfig:{},workerConfig:[],poolConfig:{strategy:"least_busy",failover:{enabled:!1,maxRetries:3}},adapterConfig:{},adaptersMeta:[]}),actions:{setToken(e){this.token=e,e?localStorage.setItem("admin_token",e):localStorage.removeItem("admin_token")},getHeaders(){const e={"Content-Type":"application/json"};return this.token&&(e.Authorization=`Bearer ${this.token}`),e},async checkAuth(){try{return(await fetch("/admin/status",{headers:this.getHeaders()})).status!==401}catch{return!1}},async handleResponse(e,t){let n={};try{n=await e.json()}catch{}return e.ok?(t&&Oo.success(t),{success:!0,data:n}):(console.error("Request failed:",e.status,n),Mt.error({title:"保存失败",content:n.message||`请求未成功: ${e.status} ${e.statusText}`,okText:"好的"}),{success:!1,data:n})},async fetchServerConfig(){try{const e=await fetch("/admin/config/server",{headers:this.getHeaders()});e.ok&&(this.serverConfig=await e.json())}catch(e){console.error("Fetch server config failed",e)}},async saveServerConfig(e){try{const t=await fetch("/admin/config/server",{method:"POST",headers:this.getHeaders(),body:JSON.stringify(e)});if((await this.handleResponse(t,"服务器设置保存成功")).success)return this.serverConfig=e,!0}catch(t){Mt.error({title:"保存失败 (网络异常)",content:t.message})}return!1},async fetchBrowserConfig(){try{const e=await fetch("/admin/config/browser",{headers:this.getHeaders()});e.ok&&(this.browserConfig=await e.json())}catch(e){console.error("Fetch browser config failed",e)}},async saveBrowserConfig(e){try{const t=await fetch("/admin/config/browser",{method:"POST",headers:this.getHeaders(),body:JSON.stringify(e)});if((await this.handleResponse(t,"浏览器设置保存成功")).success)return this.browserConfig=e,!0}catch(t){Mt.error({title:"保存失败 (网络异常)",content:t.message})}return!1},async fetchWorkerConfig(){try{const e=await fetch("/admin/config/instances",{headers:this.getHeaders()});e.ok&&(this.workerConfig=await e.json())}catch(e){console.error("Fetch instance configuration failed",e)}},async saveWorkerConfig(e){try{const t=await fetch("/admin/config/instances",{method:"POST",headers:this.getHeaders(),body:JSON.stringify(e)});if((await this.handleResponse(t,"实例配置保存成功")).success)return this.workerConfig=e,!0}catch(t){Mt.error({title:"保存失败 (网络异常)",content:t.message})}return!1},async fetchPoolConfig(){try{const e=await fetch("/admin/config/pool",{headers:this.getHeaders()});if(e.ok){const t=await e.json();this.poolConfig={strategy:t.strategy||"least_busy",failover:{enabled:t.failover?.enabled||!1,maxRetries:t.failover?.maxRetries||3}}}}catch(e){console.error("Fetch pool config failed",e)}},async savePoolConfig(e){try{const t=await fetch("/admin/config/pool",{method:"POST",headers:this.getHeaders(),body:JSON.stringify(e)});if((await this.handleResponse(t,"工作池设置保存成功")).success)return this.poolConfig=e,!0}catch(t){Mt.error({title:"保存失败 (网络异常)",content:t.message})}return!1},async fetchAdaptersMeta(){try{const e=await fetch("/admin/adapters",{headers:this.getHeaders()});e.ok&&(this.adaptersMeta=await e.json())}catch(e){console.error("Fetch adapters meta failed",e)}},async fetchAdapterConfig(){try{const e=await fetch("/admin/config/adapters",{headers:this.getHeaders()});e.ok&&(this.adapterConfig=await e.json())}catch(e){console.error("Fetch adapter config failed",e)}},async saveAdapterConfig(e){try{const t=await fetch("/admin/config/adapters",{method:"POST",headers:this.getHeaders(),body:JSON.stringify(e)});if((await this.handleResponse(t,"适配器设置保存成功")).success)return this.adapterConfig={...this.adapterConfig,...e},!0}catch(t){Mt.error({title:"保存失败 (网络异常)",content:t.message})}return!1}}}),Ife={style:{padding:"20px 0"}},Tfe={style:{"text-align":"center","margin-bottom":"24px"}},Efe={__name:"LoginModal",props:{visible:{type:Boolean,required:!0}},emits:["update:visible","success"],setup(e,{emit:t}){const n=t,o=RE(),r=re(o.token),i=re(!1),l=async()=>{if(!r.value){Oo.warning("请输入 Token");return}i.value=!0;try{const a=o.token;o.setToken(r.value),await o.checkAuth()?(Oo.success("验证成功"),n("success"),n("update:visible",!1)):(Oo.error("Token 验证失败,请检查是否正确"),o.setToken(a))}catch{Oo.error("验证过程发生错误")}finally{i.value=!1}};return(a,s)=>{const u=ln("a-avatar"),c=ln("a-input-password"),d=ln("a-form-item"),f=ln("a-button"),g=ln("a-form"),v=ln("a-modal");return Nd(),h0(v,{open:e.visible,title:"需要身份验证",closable:!1,maskClosable:!1,footer:null,width:"400px",centered:""},{default:xt(()=>[qn("div",Ife,[qn("div",Tfe,[p(u,{size:64,style:{"background-color":"#1890ff"}},{icon:xt(()=>[p(St(Lf))]),_:1}),s[1]||(s[1]=qn("div",{style:{"margin-top":"16px","font-size":"16px","font-weight":"500"}}," WebAI2API 管理面板 ",-1)),s[2]||(s[2]=qn("div",{style:{color:"#8c8c8c","margin-top":"8px"}}," 请输入访问 Token 以继续 ",-1))]),p(g,{layout:"vertical"},{default:xt(()=>[p(d,{label:"Access Token"},{default:xt(()=>[p(c,{value:r.value,"onUpdate:value":s[0]||(s[0]=h=>r.value=h),placeholder:"请输入 Token",size:"large",onPressEnter:l},{prefix:xt(()=>[p(St(Lf),{style:{color:"rgba(0,0,0,.25)"}})]),_:1},8,["value"])]),_:1}),p(f,{type:"primary",block:"",size:"large",loading:i.value,onClick:l},{default:xt(()=>[...s[3]||(s[3]=[Ft(" 验证并登录 ",-1)])]),_:1},8,["loading"])]),_:1})])]),_:1},8,["open"])}}},Mfe=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},_fe={key:1},Afe={href:"https://github.com/foxhui/WebAI2API",target:"_blank",style:{color:"#8c8c8c","font-size":"20px"}},Rfe={__name:"App",setup(e){const t=Pfe(),n=RE(),o=re(["dash"]),r=re(!1),i=re(!1),l=re(!1),a=()=>{l.value=!0,n.setToken(""),setTimeout(()=>{l.value=!1,i.value=!0},500)},s={dash:"/","settings-server":"/settings/server","settings-workers":"/settings/workers","settings-browser":"/settings/browser","settings-adapters":"/settings/adapters","tools-display":"/tools/display","tools-cache":"/tools/cache"},u=({key:v})=>{const h=s[v];h&&t.push(h)},c=re(!0);let d=null,f=!1;async function g(){try{(await fetch("/admin/status",{headers:n.getHeaders(),signal:AbortSignal.timeout(5e3)})).ok&&f&&(f=!1,Mt.destroyAll(),window.location.reload())}catch{!f&&!c.value&&(f=!0,Mt.warning({title:"后端连接断开",content:"无法连接到后端服务,请检查服务是否正在运行。连接恢复后页面将自动刷新。",okText:"我知道了",centered:!0}))}}return je(async()=>{const v=()=>{window.innerWidth<=768&&(r.value=!0)};v(),window.addEventListener("resize",v);try{n.token?await n.checkAuth()||(n.setToken(""),i.value=!0):i.value=!0}catch(h){console.error("Auth check failed",h),i.value=!0}finally{c.value=!1}d=setInterval(g,5e3),$n(()=>{window.removeEventListener("resize",v),d&&clearInterval(d)})}),(v,h)=>{const b=ln("a-spin"),y=ln("a-button"),S=ln("a-flex"),$=ln("a-layout-header"),x=ln("a-menu-item"),C=ln("a-sub-menu"),O=ln("a-menu"),w=ln("a-layout-sider"),I=ln("router-view"),T=ln("a-layout-content"),_=ln("a-card"),E=ln("a-layout-footer"),A=ln("a-layout");return c.value?(Nd(),h0(b,{key:0,spinning:c.value,tip:"正在验证身份...",size:"large",style:{height:"100vh",display:"flex","align-items":"center","justify-content":"center"}},null,8,["spinning"])):(Nd(),O7("div",_fe,[p(Efe,{visible:i.value,"onUpdate:visible":h[0]||(h[0]=R=>i.value=R)},null,8,["visible"]),p(A,{style:{"min-height":"100vh"},theme:"light"},{default:xt(()=>[p($,{class:"header",style:{background:"rgba(255, 255, 255, 0.7)","backdrop-filter":"blur(20px)","-webkit-backdrop-filter":"blur(20px)","border-bottom":"1.5px solid rgba(0, 0, 0, 0.05)",display:"flex","align-items":"center",padding:"0 24px",position:"fixed",width:"100%",top:"0","z-index":"1000"}},{default:xt(()=>[h[4]||(h[4]=qn("div",{class:"logo",style:{"font-size":"1.25rem","font-weight":"bold",color:"#1890ff","margin-right":"24px"}}," WebAI2API ",-1)),p(S,{justify:"end",align:"center",style:{flex:"1"}},{default:xt(()=>[p(y,{danger:"",loading:l.value,onClick:a},{icon:xt(()=>[p(St(x1))]),default:xt(()=>[h[3]||(h[3]=Ft(" 退出登录 ",-1))]),_:1},8,["loading"])]),_:1})]),_:1}),p(A,{style:{"margin-top":"64px"}},{default:xt(()=>[p(w,{collapsed:r.value,"onUpdate:collapsed":h[2]||(h[2]=R=>r.value=R),collapsible:"",theme:"light",style:{position:"fixed",left:"0",top:"64px",height:"calc(100vh - 64px)","overflow-y":"auto","z-index":"100"}},{default:xt(()=>[p(O,{selectedKeys:o.value,"onUpdate:selectedKeys":h[1]||(h[1]=R=>o.value=R),mode:"inline",onClick:u},{default:xt(()=>[p(x,{key:"dash"},{default:xt(()=>[p(St($1)),h[5]||(h[5]=qn("span",null,"状态概览",-1))]),_:1}),p(C,{key:"settings"},{title:xt(()=>[qn("span",null,[p(St(O1)),h[6]||(h[6]=qn("span",null,"系统设置",-1))])]),default:xt(()=>[p(x,{key:"settings-server"},{default:xt(()=>[...h[7]||(h[7]=[Ft("服务器",-1)])]),_:1}),p(x,{key:"settings-workers"},{default:xt(()=>[...h[8]||(h[8]=[Ft("工作池",-1)])]),_:1}),p(x,{key:"settings-browser"},{default:xt(()=>[...h[9]||(h[9]=[Ft("浏览器",-1)])]),_:1}),p(x,{key:"settings-adapters"},{default:xt(()=>[...h[10]||(h[10]=[Ft("适配器",-1)])]),_:1})]),_:1}),p(C,{key:"tools"},{title:xt(()=>[qn("span",null,[p(St(P1)),h[11]||(h[11]=qn("span",null,"系统管理",-1))])]),default:xt(()=>[p(x,{key:"tools-display"},{default:xt(()=>[...h[12]||(h[12]=[Ft("虚拟显示器",-1)])]),_:1}),p(x,{key:"tools-cache"},{default:xt(()=>[...h[13]||(h[13]=[Ft("缓存与重启",-1)])]),_:1})]),_:1})]),_:1},8,["selectedKeys"])]),_:1},8,["collapsed"]),p(A,{style:Gf({marginLeft:r.value?"80px":"200px",padding:"16px",transition:"margin-left 0.2s"})},{default:xt(()=>[p(T,{style:{"min-height":"280px"}},{default:xt(()=>[p(I)]),_:1}),p(E,{class:"footer",style:{padding:"0px","margin-top":"10px"}},{default:xt(()=>[p(_,{bordered:!1,bodyStyle:{padding:"16px 24px",display:"flex",justifyContent:"space-between",alignItems:"center"}},{default:xt(()=>[qn("div",null,[qn("a",Afe,[p(St(C1))])])]),_:1})]),_:1})]),_:1},8,["style"])]),_:1})]),_:1})]))}}},Dfe=Mfe(Rfe,[["__scopeId","data-v-9531bced"]]),Nfe=[{path:"/",component:()=>Fi(()=>import("./dash-C1BS1PJi.js"),__vite__mapDeps([0,1,2]))},{path:"/settings/server",component:()=>Fi(()=>import("./server-BIrLgehb.js"),__vite__mapDeps([3,4]))},{path:"/settings/workers",component:()=>Fi(()=>import("./workers-C-NcF24t.js"),[])},{path:"/settings/browser",component:()=>Fi(()=>import("./browser-CZogeus2.js"),[])},{path:"/settings/adapters",component:()=>Fi(()=>import("./adapters-BuKXvMZU.js"),[])},{path:"/tools/display",component:()=>Fi(()=>import("./display-CU0V30l_.js"),__vite__mapDeps([5,2]))},{path:"/tools/cache",component:()=>Fi(()=>import("./cache-DYoxhx9q.js"),__vite__mapDeps([6,1]))}],Bfe=Ofe({history:ofe(),routes:Nfe}),kfe=v_(),yg=aO(Dfe);yg.use(kfe);yg.use(Bfe);yg.use(yde);yg.mount("#app");export{Np as C,vg as D,Bp as E,Ve as F,We as I,Wn as L,x1 as P,w1 as R,O1 as S,Mfe as _,$n as a,h0 as b,p as c,Nd as d,ln as e,qn as f,Ft as g,O7 as h,Hfe as i,RE as j,ct as k,P as l,zfe as m,Fi as n,je as o,Vr as p,u1 as q,re as r,Oo as s,rM as t,St as u,rg as v,xt as w,C_ as x}; diff --git a/webui/dist/assets/rfb-BW3Yvshj.js b/webui/dist/assets/rfb-BW3Yvshj.js new file mode 100644 index 0000000..67264bd --- /dev/null +++ b/webui/dist/assets/rfb-BW3Yvshj.js @@ -0,0 +1,5 @@ +function nn(i){return i>>>0}function Gt(i){return i|0}let si="warn",M=()=>{},$=()=>{},se=()=>{},O=()=>{};function rn(i){if(typeof i>"u"?i=si:si=i,M=$=se=O=()=>{},typeof window.console<"u")switch(i){case"debug":M=console.debug.bind(window.console);case"info":$=console.info.bind(window.console);case"warn":se=console.warn.bind(window.console);case"error":O=console.error.bind(window.console);case"none":break;default:throw new window.Error("invalid logging type '"+i+"'")}}rn();function St(i,t=!1){try{return decodeURIComponent(escape(i))}catch(e){if(e instanceof URIError&&t)return i;throw e}}function ce(i){return unescape(encodeURIComponent(i))}let Es="ontouchstart"in document.documentElement||document.ontouchstart!==void 0||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.addEventListener("touchstart",function i(){Es=!0,window.removeEventListener("touchstart",i,!1)},!1);let ni=10*(window.devicePixelRatio||1),As=!1;try{const i=document.createElement("canvas");i.style.cursor='url("data:image/x-icon;base64,AAACAAEACAgAAAIAAgA4AQAAFgAAACgAAAAIAAAAEAAAAAEAIAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAD/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////AAAAAAAAAAAAAAAAAAAAAA==") 2 2, default',i.style.cursor.indexOf("url")===0?($("Data URI scheme cursor supported"),As=!0):se("Data URI scheme cursor not supported")}catch(i){O("Data URI scheme cursor test exception: "+i)}const an=As;let on=!0;try{const i=document.createElement("div");i.style.visibility="hidden",i.style.overflow="scroll",document.body.appendChild(i);const t=document.createElement("div");i.appendChild(t);const e=i.offsetWidth-t.offsetWidth;i.parentNode.removeChild(i),on=e!=0}catch(i){O("Scrollbar test exception: "+i)}function Pe(){return!!/mac/i.exec(navigator.platform)}function ft(){return!!/win/i.exec(navigator.platform)}function tt(){return!!/ipad/i.exec(navigator.platform)||!!/iphone/i.exec(navigator.platform)||!!/ipod/i.exec(navigator.platform)}function Le(i,t,e){const s=e.getBoundingClientRect();let n={x:0,y:0};return i=s.right?n.x=s.width-1:n.x=i-s.left,t=s.bottom?n.y=s.height-1:n.y=t-s.top,n}function Se(i){i.stopPropagation(),i.preventDefault()}let Ct=!1,Ks=null;document.captureElement=null;function ve(i){if(Ct)return;const t=new i.constructor(i.type,i);Ct=!0,document.captureElement?document.captureElement.dispatchEvent(t):Ks.dispatchEvent(t),Ct=!1,i.stopPropagation(),t.defaultPrevented&&i.preventDefault(),i.type==="mouseup"&&Ts()}function Xs(){const i=document.getElementById("noVNC_mouse_capture_elem");i.style.cursor=window.getComputedStyle(document.captureElement).cursor}const Fs=new MutationObserver(Xs);function hn(i){if(i.setCapture)i.setCapture(),document.captureElement=i;else{Ts();let t=document.getElementById("noVNC_mouse_capture_elem");t===null&&(t=document.createElement("div"),t.id="noVNC_mouse_capture_elem",t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.width="100%",t.style.height="100%",t.style.zIndex=1e4,t.style.display="none",document.body.appendChild(t),t.addEventListener("contextmenu",ve),t.addEventListener("mousemove",ve),t.addEventListener("mouseup",ve)),document.captureElement=i,Fs.observe(i,{attributes:!0}),Xs(),t.style.display="",window.addEventListener("mousemove",ve),window.addEventListener("mouseup",ve)}}function Ts(){if(document.releaseCapture)document.releaseCapture(),document.captureElement=null;else{if(!document.captureElement)return;Ks=document.captureElement,document.captureElement=null,Fs.disconnect();const i=document.getElementById("noVNC_mouse_capture_elem");i.style.display="none",window.removeEventListener("mousemove",ve),window.removeEventListener("mouseup",ve)}}class Ms{constructor(){this._listeners=new Map}addEventListener(t,e){this._listeners.has(t)||this._listeners.set(t,new Set),this._listeners.get(t).add(e)}removeEventListener(t,e){this._listeners.has(t)&&this._listeners.get(t).delete(e)}dispatchEvent(t){return this._listeners.has(t.type)?(this._listeners.get(t.type).forEach(e=>e.call(this,t)),!t.defaultPrevented):!0}}const Ls={toBase64Table:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),base64Pad:"=",encode(i){let t="";const e=i.length,s=e%3;for(let r=0;r>2],t+=this.toBase64Table[((i[r]&3)<<4)+(i[r+1]>>4)],t+=this.toBase64Table[((i[r+1]&15)<<2)+(i[r+2]>>6)],t+=this.toBase64Table[i[r+2]&63];const n=e-s;return s===2?(t+=this.toBase64Table[i[n]>>2],t+=this.toBase64Table[((i[n]&3)<<4)+(i[n+1]>>4)],t+=this.toBase64Table[(i[n+1]&15)<<2],t+=this.toBase64Table[64]):s===1&&(t+=this.toBase64Table[i[n]>>2],t+=this.toBase64Table[(i[n]&3)<<4],t+=this.toBase64Table[64],t+=this.toBase64Table[64]),t},toBinaryTable:[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1],decode(i,t=0){let e=i.indexOf("=")-t;e<0&&(e=i.length-t);const s=(e>>2)*3+Math.floor(e%4/1.5),n=new Array(s);let r=0,a=0;for(let h=0,c=t;c=8&&(r-=8,l||(n[h++]=a>>r&255),a&=(1<> Display.constructor"),this._target=t,!this._target)throw new Error("Target must be set");if(typeof this._target=="string")throw new Error("target must be a DOM element");if(!this._target.getContext)throw new Error("no getContext method");this._targetCtx=this._target.getContext("2d"),this._viewportLoc={x:0,y:0,w:this._target.width,h:this._target.height},this._backbuffer=document.createElement("canvas"),this._drawCtx=this._backbuffer.getContext("2d"),this._damageBounds={left:0,top:0,right:this._backbuffer.width,bottom:this._backbuffer.height},M("User Agent: "+navigator.userAgent),M("<< Display.constructor"),this._scale=1,this._clipViewport=!1,this.onflush=()=>{}}get scale(){return this._scale}set scale(t){this._rescale(t)}get clipViewport(){return this._clipViewport}set clipViewport(t){this._clipViewport=t;const e=this._viewportLoc;this.viewportChangeSize(e.w,e.h),this.viewportChangePos(0,0)}get width(){return this._fbWidth}get height(){return this._fbHeight}viewportChangePos(t,e){const s=this._viewportLoc;t=Math.floor(t),e=Math.floor(e),this._clipViewport||(t=-s.w,e=-s.h);const n=s.x+s.w-1,r=s.y+s.h-1;t<0&&s.x+t<0&&(t=-s.x),n+t>=this._fbWidth&&(t-=n+t-this._fbWidth+1),s.y+e<0&&(e=-s.y),r+e>=this._fbHeight&&(e-=r+e-this._fbHeight+1),!(t===0&&e===0)&&(M("viewportChange deltaX: "+t+", deltaY: "+e),s.x+=t,s.y+=e,this._damage(s.x,s.y,s.w,s.h),this.flip())}viewportChangeSize(t,e){(!this._clipViewport||typeof t>"u"||typeof e>"u")&&(M("Setting viewport to full display region"),t=this._fbWidth,e=this._fbHeight),t=Math.floor(t),e=Math.floor(e),t>this._fbWidth&&(t=this._fbWidth),e>this._fbHeight&&(e=this._fbHeight);const s=this._viewportLoc;if(s.w!==t||s.h!==e){s.w=t,s.h=e;const n=this._target;n.width=t,n.height=e,this.viewportChangePos(0,0),this._damage(s.x,s.y,s.w,s.h),this.flip(),this._rescale(this._scale)}}absX(t){return this._scale===0?0:Gt(t/this._scale+this._viewportLoc.x)}absY(t){return this._scale===0?0:Gt(t/this._scale+this._viewportLoc.y)}resize(t,e){this._prevDrawStyle="",this._fbWidth=t,this._fbHeight=e;const s=this._backbuffer;if(s.width!==t||s.height!==e){let r=null;s.width>0&&s.height>0&&(r=this._drawCtx.getImageData(0,0,s.width,s.height)),s.width!==t&&(s.width=t),s.height!==e&&(s.height=e),r&&this._drawCtx.putImageData(r,0,0)}const n=this._viewportLoc;this.viewportChangeSize(n.w,n.h),this.viewportChangePos(0,0)}getImageData(){return this._drawCtx.getImageData(0,0,this.width,this.height)}toDataURL(t,e){return this._backbuffer.toDataURL(t,e)}toBlob(t,e,s){return this._backbuffer.toBlob(t,e,s)}_damage(t,e,s,n){tthis._damageBounds.right&&(this._damageBounds.right=t+s),e+n>this._damageBounds.bottom&&(this._damageBounds.bottom=e+n)}flip(t){if(this._renderQ.length!==0&&!t)this._renderQPush({type:"flip"});else{let e=this._damageBounds.left,s=this._damageBounds.top,n=this._damageBounds.right-e,r=this._damageBounds.bottom-s,a=e-this._viewportLoc.x,h=s-this._viewportLoc.y;a<0&&(n+=a,e-=a,a=0),h<0&&(r+=h,s-=h,h=0),a+n>this._viewportLoc.w&&(n=this._viewportLoc.w-a),h+r>this._viewportLoc.h&&(r=this._viewportLoc.h-h),n>0&&r>0&&this._targetCtx.drawImage(this._backbuffer,e,s,n,r,a,h,n,r),this._damageBounds.left=this._damageBounds.top=65535,this._damageBounds.right=this._damageBounds.bottom=0}}pending(){return this._renderQ.length>0}flush(){this._renderQ.length===0?this.onflush():this._flushing=!0}fillRect(t,e,s,n,r,a){this._renderQ.length!==0&&!a?this._renderQPush({type:"fill",x:t,y:e,width:s,height:n,color:r}):(this._setFillColor(r),this._drawCtx.fillRect(t,e,s,n),this._damage(t,e,s,n))}copyImage(t,e,s,n,r,a,h){this._renderQ.length!==0&&!h?this._renderQPush({type:"copy",oldX:t,oldY:e,x:s,y:n,width:r,height:a}):(this._drawCtx.mozImageSmoothingEnabled=!1,this._drawCtx.webkitImageSmoothingEnabled=!1,this._drawCtx.msImageSmoothingEnabled=!1,this._drawCtx.imageSmoothingEnabled=!1,this._drawCtx.drawImage(this._backbuffer,t,e,r,a,s,n,r,a),this._damage(s,n,r,a))}imageRect(t,e,s,n,r,a){if(s===0||n===0)return;const h=new Image;h.src="data: "+r+";base64,"+Ls.encode(a),this._renderQPush({type:"img",img:h,x:t,y:e,width:s,height:n})}blitImage(t,e,s,n,r,a,h){if(this._renderQ.length!==0&&!h){const c=new Uint8Array(s*n*4);c.set(new Uint8Array(r.buffer,0,c.length)),this._renderQPush({type:"blit",data:c,x:t,y:e,width:s,height:n})}else{let c=new Uint8ClampedArray(r.buffer,r.byteOffset+a,s*n*4),o=new ImageData(c,s,n);this._drawCtx.putImageData(o,t,e),this._damage(t,e,s,n)}}drawImage(t,e,s){this._drawCtx.drawImage(t,e,s),this._damage(e,s,t.width,t.height)}autoscale(t,e){let s;if(t===0||e===0)s=0;else{const n=this._viewportLoc,r=t/e;n.w/n.h>=r?s=t/n.w:s=e/n.h}this._rescale(s)}_rescale(t){this._scale=t;const e=this._viewportLoc,s=t*e.w+"px",n=t*e.h+"px";(this._target.style.width!==s||this._target.style.height!==n)&&(this._target.style.width=s,this._target.style.height=n)}_setFillColor(t){const e="rgb("+t[0]+","+t[1]+","+t[2]+")";e!==this._prevDrawStyle&&(this._drawCtx.fillStyle=e,this._prevDrawStyle=e)}_renderQPush(t){this._renderQ.push(t),this._renderQ.length===1&&this._scanRenderQ()}_resumeRenderQ(){this.removeEventListener("load",this._noVNCDisplay._resumeRenderQ),this._noVNCDisplay._scanRenderQ()}_scanRenderQ(){let t=!0;for(;t&&this._renderQ.length>0;){const e=this._renderQ[0];switch(e.type){case"flip":this.flip(!0);break;case"copy":this.copyImage(e.oldX,e.oldY,e.x,e.y,e.width,e.height,!0);break;case"fill":this.fillRect(e.x,e.y,e.width,e.height,e.color,!0);break;case"blit":this.blitImage(e.x,e.y,e.width,e.height,e.data,0,!0);break;case"img":if(e.img.complete){if(e.img.width!==e.width||e.img.height!==e.height){O("Decoded image has incorrect dimensions. Got "+e.img.width+"x"+e.img.height+". Expected "+e.width+"x"+e.height+".");return}this.drawImage(e.img,e.x,e.y)}else e.img._noVNCDisplay=this,e.img.addEventListener("load",this._resumeRenderQ),t=!1;break}t&&this._renderQ.shift()}this._renderQ.length===0&&this._flushing&&(this._flushing=!1,this.onflush())}}function fe(i,t,e,s,n){if(t.subarray&&i.subarray){i.set(t.subarray(e,e+s),n);return}for(var r=0;r>>16&65535|0,a=0;e!==0;){a=e>2e3?2e3:e,e-=a;do n=n+t[s++]|0,r=r+n|0;while(--a);n%=65521,r%=65521}return n|r<<16|0}function V(){for(var i,t=[],e=0;e<256;e++){i=e;for(var s=0;s<8;s++)i=i&1?3988292384^i>>>1:i>>>1;t[e]=i}return t}V();var it=30,cn=12;function _n(i,t){var e,s,n,r,a,h,c,o,l,u,x,d,k,C,A,K,T,X,S,L,N,E,R,B,F;e=i.state,s=i.next_in,B=i.input,n=s+(i.avail_in-5),r=i.next_out,F=i.output,a=r-(t-i.avail_out),h=r+(i.avail_out-257),c=e.dmax,o=e.wsize,l=e.whave,u=e.wnext,x=e.window,d=e.hold,k=e.bits,C=e.lencode,A=e.distcode,K=(1<>>24,d>>>=S,k-=S,S=X>>>16&255,S===0)F[r++]=X&65535;else if(S&16){L=X&65535,S&=15,S&&(k>>=S,k-=S),k<15&&(d+=B[s++]<>>24,d>>>=S,k-=S,S=X>>>16&255,S&16){if(N=X&65535,S&=15,kc){i.msg="invalid distance too far back",e.mode=it;break e}if(d>>>=S,k-=S,S=r-a,N>S){if(S=N-S,S>l&&e.sane){i.msg="invalid distance too far back",e.mode=it;break e}if(E=0,R=x,u===0){if(E+=o-S,S2;)F[r++]=R[E++],F[r++]=R[E++],F[r++]=R[E++],L-=3;L&&(F[r++]=R[E++],L>1&&(F[r++]=R[E++]))}else{E=r-N;do F[r++]=F[E++],F[r++]=F[E++],F[r++]=F[E++],L-=3;while(L>2);L&&(F[r++]=F[E++],L>1&&(F[r++]=F[E++]))}}else if((S&64)===0){X=A[(X&65535)+(d&(1<>3,s-=L,k-=L<<3,d&=(1<=1&&P[x]===0;x--);if(d>x&&(d=x),x===0)return n[r++]=1<<24|64<<16|0,n[r++]=1<<24|64<<16|0,h.bits=1,0;for(u=1;u0&&(i===oi||x!==1))return-1;for(te[1]=0,o=1;ori||i===hi&&K>ai)return 1;for(;;){ii=o-C,a[l]F?(Je=re[G+a[l]],et=R[B+a[l]]):(Je=96,et=0),X=1<>C)+S]=ii<<24|Je<<16|et|0;while(S!==0);for(X=1<>=1;if(X!==0?(T&=X-1,T+=X):T=0,l++,--P[o]===0){if(o===x)break;o=t[e+a[l]]}if(o>d&&(T&N)!==L){for(C===0&&(C=d),E+=u,k=o-C,A=1<ri||i===hi&&K>ai)return 1;L=T&N,n[L]=d<<24|k<<16|E-r|0}}return T!==0&&(n[E+T]=o-C<<24|64<<16|0),h.bits=d,0}var pn=0,Rs=1,Ds=2;const li=4,bt=0,gn=1,bn=2,ke=-2,wn=-3,vn=-4,mn=-5,ci=8;var Qs=1,_i=2,fi=3,di=4,ui=5,xi=6,pi=7,gi=8,bi=9,wi=10,vi=11,le=12,At=13,mi=14,Kt=15,yi=16,ki=17,Si=18,Ci=19,st=20,nt=21,Ei=22,Ai=23,Ki=24,Xi=25,Fi=26,Xt=27,Ti=28,Mi=29,H=30,yn=31,kn=32,Sn=852,Cn=592,En=15,An=En;function Li(i){return(i>>>24&255)+(i>>>8&65280)+((i&65280)<<8)+((i&255)<<24)}function Kn(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new ie(320),this.work=new ie(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Xn(i){var t;return!i||!i.state?ke:(t=i.state,i.total_in=i.total_out=t.total=0,i.msg="",t.wrap&&(i.adler=t.wrap&1),t.mode=Qs,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new gt(Sn),t.distcode=t.distdyn=new gt(Cn),t.sane=1,t.back=-1,bt)}function Bs(i){var t;return!i||!i.state?ke:(t=i.state,t.wsize=0,t.whave=0,t.wnext=0,Xn(i))}function Fn(i,t){var e,s;return!i||!i.state||(s=i.state,t<0?(e=0,t=-t):(e=(t>>4)+1,t<48&&(t&=15)),t&&(t<8||t>15))?ke:(s.window!==null&&s.wbits!==t&&(s.window=null),s.wrap=e,s.wbits=t,Bs(i))}function Tn(i,t){var e,s;return i?(s=new Kn,i.state=s,s.window=null,e=Fn(i,t),e!==bt&&(i.state=null),e):ke}function Mn(i){return Tn(i,An)}var Ri=!0,Ft,Tt;function Ln(i){if(Ri){var t;for(Ft=new gt(512),Tt=new gt(32),t=0;t<144;)i.lens[t++]=8;for(;t<256;)i.lens[t++]=9;for(;t<280;)i.lens[t++]=7;for(;t<288;)i.lens[t++]=8;for(Ne(Rs,i.lens,0,288,Ft,0,i.work,{bits:9}),t=0;t<32;)i.lens[t++]=5;Ne(Ds,i.lens,0,32,Tt,0,i.work,{bits:5}),Ri=!1}i.lencode=Ft,i.lenbits=9,i.distcode=Tt,i.distbits=5}function Rn(i,t,e,s){var n,r=i.state;return r.window===null&&(r.wsize=1<=r.wsize?(fe(r.window,t,e-r.wsize,r.wsize,0),r.wnext=0,r.whave=r.wsize):(n=r.wsize-r.wnext,n>s&&(n=s),fe(r.window,t,e-s,n,r.wnext),s-=n,s?(fe(r.window,t,e-s,s,0),r.wnext=s,r.whave=r.wsize):(r.wnext+=n,r.wnext===r.wsize&&(r.wnext=0),r.whave>>8&255,e.check=V(e.check),o=0,l=0,e.mode=_i;break}if(e.flags=0,e.head&&(e.head.done=!1),!(e.wrap&1)||(((o&255)<<8)+(o>>8))%31){i.msg="incorrect header check",e.mode=H;break}if((o&15)!==ci){i.msg="unknown compression method",e.mode=H;break}if(o>>>=4,l-=4,E=(o&15)+8,e.wbits===0)e.wbits=E;else if(E>e.wbits){i.msg="invalid window size",e.mode=H;break}e.dmax=1<>8&1),e.flags&512&&(B[0]=o&255,B[1]=o>>>8&255,e.check=V(e.check)),o=0,l=0,e.mode=fi;case fi:for(;l<32;){if(h===0)break e;h--,o+=s[r++]<>>8&255,B[2]=o>>>16&255,B[3]=o>>>24&255,e.check=V(e.check)),o=0,l=0,e.mode=di;case di:for(;l<16;){if(h===0)break e;h--,o+=s[r++]<>8),e.flags&512&&(B[0]=o&255,B[1]=o>>>8&255,e.check=V(e.check)),o=0,l=0,e.mode=ui;case ui:if(e.flags&1024){for(;l<16;){if(h===0)break e;h--,o+=s[r++]<>>8&255,e.check=V(e.check)),o=0,l=0}else e.head&&(e.head.extra=null);e.mode=xi;case xi:if(e.flags&1024&&(d=e.length,d>h&&(d=h),d&&(e.head&&(E=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Array(e.head.extra_len)),fe(e.head.extra,s,r,d,E)),e.flags&512&&(e.check=V(e.check)),h-=d,r+=d,e.length-=d),e.length))break e;e.length=0,e.mode=pi;case pi:if(e.flags&2048){if(h===0)break e;d=0;do E=s[r+d++],e.head&&E&&e.length<65536&&(e.head.name+=String.fromCharCode(E));while(E&&d>9&1,e.head.done=!0),i.adler=e.check=0,e.mode=le;break;case wi:for(;l<32;){if(h===0)break e;h--,o+=s[r++]<>>=l&7,l-=l&7,e.mode=Xt;break}for(;l<3;){if(h===0)break e;h--,o+=s[r++]<>>=1,l-=1,o&3){case 0:e.mode=mi;break;case 1:Ln(e),e.mode=st;break;case 2:e.mode=ki;break;case 3:i.msg="invalid block type",e.mode=H}o>>>=2,l-=2;break;case mi:for(o>>>=l&7,l-=l&7;l<32;){if(h===0)break e;h--,o+=s[r++]<>>16^65535)){i.msg="invalid stored block lengths",e.mode=H;break}e.length=o&65535,o=0,l=0,e.mode=Kt;case Kt:e.mode=yi;case yi:if(d=e.length,d){if(d>h&&(d=h),d>c&&(d=c),d===0)break e;fe(n,s,r,d,a),h-=d,r+=d,c-=d,a+=d,e.length-=d;break}e.mode=le;break;case ki:for(;l<14;){if(h===0)break e;h--,o+=s[r++]<>>=5,l-=5,e.ndist=(o&31)+1,o>>>=5,l-=5,e.ncode=(o&15)+4,o>>>=4,l-=4,e.nlen>286||e.ndist>30){i.msg="too many length or distance symbols",e.mode=H;break}e.have=0,e.mode=Si;case Si:for(;e.have>>=3,l-=3}for(;e.have<19;)e.lens[te[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,F={bits:e.lenbits},R=Ne(pn,e.lens,0,19,e.lencode,0,e.work,F),e.lenbits=F.bits,R){i.msg="invalid code lengths set",e.mode=H;break}e.have=0,e.mode=Ci;case Ci:for(;e.have>>24,T=A>>>16&255,X=A&65535,!(K<=l);){if(h===0)break e;h--,o+=s[r++]<>>=K,l-=K,e.lens[e.have++]=X;else{if(X===16){for(P=K+2;l>>=K,l-=K,e.have===0){i.msg="invalid bit length repeat",e.mode=H;break}E=e.lens[e.have-1],d=3+(o&3),o>>>=2,l-=2}else if(X===17){for(P=K+3;l>>=K,l-=K,E=0,d=3+(o&7),o>>>=3,l-=3}else{for(P=K+7;l>>=K,l-=K,E=0,d=11+(o&127),o>>>=7,l-=7}if(e.have+d>e.nlen+e.ndist){i.msg="invalid bit length repeat",e.mode=H;break}for(;d--;)e.lens[e.have++]=E}}if(e.mode===H)break;if(e.lens[256]===0){i.msg="invalid code -- missing end-of-block",e.mode=H;break}if(e.lenbits=9,F={bits:e.lenbits},R=Ne(Rs,e.lens,0,e.nlen,e.lencode,0,e.work,F),e.lenbits=F.bits,R){i.msg="invalid literal/lengths set",e.mode=H;break}if(e.distbits=6,e.distcode=e.distdyn,F={bits:e.distbits},R=Ne(Ds,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,F),e.distbits=F.bits,R){i.msg="invalid distances set",e.mode=H;break}e.mode=st;case st:e.mode=nt;case nt:if(h>=6&&c>=258){i.next_out=a,i.avail_out=c,i.next_in=r,i.avail_in=h,e.hold=o,e.bits=l,_n(i,x),a=i.next_out,n=i.output,c=i.avail_out,r=i.next_in,s=i.input,h=i.avail_in,o=e.hold,l=e.bits,e.mode===le&&(e.back=-1);break}for(e.back=0;A=e.lencode[o&(1<>>24,T=A>>>16&255,X=A&65535,!(K<=l);){if(h===0)break e;h--,o+=s[r++]<>S)],K=A>>>24,T=A>>>16&255,X=A&65535,!(S+K<=l);){if(h===0)break e;h--,o+=s[r++]<>>=S,l-=S,e.back+=S}if(o>>>=K,l-=K,e.back+=K,e.length=X,T===0){e.mode=Fi;break}if(T&32){e.back=-1,e.mode=le;break}if(T&64){i.msg="invalid literal/length code",e.mode=H;break}e.extra=T&15,e.mode=Ei;case Ei:if(e.extra){for(P=e.extra;l>>=e.extra,l-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=Ai;case Ai:for(;A=e.distcode[o&(1<>>24,T=A>>>16&255,X=A&65535,!(K<=l);){if(h===0)break e;h--,o+=s[r++]<>S)],K=A>>>24,T=A>>>16&255,X=A&65535,!(S+K<=l);){if(h===0)break e;h--,o+=s[r++]<>>=S,l-=S,e.back+=S}if(o>>>=K,l-=K,e.back+=K,T&64){i.msg="invalid distance code",e.mode=H;break}e.offset=X,e.extra=T&15,e.mode=Ki;case Ki:if(e.extra){for(P=e.extra;l>>=e.extra,l-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){i.msg="invalid distance too far back",e.mode=H;break}e.mode=Xi;case Xi:if(c===0)break e;if(d=x-c,e.offset>d){if(d=e.offset-d,d>e.whave&&e.sane){i.msg="invalid distance too far back",e.mode=H;break}d>e.wnext?(d-=e.wnext,k=e.wsize-d):k=e.wnext-d,d>e.length&&(d=e.length),C=e.window}else C=n,k=a-e.offset,d=e.length;d>c&&(d=c),c-=d,e.length-=d;do n[a++]=C[k++];while(--d);e.length===0&&(e.mode=nt);break;case Fi:if(c===0)break e;n[a++]=e.length,c--,e.mode=nt;break;case Xt:if(e.wrap){for(;l<32;){if(h===0)break e;h--,o|=s[r++]<this.chunkSize&&(this.chunkSize=t,this.strm.output=new Uint8Array(this.chunkSize)),this.strm.next_out=0,this.strm.avail_out=t,Dn(this.strm,0)<0)throw new Error("zlib inflate failed");if(this.strm.next_out!=t)throw new Error("Incomplete zlib block");return new Uint8Array(this.strm.output.buffer,0,this.strm.next_out)}reset(){Bs(this.strm)}}var Qn=4,Di=0,Qi=1,Bn=2;function Me(i){for(var t=i.length;--t>=0;)i[t]=0}var Pn=0,In=1,Un=2,Nn=3,Hn=258,$t=29,Ye=256,Oe=Ye+1+$t,Fe=30,Jt=19,Is=2*Oe+1,ye=15,Mt=16,zn=7,Us=256,Ns=16,Hs=17,zs=18,jt=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],dt=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],On=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Os=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Vn=512,ue=new Array((Oe+2)*2);Me(ue);var He=new Array(Fe*2);Me(He);var Ve=new Array(Vn);Me(Ve);var Ge=new Array(Hn-Nn+1);Me(Ge);var ei=new Array($t);Me(ei);var wt=new Array(Fe);Me(wt);function Lt(i,t,e,s,n){this.static_tree=i,this.extra_bits=t,this.extra_base=e,this.elems=s,this.max_length=n,this.has_stree=i&&i.length}var Vs,Gs,Ws;function Rt(i,t){this.dyn_tree=i,this.max_code=0,this.stat_desc=t}function js(i){return i<256?Ve[i]:Ve[256+(i>>>7)]}function vt(i,t){i.pending_buf[i.pending++]=t&255,i.pending_buf[i.pending++]=t>>>8&255}function ee(i,t,e){i.bi_valid>Mt-e?(i.bi_buf|=t<>Mt-i.bi_valid,i.bi_valid+=e-Mt):(i.bi_buf|=t<>>=1,e<<=1;while(--t>0);return e>>>1}function Gn(i,t){var e=t.dyn_tree,s=t.max_code,n=t.stat_desc.static_tree,r=t.stat_desc.has_stree,a=t.stat_desc.extra_bits,h=t.stat_desc.extra_base,c=t.stat_desc.max_length,o,l,u,x,d,k,C=0;for(x=0;x<=ye;x++)i.bl_count[x]=0;for(e[i.heap[i.heap_max]*2+1]=0,o=i.heap_max+1;oc&&(x=c,C++),e[l*2+1]=x,!(l>s)&&(i.bl_count[x]++,d=0,l>=h&&(d=a[l-h]),k=e[l*2],i.opt_len+=k*(x+d),r&&(i.static_len+=k*(n[l*2+1]+d)));if(C!==0){do{for(x=c-1;i.bl_count[x]===0;)x--;i.bl_count[x]--,i.bl_count[x+1]+=2,i.bl_count[c]--,C-=2}while(C>0);for(x=c;x!==0;x--)for(l=i.bl_count[x];l!==0;)u=i.heap[--o],!(u>s)&&(e[u*2+1]!==x&&(i.opt_len+=(x-e[u*2+1])*e[u*2],e[u*2+1]=x),l--)}}function Zs(i,t,e){var s=new Array(ye+1),n=0,r,a;for(r=1;r<=ye;r++)s[r]=n=n+e[r-1]<<1;for(a=0;a<=t;a++){var h=i[a*2+1];h!==0&&(i[a*2]=Ys(s[h]++,h))}}function Wn(){var i,t,e,s,n,r=new Array(ye+1);for(e=0,s=0;s<$t-1;s++)for(ei[s]=e,i=0;i<1<>=7;s8?vt(i,i.bi_buf):i.bi_valid>0&&(i.pending_buf[i.pending++]=i.bi_buf),i.bi_buf=0,i.bi_valid=0}function jn(i,t,e,s){$s(i),vt(i,e),vt(i,~e),fe(i.pending_buf,i.window,t,e,i.pending),i.pending+=e}function Bi(i,t,e,s){var n=t*2,r=e*2;return i[n]>1;a>=1;a--)Dt(i,e,a);o=r;do a=i.heap[1],i.heap[1]=i.heap[i.heap_len--],Dt(i,e,1),h=i.heap[1],i.heap[--i.heap_max]=a,i.heap[--i.heap_max]=h,e[o*2]=e[a*2]+e[h*2],i.depth[o]=(i.depth[a]>=i.depth[h]?i.depth[a]:i.depth[h])+1,e[a*2+1]=e[h*2+1]=o,i.heap[1]=o++,Dt(i,e,1);while(i.heap_len>=2);i.heap[--i.heap_max]=i.heap[1],Gn(i,t),Zs(e,c,i.bl_count)}function Ii(i,t,e){var s,n=-1,r,a=t[1],h=0,c=7,o=4;for(a===0&&(c=138,o=3),t[(e+1)*2+1]=65535,s=0;s<=e;s++)r=a,a=t[(s+1)*2+1],!(++h=3&&i.bl_tree[Os[t]*2+1]===0;t--);return i.opt_len+=3*(t+1)+5+5+4,t}function Zn(i,t,e,s){var n;for(ee(i,t-257,5),ee(i,e-1,5),ee(i,s-4,4),n=0;n>>=1)if(t&1&&i.dyn_ltree[e*2]!==0)return Di;if(i.dyn_ltree[18]!==0||i.dyn_ltree[20]!==0||i.dyn_ltree[26]!==0)return Qi;for(e=32;e0?(i.strm.data_type===Bn&&(i.strm.data_type=qn(i)),Yt(i,i.l_desc),Yt(i,i.d_desc),a=Yn(i),n=i.opt_len+3+7>>>3,r=i.static_len+3+7>>>3,r<=n&&(n=r)):n=r=e+5,e+4<=n&&t!==-1?Js(i,t,e,s):i.strategy===Qn||r===n?(ee(i,(In<<1)+(s?1:0),3),Pi(i,ue,He)):(ee(i,(Un<<1)+(s?1:0),3),Zn(i,i.l_desc.max_code+1,i.d_desc.max_code+1,a+1),Pi(i,i.dyn_ltree,i.dyn_dtree)),qs(i),s&&$s(i)}function ge(i,t,e){return i.pending_buf[i.d_buf+i.last_lit*2]=t>>>8&255,i.pending_buf[i.d_buf+i.last_lit*2+1]=t&255,i.pending_buf[i.l_buf+i.last_lit]=e&255,i.last_lit++,t===0?i.dyn_ltree[e*2]++:(i.matches++,t--,i.dyn_ltree[(Ge[e]+Ye+1)*2]++,i.dyn_dtree[js(t)*2]++),i.last_lit===i.lit_bufsize-1}const er={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},Ze=0,Hi=3,We=4,tr=5,Ae=0,Te=-2,Qt=-5,ir=-1,sr=1,rt=2,nr=3,rr=4,ar=0,or=2,ti=8;var hr=15,lr=8,cr=29,_r=256,Zt=_r+1+cr,fr=30,dr=19,ur=2*Zt+1,xr=15,I=3,xe=258,ne=xe+I+1,pr=32,en=42,zi=69,Bt=73,Pt=91,It=103,Ie=113,at=666,W=1,qe=2,je=3,mt=4,gr=3;function Ke(i,t){return i.msg=er[t],t}function Oi(i){return(i<<1)-(i>4?9:0)}function me(i){for(var t=i.length;--t>=0;)i[t]=0}function we(i){var t=i.state,e=t.pending;e>i.avail_out&&(e=i.avail_out),e!==0&&(fe(i.output,t.pending_buf,t.pending_out,e,i.next_out),i.next_out+=e,t.pending_out+=e,i.total_out+=e,i.avail_out-=e,t.pending-=e,t.pending===0&&(t.pending_out=0))}function J(i,t){Jn(i,i.block_start>=0?i.block_start:-1,i.strstart-i.block_start,t),i.block_start=i.strstart,we(i.strm)}function z(i,t){i.pending_buf[i.pending++]=t}function Ut(i,t){i.pending_buf[i.pending++]=t>>>8&255,i.pending_buf[i.pending++]=t&255}function br(i,t,e,s){var n=i.avail_in;return n>s&&(n=s),n===0?0:(i.avail_in-=n,fe(t,i.input,i.next_in,n,e),i.state.wrap===1?i.adler=Wt(i.adler,t,n,e):i.state.wrap===2&&(i.adler=V(i.adler)),i.next_in+=n,i.total_in+=n,n)}function tn(i,t){var e=i.max_chain_length,s=i.strstart,n,r,a=i.prev_length,h=i.nice_match,c=i.strstart>i.w_size-ne?i.strstart-(i.w_size-ne):0,o=i.window,l=i.w_mask,u=i.prev,x=i.strstart+xe,d=o[s+a-1],k=o[s+a];i.prev_length>=i.good_match&&(e>>=2),h>i.lookahead&&(h=i.lookahead);do if(n=t,!(o[n+a]!==k||o[n+a-1]!==d||o[n]!==o[s]||o[++n]!==o[s+1])){s+=2,n++;do;while(o[++s]===o[++n]&&o[++s]===o[++n]&&o[++s]===o[++n]&&o[++s]===o[++n]&&o[++s]===o[++n]&&o[++s]===o[++n]&&o[++s]===o[++n]&&o[++s]===o[++n]&&sa){if(i.match_start=t,a=r,r>=h)break;d=o[s+a-1],k=o[s+a]}}while((t=u[t&l])>c&&--e!==0);return a<=i.lookahead?a:i.lookahead}function $e(i){var t=i.w_size,e,s,n,r,a;do{if(r=i.window_size-i.lookahead-i.strstart,i.strstart>=t+(t-ne)){fe(i.window,i.window,t,t,0),i.match_start-=t,i.strstart-=t,i.block_start-=t,s=i.hash_size,e=s;do n=i.head[--e],i.head[e]=n>=t?n-t:0;while(--s);s=t,e=s;do n=i.prev[--e],i.prev[e]=n>=t?n-t:0;while(--s);r+=t}if(i.strm.avail_in===0)break;if(s=br(i.strm,i.window,i.strstart+i.lookahead,r),i.lookahead+=s,i.lookahead+i.insert>=I)for(a=i.strstart-i.insert,i.ins_h=i.window[a],i.ins_h=(i.ins_h<i.pending_buf_size-5&&(e=i.pending_buf_size-5);;){if(i.lookahead<=1){if($e(i),i.lookahead===0&&t===Ze)return W;if(i.lookahead===0)break}i.strstart+=i.lookahead,i.lookahead=0;var s=i.block_start+e;if((i.strstart===0||i.strstart>=s)&&(i.lookahead=i.strstart-s,i.strstart=s,J(i,!1),i.strm.avail_out===0)||i.strstart-i.block_start>=i.w_size-ne&&(J(i,!1),i.strm.avail_out===0))return W}return i.insert=0,t===We?(J(i,!0),i.strm.avail_out===0?je:mt):(i.strstart>i.block_start&&(J(i,!1),i.strm.avail_out===0),W)}function Nt(i,t){for(var e,s;;){if(i.lookahead=I&&(i.ins_h=(i.ins_h<=I)if(s=ge(i,i.strstart-i.match_start,i.match_length-I),i.lookahead-=i.match_length,i.match_length<=i.max_lazy_match&&i.lookahead>=I){i.match_length--;do i.strstart++,i.ins_h=(i.ins_h<=I&&(i.ins_h=(i.ins_h<4096)&&(i.match_length=I-1)),i.prev_length>=I&&i.match_length<=i.prev_length){n=i.strstart+i.lookahead-I,s=ge(i,i.strstart-1-i.prev_match,i.prev_length-I),i.lookahead-=i.prev_length-1,i.prev_length-=2;do++i.strstart<=n&&(i.ins_h=(i.ins_h<=I&&i.strstart>0&&(n=i.strstart-1,s=a[n],s===a[++n]&&s===a[++n]&&s===a[++n])){r=i.strstart+xe;do;while(s===a[++n]&&s===a[++n]&&s===a[++n]&&s===a[++n]&&s===a[++n]&&s===a[++n]&&s===a[++n]&&s===a[++n]&&ni.lookahead&&(i.match_length=i.lookahead)}if(i.match_length>=I?(e=ge(i,1,i.match_length-I),i.lookahead-=i.match_length,i.strstart+=i.match_length,i.match_length=0):(e=ge(i,0,i.window[i.strstart]),i.lookahead--,i.strstart++),e&&(J(i,!1),i.strm.avail_out===0))return W}return i.insert=0,i.last_lit&&(J(i,!1),i.strm.avail_out===0)?W:qe}function mr(i,t){for(var e;!(i.lookahead===0&&($e(i),i.lookahead===0));)if(i.match_length=0,e=ge(i,0,i.window[i.strstart]),i.lookahead--,i.strstart++,e&&(J(i,!1),i.strm.avail_out===0))return W;return i.insert=0,i.last_lit&&(J(i,!1),i.strm.avail_out===0)?W:qe}function ae(i,t,e,s,n){this.good_length=i,this.max_lazy=t,this.nice_length=e,this.max_chain=s,this.func=n}var Xe;Xe=[new ae(0,0,0,0,wr),new ae(4,4,8,4,Nt),new ae(4,5,16,8,Nt),new ae(4,6,32,32,Nt),new ae(4,4,16,16,Ee),new ae(8,16,32,32,Ee),new ae(8,16,128,128,Ee),new ae(8,32,128,256,Ee),new ae(32,128,258,1024,Ee),new ae(32,258,258,4096,Ee)];function yr(i){i.window_size=2*i.w_size,me(i.head),i.max_lazy_match=Xe[i.level].max_lazy,i.good_match=Xe[i.level].good_length,i.nice_match=Xe[i.level].nice_length,i.max_chain_length=Xe[i.level].max_chain,i.strstart=0,i.block_start=0,i.lookahead=0,i.insert=0,i.match_length=i.prev_length=I-1,i.match_available=0,i.ins_h=0}function kr(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=ti,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new ie(ur*2),this.dyn_dtree=new ie((2*fr+1)*2),this.bl_tree=new ie((2*dr+1)*2),me(this.dyn_ltree),me(this.dyn_dtree),me(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new ie(xr+1),this.heap=new ie(2*Zt+1),me(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new ie(2*Zt+1),me(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Sr(i){var t;return!i||!i.state?Ke(i,Te):(i.total_in=i.total_out=0,i.data_type=or,t=i.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?en:Ie,i.adler=t.wrap===2?0:1,t.last_flush=Ze,$n(t),Ae)}function Cr(i){var t=Sr(i);return t===Ae&&yr(i.state),t}function Er(i,t,e,s,n,r){if(!i)return Te;var a=1;if(t===ir&&(t=6),t<0||t>9||r<0||r>rr)return Ke(i,Te);var h=new kr;return i.state=h,h.strm=i,h.wrap=a,h.gzhead=null,h.w_bits=s,h.w_size=1<tr||t<0)return i?Ke(i,Te):Te;if(s=i.state,!i.output||!i.input&&i.avail_in!==0||s.status===at&&t!==We)return Ke(i,i.avail_out===0?Qt:Te);if(s.strm=i,e=s.last_flush,s.last_flush=t,s.status===en)if(s.wrap===2)i.adler=0,z(s,31),z(s,139),z(s,8),s.gzhead?(z(s,(s.gzhead.text?1:0)+(s.gzhead.hcrc?2:0)+(s.gzhead.extra?4:0)+(s.gzhead.name?8:0)+(s.gzhead.comment?16:0)),z(s,s.gzhead.time&255),z(s,s.gzhead.time>>8&255),z(s,s.gzhead.time>>16&255),z(s,s.gzhead.time>>24&255),z(s,s.level===9?2:s.strategy>=rt||s.level<2?4:0),z(s,s.gzhead.os&255),s.gzhead.extra&&s.gzhead.extra.length&&(z(s,s.gzhead.extra.length&255),z(s,s.gzhead.extra.length>>8&255)),s.gzhead.hcrc&&(i.adler=V(i.adler,s.pending_buf,s.pending)),s.gzindex=0,s.status=zi):(z(s,0),z(s,0),z(s,0),z(s,0),z(s,0),z(s,s.level===9?2:s.strategy>=rt||s.level<2?4:0),z(s,gr),s.status=Ie);else{var a=ti+(s.w_bits-8<<4)<<8,h=-1;s.strategy>=rt||s.level<2?h=0:s.level<6?h=1:s.level===6?h=2:h=3,a|=h<<6,s.strstart!==0&&(a|=pr),a+=31-a%31,s.status=Ie,Ut(s,a),s.strstart!==0&&(Ut(s,i.adler>>>16),Ut(s,i.adler&65535)),i.adler=1}if(s.status===zi)if(s.gzhead.extra){for(n=s.pending;s.gzindex<(s.gzhead.extra.length&65535)&&!(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>n&&(i.adler=V(i.adler,s.pending_buf,s.pending-n)),we(i),n=s.pending,s.pending===s.pending_buf_size));)z(s,s.gzhead.extra[s.gzindex]&255),s.gzindex++;s.gzhead.hcrc&&s.pending>n&&(i.adler=V(i.adler,s.pending_buf,s.pending-n)),s.gzindex===s.gzhead.extra.length&&(s.gzindex=0,s.status=Bt)}else s.status=Bt;if(s.status===Bt)if(s.gzhead.name){n=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>n&&(i.adler=V(i.adler,s.pending_buf,s.pending-n)),we(i),n=s.pending,s.pending===s.pending_buf_size)){r=1;break}s.gzindexn&&(i.adler=V(i.adler,s.pending_buf,s.pending-n)),r===0&&(s.gzindex=0,s.status=Pt)}else s.status=Pt;if(s.status===Pt)if(s.gzhead.comment){n=s.pending;do{if(s.pending===s.pending_buf_size&&(s.gzhead.hcrc&&s.pending>n&&(i.adler=V(i.adler,s.pending_buf,s.pending-n)),we(i),n=s.pending,s.pending===s.pending_buf_size)){r=1;break}s.gzindexn&&(i.adler=V(i.adler,s.pending_buf,s.pending-n)),r===0&&(s.status=It)}else s.status=It;if(s.status===It&&(s.gzhead.hcrc?(s.pending+2>s.pending_buf_size&&we(i),s.pending+2<=s.pending_buf_size&&(z(s,i.adler&255),z(s,i.adler>>8&255),i.adler=0,s.status=Ie)):s.status=Ie),s.pending!==0){if(we(i),i.avail_out===0)return s.last_flush=-1,Ae}else if(i.avail_in===0&&Oi(t)<=Oi(e)&&t!==We)return Ke(i,Qt);if(s.status===at&&i.avail_in!==0)return Ke(i,Qt);if(i.avail_in!==0||s.lookahead!==0||s.status!==at){var c=s.strategy===rt?mr(s):s.strategy===nr?vr(s,t):Xe[s.level].func(s,t);if((c===je||c===mt)&&(s.status=at),c===W||c===je)return i.avail_out===0&&(s.last_flush=-1),Ae;if(c===qe&&(Js(s,0,0,!1),me(s.head),s.lookahead===0&&(s.strstart=0,s.block_start=0,s.insert=0),we(i),i.avail_out===0))return s.last_flush=-1,Ae}return Ae}class Kr{constructor(){this.strm=new Ps,this.chunkSize=1024*10*10,this.outputBuffer=new Uint8Array(this.chunkSize),this.windowBits=5,Ar(this.strm,this.windowBits)}deflate(t){this.strm.input=t,this.strm.avail_in=this.strm.input.length,this.strm.next_in=0,this.strm.output=this.outputBuffer,this.strm.avail_out=this.chunkSize,this.strm.next_out=0;let e=Vi(this.strm,Hi),s=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);if(e<0)throw new Error("zlib deflate failed");if(this.strm.avail_in>0){let n=[s],r=s.length;do{if(this.strm.output=new Uint8Array(this.chunkSize),this.strm.next_out=0,this.strm.avail_out=this.chunkSize,e=Vi(this.strm,Hi),e<0)throw new Error("zlib deflate failed");let c=new Uint8Array(this.strm.output.buffer,0,this.strm.next_out);r+=c.length,n.push(c)}while(this.strm.avail_in>0);let a=new Uint8Array(r),h=0;for(let c=0;c=32&&i<=255)return i;const t=Xr[i];return t!==void 0?t:16777216|i}},Gi={8:"Backspace",9:"Tab",10:"NumpadClear",13:"Enter",16:"ShiftLeft",17:"ControlLeft",18:"AltLeft",19:"Pause",20:"CapsLock",21:"Lang1",25:"Lang2",27:"Escape",28:"Convert",29:"NonConvert",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",44:"PrintScreen",45:"Insert",46:"Delete",47:"Help",48:"Digit0",49:"Digit1",50:"Digit2",51:"Digit3",52:"Digit4",53:"Digit5",54:"Digit6",55:"Digit7",56:"Digit8",57:"Digit9",91:"MetaLeft",92:"MetaRight",93:"ContextMenu",95:"Sleep",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",108:"NumpadDecimal",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",124:"F13",125:"F14",126:"F15",127:"F16",128:"F17",129:"F18",130:"F19",131:"F20",132:"F21",133:"F22",134:"F23",135:"F24",144:"NumLock",145:"ScrollLock",166:"BrowserBack",167:"BrowserForward",168:"BrowserRefresh",169:"BrowserStop",170:"BrowserSearch",171:"BrowserFavorites",172:"BrowserHome",173:"AudioVolumeMute",174:"AudioVolumeDown",175:"AudioVolumeUp",176:"MediaTrackNext",177:"MediaTrackPrevious",178:"MediaStop",179:"MediaPlayPause",180:"LaunchMail",181:"MediaSelect",182:"LaunchApp1",183:"LaunchApp2",225:"AltRight"},Wi={Backspace:"Backspace",AltLeft:"Alt",AltRight:"Alt",CapsLock:"CapsLock",ContextMenu:"ContextMenu",ControlLeft:"Control",ControlRight:"Control",Enter:"Enter",MetaLeft:"Meta",MetaRight:"Meta",ShiftLeft:"Shift",ShiftRight:"Shift",Tab:"Tab",Delete:"Delete",End:"End",Help:"Help",Home:"Home",Insert:"Insert",PageDown:"PageDown",PageUp:"PageUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",ArrowUp:"ArrowUp",NumLock:"NumLock",NumpadBackspace:"Backspace",NumpadClear:"Clear",Escape:"Escape",F1:"F1",F2:"F2",F3:"F3",F4:"F4",F5:"F5",F6:"F6",F7:"F7",F8:"F8",F9:"F9",F10:"F10",F11:"F11",F12:"F12",F13:"F13",F14:"F14",F15:"F15",F16:"F16",F17:"F17",F18:"F18",F19:"F19",F20:"F20",F21:"F21",F22:"F22",F23:"F23",F24:"F24",F25:"F25",F26:"F26",F27:"F27",F28:"F28",F29:"F29",F30:"F30",F31:"F31",F32:"F32",F33:"F33",F34:"F34",F35:"F35",PrintScreen:"PrintScreen",ScrollLock:"ScrollLock",Pause:"Pause",BrowserBack:"BrowserBack",BrowserFavorites:"BrowserFavorites",BrowserForward:"BrowserForward",BrowserHome:"BrowserHome",BrowserRefresh:"BrowserRefresh",BrowserSearch:"BrowserSearch",BrowserStop:"BrowserStop",Eject:"Eject",LaunchApp1:"LaunchMyComputer",LaunchApp2:"LaunchCalendar",LaunchMail:"LaunchMail",MediaPlayPause:"MediaPlay",MediaStop:"MediaStop",MediaTrackNext:"MediaTrackNext",MediaTrackPrevious:"MediaTrackPrevious",Power:"Power",Sleep:"Sleep",AudioVolumeDown:"AudioVolumeDown",AudioVolumeMute:"AudioVolumeMute",AudioVolumeUp:"AudioVolumeUp",WakeUp:"WakeUp"},be={};function v(i,t){if(t===void 0)throw new Error('Undefined keysym for key "'+i+'"');if(i in be)throw new Error('Duplicate entry for key "'+i+'"');be[i]=[t,t,t,t]}function yt(i,t,e){if(t===void 0)throw new Error('Undefined keysym for key "'+i+'"');if(e===void 0)throw new Error('Undefined keysym for key "'+i+'"');if(i in be)throw new Error('Duplicate entry for key "'+i+'"');be[i]=[t,t,e,t]}function U(i,t,e){if(t===void 0)throw new Error('Undefined keysym for key "'+i+'"');if(e===void 0)throw new Error('Undefined keysym for key "'+i+'"');if(i in be)throw new Error('Duplicate entry for key "'+i+'"');be[i]=[t,t,t,e]}yt("Alt",f.XK_Alt_L,f.XK_Alt_R);v("AltGraph",f.XK_ISO_Level3_Shift);v("CapsLock",f.XK_Caps_Lock);yt("Control",f.XK_Control_L,f.XK_Control_R);yt("Meta",f.XK_Super_L,f.XK_Super_R);v("NumLock",f.XK_Num_Lock);v("ScrollLock",f.XK_Scroll_Lock);yt("Shift",f.XK_Shift_L,f.XK_Shift_R);U("Enter",f.XK_Return,f.XK_KP_Enter);v("Tab",f.XK_Tab);U(" ",f.XK_space,f.XK_KP_Space);U("ArrowDown",f.XK_Down,f.XK_KP_Down);U("ArrowLeft",f.XK_Left,f.XK_KP_Left);U("ArrowRight",f.XK_Right,f.XK_KP_Right);U("ArrowUp",f.XK_Up,f.XK_KP_Up);U("End",f.XK_End,f.XK_KP_End);U("Home",f.XK_Home,f.XK_KP_Home);U("PageDown",f.XK_Next,f.XK_KP_Next);U("PageUp",f.XK_Prior,f.XK_KP_Prior);v("Backspace",f.XK_BackSpace);U("Clear",f.XK_Clear,f.XK_KP_Begin);v("Copy",f.XF86XK_Copy);v("Cut",f.XF86XK_Cut);U("Delete",f.XK_Delete,f.XK_KP_Delete);U("Insert",f.XK_Insert,f.XK_KP_Insert);v("Paste",f.XF86XK_Paste);v("Redo",f.XK_Redo);v("Undo",f.XK_Undo);v("Cancel",f.XK_Cancel);v("ContextMenu",f.XK_Menu);v("Escape",f.XK_Escape);v("Execute",f.XK_Execute);v("Find",f.XK_Find);v("Help",f.XK_Help);v("Pause",f.XK_Pause);v("Select",f.XK_Select);v("ZoomIn",f.XF86XK_ZoomIn);v("ZoomOut",f.XF86XK_ZoomOut);v("BrightnessDown",f.XF86XK_MonBrightnessDown);v("BrightnessUp",f.XF86XK_MonBrightnessUp);v("Eject",f.XF86XK_Eject);v("LogOff",f.XF86XK_LogOff);v("Power",f.XF86XK_PowerOff);v("PowerOff",f.XF86XK_PowerDown);v("PrintScreen",f.XK_Print);v("Hibernate",f.XF86XK_Hibernate);v("Standby",f.XF86XK_Standby);v("WakeUp",f.XF86XK_WakeUp);v("AllCandidates",f.XK_MultipleCandidate);v("Alphanumeric",f.XK_Eisu_toggle);v("CodeInput",f.XK_Codeinput);v("Compose",f.XK_Multi_key);v("Convert",f.XK_Henkan);v("GroupFirst",f.XK_ISO_First_Group);v("GroupLast",f.XK_ISO_Last_Group);v("GroupNext",f.XK_ISO_Next_Group);v("GroupPrevious",f.XK_ISO_Prev_Group);v("NonConvert",f.XK_Muhenkan);v("PreviousCandidate",f.XK_PreviousCandidate);v("SingleCandidate",f.XK_SingleCandidate);v("HangulMode",f.XK_Hangul);v("HanjaMode",f.XK_Hangul_Hanja);v("JunjaMode",f.XK_Hangul_Jeonja);v("Eisu",f.XK_Eisu_toggle);v("Hankaku",f.XK_Hankaku);v("Hiragana",f.XK_Hiragana);v("HiraganaKatakana",f.XK_Hiragana_Katakana);v("KanaMode",f.XK_Kana_Shift);v("KanjiMode",f.XK_Kanji);v("Katakana",f.XK_Katakana);v("Romaji",f.XK_Romaji);v("Zenkaku",f.XK_Zenkaku);v("ZenkakuHankaku",f.XK_Zenkaku_Hankaku);v("F1",f.XK_F1);v("F2",f.XK_F2);v("F3",f.XK_F3);v("F4",f.XK_F4);v("F5",f.XK_F5);v("F6",f.XK_F6);v("F7",f.XK_F7);v("F8",f.XK_F8);v("F9",f.XK_F9);v("F10",f.XK_F10);v("F11",f.XK_F11);v("F12",f.XK_F12);v("F13",f.XK_F13);v("F14",f.XK_F14);v("F15",f.XK_F15);v("F16",f.XK_F16);v("F17",f.XK_F17);v("F18",f.XK_F18);v("F19",f.XK_F19);v("F20",f.XK_F20);v("F21",f.XK_F21);v("F22",f.XK_F22);v("F23",f.XK_F23);v("F24",f.XK_F24);v("F25",f.XK_F25);v("F26",f.XK_F26);v("F27",f.XK_F27);v("F28",f.XK_F28);v("F29",f.XK_F29);v("F30",f.XK_F30);v("F31",f.XK_F31);v("F32",f.XK_F32);v("F33",f.XK_F33);v("F34",f.XK_F34);v("F35",f.XK_F35);v("Close",f.XF86XK_Close);v("MailForward",f.XF86XK_MailForward);v("MailReply",f.XF86XK_Reply);v("MailSend",f.XF86XK_Send);v("MediaFastForward",f.XF86XK_AudioForward);v("MediaPause",f.XF86XK_AudioPause);v("MediaPlay",f.XF86XK_AudioPlay);v("MediaRecord",f.XF86XK_AudioRecord);v("MediaRewind",f.XF86XK_AudioRewind);v("MediaStop",f.XF86XK_AudioStop);v("MediaTrackNext",f.XF86XK_AudioNext);v("MediaTrackPrevious",f.XF86XK_AudioPrev);v("New",f.XF86XK_New);v("Open",f.XF86XK_Open);v("Print",f.XK_Print);v("Save",f.XF86XK_Save);v("SpellCheck",f.XF86XK_Spell);v("AudioVolumeDown",f.XF86XK_AudioLowerVolume);v("AudioVolumeUp",f.XF86XK_AudioRaiseVolume);v("AudioVolumeMute",f.XF86XK_AudioMute);v("MicrophoneVolumeMute",f.XF86XK_AudioMicMute);v("LaunchApplication1",f.XF86XK_MyComputer);v("LaunchApplication2",f.XF86XK_Calculator);v("LaunchCalendar",f.XF86XK_Calendar);v("LaunchMail",f.XF86XK_Mail);v("LaunchMediaPlayer",f.XF86XK_AudioMedia);v("LaunchMusicPlayer",f.XF86XK_Music);v("LaunchPhone",f.XF86XK_Phone);v("LaunchScreenSaver",f.XF86XK_ScreenSaver);v("LaunchSpreadsheet",f.XF86XK_Excel);v("LaunchWebBrowser",f.XF86XK_WWW);v("LaunchWebCam",f.XF86XK_WebCam);v("LaunchWordProcessor",f.XF86XK_Word);v("BrowserBack",f.XF86XK_Back);v("BrowserFavorites",f.XF86XK_Favorites);v("BrowserForward",f.XF86XK_Forward);v("BrowserHome",f.XF86XK_HomePage);v("BrowserRefresh",f.XF86XK_Refresh);v("BrowserSearch",f.XF86XK_Search);v("BrowserStop",f.XF86XK_Stop);v("Dimmer",f.XF86XK_BrightnessAdjust);v("MediaAudioTrack",f.XF86XK_AudioCycleTrack);v("RandomToggle",f.XF86XK_AudioRandomPlay);v("SplitScreenToggle",f.XF86XK_SplitScreen);v("Subtitle",f.XF86XK_Subtitle);v("VideoModeNext",f.XF86XK_Next_VMode);U("=",f.XK_equal,f.XK_KP_Equal);U("+",f.XK_plus,f.XK_KP_Add);U("-",f.XK_minus,f.XK_KP_Subtract);U("*",f.XK_asterisk,f.XK_KP_Multiply);U("/",f.XK_slash,f.XK_KP_Divide);U(".",f.XK_period,f.XK_KP_Decimal);U(",",f.XK_comma,f.XK_KP_Separator);U("0",f.XK_0,f.XK_KP_0);U("1",f.XK_1,f.XK_KP_1);U("2",f.XK_2,f.XK_KP_2);U("3",f.XK_3,f.XK_KP_3);U("4",f.XK_4,f.XK_KP_4);U("5",f.XK_5,f.XK_KP_5);U("6",f.XK_6,f.XK_KP_6);U("7",f.XK_7,f.XK_KP_7);U("8",f.XK_8,f.XK_KP_8);U("9",f.XK_9,f.XK_KP_9);function ze(i){if(i.code){switch(i.code){case"OSLeft":return"MetaLeft";case"OSRight":return"MetaRight"}return i.code}if(i.keyCode in Gi){let t=Gi[i.keyCode];if(Pe()&&t==="ContextMenu"&&(t="MetaRight"),i.location===2)switch(t){case"ShiftLeft":return"ShiftRight";case"ControlLeft":return"ControlRight";case"AltLeft":return"AltRight"}if(i.location===3)switch(t){case"Delete":return"NumpadDecimal";case"Insert":return"Numpad0";case"End":return"Numpad1";case"ArrowDown":return"Numpad2";case"PageDown":return"Numpad3";case"ArrowLeft":return"Numpad4";case"ArrowRight":return"Numpad6";case"Home":return"Numpad7";case"ArrowUp":return"Numpad8";case"PageUp":return"Numpad9";case"Enter":return"NumpadEnter"}return t}return"Unidentified"}function Tr(i){if(i.key!==void 0){switch(i.key){case"OS":return"Meta";case"LaunchMyComputer":return"LaunchApplication1";case"LaunchCalculator":return"LaunchApplication2"}switch(i.key){case"UIKeyInputUpArrow":return"ArrowUp";case"UIKeyInputDownArrow":return"ArrowDown";case"UIKeyInputLeftArrow":return"ArrowLeft";case"UIKeyInputRightArrow":return"ArrowRight";case"UIKeyInputEscape":return"Escape"}return i.key==="\0"&&i.code==="NumpadDecimal"?"Delete":i.key}const t=ze(i);return t in Wi?Wi[t]:i.charCode?String.fromCharCode(i.charCode):"Unidentified"}function Mr(i){const t=Tr(i);if(t==="Unidentified")return null;if(t in be){let s=i.location;if(t==="Meta"&&s===0&&(s=2),t==="Clear"&&s===3&&ze(i)==="NumLock"&&(s=0),(s===void 0||s>3)&&(s=0),t==="Meta"){let n=ze(i);if(n==="AltLeft")return f.XK_Meta_L;if(n==="AltRight")return f.XK_Meta_R}if(t==="Clear"&&ze(i)==="NumLock")return f.XK_Num_Lock;if(ft())switch(t){case"Zenkaku":case"Hankaku":return f.XK_Zenkaku_Hankaku;case"Romaji":case"KanaMode":return f.XK_Romaji}return be[t][s]}if(t.length!==1)return null;const e=t.charCodeAt();return e?Fr.lookup(e):null}class Lr{constructor(t){this._target=t||null,this._keyDownList={},this._altGrArmed=!1,this._eventHandlers={keyup:this._handleKeyUp.bind(this),keydown:this._handleKeyDown.bind(this),blur:this._allKeysUp.bind(this)},this.onkeyevent=()=>{}}_sendKeyEvent(t,e,s){if(s)this._keyDownList[e]=t;else{if(!(e in this._keyDownList))return;delete this._keyDownList[e]}M("onkeyevent "+(s?"down":"up")+", keysym: "+t,", code: "+e),this.onkeyevent(t,e,s)}_getKeyCode(t){const e=ze(t);if(e!=="Unidentified")return e;if(t.keyCode&&t.keyCode!==229)return"Platform"+t.keyCode;if(t.keyIdentifier){if(t.keyIdentifier.substr(0,2)!=="U+")return t.keyIdentifier;const s=parseInt(t.keyIdentifier.substr(2),16);return"Platform"+String.fromCharCode(s).toUpperCase().charCodeAt()}return"Unidentified"}_handleKeyDown(t){const e=this._getKeyCode(t);let s=Mr(t);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),e==="AltRight"&&t.timeStamp-this._altGrCtrlTime<50?s=f.XK_ISO_Level3_Shift:this._sendKeyEvent(f.XK_Control_L,"ControlLeft",!0)),e==="Unidentified"){s&&(this._sendKeyEvent(s,e,!0),this._sendKeyEvent(s,e,!1)),Se(t);return}if(Pe()||tt())switch(s){case f.XK_Super_L:s=f.XK_Alt_L;break;case f.XK_Super_R:s=f.XK_Super_L;break;case f.XK_Alt_L:s=f.XK_Mode_switch;break;case f.XK_Alt_R:s=f.XK_ISO_Level3_Shift;break}if(e in this._keyDownList&&(s=this._keyDownList[e]),(Pe()||tt())&&t.metaKey&&e!=="MetaLeft"&&e!=="MetaRight"){this._sendKeyEvent(s,e,!0),this._sendKeyEvent(s,e,!1),Se(t);return}if((Pe()||tt())&&e==="CapsLock"){this._sendKeyEvent(f.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(f.XK_Caps_Lock,"CapsLock",!1),Se(t);return}const n=[f.XK_Zenkaku_Hankaku,f.XK_Eisu_toggle,f.XK_Katakana,f.XK_Hiragana,f.XK_Romaji];if(ft()&&n.includes(s)){this._sendKeyEvent(s,e,!0),this._sendKeyEvent(s,e,!1),Se(t);return}if(Se(t),e==="ControlLeft"&&ft()&&!("ControlLeft"in this._keyDownList)){this._altGrArmed=!0,this._altGrTimeout=setTimeout(this._handleAltGrTimeout.bind(this),100),this._altGrCtrlTime=t.timeStamp;return}this._sendKeyEvent(s,e,!0)}_handleKeyUp(t){Se(t);const e=this._getKeyCode(t);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(f.XK_Control_L,"ControlLeft",!0)),(Pe()||tt())&&e==="CapsLock"){this._sendKeyEvent(f.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(f.XK_Caps_Lock,"CapsLock",!1);return}this._sendKeyEvent(this._keyDownList[e],e,!1),ft()&&(e==="ShiftLeft"||e==="ShiftRight")&&("ShiftRight"in this._keyDownList&&this._sendKeyEvent(this._keyDownList.ShiftRight,"ShiftRight",!1),"ShiftLeft"in this._keyDownList&&this._sendKeyEvent(this._keyDownList.ShiftLeft,"ShiftLeft",!1))}_handleAltGrTimeout(){this._altGrArmed=!1,clearTimeout(this._altGrTimeout),this._sendKeyEvent(f.XK_Control_L,"ControlLeft",!0)}_allKeysUp(){M(">> Keyboard.allKeysUp");for(let t in this._keyDownList)this._sendKeyEvent(this._keyDownList[t],t,!1);M("<< Keyboard.allKeysUp")}grab(){this._target.addEventListener("keydown",this._eventHandlers.keydown),this._target.addEventListener("keyup",this._eventHandlers.keyup),window.addEventListener("blur",this._eventHandlers.blur)}ungrab(){this._target.removeEventListener("keydown",this._eventHandlers.keydown),this._target.removeEventListener("keyup",this._eventHandlers.keyup),window.removeEventListener("blur",this._eventHandlers.blur),this._allKeysUp()}}const oe=0,ji=1,Yi=2,Zi=4,qi=8,Ht=16,Re=32,De=64,zt=127,$i=50,Rr=90,Ji=250,Dr=1e3,Qr=1e3,Br=50;class Pr{constructor(){this._target=null,this._state=zt,this._tracked=[],this._ignored=[],this._waitingRelease=!1,this._releaseStart=0,this._longpressTimeoutId=null,this._twoTouchTimeoutId=null,this._boundEventHandler=this._eventHandler.bind(this)}attach(t){this.detach(),this._target=t,this._target.addEventListener("touchstart",this._boundEventHandler),this._target.addEventListener("touchmove",this._boundEventHandler),this._target.addEventListener("touchend",this._boundEventHandler),this._target.addEventListener("touchcancel",this._boundEventHandler)}detach(){this._target&&(this._stopLongpressTimeout(),this._stopTwoTouchTimeout(),this._target.removeEventListener("touchstart",this._boundEventHandler),this._target.removeEventListener("touchmove",this._boundEventHandler),this._target.removeEventListener("touchend",this._boundEventHandler),this._target.removeEventListener("touchcancel",this._boundEventHandler),this._target=null)}_eventHandler(t){let e;switch(t.stopPropagation(),t.preventDefault(),t.type){case"touchstart":e=this._touchStart;break;case"touchmove":e=this._touchMove;break;case"touchend":case"touchcancel":e=this._touchEnd;break}for(let s=0;s0&&Date.now()-this._tracked[0].started>Ji){this._state=oe,this._ignored.push(t);return}if(this._waitingRelease){this._state=oe,this._ignored.push(t);return}switch(this._tracked.push({id:t,started:Date.now(),active:!0,firstX:e,firstY:s,lastX:e,lastY:s,angle:0}),this._tracked.length){case 1:this._startLongpressTimeout();break;case 2:this._state&=-26,this._stopLongpressTimeout();break;case 3:this._state&=-99;break;default:this._state=oe}}_touchMove(t,e,s){let n=this._tracked.find(h=>h.id===t);if(n===void 0)return;n.lastX=e,n.lastY=s;let r=e-n.firstX,a=s-n.firstY;if((n.firstX!==n.lastX||n.firstY!==n.lastY)&&(n.angle=Math.atan2(a,r)*180/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(r,a)<$i)return;if(this._state&=-24,this._stopLongpressTimeout(),this._tracked.length!==1&&(this._state&=~qi),this._tracked.length!==2&&(this._state&=-97),this._tracked.length===2){let h=this._tracked.find(o=>o.id!==t);if(Math.hypot(h.firstX-h.lastX,h.firstY-h.lastY)>$i){let o=Math.abs(n.angle-h.angle);o=Math.abs((o+180)%360-180),o>Rr?this._state&=~Re:this._state&=~De,this._isTwoTouchTimeoutRunning()&&this._stopTwoTouchTimeout()}else this._isTwoTouchTimeoutRunning()||this._startTwoTouchTimeout()}if(!this._hasDetectedGesture())return;this._pushEvent("gesturestart")}this._pushEvent("gesturemove")}_touchEnd(t,e,s){if(this._ignored.indexOf(t)!==-1){this._ignored.splice(this._ignored.indexOf(t),1),this._ignored.length===0&&this._tracked.length===0&&(this._state=zt,this._waitingRelease=!1);return}if(!this._hasDetectedGesture()&&this._isTwoTouchTimeoutRunning()&&(this._stopTwoTouchTimeout(),this._state=oe),!this._hasDetectedGesture()&&(this._state&=-105,this._state&=~Ht,this._stopLongpressTimeout(),!this._waitingRelease))switch(this._releaseStart=Date.now(),this._waitingRelease=!0,this._tracked.length){case 1:this._state&=-7;break;case 2:this._state&=-6;break}if(this._waitingRelease){Date.now()-this._releaseStart>Ji&&(this._state=oe),this._tracked.some(r=>Date.now()-r.started>Dr)&&(this._state=oe);let n=this._tracked.find(r=>r.id===t);if(n.active=!1,this._hasDetectedGesture())this._pushEvent("gesturestart");else if(this._state!==oe)return}this._hasDetectedGesture()&&this._pushEvent("gestureend");for(let n=0;nt.active))}_startLongpressTimeout(){this._stopLongpressTimeout(),this._longpressTimeoutId=setTimeout(()=>this._longpressTimeout(),Qr)}_stopLongpressTimeout(){clearTimeout(this._longpressTimeoutId),this._longpressTimeoutId=null}_longpressTimeout(){if(this._hasDetectedGesture())throw new Error("A longpress gesture failed, conflict with a different gesture");this._state=Ht,this._pushEvent("gesturestart")}_startTwoTouchTimeout(){this._stopTwoTouchTimeout(),this._twoTouchTimeoutId=setTimeout(()=>this._twoTouchTimeout(),Br)}_stopTwoTouchTimeout(){clearTimeout(this._twoTouchTimeoutId),this._twoTouchTimeoutId=null}_isTwoTouchTimeoutRunning(){return this._twoTouchTimeoutId!==null}_twoTouchTimeout(){if(this._tracked.length===0)throw new Error("A pinch or two drag gesture failed, no tracked touches");let t=this._getAverageMovement(),e=Math.abs(t.x),s=Math.abs(t.y),n=this._getAverageDistance(),r=Math.abs(Math.hypot(n.first.x,n.first.y)-Math.hypot(n.last.x,n.last.y));s{this._target&&(e=document.elementFromPoint(t.clientX,t.clientY),this._updateVisibility(e))},0)}_showCursor(){this._canvas.style.visibility==="hidden"&&(this._canvas.style.visibility="")}_hideCursor(){this._canvas.style.visibility!=="hidden"&&(this._canvas.style.visibility="hidden")}_shouldShowCursor(t){return t?t===this._target?!0:!(!this._target.contains(t)||window.getComputedStyle(t).cursor!=="none"):!1}_updateVisibility(t){this._captureIsActive()&&(t=document.captureElement),this._shouldShowCursor(t)?this._showCursor():this._hideCursor()}_updatePosition(){this._canvas.style.left=this._position.x+"px",this._canvas.style.top=this._position.y+"px"}_captureIsActive(){return document.captureElement&&document.documentElement.contains(document.captureElement)}}const Ot=40*1024*1024,ot={CONNECTING:"connecting",OPEN:"open",CLOSING:"closing",CLOSED:"closed"},ht={CONNECTING:[WebSocket.CONNECTING,ot.CONNECTING],OPEN:[WebSocket.OPEN,ot.OPEN],CLOSING:[WebSocket.CLOSING,ot.CLOSING],CLOSED:[WebSocket.CLOSED,ot.CLOSED]},es=["send","close","binaryType","onerror","onmessage","onopen","protocol","readyState"];class Ur{constructor(){this._websocket=null,this._rQi=0,this._rQlen=0,this._rQbufferSize=1024*1024*4,this._rQ=null,this._sQbufferSize=1024*10,this._sQlen=0,this._sQ=null,this._eventHandlers={message:()=>{},open:()=>{},close:()=>{},error:()=>{}}}get readyState(){let t;return this._websocket===null?"unused":(t=this._websocket.readyState,ht.CONNECTING.includes(t)?"connecting":ht.OPEN.includes(t)?"open":ht.CLOSING.includes(t)?"closing":ht.CLOSED.includes(t)?"closed":"unknown")}get sQ(){return this._sQ}get rQ(){return this._rQ}get rQi(){return this._rQi}set rQi(t){this._rQi=t}get rQlen(){return this._rQlen-this._rQi}rQpeek8(){return this._rQ[this._rQi]}rQskipBytes(t){this._rQi+=t}rQshift8(){return this._rQshift(1)}rQshift16(){return this._rQshift(2)}rQshift32(){return this._rQshift(4)}_rQshift(t){let e=0;for(let s=t-1;s>=0;s--)e+=this._rQ[this._rQi++]<"u"&&(t=this.rQlen);let e="";for(let s=0;s"u"&&(t=this.rQlen),this._rQi+=t,new Uint8Array(this._rQ.buffer,this._rQi-t,t)}rQshiftTo(t,e){e===void 0&&(e=this.rQlen),t.set(new Uint8Array(this._rQ.buffer,this._rQi,e)),this._rQi+=e}rQslice(t,e=this.rQlen){return new Uint8Array(this._rQ.buffer,this._rQi+t,e-t)}rQwait(t,e,s){if(this.rQlen0&&this.readyState==="open"&&(this._websocket.send(this._encodeMessage()),this._sQlen=0)}send(t){this._sQ.set(t,this._sQlen),this._sQlen+=t.length,this.flush()}sendString(t){this.send(t.split("").map(e=>e.charCodeAt(0)))}off(t){this._eventHandlers[t]=()=>{}}on(t,e){this._eventHandlers[t]=e}_allocateBuffers(){this._rQ=new Uint8Array(this._rQbufferSize),this._sQ=new Uint8Array(this._sQbufferSize)}init(){this._allocateBuffers(),this._rQi=0,this._websocket=null}open(t,e){this.attach(new WebSocket(t,e))}attach(t){this.init();const e=[...Object.keys(t),...Object.getOwnPropertyNames(Object.getPrototypeOf(t))];for(let s=0;s{M(">> WebSock.onopen"),this._websocket.protocol&&$("Server choose sub-protocol: "+this._websocket.protocol),this._eventHandlers.open(),M("<< WebSock.onopen")},this._websocket.onclose=s=>{M(">> WebSock.onclose"),this._eventHandlers.close(s),M("<< WebSock.onclose")},this._websocket.onerror=s=>{M(">> WebSock.onerror: "+s),this._eventHandlers.error(s),M("<< WebSock.onerror: "+s)}}close(){this._websocket&&((this.readyState==="connecting"||this.readyState==="open")&&($("Closing WebSocket connection"),this._websocket.close()),this._websocket.onmessage=()=>{})}_encodeMessage(){return new Uint8Array(this._sQ.buffer,0,this._sQlen)}_expandCompactRQ(t){const e=(this._rQlen-this._rQi+t)*8,s=this._rQbufferSizeOt&&(this._rQbufferSize=Ot,this._rQbufferSize-this.rQlenthis._rQbufferSize-this._rQlen&&this._expandCompactRQ(e.length),this._rQ.set(e,this._rQlen),this._rQlen+=e.length}_recvMessage(t){this._DecodeMessage(t.data),this.rQlen>0?(this._eventHandlers.message(),this._rQlen==this._rQi&&(this._rQlen=0,this._rQi=0)):M("Ignoring empty message")}}const ts=[13,16,10,23,0,4,2,27,14,5,20,9,22,18,11,3,25,7,15,6,26,19,12,1,40,51,30,36,46,54,29,39,50,44,32,47,43,48,38,55,33,52,45,41,49,35,28,31],Nr=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],_=0;let p,g,m,b,w,y;p=65536;g=1<<24;m=p|g;b=4;w=1024;y=b|w;const is=[m|w,_|_,p|_,m|y,m|b,p|y,_|b,p|_,_|w,m|w,m|y,_|w,g|y,m|b,g|_,_|b,_|y,g|w,g|w,p|w,p|w,m|_,m|_,g|y,p|b,g|b,g|b,p|b,_|_,_|y,p|y,g|_,p|_,m|y,_|b,m|_,m|w,g|_,g|_,_|w,m|b,p|_,p|w,g|b,_|w,_|b,g|y,p|y,m|y,p|b,m|_,g|y,g|b,_|y,p|y,m|w,_|y,g|w,g|w,_|_,p|b,p|w,_|_,m|b];p=1<<20;g=1<<31;m=p|g;b=32;w=32768;y=b|w;const ss=[m|y,g|w,_|w,p|y,p|_,_|b,m|b,g|y,g|b,m|y,m|w,g|_,g|w,p|_,_|b,m|b,p|w,p|b,g|y,_|_,g|_,_|w,p|y,m|_,p|b,g|b,_|_,p|w,_|y,m|w,m|_,_|y,_|_,p|y,m|b,p|_,g|y,m|_,m|w,_|w,m|_,g|w,_|b,m|y,p|y,_|b,_|w,g|_,_|y,m|w,p|_,g|b,p|b,g|y,g|b,p|b,p|w,_|_,g|w,_|y,g|_,m|b,m|y,p|w];p=1<<17;g=1<<27;m=p|g;b=8;w=512;y=b|w;const ns=[_|y,m|w,_|_,m|b,g|w,_|_,p|y,g|w,p|b,g|b,g|b,p|_,m|y,p|b,m|_,_|y,g|_,_|b,m|w,_|w,p|w,m|_,m|b,p|y,g|y,p|w,p|_,g|y,_|b,m|y,_|w,g|_,m|w,g|_,p|b,_|y,p|_,m|w,g|w,_|_,_|w,p|b,m|y,g|w,g|b,_|w,_|_,m|b,g|y,p|_,g|_,m|y,_|b,p|y,p|w,g|b,m|_,g|y,_|y,m|_,p|y,_|b,m|b,p|w];p=8192;g=1<<23;m=p|g;b=1;w=128;y=b|w;const rs=[m|b,p|y,p|y,_|w,m|w,g|y,g|b,p|b,_|_,m|_,m|_,m|y,_|y,_|_,g|w,g|b,_|b,p|_,g|_,m|b,_|w,g|_,p|b,p|w,g|y,_|b,p|w,g|w,p|_,m|w,m|y,_|y,g|w,g|b,m|_,m|y,_|y,_|_,_|_,m|_,p|w,g|w,g|y,_|b,m|b,p|y,p|y,_|w,m|y,_|y,_|b,p|_,g|b,p|b,m|w,g|y,p|b,p|w,g|_,m|b,_|w,g|_,p|_,m|w];p=1<<25;g=1<<30;m=p|g;b=256;w=1<<19;y=b|w;const as=[_|b,p|y,p|w,m|b,_|w,_|b,g|_,p|w,g|y,_|w,p|b,g|y,m|b,m|w,_|y,g|_,p|_,g|w,g|w,_|_,g|b,m|y,m|y,p|b,m|w,g|b,_|_,m|_,p|y,p|_,m|_,_|y,_|w,m|b,_|b,p|_,g|_,p|w,m|b,g|y,p|b,g|_,m|w,p|y,g|y,_|b,p|_,m|w,m|y,_|y,m|_,m|y,p|w,_|_,g|w,m|_,_|y,p|b,g|b,_|w,_|_,g|w,p|y,g|b];p=1<<22;g=1<<29;m=p|g;b=16;w=16384;y=b|w;const os=[g|b,m|_,_|w,m|y,m|_,_|b,m|y,p|_,g|w,p|y,p|_,g|b,p|b,g|w,g|_,_|y,_|_,p|b,g|y,_|w,p|w,g|y,_|b,m|b,m|b,_|_,p|y,m|w,_|y,p|w,m|w,g|_,g|w,_|b,m|b,p|w,m|y,p|_,_|y,g|b,p|_,g|w,g|_,_|y,g|b,m|y,p|w,m|_,p|y,m|w,_|_,m|b,_|b,_|w,m|_,p|y,_|w,p|b,g|y,_|_,m|w,g|_,p|b,g|y];p=1<<21;g=1<<26;m=p|g;b=2;w=2048;y=b|w;const hs=[p|_,m|b,g|y,_|_,_|w,g|y,p|y,m|w,m|y,p|_,_|_,g|b,_|b,g|_,m|b,_|y,g|w,p|y,p|b,g|w,g|b,m|_,m|w,p|b,m|_,_|w,_|y,m|y,p|w,_|b,g|_,p|w,g|_,p|w,p|_,g|y,g|y,m|b,m|b,_|b,p|b,g|_,g|w,p|_,m|w,_|y,p|y,m|w,_|y,g|b,m|y,m|_,p|w,_|_,_|b,m|y,_|_,p|y,m|_,_|w,g|b,g|w,_|w,p|b];p=1<<18;g=1<<28;m=p|g;b=64;w=4096;y=b|w;const ls=[g|y,_|w,p|_,m|y,g|_,g|y,_|b,g|_,p|b,m|_,m|y,p|w,m|w,p|y,_|w,_|b,m|_,g|b,g|w,_|y,p|w,p|b,m|b,m|w,_|y,_|_,_|_,m|b,g|b,g|w,p|y,p|_,p|y,p|_,m|w,_|w,_|b,m|b,_|w,p|y,g|w,_|b,g|b,m|_,m|b,g|_,p|_,g|y,_|_,m|y,p|b,g|b,m|_,g|w,g|y,_|_,m|y,p|w,p|w,_|y,_|y,p|b,g|_,m|w];class cs{constructor(t){this.keys=[];const e=[],s=[],n=[];for(let r=0,a=56;r<56;++r,a-=8){a+=a<-5?65:a<-3?31:a<-1?63:a===27?35:0;const h=a&7;e[r]=(t[a>>>3]&1<>>10,this.keys[h]|=(o&4032)>>>6,++h,this.keys[h]=(c&258048)<<12,this.keys[h]|=(c&63)<<16,this.keys[h]|=(o&258048)>>>4,this.keys[h]|=o&63,++h}}enc8(t){const e=t.slice();let s=0,n,r,a;n=e[s++]<<24|e[s++]<<16|e[s++]<<8|e[s++],r=e[s++]<<24|e[s++]<<16|e[s++]<<8|e[s++],a=(n>>>4^r)&252645135,r^=a,n^=a<<4,a=(n>>>16^r)&65535,r^=a,n^=a<<16,a=(r>>>2^n)&858993459,n^=a,r^=a<<2,a=(r>>>8^n)&16711935,n^=a,r^=a<<8,r=r<<1|r>>>31&1,a=(n^r)&2863311530,n^=a,r^=a,n=n<<1|n>>>31&1;for(let h=0,c=0;h<8;++h){a=r<<28|r>>>4,a^=this.keys[c++];let o=hs[a&63];o|=as[a>>>8&63],o|=ns[a>>>16&63],o|=is[a>>>24&63],a=r^this.keys[c++],o|=ls[a&63],o|=os[a>>>8&63],o|=rs[a>>>16&63],o|=ss[a>>>24&63],n^=o,a=n<<28|n>>>4,a^=this.keys[c++],o=hs[a&63],o|=as[a>>>8&63],o|=ns[a>>>16&63],o|=is[a>>>24&63],a=n^this.keys[c++],o|=ls[a&63],o|=os[a>>>8&63],o|=rs[a>>>16&63],o|=ss[a>>>24&63],r^=o}for(r=r<<31|r>>>1,a=(n^r)&2863311530,n^=a,r^=a,n=n<<31|n>>>1,a=(n>>>8^r)&16711935,r^=a,n^=a<<8,a=(n>>>2^r)&858993459,r^=a,n^=a<<2,a=(r>>>16^n)&65535,n^=a,r^=a<<16,a=(r>>>4^n)&252645135,n^=a,r^=a<<4,a=[r,n],s=0;s<8;s++)e[s]=(a[s>>>2]>>>8*(3-s%4))%256,e[s]<0&&(e[s]+=256);return e}encrypt(t){return this.enc8(t.slice(0,8)).concat(this.enc8(t.slice(8,16)))}}const Hr={Again:57349,AltLeft:56,AltRight:57400,ArrowDown:57424,ArrowLeft:57419,ArrowRight:57421,ArrowUp:57416,AudioVolumeDown:57390,AudioVolumeMute:57376,AudioVolumeUp:57392,Backquote:41,Backslash:43,Backspace:14,BracketLeft:26,BracketRight:27,BrowserBack:57450,BrowserFavorites:57446,BrowserForward:57449,BrowserHome:57394,BrowserRefresh:57447,BrowserSearch:57445,BrowserStop:57448,CapsLock:58,Comma:51,ContextMenu:57437,ControlLeft:29,ControlRight:57373,Convert:121,Copy:57464,Cut:57404,Delete:57427,Digit0:11,Digit1:2,Digit2:3,Digit3:4,Digit4:5,Digit5:6,Digit6:7,Digit7:8,Digit8:9,Digit9:10,Eject:57469,End:57423,Enter:28,Equal:13,Escape:1,F1:59,F10:68,F11:87,F12:88,F13:93,F14:94,F15:95,F16:85,F17:57347,F18:57463,F19:57348,F2:60,F20:90,F21:116,F22:57465,F23:109,F24:111,F3:61,F4:62,F5:63,F6:64,F7:65,F8:66,F9:67,Find:57409,Help:57461,Hiragana:119,Home:57415,Insert:57426,IntlBackslash:86,IntlRo:115,IntlYen:125,KanaMode:112,Katakana:120,KeyA:30,KeyB:48,KeyC:46,KeyD:32,KeyE:18,KeyF:33,KeyG:34,KeyH:35,KeyI:23,KeyJ:36,KeyK:37,KeyL:38,KeyM:50,KeyN:49,KeyO:24,KeyP:25,KeyQ:16,KeyR:19,KeyS:31,KeyT:20,KeyU:22,KeyV:47,KeyW:17,KeyX:45,KeyY:21,KeyZ:44,Lang1:114,Lang2:113,Lang3:120,Lang4:119,Lang5:118,LaunchApp1:57451,LaunchApp2:57377,LaunchMail:57452,MediaPlayPause:57378,MediaSelect:57453,MediaStop:57380,MediaTrackNext:57369,MediaTrackPrevious:57360,MetaLeft:57435,MetaRight:57436,Minus:12,NonConvert:123,NumLock:69,Numpad0:82,Numpad1:79,Numpad2:80,Numpad3:81,Numpad4:75,Numpad5:76,Numpad6:77,Numpad7:71,Numpad8:72,Numpad9:73,NumpadAdd:78,NumpadComma:126,NumpadDecimal:83,NumpadDivide:57397,NumpadEnter:57372,NumpadEqual:89,NumpadMultiply:55,NumpadParenLeft:57462,NumpadParenRight:57467,NumpadSubtract:74,Open:100,PageDown:57425,PageUp:57417,Paste:101,Pause:57414,Period:52,Power:57438,PrintScreen:84,Props:57350,Quote:40,ScrollLock:70,Semicolon:39,ShiftLeft:42,ShiftRight:54,Slash:53,Sleep:57439,Space:57,Suspend:57381,Tab:15,Undo:57351,WakeUp:57443},D={encodingRaw:0,encodingCopyRect:1,encodingRRE:2,encodingHextile:5,encodingTight:7,encodingZRLE:16,encodingTightPNG:-260,encodingJPEG:21,pseudoEncodingQualityLevel0:-32,pseudoEncodingDesktopSize:-223,pseudoEncodingLastRect:-224,pseudoEncodingCursor:-239,pseudoEncodingQEMUExtendedKeyEvent:-258,pseudoEncodingDesktopName:-307,pseudoEncodingExtendedDesktopSize:-308,pseudoEncodingXvp:-309,pseudoEncodingFence:-312,pseudoEncodingContinuousUpdates:-313,pseudoEncodingCompressLevel0:-256,pseudoEncodingVMwareCursor:1464686180,pseudoEncodingExtendedClipboard:3231835598};class zr{constructor(){this._rawKey=null,this._ctrKey=null,this._cbcKey=null,this._zeroBlock=new Uint8Array(16),this._prefixBlock0=this._zeroBlock,this._prefixBlock1=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1]),this._prefixBlock2=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2])}async _encryptBlock(t){const e=await window.crypto.subtle.encrypt({name:"AES-CBC",iv:this._zeroBlock},this._cbcKey,t);return new Uint8Array(e).slice(0,16)}async _initCMAC(){const t=await this._encryptBlock(this._zeroBlock),e=new Uint8Array(16),s=t[0]>>>6;for(let r=0;r<15;r++)e[r]=t[r+1]>>6|t[r]<<2,t[r]=t[r+1]>>7|t[r]<<1;const n=[0,135,14,137];e[14]^=s>>>1,e[15]=t[15]<<2^n[s],t[15]=t[15]<<1^n[s>>1],this._k1=t,this._k2=e}async _encryptCTR(t,e){const s=await window.crypto.subtle.encrypt({name:"AES-CTR",counter:e,length:128},this._ctrKey,t);return new Uint8Array(s)}async _decryptCTR(t,e){const s=await window.crypto.subtle.decrypt({name:"AES-CTR",counter:e,length:128},this._ctrKey,t);return new Uint8Array(s)}async _computeCMAC(t,e){if(e.length!==16)return null;const s=Math.floor(t.length/16),n=Math.ceil(t.length/16),r=t.length-s*16,a=new Uint8Array((n+1)*16);if(a.set(e),a.set(t,16),r===0)for(let o=0;o<16;o++)a[s*16+o]^=this._k1[o];else{a[(s+1)*16+r]=128;for(let o=0;o<16;o++)a[(s+1)*16+o]^=this._k2[o]}let h=await window.crypto.subtle.encrypt({name:"AES-CBC",iv:this._zeroBlock},this._cbcKey,a);return h=new Uint8Array(h),h.slice(h.length-32,h.length-16)}async setKey(t){this._rawKey=t,this._ctrKey=await window.crypto.subtle.importKey("raw",t,{name:"AES-CTR"},!1,["encrypt","decrypt"]),this._cbcKey=await window.crypto.subtle.importKey("raw",t,{name:"AES-CBC"},!1,["encrypt","decrypt"]),await this._initCMAC()}async encrypt(t,e,s){const n=await this._computeCMAC(s,this._prefixBlock0),r=await this._encryptCTR(t,n),a=await this._computeCMAC(e,this._prefixBlock1),h=await this._computeCMAC(r,this._prefixBlock2);for(let o=0;o<16;o++)h[o]^=n[o]^a[o];const c=new Uint8Array(16+r.length);return c.set(r),c.set(h,r.length),c}async decrypt(t,e,s,n){const r=await this._computeCMAC(s,this._prefixBlock0),a=await this._computeCMAC(e,this._prefixBlock1),h=await this._computeCMAC(t,this._prefixBlock2);for(let o=0;o<16;o++)h[o]^=r[o]^a[o];if(h.length!==n.length)return null;for(let o=0;o>>8,t.length&255]),s=await this._cipher.encrypt(t,e,this._counter);for(let r=0;r<16&&this._counter[r]++===255;r++);const n=new Uint8Array(t.length+2+16);return n.set(e),n.set(s,2),n}async receiveMessage(t,e,s){const n=new Uint8Array([(t&65280)>>>8,t&255]),r=await this._cipher.decrypt(e,n,this._counter,s);for(let a=0;a<16&&this._counter[a]++===255;a++);return r}}class fs{constructor(t){this._key=null,this._keyLength=t,this._keyBytes=Math.ceil(t/8),this._n=null,this._e=null,this._d=null,this._nBigInt=null,this._eBigInt=null,this._dBigInt=null}_base64urlDecode(t){return t=t.replace(/-/g,"+").replace(/_/g,"/"),t=t.padEnd(Math.ceil(t.length/4)*4,"="),Ls.decode(t)}_u8ArrayToBigInt(t){let e="0x";for(let s=0;s0;)e%2n===1n&&(n=n*t%s),e=e/2n,t=t*t%s;return n}async generateKey(){this._key=await window.crypto.subtle.generateKey({name:"RSA-OAEP",modulusLength:this._keyLength,publicExponent:new Uint8Array([1,0,1]),hash:{name:"SHA-256"}},!0,["encrypt","decrypt"]);const t=await window.crypto.subtle.exportKey("jwk",this._key.privateKey);this._n=this._padArray(this._base64urlDecode(t.n),this._keyBytes),this._nBigInt=this._u8ArrayToBigInt(this._n),this._e=this._padArray(this._base64urlDecode(t.e),this._keyBytes),this._eBigInt=this._u8ArrayToBigInt(this._e),this._d=this._padArray(this._base64urlDecode(t.d),this._keyBytes),this._dBigInt=this._u8ArrayToBigInt(this._d)}setPublicKey(t,e){t.length!==this._keyBytes||e.length!==this._keyBytes||(this._n=new Uint8Array(this._keyBytes),this._e=new Uint8Array(this._keyBytes),this._n.set(t),this._e.set(e),this._nBigInt=this._u8ArrayToBigInt(this._n),this._eBigInt=this._u8ArrayToBigInt(this._e))}encrypt(t){if(t.length>this._keyBytes-11)return null;const e=new Uint8Array(this._keyBytes-t.length-3);window.crypto.getRandomValues(e);for(let a=0;a{const n=()=>!this._sock.rQwait("RA2",t);n()?e():(this._checkSock=()=>{n()&&(e(),this._checkSock=null,this._sockReject=null)},this._sockReject=s)})}_waitApproveKeyAsync(){return new Promise((t,e)=>{this._approveServerResolve=t,this._approveServerReject=e})}_waitCredentialsAsync(t){const e=()=>t===1&&this._getCredentials().username!==void 0&&this._getCredentials().password!==void 0?!0:t===2&&this._getCredentials().password!==void 0;return new Promise((s,n)=>{e()?s():(this._checkCredentials=()=>{e()&&(s(),this._checkCredentials=null,this._credentialsReject=null)},this._credentialsReject=n)})}checkInternalEvents(){this._checkSock!==null&&this._checkSock(),this._checkCredentials!==null&&this._checkCredentials()}approveServer(){this._approveServerResolve!==null&&(this._approveServerResolve(),this._approveServerResolve=null)}disconnect(){this._sockReject!==null&&(this._sockReject(new Error("disconnect normally")),this._sockReject=null),this._credentialsReject!==null&&(this._credentialsReject(new Error("disconnect normally")),this._credentialsReject=null),this._approveServerReject!==null&&(this._approveServerReject(new Error("disconnect normally")),this._approveServerReject=null)}async negotiateRA2neAuthAsync(){this._hasStarted=!0,await this._waitSockAsync(4);const t=this._sock.rQslice(0,4),e=this._sock.rQshift32();if(e<1024)throw new Error("RA2: server public key is too short: "+e);if(e>8192)throw new Error("RA2: server public key is too long: "+e);const s=Math.ceil(e/8);await this._waitSockAsync(s*2);const n=this._sock.rQshiftBytes(s),r=this._sock.rQshiftBytes(s),a=new fs(e);a.setPublicKey(n,r);const h=new Uint8Array(4+s*2);h.set(t),h.set(n,4),h.set(r,4+s),this.dispatchEvent(new CustomEvent("serververification",{detail:{type:"RSA",publickey:h}})),await this._waitApproveKeyAsync();const c=2048,o=Math.ceil(c/8),l=new fs(c);await l.generateKey();const u=l.n,x=l.e,d=new Uint8Array(4+o*2);d[0]=(c&4278190080)>>>24,d[1]=(c&16711680)>>>16,d[2]=(c&65280)>>>8,d[3]=c&255,d.set(u,4),d.set(x,4+o),this._sock.send(d);const k=new Uint8Array(16);window.crypto.getRandomValues(k);const C=a.encrypt(k),A=new Uint8Array(2+s);if(A[0]=(s&65280)>>>8,A[1]=s&255,A.set(C,2),this._sock.send(A),await this._waitSockAsync(2),this._sock.rQshift16()!==o)throw new Error("RA2: wrong encrypted message length");const K=this._sock.rQshiftBytes(o),T=l.decrypt(K);if(T===null||T.length!==16)throw new Error("RA2: corrupted server encrypted random");let X=new Uint8Array(32),S=new Uint8Array(32);X.set(T),X.set(k,16),S.set(k),S.set(T,16),X=await window.crypto.subtle.digest("SHA-1",X),X=new Uint8Array(X).slice(0,16),S=await window.crypto.subtle.digest("SHA-1",S),S=new Uint8Array(S).slice(0,16);const L=new _s;await L.setKey(X);const N=new _s;await N.setKey(S);let E=new Uint8Array(8+s*2+o*2),R=new Uint8Array(8+s*2+o*2);if(E.set(h),E.set(d,4+s*2),R.set(d),R.set(h,4+o*2),E=await window.crypto.subtle.digest("SHA-1",E),R=await window.crypto.subtle.digest("SHA-1",R),E=new Uint8Array(E),R=new Uint8Array(R),this._sock.send(await L.makeMessage(R)),await this._waitSockAsync(38),this._sock.rQshift16()!==20)throw new Error("RA2: wrong server hash");const B=await N.receiveMessage(20,this._sock.rQshiftBytes(20),this._sock.rQshiftBytes(16));if(B===null)throw new Error("RA2: failed to authenticate the message");for(let G=0;G<20;G++)if(B[G]!==E[G])throw new Error("RA2: wrong server hash");if(await this._waitSockAsync(19),this._sock.rQshift16()!==1)throw new Error("RA2: wrong subtype");let F=await N.receiveMessage(1,this._sock.rQshiftBytes(1),this._sock.rQshiftBytes(16));if(F===null)throw new Error("RA2: failed to authenticate the message");if(F=F[0],F===1)(this._getCredentials().username===void 0||this._getCredentials().password===void 0)&&this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}}));else if(F===2)this._getCredentials().password===void 0&&this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["password"]}}));else throw new Error("RA2: wrong subtype");await this._waitCredentialsAsync(F);let P;F===1?P=ce(this._getCredentials().username).slice(0,255):P="";const te=ce(this._getCredentials().password).slice(0,255),re=new Uint8Array(P.length+te.length+2);re[0]=P.length,re[P.length+1]=te.length;for(let G=0;G>2);for(let e=0;e>5]|=(255&i.charCodeAt(e/8))<>5]>>>e%32&255);return t}function Yr(i,t){i[t>>5]|=128<>>9<<4)]=t;let e=1732584193,s=-271733879,n=-1732584194,r=271733878;for(let a=0;a>16)+(t>>16)+(e>>16)<<16|65535&e}function Zr(i,t){return i<>>32-t}class qr{constructor(){this._lines=0}decodeRect(t,e,s,n,r,a,h){if(s===0||n===0)return!0;this._lines===0&&(this._lines=n);const c=h==8?1:4,o=s*c;if(r.rQwait("RAW",o))return!1;const l=e+(n-this._lines),u=Math.min(this._lines,Math.floor(r.rQlen/o)),x=s*u;let d=r.rQ,k=r.rQi;if(h==8){const C=new Uint8Array(x*4);for(let A=0;A>0&3)*255/3,C[A*4+1]=(d[k+A]>>2&3)*255/3,C[A*4+2]=(d[k+A]>>4&3)*255/3,C[A*4+3]=255;d=C,k=0}for(let C=0;C0)}}class $r{decodeRect(t,e,s,n,r,a,h){if(r.rQwait("COPYRECT",4))return!1;let c=r.rQshift16(),o=r.rQshift16();return s===0||n===0||a.copyImage(c,o,t,e,s,n),!0}}class Jr{constructor(){this._subrects=0}decodeRect(t,e,s,n,r,a,h){if(this._subrects===0){if(r.rQwait("RRE",8))return!1;this._subrects=r.rQshift32();let c=r.rQshiftBytes(4);a.fillRect(t,e,s,n,c)}for(;this._subrects>0;){if(r.rQwait("RRE",12))return!1;let c=r.rQshiftBytes(4),o=r.rQshift16(),l=r.rQshift16(),u=r.rQshift16(),x=r.rQshift16();a.fillRect(t+o,e+l,u,x,c),this._subrects--}return!0}}class ea{constructor(){this._tiles=0,this._lastsubencoding=0,this._tileBuffer=new Uint8Array(256*4)}decodeRect(t,e,s,n,r,a,h){for(this._tiles===0&&(this._tilesX=Math.ceil(s/16),this._tilesY=Math.ceil(n/16),this._totalTiles=this._tilesX*this._tilesY,this._tiles=this._totalTiles);this._tiles>0;){let c=1;if(r.rQwait("HEXTILE",c))return!1;let o=r.rQ,l=r.rQi,u=o[l];if(u>30)throw new Error("Illegal hextile subencoding (subencoding: "+u+")");const x=this._totalTiles-this._tiles,d=x%this._tilesX,k=Math.floor(x/this._tilesX),C=t+d*16,A=e+k*16,K=Math.min(16,t+s-C),T=Math.min(16,e+n-A);if(u&1)c+=K*T*4;else if(u&2&&(c+=4),u&4&&(c+=4),u&8){if(c++,r.rQwait("HEXTILE",c))return!1;let X=o[l+c-1];u&16?c+=X*6:c+=X*2}if(r.rQwait("HEXTILE",c))return!1;if(l++,u===0)this._lastsubencoding&1?M(" Ignoring blank after RAW"):a.fillRect(C,A,K,T,this._background);else if(u&1){let X=K*T;for(let S=0;S>4,R=N&15,B=o[l];l++;const F=(B>>4)+1,P=(B&15)+1;this._subTile(E,R,F,P,L)}}this._finishTile(a)}r.rQi=l,this._lastsubencoding=u,this._tiles--}return!0}_startTile(t,e,s,n,r){this._tileX=t,this._tileY=e,this._tileW=s,this._tileH=n;const a=r[0],h=r[1],c=r[2],o=this._tileBuffer;for(let l=0;l>o&1&&(this._zlibs[o].reset(),$("Reset zlib stream "+o));this._ctl=this._ctl>>4}let c;if(this._ctl===8)c=this._fillRect(t,e,s,n,r,a,h);else if(this._ctl===9)c=this._jpegRect(t,e,s,n,r,a,h);else if(this._ctl===10)c=this._pngRect(t,e,s,n,r,a,h);else if((this._ctl&8)==0)c=this._basicRect(this._ctl,t,e,s,n,r,a,h);else throw new Error("Illegal tight compression received (ctl: "+this._ctl+")");return c&&(this._ctl=null),c}_fillRect(t,e,s,n,r,a,h){if(r.rQwait("TIGHT",3))return!1;const c=r.rQi,o=r.rQ;return a.fillRect(t,e,s,n,[o[c],o[c+1],o[c+2]],!1),r.rQskipBytes(3),!0}_jpegRect(t,e,s,n,r,a,h){let c=this._readData(r);return c===null?!1:(a.imageRect(t,e,s,n,"image/jpeg",c),!0)}_pngRect(t,e,s,n,r,a,h){throw new Error("PNG received in standard Tight rect")}_basicRect(t,e,s,n,r,a,h,c){if(this._filter===null)if(t&4){if(a.rQwait("TIGHT",1))return!1;this._filter=a.rQshift8()}else this._filter=0;let o=t&3,l;switch(this._filter){case 0:l=this._copyFilter(o,e,s,n,r,a,h,c);break;case 1:l=this._paletteFilter(o,e,s,n,r,a,h,c);break;case 2:l=this._gradientFilter(o,e,s,n,r,a,h,c);break;default:throw new Error("Illegal tight filter received (ctl: "+this._filter+")")}return l&&(this._filter=null),l}_copyFilter(t,e,s,n,r,a,h,c){const o=n*r*3;let l;if(o===0)return!0;if(o<12){if(a.rQwait("TIGHT",o))return!1;l=a.rQshiftBytes(o)}else{if(l=this._readData(a),l===null)return!1;this._zlibs[t].setInput(l),l=this._zlibs[t].inflate(o),this._zlibs[t].setInput(null)}let u=new Uint8Array(n*r*4);for(let x=0,d=0;x=0;C--)x=(u*s+k*8+7-C)*4,d=(r[u*o+k]>>C&1)*3,c[x]=a[d],c[x+1]=a[d+1],c[x+2]=a[d+2],c[x+3]=255;for(let C=7;C>=8-s%8;C--)x=(u*s+k*8+7-C)*4,d=(r[u*o+k]>>C&1)*3,c[x]=a[d],c[x+1]=a[d+1],c[x+2]=a[d+2],c[x+3]=255}h.blitImage(t,e,s,n,c,0,!1)}_paletteRect(t,e,s,n,r,a,h){const c=this._getScratchBuffer(s*n*4),o=s*n*4;for(let l=0,u=0;l=2&&k<=16){const C=this._decodePaletteTile(k,d,x,l);a.blitImage(u,o,x,l,C,0,!1)}else if(k===128){const C=this._decodeRLETile(d);a.blitImage(u,o,x,l,C,0,!1)}else if(k>=130&&k<=255){const C=this._decodeRLEPaletteTile(k-128,d);a.blitImage(u,o,x,l,C,0,!1)}else throw new Error("Unknown subencoding: "+k)}}return this._length=0,!0}_getBitsPerPixelInPalette(t){if(t<=2)return 1;if(t<=4)return 2;if(t<=16)return 4}_readPixels(t){let e=this._pixelBuffer;const s=this._inflator.inflate(3*t);for(let n=0,r=0;n>x&c;r[o]=a[k*4],r[o+1]=a[k*4+1],r[o+2]=a[k*4+2],r[o+3]=a[k*4+3],o+=4,x-=h}x<8-h&&u=128&&(a-=128,h=this._readRLELength()),a>t)throw new Error("Too big index in palette: "+a+", palette size: "+t);if(r+h>e)throw new Error("Too big rle length in palette mode: "+h+", allowed length is: "+(e-r));for(let c=0;cd[1]==192||d[1]==194);if(o==-1)throw new Error("Illegal JPEG image without SOF");let l=this._segments.slice(0,o);l=l.concat(this._quantTables.length?this._quantTables:this._cachedQuantTables),l.push(this._segments[o]),l=l.concat(this._huffmanTables.length?this._huffmanTables:this._cachedHuffmanTables,this._segments.slice(o+1));let u=0;for(let d=0;ds)return!1;if(t[n]!=255)throw new Error("Illegal JPEG marker received (byte: "+t[n]+")");const r=t[n+1];if(n+=2,r==217)return this._jpegLength=n,this._segments.push(t.slice(e,n)),!0;if(r==218){let c=!1;for(let o=n+3;o+1=208&&t[o+1]<=215)){n=o,c=!0;break}if(!c)return!1;this._segments.push(t.slice(e,n)),e=n;continue}else if(r>=208&&r<217||r==1){this._segments.push(t.slice(e,n)),e=n;continue}if(n+2>s)return!1;const a=(t[n]<<8)+t[n+1]-2;if(a<0)throw new Error("Illegal JPEG length received (length: "+a+")");if(n+=2,n+a>s)return!1;n+=a;const h=t.slice(e,n);r==196?this._huffmanTables.push(h):r==219&&this._quantTables.push(h),this._segments.push(h),e=n}}}const na=3,ra="rgb(40, 40, 40)",ds=17,us=50,xs=19,Be=75,de=50,aa=1e3,oa=50,ps=1,_t=2,gs=6,bs=16,Vt=19,ws=22,vs=30,ms=113,ys=129,ks=256,he=1,Ss=1<<24,ut=1<<25,Cs=1<<26,Ue=1<<27,xt=1<<28;class Q extends Ms{constructor(t,e,s){if(!t)throw new Error("Must specify target");if(!e)throw new Error("Must specify URL, WebSocket or RTCDataChannel");window.isSecureContext||O("noVNC requires a secure context (TLS). Expect crashes!"),super(),this._target=t,typeof e=="string"?this._url=e:(this._url=null,this._rawChannel=e),s=s||{},this._rfbCredentials=s.credentials||{},this._shared="shared"in s?!!s.shared:!0,this._repeaterID=s.repeaterID||"",this._wsProtocols=s.wsProtocols||[],this._rfbConnectionState="",this._rfbInitState="",this._rfbAuthScheme=-1,this._rfbCleanDisconnect=!0,this._rfbRSAAESAuthenticationState=null,this._rfbVersion=0,this._rfbMaxVersion=3.8,this._rfbTightVNC=!1,this._rfbVeNCryptState=0,this._rfbXvpVer=0,this._fbWidth=0,this._fbHeight=0,this._fbName="",this._capabilities={power:!1},this._supportsFence=!1,this._supportsContinuousUpdates=!1,this._enabledContinuousUpdates=!1,this._supportsSetDesktopSize=!1,this._screenID=0,this._screenFlags=0,this._qemuExtKeyEventSupported=!1,this._clipboardText=null,this._clipboardServerCapabilitiesActions={},this._clipboardServerCapabilitiesFormats={},this._sock=null,this._display=null,this._flushing=!1,this._keyboard=null,this._gestures=null,this._resizeObserver=null,this._disconnTimer=null,this._resizeTimeout=null,this._mouseMoveTimer=null,this._decoders={},this._FBU={rects:0,x:0,y:0,width:0,height:0,encoding:null},this._mousePos={},this._mouseButtonMask=0,this._mouseLastMoveTime=0,this._viewportDragging=!1,this._viewportDragPos={},this._viewportHasMoved=!1,this._accumulatedWheelDeltaX=0,this._accumulatedWheelDeltaY=0,this._gestureLastTapTime=null,this._gestureFirstDoubleTapEv=null,this._gestureLastMagnitudeX=0,this._gestureLastMagnitudeY=0,this._eventHandlers={focusCanvas:this._focusCanvas.bind(this),handleResize:this._handleResize.bind(this),handleMouse:this._handleMouse.bind(this),handleWheel:this._handleWheel.bind(this),handleGesture:this._handleGesture.bind(this),handleRSAAESCredentialsRequired:this._handleRSAAESCredentialsRequired.bind(this),handleRSAAESServerVerification:this._handleRSAAESServerVerification.bind(this)},M(">> RFB.constructor"),this._screen=document.createElement("div"),this._screen.style.display="flex",this._screen.style.width="100%",this._screen.style.height="100%",this._screen.style.overflow="auto",this._screen.style.background=ra,this._canvas=document.createElement("canvas"),this._canvas.style.margin="auto",this._canvas.style.outline="none",this._canvas.width=0,this._canvas.height=0,this._canvas.tabIndex=-1,this._screen.appendChild(this._canvas),this._cursor=new Ir,this._cursorImage=Q.cursors.none,this._decoders[D.encodingRaw]=new qr,this._decoders[D.encodingCopyRect]=new $r,this._decoders[D.encodingRRE]=new Jr,this._decoders[D.encodingHextile]=new ea,this._decoders[D.encodingTight]=new sn,this._decoders[D.encodingTightPNG]=new ta,this._decoders[D.encodingZRLE]=new ia,this._decoders[D.encodingJPEG]=new sa;try{this._display=new ln(this._canvas)}catch(n){throw O("Display exception: "+n),n}this._display.onflush=this._onFlush.bind(this),this._keyboard=new Lr(this._canvas),this._keyboard.onkeyevent=this._handleKeyEvent.bind(this),this._gestures=new Pr,this._sock=new Ur,this._sock.on("open",this._socketOpen.bind(this)),this._sock.on("close",this._socketClose.bind(this)),this._sock.on("message",this._handleMessage.bind(this)),this._sock.on("error",this._socketError.bind(this)),this._expectedClientWidth=null,this._expectedClientHeight=null,this._resizeObserver=new ResizeObserver(this._eventHandlers.handleResize),this._updateConnectionState("connecting"),M("<< RFB.constructor"),this.dragViewport=!1,this.focusOnClick=!0,this._viewOnly=!1,this._clipViewport=!1,this._clippingViewport=!1,this._scaleViewport=!1,this._resizeSession=!1,this._showDotCursor=!1,s.showDotCursor!==void 0&&(se("Specifying showDotCursor as a RFB constructor argument is deprecated"),this._showDotCursor=s.showDotCursor),this._qualityLevel=6,this._compressionLevel=2}get viewOnly(){return this._viewOnly}set viewOnly(t){this._viewOnly=t,(this._rfbConnectionState==="connecting"||this._rfbConnectionState==="connected")&&(t?this._keyboard.ungrab():this._keyboard.grab())}get capabilities(){return this._capabilities}get clippingViewport(){return this._clippingViewport}_setClippingViewport(t){t!==this._clippingViewport&&(this._clippingViewport=t,this.dispatchEvent(new CustomEvent("clippingviewport",{detail:this._clippingViewport})))}get touchButton(){return 0}set touchButton(t){se("Using old API!")}get clipViewport(){return this._clipViewport}set clipViewport(t){this._clipViewport=t,this._updateClip()}get scaleViewport(){return this._scaleViewport}set scaleViewport(t){this._scaleViewport=t,t&&this._clipViewport&&this._updateClip(),this._updateScale(),!t&&this._clipViewport&&this._updateClip()}get resizeSession(){return this._resizeSession}set resizeSession(t){this._resizeSession=t,t&&this._requestRemoteResize()}get showDotCursor(){return this._showDotCursor}set showDotCursor(t){this._showDotCursor=t,this._refreshCursor()}get background(){return this._screen.style.background}set background(t){this._screen.style.background=t}get qualityLevel(){return this._qualityLevel}set qualityLevel(t){if(!Number.isInteger(t)||t<0||t>9){O("qualityLevel must be an integer between 0 and 9");return}this._qualityLevel!==t&&(this._qualityLevel=t,this._rfbConnectionState==="connected"&&this._sendEncodings())}get compressionLevel(){return this._compressionLevel}set compressionLevel(t){if(!Number.isInteger(t)||t<0||t>9){O("compressionLevel must be an integer between 0 and 9");return}this._compressionLevel!==t&&(this._compressionLevel=t,this._rfbConnectionState==="connected"&&this._sendEncodings())}disconnect(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open"),this._rfbRSAAESAuthenticationState!==null&&this._rfbRSAAESAuthenticationState.disconnect()}approveServer(){this._rfbRSAAESAuthenticationState!==null&&this._rfbRSAAESAuthenticationState.approveServer()}sendCredentials(t){this._rfbCredentials=t,this._resumeAuthentication()}sendCtrlAltDel(){this._rfbConnectionState!=="connected"||this._viewOnly||($("Sending Ctrl-Alt-Del"),this.sendKey(f.XK_Control_L,"ControlLeft",!0),this.sendKey(f.XK_Alt_L,"AltLeft",!0),this.sendKey(f.XK_Delete,"Delete",!0),this.sendKey(f.XK_Delete,"Delete",!1),this.sendKey(f.XK_Alt_L,"AltLeft",!1),this.sendKey(f.XK_Control_L,"ControlLeft",!1))}machineShutdown(){this._xvpOp(1,2)}machineReboot(){this._xvpOp(1,3)}machineReset(){this._xvpOp(1,4)}sendKey(t,e,s){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(s===void 0){this.sendKey(t,e,!0),this.sendKey(t,e,!1);return}const n=Hr[e];if(this._qemuExtKeyEventSupported&&n)t=t||0,$("Sending key ("+(s?"down":"up")+"): keysym "+t+", scancode "+n),Q.messages.QEMUExtendedKeyEvent(this._sock,t,s,n);else{if(!t)return;$("Sending keysym ("+(s?"down":"up")+"): "+t),Q.messages.keyEvent(this._sock,t,s?1:0)}}focus(t){this._canvas.focus(t)}blur(){this._canvas.blur()}clipboardPasteFrom(t){if(!(this._rfbConnectionState!=="connected"||this._viewOnly))if(this._clipboardServerCapabilitiesFormats[he]&&this._clipboardServerCapabilitiesActions[Ue])this._clipboardText=t,Q.messages.extendedClipboardNotify(this._sock,[he]);else{let e,s,n;e=0;for(let r of t)e++;n=new Uint8Array(e),s=0;for(let r of t){let a=r.codePointAt(0);a>255&&(a=63),n[s++]=a}Q.messages.clientCutText(this._sock,n)}}getImageData(){return this._display.getImageData()}toDataURL(t,e){return this._display.toDataURL(t,e)}toBlob(t,e,s){return this._display.toBlob(t,e,s)}_connect(){if(M(">> RFB.connect"),this._url)$(`connecting to ${this._url}`),this._sock.open(this._url,this._wsProtocols);else{if($(`attaching ${this._rawChannel} to Websock`),this._sock.attach(this._rawChannel),this._sock.readyState==="closed")throw Error("Cannot use already closed WebSocket/RTCDataChannel");this._sock.readyState==="open"&&this._socketOpen()}this._target.appendChild(this._screen),this._gestures.attach(this._canvas),this._cursor.attach(this._canvas),this._refreshCursor(),this._resizeObserver.observe(this._screen),this._canvas.addEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.addEventListener("touchstart",this._eventHandlers.focusCanvas),this._canvas.addEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.addEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.addEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.addEventListener("click",this._eventHandlers.handleMouse),this._canvas.addEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.addEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.addEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.addEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.addEventListener("gestureend",this._eventHandlers.handleGesture),M("<< RFB.connect")}_disconnect(){M(">> RFB.disconnect"),this._cursor.detach(),this._canvas.removeEventListener("gesturestart",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gesturemove",this._eventHandlers.handleGesture),this._canvas.removeEventListener("gestureend",this._eventHandlers.handleGesture),this._canvas.removeEventListener("wheel",this._eventHandlers.handleWheel),this._canvas.removeEventListener("mousedown",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mouseup",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousemove",this._eventHandlers.handleMouse),this._canvas.removeEventListener("click",this._eventHandlers.handleMouse),this._canvas.removeEventListener("contextmenu",this._eventHandlers.handleMouse),this._canvas.removeEventListener("mousedown",this._eventHandlers.focusCanvas),this._canvas.removeEventListener("touchstart",this._eventHandlers.focusCanvas),this._resizeObserver.disconnect(),this._keyboard.ungrab(),this._gestures.detach(),this._sock.close();try{this._target.removeChild(this._screen)}catch(t){if(t.name!=="NotFoundError")throw t}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),M("<< RFB.disconnect")}_socketOpen(){this._rfbConnectionState==="connecting"&&this._rfbInitState===""?(this._rfbInitState="ProtocolVersion",M("Starting VNC handshake")):this._fail("Unexpected server connection while "+this._rfbConnectionState)}_socketClose(t){M("WebSocket on-close event");let e="";switch(t.code&&(e="(code: "+t.code,t.reason&&(e+=", reason: "+t.reason),e+=")"),this._rfbConnectionState){case"connecting":this._fail("Connection closed "+e);break;case"connected":this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected");break;case"disconnecting":this._updateConnectionState("disconnected");break;case"disconnected":this._fail("Unexpected server disconnect when already disconnected "+e);break;default:this._fail("Unexpected server disconnect before connecting "+e);break}this._sock.off("close"),this._rawChannel=null}_socketError(t){se("WebSocket on-error event")}_focusCanvas(t){this.focusOnClick&&this.focus({preventScroll:!0})}_setDesktopName(t){this._fbName=t,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}_saveExpectedClientSize(){this._expectedClientWidth=this._screen.clientWidth,this._expectedClientHeight=this._screen.clientHeight}_currentClientSize(){return[this._screen.clientWidth,this._screen.clientHeight]}_clientHasExpectedSize(){const[t,e]=this._currentClientSize();return t==this._expectedClientWidth&&e==this._expectedClientHeight}_handleResize(){this._clientHasExpectedSize()||(window.requestAnimationFrame(()=>{this._updateClip(),this._updateScale()}),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500)))}_updateClip(){const t=this._display.clipViewport;let e=this._clipViewport;if(this._scaleViewport&&(e=!1),t!==e&&(this._display.clipViewport=e),e){const s=this._screenSize();this._display.viewportChangeSize(s.w,s.h),this._fixScrollbars(),this._setClippingViewport(s.w{O("Disconnection timed out."),this._updateConnectionState("disconnected")},na*1e3);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}_fail(t){switch(this._rfbConnectionState){case"disconnecting":O("Failed when disconnecting: "+t);break;case"connected":O("Failed while connected: "+t);break;case"connecting":O("Failed when connecting: "+t);break;default:O("RFB failure: "+t);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}_setCapability(t,e){this._capabilities[t]=e,this.dispatchEvent(new CustomEvent("capabilities",{detail:{capabilities:this._capabilities}}))}_handleMessage(){if(this._sock.rQlen===0){se("handleMessage called on an empty receive queue");return}switch(this._rfbConnectionState){case"disconnected":O("Got data while disconnected");break;case"connected":for(;!(this._flushing||!this._normalMsg()||this._sock.rQlen===0););break;case"connecting":for(;this._rfbConnectionState==="connecting"&&this._initMsg(););break;default:O("Got data while in an invalid state");break}}_handleKeyEvent(t,e,s){this.sendKey(t,e,s)}_handleMouse(t){if(t.type==="click"&&t.target!==this._canvas||(t.stopPropagation(),t.preventDefault(),t.type==="click"||t.type==="contextmenu"))return;let e=Le(t.clientX,t.clientY,this._canvas);switch(t.type){case"mousedown":hn(this._canvas),this._handleMouseButton(e.x,e.y,!0,1<ni||Math.abs(n)>ni)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:t,y:e},this._display.viewportChangePos(s,n));return}if(this._mousePos={x:t,y:e},this._mouseMoveTimer==null){const s=Date.now()-this._mouseLastMoveTime;s>ds?(this._sendMouse(t,e,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(()=>{this._handleDelayedMouseMove()},ds-s)}}_handleDelayedMouseMove(){this._mouseMoveTimer=null,this._sendMouse(this._mousePos.x,this._mousePos.y,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()}_sendMouse(t,e,s){this._rfbConnectionState==="connected"&&(this._viewOnly||Q.messages.pointerEvent(this._sock,this._display.absX(t),this._display.absY(e),s))}_handleWheel(t){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;t.stopPropagation(),t.preventDefault();let e=Le(t.clientX,t.clientY,this._canvas),s=t.deltaX,n=t.deltaY;t.deltaMode!==0&&(s*=xs,n*=xs),this._accumulatedWheelDeltaX+=s,this._accumulatedWheelDeltaY+=n,Math.abs(this._accumulatedWheelDeltaX)>=us&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(e.x,e.y,!0,32),this._handleMouseButton(e.x,e.y,!1,32)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(e.x,e.y,!0,64),this._handleMouseButton(e.x,e.y,!1,64)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=us&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(e.x,e.y,!0,8),this._handleMouseButton(e.x,e.y,!1,8)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(e.x,e.y,!0,16),this._handleMouseButton(e.x,e.y,!1,16)),this._accumulatedWheelDeltaY=0)}_fakeMouseMove(t,e,s){this._handleMouseMove(e,s),this._cursor.move(t.detail.clientX,t.detail.clientY)}_handleTapEvent(t,e){let s=Le(t.detail.clientX,t.detail.clientY,this._canvas);if(this._gestureLastTapTime!==null&&Date.now()-this._gestureLastTapTimede;)this._handleMouseButton(s.x,s.y,!0,8),this._handleMouseButton(s.x,s.y,!1,8),this._gestureLastMagnitudeY+=de;for(;t.detail.magnitudeY-this._gestureLastMagnitudeY<-de;)this._handleMouseButton(s.x,s.y,!0,16),this._handleMouseButton(s.x,s.y,!1,16),this._gestureLastMagnitudeY-=de;for(;t.detail.magnitudeX-this._gestureLastMagnitudeX>de;)this._handleMouseButton(s.x,s.y,!0,32),this._handleMouseButton(s.x,s.y,!1,32),this._gestureLastMagnitudeX+=de;for(;t.detail.magnitudeX-this._gestureLastMagnitudeX<-de;)this._handleMouseButton(s.x,s.y,!0,64),this._handleMouseButton(s.x,s.y,!1,64),this._gestureLastMagnitudeX-=de;break;case"pinch":if(this._fakeMouseMove(t,s.x,s.y),e=Math.hypot(t.detail.magnitudeX,t.detail.magnitudeY),Math.abs(e-this._gestureLastMagnitudeX)>Be){for(this._handleKeyEvent(f.XK_Control_L,"ControlLeft",!0);e-this._gestureLastMagnitudeX>Be;)this._handleMouseButton(s.x,s.y,!0,8),this._handleMouseButton(s.x,s.y,!1,8),this._gestureLastMagnitudeX+=Be;for(;e-this._gestureLastMagnitudeX<-Be;)this._handleMouseButton(s.x,s.y,!0,16),this._handleMouseButton(s.x,s.y,!1,16),this._gestureLastMagnitudeX-=Be}this._handleKeyEvent(f.XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(t.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(t,s.x,s.y),this._handleMouseButton(s.x,s.y,!1,1);break;case"longpress":this._fakeMouseMove(t,s.x,s.y),this._handleMouseButton(s.x,s.y,!1,4);break}break}}_negotiateProtocolVersion(){if(this._sock.rQwait("version",12))return!1;const t=this._sock.rQshiftStr(12).substr(4,7);$("Server ProtocolVersion: "+t);let e=0;switch(t){case"000.000":e=1;break;case"003.003":case"003.006":this._rfbVersion=3.3;break;case"003.007":this._rfbVersion=3.7;break;case"003.008":case"003.889":case"004.000":case"004.001":case"005.000":this._rfbVersion=3.8;break;default:return this._fail("Invalid server version "+t)}if(e){let n="ID:"+this._repeaterID;for(;n.length<250;)n+="\0";return this._sock.sendString(n),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);const s="00"+parseInt(this._rfbVersion,10)+".00"+this._rfbVersion*10%10;this._sock.sendString("RFB "+s+` +`),M("Sent ProtocolVersion: "+s),this._rfbInitState="Security"}_isSupportedSecurityType(t){return[ps,_t,gs,bs,Vt,ws,vs,ms,ks].includes(t)}_negotiateSecurity(){if(this._rfbVersion>=3.7){const t=this._sock.rQshift8();if(this._sock.rQwait("security type",t,1))return!1;if(t===0)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,!0;const e=this._sock.rQshiftBytes(t);M("Server security types: "+e),this._rfbAuthScheme=-1;for(let s of e)if(this._isSupportedSecurityType(s)){this._rfbAuthScheme=s;break}if(this._rfbAuthScheme===-1)return this._fail("Unsupported security types (types: "+e+")");this._sock.send([this._rfbAuthScheme])}else{if(this._sock.rQwait("security scheme",4))return!1;if(this._rfbAuthScheme=this._sock.rQshift32(),this._rfbAuthScheme==0)return this._rfbInitState="SecurityReason",this._securityContext="authentication scheme",this._securityStatus=1,!0}return this._rfbInitState="Authentication",M("Authenticating using scheme: "+this._rfbAuthScheme),!0}_handleSecurityReason(){if(this._sock.rQwait("reason length",4))return!1;const t=this._sock.rQshift32();let e="";if(t>0){if(this._sock.rQwait("reason",t,4))return!1;e=this._sock.rQshiftStr(t)}return e!==""?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:e}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+e+")")):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus}})),this._fail("Security negotiation failed on "+this._securityContext))}_negotiateXvpAuth(){if(this._rfbCredentials.username===void 0||this._rfbCredentials.password===void 0||this._rfbCredentials.target===void 0)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password","target"]}})),!1;const t=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(t),this._rfbAuthScheme=_t,this._negotiateAuthentication()}_negotiateVeNCryptAuth(){if(this._rfbVeNCryptState==0){if(this._sock.rQwait("vencrypt version",2))return!1;const t=this._sock.rQshift8(),e=this._sock.rQshift8();if(!(t==0&&e==2))return this._fail("Unsupported VeNCrypt version "+t+"."+e);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(this._rfbVeNCryptState==1){if(this._sock.rQwait("vencrypt ack",1))return!1;const t=this._sock.rQshift8();if(t!=0)return this._fail("VeNCrypt failure "+t);this._rfbVeNCryptState=2}if(this._rfbVeNCryptState==2){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;const t=this._sock.rQshift8();if(t<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=t,this._rfbVeNCryptState=3}if(this._rfbVeNCryptState==3){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;const t=[];for(let e=0;e>24,this._rfbAuthScheme>>16,this._rfbAuthScheme>>8,this._rfbAuthScheme]),this._rfbVeNCryptState==4,!0)}}_negotiatePlainAuth(){if(this._rfbCredentials.username===void 0||this._rfbCredentials.password===void 0)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),!1;const t=ce(this._rfbCredentials.username),e=ce(this._rfbCredentials.password);return this._sock.send([t.length>>24&255,t.length>>16&255,t.length>>8&255,t.length&255]),this._sock.send([e.length>>24&255,e.length>>16&255,e.length>>8&255,e.length&255]),this._sock.sendString(t),this._sock.sendString(e),this._rfbInitState="SecurityResult",!0}_negotiateStdVNCAuth(){if(this._sock.rQwait("auth challenge",16))return!1;if(this._rfbCredentials.password===void 0)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["password"]}})),!1;const t=Array.prototype.slice.call(this._sock.rQshiftBytes(16)),e=Q.genDES(this._rfbCredentials.password,t);return this._sock.send(e),this._rfbInitState="SecurityResult",!0}_negotiateARDAuth(){if(this._rfbCredentials.username===void 0||this._rfbCredentials.password===void 0)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),!1;if(this._rfbCredentials.ardPublicKey!=null&&this._rfbCredentials.ardCredentials!=null)return this._sock.send(this._rfbCredentials.ardCredentials),this._sock.send(this._rfbCredentials.ardPublicKey),this._rfbCredentials.ardCredentials=null,this._rfbCredentials.ardPublicKey=null,this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("read ard",4))return!1;let t=this._sock.rQshiftBytes(2),e=this._sock.rQshift16();if(this._sock.rQwait("read ard keylength",e*2,4))return!1;let s=this._sock.rQshiftBytes(e),n=this._sock.rQshiftBytes(e),r=window.crypto.getRandomValues(new Uint8Array(e)),a=Array.from(window.crypto.getRandomValues(new Uint8Array(64)),h=>String.fromCharCode(65+h%26)).join("");return this._negotiateARDAuthAsync(t,e,s,n,r,a),!1}_modPow(t,e,s){let n="0x"+Array.from(t,d=>("0"+(d&255).toString(16)).slice(-2)).join(""),r="0x"+Array.from(e,d=>("0"+(d&255).toString(16)).slice(-2)).join(""),a="0x"+Array.from(s,d=>("0"+(d&255).toString(16)).slice(-2)).join(""),h=BigInt(n),c=BigInt(r),o=BigInt(a),l=1n;for(h=h%o;c>0;)c%2n===1n&&(l=l*h%o),c=c/2n,h=h*h%o;let u=l.toString(16);for(;u.length/2String.fromCharCode(h)).join(""),n=await window.crypto.subtle.importKey("raw",Vr(s),{name:"AES-CBC"},!1,["encrypt"]),r=new Uint8Array(t.length);for(let h=0;h0&&this._sock.rQwait("tunnel capabilities",16*n,4))return!1;if(this._rfbTightVNC=!0,n>0)return this._negotiateTightTunnels(n),!1}if(this._sock.rQwait("sub auth count",4))return!1;const t=this._sock.rQshift32();if(t===0)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*t,4))return!1;const e={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},s=[];for(let n=0;nthis._rfbCredentials),this._rfbRSAAESAuthenticationState.addEventListener("serververification",this._eventHandlers.handleRSAAESServerVerification),this._rfbRSAAESAuthenticationState.addEventListener("credentialsrequired",this._eventHandlers.handleRSAAESCredentialsRequired)),this._rfbRSAAESAuthenticationState.checkInternalEvents(),this._rfbRSAAESAuthenticationState.hasStarted||this._rfbRSAAESAuthenticationState.negotiateRA2neAuthAsync().catch(t=>{t.message!=="disconnect normally"&&this._fail(t.message)}).then(()=>(this.dispatchEvent(new CustomEvent("securityresult")),this._rfbInitState="SecurityResult",!0)).finally(()=>{this._rfbRSAAESAuthenticationState.removeEventListener("serververification",this._eventHandlers.handleRSAAESServerVerification),this._rfbRSAAESAuthenticationState.removeEventListener("credentialsrequired",this._eventHandlers.handleRSAAESCredentialsRequired),this._rfbRSAAESAuthenticationState=null}),!1}_negotiateMSLogonIIAuth(){if(this._sock.rQwait("mslogonii dh param",24))return!1;if(this._rfbCredentials.username===void 0||this._rfbCredentials.password===void 0)return this.dispatchEvent(new CustomEvent("credentialsrequired",{detail:{types:["username","password"]}})),!1;const t=this._sock.rQshiftBytes(8),e=this._sock.rQshiftBytes(8),s=this._sock.rQshiftBytes(8),n=window.crypto.getRandomValues(new Uint8Array(8)),r=new Uint8Array(this._modPow(t,n,e)),a=new Uint8Array(this._modPow(s,n,e)),h=new cs(a),c=ce(this._rfbCredentials.username).substring(0,255),o=ce(this._rfbCredentials.password).substring(0,63),l=new Uint8Array(256),u=new Uint8Array(64);window.crypto.getRandomValues(l),window.crypto.getRandomValues(u);for(let d=0;d=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=t,!0):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:t}})),this._fail("Security handshake failed"))}_negotiateServerInit(){if(this._sock.rQwait("server initialization",24))return!1;const t=this._sock.rQshift16(),e=this._sock.rQshift16(),s=this._sock.rQshift8(),n=this._sock.rQshift8(),r=this._sock.rQshift8(),a=this._sock.rQshift8(),h=this._sock.rQshift16(),c=this._sock.rQshift16(),o=this._sock.rQshift16(),l=this._sock.rQshift8(),u=this._sock.rQshift8(),x=this._sock.rQshift8();this._sock.rQskipBytes(3);const d=this._sock.rQshift32();if(this._sock.rQwait("server init name",d,24))return!1;let k=this._sock.rQshiftStr(d);if(k=St(k,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+d))return!1;const C=this._sock.rQshift16(),A=this._sock.rQshift16(),K=this._sock.rQshift16();this._sock.rQskipBytes(2);const T=(C+A+K)*16;if(this._sock.rQwait("TightVNC extended server init header",T,32+d))return!1;this._sock.rQskipBytes(16*C),this._sock.rQskipBytes(16*A),this._sock.rQskipBytes(16*K)}return $("Screen: "+t+"x"+e+", bpp: "+s+", depth: "+n+", bigEndian: "+r+", trueColor: "+a+", redMax: "+h+", greenMax: "+c+", blueMax: "+o+", redShift: "+l+", greenShift: "+u+", blueShift: "+x),this._setDesktopName(k),this._resize(t,e),this._viewOnly||this._keyboard.grab(),this._fbDepth=24,this._fbName==="Intel(r) AMT KVM"&&(se("Intel AMT KVM only supports 8/16 bit depths. Using low color mode."),this._fbDepth=8),Q.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),Q.messages.fbUpdateRequest(this._sock,!1,0,0,this._fbWidth,this._fbHeight),this._updateConnectionState("connected"),!0}_sendEncodings(){const t=[];t.push(D.encodingCopyRect),this._fbDepth==24&&(t.push(D.encodingTight),t.push(D.encodingTightPNG),t.push(D.encodingZRLE),t.push(D.encodingJPEG),t.push(D.encodingHextile),t.push(D.encodingRRE)),t.push(D.encodingRaw),t.push(D.pseudoEncodingQualityLevel0+this._qualityLevel),t.push(D.pseudoEncodingCompressLevel0+this._compressionLevel),t.push(D.pseudoEncodingDesktopSize),t.push(D.pseudoEncodingLastRect),t.push(D.pseudoEncodingQEMUExtendedKeyEvent),t.push(D.pseudoEncodingExtendedDesktopSize),t.push(D.pseudoEncodingXvp),t.push(D.pseudoEncodingFence),t.push(D.pseudoEncodingContinuousUpdates),t.push(D.pseudoEncodingDesktopName),t.push(D.pseudoEncodingExtendedClipboard),this._fbDepth==24&&(t.push(D.pseudoEncodingVMwareCursor),t.push(D.pseudoEncodingCursor)),Q.messages.clientEncodings(this._sock,t)}_initMsg(){switch(this._rfbInitState){case"ProtocolVersion":return this._negotiateProtocolVersion();case"Security":return this._negotiateSecurity();case"Authentication":return this._negotiateAuthentication();case"SecurityResult":return this._handleSecurityResult();case"SecurityReason":return this._handleSecurityReason();case"ClientInitialisation":return this._sock.send([this._shared?1:0]),this._rfbInitState="ServerInitialisation",!0;case"ServerInitialisation":return this._negotiateServerInit();default:return this._fail("Unknown init state (state: "+this._rfbInitState+")")}}_resumeAuthentication(){setTimeout(this._initMsg.bind(this),0)}_handleSetColourMapMsg(){return M("SetColorMapEntries"),this._fail("Unexpected SetColorMapEntries message")}_handleServerCutText(){if(M("ServerCutText"),this._sock.rQwait("ServerCutText header",7,1))return!1;this._sock.rQskipBytes(3);let t=this._sock.rQshift32();if(t=Gt(t),this._sock.rQwait("ServerCutText content",Math.abs(t),8))return!1;if(t>=0){const e=this._sock.rQshiftStr(t);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:e}}))}else{t=Math.abs(t);const e=this._sock.rQshift32();let s=e&65535,n=e&4278190080;if(!!(n&Ss)){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(let h=0;h<=15;h++){let c=1<0&&c.charAt(c.length-1)==="\0"&&(c=c.slice(0,-1)),c=c.replace(`\r +`,` +`),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:c}}))}}else return this._fail("Unexpected action in extended clipboard message: "+n)}return!0}_handleServerFenceMsg(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);let t=this._sock.rQshift32(),e=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",e,9))return!1;e>64&&(se("Bad payload length ("+e+") in fence response"),e=64);const s=this._sock.rQshiftStr(e);return this._supportsFence=!0,t&1<<31?(t&=3,Q.messages.clientFence(this._sock,t,s),!0):this._fail("Unexpected fence response")}_handleXvpMsg(){if(this._sock.rQwait("XVP version and message",3,1))return!1;this._sock.rQskipBytes(1);const t=this._sock.rQshift8(),e=this._sock.rQshift8();switch(e){case 0:O("XVP Operation Failed");break;case 1:this._rfbXvpVer=t,$("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+e+")");break}return!0}_normalMsg(){let t;this._FBU.rects>0?t=0:t=this._sock.rQshift8();let e,s;switch(t){case 0:return s=this._framebufferUpdate(),s&&!this._enabledContinuousUpdates&&Q.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),s;case 1:return this._handleSetColourMapMsg();case 2:return M("Bell"),this.dispatchEvent(new CustomEvent("bell",{detail:{}})),!0;case 3:return this._handleServerCutText();case 150:return e=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,e&&(this._enabledContinuousUpdates=!0,this._updateContinuousUpdates(),$("Enabling continuous updates.")),!0;case 248:return this._handleServerFenceMsg();case 250:return this._handleXvpMsg();default:return this._fail("Unexpected server message (type "+t+")"),M("sock.rQslice(0, 30): "+this._sock.rQslice(0,30)),!0}}_onFlush(){this._flushing=!1,this._sock.rQlen>0&&this._handleMessage()}_framebufferUpdate(){if(this._FBU.rects===0){if(this._sock.rQwait("FBU header",3,1))return!1;if(this._sock.rQskipBytes(1),this._FBU.rects=this._sock.rQshift16(),this._display.pending())return this._flushing=!0,this._display.flush(),!1}for(;this._FBU.rects>0;){if(this._FBU.encoding===null){if(this._sock.rQwait("rect header",12))return!1;const t=this._sock.rQshiftBytes(12);this._FBU.x=(t[0]<<8)+t[1],this._FBU.y=(t[2]<<8)+t[3],this._FBU.width=(t[4]<<8)+t[5],this._FBU.height=(t[6]<<8)+t[7],this._FBU.encoding=parseInt((t[8]<<24)+(t[9]<<16)+(t[10]<<8)+t[11],10)}if(!this._handleRect())return!1;this._FBU.rects--,this._FBU.encoding=null}return this._display.flip(),!0}_handleRect(){switch(this._FBU.encoding){case D.pseudoEncodingLastRect:return this._FBU.rects=1,!0;case D.pseudoEncodingVMwareCursor:return this._handleVMwareCursor();case D.pseudoEncodingCursor:return this._handleCursor();case D.pseudoEncodingQEMUExtendedKeyEvent:return this._qemuExtKeyEventSupported=!0,!0;case D.pseudoEncodingDesktopName:return this._handleDesktopName();case D.pseudoEncodingDesktopSize:return this._resize(this._FBU.width,this._FBU.height),!0;case D.pseudoEncodingExtendedDesktopSize:return this._handleExtendedDesktopSize();default:return this._handleDataRect()}}_handleVMwareCursor(){const t=this._FBU.x,e=this._FBU.y,s=this._FBU.width,n=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;const r=this._sock.rQshift8();this._sock.rQshift8();let a;const h=4;if(r==0){if(a=new Array(s*n*h),this._sock.rQwait("VMware cursor classic encoding",s*n*h*2,2))return!1;let o=new Array(s*n);for(let u=0;u>8&255,k=x>>16&255,C=x>>24&255;a[u*h]=d,a[u*h+1]=k,a[u*h+2]=C,a[u*h+3]=255}else(o[u]&-256)==-256?l[u]==0?(a[u*h]=0,a[u*h+1]=0,a[u*h+2]=0,a[u*h+3]=0):(l[u]&-256,a[u*h]=0,a[u*h+1]=0,a[u*h+2]=0,a[u*h+3]=255):(a[u*h]=0,a[u*h+1]=0,a[u*h+2]=0,a[u*h+3]=255)}else if(r==1){if(this._sock.rQwait("VMware cursor alpha encoding",s*n*4,2))return!1;a=new Array(s*n*h);for(let c=0;c>24&255,a[c*4+1]=o>>16&255,a[c*4+2]=o>>8&255,a[c*4+3]=o&255}}else return se("The given cursor type is not supported: "+r+" given."),!1;return this._updateCursor(a,t,e,s,n),!0}_handleCursor(){const t=this._FBU.x,e=this._FBU.y,s=this._FBU.width,n=this._FBU.height,r=s*n*4,a=Math.ceil(s/8)*n;let h=r+a;if(this._sock.rQwait("cursor encoding",h))return!1;const c=this._sock.rQshiftBytes(r),o=this._sock.rQshiftBytes(a);let l=new Uint8Array(s*n*4),u=0;for(let x=0;xn.charCodeAt(0));return new cs(s).encrypt(e)}}Q.messages={keyEvent(i,t,e){const s=i._sQ,n=i._sQlen;s[n]=4,s[n+1]=e,s[n+2]=0,s[n+3]=0,s[n+4]=t>>24,s[n+5]=t>>16,s[n+6]=t>>8,s[n+7]=t,i._sQlen+=8,i.flush()},QEMUExtendedKeyEvent(i,t,e,s){function n(c){const o=s>>8,l=s&255;return o===224&&l<127?l|128:c}const r=i._sQ,a=i._sQlen;r[a]=255,r[a+1]=0,r[a+2]=e>>8,r[a+3]=e,r[a+4]=t>>24,r[a+5]=t>>16,r[a+6]=t>>8,r[a+7]=t;const h=n(s);r[a+8]=h>>24,r[a+9]=h>>16,r[a+10]=h>>8,r[a+11]=h,i._sQlen+=12,i.flush()},pointerEvent(i,t,e,s){const n=i._sQ,r=i._sQlen;n[r]=5,n[r+1]=s,n[r+2]=t>>8,n[r+3]=t,n[r+4]=e>>8,n[r+5]=e,i._sQlen+=6,i.flush()},_buildExtendedClipboardFlags(i,t){let e=new Uint8Array(4),s=0,n=0;for(let r=0;r>24,e[1]=0,e[2]=0,e[3]=s,e},extendedClipboardProvide(i,t,e){let s=new Kr,n=[];for(let h=0;h>24&255,c.length>>16&255,c.length>>8&255,c.length&255);for(let o=0;oparseInt(a)),s.sort((a,h)=>a-h),n.set(Q.messages._buildExtendedClipboardFlags(t,[]));let r=4;for(let a=0;a>24,n[r+1]=e[s[a]]>>16,n[r+2]=e[s[a]]>>8,n[r+3]=e[s[a]]>>0,r+=4,n[3]|=1<>24,s[n+5]=r>>16,s[n+6]=r>>8,s[n+7]=r,i._sQlen+=8;let a=0,h=t.length;for(;h>0;){let c=Math.min(h,i._sQbufferSize-i._sQlen);for(let o=0;o>8,r[a+3]=t,r[a+4]=e>>8,r[a+5]=e,r[a+6]=1,r[a+7]=0,r[a+8]=s>>24,r[a+9]=s>>16,r[a+10]=s>>8,r[a+11]=s,r[a+12]=0,r[a+13]=0,r[a+14]=0,r[a+15]=0,r[a+16]=t>>8,r[a+17]=t,r[a+18]=e>>8,r[a+19]=e,r[a+20]=n>>24,r[a+21]=n>>16,r[a+22]=n>>8,r[a+23]=n,i._sQlen+=24,i.flush()},clientFence(i,t,e){const s=i._sQ,n=i._sQlen;s[n]=248,s[n+1]=0,s[n+2]=0,s[n+3]=0,s[n+4]=t>>24,s[n+5]=t>>16,s[n+6]=t>>8,s[n+7]=t;const r=e.length;s[n+8]=r;for(let a=0;a>8,a[h+3]=e,a[h+4]=s>>8,a[h+5]=s,a[h+6]=n>>8,a[h+7]=n,a[h+8]=r>>8,a[h+9]=r,i._sQlen+=10,i.flush()},pixelFormat(i,t,e){const s=i._sQ,n=i._sQlen;let r;t>16?r=32:t>8?r=16:r=8;const a=Math.floor(t/3);s[n]=0,s[n+1]=0,s[n+2]=0,s[n+3]=0,s[n+4]=r,s[n+5]=t,s[n+6]=0,s[n+7]=e?1:0,s[n+8]=0,s[n+9]=(1<>8,e[s+3]=t.length;let n=s+4;for(let r=0;r>24,e[n+1]=a>>16,e[n+2]=a>>8,e[n+3]=a,n+=4}i._sQlen+=n-s,i.flush()},fbUpdateRequest(i,t,e,s,n,r){const a=i._sQ,h=i._sQlen;typeof e>"u"&&(e=0),typeof s>"u"&&(s=0),a[h]=3,a[h+1]=t?1:0,a[h+2]=e>>8&255,a[h+3]=e&255,a[h+4]=s>>8&255,a[h+5]=s&255,a[h+6]=n>>8&255,a[h+7]=n&255,a[h+8]=r>>8&255,a[h+9]=r&255,i._sQlen+=10,i.flush()},xvpOp(i,t,e){const s=i._sQ,n=i._sQlen;s[n]=250,s[n+1]=0,s[n+2]=t,s[n+3]=e,i._sQlen+=4,i.flush()}};Q.cursors={none:{rgbaPixels:new Uint8Array,w:0,h:0,hotx:0,hoty:0},dot:{rgbaPixels:new Uint8Array([255,255,255,255,0,0,0,255,255,255,255,255,0,0,0,255,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,255,255,255,255,255]),w:3,h:3,hotx:1,hoty:1}};export{Q as default}; diff --git a/webui/assets/server-Bl64bbT7.js b/webui/dist/assets/server-BIrLgehb.js similarity index 98% rename from webui/assets/server-Bl64bbT7.js rename to webui/dist/assets/server-BIrLgehb.js index 1bd3815..3521940 100644 --- a/webui/assets/server-Bl64bbT7.js +++ b/webui/dist/assets/server-BIrLgehb.js @@ -1 +1 @@ -import{_ as b,j as w,k,o as c,b as C,d as S,w as n,c as o,f as e,e as a,g as i}from"./index-CdkAYAR1.js";const B={style:{"margin-bottom":"8px"}},T={style:{"margin-bottom":"8px"}},z={style:{"margin-bottom":"8px"}},U={style:{display:"flex","justify-content":"flex-end","margin-top":"24px"}},j={style:{"margin-bottom":"8px"}},M={style:{"margin-bottom":"8px"}},q={style:{display:"flex","justify-content":"flex-end","margin-top":"24px"}},L={__name:"server",setup(N){const d=w(),s=k({port:5173,authToken:"",keepaliveMode:"comment",queueBuffer:2,imageLimit:5});c(async()=>{await d.fetchServerConfig(),Object.assign(s,d.serverConfig)});const m=async()=>{await d.saveServerConfig(s)};return(V,t)=>{const p=a("a-input-number"),r=a("a-col"),y=a("a-input-password"),u=a("a-select-option"),g=a("a-select"),f=a("a-row"),v=a("a-button"),x=a("a-card"),_=a("a-layout");return S(),C(_,{style:{background:"transparent"}},{default:n(()=>[o(x,{title:"服务器设置",bordered:!1,style:{width:"100%"}},{default:n(()=>[o(f,{gutter:[16,16]},{default:n(()=>[o(r,{xs:24,md:12},{default:n(()=>[e("div",B,[t[5]||(t[5]=e("div",{style:{"font-weight":"600","margin-bottom":"4px"}},"监听端口",-1)),t[6]||(t[6]=e("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"8px"}}," 设置服务器监听的端口号,默认为 5173 ",-1)),o(p,{value:s.port,"onUpdate:value":t[0]||(t[0]=l=>s.port=l),min:1,max:65535,placeholder:"请输入端口号",style:{width:"100%"}},null,8,["value"])])]),_:1}),o(r,{xs:24,md:12},{default:n(()=>[e("div",T,[t[7]||(t[7]=e("div",{style:{"font-weight":"600","margin-bottom":"4px"}},"鉴权 Token",-1)),t[8]||(t[8]=e("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"8px"}}," 用于 API 请求鉴权的密钥,留空则不启用鉴权 ",-1)),o(y,{value:s.authToken,"onUpdate:value":t[1]||(t[1]=l=>s.authToken=l),placeholder:"请输入 Token",type:"password"},null,8,["value"])])]),_:1}),o(r,{xs:24,md:12},{default:n(()=>[e("div",z,[t[11]||(t[11]=e("div",{style:{"font-weight":"600","margin-bottom":"4px"}},"心跳包类型",-1)),t[12]||(t[12]=e("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"8px"}}," 选择 SSE 流式响应的心跳包格式 ",-1)),o(g,{value:s.keepaliveMode,"onUpdate:value":t[2]||(t[2]=l=>s.keepaliveMode=l),style:{width:"100%"},placeholder:"请选择心跳包类型"},{default:n(()=>[o(u,{value:"comment"},{default:n(()=>[...t[9]||(t[9]=[i("Comment - 注释格式",-1)])]),_:1}),o(u,{value:"content"},{default:n(()=>[...t[10]||(t[10]=[i("Content - 内容格式",-1)])]),_:1})]),_:1},8,["value"])])]),_:1})]),_:1}),e("div",U,[o(v,{type:"primary",onClick:m},{default:n(()=>[...t[13]||(t[13]=[i(" 保存设置 ",-1)])]),_:1})])]),_:1}),o(x,{title:"队列设置",bordered:!1,style:{width:"100%","margin-top":"10px"}},{default:n(()=>[o(f,{gutter:[16,16]},{default:n(()=>[o(r,{xs:24,md:12},{default:n(()=>[e("div",j,[t[14]||(t[14]=e("div",{style:{"font-weight":"600","margin-bottom":"4px"}},"队列缓冲区大小",-1)),t[15]||(t[15]=e("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"8px"}},[i(" 非流式请求的额外排队数(设为 0 则不限制非流式请求数量)"),e("br"),i(" 实际队列上限 = Workers数量 + 缓冲区大小 ")],-1)),o(p,{value:s.queueBuffer,"onUpdate:value":t[3]||(t[3]=l=>s.queueBuffer=l),min:0,max:100,placeholder:"默认为 2",style:{width:"100%"}},null,8,["value"])])]),_:1}),o(r,{xs:24,md:12},{default:n(()=>[e("div",M,[t[16]||(t[16]=e("div",{style:{"font-weight":"600","margin-bottom":"4px"}},"图片数量上限",-1)),t[17]||(t[17]=e("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"8px"}},[i(" 单次请求最多支持的图片附件数量"),e("br"),i(" 网页最多支持10个附件,超出会被丢弃 ")],-1)),o(p,{value:s.imageLimit,"onUpdate:value":t[4]||(t[4]=l=>s.imageLimit=l),min:1,max:10,placeholder:"默认为 5",style:{width:"100%"}},null,8,["value"])])]),_:1})]),_:1}),e("div",q,[o(v,{type:"primary",onClick:m},{default:n(()=>[...t[18]||(t[18]=[i(" 保存设置 ",-1)])]),_:1})])]),_:1})]),_:1})}}},A=b(L,[["__scopeId","data-v-bd32923f"]]);export{A as default}; +import{_ as b,j as w,k,o as c,b as C,d as S,w as n,c as o,f as e,e as a,g as i}from"./index-N039yHLa.js";const B={style:{"margin-bottom":"8px"}},T={style:{"margin-bottom":"8px"}},z={style:{"margin-bottom":"8px"}},U={style:{display:"flex","justify-content":"flex-end","margin-top":"24px"}},j={style:{"margin-bottom":"8px"}},M={style:{"margin-bottom":"8px"}},q={style:{display:"flex","justify-content":"flex-end","margin-top":"24px"}},L={__name:"server",setup(N){const d=w(),s=k({port:5173,authToken:"",keepaliveMode:"comment",queueBuffer:2,imageLimit:5});c(async()=>{await d.fetchServerConfig(),Object.assign(s,d.serverConfig)});const m=async()=>{await d.saveServerConfig(s)};return(V,t)=>{const p=a("a-input-number"),r=a("a-col"),y=a("a-input-password"),u=a("a-select-option"),g=a("a-select"),f=a("a-row"),v=a("a-button"),x=a("a-card"),_=a("a-layout");return S(),C(_,{style:{background:"transparent"}},{default:n(()=>[o(x,{title:"服务器设置",bordered:!1,style:{width:"100%"}},{default:n(()=>[o(f,{gutter:[16,16]},{default:n(()=>[o(r,{xs:24,md:12},{default:n(()=>[e("div",B,[t[5]||(t[5]=e("div",{style:{"font-weight":"600","margin-bottom":"4px"}},"监听端口",-1)),t[6]||(t[6]=e("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"8px"}}," 设置服务器监听的端口号,默认为 5173 ",-1)),o(p,{value:s.port,"onUpdate:value":t[0]||(t[0]=l=>s.port=l),min:1,max:65535,placeholder:"请输入端口号",style:{width:"100%"}},null,8,["value"])])]),_:1}),o(r,{xs:24,md:12},{default:n(()=>[e("div",T,[t[7]||(t[7]=e("div",{style:{"font-weight":"600","margin-bottom":"4px"}},"鉴权 Token",-1)),t[8]||(t[8]=e("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"8px"}}," 用于 API 请求鉴权的密钥,留空则不启用鉴权 ",-1)),o(y,{value:s.authToken,"onUpdate:value":t[1]||(t[1]=l=>s.authToken=l),placeholder:"请输入 Token",type:"password"},null,8,["value"])])]),_:1}),o(r,{xs:24,md:12},{default:n(()=>[e("div",z,[t[11]||(t[11]=e("div",{style:{"font-weight":"600","margin-bottom":"4px"}},"心跳包类型",-1)),t[12]||(t[12]=e("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"8px"}}," 选择 SSE 流式响应的心跳包格式 ",-1)),o(g,{value:s.keepaliveMode,"onUpdate:value":t[2]||(t[2]=l=>s.keepaliveMode=l),style:{width:"100%"},placeholder:"请选择心跳包类型"},{default:n(()=>[o(u,{value:"comment"},{default:n(()=>[...t[9]||(t[9]=[i("Comment - 注释格式",-1)])]),_:1}),o(u,{value:"content"},{default:n(()=>[...t[10]||(t[10]=[i("Content - 内容格式",-1)])]),_:1})]),_:1},8,["value"])])]),_:1})]),_:1}),e("div",U,[o(v,{type:"primary",onClick:m},{default:n(()=>[...t[13]||(t[13]=[i(" 保存设置 ",-1)])]),_:1})])]),_:1}),o(x,{title:"队列设置",bordered:!1,style:{width:"100%","margin-top":"10px"}},{default:n(()=>[o(f,{gutter:[16,16]},{default:n(()=>[o(r,{xs:24,md:12},{default:n(()=>[e("div",j,[t[14]||(t[14]=e("div",{style:{"font-weight":"600","margin-bottom":"4px"}},"队列缓冲区大小",-1)),t[15]||(t[15]=e("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"8px"}},[i(" 非流式请求的额外排队数(设为 0 则不限制非流式请求数量)"),e("br"),i(" 实际队列上限 = Workers数量 + 缓冲区大小 ")],-1)),o(p,{value:s.queueBuffer,"onUpdate:value":t[3]||(t[3]=l=>s.queueBuffer=l),min:0,max:100,placeholder:"默认为 2",style:{width:"100%"}},null,8,["value"])])]),_:1}),o(r,{xs:24,md:12},{default:n(()=>[e("div",M,[t[16]||(t[16]=e("div",{style:{"font-weight":"600","margin-bottom":"4px"}},"图片数量上限",-1)),t[17]||(t[17]=e("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"8px"}},[i(" 单次请求最多支持的图片附件数量"),e("br"),i(" 网页最多支持10个附件,超出会被丢弃 ")],-1)),o(p,{value:s.imageLimit,"onUpdate:value":t[4]||(t[4]=l=>s.imageLimit=l),min:1,max:10,placeholder:"默认为 5",style:{width:"100%"}},null,8,["value"])])]),_:1})]),_:1}),e("div",q,[o(v,{type:"primary",onClick:m},{default:n(()=>[...t[18]||(t[18]=[i(" 保存设置 ",-1)])]),_:1})])]),_:1})]),_:1})}}},A=b(L,[["__scopeId","data-v-bd32923f"]]);export{A as default}; diff --git a/webui/assets/server-D1vV5anY.css b/webui/dist/assets/server-D1vV5anY.css similarity index 100% rename from webui/assets/server-D1vV5anY.css rename to webui/dist/assets/server-D1vV5anY.css diff --git a/webui/dist/assets/system-C2wy1aIP.js b/webui/dist/assets/system-C2wy1aIP.js new file mode 100644 index 0000000..9c7829a --- /dev/null +++ b/webui/dist/assets/system-C2wy1aIP.js @@ -0,0 +1 @@ +import{x as i,j as a,s as r}from"./index-N039yHLa.js";const u=i("system",{state:()=>({status:"",version:"1.0.0",systemVersion:"",uptime:0,cpuUsage:0,memoryUsage:{total:0,used:0,free:0},stats:{totalRequests:0,successRate:0,activeWorkers:0,totalWorkers:0,avgResponseTime:0}}),actions:{async fetchStatus(){const t=a();try{const e=await fetch("/admin/status",{headers:t.getHeaders()});if(e.ok){const s=await e.json();this.$patch(s)}}catch(e){console.error("Failed to fetch system status:",e)}},async fetchStats(){const t=a();try{const e=await fetch("/admin/stats",{headers:t.getHeaders()});if(e.ok){const s=await e.json();this.stats=s}}catch(e){console.error("Failed to fetch stats:",e)}},async restartService(t={}){const e=a(),{loginMode:s,workerName:n}=t;try{const o=await(await fetch("/admin/restart",{method:"POST",headers:{...e.getHeaders(),"Content-Type":"application/json"},body:JSON.stringify({loginMode:s,workerName:n})})).json();return o.success?(r.success(o.message||"服务重启中..."),!0):(r.error("重启失败"),!1)}catch{return r.error("重启请求失败"),!1}},async stopService(){const t=a();try{const s=await(await fetch("/admin/stop",{method:"POST",headers:t.getHeaders()})).json();return s.success?(r.success(s.message||"服务停止中..."),!0):(r.error("停止失败"),!1)}catch{return r.error("停止请求失败"),!1}}}});export{u}; diff --git a/webui/assets/workers-B-8PS4Qq.js b/webui/dist/assets/workers-C-NcF24t.js similarity index 99% rename from webui/assets/workers-B-8PS4Qq.js rename to webui/dist/assets/workers-C-NcF24t.js index 63daacb..abd1d36 100644 --- a/webui/assets/workers-B-8PS4Qq.js +++ b/webui/dist/assets/workers-C-NcF24t.js @@ -1 +1 @@ -import{j as ne,l as S,o as se,r as b,b as W,d as i,w as s,c as n,f as o,e as r,g as v,h as p,i as y,t as x,F as A,m as re}from"./index-CdkAYAR1.js";const ie={style:{"margin-bottom":"24px"}},ue={style:{"margin-bottom":"8px"}},pe={style:{"margin-bottom":"8px"}},de={style:{display:"flex","justify-content":"flex-end","margin-top":"24px"}},ve={style:{display:"flex","justify-content":"space-between","align-items":"center"}},me={key:0},ye={key:3},xe=["onClick"],ge=["onClick"],fe={style:{"margin-bottom":"24px"}},ke={style:{"margin-bottom":"16px"}},we={style:{"margin-bottom":"16px"}},be={style:{"margin-bottom":"16px"}},_e={style:{"margin-bottom":"16px"}},ce={style:{"margin-left":"8px"}},Ce={key:0,style:{"margin-bottom":"16px"}},Me={key:1,style:{"margin-bottom":"16px"}},Ue={key:2,style:{"margin-bottom":"16px"}},he={key:3,style:{"margin-bottom":"16px"}},Te={style:{"margin-left":"8px"}},Pe={key:4,style:{"margin-bottom":"16px"}},De={key:5,style:{"margin-bottom":"16px"}},Se={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"8px"}},We=["onClick"],Ae=["onClick"],$e={style:{"font-weight":"600"}},ze={style:{"font-size":"12px",color:"#8c8c8c"}},Ie={key:0},He={key:0},je={style:{"text-align":"right"}},Fe={style:{"margin-bottom":"16px"}},Ve={style:{"margin-bottom":"16px"}},Be={style:{"margin-bottom":"16px"}},Ee={style:{"margin-bottom":"16px"}},Le={__name:"workers",setup(Ne){const d=ne(),g=S({get:()=>d.poolConfig,set:a=>d.poolConfig=a}),j=async()=>{await d.savePoolConfig(g.value)};se(async()=>{await Promise.all([d.fetchWorkerConfig(),d.fetchPoolConfig(),d.fetchAdaptersMeta()])});const $=S(()=>{const a=d.adaptersMeta.map(e=>({label:e.name,value:e.id}));return a.find(e=>e.value==="merge")||a.push({label:"Merge(聚合模式)",value:"merge"}),a}),F=[{title:"实例名称",dataIndex:"name",key:"name"},{title:"Worker 数量",dataIndex:"workerCount",key:"workerCount"},{title:"代理",dataIndex:"proxy",key:"proxy"},{title:"数据标记",key:"userDataMark",dataIndex:"userDataMark"},{title:"操作",key:"action"}],h=S({get:()=>d.workerConfig,set:a=>{d.workerConfig=a}}),k=b(!1),f=b(null),l=b({name:"",userDataMark:"",proxy:!1,proxyType:"socks5",proxyHost:"",proxyPort:1080,proxyAuth:!1,proxyUsername:"",proxyPassword:"",workers:[]}),V=()=>{f.value=null;const a=Math.random().toString(36).substring(2,7);l.value={name:`instance-${(h.value||[]).length+1}-${a}`,userDataMark:"",proxy:!1,proxyType:"socks5",proxyHost:"",proxyPort:1080,proxyAuth:!1,proxyUsername:"",proxyPassword:"",workers:[]},k.value=!0},B=a=>{f.value=a,l.value={name:a.name,userDataMark:a.userDataMark||"",proxy:!!a.proxy,proxyType:a.proxy?.type||"socks5",proxyHost:a.proxy?.host||"",proxyPort:a.proxy?.port||1080,proxyAuth:a.proxy?.auth||!1,proxyUsername:a.proxy?.username||"",proxyPassword:a.proxy?.password||"",workers:a.workers?[...a.workers]:[]},(a.proxy===null||a.proxy===void 0)&&(l.value.proxy=!1),k.value=!0},E=async a=>{const e=h.value.filter(C=>C.id!==a.id);await d.saveWorkerConfig(e)},N=async()=>{const a={id:f.value?f.value.id:`inst_${Date.now()}`,name:l.value.name,userDataMark:l.value.userDataMark,workers:l.value.workers,proxy:l.value.proxy?{enable:!0,type:l.value.proxyType,host:l.value.proxyHost,port:l.value.proxyPort,auth:l.value.proxyAuth,username:l.value.proxyUsername,password:l.value.proxyPassword}:null};let e=[...h.value||[]];if(f.value===null)e.push(a);else{const w=e.findIndex(T=>T.id===f.value.id);w>-1&&(e[w]=a)}await d.saveWorkerConfig(e)&&(k.value=!1)},_=b(-1),c=b(!1),u=b({name:"",type:"lmarena",mergeTypes:[],mergeMonitor:""}),O=()=>{_.value=-1;const a=Math.random().toString(36).substring(2,7);u.value={name:`worker-${l.value.workers.length+1}-${a}`,type:"lmarena",mergeTypes:[],mergeMonitor:""},c.value=!0},L=a=>{_.value=a;const e=l.value.workers[a];u.value={name:e.name,type:e.type,mergeTypes:e.mergeTypes?[...e.mergeTypes]:[],mergeMonitor:e.mergeMonitor||""},c.value=!0},R=()=>{_.value===-1?l.value.workers.push({...u.value}):l.value.workers[_.value]={...u.value},c.value=!1},K=a=>{l.value.workers.splice(a,1)};return(a,e)=>{const C=r("a-segmented"),w=r("a-switch"),T=r("a-col"),z=r("a-input-number"),q=r("a-row"),M=r("a-button"),I=r("a-card"),G=r("a-tag"),J=r("a-divider"),Q=r("a-table"),U=r("a-input"),X=r("a-input-password"),Y=r("a-collapse-panel"),Z=r("a-collapse"),ee=r("a-list-item"),te=r("a-list"),oe=r("a-drawer"),P=r("a-select"),H=r("a-select-option"),le=r("a-modal"),ae=r("a-layout");return i(),W(ae,{style:{background:"transparent"}},{default:s(()=>[n(I,{title:"负载均衡",bordered:!1,style:{width:"100%","margin-bottom":"10px"}},{default:s(()=>[o("div",ie,[e[19]||(e[19]=o("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"调度策略",-1)),e[20]||(e[20]=o("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"12px"}}," 选择任务分配到工作实例的调度算法 ",-1)),n(C,{value:g.value.strategy,"onUpdate:value":e[0]||(e[0]=t=>g.value.strategy=t),block:"",options:[{label:"最少繁忙",value:"least_busy"},{label:"轮询",value:"round_robin"},{label:"随机",value:"random"}]},null,8,["value"])]),n(q,{gutter:16},{default:s(()=>[n(T,{xs:24,md:12},{default:s(()=>[o("div",ue,[e[21]||(e[21]=o("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"故障转移",-1)),e[22]||(e[22]=o("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"12px"}}," 启用后,任务失败时会自动切换到其他可用实例重试 ",-1)),n(w,{checked:g.value.failover.enabled,"onUpdate:checked":e[1]||(e[1]=t=>g.value.failover.enabled=t)},null,8,["checked"])])]),_:1}),n(T,{xs:24,md:12},{default:s(()=>[o("div",pe,[e[23]||(e[23]=o("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"重试次数",-1)),e[24]||(e[24]=o("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"12px"}}," 故障转移时最大重试次数,范围 1-10 ",-1)),n(z,{value:g.value.failover.maxRetries,"onUpdate:value":e[2]||(e[2]=t=>g.value.failover.maxRetries=t),min:1,max:10,disabled:!g.value.failover.enabled,style:{width:"100%"},placeholder:"请输入重试次数"},null,8,["value","disabled"])])]),_:1})]),_:1}),o("div",de,[n(M,{type:"primary",onClick:j},{default:s(()=>[...e[25]||(e[25]=[v(" 保存设置 ",-1)])]),_:1})])]),_:1}),n(I,{bordered:!1,style:{width:"100%"}},{title:s(()=>[o("div",ve,[e[27]||(e[27]=o("span",null,"实例列表",-1)),n(M,{type:"primary",onClick:V},{default:s(()=>[...e[26]||(e[26]=[v(" 创建实例 ",-1)])]),_:1})])]),default:s(()=>[n(Q,{columns:F,"data-source":h.value,pagination:!1},{bodyCell:s(({column:t,record:m})=>[t.key==="name"?(i(),p("a",me,x(m.name),1)):t.key==="workerCount"?(i(),p(A,{key:1},[v(x(m.workers?m.workers.length:0),1)],64)):t.key==="proxy"?(i(),W(G,{key:2,color:m.proxy?"green":"default"},{default:s(()=>[v(x(m.proxy?"已启用":"未启用"),1)]),_:2},1032,["color"])):t.key==="action"?(i(),p("span",ye,[o("a",{onClick:D=>B(m)},"编辑",8,xe),n(J,{type:"vertical"}),o("a",{style:{color:"#ff4d4f"},onClick:D=>E(m)},"删除",8,ge)])):y("",!0)]),_:1},8,["data-source"])]),_:1}),n(oe,{open:k.value,"onUpdate:open":e[13]||(e[13]=t=>k.value=t),title:f.value===null?"创建实例":`编辑实例 - ${f.value.name}`,placement:"right",width:"500"},{footer:s(()=>[o("div",je,[n(M,{style:{"margin-right":"8px"},onClick:e[12]||(e[12]=t=>k.value=!1)},{default:s(()=>[...e[40]||(e[40]=[v("取消",-1)])]),_:1}),n(M,{type:"primary",onClick:N},{default:s(()=>[...e[41]||(e[41]=[v("保存",-1)])]),_:1})])]),default:s(()=>[o("div",fe,[o("div",ke,[e[28]||(e[28]=o("div",{style:{"font-weight":"600","margin-bottom":"4px"}},"实例名称",-1)),e[29]||(e[29]=o("div",{style:{"font-size":"12px",color:"#ff4d4f","margin-bottom":"8px"}}," * 名称必须全局唯一,不可重复 ",-1)),n(U,{value:l.value.name,"onUpdate:value":e[3]||(e[3]=t=>l.value.name=t),placeholder:"请输入实例名称"},null,8,["value"])]),o("div",we,[e[30]||(e[30]=o("div",{style:{"font-weight":"600","margin-bottom":"4px"}},"数据标记",-1)),e[31]||(e[31]=o("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"8px"}}," 用于区分实例数据存储的文件夹名称 (userDataMark) ",-1)),n(U,{value:l.value.userDataMark,"onUpdate:value":e[4]||(e[4]=t=>l.value.userDataMark=t),placeholder:"请输入数据标记,如: main-gemini"},null,8,["value"])]),o("div",be,[n(Z,null,{default:s(()=>[n(Y,{key:"proxy",header:"代理设置"},{default:s(()=>[o("div",_e,[n(w,{checked:l.value.proxy,"onUpdate:checked":e[5]||(e[5]=t=>l.value.proxy=t)},null,8,["checked"]),o("span",ce,x(l.value.proxy?"已启用代理":"未启用代理"),1)]),l.value.proxy?(i(),p("div",Ce,[e[32]||(e[32]=o("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"代理类型",-1)),n(C,{value:l.value.proxyType,"onUpdate:value":e[6]||(e[6]=t=>l.value.proxyType=t),block:"",options:[{label:"SOCKS5",value:"socks5"},{label:"HTTP",value:"http"}],style:{width:"100%"}},null,8,["value"])])):y("",!0),l.value.proxy?(i(),p("div",Me,[e[33]||(e[33]=o("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"服务器地址",-1)),n(U,{value:l.value.proxyHost,"onUpdate:value":e[7]||(e[7]=t=>l.value.proxyHost=t),placeholder:"例如: 127.0.0.1"},null,8,["value"])])):y("",!0),l.value.proxy?(i(),p("div",Ue,[e[34]||(e[34]=o("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"端口",-1)),n(z,{value:l.value.proxyPort,"onUpdate:value":e[8]||(e[8]=t=>l.value.proxyPort=t),min:1,max:65535,style:{width:"100%"},placeholder:"例如: 1080"},null,8,["value"])])):y("",!0),l.value.proxy?(i(),p("div",he,[e[35]||(e[35]=o("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"身份验证",-1)),n(w,{checked:l.value.proxyAuth,"onUpdate:checked":e[9]||(e[9]=t=>l.value.proxyAuth=t)},null,8,["checked"]),o("span",Te,x(l.value.proxyAuth?"需要验证":"无需验证"),1)])):y("",!0),l.value.proxy&&l.value.proxyAuth?(i(),p("div",Pe,[e[36]||(e[36]=o("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"用户名",-1)),n(U,{value:l.value.proxyUsername,"onUpdate:value":e[10]||(e[10]=t=>l.value.proxyUsername=t),placeholder:"请输入用户名"},null,8,["value"])])):y("",!0),l.value.proxy&&l.value.proxyAuth?(i(),p("div",De,[e[37]||(e[37]=o("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"密码",-1)),n(X,{value:l.value.proxyPassword,"onUpdate:value":e[11]||(e[11]=t=>l.value.proxyPassword=t),placeholder:"请输入密码"},null,8,["value"])])):y("",!0)]),_:1})]),_:1})]),o("div",null,[o("div",Se,[e[39]||(e[39]=o("div",{style:{"font-weight":"600"}},"Worker 列表",-1)),n(M,{size:"small",type:"primary",onClick:O},{default:s(()=>[...e[38]||(e[38]=[v(" 添加 Worker ",-1)])]),_:1})]),n(te,{bordered:"","data-source":l.value.workers,style:{"margin-top":"8px"}},{renderItem:s(({item:t,index:m})=>[n(ee,null,{actions:s(()=>[o("a",{onClick:D=>L(m)},"编辑",8,We),o("a",{style:{color:"#ff4d4f"},onClick:D=>K(m)},"删除",8,Ae)]),default:s(()=>[o("div",null,[o("div",$e,x(t.name),1),o("div",ze,[v(" 类型: "+x(t.type)+" ",1),t.type==="merge"?(i(),p("span",Ie,[v(" | 聚合: "+x(t.mergeTypes?.join(", ")||"无")+" ",1),t.mergeMonitor?(i(),p("span",He," | 监控: "+x(t.mergeMonitor),1)):y("",!0)])):y("",!0)])])]),_:2},1024)]),_:1},8,["data-source"])])])]),_:1},8,["open","title"]),n(le,{open:c.value,"onUpdate:open":e[18]||(e[18]=t=>c.value=t),title:_.value===-1?"添加 Worker":"编辑 Worker",okText:"确定",cancelText:"取消",onOk:R},{default:s(()=>[o("div",Fe,[e[42]||(e[42]=o("div",{style:{"font-weight":"600","margin-bottom":"4px"}},"Worker 名称",-1)),e[43]||(e[43]=o("div",{style:{"font-size":"12px",color:"#ff4d4f","margin-bottom":"8px"}}," * 名称必须全局唯一,不可重复 ",-1)),n(U,{value:u.value.name,"onUpdate:value":e[14]||(e[14]=t=>u.value.name=t),placeholder:"例如: default"},null,8,["value"])]),o("div",Ve,[e[44]||(e[44]=o("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"适配器类型",-1)),n(P,{value:u.value.type,"onUpdate:value":e[15]||(e[15]=t=>u.value.type=t),style:{width:"100%"},options:$.value},null,8,["value","options"])]),u.value.type==="merge"?(i(),p(A,{key:0},[o("div",Be,[e[45]||(e[45]=o("div",{style:{"font-weight":"600","margin-bottom":"4px"}},"聚合类型",-1)),e[46]||(e[46]=o("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"8px"}}," 选择要聚合的后端适配器(可多选) ",-1)),n(P,{value:u.value.mergeTypes,"onUpdate:value":e[16]||(e[16]=t=>u.value.mergeTypes=t),mode:"multiple",style:{width:"100%"},placeholder:"选择要聚合的适配器",options:$.value},null,8,["value","options"])]),o("div",Ee,[e[48]||(e[48]=o("div",{style:{"font-weight":"600","margin-bottom":"4px"}},"空闲监控后端",-1)),e[49]||(e[49]=o("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"8px"}}," 空闲时挂机监控的后端(可选) ",-1)),n(P,{value:u.value.mergeMonitor,"onUpdate:value":e[17]||(e[17]=t=>u.value.mergeMonitor=t),style:{width:"100%"},placeholder:"选择监控后端(可留空)","allow-clear":""},{default:s(()=>[n(H,{value:""},{default:s(()=>[...e[47]||(e[47]=[v("无",-1)])]),_:1}),(i(!0),p(A,null,re(u.value.mergeTypes,t=>(i(),W(H,{key:t,value:t},{default:s(()=>[v(x(t),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])])],64)):y("",!0)]),_:1},8,["open","title"])]),_:1})}}};export{Le as default}; +import{j as ne,l as S,o as se,r as b,b as W,d as i,w as s,c as n,f as o,e as r,g as v,h as p,i as y,t as x,F as A,m as re}from"./index-N039yHLa.js";const ie={style:{"margin-bottom":"24px"}},ue={style:{"margin-bottom":"8px"}},pe={style:{"margin-bottom":"8px"}},de={style:{display:"flex","justify-content":"flex-end","margin-top":"24px"}},ve={style:{display:"flex","justify-content":"space-between","align-items":"center"}},me={key:0},ye={key:3},xe=["onClick"],ge=["onClick"],fe={style:{"margin-bottom":"24px"}},ke={style:{"margin-bottom":"16px"}},we={style:{"margin-bottom":"16px"}},be={style:{"margin-bottom":"16px"}},_e={style:{"margin-bottom":"16px"}},ce={style:{"margin-left":"8px"}},Ce={key:0,style:{"margin-bottom":"16px"}},Me={key:1,style:{"margin-bottom":"16px"}},Ue={key:2,style:{"margin-bottom":"16px"}},he={key:3,style:{"margin-bottom":"16px"}},Te={style:{"margin-left":"8px"}},Pe={key:4,style:{"margin-bottom":"16px"}},De={key:5,style:{"margin-bottom":"16px"}},Se={style:{display:"flex","justify-content":"space-between","align-items":"center","margin-bottom":"8px"}},We=["onClick"],Ae=["onClick"],$e={style:{"font-weight":"600"}},ze={style:{"font-size":"12px",color:"#8c8c8c"}},Ie={key:0},He={key:0},je={style:{"text-align":"right"}},Fe={style:{"margin-bottom":"16px"}},Ve={style:{"margin-bottom":"16px"}},Be={style:{"margin-bottom":"16px"}},Ee={style:{"margin-bottom":"16px"}},Le={__name:"workers",setup(Ne){const d=ne(),g=S({get:()=>d.poolConfig,set:a=>d.poolConfig=a}),j=async()=>{await d.savePoolConfig(g.value)};se(async()=>{await Promise.all([d.fetchWorkerConfig(),d.fetchPoolConfig(),d.fetchAdaptersMeta()])});const $=S(()=>{const a=d.adaptersMeta.map(e=>({label:e.name,value:e.id}));return a.find(e=>e.value==="merge")||a.push({label:"Merge(聚合模式)",value:"merge"}),a}),F=[{title:"实例名称",dataIndex:"name",key:"name"},{title:"Worker 数量",dataIndex:"workerCount",key:"workerCount"},{title:"代理",dataIndex:"proxy",key:"proxy"},{title:"数据标记",key:"userDataMark",dataIndex:"userDataMark"},{title:"操作",key:"action"}],h=S({get:()=>d.workerConfig,set:a=>{d.workerConfig=a}}),k=b(!1),f=b(null),l=b({name:"",userDataMark:"",proxy:!1,proxyType:"socks5",proxyHost:"",proxyPort:1080,proxyAuth:!1,proxyUsername:"",proxyPassword:"",workers:[]}),V=()=>{f.value=null;const a=Math.random().toString(36).substring(2,7);l.value={name:`instance-${(h.value||[]).length+1}-${a}`,userDataMark:"",proxy:!1,proxyType:"socks5",proxyHost:"",proxyPort:1080,proxyAuth:!1,proxyUsername:"",proxyPassword:"",workers:[]},k.value=!0},B=a=>{f.value=a,l.value={name:a.name,userDataMark:a.userDataMark||"",proxy:!!a.proxy,proxyType:a.proxy?.type||"socks5",proxyHost:a.proxy?.host||"",proxyPort:a.proxy?.port||1080,proxyAuth:a.proxy?.auth||!1,proxyUsername:a.proxy?.username||"",proxyPassword:a.proxy?.password||"",workers:a.workers?[...a.workers]:[]},(a.proxy===null||a.proxy===void 0)&&(l.value.proxy=!1),k.value=!0},E=async a=>{const e=h.value.filter(C=>C.id!==a.id);await d.saveWorkerConfig(e)},N=async()=>{const a={id:f.value?f.value.id:`inst_${Date.now()}`,name:l.value.name,userDataMark:l.value.userDataMark,workers:l.value.workers,proxy:l.value.proxy?{enable:!0,type:l.value.proxyType,host:l.value.proxyHost,port:l.value.proxyPort,auth:l.value.proxyAuth,username:l.value.proxyUsername,password:l.value.proxyPassword}:null};let e=[...h.value||[]];if(f.value===null)e.push(a);else{const w=e.findIndex(T=>T.id===f.value.id);w>-1&&(e[w]=a)}await d.saveWorkerConfig(e)&&(k.value=!1)},_=b(-1),c=b(!1),u=b({name:"",type:"lmarena",mergeTypes:[],mergeMonitor:""}),O=()=>{_.value=-1;const a=Math.random().toString(36).substring(2,7);u.value={name:`worker-${l.value.workers.length+1}-${a}`,type:"lmarena",mergeTypes:[],mergeMonitor:""},c.value=!0},L=a=>{_.value=a;const e=l.value.workers[a];u.value={name:e.name,type:e.type,mergeTypes:e.mergeTypes?[...e.mergeTypes]:[],mergeMonitor:e.mergeMonitor||""},c.value=!0},R=()=>{_.value===-1?l.value.workers.push({...u.value}):l.value.workers[_.value]={...u.value},c.value=!1},K=a=>{l.value.workers.splice(a,1)};return(a,e)=>{const C=r("a-segmented"),w=r("a-switch"),T=r("a-col"),z=r("a-input-number"),q=r("a-row"),M=r("a-button"),I=r("a-card"),G=r("a-tag"),J=r("a-divider"),Q=r("a-table"),U=r("a-input"),X=r("a-input-password"),Y=r("a-collapse-panel"),Z=r("a-collapse"),ee=r("a-list-item"),te=r("a-list"),oe=r("a-drawer"),P=r("a-select"),H=r("a-select-option"),le=r("a-modal"),ae=r("a-layout");return i(),W(ae,{style:{background:"transparent"}},{default:s(()=>[n(I,{title:"负载均衡",bordered:!1,style:{width:"100%","margin-bottom":"10px"}},{default:s(()=>[o("div",ie,[e[19]||(e[19]=o("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"调度策略",-1)),e[20]||(e[20]=o("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"12px"}}," 选择任务分配到工作实例的调度算法 ",-1)),n(C,{value:g.value.strategy,"onUpdate:value":e[0]||(e[0]=t=>g.value.strategy=t),block:"",options:[{label:"最少繁忙",value:"least_busy"},{label:"轮询",value:"round_robin"},{label:"随机",value:"random"}]},null,8,["value"])]),n(q,{gutter:16},{default:s(()=>[n(T,{xs:24,md:12},{default:s(()=>[o("div",ue,[e[21]||(e[21]=o("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"故障转移",-1)),e[22]||(e[22]=o("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"12px"}}," 启用后,任务失败时会自动切换到其他可用实例重试 ",-1)),n(w,{checked:g.value.failover.enabled,"onUpdate:checked":e[1]||(e[1]=t=>g.value.failover.enabled=t)},null,8,["checked"])])]),_:1}),n(T,{xs:24,md:12},{default:s(()=>[o("div",pe,[e[23]||(e[23]=o("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"重试次数",-1)),e[24]||(e[24]=o("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"12px"}}," 故障转移时最大重试次数,范围 1-10 ",-1)),n(z,{value:g.value.failover.maxRetries,"onUpdate:value":e[2]||(e[2]=t=>g.value.failover.maxRetries=t),min:1,max:10,disabled:!g.value.failover.enabled,style:{width:"100%"},placeholder:"请输入重试次数"},null,8,["value","disabled"])])]),_:1})]),_:1}),o("div",de,[n(M,{type:"primary",onClick:j},{default:s(()=>[...e[25]||(e[25]=[v(" 保存设置 ",-1)])]),_:1})])]),_:1}),n(I,{bordered:!1,style:{width:"100%"}},{title:s(()=>[o("div",ve,[e[27]||(e[27]=o("span",null,"实例列表",-1)),n(M,{type:"primary",onClick:V},{default:s(()=>[...e[26]||(e[26]=[v(" 创建实例 ",-1)])]),_:1})])]),default:s(()=>[n(Q,{columns:F,"data-source":h.value,pagination:!1},{bodyCell:s(({column:t,record:m})=>[t.key==="name"?(i(),p("a",me,x(m.name),1)):t.key==="workerCount"?(i(),p(A,{key:1},[v(x(m.workers?m.workers.length:0),1)],64)):t.key==="proxy"?(i(),W(G,{key:2,color:m.proxy?"green":"default"},{default:s(()=>[v(x(m.proxy?"已启用":"未启用"),1)]),_:2},1032,["color"])):t.key==="action"?(i(),p("span",ye,[o("a",{onClick:D=>B(m)},"编辑",8,xe),n(J,{type:"vertical"}),o("a",{style:{color:"#ff4d4f"},onClick:D=>E(m)},"删除",8,ge)])):y("",!0)]),_:1},8,["data-source"])]),_:1}),n(oe,{open:k.value,"onUpdate:open":e[13]||(e[13]=t=>k.value=t),title:f.value===null?"创建实例":`编辑实例 - ${f.value.name}`,placement:"right",width:"500"},{footer:s(()=>[o("div",je,[n(M,{style:{"margin-right":"8px"},onClick:e[12]||(e[12]=t=>k.value=!1)},{default:s(()=>[...e[40]||(e[40]=[v("取消",-1)])]),_:1}),n(M,{type:"primary",onClick:N},{default:s(()=>[...e[41]||(e[41]=[v("保存",-1)])]),_:1})])]),default:s(()=>[o("div",fe,[o("div",ke,[e[28]||(e[28]=o("div",{style:{"font-weight":"600","margin-bottom":"4px"}},"实例名称",-1)),e[29]||(e[29]=o("div",{style:{"font-size":"12px",color:"#ff4d4f","margin-bottom":"8px"}}," * 名称必须全局唯一,不可重复 ",-1)),n(U,{value:l.value.name,"onUpdate:value":e[3]||(e[3]=t=>l.value.name=t),placeholder:"请输入实例名称"},null,8,["value"])]),o("div",we,[e[30]||(e[30]=o("div",{style:{"font-weight":"600","margin-bottom":"4px"}},"数据标记",-1)),e[31]||(e[31]=o("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"8px"}}," 用于区分实例数据存储的文件夹名称 (userDataMark) ",-1)),n(U,{value:l.value.userDataMark,"onUpdate:value":e[4]||(e[4]=t=>l.value.userDataMark=t),placeholder:"请输入数据标记,如: main-gemini"},null,8,["value"])]),o("div",be,[n(Z,null,{default:s(()=>[n(Y,{key:"proxy",header:"代理设置"},{default:s(()=>[o("div",_e,[n(w,{checked:l.value.proxy,"onUpdate:checked":e[5]||(e[5]=t=>l.value.proxy=t)},null,8,["checked"]),o("span",ce,x(l.value.proxy?"已启用代理":"未启用代理"),1)]),l.value.proxy?(i(),p("div",Ce,[e[32]||(e[32]=o("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"代理类型",-1)),n(C,{value:l.value.proxyType,"onUpdate:value":e[6]||(e[6]=t=>l.value.proxyType=t),block:"",options:[{label:"SOCKS5",value:"socks5"},{label:"HTTP",value:"http"}],style:{width:"100%"}},null,8,["value"])])):y("",!0),l.value.proxy?(i(),p("div",Me,[e[33]||(e[33]=o("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"服务器地址",-1)),n(U,{value:l.value.proxyHost,"onUpdate:value":e[7]||(e[7]=t=>l.value.proxyHost=t),placeholder:"例如: 127.0.0.1"},null,8,["value"])])):y("",!0),l.value.proxy?(i(),p("div",Ue,[e[34]||(e[34]=o("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"端口",-1)),n(z,{value:l.value.proxyPort,"onUpdate:value":e[8]||(e[8]=t=>l.value.proxyPort=t),min:1,max:65535,style:{width:"100%"},placeholder:"例如: 1080"},null,8,["value"])])):y("",!0),l.value.proxy?(i(),p("div",he,[e[35]||(e[35]=o("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"身份验证",-1)),n(w,{checked:l.value.proxyAuth,"onUpdate:checked":e[9]||(e[9]=t=>l.value.proxyAuth=t)},null,8,["checked"]),o("span",Te,x(l.value.proxyAuth?"需要验证":"无需验证"),1)])):y("",!0),l.value.proxy&&l.value.proxyAuth?(i(),p("div",Pe,[e[36]||(e[36]=o("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"用户名",-1)),n(U,{value:l.value.proxyUsername,"onUpdate:value":e[10]||(e[10]=t=>l.value.proxyUsername=t),placeholder:"请输入用户名"},null,8,["value"])])):y("",!0),l.value.proxy&&l.value.proxyAuth?(i(),p("div",De,[e[37]||(e[37]=o("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"密码",-1)),n(X,{value:l.value.proxyPassword,"onUpdate:value":e[11]||(e[11]=t=>l.value.proxyPassword=t),placeholder:"请输入密码"},null,8,["value"])])):y("",!0)]),_:1})]),_:1})]),o("div",null,[o("div",Se,[e[39]||(e[39]=o("div",{style:{"font-weight":"600"}},"Worker 列表",-1)),n(M,{size:"small",type:"primary",onClick:O},{default:s(()=>[...e[38]||(e[38]=[v(" 添加 Worker ",-1)])]),_:1})]),n(te,{bordered:"","data-source":l.value.workers,style:{"margin-top":"8px"}},{renderItem:s(({item:t,index:m})=>[n(ee,null,{actions:s(()=>[o("a",{onClick:D=>L(m)},"编辑",8,We),o("a",{style:{color:"#ff4d4f"},onClick:D=>K(m)},"删除",8,Ae)]),default:s(()=>[o("div",null,[o("div",$e,x(t.name),1),o("div",ze,[v(" 类型: "+x(t.type)+" ",1),t.type==="merge"?(i(),p("span",Ie,[v(" | 聚合: "+x(t.mergeTypes?.join(", ")||"无")+" ",1),t.mergeMonitor?(i(),p("span",He," | 监控: "+x(t.mergeMonitor),1)):y("",!0)])):y("",!0)])])]),_:2},1024)]),_:1},8,["data-source"])])])]),_:1},8,["open","title"]),n(le,{open:c.value,"onUpdate:open":e[18]||(e[18]=t=>c.value=t),title:_.value===-1?"添加 Worker":"编辑 Worker",okText:"确定",cancelText:"取消",onOk:R},{default:s(()=>[o("div",Fe,[e[42]||(e[42]=o("div",{style:{"font-weight":"600","margin-bottom":"4px"}},"Worker 名称",-1)),e[43]||(e[43]=o("div",{style:{"font-size":"12px",color:"#ff4d4f","margin-bottom":"8px"}}," * 名称必须全局唯一,不可重复 ",-1)),n(U,{value:u.value.name,"onUpdate:value":e[14]||(e[14]=t=>u.value.name=t),placeholder:"例如: default"},null,8,["value"])]),o("div",Ve,[e[44]||(e[44]=o("div",{style:{"font-weight":"600","margin-bottom":"8px"}},"适配器类型",-1)),n(P,{value:u.value.type,"onUpdate:value":e[15]||(e[15]=t=>u.value.type=t),style:{width:"100%"},options:$.value},null,8,["value","options"])]),u.value.type==="merge"?(i(),p(A,{key:0},[o("div",Be,[e[45]||(e[45]=o("div",{style:{"font-weight":"600","margin-bottom":"4px"}},"聚合类型",-1)),e[46]||(e[46]=o("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"8px"}}," 选择要聚合的后端适配器(可多选) ",-1)),n(P,{value:u.value.mergeTypes,"onUpdate:value":e[16]||(e[16]=t=>u.value.mergeTypes=t),mode:"multiple",style:{width:"100%"},placeholder:"选择要聚合的适配器",options:$.value},null,8,["value","options"])]),o("div",Ee,[e[48]||(e[48]=o("div",{style:{"font-weight":"600","margin-bottom":"4px"}},"空闲监控后端",-1)),e[49]||(e[49]=o("div",{style:{"font-size":"12px",color:"#8c8c8c","margin-bottom":"8px"}}," 空闲时挂机监控的后端(可选) ",-1)),n(P,{value:u.value.mergeMonitor,"onUpdate:value":e[17]||(e[17]=t=>u.value.mergeMonitor=t),style:{width:"100%"},placeholder:"选择监控后端(可留空)","allow-clear":""},{default:s(()=>[n(H,{value:""},{default:s(()=>[...e[47]||(e[47]=[v("无",-1)])]),_:1}),(i(!0),p(A,null,re(u.value.mergeTypes,t=>(i(),W(H,{key:t,value:t},{default:s(()=>[v(x(t),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])])],64)):y("",!0)]),_:1},8,["open","title"])]),_:1})}}};export{Le as default}; diff --git a/webui/dist/favicon.png b/webui/dist/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..eef19bf139910fe0de15f7d716f3eaf9719470fc GIT binary patch literal 70830 zcmV)-K!?AHP) zO=+PE(Dq-t(7sn*U*DsT$19I+Ko`0|c}*$%TEb3Qk^q4$Byr-zu^sP=ELqk*(#-$d zJCZHSOB_fbAwK?%M;gtH?u_Pq=R4<~d#-kQ3C0yc8U9`oa7^VGpZ-%PO2+Raup3C* zG#VfwtM7%3{gmW;kv@ne0Hc=nRn%>%{n@|tee`s`IK9`2>h=U})6j8R`rIE=kIT{> z+iPX*fP#-E$pD8}*N2<d`h|; z1Od!PhK{PyYi#pf4e z!IqG!U4B>WG=Do5#lO)dKh6*0{rsW0r~zUz^*q|N7_aatxi^zCww#mz zFqViX-~*o))AJ==flF_FW;cGnej%=0QierSU3h47Bev}C0Rw_a1RL1SrMYGX0uLvb zNjXVn5&+UfJ^>@-=~kMtfKsRV(l<%j*;1Ng;oEOIe*%9( z1y1}ItvAxLFS+iar5}@WQph9#j3Flq8%W120)wrzdX<({f7#T8ACclSVam_sQep%~ zS|H7AP1 z)VzX?n3PYIOaj0Jge61D5>5ya=ogjZ+KZ>>8>PLS5j^nv z0o-!&90GvAu>BYi$ch4QAPS!l2ay8ID7InIR5vaoS7Fos9tHr|vA+**?CvS2L!M3o z!Ov*92b1!tkVycTponQhT_t(w_3`Ecq{xaS1^;DwzU99jeWw%Ci}vHQi>D5{0;5SR zolt$B~O5E2@u9?Yb=<3w*u6hLS(M+<;PdHdfBeM}5lx-%k{iSD>hlydbIx z0D`~<-3w^zQ^7(<)Znan1$=pPPdgsk+^&6dPtUYcmw96%j@vZa(7))CD9G|Fgvpq| z2_=&Na1?}r01p}-2Sp~*y9LRXpHHhD?DfC@?S1_F74xv5+=bS@5M)^x0s$daAVU~- z4z^CnGTOXBauGCGKBExT#SZ-C)kbW1y_xOu!-@jTg8Ds^astXE032oE0YgQNlC!Qv zjW|?|=M%^?*a=lRpJ8tp2;6ziVpQkb(?B3i`Gw)ipK@?g@q!Lth^|M#k3KgOr`Ni1 z>%+Uz;SHTbF2UYN4AU_wC!9&_|OXaDvGs032mu zo^&cks3iZ5rQ>Wn%e_}*way9y1{ohwGQNy}hQ$PaMN6e#kLx?Uvi6pTcH+OkFb730 z6FPgN&<_SNgu&GyE(q#LQ@Efczo5A{0Jp=6o6a~@`11r-n8+jm9A~0S0)ZyEK3qoP;S@|63Q&HFb!QeiP2X(ugz9UjZ z28Yfk41vJVwzO|cYmh${LV?4Ai{@A2$@d!2?h7o@Tlg^KZ(veR2$=+c6F>%mAQfm# zlf#uz%c$VST!Hrp1ny@baP`kOcQL zdKQyOLnnkx0>FtRqMDSH-tBm}A-kjC!&9`ZPl3R<{;&l<`{H6gYOu`{L_|suXb5S3 zKO_CZs8oZsg(-grF$lK4U~VOzu4@4FcnxIyLlJ4v*Vhp0397ZZZvfU@SRI)U@_{@;|mSnUl@6w6u9UO z0^;PSu;s$qTHNu@>PM?g~KEOOv;HbtscOgJ#u?y-9sTh z>}`W6!bKp!Y5?HxuQ#Kq+k^kSdLasPt!QVd!(#zJnq=7oa!W+`f>Btl1`YyG?b^jY z`j%Gw=m3yN&QNp|^C$-E9ndLD=+rGZNo5iMK7|sO)owWR#HZ?V(eft(f(y3n4dA+8 zZNe|VvJh3pcC>U2@R-1OqBpR(#Lzy~Zg=V>V*ph+{w6Hxg<3?_P5^K!wfw=<2Pa!^ z<0Jr_;F6l>FTIC=zb6pr4-yy<5aig0@1HISCB&-zCKL1;T^Ov?#}x1t8Tb! zGk$f$GSrsahk?LoBJv&zWe|j><>uo3juw{Wbmoz?HIZzeaSWv3fzXd`rnAycctq{{ zw8u>z_ zEdqhlR1oNk3=MEfqsvOhiOhOE93~C`Y`6LJ>C0?;Ffo3+a`c$ks7m1@(RDs1TCdX( z0PyU`OQ`)E08X~KDJKEoBoN+(mKy$_@mb2}X38Y96y)R+k(?jku3RhX_BP?AAOB^q z@{8+dC2Urm)*p&OM>|Lf847WKUV%VSlH&)|6KXXYWE=E|CIpR9t4t+b;{c!^$A{Ml zX`zf!vK~jfu4pWCGpU3OBq-#fuLq(#yrU@zu|7?Rx3|-Lq43*SF?##Scd%=rlvx%#wn{F_c?YgtC-o zYQ|9N4_ivXpd(fhnfU(cO|%=0(A&)*0I0-CDw6;(DI;VQYRy34b^?K$AAEHmE?+eb zO`WPs&lm$^0J1!?cxqHFPQ(=3j$amEIXLDe&OTxn#xamd0GO1C z$`1$x&iwf!`xn$!WMg`X8?8Nl=;)zNBmp2Lta^|{l)xX2^7q0x0YJtaK5ErvlL5p? zj{G>*#sar9^>!^S&nMzIW}-O`we2`;(xi+hf|4rIp)R6GK5ZhA5EHyQp*E%{an{++ z1`LH+5`d)ky&E*DsY_rSzDx!xk{JG&YW0ah)g~psYQQJ&{?+4+`2Eef5Dg;qdQmHA z5>OZd$Qmeuj2OLUu6chX4n35pR=`%$HE#Y`aiQe;DBTcsWiqlH1RU0nNc&nJyA}Bk zhqk;ZA5CqY)of!dhNCK}=9taLpY>-l2>>UTRI$N?wA3V$)qAvY?V!yQ1*M)=srM{< zuOaf$hDItnIZY<)_juq5hhf%o3;%ff zd5+UaJIh#v$&8aqCIR5nCsk?7wAAaiPHy?DB<*-Vxd2@f5A0c-mp6o?!gh_Qyhj$> zM*y&ul=&vw{=sY8x;X$aB`SM0-f&IW!sq<3kZMc!&CR{cuQM8 zrZNctC$6x-+LU-azE~868jVI%+u4a4oi&l4WzitpBBI!>gN?XxQT|Y*%W1KWdBTRa z5WL|&_y!X2_H(9Q8IRKf;gZxodMlnI764)axb^a!`Cd=J=q7(6K-V1Y}5|9kL#>Dtnl`QrbN|jy(t!gfzlE) zid?j~EvPE8l3#0v-D=>Af&6rXK|{)ytni!Ril)ySk>T-0;ptbSYB4EJzI7aR zOu$18Q0;V$cGW~BMX_Zrb`g$_cPP+jGuH^Z^sI?ZWmlk8q(h~G^24JxW z*u7gqQ&R$xG%^G5A9Z!uULQuDQ^!UmZbGCoMg>lP#(cC5K}q`WL8-n0tD{! zdpv$jom$M7EnD`ibGwHIE;0G2;R;1LPBlL%lK^mh3RC=V1|zt>+Z*D)QCYqjr_FU? z49U;yx7`-==MGX-Z=!kUSGt2B?9S?0C(RHcs z?DB@!`3KVcfB|wza^lSNvgO(2dNb0->wj1=r79(5Tz-6vvdg)-yqE$DjIw?~4^9%9 z1c2j9*vPbRlj5J#?FB5PKr2b<&zSG#%FjT6<*v7Mh4{jS4aA{8m*?UQGs(F!mSt+&}lIHtr~@3V{P*PfsgQTusLq z^@xN?`H3)CX*V$|gjuK0gWI9T9lYM5HV^=yqk8~Nodam>@bfi&UKI>-YrMu{AqHU~ zSWxgJz5gSvU&FBx9`LiQ zuhD3=F$ouw;k=BkTYKX~oelW%G7}b@T8&d@sY!I*5iJ_pBb>?$+Duxh3>EGXhnu)q zOi?UE;q&v%LNFZ1wmrSrv{f~5Rpw$CtRnJC1@6bIXCnGMK(0f-g5K6R_I)6ry)uH? zi!>;!)F9w7<2!e5!l`p}v3~6g$i@Mp@gBW8gVSNfg6bT; zUy!jD0))o)0d&*)g99GyKG=uGZkY|${d|er{CT>l7X=~wXN{ono`fWOkEFZx@r=Zs zR5~-S8!!s{*2r2d-9x26DxkEi3|(OpbUgyjJ$ngYf0jVd!(uCg01%gsa9ZfJ?>yGy z3XXCFL=aBXL3RC>lhO?Kru>SmFEM2>dzwd$>p@s&?zD@{6nf) zzk7jyeo<{L4(toV;AGu<3fd1z=<6gPBB$4!B`OY=h#Xp?A@;cnN~~wFUs0KhNVt%j zZA6(nOC4CWsuIneer(?3#Tz@i(b65HC3F_y<5~H3o}=(Mf!o8h{@X-v?nLqpiVAY^ zhx?zonqFQ)An=*z9(v-NPN!~g`g4O3M+v-McGT#v^dYs8oDuEVMsR$Q}u9^TpHN3X6EpRFm! zuB{Q&y_0~%LIo-V5v(?17R4gUYD97k^auoou7D{&b4h}cI6~ne6YjE`aM>9)TFRL6 zW7Do4Y&+10m)~P03x#$0cFj6E%bhxHoXvD}+eB`(oZ<7UqaNil#=lOPT7tTM;M(=) zKk>}Q%}<=aW+@vcT$x-Na1zKQ0DPRHaMu67WXP{)zA^LXS-1R6=jLPiWy?`Avjm>5 zI1=P!i_v68OE8RhXXoM0%VPk!b|XwC5wE@5iTj>yL|tP)7S=fMy)VqtES=@%E?}R*-cW}h{jm|>zMuqW&#K10y&>$D58#~gYQ)I;2k2UYNO0_(3$HpkYrOZ7mwiT^56r*ha`Na^+`|TBlpdU@U=Nze>5u1>it%*_nkL0AAeM zl>`Fh8+F=$vs>`ZBoN$9i+`-^5XGU`1`}S;L{Z98?@94Niq97&%a+-(Z(oqb2si+Q z0yr{BGAiQgxQ`V#nz zS!j<&A=qTdNa-zke{1v_%EGC{14iFJ=6(LNWy{i+0B&XOwB2g zLOg0{kFWZ)4-00t%Blx)NC-3vGg z03VaE8hdQYEHLFiZ+0%evZ@#*OHYAmN(sDLBV>O+S9&2?^^%p?Qs`L~tyXAqa}jT9 zf$VjKl$yOsxzk2upZvFFK%&)TIuRmRaCAGQm1!8DwKa2@WQ~Z?7EVp5IlONaJ zwiWNShOpuLHTdjVQ}NKfUg%*$OMf30PvbQ;`A9&$Nx;-OTK+oFPgehcg0}husiFd- zO@Kr!Vfz~rmaV0uEh1v!48KFfh=i#0wjJtHui=y_4lJPSI&Vcc{`6cE-rCvAzq8nF zx<7dY1A_Ft11_vfuzxuIEp$3v@OXM~=uj(De7^DY)0d%c&vX2>BUxiz5s$n_QgZ@n z)d|$p6H=x?rKoFC8-Dx68my?vL%4Q2`T9C4NZ#A1-Tx}f26 zgK7DaSLVWj{oVNfT|2q;|IszmaovR#{FtVWl;Tg!1hJr>QLjab%ZL|=YJc%R-sao? zdHWnJn^%gBkNDyDC7?5f(NFHl3~JNhv805d0ky3b^8IU<3dpBsG=89 zIj|#+IV&?lAtvvv$e$Y_ir~gnA_`s&(__g}2-B;7cvovPhXvf_@p@Z8H4iCNPjl zX8{T;Ka_L>6yoa&8{AI-Cy?nD2`?hCILw8G5NFPW@!ichaHyY{j}d1tF2tf!a`4D2 zt$66g7PNMUQRoy_D~hn10N}qxQTbtd+Zg#zjfHYL^O9RT@P#jYj=#F@D>prJ^S_;g z#j9syN{$OBj7$Q+M-*nP^u)@gR4%;CMy6u}8LxGX9bwc|81eNp zr(yZ@B6N3q5u9EFb44kXK0lA_bILzXcM%)ruT6G#8{AG5&E^@b`0AJL$A(Au;Mz6C z!cVTL<=dLuLXc>GR_s!iF(HxSG7t3GvkbW7{%!czM_O^w92Y%<&2vFJHCKsu_X_bYqWC6ub0uOwJuns)DaxW#1?#R45NK&ZC}M#v%c%X@ zXQtzwH zJbvN5Prmb%(`7)^AHyjNrs1{cHeF(|;E9o$2II?d?(&b2NdP#y!n%)s*3uj1>93ca zT8wXOf1Id)et`>zntJiotM0|7UA_3tFD}M~ zpIr>^Ki@!nK&AY`kwl$HcT>v$iwCyj$E5t9Ut-5yH!tBIcXvi{Xs--kAPyTb1U6Wx z)$7B8>MXh@)~>NbWDM8jc(QkZAaTYL0)l)IS{;k5D|`$A%PN$KA~D4`R+U3=I3St~ ziZ(A7`pQxz)^G^%mS#aP=ppEss}zKw)j&UcHh&*Ico6-BbY5aS4!Vw8u9<_iiwg07 z8~5UwEk1;dA{f|Lt%0ubN-!c=f#o-16^N z@{l1l=`%P9WD)?5o}6RU;~BF0+LBxoZeCZ7Wz(Dp1~I7omf8x${YOv{Hcgp}EAvse zwE>r2bPrld*PngzIxIhZI{G_(&{(aAc69P}vY%`0bEZB@PD9L;|Gp>cxbiQn8B+d! zpM*$QMrX6aa|&3p4(lE8M{gC zMcn6u)Y<`!-3G(-N@xr6)D{!PVnD$Q3dtgLwWn~`D01KcL>-$kS>Ql0t-_A~{q}O4 zySWv=d14>-wo1l)yRc4Pe*HCGBnVv{ zQDi%GIMf*Cwe}bQF!2Xfi=Xe#ViRf{@pUjZpe1UckWa6$45(Z?3^Qjy=W;?0sZ2o7 zX}R(-sM*4*iZFM9+$r`c0|CYe*q|gfaEXNk+33Z&HMw~3r6%0- zcoRQKzFjk{hk&tw>%Kc18~)=8{P`IkGrYfiYI(eAe-pppSPYj?b0!P`dIL^4Iqm>J z7-zit(GX&>EFzy8fyRSOVzOa=wn>yipLS^hn^@N@T}$gRW1XTO5{(tNZubU{b^ zg@{VaS_2FV7DD#>5!=2^RS-k+Y0Q{MOOgaux{rK#6Z(T8-1X<}XzY#Pjw|y~T~&zI zb}zT6u|ymLeWa|cuAotdPNPL25dymc4Vw>8(IBowM~prk*72QQ>zjZ{6AeL*id?~U zHB+H0Euwbnkq9R5i&mqafzH9KyUf6hbulE*DQH9<+fc$R_!uFDCuUMJ0||OBwY6~& zNL3waY7ZjIq{FvAHv>xul<$7>0RFknV=Q#gPhkS4Xp7Olr3>%B^1ilaSpnA0&4Jd< z;sOS(i+;D#60NSID|Wfrge%f7PZ=k+GTKMVDDOw<>HNgxxC4NH);)&PYA(hx6h7}A z)PfpERQ-j(h>grSpB7dj=QEvTZK82VS!9KOcu|e!;zh-xXFx(QDh+13F^RSILhH=N zL?m7Li%WCSdaxB|U3eegw(-Splk(@`(7{gr@N;3g0yZ0e@U_GO6jBmt&mJHUP(fgf zPH9KB5qCdy08ckWv8qIm3s%iQ|G>lx>}xa=cy#3ixAv(v>Whm>iS^JH=0miap+urk z0-+JvGO5}Htlnwnj6)0<7!!zW-Kyxy$^_%=+0a*4Bi`Meb^^7~$Us;^xJ|;WYA5cz z(T4k;+mC;2YT_h9B(Ra_^M-A$U;q%M*P+%{0;ni4s%#WT4QM2QvnV)IE2xv2d>ZAr z1At5sk8&~9p&GZ?4>k{8h(JJtePit(RbZ86p^OY^6&<@E8jlRtxSvb@=ClI4cxG*$ zSW{#ZT09}1jxS~us!#ZX5KVe|cy+^))46p`&>@M0pd^Od4`*%`!l5YEU;0~kf(g9! z)E7zl-NThXCA=c9Otd}$U0yzS2VyNPkVz?&XoPR)!w`85ZVT^1YdGY?UpBVz!`EL> zis~FA>iZ(YI`wQhWUaO1cPH?3vIHhwn)4fDV~Ztn)k)bM4xY%Q%gcjkA%GGTuK02w z84DRFXsL`r|3r&L4Fc}jqtJB;A`2eUHM4w*bn}|Jmae`qtR^jPxOfKM-q(cAW-H8k zGbE>k&VwHGwEAHnwh)TZF$9`2-LsO20Y++DR8ejt09b^>$OJoGjypN-0pMthF-iHo zLDs*FHHS;}v}9Pie7lh={`@HpzRt_CYKZ=WDL?x>nQN|Q@})hDjQ%GELWqaeZxpm5 zJ#0F%+GasxHYgg4kpn^^6eYJ;2b0-=>%VvpHZ?}@=v`|uZ$&LS4|R`J{&XQll!F1T zXh!mn<&qM}ULSq$009Bfb$YmUSxz`29k~1d-p8S?FfLeX#G3gf=<GFNWov+(u!@3z$(3(#VBe`=xXwywcdjnON$Xv zRLF?-^uQ#GsG)Z6MPxzz=&=A62x7@$#|@)6E&+hK0V}4dZopB_rPg=%qrBK@j$ePa z8kFnq_Yb=V=@yVFTRds8vq>S!oK}>&tZ>;(T*Bk4a|(0*ppP zJpn}j@h;+_2v2n3duY_OUZYM#Jj*KR^X)KB$wy9c4s3QS{&>fu`0X=Ixb=p)So`I* z=&b9YqjV#K5*Z?p|Ei=a^6CxH5bb8RnOSO)6vZiruwABUB<~R|vsxxjg zs?Qg*MQuYY3@McC^cP0@&=c;qRBx#2BE==>ii?ow>=6=uUOFwcid+qW)i+C1e)e6d z>Ba?8?t|TZ&=7Vx%o@ZHq5GnK*tn?!HFFDK&0)nsve4Gthk?)l7UVjxGu9)B3jQxk z6X(M-$FlTe&Am8S4UiiJ>yCu+y@L0`T}5zf~N$}{+I zQbo$oY7FqM26}xHJsUURIFREO0N&WAvVfzEk1{F!I|KlWw(Rf0rOq;R^?&$6@}o)8 zPz_2VA*%sF^8ZKcqL*1vjO>wCtAW|9N6({g;=2#lq0(i-&p%sD=BX1ANB&W18v`J} zKg5e}Fj;-xbeQMOhwot9Q2T>Hh%PrYMa76WH6q7thKbesizGna4r<)Rc=W9XG;{<} zSztjQ0f4NQ04Enl;{Ezej3#0}Q3BdE0ItP-^kKSH2Vaeej@C{FVtQ~i$ zSe%2tLok`hh0^jaL*DVuNKuly4ZFV#@dP#wK!>)TAX<7Nm~I?CO<}gff&pI;kN#x~ zrjeV)KJ_*=@y{dz?n<4JFKtrf-Yl)k0!D8jH~@{T)x;J4OHj+brN$?)+~Y|AIGivL zIBohz>=78rFn>YIhE4mrISbIT>8<6X8^Tc^LM6%WgpBPYMNazGSvDj7xUmJB8hp6x z@)`~T9i3q~N{xsdL4-bC(l6hn7vX6QbL-EfmKcB(9jSy21TX_|4yT;pH0(+=FeQ}Njo9espyXPCRZiW??EiOT`CjyNl!5>&zqdwu8 zMSc%=JJRo$MyElj-$yJUjA;c1IP4C@$a<&m!(ATMXP=ctETBw??cRf`Q*4NYb!gfb zBNxDmSu-7Y;>`|RaZVAe#9TDKK1jqGxQmm@JCN8M0}(zFDmPopTiV$*fc<-eXz%P`;+s%3r z55~G6ns@L;P&+IWc@$m^v&Ei#&(uV@;{$+ z*}&r-0GOnMz)^|`TuCe-yrscQ563}#an*Dj=omhO^^tzhX!{Go@MO5L#74^UhgbLF zwWc_3S(A&}id=MfR9`s}2t$sL#UkZlc?2nb!tw@W0tcQ;FhOAekgwBW<#aRdebtL- zC<=pVj8sULk!ZE@q@CFAy~F^FDhLqGXQSvB6AQTW!3LZ$&xz8)90Gta6q9M#DH`^* z^R=%(iWpskg{ZbB#|(FW2%!W4-4*xYfk&=I&9a&?K|n~lN3r^YYO1i+Jf`xe+tLIv zkm6h`TIoLC`SczX>r5!tnmEui0AMU2W{q;o&y@d`i)+!?6~O(^HsR8h#dy837aQJf z#My-|Op^^L)0p_umI$-FfR{xKuQxE7#AGms;(%MMS^Pnq9&{fIVABtLyP_Ai`n<+2o(@Y4hT@ zueD-vu?FiFRKw#R^7rGt{XA(#iRln+>g0X$Y($*aW`-fp4z1lxKoI9(FrF}KFD1Jm z8U1H+V8;QRcGjH1yoC|%BZU(kc3zE`rQb$i#H=L-9ITVD#$SWCi3QxcVJGgrVG(Bl za*h*7ruD|@$?EGJ;IFrR&;xI$4|(M-luXG*3n|y~5(_pS^y89C?#3N=T#2<;%|nDR z*wgQ4-7QFmP1g6%#s=_Yqjcp@FQCFKKP{}72x9@cHnpVLckbT``f7a6=H&008^oAT z0s;8#VN!lz#dH@we`+}g0;fgK0bosC39kL?X1o#bpu|y(Y$8ji8JyS9)UsPf$)60AP{~>W(QBGup9Kzt~su zY`C~TCddEti4W*URd~^k;DDrM-F@0*3ZgPv&n}L<`!=OtslznP-Jp#|gBE`z>)+*< z@zaZ|QQ)+qsVBgv>SA-s$)vOWo9ZADD6o72HkO7R#}bM3jx51Ynv3jHN}N==DYs?Cb`!eeL`DaPZ|fk$1yd z%$c8$M;_mU<>bF#oSlnTHDO$J?FQVur5=}^TaD5wF8FmeL`4HM^qmQE>J$9|h~YTc zr47R=`aZ3!q3x+)tHARe*ga(OwO?<-ru`9|pKF6XZbndwArX!7@e2uCgpaDU6Sm#3 zdaA&BIr;{oczNd`yj|ap`@gXoKOU&T|NBcFJmoUn@oX5|y|~CyDEvLx?NDU=k?!JU zy>Yc(fI*|<#YY7#&xpLVHx_!B1#DJkxw)BVbsAU=*erRNm8w+4Pc#I8PiG#$#De-h z(s?!y+)vq?JD%Ew?_OAoGo}{8N7OjLV*=tRR{ZdapFZMtaNA%XH5=nE@+v$_AVCA0@?3%qTYC`5i%g>$UgcI(;5`d$j~M>Wvc( zD(z-2N35|GGMf>|Ao9vR2|8nxl%?Pl30Gq}-t_oz_bYv!D|BvrwZMWcT0L(6!&dy^fgQN~Oee0mVi77U z)v`KWEdeCDJmh%{XE=!z6G*7jmoc%Cn`9-8?(_ulpAYW9Kk9rqlO=CSc?ileelMB2 zg{{2^>EmFx^`g1?#E8^!8t)zSV9NpGIXVF^?QFr-r%l6?Tf6aUod+`)mOwe!g(9mB z%XJpKDFrX~0)L0<%cq2mF}bZb8oD&sV8*poi=gf6f-fF}odH9X=U%0c2%9n1v-5Gu zrxO6gv6(`8CK~C`|Iq3yP^lRQf$cTD_|oaq=pjg1mNCwwjHc$pMHWUz?HSeP_4jll z`h!vY^^N@~uKX-7aDyP43`m4y=zVn; z0`(opo>c}*O)*b1juQ6`?N|HwbuK$1%!MFeV*qf@TsMCHbPFE%&HK2PKC_n>VjybZ z_bxFIM69VD36B@DKTOm+$$BK_eyFLz!9X0va|PUOtHlk!*@c__un!K01#6a+qyC^e zFlQhbfzxb)iLSNB6GmW98!9a#$_n*3a4?8NVh|-!EzWh>P-)iSUB4f9|DzKRz5X0N zM}RmZ&xAz_3*dIMu1EDzm1S{I`Qz+2$<_+QX&8_(3KM&#k)*#l}?Wj`R z2rCl5rxM*m$v}Xjjlf5E!fKkVnpq$OB5L<#Fe)i_vnWL9I$zk{g4MH1aNX&}xbmJI z*c%I=V&PP@)i+|1#f3Hk*+$@EojRt34JxY&CZwuJLc%ng3+qZ|f`P!cXaEk)usDk= zJ2??+YfL&LD|0X9iT>>>rA3k7NR) z_{^h>{TvA)>K3QXghw|w;I#vBuKd$W^3mNN<`1fRE+ttqEJ@*kqy-a3xF5{YvqkC~ zK<|s&6~+j(q>PcKZejx=LDY#ng;rzG5C>HU?bMd4H2JOiPON*b3DE^UXv{`Lq6$}h zsl7)HIwl9XE6M0OE9_w~iW~&|K8Y;93wM9L78m^BbzJka_wm@jk}EZ@Vh{wFaxxaM zXTJx5eeI~3SHKy-frDz>1H_;QG#V5b47kwc!rV#;yE;R7Xom+q0SQa$Taa%z(_%s% zt!-KZxAd$)NtRK)mOcW~hOPl@+}Volt#RbjHGbCah8q^%g~}9Pm+an^#W*7L)cXP| z09cdf=nqNwXI&?^{&r$1?=|}HL9+*|W;prsvZn>#t(b?t>zD;5kPs~bE6jtw-abs9 zX2sM0xeV)nwgqc{x($E6NygdpOQ6>nLFj`*gB7pz`tfvg4{DZIpgJcPe~V9l}I=wg$WFNc(*w~iZg(itRSU3Y~DTgTFc6gku_%{`Kofs zB%5=HZrfnhnGuje{0cM#fU!Uf*%k#pa|r&B79BAel};T@ES93xB0?@kUl2l}TZind zENpqF2XF3b#q6~;xM+?8w>;8-H*@=N3Q_rPYL|_UIW@~kZITgTJtoF%7>!vl8_j6* zbin8Lz{08+vBqi?K#k34vot!o77em^>7WP_0xHuh7*8^QqbSNKeQ>E8%m9Lws$%&h ziY#8nwl(>HFD)y=a-z`9J*wY5TC8s(@xLLTfA}``eKs;Z|J>b;O?C9ZF3Lr9o*SNI zrXOQ2sbf?Yqm0NWINT6vruZ79jgDhM!{q2hDH$Ym5kt6mQ6&LD9iI8%5Kf<)gDjI4 zkyLfw)DYqktVZ1+2MHQjg>t=su8uIK*V^&uZ7Xrz&)&o}ckaM{tykHTkCeb+(;=V0 zX?s(EPh-AxW-%%^x1*U9AX~CwfZT~Js}^x$70g1i#Y7ibYqX(;5YkWYLkX4;B@a&W z(H#sTNYp)t5ZplfW|KnY>kLrrGWKclQ-@;WVB`xCKWG5}x;orNU{4FbT&J*@as4FD4nvi_H{g}t6zW>YR%TqX4QM;{;X zQNSS6_1IjmQsfm?ZoUpBJ11C-Z}`4L!-`Ye6KT=#p%I7^7X|`7-Y}L=E5xdrPP|&@ z#WQd9;PSKb5eW?S0x%FzG8&#<0Z0kRkckQCNs$-`6uZs%%Xe4e_P=k(zudnc<#`%Z z=uBjhnN_!7TjKye*w=^Erxsyxr5zhKwPS|K#^()m*max*Xp=Ec7B%jjA7zup z&1Y^*LjAnPXd-n^@IHMeQD%vW>ND8OHOc4=M`6{Q5toOqC#pyYCXcu1MOp+t=Kzy8 z_Nu=}X+Z&B&OU!7{{GDC*!X@6)}K*Lj6y)P%7vMyoPxGn?}e$*&D+L=DQ%3sruMPQ zNeXRY%HJ845Td$AJ zW!C@u7nCMkHj|cFf97K{$+X~ONxG7b1r%&y^nVX2%R3F-m{tr-E3^+<|Ixok8L@r% zcL;-HPE*W4we}+$!H#2Pz}dC+lQkc^m*9+SZ8q(`~3IGNIQ$6mcJ98-p20 z!_O}RS~&nL%-4bOilVvGlV2<& zE~s#r9&S>SHrz_Uw2cgj+b~R{d7OzX|2@P4u224a!z!$5K4u@_ga?3hpM3bxo6H?l zNma-qt3TIZR32bHajPeaudmL>!YOWTi)VoM(Wg>M4{!C;2m2_8Wdypg1$B*wP}d1u zwKN}Yn;AX+2%SY7Jjb|_0Wd=H8u@q_Ii;}5m~H}_hd}L57tz)e!m^pAxO_n`{%$bv*n!k%CVPO{9?Ek-m&;?So3h{9nW zS@yFf==UqkrDNM;YVgyjx-t<05Z=oo8j%RaNZGV7^7^T9L`l12^l;?l>| z;F_;qfdBsA$ME{Dc6wigEj{fpyK`X5wey|`RECgf&biD^dQLME((a+{J zFleBU8xABi33>*lN2Iux0{~&MTT#Z07#(vt;Q`>oiYO@Wur*WuWz)zKE}6k6q#Wz^ zkG*}Iu0jmK15-|eL4cnWYfFO~UpS>ahbxghnzhF0`2-_J&I~^`)%(HLI^F0!6+}Njn}&A}1@PntUepw~;__AHLjaJb_?+dYKdOS7n#CXAG{9jq`S96%NQt|W)VDFB zc7L~e!u%dgnd-*;sd;$dl`hOEw5V}#=6NLo@>>aA*LhlxE@g zk2T`)dmo|S(ZFjqjwLQq_9ux&?qRN^`>-u$JqRpU$cIlrPD%hE^u0%?jT80OXo{U$ zeCwQ7NTD_r+MBkMdE9DWrN68asoi$hYA0ODga`&)4IgSL!jf$cFjVIoRJez&aJwV^i^m zjM&2npb{7WBsdGmwHndYC6N^mVSAt-Q_R4BK2eXScC_L9pFIU%KYup1Hot{EeL>6s zF(X=6yYx7f+=wm$ke?42abvy}6%h{sfPlae1Un+p1gvH)+yxSPy=pJpywhu8uPsB} zU*8|*NIdYyA-=x)g4M{*&gRSh-S6T26|0b!YsU7bez>#s2!`ld_BNtOr-MXRJre|& zF|d$H55^U|;0xi5+0~$fP;tg0;FaMSzY(bA&duOsKG+z6_Xh9b$0(mB0Js2Zmenic z?Zl`*DgSk$s35TA+vk*_)Rl!pJp+ULq+9jD8g^s#zD2k1=4V{^4NT#F4>HBW?4g)d~3g=`MWG9K!kk{uZt~ zJC9rcNBg=l!(m||0rc8cTff$6MJOQS!H5y_b#5$^ddW=67@&(wj4Vc;cKt(vl1NO3 z)2=GozD6(di`=MSK0E;c6Nk}=4R5vJ&AlEhpYB9^w+Bc+m2z-!7!RPHWlVzl?1ot|{#`>n37}Cw>KC0{ecYhb)AInvyIS5^75DutOC! zPQl9hd5IL}=Vb&UF~0D-DGwG3PL}T;if6FQ_4FaLT2VoekVdByao&t--o3VQw+HtS z8@Ty`N|*ec|IaIMpd}Q?KJumanO(Su&YKrbA4@|Z znHlTIc$}g!3AQX90g;SD`#VvyECRRKgL+mYuwTaWAMC@lvK;*HPrr#D-2MQ3Q5lOC z&BB2;59;@9!xyi*95uBEaOa<%#bR3?w0Z(SjiPo(vW)FCM9va)*c9nN9k~|vWZ|Lm zJPUSj`v5J0K%DTN%}PZ65k6mR)u5RgucPNbE-1N)0!E;ZUf8B z-!|r6qi6sjFXLA%9rI=Vcz001ZS=pm)f+~!!-UT*ELP zMfCP)5lckS&>Ml3P-&_=n=966hck=Ml%E+G1|G3=l5iM~m~QQ*xcVk#?O8h#iIITA ztA%T17_AAMH*FgF!rSrCmJa^;Ef<}_D<-7|NXZ$1HM}A!2ICnlHMhWS!CU0oI@o+* z1_xN&|4*+rp@gja4Qpz#Zczoc*7xDj_v`RV9VupOBNo(@lHZ(#$lLW0gArUbr2L%qk zh_FEiM}97L?`^@Zy5^xBCHy+unq9?|za^qU&hQb`AG>_=3?L;USWvEt&c6}k0l-LM zgE1K1{_ZgQEg+@1IrZkIHPsvhn!2LusM2wiU%)t4_%MusTmNKur#}`!hd+j?E)xpv zmQnZDBo&@qN4Q<1@S(#}fV4&f>Li?L004Cm;)o&jY_bfEA&MNc8CTDlgTBxv4g!S^ z4ZgfmO^aqgkWRiwi(RLJglruI1f%Gz@5JeIr(nYi+fd&c#vlIkYGemO`1|dTLSBC+zIDkm zJn-Unz77#H^6YQMTYq>GcmD8d{QbGj@OejO?XoHjak}YmhrKXr)f*6|8@lG&b+A1C z5B&Y{H-TK{0^m+baGdKSJY>pWVjQHagM|v?AF~f|d@ul2F{_gA=8m>Ysvt;aKPmZx zzh`UmMf=D74iUW63$y;0E-1#5N+*9UjymEmO_bp}Hxa9!l9cuD_h`u#(V{mJKqmpf z@+mf+$F2qdhhGr4{sXF2&X`AJVxnZMG4dS4OMt0s_I<|WG<+Nc=FY_f+qU7iueQQr z(cK8M0U5m#ao#;9A`q5118{29lX|11IF@|4@~5M>bMGJs%qz|1b1nSj zq6N6*?#*b-C+*m*T51LYp4U1ty(}O5$ofyCrEOp@xBiF7CD;(^!5L-?%C$B&fd|6M z_(N-10hEL99>nsimhty%&z_5NivfSX>uF4xRe=}oe;Mce_)09DQGy2uAii?T3UszK zBh=|ZX-hXQJ9jC(-EAYzYZG;NFV>AVQu+eAcIHOpW!q3WcN$*4ZOAT>dwN#6Rp!*6 zDgSc2ggqHgt$f@Az=#GOVcb%XhaVt!dhYf5pW5ZrCF} zk8LyP)D+ZI9zUz9MXRqtoeB)I3Jkbrc@?}Yi!DCnKxX>)qx}wtbp_Iz$CQkX01fnO zIej);6!eGG2ec&D3Zp>>e|ir<@+3@I2ZCy`TUHDwWwno5@34~Dkuda5iV3i}BVa{w zt6eT!HE$MvziB7__qirm^d_7!qXHe?{*1Kb;Wv%t7cel1#S}P9M&!662nFq^rH?l@ zZpPAzxv=ETCPdhVJD%E!@&a}E@ST^;#&52gjjunt0|iAkG;VHW0|c<*niX)0E_C@r zcx!7jaxLVx1v*e}>I8^B|EaAHOU!XBv)Bl1wD7Z1YH8_oLX!Tl*oWC_M%%W%h+e${ zH(h=jx;%dLJh6%Va1F8|ak$-1Jo%HSaK-PwhH#zu6#x*dW`gNP=s&8Fi@_1QQz zSu-J!kdP1>Smm!);UYR4U!k zr}i_4lK!$`_?7)U_2Q~!)vy`$X!EN3E8|&mW&CYpN%}bl2xyou9*qdt)9rzU{KF~k zjClf6^jTCbF`N66)$d?20BOP<;1ic&fTaxOpUbTO+#tY7I@#V4!t~sH0s#qsezy*{ zJzdB5Sv{kS?%hz2$%qO{$&*Vg9oA|GAfW^h2 z^LN5S$~4_z#tfaA+ydQT>h0ilGS`Pq3l)xH&;2jq>h-I!{^tAeaAyE3rstu5ovdMq{+{V* z$92EoiY2vXIOy6Nq#(|$D8Q!81U$EbgTT5qGx5xGZ_|+loCUnTqXRdts=}2E@;L}> ziuqhUUCVf3}47f%Dm(CUA#Ww|9t-vT>s<$Llr51f!%~{O<|PP6kyMm z1}w-j;<`&#qW#_%2>>kEb|{21u3U?XP9GYRz7m@!X=lWbegdD<3LSW(!H?IPLs;{L zbFpUSTx|TYTKa#ZN5bm7JXBcB#88qGswfICP5w#ChX(*nGMaRxWwg^~sv*Dqk7M-c z&NkyKP3MSZJs1n<=wRt- zK@I|6S*(JTRr}^>sI#g`eH}1b$*Hg4IY?*&l(c z$bsfP?R=dQlS_@$?Rx4BxT{OiJ)jOA^2XU50~)+Z%HJPJaOMB?HRod^S$`&5jpV2F z2Qb%>4PQ(etoM+hHi^Q>XaD0a5O%}>p!WSH)r1d*I6@a-CXWt(?6>tSyn6Y zq@rfbw4167Mf!26MGv8(qCh(*NVjd{Zs>H{Z)-Iw00db9HY0wb)0lCvD}=9|RfdZE zEF9_`-}+}p{0C(WMv(6Fr>~i?O4*7&0i&oVKX`z-v^>CO))D|HBY}uLrhIZ8@RIjq zwr@n!KCBlu%5lsxvGRb~Hdf7-T$iXq53V2ci%RjO#R)v{Zaseb^d27QTRzQ=o_+}t zX(&%XR))F-qmm4#O+;;F7Pf8+ph2;sI37h08%CVE5HcVV{kgPuT$q=I-E^P21D#+~ z2|VlVhD5aejEcE<#0R@289KcDvVi6DD$yiF(Y9$bKb4j&bC#YIi=L64 z`U1!?FV3-8(MPULJXsE%^-eI`2N1L#;hSL`(Z0Dfz;a#gE4_ddeDNBfGPryi(GEZ?(V?LKe?N`nXh_$ zcsU{9#;FxtXAE@DV#yzC7-(WR3;Q_bqqzVh@>C}vLkfM{nEMDq6<-u(EH{A1395_K z08)wD#+R0E|8g=eYXIJr$mB+EK*Ibf*|=a{Ir;+83D@dpGHxsYV}nJiD=(5Z$S;^s zk;`Jx4cj;UaJ8Rawf>q35UV3m{3H39SUXtvWloO3SwKuu&__&QaZv@IO^3wu2?(`K4Lb3XjBD(q-{uVTZz+*T*T2G8bEKh8#XbBP)3771o#HJ@Kedp_Dgmg z3I?&Ivjq=zNdjn!Wjp3Z@&w*>HI_7_%UxWTNYp|oK5j&fj!FuVEmBjIi zu>c;g2Nyfo1{rNp85UNLQBgA#Z4LuAZ}H%Y1% z5D-`k@*qcJC?*Bp$53wro9!B@3pYzM%{E5Ci(+lp`bS(cjq*b0~^Dn+;3o_!({&xljW7tAds;!5J-T!EpapOJejgHFQwW8$W*>`@5ty#W`A1&;(Z1y5Pz-pvNB_9^D)KzLBlWr1ruX`=vW<=>a%) zQwKvBO46^E;xKDi$v!QQj%S{a_pT;g0Cw3aSLI{Q3sEI`U94_^(Lh$vO_sbfndU3R z;feO6!s)BA>OR}|J;2Ee4FKw z{-gV}ELpxSJHFz?j&nF9Au-_!5CSO$LZLL2rCrL>HndyVZdn$3Y`0xX7kX{^w@aHX zJ)ng`I2uAY5<-E5Bll$|vE$p8ZOM{#-}=wIpJdCjoeM&_P1gU1EnRSs>vmYh|#iwD`R*j*%P- zR>_=@M-vFjl(4$#(WIjBkwCOHj^(CNype0dYjgrvdRzz)NQCJ-st8e-2x-Z$vyjre zbU9dHEu!Ddg=u6E2~u>Exd0CwI)+8o99)u@OW2Ws+Z)4+^ck5k2h|EK{G6K1JSnMw zKN&+k!t z?5;nz`f%lbmP_J3$mXZpC;Xlm7jrw zFH?4`V!B~*Rt<(sa!D*^DW1Xg3G83l5`yHrO&k2(vnsnT!LF$_ra)hv48^zmZ3tll1V{q8VOZv?w zM1xUcIbjs&^{6wO$v!Dy%qv0#f&0U)$5EnDU{$^qgeMpddGI_PgK!N9)%iMl!sAvW zkeIxh)487r^x=e;RxUb?{in(Y_$2>VWHE{@F15`SATZz@l~tBn@!dOCp; zBLOV0SB$m7no5#m|DC|k0N@S92>@i!&_Li`|7j3Nr`3x5{4@NGlN{!U z5_`uuMtNENAaG^gSYf1T%%2rPcAh?VE|wtaE7C>lAHARHKo`}CU>9Of9n{Y7{Gz1dOSfOaF9S?IT5`p3=Z}QRkJr%oC=zj8FfxL7^78OJDgEvAd3HA0$xzX`yHhMcPc8~~ z2GT^s_ILN}&C`jp-*gag z+NK`ae^28wO!{1gFP~X&FVE`FCl>w4T){R2c&5tPKM?>-;nAEGO2DxRp4s5yq+YvB zFd9W#VFMAw5<$!@E<~a6eC!(R!nXEdqWX3mAtl;BtP%i_r!ipuj3O+rEym#P4)l%= zW4o>fmn!_|NCm~x!XPkHZ1dxqO7I{=7IwFy;=+r0L-P& z{GiH)KM(+H?;F8BuNPMY6lfyfU1uU+TPCfs5GD{X$>g|R=ErjZV6)DOl}ag~XVS|s zEHh-B;5#vvsQWW-{Jxp`ue3>1@ZHA z{kRjZ!yklMt0Na+E*2Gf@Ry@U(C+l1gICZIOO*}d&7K|<5#1);7V8Y|?>PW#Q59;* zudt_zH&k-z(Mj*mAm80X;KCHXuyQt99S#C`2bS6$m|IhU%929p$mJO5AR`)b<8$N! z>{F`n8Ug(akvMutkxg{J=hAV_(Hd|l6ht@&s8mLAmCTFhygC?l8eFO&%b%klOCBVP zt`bHfOhBQg>wkqzi5w#4ynqQiG>U|h?xS3q(V=Uyv9AYP`t4XZvmDiWIo=!^!A5rs zGfDZaMk6{0>@d)GR2a4N9SItO@`KeghPU+oki&|IBIR4N;8t`JJXDVp$1)vG@s6Ju-ue$*J9uN&0>whVT(v6P_B(F#-j|!iOC| zM#Ejfc>F}61IZ|=Ed{8y_6Y!}EH+}$6+|!`7h7vsNfwkoE0?yn9LG^yREuI_Z}zNf z!ySC<C!of=1Ox}WhH!r0AnGb+z*0zF`j8ZVT5QswUa!J#Zv?N9 z`==sTw~}{m%=4%T!8vTKUa5U6BSiw@(@a0F5T;ffv(?A~os*L?a!ee%y8aC8#LM!+lTe z6(I0;=NI7SMU|+xSp*O`eBnt=GA5+ePCS+g&nLJGNl6K~n8r*z&^{c;)}!64h$BO(X*5{^IT|f;iORj--HCVXUc4L#<3_TOMxGkW_?{@ICDUU) z{MZSd00AR?uF+=aD6{;<1hU@W*$$v3dUpZXzJKtgaNbC1z-q3XBFL@R71ksch5C z1SIGWrC1C?PF792lmpH%{<5nZ8}{~za^L$dUxeZuX_>7knUib=a55!5<*dcir2g5n zw_^oFr|{V{2(XN}k`uZQ8`T;C0E6BT3~D7Qc{i3-R$_HS14c;k^n@7Ra7chaX|7o` z9@#t6jhE#!aFt$za8@#W2pqwWqDHPnOH2WUm`x#C&S}52`GS(=KPuEx1^vh<3RMc& zv`WDS%2g2o0;Uoh-Wce`XvBxl7uRxg032}xSJCl26%OMteYcJ7<+058OzJwRQ{8_e zu{acTJZ#&y^h$XLmlj#DVaShe5U3FV>C`%*{N2P-czL-cg(ehfloJ48AmSI+pZ?qy zIsqa4IOIbEz=Q$AlbP(iW_FxRB<`V?ax->4G3Jez7fU&55$#p!7yLfJVl{TemA=`1 zt`LF=x{yk(G7%jgHDmMYsSzEc8`?fFf|{}dJap&fSaDt(e)IBP{Cb-mf7~&Q<{Aqw zpI3m{Gm2ofT98A&p3^6}2Z3lz>PL`q#QaOTRHH#&L6{@so=^mRZXez_+>ICZ*u{IF zINyd_S1v%Vn*7oogD~;x&@={I0ZvGgjaSX3zdV(J$K84-1^-Tn2ZB8_5B6yli{FZti`s2qNx+oN6;Uhg=JHB}1{WRML@Ha-xJh{U1Q z4fD{mvlVSa9oS=Q#Q6lKJ+aVO!VDM9_=#@Rs6tTb%xLjNq*Okc0^XpHm;?`DEwpjT z*9vNjFc1r4AWlj>?8D4N40&{nc7GI?H!i}f$B)3*b`bwiRVNZIRIVs$>GLng^YE#d zixiUqMJa}%jK)rajz`8V)(L=^y@i7=xV&EM^LntL)`p$I1iI8#80d)2YuR$ zYH~MZ#7P>+9SKCG3#XAOF%tJ8M8_6RElaQazs>-X3dNaPe?}1=Ev#)<()LRB4g*9p ztICXIk*2SqlBHH}v5)vfME1I6v(a2%j_oZycxn4#Y~1M}#dTngtqY762eKTKc34UK`YVMU5DGyG7=G8V7MLB&6iZ-`U@My;9xo2E@gSTQ}e$r z{}j0r=@XVAwIFE5Ou{K715Gz=nVj~`tfnBz@k+oc_n%^r^6^D!U#a<}1Ol8b$W1y9 z*&T5B1Ng+{&FDFN1lx~}qQ=xiTOmf{LFu0G41(W}TJo1Kt;oZMqdv5|2Qc4K0Ha(1 zAGwif5a0{prE6X*_aH_}yCCt9RWrJ0Zc8yP*~&y{IRze!}Q2d-vN_Q zej~3s|+Ax)v4 zsiZH@)eB25V*vOmDZO9>to;2We$1}qTOP*AM63@_*8RBMMSi4O0KpYa)%bjCC*IuG zgDnS#@w@Hh)Y4XA)u1w8gBkRgmor|N&o%u0qjUqkQ5@~{V<5z7u0TbB30F7Ra7kl1 zn&(x)8wjCySZV}VM3&$g`(bo=q5>d#M|{&BW4f|B@lnyjDF#y&u#&`2yH}}_m4QS zMQ6flQpC^{i{$b2V69q4)?I;KQvAxIa_sfBAmr+RN}HN&QkMW46OC+*0E0>mA(Bx_ z26H+G;UL9dPKy6FJ#L`wCQBha1Om(G{T<{|6hwo>CWyhLZibG=icYH$DZcw0L%2e% zz#)2lh}^mY+APkHQ2ZWZCNqnT$fMsq?&Ba;4lXOofh!~#C$|3HL>P{!0Hd#@&*}e4 z41kwG=RS>W_G*(d*?dUFKIeVN?`7>{w#f{jmA0A^t5GZ{@eA_j-#=o<)k_;i96)v& zA#WeuOrJd>fS|dtT5M~&hj65$7Y91+*xwUCrz4DgJ$|CG6WImhfi*{kW%Xv9S8c<* z*<}I%cw^}%#pkqNwMvOxgBCplUi|g=ap`1;`uDoLVzUy%;24EGgMM?)3QsSIs=zb@ zkd1pqABC})K=sEge(J>&T*FB-AF037lQ4$dI4n6DywmCuAW&UXEM8x+;woZXzs8mp zCz@=>vCuXX4pQFC`^6>FB1W)tCt6)SFl%Pxe7PFKoGF*4LMdwGBj4sibp$VmHE`2! zFRZG9&vg{JIyv1N1&)!Q&y3r^0H7~`S0({CujXU579plm!{K&{PBd@RqnTi0B>@0; zVzChbv~pn)fl)|-v4Cx!*@%}8ABEQA!XaXj9CnE@PI(S$dZfnd5eE zd_D7}_dnbLW&5HsnOh01cGmWeXR-d#XR*-Lf~G1Bo}?T4+OB?l`FcWZofffFFerW! zAW&q)C%8FC=ZJKJtoeCZSze6GFHB<87eqfPvV;8kQC|S@NCZh<1D>=qKi7c50t;+~ zd7|Z&kNjOC&cB5#*^dU=Fg0^#K&p{QFq%{jrObalKA@K~L~BJCWcN24i+;LMHSwAyS6(%u2YF z1Ek=@jEXC1haj!xiekIDZyh2a_sxkDD6N`%=O!x3AO&EW6gy1*i!>rW7PcGS#;wr41smJ@>z3BB2 zL-h30_e(JxzfZ=FJb5U&D7DbPK z6XYHw!#)&SwAkcvqF9}PbEt#9Cyo^bd00|ig4OeD@Y7d!;*EYkN;P^cGv&fTtWPbM zj=m@AL3hX<&?)g*oI`SY41f!Cq)fa|V|-fg?2{O}0a}9r>+b(LLXKl_A31_ME^%V* z|J#Q@ys!Q27!2Jd?qy=$jc7e zjXj)<9mw#}P>1OxMb))xmFODGtN!Hb6SG zMRZ^71|2<)=ZV<8QayAZ`R~X5QB)gLxN%_>nkq_AK*x|rOz)+A?RaM2pxAGzMc6_F z<56NF(mbg>BG!W(Qb-xaWRe7oB|h+Os5ax(V?PX!G+?Oxsl#T!3dU z+ls-xdl93X78-FwNlZXt(4VyA_hiBf9QCEC|HM1Q(R-;6QgZBFz9jscoF~q&GJxpG z`oH|fAsibF;+AVKL(_^IVExrkFybG=;l2?x+N@|O%Nqj%7O@aWs`xRMY77!jOpNpk zrhp8llm>$nv4V^be`q|&0;4p5Y02ej?RSy;L<&+_f@RB=i4t9(FO1yWeB65L*RXBR z{n*~_#{5E`Sb;b_Bajwn(2oVg9By9-0Rqq3kK$7$HLxhPa1qtc1OZnp1}lNXr>qwI zg;|<$CiK2z`1$r-_{;)7nrBoa-(VC|uW1n=5SFfY|L6!Qwi^Sa{AN`gEzw~tR2y&s zS^o{B(EbzvloI3XAN7;syWy6Hu#i~5x)n{RDz=DT2qVN6d3$zOmtcdx@aIYqhcM3KpEpzWmf`yZEt$UjSJ4bYJfy<*J@V9n)l z4GhA3%3KOx43smdcCg_3Lx#xN?a$?%s7A8@3-o74f7CS6nIf zn^Ct6(ai@%7GkF2rz`)M0T4SDesyMoDSS!QT6?s7 zig}>d4mX|KWy|Ww-?j<>(9*r);M>xrD{=jb-{Of)EqJT@I6gVMafN25XH9{ArjhE`dNPI`PN7tq6uAXs)UeN}nmkIpztEE_(mH zj-%K);KWOjcH9`RL=6Ez8?k`e)Qk-?05@5Gj!31Izr*elE?yqp?_a#W8+!(PsIh9X z$WjO=fsB%Tes2BtzNb5_{49EDp5zQ~z*!LG$um)~k4D>0q&oP>vNT{)Prr$t>LhJR zp5_@Rvw{j*&Ld?47fh8>l0RrE$t9=rQWzJ^MfYI zrn@}}VPhiQLFiPV}rti1AOyz->-}fKGn&JxN(Y11u(x*QH_nqjw9$w;9{ccEIix563m(~vXHy-srgN?=JeoC`;TCA&JdQkw0PHOgvv~S zG%!l^-7S(&S5}q5X30hGut%^xi%y4)J6o}_)qx_T3YVD55l+SskjGG_GT>OujW(}O zb`de6F1L$Z5pgZfpx^V^lT&d4+K@;rp}YSeZTI5T<>T>g*gxl9+91?5=figGC(!x( zrx1@tAy=y=?VcX+AGK>7izQ&oH{%cnvF^W~L61LzngTg)yX_9~zTMuBxpNob;)~D2 z(=TqvzOGRWj)pO}A~!uXBt)%|s6W>$u^W)i3z$mMiZ5F6B_`IAORh-TNHTw;8AR_cjKDE0_4ao2xRp9SJMYwsXUMyigWOMe-wv2 zaa8Cd*y8AfbH5L3=FJr|4GaQVr6ceJ5(uk;xU{+)gXBuQcC-hzHBJ;#`zd4+18W_tF15X@LCs41VX-vH(Af5O+={;==M%KZC&Bib65bl4eqzThASV z(+h%Twg;PX3NLN-<*8M{Gbi~o-GVH|O|OTTeI1h1>_3%A3`HiUGv7WUmDOH)>4nJ2 z$wgmZ*Vuk)^7kX;@9QcmaQOuhm(PToLGlPJilrlo}=tf>f%;&_50}>p**XM#a@;+``v;;Hr z3ot~!c`%rPs43Kp$ildJ-YkrGJ@}x{jak-Ggy;mliHO*im6f3=M@Oz(h`>ZEazcLj z&H=LOQCwYA2D3_!;jjk=mDB`f>tGK|bR%z`*N8|onzsHd6UxIr?iOI#a(c4>$>g(i z#Ea=K27$`c_#}^hKGl!5=V98!ah)nJTj+IXd(5L}*Q zs%~uJZ+S^^Y-S7YK7TPD+p`;+$?7h$M9^d`BNrekdhVr#1AhG>A7&Y?_+nKKw)VTx z9r0mTzaP%OzJY5R8gW5gv6u=T_5`HaoumRSMtgI=(gKxJHP#l94r5huKFV|!xT67)E^Lsg@Ii0@9@^)QMYB<8FyN5go_R_W z0N`&FQXi9(1Au7PlKC9F=>KX+jXm!a$?F-CoH`TWj1!I~C-`KPpYdB-ozR@W+;y+w zp5O2B|JRqB&CBP`Mp!JZ!{s_>x5*NJyPo{N?xQYr9&_WJ9xwWa6Zqn%7U9eH{{&z9 z!fm+zj(^5Ke10wceJcuSz^uIPX1uxO4YGnBynAc_jh9;C38m6SHA(0Q07g7gK7f?A zkcwBxFd=aWS@D4>ee~q`YeKoQD1N5WCzI2>pCKIMiKnLixDZM$58%yXqv-NQaNDJ8 zP*XDt$B(uk8VRGgvJ&Q+Ql1uprL++Jt;bPQSB0jgChXp@2OZ=WFR+z@b7~aIq*z5c z7L$oUXj-E5drkrY6S07=E^EeygL|>Hdjwv(HjB-9(8@V$a9pPpNu{Xv(<_v?zPt#> zeMHp*BRDcLil4rH5N~x2;HriSEJ!t!bp=CYo#If@uo@hVU~zp7mJ`$1+v`KZc$5qZ zP^y;`&}m^JWIozIf=AzO#bJ90R~P1?N?!;Mxo|u;lp|N8Gd_ZSLoQryD;B{_A011K zfKVo-n|NhPOzs2rHB89-R(^*)Ae7%3aieQs6uCwXuDtd(l#uVY;l&s6&kuYbkNxIJYs-G8J3T0+Sxw+xoEMxC^s+w&TK!;Bq>Mxk$>NKf4miNK90A;zIc)q0v zFWCEVc|j>kRk?7*$20hqGC3)30zEB=x$pC^D|Z=X|aSJsyk`^d+PJOiu- zz4)BdFMY=awKLFSZxM}2RVq5Jl$IRoci{V*_hXpY+DcOXQfnD0cu=?^dbvutCEEvw zQEt>@RsAe@!$CUcNu>AWdFvmeeArarXCZ;WuaMQM>nuvTkm4nNyz$2G-2J6xwtv53 zZn5e|w>BBp{^A4N`kyc1&-Y(1K%m>o3OtJohHHAMM9YOX~yx z5OYLHff8>Vup>O8L_=jUqH$@=q?h5E%0EBRdVtv=aI(cwG6SU91T3APq)~BBe-v-E z(>c3B_|`w%jOOMGaCrZIl-13IrMe7pQhZse`;v?-sHLn3&f!5UTXrcH&-oMj$Wo35 z!^qWX5a#BtG#ZP@bsBLe#CilQsr5Dl2n5NJhGS8zoH<*#23tCY@%nHtF0e)j1SA`j z$p#n*MpMC*G!V?xn+O{kdA)`FI=F{nti3`jt}2h;GNn773Bdr)B`tDZO;* zrrvMtdD`lyNJiQvm@Yub?apHHBua91q!evs zs{2oAj;Oic*gJrQg`;THl|o0BIGC8c?qV7U%5(;?HJB_o>>&V(1hK2#jW-WDVawOz znt4@N(^QW|m8HZ2+F&-Q=)B|D*5)SvUxl0N77NSYK5z^n`m9c&71qBaIE(>0t~(aY zhRu{G@)^?N3XbI>oKworas~j9?%OXZl(@Z8gqzvG+jOTMrCr9@K=L%hoY{#s$z+nR z-uY6oJU6J6f--Zhvx5LYg!#ZPaMVciqQaLa$bh{ykFwdfu^ znyT@S#!q1SraYk3@uVVg3Z(*Cof3Ak28VXp;gWl?Vp$!w?l_9W{R#Zr*RDt1c}?ir zdjJ-z6(xoFND>uIk~NT*R^X=_w&BY4kKnE^d>s$}oTDe17%5Z=z^cwb(_QLsm587tvmYHWwk86cyL%r5TyBz%zAiu7QG zxeU4F(2vFIeI1d+n5uY396qIYs&?L<$&bPuH@}bqyiJxvegaom4Be`J)oeCOR z9Ih|{o>75o=dM6bF0snqPWTBtjO6pHWVCA1q`dxlpySPUD%^kV zeXB5!C@FUbI^D`aAt~iotCdjEpzA(1fCD>S2#4ZmT55yEq{DCC@516)1-SL^)?v7_ z8!D{^1(g+|oo+H37LN&MKjd0HuD*R8cCTp0H`d*cm$z|sx(d(i=|yw36)P8(;xI9b z5(_u1RN`Qd6ZJEy#sOfOLqD0XKNU!1vx7-=Kau@fQglDc(<||VSB_ycLL2xx-R^Or=!`vtEO$ z{9K~Z3fO2L?nB5R;Pvs$ND^Tcgm3Qhgb|L%a6`j9RGD+|tGz9F(S95kTgy>FR-Qp1 z`<&D64Ko50-OC|f-%sfyKVOXn#dR1A4B)@EwP8k{9%cdnS3oixm((sMhL!`b*Ntdo zJZ~dMp~e^U!L*egc4-i9MCo+~0gefH!U4=L zo`HW}s=@E}x8kM29$aWGLSv3ati;1T_|w^g>4^?5?8+gQVbQ2C5b~nfXhnzsqs%me zeouvN->?9HU@VEtYUZFk&qn9q71f@RlnY{1>F~a10R3S-hrPzcL-m*mOAIKKk3 zN^)cex*QlD4UGBTW0xlDu%}YslLh}y=edToFrO54cl)qV{;CwW`}z%+;hlH(VQ^5Y zZ|O*VmizN?wF|JcDj$QRevAfU zLh&<2JdI0Th)qQjDrt`>$X$qzRca0gJSfX8#68VMJig};-Wrr*4RZ_@=*hov#iL?L zuC%c0<0EA)(rMr#77$9g48d3cMTSxYqXD#yxUqWH9Ly=J7s}5PCFN%TFsqFi4!Ln8 z;KG`QI@Fj8(C-_aU|3`y29ZA|ImK$gjK9+ZBpo%H&`2K~^-e!&JEPN|m{zb}mX*7? zv~mqu$?@lAh4S#>u2J&aq+d%92>zCChZl_%g?RcO_4wwqhjI6lhq3+OARf4JAsWdg z81)BXk4)51Wnx^*Oa`sYV$|WiL)}>a!cNSZk&o+dY($Phf*`IV|Lz}lL&@ExJu5E2``rQAd&k;wF69K=Yk6r$g-VXJto zs4T?t%NoUFMa3)>mzL3H6OZ|Yh0y0(Q(bx(NXLgAwa!6wMn`bIVFqkalQl^o zC{IiXZgS{yffCsv8t)4F-I#p{s;ELt=D+T+ zV|K9#%WRbbfU@o9@`G%4p`6B| zb~*i6URMaaOPb3~N3(lJJfi!~qqi+W^P8>s@y1?Ux&JkM>AFf>civ2t*~(y0riIy|@9_UeX})z`gzuDogY6yBD@%^IkiCe9zyZyt)=1 z*9dI&HRDbFPCs6?kp(dq`h!_Fq4tO}_nEv>5<6M-{eSfaC3oi%S(O6J{IRw513TZjAw0P*A z7ZBC=km7Tjc;OzzdA&&m3XS=qDG2-Ya$eGnG&m3pLaWhWo3kBy+UHXZ^Ta|kV!@Xz zKP=5Sjt-5jEZqLLuKvpwtIu_XCi$lAbQ zfWN03L%qF-j7oqt>U3i6`RC)i-@YH~?)^Ug>B%D~%r$~7f5%YP?9oKhHR0tGDg5cg z2{QMsD##ImxxtiE$I5^8+I8bQ6BUk=5=KK#QvZpr7=K099US{>VbemC6d2Gq6d;Nn zg^3g~A9F7ka#}OB6-V3 zOAa(T9pQqG-s{DUU$`9}8ff=D_$dDQce_wptU+-uPXneBYR0~B@^73huY9@!pXoqB zH2fsR?-=%C+u=TNdHfw~mtjTI3bbt6B=#vG#*>q8K|;*aO*ST(%0J=Vh#%(qdMut( zj7^(b(CZAKsmg*-Y8o_|g;wdmccg*aaW!3G9nvN0CmJHg7F39|Cc00zT$>?3z!&B7`ywv?mK zKPp*%NK@XKmr^-#?21^G;tUws*_4y_12|ooIGQ?f5&)QVJrZKkJVwiRvfsLJ_6?Ih z5Rb+>RZ6tC^|)#V>I$T;vl-`<_UPrQn=w2(j2R{iS^WYG`a8*o13rD}T=AaCpuy5P zRmzG&iL^MqL9wO)H~S!}gg6bDGOHfHfAui7>>0$IG7~E57a*sijJr-EK?76Hsd8!h z&laEWxF{%5Bd;(QNtGUs<84GElL)w7aD*nNEBChS!6mCcf$Mj@gQqv|g*z06rd|d) zQHxyqjnVM*nWPgGeC)rI?>pgoW^~XoaZme106*T;isMB6tMaw@yW74Fug@bE3ynk~ z=s9ozC3Q70^OR>OG^z3;bH!tERb&z*$fD#kqZakeQa*sodE4C z=)P+8z`+3z+BWqlmK@?h`$67(Lh*OegZ_B+`6Cv8ad@oJjh-l8YyoCHG~Y&$%GVvwTFy&)_rcIy^Sj8_WPq`iZZl zszEpH>2!*|TRdHsUWJJRMtY5uSi*~W{I#VQKYyVMy~9D=zNQIZ{^UXtJ?J;luTR) zu5IR)bJHSD2xVoJ;xF!<7$(4w6hC8DDdVGhwGu907>D}&1m+U*k97=B?ZddkapPJt z2fe*X*axNHV1Ry$*A{FlE)lZ`Pwm?yK%ggS!&8YuT&4C45OBmbVsz?2PFg7_ z98D5^RzgjK&}cTpU^T%&%3{dP6_16bCD56qh4*R*03QAAqj>$*nF0XLmSh3~D?iUX zv<&#e5>R1HHk5Ji-`=7b_Bu$82m zuOz2&M}jCVsSsV0x$@3K%z>3IGAaL9YCUev(csm69cbwvul!3hh0M-LX%MKalwz)Z zed*T{Azr)+__M)^wgP43TmoYc#?0B8eqoxIO$QI2&RgS5`tdI zGQ;5hFtjBls4OqTp|&1`NI8v`T#XrW`hfx)rDB5RY51Zrl^o> z$bloli->liMyJP$ss;k7Afja1PnP7PCf9&x2OJ>}$R_QK#bqLR6HA=Mn|B7HJfn%? zQxswV!!l__e3QSfSAY@&LN`|!3vAT&;9v|vOf5;81nW<%*D69|1yQO%8!y6JC zA5%Pjb_NlHRf$=P^>4IbPp4blxr>@-;;Y|z2*3aF{TLc_z?`EKaSokUdbH@w(B|aA zTv8#vBZtmMq1MnQ-EuwcC)cP*pGa9bi9+RUi3v9xX_zg6fY-xm-EvXtV70ok8tg)TeA{U730UnfY)$9n7NbJKwUuNnA{wEeWM%#6RkcA0q5V$`F8 zXggQ$r4?WLKAe*BbKd`qA`4!9w*?QZ-%0}n_}29`SUl5;r{C>{DV6WS%AZj^Kkaww zH8l8$8o%4w3X?`7Hl~R@7445i>H8(BsG&Q;<*Yp4%>y?fH^S*0Ur$h$m3jG52`hiG zS&!Wv16aSMLxOFRo4)WB{OJC#;g3&Bt6Ax?KBv*hiC!l$t2`H%Hq;{mi5he5f|}^F z(kOj`T^=>DCY`|m4Q+ju`LEMDU{Zb~ne1Y-5r24XCw}(y`{*DTySmAYFI_eZFCXg5`oyUx z-;yDu0i+U*Ej+2|y!6=`QXPzC$*CjfJcGeo@5uD|4j)Fi%{5c+Oy&RH!}r6e2@2(} zE=?69P0Dao3r5mUZ0LjI9hgrF&Eg|Ki<65ZcSs5uNwqxVn4nRo!JyNFxA(OR3sGFG zMX6bX0b&43#l+}8f0`Bk>GzIeSGxyG8>Kn|wK60aKs0`8<+W)Ls4NE#wvJCvxb_Btc-ohg@GabwVX8q)O_TA?hGbcj2Z)>H{2L+kSKit=%4(iU_#D*qt+z>^`NB-{-5sKX8)`Miylv&eO_rjBpo?%b%gZ*&Oz9PLmP z6Ezg~GbAjE^9ra+q8%}Bz$zFQxgY<1loLlVx&O#zkw#a0s625kej>9a`tW3JBS^#&} z;_Zp?CaZ1D^=906Qx)!6e;7AD^a@rs6<}p^E$WK%P?l#TD`P|`A&p>PssTlM=>U^n z;`9evyYRE;w&VG|L=O!rTr%5;Z?0J&6vXKZi&}t8;nr1Y25T~rb<3H^Qq);3Ami)? z$ESXcALCOXXn{$C>OvFz;mK@7I%vPoTau(0Vwgrsps%&Y0NswUEmr4gBlZh0LVUM z=KV)4%8!AQoE!iWiKoW?)?~#CKAhaLzgIruk77x+ z39IMj;rb<21QK!#xPqcd2j`$i$>&wlW-=;KMZTfYm`9r#?d`kK+vgSoM;u#jGyLjG z=?RxGir`m9DIcc)&@nyfnj$D7dPairkDUAG!Y!Rm!3tf z#S`0GuyLOg|8esivb=f>js~XE(Y$DBBCrWIfML>;bO zR!)@Gjy>c%?rQU3({>LA19mZAtkXz7c_OAxcmk3YVHR-FObsqwP>;D)#bSlu(CCP; z{A#7d<!&CwsSt}{Jo)6K`1W@mA)l6ZP#WPXzZY>$Q7RR9Dq%2) zkiY3hLav28K{S&z%{cf3fxQ;jDhp{q2c+xHX}CN?$Mrgj z=;ZWQzA_4#bpKQtud$2`v~+oIavVM~;|ghg=8QxoA;DAcx5FEZ3+taLMY&lSVW%NH z9cZTSD<=@>8AynfT^6S9d!0@Z@MW1z)L%=0<_n*CBVW!NVC&z;>mn+7ZRyyH6LvVa zW&zJW03;Jhrz|6~J84ZGg{+Ot%Lil6v#DmvAJj~9q_Oyz@65$^@nkfqi1=kbH+JXw?8C8goA&r*IMUot2b)ap`FXwPaw#8D! zJ&3FGNvX&SlF>;j%?MhrfwpIZc>nylxtLd*hd#Gg+$~<*mf6a|Za1FzYX=S!mE}lB z6>YB&3mA!ffPcMy9%@PnfV>gfKfAnkA|%LDF&H~3zb7C?`HfZ$=AC~%o+z7vs;UyP z->HaFvSfE3dB~McRQ)E+opE>QghchJ;G5*kI8cJs` zgX<#@!E>aihz%2e)4^1E0CH0x<$FhcAfJ6AEkR!teD; zV}t>o7dUMn8OAYZ5JfpE+}gBIOi6kpkyDPTu*HuOh_pJ!QdxeAb6h@rKY)`-B6+fD zz{e*%%bw>`o?Z);69sEt+1o>Y?kLWyvXC-mG!B^{)8FjOaZplLK>*N>m&XVZq7j~o8NWsfHG!KRaoQB&9%2OJ8XB-% zz*UVx`O^|rGk@7W_MDYJN2|i4n+~Gg9z=B+UB`f={Ec%P@#d~$SiR7KLIT<$*N0nV zhdT-Jc;SK`&RaNWAA~Ow$Ep$w9fOuwr0ImY-WiBd#G z&Zfxaty8|v)Lm~rLZhfF`;aCG4gBVsYsa5Ye?^6tnBD)MJJ7_)6Xoo$D;JdGk&QjL zW}y=o)mzc!2;g)iJz>Jp-VQ%X>McZ{t041g zL}Z>NK@5Xel8J}?h{zH!kpd}W4tU4~P(&S)B~2-e%HI!X!D!&mGS$ycQ&59nZ`q2*f4LVwd2Br%-C@T&Eq2_ryaE?D778GU#}jY`BBD5I zIxrX>oScm5Pj$9s`X5xx63Wk(UVs=qZ6~ysj;O3i~g$v;JMg;@-Fv1f{%(+JBOq^%#IGndHtHxgI+$(fCA)pc-cg1uEh*TCrlylD&W#sEC z$pwg?@=ao6pdtU1ZMB9R$Oo?a3?Baa1Bj^A(3O^v|6GQdMN8>qH>0V6lz&bg9PV*f zAP|aUkX*uuKLoYbgvgA$q1*OVc!pj>wD=;(BBMl+XTW^$8)Shxp}g=iksn|0lH(#y zW8*ITfgxhr1Zk;xIkE6Y>hdIA$05rp!qDS zPa>L{QdQ|RP>yy&L7*1YUOpv=% z8MDwiEGVrwZKKV>W@o^Uce^^pbF~6v{nE~T2Jmq}R5JPcBmf{;bj9MoDB>rE@OW1B zM0UrmjJfeyvupZGV{wr~LuCz&j%%?JI%<8Sw(c~&9jmgk{wFN*g{ z-ubsw*_2i&KkC=OKhz;YG=?)-P}V~}yUKv7rWN=X+U~gf9_)MPS!{UnWo+NF1;6^M z6r0VnYO$=`fE5dhQI@AeS9burcC}%kyB#G(GbKPt1^F6kYS5qh`itwVbgh--3dFFh z$Ai9fLQc&!u!u>yhtKlIiBArmX-iM+6C&;ZWhr0Ozl!QG*<;sQI5Ryya&^^HS zF^d2A&fU2C+dsnle_oHb-`ypQ{HmM20DEtT0E5{xjiOhsInA5vi_$odX-vO|6VdwCKYzkkll*^C89*~Z09D*q(mRN{1=(8CS|f` zPUX{=R;^JQjT!a&@`)}$A}LuCr#HIFnxlf*sG+|n&fCUBExAt6zn{Excfms=Ns;By zaq6(X{KupJA&!sb#Wy7#TG?EPl{b7I-@W51 z@tl`TV+O#*L1!XNct?iiqIA2!qD0&95Z>$a2QmPL{hmG;RdT46 ziM#N>NR*JDWfwqV819rCaM{=hjwiM#V&s2k%|gVo2Dn_7H7$@uSp3l_pFj;6&e~OT zZA8bo!g+jfDCBBX7U|LB2;iH4Jb>NZPFVCEQ>k_F-PbB!*l5Of*- z7&5YW<<*t6-A&3yuirm}mX_VvzG*AAzO;crp+gjJeDCXz;OeVyfVrxkuQD1NYfxe( z1)*ao%BzCM6QnIb)L(_%9HQkKF1`vN6z>6Y=Ro(Fmw?+?V`_Qpl4FnL&wEp3P3i$<_^UM*&uD$o~lPnfllooH4F+%#2>mv`?*oLDE_ z!OfY4Kc{(ke-lySY&R$vzW{9UFH8N+*)e|-e@*J&mt8$_O26{e^dG(qAAv19C-!VV zGK`0wJ0w7$$cmLj{dO7T$@XAWcIT5jdeA)6igK%N3bXeGON_NX(?Y%_9IHJLGA|IzL6m?FgX+^5_Nx zFNznlJcD(r1|>$eY}IvRuYGOpjl@K>*tF+8Xv{U(|L#T{?hT^BrlTznesPaaU$Ynh z`un6A0PYI3!`^}xR|Lfd$q2c_K~Y!1slVddoWw26(P(gJz%I6weC1pZ`en<0>oHj0RZ zCOw5PNhWnB$@Ka^=f0U_G6V!yCHUW?k2jg}=FNNeeCIp&p0Zl3G``zELw`Bs9v=OC zDo&#|dL1eK6Av!kjmH-bkDcbh+l8?!Vbmyy%B!%S{9dunpW+c+Zx{qR+Pf|E%$sk= z`Zr(2hL4_wZ^reIx6>fWAcYAhF&?g=8G9|ad_q5 z4XD{uf~NW?baYOEmNry2`;i7IG*=071L)%+pEQveLOga`DYl44QvQg7j_+|nvv(Ep zhK<9x)1)~RR{r&?mSQEb60NyNJXf*i6Et@OG5I)?=$F{oet0wViNZvaS7Z4WvCCrj zIPg(*BeVoaK6M!H?B0utW*g2gA1Oef^Dx4Hxn$UuhWM-q9tU^B>f;taS(FDB+W(%V z8xp%4g~Y8tOLCN&GPz>q!4DlHFCyA%;-D3+{faK59 zIQTnR{@H8xv`%9XxP8_D)RTWMI>hvHCwZPAjjTmFv4vJ*3wHARE&a<8a@ffCRf=`$ zwz~b|z03j_1nM4t7;8tLN6$zKk{%9-M>;N83TYWns}M8CBFZ&Q6aT>hv1RTZhxzko zC0YMiC@qOhZHkJekw_R(f4fY~>BzogcpL+PvuEBySRpMJDu|CT11S2W0-y9#L*plK zpe>E(XL9Hb@p`3h4FNzD3fg$Du1BvDRGVRLUI!&Hfa#A&`7(E3I1~GKZp5d1cM%q4 z(djhN@Jzvq*IyK`Pa6E)i=uMCVoM8sua9#d)L2=+8~Yp{E)tDMhcqQoLodD-*^En$ zA1&7PeTV4e$=1Jym{g+m=YJx{90T~l5lfz!EPpN{Auj#i-8fX$bFjwsf8szX`>(eq zm|YUV>BQEqeE<%ki0H;a=bI>nnvVnebDs5~VdCDU33Pcl|VX(=%|4!)-8ojc3 zN?zC}%4x|+No1-7CxV`fx*KpvNxGhqZ`)N6+<48| z7&~?no_z8?Y}{Cly^U_HtF6V9q9XViRFiWzV)uvBuvgdYMOcogLXN+yz9Z%yZTazB z07*VNoHxal|6AmAqIK`{16KT7p4$vtn}_{)9wBe0Xcd3aC}rz=#1=;}ivGQaKO1|7 zY1=PoJG+EH;PI7qQgS7(JXM-;XAnp%_QedqU{E64BGKB~%3Zym87nG*K-A|)zp^4^ zb(PR2rDb(VG%QK_*VSc4gy|_o!2vO`CzL-bA}D2A3uMOZ1HM+KNnsX1DCffWKDir> zh^)O4Mde_7>?TET(gisc2n__Pyo$&B=8zIjSyTk<@P5CQuAEgN5^NaHbapMwO<@#o z3u5T0V=?2lg@k9#7(cQcQ)awD2X2vCsH;-=2>8waJt4k+M1H1l>-KdVd2WqH9YtrS z4E}(OXgl!F^*cm8fQRoolK@Qu*lVx76IWezm3Un3Y=R?r@G5qx1b*A>4fv+HLohc| z{yVxZ(=o>Y`j{ju|F_g(_<3Hs&c1F>cj#({QTf(E-dh@tFd#(b+Vn#4gs-(GzGTB7 zFoZ#X8-{Qh>|dTe82On-*jl{O(vVDQSH%F3l`75H*X-d5tfV#L_y8aa5#gzIaFp()W(P*IK2jO*54*H3mp@Go1h_}R44L(&aN)q87 zeuQ20^Y_KNFE^6%yZH5DA99H+oNx|7g!U%FKO-W(b||zd2s&+0#nZtJd04sl&)Bhb z2QrOvj4G5|yojg(bmTv;odAHG6D;{=H}=%~@ayYX`R{?T*T)ES+Bp)3nE>C>A-QSVoh!Dq5R=%5OD5&xl;b2zz-|Ep0jHo2$u|-RsIhg! zYJ}Qqp)h73>T==-6|SwN&>T|vh4AE>?1$o`BICd3Q@sRo#uiFoR!Un>=^4t&%71{6 z^22SzpYOQ`o~0Gnwovk5kN5nK0VIj+$gaqdTtFTQ{-9UHc605%6rQh&#SO%V z3HkgYPJoU)O>NFcO3?)PNm(^UGt^nfk=3c;*Qe3Oe14Z&gRnkMZc`W zxH$43&>7|R_xSyc9&X^&A?6so2R6%W4_S~(^ncMEmtxHhC%75X{7I$ANK*+H@7p91 zAcEww6{qV_)8fIS8@|FPJ6mzVB58wtPDa_#q{FgxNPobm$0DGpyLU`h7h3LW{TW^hWAfIk2Q@? zlD-E3@p90K6H%=K<0MdJ`=0M2SD#B}`l5!n9CcGw-nIFqtVV+DlSEnr}{H^Ug3 z!yrH#*6*?6>dE~vp~Q;!H&>&rrCGc=ej(#FBdNRf_aia|qP#B8ey~2h_X?8)5+R4I11K=3^?H0}7dxApN@9OeS2{sgz_7TPlCJZ3*=f1n0x&nP&9ZHs<(fQMZYZ z0-`}TWLmR`?Vq>#l`UuzQ~a0q{{A*1kN;C9WzT}^nbjD0>=7I$4#A#`PW{B)$hN6m)`w~tiNRWw{P4|O4p32T92UL3l$EpoY;RQTv<3AMAX%Q zsG^nrjuprZdmse@#g+{Fq9o^f@GPR1K`agT-Y^rdEZYIANrj)Co`)i93Mw02Ju4h1 z%_+s#--|N!sBZRP(W+WJy22)kq~1Db3hrL?7|hlos9g0nLXLKr($dKK_am(2I)*_g zGq{4Q6A#~gw>Zw&!a|s}dbD|a7FFfIpgpavh)9zbPK`pg8a)?uk4fnh0B|JAe}uwD zdUA{1CY1lGyB~qYV#Po1xmLV*$uAzlsFSCoV$H|1?fZN0WS&=C_)Fg3^3Z+a?<=mj z6=$8*j8&^v;nPn)L)DHQ`0|raaN>*^QpL_6OT=WKTB1Xt_)NMY<`(o(`9 z49ZaA#mDc#g6q5LaUjsNT_`_`!IDbWKSQ$qVYdE*u=b;uaPOa9LRN|j=afrJg2^et zTpGNd=zp_YnuwIkWFO-vB1aVfen{nyNon#E+ctg_hdi`e`6Ash&Z#+KaR(wfx|5qcbSAAV(_?_G{1#b+UFD!1fvIUr&Atgo(|E(Rm0hghZ)g&EQm6> zPW+E0hpYU_lWEatLMzTF$I>UhAzDiJb__ib(SY>6NfwJ4`*v)?XKy}_g}2;?A!8?^ z{>_)6*BLSG+?(KZR%+=%t#E~G$y$q8n_W|>*N9tX~4;MR-Tb_=T3=2Bj9eD7%nfUvw%Y+%4 zQY^@t){TP_3!J~h?2JGV>#caj$|2&L){=5Xkv-Ox%(#-&qZzZReb90a;Pgfj51#P{A zFCLrnqXWSAp!{Z;MD0ftEgVim^HlUg^$}Bk7G+uy_EmlYcUwIg?A?0aSXaZ!f9P)` zUojl~FAH(>Q4vvd+`dY!7F#@LKT)DiJN_$4P=4a!SiI<7+cpDA{O_X z|Exh%yNB3$L?jJy&JStE7 zaB8qdRIiFw;3p)?lLySkF(UJ5yOb#E1jI{>Cx{{?7plAyM2)&&M?C_x@m{9Z!`HeM zbLTEZbNF!g~T37&!B^_34 z7Rrtvf&RtCU5D&!myB?VC@AA24^5AYF1;9XQySE!9EAKnxLO)ujK@lm@*`sqnyS~} z!WnbP6(CTt0-GB=7}l>1X1eE2?}4j0%m93ZNC{!VJ^ENgacoBd9Q9RzgGt;KRViT& zhZTQ`L}eV1Lq2Lq^poTcGzvooROTX?*S0~7WsSx{yH2?}b0E|iWe9cJiTN4eb+usU zrcY5@-+{D2r^ByHg)v`^<*z-1yrL3lli*}yLs#KY+xo37IIXqaUnHu?5!H+)U9zK0 z|C5KGA~8CUtNIucz|7tV|E}F=sI5c8KAYG(8yW<_xnlt?3Rzg{l%rH2&0>PDtqGe~ zuEOAnlOWd`5%GSv)sARqGfp}6GlPPvtE=P`iA@5=a|-0qXe1aWqZ0PZqy-6ioRmoKiyYhjU!Mhl zn3M)XqH(BDQFV$HDzy>{eWpyI&wyNGq|GEY*Y4$TSFVJvU_2szX^<)mQgoTdXhpN% z2~$oXGl({lvajsfy_p+4?C7rYvW+j%%C}z&Oq?}4R@;h4Tptbq6-pnQ zvv4+`YSSK6ZmdAn=FI{C!Y--ks6nMhmcf9cY*IdR7Shs&)7}J=QYZD#X6cuKU7xSV zl9d(k(Xq7VY#g!hrHb&}Nf_4BQbKMGWGZf<5|@CeZWIkBq!lvb3U>%)?wW+`ssY-& z!f_r!R8&do#Uh&}<)1s|WNdG7V?<6SM(1Y1*6zZr;|45w?yJpnXv4xW!;wY|$w5pY zdhk%rW1J55l)elA?ANbH65ZDqPnAW9&P6%wmG)tGi(mqJQha6t!s_cR^jc6%4#gIc zpdzc!gD4W~CL9iUkdmGaRfiSMrtXP>PG0BNcBQPYFlYE$UVQf5jByj6#_1Pd1zBf< z=*)w@GV`ZU3d<~0OXuvg??>h8&#iaXlUkbCozEY()GGIdzxEcVGuZX=s;u`jc849`!qe9=k&-*lJ#L*a5&Oe z0f3dhOZhG3XK>y=+_nmMYgb3Lxnl$f#3kbEfRg+^L&+3EZZ6}L5TVHwO&;yuCrBI& z4k6p(4}O06EqKO~;h#9`0u4H=k17br%oh6Q7`2xLP`7gzwtv1_>|0~aO0DT;%o$mZ z?2=*u09_LCBS;_@j8WYK@)*Mjze$JxUSbTO>+z2uGIE3D=~B+ll4tJ4UBCD}?43c( zC^uu?(BoiD(ZjY=u*8;Dj~4_0OL!v?nDh7b>v7(&VJOYWfWzZ~KNNzNK$bzk-%E|a zV|xbRz!IECU1HamX}{pH>BpT)ls^qR+9KW-c=qp>DUG>Mreq=#^mN?-w)QfWUJ8v( zsB;pw(~VU=P^Q6aW8H3L`7zC`n%x1%_5#sbJ=T0HvhSJ0F5wqR@yrW6lAST2X1u8UGl7GB}eYGeqxLS9(3s<~E^>ULis z_`u?g8*$cYUk?J_`>GI?H3umBw%6J4j-B9r)nI{05C(e+Ls3ADI z&9tQKl{Onv$r^%VA)F2z72%fZIw|2vC0xI-*yOx)8P-dR&qDWO>2ptF-HN4n?Y&RL zvSKOW!L0HDIH7+b+#InP43O7zP-?@~eVFwveP`P?0RYp=2BOH4E)s+w+QRm_y|n*w_=3y=_#x-{52Ee8 z-Azp;)$Q$=TV5_eV3WOx$JA6BPY>WHB7F@2E=3Gsbr~fGyci*>#!Af~5D9p`y}VXb zD#*pbol%(_GM*nuc%6@>CJ;%S){Upqb1hEx4wNw@2!|D~1&DrHtytXJ>cbt^-+>R8 zeu%pt`8}+Kqv?DIsJJfR4?HX6A*IhMD8T90UW4avzZ2+t)p`}d|zC^Q>I zgd$xC4m{(zsh>tR;L)DMNHm(!u~Ww3b*<#O=nYndhK-?K&)9 z{5+~p9*+@LGyF0IG_oU|ljtgA96P^|bV1}Yy!^%|7%*w7=noin)DwV)dfu=|Z=~ly zkQt`1!@xp_zWt@NDUGowXg<)v*qGXFDu9EmE{P zsPha^D`m*gtFf2 zT7Es*gC%50?r(OxxuiS?2Jwk-A=#e<3+OuxAd0S#UX{5}Eb|@e&2dRoex*u_PP+LD zg9R#+RRBTUm-W`~L26nW6lntx_It#7vg})|HCz8=Ms1LbGGS!~Ep95x#tm$IZoTbZ zy!XZu+;s0l7(1EM5z-N9>%G3f_aZ?*qQrpakSkETX(Qf#`yGrJaTB@9L}9t1iQ>Ea z{6hH&;g&6W5sj@K_~lL4AWGLuDF5LK`{c@)Z_dFy&fSOoQA<`ovA^eki$M3#D%(hrC0G5b|^G}NFI6U3qRRhrqDmOjl z2C_?7xpoIuPB{}-TzwHPzxomskD4sK(`6Is!r%8ASfsNRiuC@t?w?QN(Tgv^Bai$W z*I$1T)R`8@IRBk5>|uRnOz}Cko+)l5D3qUre{Oy8aVV{&1ZK73Em0Xal1f?$UX~!#_R{x}H{?`=$bv?KKGA;;3Cn;7 zG%KdB_Jw-@#Uy%?ZmoWHaz#Q7sR&k@{4fMRTpB=$WtNb{&}7{Qh+0G zYMCq?=fLaSyoFo$Lu<{(t*^dWJKGLW!&l zwASpyt|kY*UiJkl_csgW=eB2&HpzNNW!*!CBl%<^+K{Y#s0FoqH)7M;&uPCCH9NOr z^JW`dE#z-%ewUEEgVTjldmB<@B9o`Nf0zomb*#bx-Jem~k5$zc)(ZdCfz*gt(gjH$8lp#gPH>RSY-4ohY z=fE@ncmeOc^g2!*ccOCs&#%I`X_Fz>r--@&VPYqtSRjrfsjQqlIcO%y#KhT)bj=i` zpe<0RS#jOVuVBSr9>oibU&4DU*I@qHQ&Cn{c);b3NO2EjtYcqbvEYk!TX6L)Qh$rv z&Yy+f|MkyE9Way}^2)Aq5i(*}axGWVm6+L=E8oZJ4_BaS%jej*u@b&mDP^@G9hv?5 zqkQC0toraJOgMQm)L8@J?jT=DZh#IkDsIddT%u;@I=uhJn|Sf5|DdA24W(q0ub)tY zlesq^w;yx4xB^f2Z%(=%+>=qS)?o{Qydw~SMTh4h-A_&jf4U>6yy~MG8?udN49(1h z&Fz(dM<%#KG#H5vP{?I_yN?&?y6*B=H>hMQf2>>mL{aLEN0$V2N9{#lS1NIT*o8a1 zRcpmF5l=gm#-0^k5|y9#N^J@p+gD-cg%{$uG1GC!RcDH~oqqNLG&R^!K4KECzEcmg zMT#iC`>u!a*MB^T>WVjDG50cq-V1F$SZ@;=AKU}m)9m)>oAn+{Dl9;Q*MY_kFEU+H zsO`EBSBY)j&n`p$z%oplbOO@K2Sa0)&L`}4(U&FaKB6>6PAW~tv=JB$EQT2Kipo2W|y$;3n0}PJSVTD@H|^(%{&HzO*G(h1`R~+ z;K3L$VFJp^2S8!U6IMxpVc3Z%FIydM&|N&)#_uB_vBON3^Za}7MRRQ}zIyjv0=n(k zwqZAdpGs-$OvzJ72|8Pv@b2~<=x{nkX5GY*#iaa;g!02->xzV8! zD?cA*a|TLBpCk5Rx&%$l&BBuFNvZmotuPo;QC+zeIe8hFJpW>Gf;yuG+tz%7PnRvl z*PpJyn_o!1^$H0GuN+e*0ANH;8eM)RnmtF>1cWR3v`L>?r;h2Yn+S%MvQJ9lBv*I(ny z*WW-|K>_*?8$zCrMeK)>m6Ds|dGAiCJ8&p)==g$oyghB6Se|?)De8<^aZGn>Q`e?5 zmt)n_kK%!M-bOyL5YDmRUsZ+iQ>8TBNPCk|etG;y6YXE}k3R_IpD<}Gg3&ah`!3Yf zY^S|PDzQc4Aq6a;-%^|_71nID?Z!FtCld8<$0`E7rSGgHm*GR$Vv9TD@__8Z5|pS7 zuy=Ze^0Tn=D~=$bDqW`&<+>RJ=&Me}7(t2kfb7MQ5N+1kxypu_zQ87*Zsz9VP$GoMJ&BW>J)MKHq%331^Kg!Ny9- zEhx6CaAv>MXjyuutSmhPc_uTKY^%V>du*s7H|F$#c_=bx$7=J%Z^*YS)6u!qksGB5 zDG`o(zv|H&ko&22->wIYipctqT=DlcwY8;tTN{WWD0m7fJ4=g$&<%n z=(v-`Rr#w#IPn!5#s>9+@BgEgM*7>rSBT_#?CaWVGqcc6Ua zND)4(Aq$#CZo^a0tVGGMhcWfMi=i`_M3`}7CbRn>d3e3uO+=_yZCwsuaZ$0eth zs!^7n-V+3lKxD~9ZhQX8ec{ST@o#8y2XBHqSZX$^;0U_A!cLWuB)<34HU2`BeI>2E zOQZ{48UM4R*^ai#b;#*ofQj=j!n_NwLb^2%tqcflEyQ}e?+^!R6%QDInyNjbMx2mX zP>jixilxuq1C2t5i++6{*kx?4w?VDLy2P(nB&{-ek_zA?jfcIC5PltXg&u5YV41^Hs1k(mRzF;iqliq(@Oj9>G~Cs4;6Wexf4ZkJ2c2jF>t>lXeJCq2E0 zu9XhW%^d_3t)dS?W_k%4RVrwhbr1j~>qICLftJ`pyyIqTLlv^MGR&DcjC^}J3e$2( z;kD$K```-s;ES=AE%pXJR23=zO#}iZwBK3h-i%pv569)@2@r@J!9-y9B~K8M27bVs z9w!jsPEddIg@YW`$IW9!`*=k-DN+$XZRx8FphQ6fCg66$WNg4$r1-NJTp~cA(Pl?| zZOUJA<0?hl{WgJ9J~rv8!LZxG`UXLw<`X@WQk52ekcA1gMg(_G1To5$theYr`+MdpyuXg z`2Ee~)_l|TL7v>>g@w$lEV@qp$#uzqg)C`SzbrBP-oJPNUAui)_r(_|DY5qWQVy9l z5TjrwuwgIx(&+{QfqW>^%_t(I+)qlcW-hGkeYmiDWg*tU48ZGhqP4LG1;i`{lM?&A zPJC6nT_`_`IVB6jvvbIAZ-GsuDNEFwq>?~jP@TK;qouod=e5xHG7xb3Zu@_;R()vf z;9xFpLp-DF?a5#h{b^HxJ_i6QxtLYT>2xV!$ui@v2cAIbkmF&u)u3u`bysdce4W*s zz#DgPo_X47V!LP2mjBc}`XiUV3IL)OpV#e!qool=WkcZiFg*^DvS%QL zEdTPwPhi#C&tbvOeukMB|3ZAo(b580)CF^<6|?8h#*dQoF1Q=UW86ZP5fOq(^leE=ZSC^q5LF?5K|eFPb#{LbA$_}aoFrp^Q@KC^&$HXBznDKVK+#6+pVtp~SGWx~x@D?TL>qMz(d zh(*xRNvb#!ihO=+hE;&TCbH^TIVMb)d^S8p>06uYiJ?g*{>yLnz>;EwCDjZ^ELP!y zGta{CfrFH9zyI0a_SyE0Fd9SGxq}fHR9)XwNmieiG>XUtIHSeA?}>`KS`?TqC^V;` z(2|B+0)z6bEV1oqYMQT5$ZqLzG5`N!^hYdxZWSPYI;ND+yVcdMX%(Npqa8AO4E%m2 z(z5cgZ^Ifq^E)wNi$DK!DXit?h;V&AvQ(*}aZ3bImxEZqmH2wi7x=?LH@a?Dgorcz5|9+2@-W01mPKq94-=62WIJ1=}$dxLo{GN;S z#AsG3x!|wpgQ$&$0_|~V2=PFFUy&`9K95gb_!K_0#2#m8GZlpftAeK{TEhkvR0h?T zi(kQK&-{C4{Cx727&yMDNId@1slo<@3MRUiX|ZaDUWN2^{phT%V$DVRre=RTnza5cd2}DFJfkBr_mYRTJ(^^zkZpWvee1bW%rl7o3YQ?3|Dsk$m zrz$O3S;{A$efHXh#zwPQ8(t7dsMr$?hDCrxidxPL;kjTWa(QK|WA2_7$EobS^iMZp zWL6$@IyDzD&81U3iQf0cfwwCbS*?&s?cMNG5AiuXQAYdPENA!qT4pd{+PaV4#>Kz* zBPo9lo`3W=*t2mXrkryQ7X181@uo=YE)Et*IDi~cE*L`FZU1)Y!E6PVt;0ZtM*svN3M>WjpX6F7V9ytP?wN7leRbwInK}M$&E4FP! z1}Ry3mQ{d&JJwTANj|hrug6|HDZgET+*klae0q(Qzm)#EfPVJJr2HS!b6Mnig-PXo zJ9gmuyRJuG(O^7q^Y!SAsxe?_F^WpZAj~xuh{mXOI&7)<6x9_q$RmowwfJDxz(*9n zWmhXa(Ey%mdlp;w)S!QMw%Ay{_-w`BAO%W^482e&3S}>~tLdI?AY;CP&iY~clLL7e z1ZLncgxjP=BYn*99VLlXIO;>vbJFRlRFnGV#~*$Me|h!^%)Ibgr~(f7n=5f}=`L%{ zZKT|-4baOZtLBNSMD>RrUl+v`8cd55pZjdzK?g_I3zG_d9N#JE!wkZ&vw81Bt99Zj z6EOGMJH=}Z0KSe!6cM{IlY7MS+;6WGA(YI4A0ZYnuEl}JckRIV@#9fsHlwlA3zb?8 z6#+oa-o0WuFgK|NLtObUmwT|Zx(+YWb3=*-pr1J%`(s&vgGWrniBsp}(;{#R|+i?X)fsC>mUj z>g_ui1cVjmWVJvbO2<6pIOPHHL~J{P(nbH1qn-_zERmk1&$a+pQM59WPkR^)oM0hSB6oOZ>Xfh>k41_`h`E16W zJ{4n6nZ9%6NmF?u!&F~Woqx*NbBT^i=i1V+A8$VW5Wd=0jeg|Q^PASggUgIEtn=%! za?KjdAP~qQHqhyEVK-Uv{f%|d6Bzho(USa&I!Re`>EzEtCq8v}&`@s1&7&q`-Meqo z(b5T!>=-e^40BF@5hZx$`3tda>pj@HWh?Rva_Qc1UqQJD8y2esd{09%x+JkGOtCqI zAYGFjg$eSI1M9w82g8)pk&QAwD>9hFa)3vZSG(vB+iVb!p-GR%lSQ zuM&+82lS*-%7paSVC>q@B2{+;!uY`6f#3b%2@EFySpC*p2zooj>v?&{Aw4}0HrsX# zKjmx`m%W6lJ(XgOKaZ?DR2CIYKCDp-Y|SlL|J52y zB@oEZFA-a9ZKYrVi3C-w`t`9%>tkJ%k-&Ff2>&rer^Uifmr~Sy{_8`3!pYNVkPJDV zlLWr|L0yfa+|`sRMfm*7>QVxL9@eHenNk#QGyDC!Osx1mU-;>eOPQfEA~bg5X*hAp zj7r{Hva_T0wN<&aiFH1*{GqQtm12L^uKWO1ySE9&XEAGuVox9q z%|xH|L^GP5POSWLHPXo^H%TS2dWf5}Yao4wKlhhbKL!@&3FT+8Sk&0l(kxtuP{>cp zC~f`wm*KQCPsdY_EJ7;O zVjYC0oO2%DTPc>qxf#jN6W=nvzcyT$mmS@@!KUOmdy83$84SxszAaB(bM5M!XjI0D z?6E#V=#a@G77abkV!pgTbH{gUb=HZp+77G?oKClc1 zqX|lK0cvY@V)W?A_~MJDXld&ZiXQ02Mc2~hGx`*;)zu0BNMHds(W&;hFY!eyia{+o<38H{5y6s<@QbOSQr$B5nDIA--I7kKTgi4}4-w=$qz4HTe&OHl% z{M7@Y`Ud=7RxQ2{5iTfGoTI@D1zNeSY zUizKcg#+=$(igCMPmR);Qw+IEEjC%x77Q9a0q4gi1~;sD5gJ0Qy@pIt05gR)dq;&&icA2 z6@45@V~YZnv8`n9&K;Qe?H@bnIN-*gGKCbKrnR1kTkgEp`N(}wnnOzCJn>`*lOR#g zQeVT4(u_PVd&Ny8e4_kMSfiprD;3J)6Gox9xL8bPZr}JhcGan%jui-rXpH#u-G5{9*;gYoM_PTDF#RF{05z4{1OTuM zCZ_h;$~DNzE5xjM^YFntOHk)`pdWfhUvUb)Dy)VjtRv8$d<1*lV` z+7DbA$5#6#_Ux<@5a`ufUlZS_k`R%*2=OCdP`W@};W075^mMeLeDDyQJWVQkX*8Kp zwQDmgf8w`3M%G?9(X9AfqJUF&S@BOgb55{-*`RRc&h0|+fvy$G11K3={|&3&#;R4j zVYFsIEf2#VaYLgsA2e7G zh)X>0K0wDBblga2={27#gjMhUN3;{q8!!MJ?c`MClo8le;CEM^hzo9f45Lq)h||x% z1gk%I0dKwhAqEe(Au}sa06}5>ZY*E24CgLffHTisfcKZa3|o@}dFWY?HKZW664Jw^ z@?zKKuQB<|xdH^*wpUz$1OPa2(dtN>pZ-r0r7s5pCCjp`EL_J7z;D|GP2TYY0EZL5 z15p`AZs|{2t-`BMK7!AdzK&X39RWZsygnGp1{DVzT)kflMN;lSG(tWJDGtZYj~g#l z>Tz{S(Rg34S&4uz41=YcR>c*+?6@-D<+sdojyq+3lofyfo}CKbAl0SsRWw>1(Od-_ z&GmTa-w(k}j3cYSO5oEBtuals&TfbmKGCWYzLS)lm7n(!@}anjkLdWrWxixeVe!=( zEkg7=9G#u8q@;-F!qKQueijBaGojThulxn8zNkXK{CvRxRCP zSBlAJT_o6mMx(^us%-)QSjL=i8rm9{;H{Tl!Td`XV)i+gV#S9`U?aA|Oh6M>3FT*z z$Ex{swmZefNnUjNCn|addiD^Wzc^U1(EsGyMcLQEGZ^Y>cDF{OjfVHtgcQp@UXD3e zoP>^`5*BrG8ULOpqRl5mX7(U>Ivu$7!dY1V{wH0pS#nK~=awoP{6VEmAr1Uca`%{| zDzO|m#Y!?@=n$AQGsMid$(#mz?LIUU1JLSBa`H0Z?(7g(wzRA$bivj0nopiJ-<@I2 zgVWhy-n(ZjPaFz9El)6MJeU<4DWRRa2{~F?L9Pkbz5j1~PS!t<&Nt-RgLG3rG5Ocp z)`m#z{QO?8009LlaXmdBB<1I2zD#;wJNfUa(FlfxyfDS)EbMYGwx%0U)$B!jsvJQ& z4Mix3W@QjgVkrd~0|;DvSp3)DLPrX!F{Hxd@k6iDi=ZBPAOvOMXvjJo`1R|P4!is_)cf#ueQgc*@(zQs<$l}X?Jfuj!%GeF=dB0=x7r}tE|CWHEgwMxo`5mVA7(;RBp8We!qE87{k-EYMpY z!s}^3SeGMe=*gmow-m|>>h*Y#o|%b}!$;F#jkTOssqxL%ACY17L#5LQJhg!pzr}9LqD>!0&w>`Bz-Ek^hsX-IlSSvvNlMKAxGBSm&8wFYut*l3Cnq(= zEVOra$3pOgo|=@OT>&SZA1l6^j>&cR_@c4$F9>_YYJ4yjkTcX5z;LY^kCQU*Xm+4H zlPI}A0GrIvMTMTcc_H@NLdY3Bl0eT-=c7S1?3Y?>i^L^5msAV%S=sP3HK3!GbTn2( zwY9Yg8F{7XB!EaYS#ZXgbFgCB61=_Sx#-z*7RshhJ4d!<(>iSWdOcb_P64c`sV3wV zS}B!|fBw$8FTOd^cA| z>Y(Ga(lK`lwYk>ppyW?LZ|oS zuNR^N24s{T*LB`;5a91t$hje>2JM8M&09Ah?DyfaE9aqn!kPHfFBhVvr3s~c9|+*u zV<2$O+)J?LixoT%5S@D3IkI8LkAuaOiK?n^pw;S;lT!qJnpr5n*W(hY-<-!l0KhT+ z0swRehA;Gxc(c%N6PfJT8TUV=C?k=+9Z(_f8EX46yRuwCd-vv*m@?;9MB18rG#6my zS7xwVZN}qwU4!4;_YYjSUXFK{A7Gm(g zjePl^(JBI`}ON5 z_N=&_ol-mVJv(>el_&oVE1j=3HwE^(PI#1Q2zojs<>xRtVlOQW9=x;{cL(Sg{D|ZB zj*kS<ld0s{xZw zJxjKA^ZMw=E8dD0mzHDLaVN^gkDnoW4ETI*c-<1K;*|=HC}akJgviM6ON8qnVj%kV z`2V3rDVO(kC#Ywc=3q$vW_pHf_R`ls!;~2pk_Alg(Zc~m%!S}ptp~1|iQhiE9OutC z5s$z49v=L^Td;Cv1^VYJ;nC%ZzvZiU-Qo@qeF{a ziDtS!>E1SEtJ+aGrjV50ND3K1h>q9k3u8m|J~TM}7;OZ8`RB(l?)39vBTJr{TMkpn zaQHTFgQKAurnDSH!je)m;4zCBI&8cw(@L(*hA+_6xDUfdo-D$KLmZWw&`%*m;A*j$ zmFZdesH?5z$iU^Q@0sGqRyGe?`nt9psT@nI076vC$ZMgHV)lpc#@e~*$anQRg!02u zEGlXIYQY(J?2XTG&gfFS_}&_Mk5Ptn4!Ve2L*Wey(nJ6LhU;hysXj@DLD za=c{VFt~^bsE7*lWZ=ftpTbBso_k*oKWP#soN+!JjrB;#vXmh zqlH|Eb!)y9Rdsp!QLR?d<+qdnZ%nmdTg4i& zu`FA*31shndLAa9J`X#|eOUY1dnha}NBPhbghlqarJRF^ z=mgyL+c>aldFbG`?K?>*6oJwB|1S$rMvpN_Qz@fw#vd~XOgr~-5!;W9LGU^E;=<`O z@z#dDm^p4R9(!>K`QSGE=IX1&`_udB;8t27j~qOHfGvF_X(fOa-H?)k2@|Eb_#jy^ zw*Gszu0_NC8e#pJb)0$O6(Y~x@AV`CK#$SY+0h}aJ1ginTek^iEhx-KeO&{6PY}8N z^N^jL9nHzh18;vL=JLk#Z~Xz4b$dI;&zgc$=G}lcdv`4bc2D%A z=;z;bw_qD$-@i_(oz1|2f(R@~H4lCwmOt${n zdBxbW@pIHITZ}f>`RNwm~pA3F~q7ochA=H|m7FZ~c#kmlr z00G(T_uqUQ)8me`>(4+UQ^;fItP~co zzOEjHMTJN)NxnZ@er5t}{U=X71*vIiQ6DKeEC0K1zA5`FF&8Z%jGEW#={#D=UEn1? z)j^tA@)RHcLQ!^{l-ZExLCKKuuw?be2a6wsE2=@G+Y6)2j~saiktgZ*v`5XzmrE8m zp1VI{+z7Gvx}Du$pw);zfSyUXWX4t>3#D^^n7&Lek zUBf}5Xo$}*u>mK2zuA(BiBspGrfNI(?%X80Jq&eQ6M5mt?w;TpEVX!5D<4&4|anonv!&jfg+SNOu%^g6%(J8q@5V`UufewU%ONL4i6}X27)XT)&iW3lY5N?x#Z?$s zIt%Me8ATe0ObF* z0XuRH2nCN)A?P1Kl*j0-#&Ux}1-CnhCC}W0MR)&MDF5BpFTjPjJt*F=qhc+ddGHSC z3^FKE(&1OcssFc+m^cGqMP>jPG+%v?f9~c}TU$$XzW{ke^KJWWXeYo(OOv|d=Hz6dlm2E`gSUHrJ{#3dVPp_JcD1*5 zH3Q|6T;XoNnC-RL2Z9b#+-}##V8}(2+l_!C6WH5G01$*Xy#&7YIt)$=;FJZo;<$-( zFn;2R*u44!M1xy;oU=B?jFrpYz{pe2LoANrfZxRy+?9 zPe%H}Ou!Tjp<(BKG}!lJ)QFQXpkxSwp#ZT7DW-u}3X}>Zh7KPOYi=QGDz~Gdp_Tw( zC{j~J=wAbwpl>XtihtNXShL!({yBCq=+#%Y8 zJ$28`u-ih&D^|j-IJDn?Fkv5;*X+v%l}8x}SmM^7H=g)A<(zRiW!CvZ`IChyKC=l{ z{@puw%XB&&jvG1z8uI1$lC@;v^?y#f$}V>3rP|C+zk*xRE9Nd7r)j{xlUrc007h`A)z1 z7NPt;Ujv$KRcNZKI^f*Rc}3V!U4fs?I~#XB^Z-VTpLPHUsAF9{p8eZ>Vr3-VTG)Hr zB)QbcMNRCbFq(ljrwd=N`U3S0`!ICy7^J6V!R77{%p*kZL8r?}N^ilaF;mdk+KBr4 zT4Exp%mm8)?d{z7pb`I*??sfy8h|FaoR87=H&*^@uQ*RAf6a~xSc}T=$ zv?}0J<{%>19uWXA1K>4v_WcJ88cdYESXlqKu=RIxE{Q)UR~%ylxQ~f4e2lp>{y}6Ln{DpeTp_H#hm`8dpWTch!$(H$6`qr48llmf{Q-0Yug%pxpFx+eD;xe-R{>3P%)XZ5v13{ zQ5j4|!~bjVOTgnOkF?*Odo-h&(KQ;KmMvLEzAx|v7~3&+I2;0OvLTy)b1ZD~vn1K% z-z7h=Jo^L^lKe?XmXMnq8*&)zm_Q6R7(E(e*jx(#=Vf+TM3Eo-ea%RThF1V!bcq{s-% zbezo~hCh^;Bs%}-!u9{$6vQAKPyjbN2L`eC_1);`Xu-k-%iwnL90NmO%blMkZffFm z!A<(t9@c2fFcd*n;*S?!*%%L*M37*BS3y~H;OB+ zz;_<_49*?KP&Z- zBS+wJd$4Hj-_z>>!8$nOud}U59P7)^rw2YjZcZ&;f8lAIJhTrjr~APD(uN=|AkvHb z`qZ)X5Gi1j_R5Xd%!fP22e-o}=2hgl!v5#}Kt6a79+wMpC87oC?mbLI(4%Sk{P4i}ow9>MX0 zd%;8dxBt_ZP(rT3fj4)fp}wB1Yc5KsOcANUEFAdD&gL0&GjZ(LF}(fu+XNP^DCQxp zqCyc}XTa$0>>}&eK@WeYU;qx62ZyTn!e&=3erT|dSja44)$8jU2wY-ty1e9%t7=`f z%qJ{4OPH*1%-=1B=-B;WpSn-QF4T0XH!iQB3@*~1NJ>>rR0E7)EF@<2VOh3%J#q`n zaIW@9Qocd1uLQsN&i!J0?ur}8MMy5oHk-$;n-M7{T7?(NF0{A%@$!q$VbPN1sGL3* zAp&*=clEo4keBPj)XGXUo<7E-AGhi(U{Wq#Ozx}+MxhLLeQV?Euk63|x|`o3%dd8z z`OSYlNDqDtnFIh4gB!+Jf6@@vScLJ|L@;dJDD4e$zeB{T#yJcfFL&mVRwZ7 zojQ65H7Dw@^qLjOaodS?s6oYmzaKZ;eZOEE&p*EhW^NW*It@Mjy(lAh;i^^FixG&# zyauNJ`*yvE*S0-{8}GOqfq}lE&nB%jn5?iRO!>>{(~2~cgh9ClBH3 zb?flxz5jyOb{ux_IgXBJnJxl*R8>r zI*;O{T)ddN$JkWoy&^W7Hf9_|hr?ldZs#)_#q6Jd{OuF;fb+x?c0|qD7p43xgMmS^ zyoF?GX9*?{Rf5Q{cyaK+CY)}Nv2xvNELpJ{r%#>2`PLTX=H;S_tn$k*sja#T3VkA) z&C1UOKDXU|t3a&HoBpWu_4adoAc=DEq#;c2SvhCSn1P#azDZ%%pr5$==BGDHS=l*Q ze)aM&yA%W*lCEn};k!j357)7nHe@JNW3Z=71SXv}D?DqTE(7Liiy7rxD{k~HZCT#A^oe3(!Y z2oCkkbQnTgYHE((T>Zd*3gu_F*>B3bXrD$;{Fy<@pG7phySoccPcB*iHnK>siDTB@ z`f;&7-_k7B^XAVJ0k<>Slv!uVPiFw&X|mSeaJ_Q={CR2rzG{VY0P?)KA_bU-81>R! znUs+I^|rP)?AWn`K|pe3I+O#|2P6grUtwWXR1A{xr@7=r?bD&anD}=d$zY$HSqX1P zW2)jiiJ=gqAod`M7{}3r2Qh!eb@>UJ?ysEcpPH2mqmzlUQ7_u#g> zzK(&u&b0S19P-0zQ-7ll@?%$~J`fOrQw+vC^u zQD71PE=5cMTNx&l47r#5#Q)MhQ2z@pUM6OaiQ3#3ZT&ei&x$`~YB}`8pA1Vz-1;xS zb{1LV>u|d66jA?vqPotwKmU=x|A+|Wb#-Hmv;fF%LMRl1&0#~?v@+xp z7>Q0q1{;EdgJ>cqP*wixRs;t7 zN4$@jo_ttkBL+=jIKuXE#Q}6-5Ri#MWC!dp%Lcst_FKXY=;`cEJnU9X$|Z>@`re)x zXqd#38T4$uh_9mQIOA=+VfgqCHYjW^qnNw;;o}MW6%kwa~eyzUZLQEkrVm88VMmQ7! zH!!q29H^+A23e8G$0zoZlMBZ*Hz`{OF$M!MoPIod-)B*EG=NmOM&F2;-C~hqfr~nk7`wM;h|IrORGZ1xV#Cqx8;NpuV*1SK zn73jbJ^amNtqTOr4-5w2r=`2ATWW4<7SEo;snXw2FocDR7bq^5TMC7ehTMiJKMPZI zQc6kBZI2OEPfXJ$ks$$kvD2SqLcVd1^>-!CxA)NYfKUM5^akQCvuu*Z2LYVzPxguC)gt(dO( z3Q8n@KR4~Lkp*l;{o!iy`ts|RBPYKYZB0kv@(fLE5sgIUU?3<`eHj!62ZIJ487P}F z1ukL+3CgcSZIa@rN@_0xw)&*_vi0Gx_A|8HVv6<%25>18MHChl z$G6Q^8=C5m$M=~5=wsfI$WZnar^k|oRTB1^n`4aoVJP#hH14lvu3`Qha?Pl0)J{XJ!q3{V3Q54A#R@?q* z#z!%T(g7_Nq40(zUQ=IB#ikS((2Xnk`Xltdky7@CP7n#JbqM(d`IuH&A-WTBvrTa+ z+S_9C&<)IVtE_3)wr#lglmCG8=X+3EY8992^;$*t-Ic38jI5k|bhmR?po9qQNTOX% zfLMdK^a|vc`p|Nw6?Ox$0GJUSr-|mn83FZ1CyH>9WVmI{X0)K+8rBi^$Fxj0L{r@p zX)-Ku0Wn3!@}s_oMKMY*5des7N4O0^Yx%g(!4{pz;yLYCue;}zULFEu2?ZjkJ9z{P zR^OKRwnR#=i_m>7P?zr5QRQMNzpnV~>lc+4fg5geR$hqQ8YSWRm$XQ{uK33eR^wau z{f7X6^73M=Sg{%h&zynX?!=O1*JEyA02x_c^ma61yb_B>;PB+ZS6U?iV7#K=0KRc% zZJ!sOz=YQpTIc%h3;^OdN7!89w?w#u>JKm}V-}Mgy_nDvGb3zt{Fp%CvkU~0Sg)u7 z7!M0bCkzB!UFgcmKwoD7`*!WX^&j~xxdwK@43M7652N*(^&g8En30QAx-p2D5{uJ* z={mXasD%9dg5pBKT*ASi@YRQoRgmEvid*b`^=16(d*2Z2;`!I&t4}aj=Bc)Aud7c9oNe*HAcs^*9SrA@#4omgBR zl^vX`ug9L9J8|`jRYMmlKw#_~J~Y@b7(kZSf$lRs7>_X2@Fz(lyv7nW$ZYxHpx;je z0G=-XVY;6WU{b~;CYwC589*!=2g|NXI2sn?_@%|9_(b)sy@@T>RbdSFS zbt*ZQiB;_KH=y4zdebY&q-io`S1@L&iEr*lMz<@LZbOzuNQWwQz*V}@pWsT z0T(*k&*POpZ^2VP{Q(YE9~G~E@U{%iyg?e0d+vBOxgat$s<^nj_)S4nJT4??jRM(XO#H$?dM;LbtnI#v0RWs%y~SPXJH>Ur8ZqdrzXZu^A0@$E2AHuU0rANRx!T`?Ll!@e$Om5qAe3f%Z%B z!&vFL=!X@*pr}w#eeM&GsQ4MKA>aPMt{3sgr+$s!J+77t`+PQ`_+@jKV(t3%B6YdB z{%rhsW(t3J^5=MS_imy5i6U5l!-0Bo1*TQDh;-$_!SVN2;LN~+!WnSog9>#Pr(XqnOZ=<;C(H4qaCO z02Eb8L_t)7EPanb;PbpO!~(_!04xjwr^!E_H*bN+1K>g(tKETuDMhF~a#FB>V{h%2 z<}dreFj~o(dWrkwS|mQ<`tb%en{VVe0Ve{n#pkulX-Gr&rr^7=^XUfb1w=+L~{yg#%J|{QNi<;x_VDs;P50^WA z%*3RD;^~@WC@8o%7QkiG9!~*EDl5@`?i?c45KMl@u;bLhJ=OY~kgVjX3ZJ@W7T^w9 z&=Xc!fcD~#=&rAwNR!|GPsqe$0I9!cG%A@b@z$pQ8ZpYBS2w$13FgoPXB)FCz)IHE z+=9l&Mxj957K|0HsB8f;Jv%|Wc;}5>2LETe4F0iww);psp87JdEws`Y2;&jHU8 zFzrcJ38M$h0{EWP)zx7}How6^n7a`c(`@!>~%WxO0>Ug?#5^ z^=8J`!_GI-nr?Ycz=C=L7^|8Kz=*X%mZaT@@1JZSk}MMs0Mf``>dq@G%k$M|A%c5| zLq4Xy(h5Z?A2R^(h(dobKrEn6002wS-vy6%8Vbs;K+mBQIDWhlbw>`Oa^7N5{YMsk z*x1&P^=GA5MvU;Q2}7FVn@#ZgyeRPH3&l?(_4T#2JsW@a==@E;_$eB?)Q`A!rWf~p z{hL^G^X(#kpA~rT>u;j=XkTA1 zPMkc6s|yNnF%lZ+Lry^%@(QNn?8!Pf%@No_R>Ved16UH3UmC+YLg&hinBfYU(Pxe5 zAn*|V2CEWIH5n5~k%JTFc{3SOGe3I;{GDy*@y5<=c=MGPv2*7>4}pLfoG+`W=!y2! zqiX&_eD}#`;%8>XXJG~q^!w4-(HU>fD5bA`r-y|ImTA1QU?8_UBsqa#|Cq zvw&K1J+4~19D#r`YC%w{aBA?Biuv@NpQCey;oyjUEcrI+!+?7FZ)zUEg_NJSIWNE! zG9iyZpxqHK!g_+1eBDKxbODlO;xT~aA24E1$Ze0vCdFq?PgSlJd=OM!Q3V?@0=*z=w6^^5eCbdSnK=b0n!XGj2VWrz9f4c2BAjNR zR38S^>D^cYf%bpI>pF@=yJo5?jZ4I2_nOgJ7717KkmVCCKcJS^xO6hnmc*^dwiaIw(% z(h)BMdEWrQH4Em5wLhE`le;m~6cY+$4K`rVIh!5^Be8&ybJ}^L%H`Lt64`IuuiwP; z(hv&>^me1LY!;?WE5y;m&1gBjM;yEuJhdHy=zIzb4DiD>1rJUS5uQSE&p@q(N&|+@JvgPf(%@TWRiA zl;KbTprgGFf721AH!?2vZ^D|%WA&M)J!Z#;yb{pVe{cFie~FvDU>Y4{oJ z38E*cvd)&XXO!w)J7U|m{1ONEoY@Jra&3EvJl1ey?L){Kg2V5KHw~4v#2x-MM@k32 zkn-yiF~*R?DZ-Xe;;`WF3Hql-D>x)p{EpCrETKwoDw@=9jl!?&!%lYjU#(enrJnJ+(# zbM>dtc={yHoH>c6`Z_e$of7MYQ;qTQM@dq)bhO9*gEs3f^c`6FQ)IoqQ9g6ti0|W> ziMVZ7re^h->N`A{aJ#dx?b$zJ>$A^rn{n|PyDQP?_=bSEU`jMLrG-DoZX0`dAYC}U z+LKp=vYE@#dhU4y+#y&)R+yr6J*J`S87U5sPSOE^=p#U2q7MsdvY0UFHZl^MF)2dc zcL0zYud+etV|pzM?(te!Invx83YWa z#fZIg90o5L?Nv8(?yUfU@`YXt2NY&<9C2k1!%GjV%-hutI;-)M~8 zG1l*pCNTbmp3WXjn=utrr&W#kzLutzc)*g&g*{nWMB5$0`m@});TAMCpA&9CZhpQ9 z5Xxiln?05Bx)I{-*c%Zn?MgwN5Fw1~E@WEYvM>A3Gbw*8UJ z{?Pn(Jd7lSKtLke4_Sfa&P3$(S7FZf!ZmNH0037`A?9DX1lyk8it6eUq-ZAC$m05@ zCMO(4`dNYGr^j;bt_&yAl*?6U3p_a3K#xZcm;vbX4zRMa|L<@(G0@YC zg^RDm`VAjKb8|DcJ@+SU+4y_<+I`6NdWSV4O%zuC0YWwI9k_DUT1+JXUi5HCEfXIA z$gx~He>pufYT7G3JtOm41Fm-kJN6swj*53)-3(q97>UNZT_`o$w6`l#j2<~&h$D+p z09ZKhKLq8)XE11{2X)p0g#1DH%9p}dvJH`-46{v(UB^sGuCFlz2kHNp^!cgwWg)A4W$Mf+(rpbvO9Lod5CBn!sf|Egy*CC{S&~)J_D3h!CO3)X!#->etjKabplHS2E@!-_pU?`{qaHx0FWvXJd9L~BDU%=FO# zdl=Tfq4@*!IDi!w2KKSI2b>#F5U{~-iQf;-tC$1;T)wg`W^rtTRC$e+$aQ<9d>iKWLDDn@V{5w*vlq48A zDT;B&^P9Ei9;E!fGyuT43ap&W032p*Qckk^S#~uuQI?Zchij5$?K?3D%$hwHtJbZ< zrYE0F0szh-C@3rz?!~*U{E5O0Ko@2JF@H>C@5MA0pvMEoDkFgb=LTd%O`?Zjw>`)# zfDT1=?Oa6ST7UeS`h>zd>0AfnAiIx)@ z=kI)O<7#~zqp&0g#l;n(cqfr(uysCnwgFA;Eu#FFDL*eZvi>HU8KD3JSAtqd91772 zW1xr$QLARo5=}-T9P==!pU1&J&NSqqKcikK^eziejqY&zU^Q`7ntERbGlFmq@Gxi; zF1i%P$B~+Yj#p#?mBImw0015#utp8vh)Kx+aJj_1AZ$HZ}a9`Xy4uin(qm{k7D zq5{C!tv0iU)LsMw{(--W<=2H%tTUV*c=B@4ey&Bm4pM#w0ZYgPo}w@{8}Qu_cgQRN zKnx2;jXxrHW4iuYXXTAzn`jnml6{PZCQS@@*%SO7MGo>vbu1c$5(y8#s)QyS7K<51C4xhT4#DAetHCy{y`qsA1y>KYw6?)lPy|UU zYgS^(Nl2F>%r0VnKMG40qVC8MMESd0IF%xXkkgO6ZU=Z&Fn&BlL_|v5Pgir0D5)M; zl+Nvr8ju|}2>=MwzAbEiBxs3j0t32iysRj|Bmn#k#q0Iq(4Gsso3Wv0LKXT(aaje5 zr&c5#XVfbGI$MX0K9Ir|h-EZk*068iURw5zcuX_7Aq)WT6-kUr@WZRap*~t5A-NtT z9dGHhsR`pbL34bYK;R3sy2l`2USYsV0Qeh9XJ`8bdl9gNg7HWE``)5bv^6#OlMb-i zL@h6$B^DHE$Ni&xY*KK*W*_>^gKDK>()-OOQ@mS=nOH$h($ literal 0 HcmV?d00001 diff --git a/webui/dist/index.html b/webui/dist/index.html new file mode 100644 index 0000000..7b4cfd0 --- /dev/null +++ b/webui/dist/index.html @@ -0,0 +1,17 @@ + + + + + + + + WebAI2API + + + + + +
+ + + \ No newline at end of file diff --git a/webui/index.html b/webui/index.html index 82cb224..e3ec350 100644 --- a/webui/index.html +++ b/webui/index.html @@ -3,14 +3,14 @@ + WebAI2API - -
+ \ No newline at end of file diff --git a/webui/package.json b/webui/package.json new file mode 100644 index 0000000..b05373e --- /dev/null +++ b/webui/package.json @@ -0,0 +1,23 @@ +{ + "name": "webui", + "private": true, + "version": "0.0.0", + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "preview": "vite preview" + }, + "dependencies": { + "@ant-design/icons-vue": "^7.0.1", + "@novnc/novnc": "1.4.0", + "ant-design-vue": "^4.2.6", + "pinia": "^3.0.4", + "vue": "^3.5.24", + "vue-router": "^4.6.4" + }, + "devDependencies": { + "@vitejs/plugin-vue": "^6.0.1", + "vite": "^7.2.4" + } +} diff --git a/webui/pnpm-lock.yaml b/webui/pnpm-lock.yaml new file mode 100644 index 0000000..993f039 --- /dev/null +++ b/webui/pnpm-lock.yaml @@ -0,0 +1,1136 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + '@ant-design/icons-vue': + specifier: ^7.0.1 + version: 7.0.1(vue@3.5.25) + '@novnc/novnc': + specifier: 1.4.0 + version: 1.4.0 + ant-design-vue: + specifier: ^4.2.6 + version: 4.2.6(vue@3.5.25) + pinia: + specifier: ^3.0.4 + version: 3.0.4(vue@3.5.25) + vue: + specifier: ^3.5.24 + version: 3.5.25 + vue-router: + specifier: ^4.6.4 + version: 4.6.4(vue@3.5.25) + devDependencies: + '@vitejs/plugin-vue': + specifier: ^6.0.1 + version: 6.0.3(vite@7.3.0)(vue@3.5.25) + vite: + specifier: ^7.2.4 + version: 7.3.0 + +packages: + + '@ant-design/colors@6.0.0': + resolution: {integrity: sha512-qAZRvPzfdWHtfameEGP2Qvuf838NhergR35o+EuVyB5XvSA98xod5r4utvi4TJ3ywmevm290g9nsCG5MryrdWQ==} + + '@ant-design/icons-svg@4.4.2': + resolution: {integrity: sha512-vHbT+zJEVzllwP+CM+ul7reTEfBR0vgxFe7+lREAsAA7YGsYpboiq2sQNeQeRvh09GfQgs/GyFEvZpJ9cLXpXA==} + + '@ant-design/icons-vue@7.0.1': + resolution: {integrity: sha512-eCqY2unfZK6Fe02AwFlDHLfoyEFreP6rBwAZMIJ1LugmfMiVgwWDYlp1YsRugaPtICYOabV1iWxXdP12u9U43Q==} + peerDependencies: + vue: '>=3.0.3' + + '@babel/helper-string-parser@7.27.1': + resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-identifier@7.28.5': + resolution: {integrity: sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==} + engines: {node: '>=6.9.0'} + + '@babel/parser@7.28.5': + resolution: {integrity: sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==} + engines: {node: '>=6.0.0'} + hasBin: true + + '@babel/runtime@7.28.4': + resolution: {integrity: sha512-Q/N6JNWvIvPnLDvjlE1OUBLPQHH6l3CltCEsHIujp45zQUSSh8K+gHnaEX45yAT1nyngnINhvWtzN+Nb9D8RAQ==} + engines: {node: '>=6.9.0'} + + '@babel/types@7.28.5': + resolution: {integrity: sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==} + engines: {node: '>=6.9.0'} + + '@ctrl/tinycolor@3.6.1': + resolution: {integrity: sha512-SITSV6aIXsuVNV3f3O0f2n/cgyEDWoSqtZMYiAmcsYHydcKrOz3gUxB/iXd/Qf08+IZX4KpgNbvUdMBmWz+kcA==} + engines: {node: '>=10'} + + '@emotion/hash@0.9.2': + resolution: {integrity: sha512-MyqliTZGuOm3+5ZRSaaBGP3USLw6+EGykkwZns2EPC5g8jJ4z9OrdZY9apkl3+UP9+sdz76YYkwCKP5gh8iY3g==} + + '@emotion/unitless@0.8.1': + resolution: {integrity: sha512-KOEGMu6dmJZtpadb476IsZBclKvILjopjUii3V+7MnXIQCYh8W3NgNcgwo21n9LXZX6EDIKvqfjYxXebDwxKmQ==} + + '@esbuild/aix-ppc64@0.27.2': + resolution: {integrity: sha512-GZMB+a0mOMZs4MpDbj8RJp4cw+w1WV5NYD6xzgvzUJ5Ek2jerwfO2eADyI6ExDSUED+1X8aMbegahsJi+8mgpw==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/android-arm64@0.27.2': + resolution: {integrity: sha512-pvz8ZZ7ot/RBphf8fv60ljmaoydPU12VuXHImtAs0XhLLw+EXBi2BLe3OYSBslR4rryHvweW5gmkKFwTiFy6KA==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm@0.27.2': + resolution: {integrity: sha512-DVNI8jlPa7Ujbr1yjU2PfUSRtAUZPG9I1RwW4F4xFB1Imiu2on0ADiI/c3td+KmDtVKNbi+nffGDQMfcIMkwIA==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-x64@0.27.2': + resolution: {integrity: sha512-z8Ank4Byh4TJJOh4wpz8g2vDy75zFL0TlZlkUkEwYXuPSgX8yzep596n6mT7905kA9uHZsf/o2OJZubl2l3M7A==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/darwin-arm64@0.27.2': + resolution: {integrity: sha512-davCD2Zc80nzDVRwXTcQP/28fiJbcOwvdolL0sOiOsbwBa72kegmVU0Wrh1MYrbuCL98Omp5dVhQFWRKR2ZAlg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-x64@0.27.2': + resolution: {integrity: sha512-ZxtijOmlQCBWGwbVmwOF/UCzuGIbUkqB1faQRf5akQmxRJ1ujusWsb3CVfk/9iZKr2L5SMU5wPBi1UWbvL+VQA==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/freebsd-arm64@0.27.2': + resolution: {integrity: sha512-lS/9CN+rgqQ9czogxlMcBMGd+l8Q3Nj1MFQwBZJyoEKI50XGxwuzznYdwcav6lpOGv5BqaZXqvBSiB/kJ5op+g==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.27.2': + resolution: {integrity: sha512-tAfqtNYb4YgPnJlEFu4c212HYjQWSO/w/h/lQaBK7RbwGIkBOuNKQI9tqWzx7Wtp7bTPaGC6MJvWI608P3wXYA==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/linux-arm64@0.27.2': + resolution: {integrity: sha512-hYxN8pr66NsCCiRFkHUAsxylNOcAQaxSSkHMMjcpx0si13t1LHFphxJZUiGwojB1a/Hd5OiPIqDdXONia6bhTw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm@0.27.2': + resolution: {integrity: sha512-vWfq4GaIMP9AIe4yj1ZUW18RDhx6EPQKjwe7n8BbIecFtCQG4CfHGaHuh7fdfq+y3LIA2vGS/o9ZBGVxIDi9hw==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-ia32@0.27.2': + resolution: {integrity: sha512-MJt5BRRSScPDwG2hLelYhAAKh9imjHK5+NE/tvnRLbIqUWa+0E9N4WNMjmp/kXXPHZGqPLxggwVhz7QP8CTR8w==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-loong64@0.27.2': + resolution: {integrity: sha512-lugyF1atnAT463aO6KPshVCJK5NgRnU4yb3FUumyVz+cGvZbontBgzeGFO1nF+dPueHD367a2ZXe1NtUkAjOtg==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-mips64el@0.27.2': + resolution: {integrity: sha512-nlP2I6ArEBewvJ2gjrrkESEZkB5mIoaTswuqNFRv/WYd+ATtUpe9Y09RnJvgvdag7he0OWgEZWhviS1OTOKixw==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-ppc64@0.27.2': + resolution: {integrity: sha512-C92gnpey7tUQONqg1n6dKVbx3vphKtTHJaNG2Ok9lGwbZil6DrfyecMsp9CrmXGQJmZ7iiVXvvZH6Ml5hL6XdQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-riscv64@0.27.2': + resolution: {integrity: sha512-B5BOmojNtUyN8AXlK0QJyvjEZkWwy/FKvakkTDCziX95AowLZKR6aCDhG7LeF7uMCXEJqwa8Bejz5LTPYm8AvA==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-s390x@0.27.2': + resolution: {integrity: sha512-p4bm9+wsPwup5Z8f4EpfN63qNagQ47Ua2znaqGH6bqLlmJ4bx97Y9JdqxgGZ6Y8xVTixUnEkoKSHcpRlDnNr5w==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-x64@0.27.2': + resolution: {integrity: sha512-uwp2Tip5aPmH+NRUwTcfLb+W32WXjpFejTIOWZFw/v7/KnpCDKG66u4DLcurQpiYTiYwQ9B7KOeMJvLCu/OvbA==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/netbsd-arm64@0.27.2': + resolution: {integrity: sha512-Kj6DiBlwXrPsCRDeRvGAUb/LNrBASrfqAIok+xB0LxK8CHqxZ037viF13ugfsIpePH93mX7xfJp97cyDuTZ3cw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.27.2': + resolution: {integrity: sha512-HwGDZ0VLVBY3Y+Nw0JexZy9o/nUAWq9MlV7cahpaXKW6TOzfVno3y3/M8Ga8u8Yr7GldLOov27xiCnqRZf0tCA==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/openbsd-arm64@0.27.2': + resolution: {integrity: sha512-DNIHH2BPQ5551A7oSHD0CKbwIA/Ox7+78/AWkbS5QoRzaqlev2uFayfSxq68EkonB+IKjiuxBFoV8ESJy8bOHA==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.27.2': + resolution: {integrity: sha512-/it7w9Nb7+0KFIzjalNJVR5bOzA9Vay+yIPLVHfIQYG/j+j9VTH84aNB8ExGKPU4AzfaEvN9/V4HV+F+vo8OEg==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/openharmony-arm64@0.27.2': + resolution: {integrity: sha512-LRBbCmiU51IXfeXk59csuX/aSaToeG7w48nMwA6049Y4J4+VbWALAuXcs+qcD04rHDuSCSRKdmY63sruDS5qag==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openharmony] + + '@esbuild/sunos-x64@0.27.2': + resolution: {integrity: sha512-kMtx1yqJHTmqaqHPAzKCAkDaKsffmXkPHThSfRwZGyuqyIeBvf08KSsYXl+abf5HDAPMJIPnbBfXvP2ZC2TfHg==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/win32-arm64@0.27.2': + resolution: {integrity: sha512-Yaf78O/B3Kkh+nKABUF++bvJv5Ijoy9AN1ww904rOXZFLWVc5OLOfL56W+C8F9xn5JQZa3UX6m+IktJnIb1Jjg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-ia32@0.27.2': + resolution: {integrity: sha512-Iuws0kxo4yusk7sw70Xa2E2imZU5HoixzxfGCdxwBdhiDgt9vX9VUCBhqcwY7/uh//78A1hMkkROMJq9l27oLQ==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-x64@0.27.2': + resolution: {integrity: sha512-sRdU18mcKf7F+YgheI/zGf5alZatMUTKj/jNS6l744f9u3WFu4v7twcUI9vu4mknF4Y9aDlblIie0IM+5xxaqQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + + '@jridgewell/sourcemap-codec@1.5.5': + resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} + + '@novnc/novnc@1.4.0': + resolution: {integrity: sha512-kW6ALMc5BuH08e/ond/I1naYcfjc19JYMN1EdtmgjjjzPGCjW8fMtVM3MwM6q7YLRjPlQ3orEvoKMgSS7RkEVQ==} + + '@rolldown/pluginutils@1.0.0-beta.53': + resolution: {integrity: sha512-vENRlFU4YbrwVqNDZ7fLvy+JR1CRkyr01jhSiDpE1u6py3OMzQfztQU2jxykW3ALNxO4kSlqIDeYyD0Y9RcQeQ==} + + '@rollup/rollup-android-arm-eabi@4.53.5': + resolution: {integrity: sha512-iDGS/h7D8t7tvZ1t6+WPK04KD0MwzLZrG0se1hzBjSi5fyxlsiggoJHwh18PCFNn7tG43OWb6pdZ6Y+rMlmyNQ==} + cpu: [arm] + os: [android] + + '@rollup/rollup-android-arm64@4.53.5': + resolution: {integrity: sha512-wrSAViWvZHBMMlWk6EJhvg8/rjxzyEhEdgfMMjREHEq11EtJ6IP6yfcCH57YAEca2Oe3FNCE9DSTgU70EIGmVw==} + cpu: [arm64] + os: [android] + + '@rollup/rollup-darwin-arm64@4.53.5': + resolution: {integrity: sha512-S87zZPBmRO6u1YXQLwpveZm4JfPpAa6oHBX7/ghSiGH3rz/KDgAu1rKdGutV+WUI6tKDMbaBJomhnT30Y2t4VQ==} + cpu: [arm64] + os: [darwin] + + '@rollup/rollup-darwin-x64@4.53.5': + resolution: {integrity: sha512-YTbnsAaHo6VrAczISxgpTva8EkfQus0VPEVJCEaboHtZRIb6h6j0BNxRBOwnDciFTZLDPW5r+ZBmhL/+YpTZgA==} + cpu: [x64] + os: [darwin] + + '@rollup/rollup-freebsd-arm64@4.53.5': + resolution: {integrity: sha512-1T8eY2J8rKJWzaznV7zedfdhD1BqVs1iqILhmHDq/bqCUZsrMt+j8VCTHhP0vdfbHK3e1IQ7VYx3jlKqwlf+vw==} + cpu: [arm64] + os: [freebsd] + + '@rollup/rollup-freebsd-x64@4.53.5': + resolution: {integrity: sha512-sHTiuXyBJApxRn+VFMaw1U+Qsz4kcNlxQ742snICYPrY+DDL8/ZbaC4DVIB7vgZmp3jiDaKA0WpBdP0aqPJoBQ==} + cpu: [x64] + os: [freebsd] + + '@rollup/rollup-linux-arm-gnueabihf@4.53.5': + resolution: {integrity: sha512-dV3T9MyAf0w8zPVLVBptVlzaXxka6xg1f16VAQmjg+4KMSTWDvhimI/Y6mp8oHwNrmnmVl9XxJ/w/mO4uIQONA==} + cpu: [arm] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-arm-musleabihf@4.53.5': + resolution: {integrity: sha512-wIGYC1x/hyjP+KAu9+ewDI+fi5XSNiUi9Bvg6KGAh2TsNMA3tSEs+Sh6jJ/r4BV/bx/CyWu2ue9kDnIdRyafcQ==} + cpu: [arm] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-arm64-gnu@4.53.5': + resolution: {integrity: sha512-Y+qVA0D9d0y2FRNiG9oM3Hut/DgODZbU9I8pLLPwAsU0tUKZ49cyV1tzmB/qRbSzGvY8lpgGkJuMyuhH7Ma+Vg==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-arm64-musl@4.53.5': + resolution: {integrity: sha512-juaC4bEgJsyFVfqhtGLz8mbopaWD+WeSOYr5E16y+1of6KQjc0BpwZLuxkClqY1i8sco+MdyoXPNiCkQou09+g==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-loong64-gnu@4.53.5': + resolution: {integrity: sha512-rIEC0hZ17A42iXtHX+EPJVL/CakHo+tT7W0pbzdAGuWOt2jxDFh7A/lRhsNHBcqL4T36+UiAgwO8pbmn3dE8wA==} + cpu: [loong64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-ppc64-gnu@4.53.5': + resolution: {integrity: sha512-T7l409NhUE552RcAOcmJHj3xyZ2h7vMWzcwQI0hvn5tqHh3oSoclf9WgTl+0QqffWFG8MEVZZP1/OBglKZx52Q==} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-riscv64-gnu@4.53.5': + resolution: {integrity: sha512-7OK5/GhxbnrMcxIFoYfhV/TkknarkYC1hqUw1wU2xUN3TVRLNT5FmBv4KkheSG2xZ6IEbRAhTooTV2+R5Tk0lQ==} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-riscv64-musl@4.53.5': + resolution: {integrity: sha512-GwuDBE/PsXaTa76lO5eLJTyr2k8QkPipAyOrs4V/KJufHCZBJ495VCGJol35grx9xryk4V+2zd3Ri+3v7NPh+w==} + cpu: [riscv64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-s390x-gnu@4.53.5': + resolution: {integrity: sha512-IAE1Ziyr1qNfnmiQLHBURAD+eh/zH1pIeJjeShleII7Vj8kyEm2PF77o+lf3WTHDpNJcu4IXJxNO0Zluro8bOw==} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-x64-gnu@4.53.5': + resolution: {integrity: sha512-Pg6E+oP7GvZ4XwgRJBuSXZjcqpIW3yCBhK4BcsANvb47qMvAbCjR6E+1a/U2WXz1JJxp9/4Dno3/iSJLcm5auw==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-x64-musl@4.53.5': + resolution: {integrity: sha512-txGtluxDKTxaMDzUduGP0wdfng24y1rygUMnmlUJ88fzCCULCLn7oE5kb2+tRB+MWq1QDZT6ObT5RrR8HFRKqg==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rollup/rollup-openharmony-arm64@4.53.5': + resolution: {integrity: sha512-3DFiLPnTxiOQV993fMc+KO8zXHTcIjgaInrqlG8zDp1TlhYl6WgrOHuJkJQ6M8zHEcntSJsUp1XFZSY8C1DYbg==} + cpu: [arm64] + os: [openharmony] + + '@rollup/rollup-win32-arm64-msvc@4.53.5': + resolution: {integrity: sha512-nggc/wPpNTgjGg75hu+Q/3i32R00Lq1B6N1DO7MCU340MRKL3WZJMjA9U4K4gzy3dkZPXm9E1Nc81FItBVGRlA==} + cpu: [arm64] + os: [win32] + + '@rollup/rollup-win32-ia32-msvc@4.53.5': + resolution: {integrity: sha512-U/54pTbdQpPLBdEzCT6NBCFAfSZMvmjr0twhnD9f4EIvlm9wy3jjQ38yQj1AGznrNO65EWQMgm/QUjuIVrYF9w==} + cpu: [ia32] + os: [win32] + + '@rollup/rollup-win32-x64-gnu@4.53.5': + resolution: {integrity: sha512-2NqKgZSuLH9SXBBV2dWNRCZmocgSOx8OJSdpRaEcRlIfX8YrKxUT6z0F1NpvDVhOsl190UFTRh2F2WDWWCYp3A==} + cpu: [x64] + os: [win32] + + '@rollup/rollup-win32-x64-msvc@4.53.5': + resolution: {integrity: sha512-JRpZUhCfhZ4keB5v0fe02gQJy05GqboPOaxvjugW04RLSYYoB/9t2lx2u/tMs/Na/1NXfY8QYjgRljRpN+MjTQ==} + cpu: [x64] + os: [win32] + + '@simonwep/pickr@1.8.2': + resolution: {integrity: sha512-/l5w8BIkrpP6n1xsetx9MWPWlU6OblN5YgZZphxan0Tq4BByTCETL6lyIeY8lagalS2Nbt4F2W034KHLIiunKA==} + + '@types/estree@1.0.8': + resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==} + + '@vitejs/plugin-vue@6.0.3': + resolution: {integrity: sha512-TlGPkLFLVOY3T7fZrwdvKpjprR3s4fxRln0ORDo1VQ7HHyxJwTlrjKU3kpVWTlaAjIEuCTokmjkZnr8Tpc925w==} + engines: {node: ^20.19.0 || >=22.12.0} + peerDependencies: + vite: ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 + vue: ^3.2.25 + + '@vue/compiler-core@3.5.25': + resolution: {integrity: sha512-vay5/oQJdsNHmliWoZfHPoVZZRmnSWhug0BYT34njkYTPqClh3DNWLkZNJBVSjsNMrg0CCrBfoKkjZQPM/QVUw==} + + '@vue/compiler-dom@3.5.25': + resolution: {integrity: sha512-4We0OAcMZsKgYoGlMjzYvaoErltdFI2/25wqanuTu+S4gismOTRTBPi4IASOjxWdzIwrYSjnqONfKvuqkXzE2Q==} + + '@vue/compiler-sfc@3.5.25': + resolution: {integrity: sha512-PUgKp2rn8fFsI++lF2sO7gwO2d9Yj57Utr5yEsDf3GNaQcowCLKL7sf+LvVFvtJDXUp/03+dC6f2+LCv5aK1ag==} + + '@vue/compiler-ssr@3.5.25': + resolution: {integrity: sha512-ritPSKLBcParnsKYi+GNtbdbrIE1mtuFEJ4U1sWeuOMlIziK5GtOL85t5RhsNy4uWIXPgk+OUdpnXiTdzn8o3A==} + + '@vue/devtools-api@6.6.4': + resolution: {integrity: sha512-sGhTPMuXqZ1rVOk32RylztWkfXTRhuS7vgAKv0zjqk8gbsHkJ7xfFf+jbySxt7tWObEJwyKaHMikV/WGDiQm8g==} + + '@vue/devtools-api@7.7.9': + resolution: {integrity: sha512-kIE8wvwlcZ6TJTbNeU2HQNtaxLx3a84aotTITUuL/4bzfPxzajGBOoqjMhwZJ8L9qFYDU/lAYMEEm11dnZOD6g==} + + '@vue/devtools-kit@7.7.9': + resolution: {integrity: sha512-PyQ6odHSgiDVd4hnTP+aDk2X4gl2HmLDfiyEnn3/oV+ckFDuswRs4IbBT7vacMuGdwY/XemxBoh302ctbsptuA==} + + '@vue/devtools-shared@7.7.9': + resolution: {integrity: sha512-iWAb0v2WYf0QWmxCGy0seZNDPdO3Sp5+u78ORnyeonS6MT4PC7VPrryX2BpMJrwlDeaZ6BD4vP4XKjK0SZqaeA==} + + '@vue/reactivity@3.5.25': + resolution: {integrity: sha512-5xfAypCQepv4Jog1U4zn8cZIcbKKFka3AgWHEFQeK65OW+Ys4XybP6z2kKgws4YB43KGpqp5D/K3go2UPPunLA==} + + '@vue/runtime-core@3.5.25': + resolution: {integrity: sha512-Z751v203YWwYzy460bzsYQISDfPjHTl+6Zzwo/a3CsAf+0ccEjQ8c+0CdX1WsumRTHeywvyUFtW6KvNukT/smA==} + + '@vue/runtime-dom@3.5.25': + resolution: {integrity: sha512-a4WrkYFbb19i9pjkz38zJBg8wa/rboNERq3+hRRb0dHiJh13c+6kAbgqCPfMaJ2gg4weWD3APZswASOfmKwamA==} + + '@vue/server-renderer@3.5.25': + resolution: {integrity: sha512-UJaXR54vMG61i8XNIzTSf2Q7MOqZHpp8+x3XLGtE3+fL+nQd+k7O5+X3D/uWrnQXOdMw5VPih+Uremcw+u1woQ==} + peerDependencies: + vue: 3.5.25 + + '@vue/shared@3.5.25': + resolution: {integrity: sha512-AbOPdQQnAnzs58H2FrrDxYj/TJfmeS2jdfEEhgiKINy+bnOANmVizIEgq1r+C5zsbs6l1CCQxtcj71rwNQ4jWg==} + + ant-design-vue@4.2.6: + resolution: {integrity: sha512-t7eX13Yj3i9+i5g9lqFyYneoIb3OzTvQjq9Tts1i+eiOd3Eva/6GagxBSXM1fOCjqemIu0FYVE1ByZ/38epR3Q==} + engines: {node: '>=12.22.0'} + peerDependencies: + vue: '>=3.2.0' + + array-tree-filter@2.1.0: + resolution: {integrity: sha512-4ROwICNlNw/Hqa9v+rk5h22KjmzB1JGTMVKP2AKJBOCgb0yL0ASf0+YvCcLNNwquOHNX48jkeZIJ3a+oOQqKcw==} + + async-validator@4.2.5: + resolution: {integrity: sha512-7HhHjtERjqlNbZtqNqy2rckN/SpOOlmDliet+lP7k+eKZEjPk3DgyeU9lIXLdeLz0uBbbVp+9Qdow9wJWgwwfg==} + + birpc@2.9.0: + resolution: {integrity: sha512-KrayHS5pBi69Xi9JmvoqrIgYGDkD6mcSe/i6YKi3w5kekCLzrX4+nawcXqrj2tIp50Kw/mT/s3p+GVK0A0sKxw==} + + compute-scroll-into-view@1.0.20: + resolution: {integrity: sha512-UCB0ioiyj8CRjtrvaceBLqqhZCVP+1B8+NWQhmdsm0VXOJtobBCf1dBQmebCCo34qZmUwZfIH2MZLqNHazrfjg==} + + copy-anything@4.0.5: + resolution: {integrity: sha512-7Vv6asjS4gMOuILabD3l739tsaxFQmC+a7pLZm02zyvs8p977bL3zEgq3yDk5rn9B0PbYgIv++jmHcuUab4RhA==} + engines: {node: '>=18'} + + core-js@3.47.0: + resolution: {integrity: sha512-c3Q2VVkGAUyupsjRnaNX6u8Dq2vAdzm9iuPj5FW0fRxzlxgq9Q39MDq10IvmQSpLgHQNyQzQmOo6bgGHmH3NNg==} + + csstype@3.2.3: + resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==} + + dayjs@1.11.19: + resolution: {integrity: sha512-t5EcLVS6QPBNqM2z8fakk/NKel+Xzshgt8FFKAn+qwlD1pzZWxh0nVCrvFK7ZDb6XucZeF9z8C7CBWTRIVApAw==} + + dom-align@1.12.4: + resolution: {integrity: sha512-R8LUSEay/68zE5c8/3BDxiTEvgb4xZTF0RKmAHfiEVN3klfIpXfi2/QCoiWPccVQ0J/ZGdz9OjzL4uJEP/MRAw==} + + dom-scroll-into-view@2.0.1: + resolution: {integrity: sha512-bvVTQe1lfaUr1oFzZX80ce9KLDlZ3iU+XGNE/bz9HnGdklTieqsbmsLHe+rT2XWqopvL0PckkYqN7ksmm5pe3w==} + + entities@4.5.0: + resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} + engines: {node: '>=0.12'} + + esbuild@0.27.2: + resolution: {integrity: sha512-HyNQImnsOC7X9PMNaCIeAm4ISCQXs5a5YasTXVliKv4uuBo1dKrG0A+uQS8M5eXjVMnLg3WgXaKvprHlFJQffw==} + engines: {node: '>=18'} + hasBin: true + + estree-walker@2.0.2: + resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} + + fdir@6.5.0: + resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} + engines: {node: '>=12.0.0'} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + hookable@5.5.3: + resolution: {integrity: sha512-Yc+BQe8SvoXH1643Qez1zqLRmbA5rCL+sSmk6TVos0LWVfNIB7PGncdlId77WzLGSIB5KaWgTaNTs2lNVEI6VQ==} + + is-plain-object@3.0.1: + resolution: {integrity: sha512-Xnpx182SBMrr/aBik8y+GuR4U1L9FqMSojwDQwPMmxyC6bvEqly9UBCxhauBF5vNh2gwWJNX6oDV7O+OM4z34g==} + engines: {node: '>=0.10.0'} + + is-what@5.5.0: + resolution: {integrity: sha512-oG7cgbmg5kLYae2N5IVd3jm2s+vldjxJzK1pcu9LfpGuQ93MQSzo0okvRna+7y5ifrD+20FE8FvjusyGaz14fw==} + engines: {node: '>=18'} + + js-tokens@4.0.0: + resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==} + + lodash-es@4.17.22: + resolution: {integrity: sha512-XEawp1t0gxSi9x01glktRZ5HDy0HXqrM0x5pXQM98EaI0NxO6jVM7omDOxsuEo5UIASAnm2bRp1Jt/e0a2XU8Q==} + + lodash@4.17.21: + resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} + + loose-envify@1.4.0: + resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} + hasBin: true + + magic-string@0.30.21: + resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} + + mitt@3.0.1: + resolution: {integrity: sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==} + + nanoid@3.3.11: + resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + nanopop@2.4.2: + resolution: {integrity: sha512-NzOgmMQ+elxxHeIha+OG/Pv3Oc3p4RU2aBhwWwAqDpXrdTbtRylbRLQztLy8dMMwfl6pclznBdfUhccEn9ZIzw==} + + perfect-debounce@1.0.0: + resolution: {integrity: sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==} + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + + picomatch@4.0.3: + resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==} + engines: {node: '>=12'} + + pinia@3.0.4: + resolution: {integrity: sha512-l7pqLUFTI/+ESXn6k3nu30ZIzW5E2WZF/LaHJEpoq6ElcLD+wduZoB2kBN19du6K/4FDpPMazY2wJr+IndBtQw==} + peerDependencies: + typescript: '>=4.5.0' + vue: ^3.5.11 + peerDependenciesMeta: + typescript: + optional: true + + postcss@8.5.6: + resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==} + engines: {node: ^10 || ^12 || >=14} + + resize-observer-polyfill@1.5.1: + resolution: {integrity: sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==} + + rfdc@1.4.1: + resolution: {integrity: sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA==} + + rollup@4.53.5: + resolution: {integrity: sha512-iTNAbFSlRpcHeeWu73ywU/8KuU/LZmNCSxp6fjQkJBD3ivUb8tpDrXhIxEzA05HlYMEwmtaUnb3RP+YNv162OQ==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + + scroll-into-view-if-needed@2.2.31: + resolution: {integrity: sha512-dGCXy99wZQivjmjIqihaBQNjryrz5rueJY7eHfTdyWEiR4ttYpsajb14rn9s5d4DY4EcY6+4+U/maARBXJedkA==} + + shallow-equal@1.2.1: + resolution: {integrity: sha512-S4vJDjHHMBaiZuT9NPb616CSmLf618jawtv3sufLl6ivK8WocjAo58cXwbRV1cgqxH0Qbv+iUt6m05eqEa2IRA==} + + source-map-js@1.2.1: + resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} + engines: {node: '>=0.10.0'} + + speakingurl@14.0.1: + resolution: {integrity: sha512-1POYv7uv2gXoyGFpBCmpDVSNV74IfsWlDW216UPjbWufNf+bSU6GdbDsxdcxtfwb4xlI3yxzOTKClUosxARYrQ==} + engines: {node: '>=0.10.0'} + + stylis@4.3.6: + resolution: {integrity: sha512-yQ3rwFWRfwNUY7H5vpU0wfdkNSnvnJinhF9830Swlaxl03zsOjCfmX0ugac+3LtK0lYSgwL/KXc8oYL3mG4YFQ==} + + superjson@2.2.6: + resolution: {integrity: sha512-H+ue8Zo4vJmV2nRjpx86P35lzwDT3nItnIsocgumgr0hHMQ+ZGq5vrERg9kJBo5AWGmxZDhzDo+WVIJqkB0cGA==} + engines: {node: '>=16'} + + throttle-debounce@5.0.2: + resolution: {integrity: sha512-B71/4oyj61iNH0KeCamLuE2rmKuTO5byTOSVwECM5FA7TiAiAW+UqTKZ9ERueC4qvgSttUhdmq1mXC3kJqGX7A==} + engines: {node: '>=12.22'} + + tinyglobby@0.2.15: + resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==} + engines: {node: '>=12.0.0'} + + vite@7.3.0: + resolution: {integrity: sha512-dZwN5L1VlUBewiP6H9s2+B3e3Jg96D0vzN+Ry73sOefebhYr9f94wwkMNN/9ouoU8pV1BqA1d1zGk8928cx0rg==} + engines: {node: ^20.19.0 || >=22.12.0} + hasBin: true + peerDependencies: + '@types/node': ^20.19.0 || >=22.12.0 + jiti: '>=1.21.0' + less: ^4.0.0 + lightningcss: ^1.21.0 + sass: ^1.70.0 + sass-embedded: ^1.70.0 + stylus: '>=0.54.8' + sugarss: ^5.0.0 + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + jiti: + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + + vue-router@4.6.4: + resolution: {integrity: sha512-Hz9q5sa33Yhduglwz6g9skT8OBPii+4bFn88w6J+J4MfEo4KRRpmiNG/hHHkdbRFlLBOqxN8y8gf2Fb0MTUgVg==} + peerDependencies: + vue: ^3.5.0 + + vue-types@3.0.2: + resolution: {integrity: sha512-IwUC0Aq2zwaXqy74h4WCvFCUtoV0iSWr0snWnE9TnU18S66GAQyqQbRf2qfJtUuiFsBf6qp0MEwdonlwznlcrw==} + engines: {node: '>=10.15.0'} + peerDependencies: + vue: ^3.0.0 + + vue@3.5.25: + resolution: {integrity: sha512-YLVdgv2K13WJ6n+kD5owehKtEXwdwXuj2TTyJMsO7pSeKw2bfRNZGjhB7YzrpbMYj5b5QsUebHpOqR3R3ziy/g==} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + + warning@4.0.3: + resolution: {integrity: sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==} + +snapshots: + + '@ant-design/colors@6.0.0': + dependencies: + '@ctrl/tinycolor': 3.6.1 + + '@ant-design/icons-svg@4.4.2': {} + + '@ant-design/icons-vue@7.0.1(vue@3.5.25)': + dependencies: + '@ant-design/colors': 6.0.0 + '@ant-design/icons-svg': 4.4.2 + vue: 3.5.25 + + '@babel/helper-string-parser@7.27.1': {} + + '@babel/helper-validator-identifier@7.28.5': {} + + '@babel/parser@7.28.5': + dependencies: + '@babel/types': 7.28.5 + + '@babel/runtime@7.28.4': {} + + '@babel/types@7.28.5': + dependencies: + '@babel/helper-string-parser': 7.27.1 + '@babel/helper-validator-identifier': 7.28.5 + + '@ctrl/tinycolor@3.6.1': {} + + '@emotion/hash@0.9.2': {} + + '@emotion/unitless@0.8.1': {} + + '@esbuild/aix-ppc64@0.27.2': + optional: true + + '@esbuild/android-arm64@0.27.2': + optional: true + + '@esbuild/android-arm@0.27.2': + optional: true + + '@esbuild/android-x64@0.27.2': + optional: true + + '@esbuild/darwin-arm64@0.27.2': + optional: true + + '@esbuild/darwin-x64@0.27.2': + optional: true + + '@esbuild/freebsd-arm64@0.27.2': + optional: true + + '@esbuild/freebsd-x64@0.27.2': + optional: true + + '@esbuild/linux-arm64@0.27.2': + optional: true + + '@esbuild/linux-arm@0.27.2': + optional: true + + '@esbuild/linux-ia32@0.27.2': + optional: true + + '@esbuild/linux-loong64@0.27.2': + optional: true + + '@esbuild/linux-mips64el@0.27.2': + optional: true + + '@esbuild/linux-ppc64@0.27.2': + optional: true + + '@esbuild/linux-riscv64@0.27.2': + optional: true + + '@esbuild/linux-s390x@0.27.2': + optional: true + + '@esbuild/linux-x64@0.27.2': + optional: true + + '@esbuild/netbsd-arm64@0.27.2': + optional: true + + '@esbuild/netbsd-x64@0.27.2': + optional: true + + '@esbuild/openbsd-arm64@0.27.2': + optional: true + + '@esbuild/openbsd-x64@0.27.2': + optional: true + + '@esbuild/openharmony-arm64@0.27.2': + optional: true + + '@esbuild/sunos-x64@0.27.2': + optional: true + + '@esbuild/win32-arm64@0.27.2': + optional: true + + '@esbuild/win32-ia32@0.27.2': + optional: true + + '@esbuild/win32-x64@0.27.2': + optional: true + + '@jridgewell/sourcemap-codec@1.5.5': {} + + '@novnc/novnc@1.4.0': {} + + '@rolldown/pluginutils@1.0.0-beta.53': {} + + '@rollup/rollup-android-arm-eabi@4.53.5': + optional: true + + '@rollup/rollup-android-arm64@4.53.5': + optional: true + + '@rollup/rollup-darwin-arm64@4.53.5': + optional: true + + '@rollup/rollup-darwin-x64@4.53.5': + optional: true + + '@rollup/rollup-freebsd-arm64@4.53.5': + optional: true + + '@rollup/rollup-freebsd-x64@4.53.5': + optional: true + + '@rollup/rollup-linux-arm-gnueabihf@4.53.5': + optional: true + + '@rollup/rollup-linux-arm-musleabihf@4.53.5': + optional: true + + '@rollup/rollup-linux-arm64-gnu@4.53.5': + optional: true + + '@rollup/rollup-linux-arm64-musl@4.53.5': + optional: true + + '@rollup/rollup-linux-loong64-gnu@4.53.5': + optional: true + + '@rollup/rollup-linux-ppc64-gnu@4.53.5': + optional: true + + '@rollup/rollup-linux-riscv64-gnu@4.53.5': + optional: true + + '@rollup/rollup-linux-riscv64-musl@4.53.5': + optional: true + + '@rollup/rollup-linux-s390x-gnu@4.53.5': + optional: true + + '@rollup/rollup-linux-x64-gnu@4.53.5': + optional: true + + '@rollup/rollup-linux-x64-musl@4.53.5': + optional: true + + '@rollup/rollup-openharmony-arm64@4.53.5': + optional: true + + '@rollup/rollup-win32-arm64-msvc@4.53.5': + optional: true + + '@rollup/rollup-win32-ia32-msvc@4.53.5': + optional: true + + '@rollup/rollup-win32-x64-gnu@4.53.5': + optional: true + + '@rollup/rollup-win32-x64-msvc@4.53.5': + optional: true + + '@simonwep/pickr@1.8.2': + dependencies: + core-js: 3.47.0 + nanopop: 2.4.2 + + '@types/estree@1.0.8': {} + + '@vitejs/plugin-vue@6.0.3(vite@7.3.0)(vue@3.5.25)': + dependencies: + '@rolldown/pluginutils': 1.0.0-beta.53 + vite: 7.3.0 + vue: 3.5.25 + + '@vue/compiler-core@3.5.25': + dependencies: + '@babel/parser': 7.28.5 + '@vue/shared': 3.5.25 + entities: 4.5.0 + estree-walker: 2.0.2 + source-map-js: 1.2.1 + + '@vue/compiler-dom@3.5.25': + dependencies: + '@vue/compiler-core': 3.5.25 + '@vue/shared': 3.5.25 + + '@vue/compiler-sfc@3.5.25': + dependencies: + '@babel/parser': 7.28.5 + '@vue/compiler-core': 3.5.25 + '@vue/compiler-dom': 3.5.25 + '@vue/compiler-ssr': 3.5.25 + '@vue/shared': 3.5.25 + estree-walker: 2.0.2 + magic-string: 0.30.21 + postcss: 8.5.6 + source-map-js: 1.2.1 + + '@vue/compiler-ssr@3.5.25': + dependencies: + '@vue/compiler-dom': 3.5.25 + '@vue/shared': 3.5.25 + + '@vue/devtools-api@6.6.4': {} + + '@vue/devtools-api@7.7.9': + dependencies: + '@vue/devtools-kit': 7.7.9 + + '@vue/devtools-kit@7.7.9': + dependencies: + '@vue/devtools-shared': 7.7.9 + birpc: 2.9.0 + hookable: 5.5.3 + mitt: 3.0.1 + perfect-debounce: 1.0.0 + speakingurl: 14.0.1 + superjson: 2.2.6 + + '@vue/devtools-shared@7.7.9': + dependencies: + rfdc: 1.4.1 + + '@vue/reactivity@3.5.25': + dependencies: + '@vue/shared': 3.5.25 + + '@vue/runtime-core@3.5.25': + dependencies: + '@vue/reactivity': 3.5.25 + '@vue/shared': 3.5.25 + + '@vue/runtime-dom@3.5.25': + dependencies: + '@vue/reactivity': 3.5.25 + '@vue/runtime-core': 3.5.25 + '@vue/shared': 3.5.25 + csstype: 3.2.3 + + '@vue/server-renderer@3.5.25(vue@3.5.25)': + dependencies: + '@vue/compiler-ssr': 3.5.25 + '@vue/shared': 3.5.25 + vue: 3.5.25 + + '@vue/shared@3.5.25': {} + + ant-design-vue@4.2.6(vue@3.5.25): + dependencies: + '@ant-design/colors': 6.0.0 + '@ant-design/icons-vue': 7.0.1(vue@3.5.25) + '@babel/runtime': 7.28.4 + '@ctrl/tinycolor': 3.6.1 + '@emotion/hash': 0.9.2 + '@emotion/unitless': 0.8.1 + '@simonwep/pickr': 1.8.2 + array-tree-filter: 2.1.0 + async-validator: 4.2.5 + csstype: 3.2.3 + dayjs: 1.11.19 + dom-align: 1.12.4 + dom-scroll-into-view: 2.0.1 + lodash: 4.17.21 + lodash-es: 4.17.22 + resize-observer-polyfill: 1.5.1 + scroll-into-view-if-needed: 2.2.31 + shallow-equal: 1.2.1 + stylis: 4.3.6 + throttle-debounce: 5.0.2 + vue: 3.5.25 + vue-types: 3.0.2(vue@3.5.25) + warning: 4.0.3 + + array-tree-filter@2.1.0: {} + + async-validator@4.2.5: {} + + birpc@2.9.0: {} + + compute-scroll-into-view@1.0.20: {} + + copy-anything@4.0.5: + dependencies: + is-what: 5.5.0 + + core-js@3.47.0: {} + + csstype@3.2.3: {} + + dayjs@1.11.19: {} + + dom-align@1.12.4: {} + + dom-scroll-into-view@2.0.1: {} + + entities@4.5.0: {} + + esbuild@0.27.2: + optionalDependencies: + '@esbuild/aix-ppc64': 0.27.2 + '@esbuild/android-arm': 0.27.2 + '@esbuild/android-arm64': 0.27.2 + '@esbuild/android-x64': 0.27.2 + '@esbuild/darwin-arm64': 0.27.2 + '@esbuild/darwin-x64': 0.27.2 + '@esbuild/freebsd-arm64': 0.27.2 + '@esbuild/freebsd-x64': 0.27.2 + '@esbuild/linux-arm': 0.27.2 + '@esbuild/linux-arm64': 0.27.2 + '@esbuild/linux-ia32': 0.27.2 + '@esbuild/linux-loong64': 0.27.2 + '@esbuild/linux-mips64el': 0.27.2 + '@esbuild/linux-ppc64': 0.27.2 + '@esbuild/linux-riscv64': 0.27.2 + '@esbuild/linux-s390x': 0.27.2 + '@esbuild/linux-x64': 0.27.2 + '@esbuild/netbsd-arm64': 0.27.2 + '@esbuild/netbsd-x64': 0.27.2 + '@esbuild/openbsd-arm64': 0.27.2 + '@esbuild/openbsd-x64': 0.27.2 + '@esbuild/openharmony-arm64': 0.27.2 + '@esbuild/sunos-x64': 0.27.2 + '@esbuild/win32-arm64': 0.27.2 + '@esbuild/win32-ia32': 0.27.2 + '@esbuild/win32-x64': 0.27.2 + + estree-walker@2.0.2: {} + + fdir@6.5.0(picomatch@4.0.3): + optionalDependencies: + picomatch: 4.0.3 + + fsevents@2.3.3: + optional: true + + hookable@5.5.3: {} + + is-plain-object@3.0.1: {} + + is-what@5.5.0: {} + + js-tokens@4.0.0: {} + + lodash-es@4.17.22: {} + + lodash@4.17.21: {} + + loose-envify@1.4.0: + dependencies: + js-tokens: 4.0.0 + + magic-string@0.30.21: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.5 + + mitt@3.0.1: {} + + nanoid@3.3.11: {} + + nanopop@2.4.2: {} + + perfect-debounce@1.0.0: {} + + picocolors@1.1.1: {} + + picomatch@4.0.3: {} + + pinia@3.0.4(vue@3.5.25): + dependencies: + '@vue/devtools-api': 7.7.9 + vue: 3.5.25 + + postcss@8.5.6: + dependencies: + nanoid: 3.3.11 + picocolors: 1.1.1 + source-map-js: 1.2.1 + + resize-observer-polyfill@1.5.1: {} + + rfdc@1.4.1: {} + + rollup@4.53.5: + dependencies: + '@types/estree': 1.0.8 + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.53.5 + '@rollup/rollup-android-arm64': 4.53.5 + '@rollup/rollup-darwin-arm64': 4.53.5 + '@rollup/rollup-darwin-x64': 4.53.5 + '@rollup/rollup-freebsd-arm64': 4.53.5 + '@rollup/rollup-freebsd-x64': 4.53.5 + '@rollup/rollup-linux-arm-gnueabihf': 4.53.5 + '@rollup/rollup-linux-arm-musleabihf': 4.53.5 + '@rollup/rollup-linux-arm64-gnu': 4.53.5 + '@rollup/rollup-linux-arm64-musl': 4.53.5 + '@rollup/rollup-linux-loong64-gnu': 4.53.5 + '@rollup/rollup-linux-ppc64-gnu': 4.53.5 + '@rollup/rollup-linux-riscv64-gnu': 4.53.5 + '@rollup/rollup-linux-riscv64-musl': 4.53.5 + '@rollup/rollup-linux-s390x-gnu': 4.53.5 + '@rollup/rollup-linux-x64-gnu': 4.53.5 + '@rollup/rollup-linux-x64-musl': 4.53.5 + '@rollup/rollup-openharmony-arm64': 4.53.5 + '@rollup/rollup-win32-arm64-msvc': 4.53.5 + '@rollup/rollup-win32-ia32-msvc': 4.53.5 + '@rollup/rollup-win32-x64-gnu': 4.53.5 + '@rollup/rollup-win32-x64-msvc': 4.53.5 + fsevents: 2.3.3 + + scroll-into-view-if-needed@2.2.31: + dependencies: + compute-scroll-into-view: 1.0.20 + + shallow-equal@1.2.1: {} + + source-map-js@1.2.1: {} + + speakingurl@14.0.1: {} + + stylis@4.3.6: {} + + superjson@2.2.6: + dependencies: + copy-anything: 4.0.5 + + throttle-debounce@5.0.2: {} + + tinyglobby@0.2.15: + dependencies: + fdir: 6.5.0(picomatch@4.0.3) + picomatch: 4.0.3 + + vite@7.3.0: + dependencies: + esbuild: 0.27.2 + fdir: 6.5.0(picomatch@4.0.3) + picomatch: 4.0.3 + postcss: 8.5.6 + rollup: 4.53.5 + tinyglobby: 0.2.15 + optionalDependencies: + fsevents: 2.3.3 + + vue-router@4.6.4(vue@3.5.25): + dependencies: + '@vue/devtools-api': 6.6.4 + vue: 3.5.25 + + vue-types@3.0.2(vue@3.5.25): + dependencies: + is-plain-object: 3.0.1 + vue: 3.5.25 + + vue@3.5.25: + dependencies: + '@vue/compiler-dom': 3.5.25 + '@vue/compiler-sfc': 3.5.25 + '@vue/runtime-dom': 3.5.25 + '@vue/server-renderer': 3.5.25(vue@3.5.25) + '@vue/shared': 3.5.25 + + warning@4.0.3: + dependencies: + loose-envify: 1.4.0 diff --git a/webui/pnpm-workspace.yaml b/webui/pnpm-workspace.yaml new file mode 100644 index 0000000..e4aab11 --- /dev/null +++ b/webui/pnpm-workspace.yaml @@ -0,0 +1,2 @@ +packages: + - '.' \ No newline at end of file diff --git a/webui/public/favicon.png b/webui/public/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..eef19bf139910fe0de15f7d716f3eaf9719470fc GIT binary patch literal 70830 zcmV)-K!?AHP) zO=+PE(Dq-t(7sn*U*DsT$19I+Ko`0|c}*$%TEb3Qk^q4$Byr-zu^sP=ELqk*(#-$d zJCZHSOB_fbAwK?%M;gtH?u_Pq=R4<~d#-kQ3C0yc8U9`oa7^VGpZ-%PO2+Raup3C* zG#VfwtM7%3{gmW;kv@ne0Hc=nRn%>%{n@|tee`s`IK9`2>h=U})6j8R`rIE=kIT{> z+iPX*fP#-E$pD8}*N2<d`h|; z1Od!PhK{PyYi#pf4e z!IqG!U4B>WG=Do5#lO)dKh6*0{rsW0r~zUz^*q|N7_aatxi^zCww#mz zFqViX-~*o))AJ==flF_FW;cGnej%=0QierSU3h47Bev}C0Rw_a1RL1SrMYGX0uLvb zNjXVn5&+UfJ^>@-=~kMtfKsRV(l<%j*;1Ng;oEOIe*%9( z1y1}ItvAxLFS+iar5}@WQph9#j3Flq8%W120)wrzdX<({f7#T8ACclSVam_sQep%~ zS|H7AP1 z)VzX?n3PYIOaj0Jge61D5>5ya=ogjZ+KZ>>8>PLS5j^nv z0o-!&90GvAu>BYi$ch4QAPS!l2ay8ID7InIR5vaoS7Fos9tHr|vA+**?CvS2L!M3o z!Ov*92b1!tkVycTponQhT_t(w_3`Ecq{xaS1^;DwzU99jeWw%Ci}vHQi>D5{0;5SR zolt$B~O5E2@u9?Yb=<3w*u6hLS(M+<;PdHdfBeM}5lx-%k{iSD>hlydbIx z0D`~<-3w^zQ^7(<)Znan1$=pPPdgsk+^&6dPtUYcmw96%j@vZa(7))CD9G|Fgvpq| z2_=&Na1?}r01p}-2Sp~*y9LRXpHHhD?DfC@?S1_F74xv5+=bS@5M)^x0s$daAVU~- z4z^CnGTOXBauGCGKBExT#SZ-C)kbW1y_xOu!-@jTg8Ds^astXE032oE0YgQNlC!Qv zjW|?|=M%^?*a=lRpJ8tp2;6ziVpQkb(?B3i`Gw)ipK@?g@q!Lth^|M#k3KgOr`Ni1 z>%+Uz;SHTbF2UYN4AU_wC!9&_|OXaDvGs032mu zo^&cks3iZ5rQ>Wn%e_}*way9y1{ohwGQNy}hQ$PaMN6e#kLx?Uvi6pTcH+OkFb730 z6FPgN&<_SNgu&GyE(q#LQ@Efczo5A{0Jp=6o6a~@`11r-n8+jm9A~0S0)ZyEK3qoP;S@|63Q&HFb!QeiP2X(ugz9UjZ z28Yfk41vJVwzO|cYmh${LV?4Ai{@A2$@d!2?h7o@Tlg^KZ(veR2$=+c6F>%mAQfm# zlf#uz%c$VST!Hrp1ny@baP`kOcQL zdKQyOLnnkx0>FtRqMDSH-tBm}A-kjC!&9`ZPl3R<{;&l<`{H6gYOu`{L_|suXb5S3 zKO_CZs8oZsg(-grF$lK4U~VOzu4@4FcnxIyLlJ4v*Vhp0397ZZZvfU@SRI)U@_{@;|mSnUl@6w6u9UO z0^;PSu;s$qTHNu@>PM?g~KEOOv;HbtscOgJ#u?y-9sTh z>}`W6!bKp!Y5?HxuQ#Kq+k^kSdLasPt!QVd!(#zJnq=7oa!W+`f>Btl1`YyG?b^jY z`j%Gw=m3yN&QNp|^C$-E9ndLD=+rGZNo5iMK7|sO)owWR#HZ?V(eft(f(y3n4dA+8 zZNe|VvJh3pcC>U2@R-1OqBpR(#Lzy~Zg=V>V*ph+{w6Hxg<3?_P5^K!wfw=<2Pa!^ z<0Jr_;F6l>FTIC=zb6pr4-yy<5aig0@1HISCB&-zCKL1;T^Ov?#}x1t8Tb! zGk$f$GSrsahk?LoBJv&zWe|j><>uo3juw{Wbmoz?HIZzeaSWv3fzXd`rnAycctq{{ zw8u>z_ zEdqhlR1oNk3=MEfqsvOhiOhOE93~C`Y`6LJ>C0?;Ffo3+a`c$ks7m1@(RDs1TCdX( z0PyU`OQ`)E08X~KDJKEoBoN+(mKy$_@mb2}X38Y96y)R+k(?jku3RhX_BP?AAOB^q z@{8+dC2Urm)*p&OM>|Lf847WKUV%VSlH&)|6KXXYWE=E|CIpR9t4t+b;{c!^$A{Ml zX`zf!vK~jfu4pWCGpU3OBq-#fuLq(#yrU@zu|7?Rx3|-Lq43*SF?##Scd%=rlvx%#wn{F_c?YgtC-o zYQ|9N4_ivXpd(fhnfU(cO|%=0(A&)*0I0-CDw6;(DI;VQYRy34b^?K$AAEHmE?+eb zO`WPs&lm$^0J1!?cxqHFPQ(=3j$amEIXLDe&OTxn#xamd0GO1C z$`1$x&iwf!`xn$!WMg`X8?8Nl=;)zNBmp2Lta^|{l)xX2^7q0x0YJtaK5ErvlL5p? zj{G>*#sar9^>!^S&nMzIW}-O`we2`;(xi+hf|4rIp)R6GK5ZhA5EHyQp*E%{an{++ z1`LH+5`d)ky&E*DsY_rSzDx!xk{JG&YW0ah)g~psYQQJ&{?+4+`2Eef5Dg;qdQmHA z5>OZd$Qmeuj2OLUu6chX4n35pR=`%$HE#Y`aiQe;DBTcsWiqlH1RU0nNc&nJyA}Bk zhqk;ZA5CqY)of!dhNCK}=9taLpY>-l2>>UTRI$N?wA3V$)qAvY?V!yQ1*M)=srM{< zuOaf$hDItnIZY<)_juq5hhf%o3;%ff zd5+UaJIh#v$&8aqCIR5nCsk?7wAAaiPHy?DB<*-Vxd2@f5A0c-mp6o?!gh_Qyhj$> zM*y&ul=&vw{=sY8x;X$aB`SM0-f&IW!sq<3kZMc!&CR{cuQM8 zrZNctC$6x-+LU-azE~868jVI%+u4a4oi&l4WzitpBBI!>gN?XxQT|Y*%W1KWdBTRa z5WL|&_y!X2_H(9Q8IRKf;gZxodMlnI764)axb^a!`Cd=J=q7(6K-V1Y}5|9kL#>Dtnl`QrbN|jy(t!gfzlE) zid?j~EvPE8l3#0v-D=>Af&6rXK|{)ytni!Ril)ySk>T-0;ptbSYB4EJzI7aR zOu$18Q0;V$cGW~BMX_Zrb`g$_cPP+jGuH^Z^sI?ZWmlk8q(h~G^24JxW z*u7gqQ&R$xG%^G5A9Z!uULQuDQ^!UmZbGCoMg>lP#(cC5K}q`WL8-n0tD{! zdpv$jom$M7EnD`ibGwHIE;0G2;R;1LPBlL%lK^mh3RC=V1|zt>+Z*D)QCYqjr_FU? z49U;yx7`-==MGX-Z=!kUSGt2B?9S?0C(RHcs z?DB@!`3KVcfB|wza^lSNvgO(2dNb0->wj1=r79(5Tz-6vvdg)-yqE$DjIw?~4^9%9 z1c2j9*vPbRlj5J#?FB5PKr2b<&zSG#%FjT6<*v7Mh4{jS4aA{8m*?UQGs(F!mSt+&}lIHtr~@3V{P*PfsgQTusLq z^@xN?`H3)CX*V$|gjuK0gWI9T9lYM5HV^=yqk8~Nodam>@bfi&UKI>-YrMu{AqHU~ zSWxgJz5gSvU&FBx9`LiQ zuhD3=F$ouw;k=BkTYKX~oelW%G7}b@T8&d@sY!I*5iJ_pBb>?$+Duxh3>EGXhnu)q zOi?UE;q&v%LNFZ1wmrSrv{f~5Rpw$CtRnJC1@6bIXCnGMK(0f-g5K6R_I)6ry)uH? zi!>;!)F9w7<2!e5!l`p}v3~6g$i@Mp@gBW8gVSNfg6bT; zUy!jD0))o)0d&*)g99GyKG=uGZkY|${d|er{CT>l7X=~wXN{ono`fWOkEFZx@r=Zs zR5~-S8!!s{*2r2d-9x26DxkEi3|(OpbUgyjJ$ngYf0jVd!(uCg01%gsa9ZfJ?>yGy z3XXCFL=aBXL3RC>lhO?Kru>SmFEM2>dzwd$>p@s&?zD@{6nf) zzk7jyeo<{L4(toV;AGu<3fd1z=<6gPBB$4!B`OY=h#Xp?A@;cnN~~wFUs0KhNVt%j zZA6(nOC4CWsuIneer(?3#Tz@i(b65HC3F_y<5~H3o}=(Mf!o8h{@X-v?nLqpiVAY^ zhx?zonqFQ)An=*z9(v-NPN!~g`g4O3M+v-McGT#v^dYs8oDuEVMsR$Q}u9^TpHN3X6EpRFm! zuB{Q&y_0~%LIo-V5v(?17R4gUYD97k^auoou7D{&b4h}cI6~ne6YjE`aM>9)TFRL6 zW7Do4Y&+10m)~P03x#$0cFj6E%bhxHoXvD}+eB`(oZ<7UqaNil#=lOPT7tTM;M(=) zKk>}Q%}<=aW+@vcT$x-Na1zKQ0DPRHaMu67WXP{)zA^LXS-1R6=jLPiWy?`Avjm>5 zI1=P!i_v68OE8RhXXoM0%VPk!b|XwC5wE@5iTj>yL|tP)7S=fMy)VqtES=@%E?}R*-cW}h{jm|>zMuqW&#K10y&>$D58#~gYQ)I;2k2UYNO0_(3$HpkYrOZ7mwiT^56r*ha`Na^+`|TBlpdU@U=Nze>5u1>it%*_nkL0AAeM zl>`Fh8+F=$vs>`ZBoN$9i+`-^5XGU`1`}S;L{Z98?@94Niq97&%a+-(Z(oqb2si+Q z0yr{BGAiQgxQ`V#nz zS!j<&A=qTdNa-zke{1v_%EGC{14iFJ=6(LNWy{i+0B&XOwB2g zLOg0{kFWZ)4-00t%Blx)NC-3vGg z03VaE8hdQYEHLFiZ+0%evZ@#*OHYAmN(sDLBV>O+S9&2?^^%p?Qs`L~tyXAqa}jT9 zf$VjKl$yOsxzk2upZvFFK%&)TIuRmRaCAGQm1!8DwKa2@WQ~Z?7EVp5IlONaJ zwiWNShOpuLHTdjVQ}NKfUg%*$OMf30PvbQ;`A9&$Nx;-OTK+oFPgehcg0}husiFd- zO@Kr!Vfz~rmaV0uEh1v!48KFfh=i#0wjJtHui=y_4lJPSI&Vcc{`6cE-rCvAzq8nF zx<7dY1A_Ft11_vfuzxuIEp$3v@OXM~=uj(De7^DY)0d%c&vX2>BUxiz5s$n_QgZ@n z)d|$p6H=x?rKoFC8-Dx68my?vL%4Q2`T9C4NZ#A1-Tx}f26 zgK7DaSLVWj{oVNfT|2q;|IszmaovR#{FtVWl;Tg!1hJr>QLjab%ZL|=YJc%R-sao? zdHWnJn^%gBkNDyDC7?5f(NFHl3~JNhv805d0ky3b^8IU<3dpBsG=89 zIj|#+IV&?lAtvvv$e$Y_ir~gnA_`s&(__g}2-B;7cvovPhXvf_@p@Z8H4iCNPjl zX8{T;Ka_L>6yoa&8{AI-Cy?nD2`?hCILw8G5NFPW@!ichaHyY{j}d1tF2tf!a`4D2 zt$66g7PNMUQRoy_D~hn10N}qxQTbtd+Zg#zjfHYL^O9RT@P#jYj=#F@D>prJ^S_;g z#j9syN{$OBj7$Q+M-*nP^u)@gR4%;CMy6u}8LxGX9bwc|81eNp zr(yZ@B6N3q5u9EFb44kXK0lA_bILzXcM%)ruT6G#8{AG5&E^@b`0AJL$A(Au;Mz6C z!cVTL<=dLuLXc>GR_s!iF(HxSG7t3GvkbW7{%!czM_O^w92Y%<&2vFJHCKsu_X_bYqWC6ub0uOwJuns)DaxW#1?#R45NK&ZC}M#v%c%X@ zXQtzwH zJbvN5Prmb%(`7)^AHyjNrs1{cHeF(|;E9o$2II?d?(&b2NdP#y!n%)s*3uj1>93ca zT8wXOf1Id)et`>zntJiotM0|7UA_3tFD}M~ zpIr>^Ki@!nK&AY`kwl$HcT>v$iwCyj$E5t9Ut-5yH!tBIcXvi{Xs--kAPyTb1U6Wx z)$7B8>MXh@)~>NbWDM8jc(QkZAaTYL0)l)IS{;k5D|`$A%PN$KA~D4`R+U3=I3St~ ziZ(A7`pQxz)^G^%mS#aP=ppEss}zKw)j&UcHh&*Ico6-BbY5aS4!Vw8u9<_iiwg07 z8~5UwEk1;dA{f|Lt%0ubN-!c=f#o-16^N z@{l1l=`%P9WD)?5o}6RU;~BF0+LBxoZeCZ7Wz(Dp1~I7omf8x${YOv{Hcgp}EAvse zwE>r2bPrld*PngzIxIhZI{G_(&{(aAc69P}vY%`0bEZB@PD9L;|Gp>cxbiQn8B+d! zpM*$QMrX6aa|&3p4(lE8M{gC zMcn6u)Y<`!-3G(-N@xr6)D{!PVnD$Q3dtgLwWn~`D01KcL>-$kS>Ql0t-_A~{q}O4 zySWv=d14>-wo1l)yRc4Pe*HCGBnVv{ zQDi%GIMf*Cwe}bQF!2Xfi=Xe#ViRf{@pUjZpe1UckWa6$45(Z?3^Qjy=W;?0sZ2o7 zX}R(-sM*4*iZFM9+$r`c0|CYe*q|gfaEXNk+33Z&HMw~3r6%0- zcoRQKzFjk{hk&tw>%Kc18~)=8{P`IkGrYfiYI(eAe-pppSPYj?b0!P`dIL^4Iqm>J z7-zit(GX&>EFzy8fyRSOVzOa=wn>yipLS^hn^@N@T}$gRW1XTO5{(tNZubU{b^ zg@{VaS_2FV7DD#>5!=2^RS-k+Y0Q{MOOgaux{rK#6Z(T8-1X<}XzY#Pjw|y~T~&zI zb}zT6u|ymLeWa|cuAotdPNPL25dymc4Vw>8(IBowM~prk*72QQ>zjZ{6AeL*id?~U zHB+H0Euwbnkq9R5i&mqafzH9KyUf6hbulE*DQH9<+fc$R_!uFDCuUMJ0||OBwY6~& zNL3waY7ZjIq{FvAHv>xul<$7>0RFknV=Q#gPhkS4Xp7Olr3>%B^1ilaSpnA0&4Jd< z;sOS(i+;D#60NSID|Wfrge%f7PZ=k+GTKMVDDOw<>HNgxxC4NH);)&PYA(hx6h7}A z)PfpERQ-j(h>grSpB7dj=QEvTZK82VS!9KOcu|e!;zh-xXFx(QDh+13F^RSILhH=N zL?m7Li%WCSdaxB|U3eegw(-Splk(@`(7{gr@N;3g0yZ0e@U_GO6jBmt&mJHUP(fgf zPH9KB5qCdy08ckWv8qIm3s%iQ|G>lx>}xa=cy#3ixAv(v>Whm>iS^JH=0miap+urk z0-+JvGO5}Htlnwnj6)0<7!!zW-Kyxy$^_%=+0a*4Bi`Meb^^7~$Us;^xJ|;WYA5cz z(T4k;+mC;2YT_h9B(Ra_^M-A$U;q%M*P+%{0;ni4s%#WT4QM2QvnV)IE2xv2d>ZAr z1At5sk8&~9p&GZ?4>k{8h(JJtePit(RbZ86p^OY^6&<@E8jlRtxSvb@=ClI4cxG*$ zSW{#ZT09}1jxS~us!#ZX5KVe|cy+^))46p`&>@M0pd^Od4`*%`!l5YEU;0~kf(g9! z)E7zl-NThXCA=c9Otd}$U0yzS2VyNPkVz?&XoPR)!w`85ZVT^1YdGY?UpBVz!`EL> zis~FA>iZ(YI`wQhWUaO1cPH?3vIHhwn)4fDV~Ztn)k)bM4xY%Q%gcjkA%GGTuK02w z84DRFXsL`r|3r&L4Fc}jqtJB;A`2eUHM4w*bn}|Jmae`qtR^jPxOfKM-q(cAW-H8k zGbE>k&VwHGwEAHnwh)TZF$9`2-LsO20Y++DR8ejt09b^>$OJoGjypN-0pMthF-iHo zLDs*FHHS;}v}9Pie7lh={`@HpzRt_CYKZ=WDL?x>nQN|Q@})hDjQ%GELWqaeZxpm5 zJ#0F%+GasxHYgg4kpn^^6eYJ;2b0-=>%VvpHZ?}@=v`|uZ$&LS4|R`J{&XQll!F1T zXh!mn<&qM}ULSq$009Bfb$YmUSxz`29k~1d-p8S?FfLeX#G3gf=<GFNWov+(u!@3z$(3(#VBe`=xXwywcdjnON$Xv zRLF?-^uQ#GsG)Z6MPxzz=&=A62x7@$#|@)6E&+hK0V}4dZopB_rPg=%qrBK@j$ePa z8kFnq_Yb=V=@yVFTRds8vq>S!oK}>&tZ>;(T*Bk4a|(0*ppP zJpn}j@h;+_2v2n3duY_OUZYM#Jj*KR^X)KB$wy9c4s3QS{&>fu`0X=Ixb=p)So`I* z=&b9YqjV#K5*Z?p|Ei=a^6CxH5bb8RnOSO)6vZiruwABUB<~R|vsxxjg zs?Qg*MQuYY3@McC^cP0@&=c;qRBx#2BE==>ii?ow>=6=uUOFwcid+qW)i+C1e)e6d z>Ba?8?t|TZ&=7Vx%o@ZHq5GnK*tn?!HFFDK&0)nsve4Gthk?)l7UVjxGu9)B3jQxk z6X(M-$FlTe&Am8S4UiiJ>yCu+y@L0`T}5zf~N$}{+I zQbo$oY7FqM26}xHJsUURIFREO0N&WAvVfzEk1{F!I|KlWw(Rf0rOq;R^?&$6@}o)8 zPz_2VA*%sF^8ZKcqL*1vjO>wCtAW|9N6({g;=2#lq0(i-&p%sD=BX1ANB&W18v`J} zKg5e}Fj;-xbeQMOhwot9Q2T>Hh%PrYMa76WH6q7thKbesizGna4r<)Rc=W9XG;{<} zSztjQ0f4NQ04Enl;{Ezej3#0}Q3BdE0ItP-^kKSH2Vaeej@C{FVtQ~i$ zSe%2tLok`hh0^jaL*DVuNKuly4ZFV#@dP#wK!>)TAX<7Nm~I?CO<}gff&pI;kN#x~ zrjeV)KJ_*=@y{dz?n<4JFKtrf-Yl)k0!D8jH~@{T)x;J4OHj+brN$?)+~Y|AIGivL zIBohz>=78rFn>YIhE4mrISbIT>8<6X8^Tc^LM6%WgpBPYMNazGSvDj7xUmJB8hp6x z@)`~T9i3q~N{xsdL4-bC(l6hn7vX6QbL-EfmKcB(9jSy21TX_|4yT;pH0(+=FeQ}Njo9espyXPCRZiW??EiOT`CjyNl!5>&zqdwu8 zMSc%=JJRo$MyElj-$yJUjA;c1IP4C@$a<&m!(ATMXP=ctETBw??cRf`Q*4NYb!gfb zBNxDmSu-7Y;>`|RaZVAe#9TDKK1jqGxQmm@JCN8M0}(zFDmPopTiV$*fc<-eXz%P`;+s%3r z55~G6ns@L;P&+IWc@$m^v&Ei#&(uV@;{$+ z*}&r-0GOnMz)^|`TuCe-yrscQ563}#an*Dj=omhO^^tzhX!{Go@MO5L#74^UhgbLF zwWc_3S(A&}id=MfR9`s}2t$sL#UkZlc?2nb!tw@W0tcQ;FhOAekgwBW<#aRdebtL- zC<=pVj8sULk!ZE@q@CFAy~F^FDhLqGXQSvB6AQTW!3LZ$&xz8)90Gta6q9M#DH`^* z^R=%(iWpskg{ZbB#|(FW2%!W4-4*xYfk&=I&9a&?K|n~lN3r^YYO1i+Jf`xe+tLIv zkm6h`TIoLC`SczX>r5!tnmEui0AMU2W{q;o&y@d`i)+!?6~O(^HsR8h#dy837aQJf z#My-|Op^^L)0p_umI$-FfR{xKuQxE7#AGms;(%MMS^Pnq9&{fIVABtLyP_Ai`n<+2o(@Y4hT@ zueD-vu?FiFRKw#R^7rGt{XA(#iRln+>g0X$Y($*aW`-fp4z1lxKoI9(FrF}KFD1Jm z8U1H+V8;QRcGjH1yoC|%BZU(kc3zE`rQb$i#H=L-9ITVD#$SWCi3QxcVJGgrVG(Bl za*h*7ruD|@$?EGJ;IFrR&;xI$4|(M-luXG*3n|y~5(_pS^y89C?#3N=T#2<;%|nDR z*wgQ4-7QFmP1g6%#s=_Yqjcp@FQCFKKP{}72x9@cHnpVLckbT``f7a6=H&008^oAT z0s;8#VN!lz#dH@we`+}g0;fgK0bosC39kL?X1o#bpu|y(Y$8ji8JyS9)UsPf$)60AP{~>W(QBGup9Kzt~su zY`C~TCddEti4W*URd~^k;DDrM-F@0*3ZgPv&n}L<`!=OtslznP-Jp#|gBE`z>)+*< z@zaZ|QQ)+qsVBgv>SA-s$)vOWo9ZADD6o72HkO7R#}bM3jx51Ynv3jHN}N==DYs?Cb`!eeL`DaPZ|fk$1yd z%$c8$M;_mU<>bF#oSlnTHDO$J?FQVur5=}^TaD5wF8FmeL`4HM^qmQE>J$9|h~YTc zr47R=`aZ3!q3x+)tHARe*ga(OwO?<-ru`9|pKF6XZbndwArX!7@e2uCgpaDU6Sm#3 zdaA&BIr;{oczNd`yj|ap`@gXoKOU&T|NBcFJmoUn@oX5|y|~CyDEvLx?NDU=k?!JU zy>Yc(fI*|<#YY7#&xpLVHx_!B1#DJkxw)BVbsAU=*erRNm8w+4Pc#I8PiG#$#De-h z(s?!y+)vq?JD%Ew?_OAoGo}{8N7OjLV*=tRR{ZdapFZMtaNA%XH5=nE@+v$_AVCA0@?3%qTYC`5i%g>$UgcI(;5`d$j~M>Wvc( zD(z-2N35|GGMf>|Ao9vR2|8nxl%?Pl30Gq}-t_oz_bYv!D|BvrwZMWcT0L(6!&dy^fgQN~Oee0mVi77U z)v`KWEdeCDJmh%{XE=!z6G*7jmoc%Cn`9-8?(_ulpAYW9Kk9rqlO=CSc?ileelMB2 zg{{2^>EmFx^`g1?#E8^!8t)zSV9NpGIXVF^?QFr-r%l6?Tf6aUod+`)mOwe!g(9mB z%XJpKDFrX~0)L0<%cq2mF}bZb8oD&sV8*poi=gf6f-fF}odH9X=U%0c2%9n1v-5Gu zrxO6gv6(`8CK~C`|Iq3yP^lRQf$cTD_|oaq=pjg1mNCwwjHc$pMHWUz?HSeP_4jll z`h!vY^^N@~uKX-7aDyP43`m4y=zVn; z0`(opo>c}*O)*b1juQ6`?N|HwbuK$1%!MFeV*qf@TsMCHbPFE%&HK2PKC_n>VjybZ z_bxFIM69VD36B@DKTOm+$$BK_eyFLz!9X0va|PUOtHlk!*@c__un!K01#6a+qyC^e zFlQhbfzxb)iLSNB6GmW98!9a#$_n*3a4?8NVh|-!EzWh>P-)iSUB4f9|DzKRz5X0N zM}RmZ&xAz_3*dIMu1EDzm1S{I`Qz+2$<_+QX&8_(3KM&#k)*#l}?Wj`R z2rCl5rxM*m$v}Xjjlf5E!fKkVnpq$OB5L<#Fe)i_vnWL9I$zk{g4MH1aNX&}xbmJI z*c%I=V&PP@)i+|1#f3Hk*+$@EojRt34JxY&CZwuJLc%ng3+qZ|f`P!cXaEk)usDk= zJ2??+YfL&LD|0X9iT>>>rA3k7NR) z_{^h>{TvA)>K3QXghw|w;I#vBuKd$W^3mNN<`1fRE+ttqEJ@*kqy-a3xF5{YvqkC~ zK<|s&6~+j(q>PcKZejx=LDY#ng;rzG5C>HU?bMd4H2JOiPON*b3DE^UXv{`Lq6$}h zsl7)HIwl9XE6M0OE9_w~iW~&|K8Y;93wM9L78m^BbzJka_wm@jk}EZ@Vh{wFaxxaM zXTJx5eeI~3SHKy-frDz>1H_;QG#V5b47kwc!rV#;yE;R7Xom+q0SQa$Taa%z(_%s% zt!-KZxAd$)NtRK)mOcW~hOPl@+}Volt#RbjHGbCah8q^%g~}9Pm+an^#W*7L)cXP| z09cdf=nqNwXI&?^{&r$1?=|}HL9+*|W;prsvZn>#t(b?t>zD;5kPs~bE6jtw-abs9 zX2sM0xeV)nwgqc{x($E6NygdpOQ6>nLFj`*gB7pz`tfvg4{DZIpgJcPe~V9l}I=wg$WFNc(*w~iZg(itRSU3Y~DTgTFc6gku_%{`Kofs zB%5=HZrfnhnGuje{0cM#fU!Uf*%k#pa|r&B79BAel};T@ES93xB0?@kUl2l}TZind zENpqF2XF3b#q6~;xM+?8w>;8-H*@=N3Q_rPYL|_UIW@~kZITgTJtoF%7>!vl8_j6* zbin8Lz{08+vBqi?K#k34vot!o77em^>7WP_0xHuh7*8^QqbSNKeQ>E8%m9Lws$%&h ziY#8nwl(>HFD)y=a-z`9J*wY5TC8s(@xLLTfA}``eKs;Z|J>b;O?C9ZF3Lr9o*SNI zrXOQ2sbf?Yqm0NWINT6vruZ79jgDhM!{q2hDH$Ym5kt6mQ6&LD9iI8%5Kf<)gDjI4 zkyLfw)DYqktVZ1+2MHQjg>t=su8uIK*V^&uZ7Xrz&)&o}ckaM{tykHTkCeb+(;=V0 zX?s(EPh-AxW-%%^x1*U9AX~CwfZT~Js}^x$70g1i#Y7ibYqX(;5YkWYLkX4;B@a&W z(H#sTNYp)t5ZplfW|KnY>kLrrGWKclQ-@;WVB`xCKWG5}x;orNU{4FbT&J*@as4FD4nvi_H{g}t6zW>YR%TqX4QM;{;X zQNSS6_1IjmQsfm?ZoUpBJ11C-Z}`4L!-`Ye6KT=#p%I7^7X|`7-Y}L=E5xdrPP|&@ z#WQd9;PSKb5eW?S0x%FzG8&#<0Z0kRkckQCNs$-`6uZs%%Xe4e_P=k(zudnc<#`%Z z=uBjhnN_!7TjKye*w=^Erxsyxr5zhKwPS|K#^()m*max*Xp=Ec7B%jjA7zup z&1Y^*LjAnPXd-n^@IHMeQD%vW>ND8OHOc4=M`6{Q5toOqC#pyYCXcu1MOp+t=Kzy8 z_Nu=}X+Z&B&OU!7{{GDC*!X@6)}K*Lj6y)P%7vMyoPxGn?}e$*&D+L=DQ%3sruMPQ zNeXRY%HJ845Td$AJ zW!C@u7nCMkHj|cFf97K{$+X~ONxG7b1r%&y^nVX2%R3F-m{tr-E3^+<|Ixok8L@r% zcL;-HPE*W4we}+$!H#2Pz}dC+lQkc^m*9+SZ8q(`~3IGNIQ$6mcJ98-p20 z!_O}RS~&nL%-4bOilVvGlV2<& zE~s#r9&S>SHrz_Uw2cgj+b~R{d7OzX|2@P4u224a!z!$5K4u@_ga?3hpM3bxo6H?l zNma-qt3TIZR32bHajPeaudmL>!YOWTi)VoM(Wg>M4{!C;2m2_8Wdypg1$B*wP}d1u zwKN}Yn;AX+2%SY7Jjb|_0Wd=H8u@q_Ii;}5m~H}_hd}L57tz)e!m^pAxO_n`{%$bv*n!k%CVPO{9?Ek-m&;?So3h{9nW zS@yFf==UqkrDNM;YVgyjx-t<05Z=oo8j%RaNZGV7^7^T9L`l12^l;?l>| z;F_;qfdBsA$ME{Dc6wigEj{fpyK`X5wey|`RECgf&biD^dQLME((a+{J zFleBU8xABi33>*lN2Iux0{~&MTT#Z07#(vt;Q`>oiYO@Wur*WuWz)zKE}6k6q#Wz^ zkG*}Iu0jmK15-|eL4cnWYfFO~UpS>ahbxghnzhF0`2-_J&I~^`)%(HLI^F0!6+}Njn}&A}1@PntUepw~;__AHLjaJb_?+dYKdOS7n#CXAG{9jq`S96%NQt|W)VDFB zc7L~e!u%dgnd-*;sd;$dl`hOEw5V}#=6NLo@>>aA*LhlxE@g zk2T`)dmo|S(ZFjqjwLQq_9ux&?qRN^`>-u$JqRpU$cIlrPD%hE^u0%?jT80OXo{U$ zeCwQ7NTD_r+MBkMdE9DWrN68asoi$hYA0ODga`&)4IgSL!jf$cFjVIoRJez&aJwV^i^m zjM&2npb{7WBsdGmwHndYC6N^mVSAt-Q_R4BK2eXScC_L9pFIU%KYup1Hot{EeL>6s zF(X=6yYx7f+=wm$ke?42abvy}6%h{sfPlae1Un+p1gvH)+yxSPy=pJpywhu8uPsB} zU*8|*NIdYyA-=x)g4M{*&gRSh-S6T26|0b!YsU7bez>#s2!`ld_BNtOr-MXRJre|& zF|d$H55^U|;0xi5+0~$fP;tg0;FaMSzY(bA&duOsKG+z6_Xh9b$0(mB0Js2Zmenic z?Zl`*DgSk$s35TA+vk*_)Rl!pJp+ULq+9jD8g^s#zD2k1=4V{^4NT#F4>HBW?4g)d~3g=`MWG9K!kk{uZt~ zJC9rcNBg=l!(m||0rc8cTff$6MJOQS!H5y_b#5$^ddW=67@&(wj4Vc;cKt(vl1NO3 z)2=GozD6(di`=MSK0E;c6Nk}=4R5vJ&AlEhpYB9^w+Bc+m2z-!7!RPHWlVzl?1ot|{#`>n37}Cw>KC0{ecYhb)AInvyIS5^75DutOC! zPQl9hd5IL}=Vb&UF~0D-DGwG3PL}T;if6FQ_4FaLT2VoekVdByao&t--o3VQw+HtS z8@Ty`N|*ec|IaIMpd}Q?KJumanO(Su&YKrbA4@|Z znHlTIc$}g!3AQX90g;SD`#VvyECRRKgL+mYuwTaWAMC@lvK;*HPrr#D-2MQ3Q5lOC z&BB2;59;@9!xyi*95uBEaOa<%#bR3?w0Z(SjiPo(vW)FCM9va)*c9nN9k~|vWZ|Lm zJPUSj`v5J0K%DTN%}PZ65k6mR)u5RgucPNbE-1N)0!E;ZUf8B z-!|r6qi6sjFXLA%9rI=Vcz001ZS=pm)f+~!!-UT*ELP zMfCP)5lckS&>Ml3P-&_=n=966hck=Ml%E+G1|G3=l5iM~m~QQ*xcVk#?O8h#iIITA ztA%T17_AAMH*FgF!rSrCmJa^;Ef<}_D<-7|NXZ$1HM}A!2ICnlHMhWS!CU0oI@o+* z1_xN&|4*+rp@gja4Qpz#Zczoc*7xDj_v`RV9VupOBNo(@lHZ(#$lLW0gArUbr2L%qk zh_FEiM}97L?`^@Zy5^xBCHy+unq9?|za^qU&hQb`AG>_=3?L;USWvEt&c6}k0l-LM zgE1K1{_ZgQEg+@1IrZkIHPsvhn!2LusM2wiU%)t4_%MusTmNKur#}`!hd+j?E)xpv zmQnZDBo&@qN4Q<1@S(#}fV4&f>Li?L004Cm;)o&jY_bfEA&MNc8CTDlgTBxv4g!S^ z4ZgfmO^aqgkWRiwi(RLJglruI1f%Gz@5JeIr(nYi+fd&c#vlIkYGemO`1|dTLSBC+zIDkm zJn-Unz77#H^6YQMTYq>GcmD8d{QbGj@OejO?XoHjak}YmhrKXr)f*6|8@lG&b+A1C z5B&Y{H-TK{0^m+baGdKSJY>pWVjQHagM|v?AF~f|d@ul2F{_gA=8m>Ysvt;aKPmZx zzh`UmMf=D74iUW63$y;0E-1#5N+*9UjymEmO_bp}Hxa9!l9cuD_h`u#(V{mJKqmpf z@+mf+$F2qdhhGr4{sXF2&X`AJVxnZMG4dS4OMt0s_I<|WG<+Nc=FY_f+qU7iueQQr z(cK8M0U5m#ao#;9A`q5118{29lX|11IF@|4@~5M>bMGJs%qz|1b1nSj zq6N6*?#*b-C+*m*T51LYp4U1ty(}O5$ofyCrEOp@xBiF7CD;(^!5L-?%C$B&fd|6M z_(N-10hEL99>nsimhty%&z_5NivfSX>uF4xRe=}oe;Mce_)09DQGy2uAii?T3UszK zBh=|ZX-hXQJ9jC(-EAYzYZG;NFV>AVQu+eAcIHOpW!q3WcN$*4ZOAT>dwN#6Rp!*6 zDgSc2ggqHgt$f@Az=#GOVcb%XhaVt!dhYf5pW5ZrCF} zk8LyP)D+ZI9zUz9MXRqtoeB)I3Jkbrc@?}Yi!DCnKxX>)qx}wtbp_Iz$CQkX01fnO zIej);6!eGG2ec&D3Zp>>e|ir<@+3@I2ZCy`TUHDwWwno5@34~Dkuda5iV3i}BVa{w zt6eT!HE$MvziB7__qirm^d_7!qXHe?{*1Kb;Wv%t7cel1#S}P9M&!662nFq^rH?l@ zZpPAzxv=ETCPdhVJD%E!@&a}E@ST^;#&52gjjunt0|iAkG;VHW0|c<*niX)0E_C@r zcx!7jaxLVx1v*e}>I8^B|EaAHOU!XBv)Bl1wD7Z1YH8_oLX!Tl*oWC_M%%W%h+e${ zH(h=jx;%dLJh6%Va1F8|ak$-1Jo%HSaK-PwhH#zu6#x*dW`gNP=s&8Fi@_1QQz zSu-J!kdP1>Smm!);UYR4U!k zr}i_4lK!$`_?7)U_2Q~!)vy`$X!EN3E8|&mW&CYpN%}bl2xyou9*qdt)9rzU{KF~k zjClf6^jTCbF`N66)$d?20BOP<;1ic&fTaxOpUbTO+#tY7I@#V4!t~sH0s#qsezy*{ zJzdB5Sv{kS?%hz2$%qO{$&*Vg9oA|GAfW^h2 z^LN5S$~4_z#tfaA+ydQT>h0ilGS`Pq3l)xH&;2jq>h-I!{^tAeaAyE3rstu5ovdMq{+{V* z$92EoiY2vXIOy6Nq#(|$D8Q!81U$EbgTT5qGx5xGZ_|+loCUnTqXRdts=}2E@;L}> ziuqhUUCVf3}47f%Dm(CUA#Ww|9t-vT>s<$Llr51f!%~{O<|PP6kyMm z1}w-j;<`&#qW#_%2>>kEb|{21u3U?XP9GYRz7m@!X=lWbegdD<3LSW(!H?IPLs;{L zbFpUSTx|TYTKa#ZN5bm7JXBcB#88qGswfICP5w#ChX(*nGMaRxWwg^~sv*Dqk7M-c z&NkyKP3MSZJs1n<=wRt- zK@I|6S*(JTRr}^>sI#g`eH}1b$*Hg4IY?*&l(c z$bsfP?R=dQlS_@$?Rx4BxT{OiJ)jOA^2XU50~)+Z%HJPJaOMB?HRod^S$`&5jpV2F z2Qb%>4PQ(etoM+hHi^Q>XaD0a5O%}>p!WSH)r1d*I6@a-CXWt(?6>tSyn6Y zq@rfbw4167Mf!26MGv8(qCh(*NVjd{Zs>H{Z)-Iw00db9HY0wb)0lCvD}=9|RfdZE zEF9_`-}+}p{0C(WMv(6Fr>~i?O4*7&0i&oVKX`z-v^>CO))D|HBY}uLrhIZ8@RIjq zwr@n!KCBlu%5lsxvGRb~Hdf7-T$iXq53V2ci%RjO#R)v{Zaseb^d27QTRzQ=o_+}t zX(&%XR))F-qmm4#O+;;F7Pf8+ph2;sI37h08%CVE5HcVV{kgPuT$q=I-E^P21D#+~ z2|VlVhD5aejEcE<#0R@289KcDvVi6DD$yiF(Y9$bKb4j&bC#YIi=L64 z`U1!?FV3-8(MPULJXsE%^-eI`2N1L#;hSL`(Z0Dfz;a#gE4_ddeDNBfGPryi(GEZ?(V?LKe?N`nXh_$ zcsU{9#;FxtXAE@DV#yzC7-(WR3;Q_bqqzVh@>C}vLkfM{nEMDq6<-u(EH{A1395_K z08)wD#+R0E|8g=eYXIJr$mB+EK*Ibf*|=a{Ir;+83D@dpGHxsYV}nJiD=(5Z$S;^s zk;`Jx4cj;UaJ8Rawf>q35UV3m{3H39SUXtvWloO3SwKuu&__&QaZv@IO^3wu2?(`K4Lb3XjBD(q-{uVTZz+*T*T2G8bEKh8#XbBP)3771o#HJ@Kedp_Dgmg z3I?&Ivjq=zNdjn!Wjp3Z@&w*>HI_7_%UxWTNYp|oK5j&fj!FuVEmBjIi zu>c;g2Nyfo1{rNp85UNLQBgA#Z4LuAZ}H%Y1% z5D-`k@*qcJC?*Bp$53wro9!B@3pYzM%{E5Ci(+lp`bS(cjq*b0~^Dn+;3o_!({&xljW7tAds;!5J-T!EpapOJejgHFQwW8$W*>`@5ty#W`A1&;(Z1y5Pz-pvNB_9^D)KzLBlWr1ruX`=vW<=>a%) zQwKvBO46^E;xKDi$v!QQj%S{a_pT;g0Cw3aSLI{Q3sEI`U94_^(Lh$vO_sbfndU3R z;feO6!s)BA>OR}|J;2Ee4FKw z{-gV}ELpxSJHFz?j&nF9Au-_!5CSO$LZLL2rCrL>HndyVZdn$3Y`0xX7kX{^w@aHX zJ)ng`I2uAY5<-E5Bll$|vE$p8ZOM{#-}=wIpJdCjoeM&_P1gU1EnRSs>vmYh|#iwD`R*j*%P- zR>_=@M-vFjl(4$#(WIjBkwCOHj^(CNype0dYjgrvdRzz)NQCJ-st8e-2x-Z$vyjre zbU9dHEu!Ddg=u6E2~u>Exd0CwI)+8o99)u@OW2Ws+Z)4+^ck5k2h|EK{G6K1JSnMw zKN&+k!t z?5;nz`f%lbmP_J3$mXZpC;Xlm7jrw zFH?4`V!B~*Rt<(sa!D*^DW1Xg3G83l5`yHrO&k2(vnsnT!LF$_ra)hv48^zmZ3tll1V{q8VOZv?w zM1xUcIbjs&^{6wO$v!Dy%qv0#f&0U)$5EnDU{$^qgeMpddGI_PgK!N9)%iMl!sAvW zkeIxh)487r^x=e;RxUb?{in(Y_$2>VWHE{@F15`SATZz@l~tBn@!dOCp; zBLOV0SB$m7no5#m|DC|k0N@S92>@i!&_Li`|7j3Nr`3x5{4@NGlN{!U z5_`uuMtNENAaG^gSYf1T%%2rPcAh?VE|wtaE7C>lAHARHKo`}CU>9Of9n{Y7{Gz1dOSfOaF9S?IT5`p3=Z}QRkJr%oC=zj8FfxL7^78OJDgEvAd3HA0$xzX`yHhMcPc8~~ z2GT^s_ILN}&C`jp-*gag z+NK`ae^28wO!{1gFP~X&FVE`FCl>w4T){R2c&5tPKM?>-;nAEGO2DxRp4s5yq+YvB zFd9W#VFMAw5<$!@E<~a6eC!(R!nXEdqWX3mAtl;BtP%i_r!ipuj3O+rEym#P4)l%= zW4o>fmn!_|NCm~x!XPkHZ1dxqO7I{=7IwFy;=+r0L-P& z{GiH)KM(+H?;F8BuNPMY6lfyfU1uU+TPCfs5GD{X$>g|R=ErjZV6)DOl}ag~XVS|s zEHh-B;5#vvsQWW-{Jxp`ue3>1@ZHA z{kRjZ!yklMt0Na+E*2Gf@Ry@U(C+l1gICZIOO*}d&7K|<5#1);7V8Y|?>PW#Q59;* zudt_zH&k-z(Mj*mAm80X;KCHXuyQt99S#C`2bS6$m|IhU%929p$mJO5AR`)b<8$N! z>{F`n8Ug(akvMutkxg{J=hAV_(Hd|l6ht@&s8mLAmCTFhygC?l8eFO&%b%klOCBVP zt`bHfOhBQg>wkqzi5w#4ynqQiG>U|h?xS3q(V=Uyv9AYP`t4XZvmDiWIo=!^!A5rs zGfDZaMk6{0>@d)GR2a4N9SItO@`KeghPU+oki&|IBIR4N;8t`JJXDVp$1)vG@s6Ju-ue$*J9uN&0>whVT(v6P_B(F#-j|!iOC| zM#Ejfc>F}61IZ|=Ed{8y_6Y!}EH+}$6+|!`7h7vsNfwkoE0?yn9LG^yREuI_Z}zNf z!ySC<C!of=1Ox}WhH!r0AnGb+z*0zF`j8ZVT5QswUa!J#Zv?N9 z`==sTw~}{m%=4%T!8vTKUa5U6BSiw@(@a0F5T;ffv(?A~os*L?a!ee%y8aC8#LM!+lTe z6(I0;=NI7SMU|+xSp*O`eBnt=GA5+ePCS+g&nLJGNl6K~n8r*z&^{c;)}!64h$BO(X*5{^IT|f;iORj--HCVXUc4L#<3_TOMxGkW_?{@ICDUU) z{MZSd00AR?uF+=aD6{;<1hU@W*$$v3dUpZXzJKtgaNbC1z-q3XBFL@R71ksch5C z1SIGWrC1C?PF792lmpH%{<5nZ8}{~za^L$dUxeZuX_>7knUib=a55!5<*dcir2g5n zw_^oFr|{V{2(XN}k`uZQ8`T;C0E6BT3~D7Qc{i3-R$_HS14c;k^n@7Ra7chaX|7o` z9@#t6jhE#!aFt$za8@#W2pqwWqDHPnOH2WUm`x#C&S}52`GS(=KPuEx1^vh<3RMc& zv`WDS%2g2o0;Uoh-Wce`XvBxl7uRxg032}xSJCl26%OMteYcJ7<+058OzJwRQ{8_e zu{acTJZ#&y^h$XLmlj#DVaShe5U3FV>C`%*{N2P-czL-cg(ehfloJ48AmSI+pZ?qy zIsqa4IOIbEz=Q$AlbP(iW_FxRB<`V?ax->4G3Jez7fU&55$#p!7yLfJVl{TemA=`1 zt`LF=x{yk(G7%jgHDmMYsSzEc8`?fFf|{}dJap&fSaDt(e)IBP{Cb-mf7~&Q<{Aqw zpI3m{Gm2ofT98A&p3^6}2Z3lz>PL`q#QaOTRHH#&L6{@so=^mRZXez_+>ICZ*u{IF zINyd_S1v%Vn*7oogD~;x&@={I0ZvGgjaSX3zdV(J$K84-1^-Tn2ZB8_5B6yli{FZti`s2qNx+oN6;Uhg=JHB}1{WRML@Ha-xJh{U1Q z4fD{mvlVSa9oS=Q#Q6lKJ+aVO!VDM9_=#@Rs6tTb%xLjNq*Okc0^XpHm;?`DEwpjT z*9vNjFc1r4AWlj>?8D4N40&{nc7GI?H!i}f$B)3*b`bwiRVNZIRIVs$>GLng^YE#d zixiUqMJa}%jK)rajz`8V)(L=^y@i7=xV&EM^LntL)`p$I1iI8#80d)2YuR$ zYH~MZ#7P>+9SKCG3#XAOF%tJ8M8_6RElaQazs>-X3dNaPe?}1=Ev#)<()LRB4g*9p ztICXIk*2SqlBHH}v5)vfME1I6v(a2%j_oZycxn4#Y~1M}#dTngtqY762eKTKc34UK`YVMU5DGyG7=G8V7MLB&6iZ-`U@My;9xo2E@gSTQ}e$r z{}j0r=@XVAwIFE5Ou{K715Gz=nVj~`tfnBz@k+oc_n%^r^6^D!U#a<}1Ol8b$W1y9 z*&T5B1Ng+{&FDFN1lx~}qQ=xiTOmf{LFu0G41(W}TJo1Kt;oZMqdv5|2Qc4K0Ha(1 zAGwif5a0{prE6X*_aH_}yCCt9RWrJ0Zc8yP*~&y{IRze!}Q2d-vN_Q zej~3s|+Ax)v4 zsiZH@)eB25V*vOmDZO9>to;2We$1}qTOP*AM63@_*8RBMMSi4O0KpYa)%bjCC*IuG zgDnS#@w@Hh)Y4XA)u1w8gBkRgmor|N&o%u0qjUqkQ5@~{V<5z7u0TbB30F7Ra7kl1 zn&(x)8wjCySZV}VM3&$g`(bo=q5>d#M|{&BW4f|B@lnyjDF#y&u#&`2yH}}_m4QS zMQ6flQpC^{i{$b2V69q4)?I;KQvAxIa_sfBAmr+RN}HN&QkMW46OC+*0E0>mA(Bx_ z26H+G;UL9dPKy6FJ#L`wCQBha1Om(G{T<{|6hwo>CWyhLZibG=icYH$DZcw0L%2e% zz#)2lh}^mY+APkHQ2ZWZCNqnT$fMsq?&Ba;4lXOofh!~#C$|3HL>P{!0Hd#@&*}e4 z41kwG=RS>W_G*(d*?dUFKIeVN?`7>{w#f{jmA0A^t5GZ{@eA_j-#=o<)k_;i96)v& zA#WeuOrJd>fS|dtT5M~&hj65$7Y91+*xwUCrz4DgJ$|CG6WImhfi*{kW%Xv9S8c<* z*<}I%cw^}%#pkqNwMvOxgBCplUi|g=ap`1;`uDoLVzUy%;24EGgMM?)3QsSIs=zb@ zkd1pqABC})K=sEge(J>&T*FB-AF037lQ4$dI4n6DywmCuAW&UXEM8x+;woZXzs8mp zCz@=>vCuXX4pQFC`^6>FB1W)tCt6)SFl%Pxe7PFKoGF*4LMdwGBj4sibp$VmHE`2! zFRZG9&vg{JIyv1N1&)!Q&y3r^0H7~`S0({CujXU579plm!{K&{PBd@RqnTi0B>@0; zVzChbv~pn)fl)|-v4Cx!*@%}8ABEQA!XaXj9CnE@PI(S$dZfnd5eE zd_D7}_dnbLW&5HsnOh01cGmWeXR-d#XR*-Lf~G1Bo}?T4+OB?l`FcWZofffFFerW! zAW&q)C%8FC=ZJKJtoeCZSze6GFHB<87eqfPvV;8kQC|S@NCZh<1D>=qKi7c50t;+~ zd7|Z&kNjOC&cB5#*^dU=Fg0^#K&p{QFq%{jrObalKA@K~L~BJCWcN24i+;LMHSwAyS6(%u2YF z1Ek=@jEXC1haj!xiekIDZyh2a_sxkDD6N`%=O!x3AO&EW6gy1*i!>rW7PcGS#;wr41smJ@>z3BB2 zL-h30_e(JxzfZ=FJb5U&D7DbPK z6XYHw!#)&SwAkcvqF9}PbEt#9Cyo^bd00|ig4OeD@Y7d!;*EYkN;P^cGv&fTtWPbM zj=m@AL3hX<&?)g*oI`SY41f!Cq)fa|V|-fg?2{O}0a}9r>+b(LLXKl_A31_ME^%V* z|J#Q@ys!Q27!2Jd?qy=$jc7e zjXj)<9mw#}P>1OxMb))xmFODGtN!Hb6SG zMRZ^71|2<)=ZV<8QayAZ`R~X5QB)gLxN%_>nkq_AK*x|rOz)+A?RaM2pxAGzMc6_F z<56NF(mbg>BG!W(Qb-xaWRe7oB|h+Os5ax(V?PX!G+?Oxsl#T!3dU z+ls-xdl93X78-FwNlZXt(4VyA_hiBf9QCEC|HM1Q(R-;6QgZBFz9jscoF~q&GJxpG z`oH|fAsibF;+AVKL(_^IVExrkFybG=;l2?x+N@|O%Nqj%7O@aWs`xRMY77!jOpNpk zrhp8llm>$nv4V^be`q|&0;4p5Y02ej?RSy;L<&+_f@RB=i4t9(FO1yWeB65L*RXBR z{n*~_#{5E`Sb;b_Bajwn(2oVg9By9-0Rqq3kK$7$HLxhPa1qtc1OZnp1}lNXr>qwI zg;|<$CiK2z`1$r-_{;)7nrBoa-(VC|uW1n=5SFfY|L6!Qwi^Sa{AN`gEzw~tR2y&s zS^o{B(EbzvloI3XAN7;syWy6Hu#i~5x)n{RDz=DT2qVN6d3$zOmtcdx@aIYqhcM3KpEpzWmf`yZEt$UjSJ4bYJfy<*J@V9n)l z4GhA3%3KOx43smdcCg_3Lx#xN?a$?%s7A8@3-o74f7CS6nIf zn^Ct6(ai@%7GkF2rz`)M0T4SDesyMoDSS!QT6?s7 zig}>d4mX|KWy|Ww-?j<>(9*r);M>xrD{=jb-{Of)EqJT@I6gVMafN25XH9{ArjhE`dNPI`PN7tq6uAXs)UeN}nmkIpztEE_(mH zj-%K);KWOjcH9`RL=6Ez8?k`e)Qk-?05@5Gj!31Izr*elE?yqp?_a#W8+!(PsIh9X z$WjO=fsB%Tes2BtzNb5_{49EDp5zQ~z*!LG$um)~k4D>0q&oP>vNT{)Prr$t>LhJR zp5_@Rvw{j*&Ld?47fh8>l0RrE$t9=rQWzJ^MfYI zrn@}}VPhiQLFiPV}rti1AOyz->-}fKGn&JxN(Y11u(x*QH_nqjw9$w;9{ccEIix563m(~vXHy-srgN?=JeoC`;TCA&JdQkw0PHOgvv~S zG%!l^-7S(&S5}q5X30hGut%^xi%y4)J6o}_)qx_T3YVD55l+SskjGG_GT>OujW(}O zb`de6F1L$Z5pgZfpx^V^lT&d4+K@;rp}YSeZTI5T<>T>g*gxl9+91?5=figGC(!x( zrx1@tAy=y=?VcX+AGK>7izQ&oH{%cnvF^W~L61LzngTg)yX_9~zTMuBxpNob;)~D2 z(=TqvzOGRWj)pO}A~!uXBt)%|s6W>$u^W)i3z$mMiZ5F6B_`IAORh-TNHTw;8AR_cjKDE0_4ao2xRp9SJMYwsXUMyigWOMe-wv2 zaa8Cd*y8AfbH5L3=FJr|4GaQVr6ceJ5(uk;xU{+)gXBuQcC-hzHBJ;#`zd4+18W_tF15X@LCs41VX-vH(Af5O+={;==M%KZC&Bib65bl4eqzThASV z(+h%Twg;PX3NLN-<*8M{Gbi~o-GVH|O|OTTeI1h1>_3%A3`HiUGv7WUmDOH)>4nJ2 z$wgmZ*Vuk)^7kX;@9QcmaQOuhm(PToLGlPJilrlo}=tf>f%;&_50}>p**XM#a@;+``v;;Hr z3ot~!c`%rPs43Kp$ildJ-YkrGJ@}x{jak-Ggy;mliHO*im6f3=M@Oz(h`>ZEazcLj z&H=LOQCwYA2D3_!;jjk=mDB`f>tGK|bR%z`*N8|onzsHd6UxIr?iOI#a(c4>$>g(i z#Ea=K27$`c_#}^hKGl!5=V98!ah)nJTj+IXd(5L}*Q zs%~uJZ+S^^Y-S7YK7TPD+p`;+$?7h$M9^d`BNrekdhVr#1AhG>A7&Y?_+nKKw)VTx z9r0mTzaP%OzJY5R8gW5gv6u=T_5`HaoumRSMtgI=(gKxJHP#l94r5huKFV|!xT67)E^Lsg@Ii0@9@^)QMYB<8FyN5go_R_W z0N`&FQXi9(1Au7PlKC9F=>KX+jXm!a$?F-CoH`TWj1!I~C-`KPpYdB-ozR@W+;y+w zp5O2B|JRqB&CBP`Mp!JZ!{s_>x5*NJyPo{N?xQYr9&_WJ9xwWa6Zqn%7U9eH{{&z9 z!fm+zj(^5Ke10wceJcuSz^uIPX1uxO4YGnBynAc_jh9;C38m6SHA(0Q07g7gK7f?A zkcwBxFd=aWS@D4>ee~q`YeKoQD1N5WCzI2>pCKIMiKnLixDZM$58%yXqv-NQaNDJ8 zP*XDt$B(uk8VRGgvJ&Q+Ql1uprL++Jt;bPQSB0jgChXp@2OZ=WFR+z@b7~aIq*z5c z7L$oUXj-E5drkrY6S07=E^EeygL|>Hdjwv(HjB-9(8@V$a9pPpNu{Xv(<_v?zPt#> zeMHp*BRDcLil4rH5N~x2;HriSEJ!t!bp=CYo#If@uo@hVU~zp7mJ`$1+v`KZc$5qZ zP^y;`&}m^JWIozIf=AzO#bJ90R~P1?N?!;Mxo|u;lp|N8Gd_ZSLoQryD;B{_A011K zfKVo-n|NhPOzs2rHB89-R(^*)Ae7%3aieQs6uCwXuDtd(l#uVY;l&s6&kuYbkNxIJYs-G8J3T0+Sxw+xoEMxC^s+w&TK!;Bq>Mxk$>NKf4miNK90A;zIc)q0v zFWCEVc|j>kRk?7*$20hqGC3)30zEB=x$pC^D|Z=X|aSJsyk`^d+PJOiu- zz4)BdFMY=awKLFSZxM}2RVq5Jl$IRoci{V*_hXpY+DcOXQfnD0cu=?^dbvutCEEvw zQEt>@RsAe@!$CUcNu>AWdFvmeeArarXCZ;WuaMQM>nuvTkm4nNyz$2G-2J6xwtv53 zZn5e|w>BBp{^A4N`kyc1&-Y(1K%m>o3OtJohHHAMM9YOX~yx z5OYLHff8>Vup>O8L_=jUqH$@=q?h5E%0EBRdVtv=aI(cwG6SU91T3APq)~BBe-v-E z(>c3B_|`w%jOOMGaCrZIl-13IrMe7pQhZse`;v?-sHLn3&f!5UTXrcH&-oMj$Wo35 z!^qWX5a#BtG#ZP@bsBLe#CilQsr5Dl2n5NJhGS8zoH<*#23tCY@%nHtF0e)j1SA`j z$p#n*MpMC*G!V?xn+O{kdA)`FI=F{nti3`jt}2h;GNn773Bdr)B`tDZO;* zrrvMtdD`lyNJiQvm@Yub?apHHBua91q!evs zs{2oAj;Oic*gJrQg`;THl|o0BIGC8c?qV7U%5(;?HJB_o>>&V(1hK2#jW-WDVawOz znt4@N(^QW|m8HZ2+F&-Q=)B|D*5)SvUxl0N77NSYK5z^n`m9c&71qBaIE(>0t~(aY zhRu{G@)^?N3XbI>oKworas~j9?%OXZl(@Z8gqzvG+jOTMrCr9@K=L%hoY{#s$z+nR z-uY6oJU6J6f--Zhvx5LYg!#ZPaMVciqQaLa$bh{ykFwdfu^ znyT@S#!q1SraYk3@uVVg3Z(*Cof3Ak28VXp;gWl?Vp$!w?l_9W{R#Zr*RDt1c}?ir zdjJ-z6(xoFND>uIk~NT*R^X=_w&BY4kKnE^d>s$}oTDe17%5Z=z^cwb(_QLsm587tvmYHWwk86cyL%r5TyBz%zAiu7QG zxeU4F(2vFIeI1d+n5uY396qIYs&?L<$&bPuH@}bqyiJxvegaom4Be`J)oeCOR z9Ih|{o>75o=dM6bF0snqPWTBtjO6pHWVCA1q`dxlpySPUD%^kV zeXB5!C@FUbI^D`aAt~iotCdjEpzA(1fCD>S2#4ZmT55yEq{DCC@516)1-SL^)?v7_ z8!D{^1(g+|oo+H37LN&MKjd0HuD*R8cCTp0H`d*cm$z|sx(d(i=|yw36)P8(;xI9b z5(_u1RN`Qd6ZJEy#sOfOLqD0XKNU!1vx7-=Kau@fQglDc(<||VSB_ycLL2xx-R^Or=!`vtEO$ z{9K~Z3fO2L?nB5R;Pvs$ND^Tcgm3Qhgb|L%a6`j9RGD+|tGz9F(S95kTgy>FR-Qp1 z`<&D64Ko50-OC|f-%sfyKVOXn#dR1A4B)@EwP8k{9%cdnS3oixm((sMhL!`b*Ntdo zJZ~dMp~e^U!L*egc4-i9MCo+~0gefH!U4=L zo`HW}s=@E}x8kM29$aWGLSv3ati;1T_|w^g>4^?5?8+gQVbQ2C5b~nfXhnzsqs%me zeouvN->?9HU@VEtYUZFk&qn9q71f@RlnY{1>F~a10R3S-hrPzcL-m*mOAIKKk3 zN^)cex*QlD4UGBTW0xlDu%}YslLh}y=edToFrO54cl)qV{;CwW`}z%+;hlH(VQ^5Y zZ|O*VmizN?wF|JcDj$QRevAfU zLh&<2JdI0Th)qQjDrt`>$X$qzRca0gJSfX8#68VMJig};-Wrr*4RZ_@=*hov#iL?L zuC%c0<0EA)(rMr#77$9g48d3cMTSxYqXD#yxUqWH9Ly=J7s}5PCFN%TFsqFi4!Ln8 z;KG`QI@Fj8(C-_aU|3`y29ZA|ImK$gjK9+ZBpo%H&`2K~^-e!&JEPN|m{zb}mX*7? zv~mqu$?@lAh4S#>u2J&aq+d%92>zCChZl_%g?RcO_4wwqhjI6lhq3+OARf4JAsWdg z81)BXk4)51Wnx^*Oa`sYV$|WiL)}>a!cNSZk&o+dY($Phf*`IV|Lz}lL&@ExJu5E2``rQAd&k;wF69K=Yk6r$g-VXJto zs4T?t%NoUFMa3)>mzL3H6OZ|Yh0y0(Q(bx(NXLgAwa!6wMn`bIVFqkalQl^o zC{IiXZgS{yffCsv8t)4F-I#p{s;ELt=D+T+ zV|K9#%WRbbfU@o9@`G%4p`6B| zb~*i6URMaaOPb3~N3(lJJfi!~qqi+W^P8>s@y1?Ux&JkM>AFf>civ2t*~(y0riIy|@9_UeX})z`gzuDogY6yBD@%^IkiCe9zyZyt)=1 z*9dI&HRDbFPCs6?kp(dq`h!_Fq4tO}_nEv>5<6M-{eSfaC3oi%S(O6J{IRw513TZjAw0P*A z7ZBC=km7Tjc;OzzdA&&m3XS=qDG2-Ya$eGnG&m3pLaWhWo3kBy+UHXZ^Ta|kV!@Xz zKP=5Sjt-5jEZqLLuKvpwtIu_XCi$lAbQ zfWN03L%qF-j7oqt>U3i6`RC)i-@YH~?)^Ug>B%D~%r$~7f5%YP?9oKhHR0tGDg5cg z2{QMsD##ImxxtiE$I5^8+I8bQ6BUk=5=KK#QvZpr7=K099US{>VbemC6d2Gq6d;Nn zg^3g~A9F7ka#}OB6-V3 zOAa(T9pQqG-s{DUU$`9}8ff=D_$dDQce_wptU+-uPXneBYR0~B@^73huY9@!pXoqB zH2fsR?-=%C+u=TNdHfw~mtjTI3bbt6B=#vG#*>q8K|;*aO*ST(%0J=Vh#%(qdMut( zj7^(b(CZAKsmg*-Y8o_|g;wdmccg*aaW!3G9nvN0CmJHg7F39|Cc00zT$>?3z!&B7`ywv?mK zKPp*%NK@XKmr^-#?21^G;tUws*_4y_12|ooIGQ?f5&)QVJrZKkJVwiRvfsLJ_6?Ih z5Rb+>RZ6tC^|)#V>I$T;vl-`<_UPrQn=w2(j2R{iS^WYG`a8*o13rD}T=AaCpuy5P zRmzG&iL^MqL9wO)H~S!}gg6bDGOHfHfAui7>>0$IG7~E57a*sijJr-EK?76Hsd8!h z&laEWxF{%5Bd;(QNtGUs<84GElL)w7aD*nNEBChS!6mCcf$Mj@gQqv|g*z06rd|d) zQHxyqjnVM*nWPgGeC)rI?>pgoW^~XoaZme106*T;isMB6tMaw@yW74Fug@bE3ynk~ z=s9ozC3Q70^OR>OG^z3;bH!tERb&z*$fD#kqZakeQa*sodE4C z=)P+8z`+3z+BWqlmK@?h`$67(Lh*OegZ_B+`6Cv8ad@oJjh-l8YyoCHG~Y&$%GVvwTFy&)_rcIy^Sj8_WPq`iZZl zszEpH>2!*|TRdHsUWJJRMtY5uSi*~W{I#VQKYyVMy~9D=zNQIZ{^UXtJ?J;luTR) zu5IR)bJHSD2xVoJ;xF!<7$(4w6hC8DDdVGhwGu907>D}&1m+U*k97=B?ZddkapPJt z2fe*X*axNHV1Ry$*A{FlE)lZ`Pwm?yK%ggS!&8YuT&4C45OBmbVsz?2PFg7_ z98D5^RzgjK&}cTpU^T%&%3{dP6_16bCD56qh4*R*03QAAqj>$*nF0XLmSh3~D?iUX zv<&#e5>R1HHk5Ji-`=7b_Bu$82m zuOz2&M}jCVsSsV0x$@3K%z>3IGAaL9YCUev(csm69cbwvul!3hh0M-LX%MKalwz)Z zed*T{Azr)+__M)^wgP43TmoYc#?0B8eqoxIO$QI2&RgS5`tdI zGQ;5hFtjBls4OqTp|&1`NI8v`T#XrW`hfx)rDB5RY51Zrl^o> z$bloli->liMyJP$ss;k7Afja1PnP7PCf9&x2OJ>}$R_QK#bqLR6HA=Mn|B7HJfn%? zQxswV!!l__e3QSfSAY@&LN`|!3vAT&;9v|vOf5;81nW<%*D69|1yQO%8!y6JC zA5%Pjb_NlHRf$=P^>4IbPp4blxr>@-;;Y|z2*3aF{TLc_z?`EKaSokUdbH@w(B|aA zTv8#vBZtmMq1MnQ-EuwcC)cP*pGa9bi9+RUi3v9xX_zg6fY-xm-EvXtV70ok8tg)TeA{U730UnfY)$9n7NbJKwUuNnA{wEeWM%#6RkcA0q5V$`F8 zXggQ$r4?WLKAe*BbKd`qA`4!9w*?QZ-%0}n_}29`SUl5;r{C>{DV6WS%AZj^Kkaww zH8l8$8o%4w3X?`7Hl~R@7445i>H8(BsG&Q;<*Yp4%>y?fH^S*0Ur$h$m3jG52`hiG zS&!Wv16aSMLxOFRo4)WB{OJC#;g3&Bt6Ax?KBv*hiC!l$t2`H%Hq;{mi5he5f|}^F z(kOj`T^=>DCY`|m4Q+ju`LEMDU{Zb~ne1Y-5r24XCw}(y`{*DTySmAYFI_eZFCXg5`oyUx z-;yDu0i+U*Ej+2|y!6=`QXPzC$*CjfJcGeo@5uD|4j)Fi%{5c+Oy&RH!}r6e2@2(} zE=?69P0Dao3r5mUZ0LjI9hgrF&Eg|Ki<65ZcSs5uNwqxVn4nRo!JyNFxA(OR3sGFG zMX6bX0b&43#l+}8f0`Bk>GzIeSGxyG8>Kn|wK60aKs0`8<+W)Ls4NE#wvJCvxb_Btc-ohg@GabwVX8q)O_TA?hGbcj2Z)>H{2L+kSKit=%4(iU_#D*qt+z>^`NB-{-5sKX8)`Miylv&eO_rjBpo?%b%gZ*&Oz9PLmP z6Ezg~GbAjE^9ra+q8%}Bz$zFQxgY<1loLlVx&O#zkw#a0s625kej>9a`tW3JBS^#&} z;_Zp?CaZ1D^=906Qx)!6e;7AD^a@rs6<}p^E$WK%P?l#TD`P|`A&p>PssTlM=>U^n z;`9evyYRE;w&VG|L=O!rTr%5;Z?0J&6vXKZi&}t8;nr1Y25T~rb<3H^Qq);3Ami)? z$ESXcALCOXXn{$C>OvFz;mK@7I%vPoTau(0Vwgrsps%&Y0NswUEmr4gBlZh0LVUM z=KV)4%8!AQoE!iWiKoW?)?~#CKAhaLzgIruk77x+ z39IMj;rb<21QK!#xPqcd2j`$i$>&wlW-=;KMZTfYm`9r#?d`kK+vgSoM;u#jGyLjG z=?RxGir`m9DIcc)&@nyfnj$D7dPairkDUAG!Y!Rm!3tf z#S`0GuyLOg|8esivb=f>js~XE(Y$DBBCrWIfML>;bO zR!)@Gjy>c%?rQU3({>LA19mZAtkXz7c_OAxcmk3YVHR-FObsqwP>;D)#bSlu(CCP; z{A#7d<!&CwsSt}{Jo)6K`1W@mA)l6ZP#WPXzZY>$Q7RR9Dq%2) zkiY3hLav28K{S&z%{cf3fxQ;jDhp{q2c+xHX}CN?$Mrgj z=;ZWQzA_4#bpKQtud$2`v~+oIavVM~;|ghg=8QxoA;DAcx5FEZ3+taLMY&lSVW%NH z9cZTSD<=@>8AynfT^6S9d!0@Z@MW1z)L%=0<_n*CBVW!NVC&z;>mn+7ZRyyH6LvVa zW&zJW03;Jhrz|6~J84ZGg{+Ot%Lil6v#DmvAJj~9q_Oyz@65$^@nkfqi1=kbH+JXw?8C8goA&r*IMUot2b)ap`FXwPaw#8D! zJ&3FGNvX&SlF>;j%?MhrfwpIZc>nylxtLd*hd#Gg+$~<*mf6a|Za1FzYX=S!mE}lB z6>YB&3mA!ffPcMy9%@PnfV>gfKfAnkA|%LDF&H~3zb7C?`HfZ$=AC~%o+z7vs;UyP z->HaFvSfE3dB~McRQ)E+opE>QghchJ;G5*kI8cJs` zgX<#@!E>aihz%2e)4^1E0CH0x<$FhcAfJ6AEkR!teD; zV}t>o7dUMn8OAYZ5JfpE+}gBIOi6kpkyDPTu*HuOh_pJ!QdxeAb6h@rKY)`-B6+fD zz{e*%%bw>`o?Z);69sEt+1o>Y?kLWyvXC-mG!B^{)8FjOaZplLK>*N>m&XVZq7j~o8NWsfHG!KRaoQB&9%2OJ8XB-% zz*UVx`O^|rGk@7W_MDYJN2|i4n+~Gg9z=B+UB`f={Ec%P@#d~$SiR7KLIT<$*N0nV zhdT-Jc;SK`&RaNWAA~Ow$Ep$w9fOuwr0ImY-WiBd#G z&Zfxaty8|v)Lm~rLZhfF`;aCG4gBVsYsa5Ye?^6tnBD)MJJ7_)6Xoo$D;JdGk&QjL zW}y=o)mzc!2;g)iJz>Jp-VQ%X>McZ{t041g zL}Z>NK@5Xel8J}?h{zH!kpd}W4tU4~P(&S)B~2-e%HI!X!D!&mGS$ycQ&59nZ`q2*f4LVwd2Br%-C@T&Eq2_ryaE?D778GU#}jY`BBD5I zIxrX>oScm5Pj$9s`X5xx63Wk(UVs=qZ6~ysj;O3i~g$v;JMg;@-Fv1f{%(+JBOq^%#IGndHtHxgI+$(fCA)pc-cg1uEh*TCrlylD&W#sEC z$pwg?@=ao6pdtU1ZMB9R$Oo?a3?Baa1Bj^A(3O^v|6GQdMN8>qH>0V6lz&bg9PV*f zAP|aUkX*uuKLoYbgvgA$q1*OVc!pj>wD=;(BBMl+XTW^$8)Shxp}g=iksn|0lH(#y zW8*ITfgxhr1Zk;xIkE6Y>hdIA$05rp!qDS zPa>L{QdQ|RP>yy&L7*1YUOpv=% z8MDwiEGVrwZKKV>W@o^Uce^^pbF~6v{nE~T2Jmq}R5JPcBmf{;bj9MoDB>rE@OW1B zM0UrmjJfeyvupZGV{wr~LuCz&j%%?JI%<8Sw(c~&9jmgk{wFN*g{ z-ubsw*_2i&KkC=OKhz;YG=?)-P}V~}yUKv7rWN=X+U~gf9_)MPS!{UnWo+NF1;6^M z6r0VnYO$=`fE5dhQI@AeS9burcC}%kyB#G(GbKPt1^F6kYS5qh`itwVbgh--3dFFh z$Ai9fLQc&!u!u>yhtKlIiBArmX-iM+6C&;ZWhr0Ozl!QG*<;sQI5Ryya&^^HS zF^d2A&fU2C+dsnle_oHb-`ypQ{HmM20DEtT0E5{xjiOhsInA5vi_$odX-vO|6VdwCKYzkkll*^C89*~Z09D*q(mRN{1=(8CS|f` zPUX{=R;^JQjT!a&@`)}$A}LuCr#HIFnxlf*sG+|n&fCUBExAt6zn{Excfms=Ns;By zaq6(X{KupJA&!sb#Wy7#TG?EPl{b7I-@W51 z@tl`TV+O#*L1!XNct?iiqIA2!qD0&95Z>$a2QmPL{hmG;RdT46 ziM#N>NR*JDWfwqV819rCaM{=hjwiM#V&s2k%|gVo2Dn_7H7$@uSp3l_pFj;6&e~OT zZA8bo!g+jfDCBBX7U|LB2;iH4Jb>NZPFVCEQ>k_F-PbB!*l5Of*- z7&5YW<<*t6-A&3yuirm}mX_VvzG*AAzO;crp+gjJeDCXz;OeVyfVrxkuQD1NYfxe( z1)*ao%BzCM6QnIb)L(_%9HQkKF1`vN6z>6Y=Ro(Fmw?+?V`_Qpl4FnL&wEp3P3i$<_^UM*&uD$o~lPnfllooH4F+%#2>mv`?*oLDE_ z!OfY4Kc{(ke-lySY&R$vzW{9UFH8N+*)e|-e@*J&mt8$_O26{e^dG(qAAv19C-!VV zGK`0wJ0w7$$cmLj{dO7T$@XAWcIT5jdeA)6igK%N3bXeGON_NX(?Y%_9IHJLGA|IzL6m?FgX+^5_Nx zFNznlJcD(r1|>$eY}IvRuYGOpjl@K>*tF+8Xv{U(|L#T{?hT^BrlTznesPaaU$Ynh z`un6A0PYI3!`^}xR|Lfd$q2c_K~Y!1slVddoWw26(P(gJz%I6weC1pZ`en<0>oHj0RZ zCOw5PNhWnB$@Ka^=f0U_G6V!yCHUW?k2jg}=FNNeeCIp&p0Zl3G``zELw`Bs9v=OC zDo&#|dL1eK6Av!kjmH-bkDcbh+l8?!Vbmyy%B!%S{9dunpW+c+Zx{qR+Pf|E%$sk= z`Zr(2hL4_wZ^reIx6>fWAcYAhF&?g=8G9|ad_q5 z4XD{uf~NW?baYOEmNry2`;i7IG*=071L)%+pEQveLOga`DYl44QvQg7j_+|nvv(Ep zhK<9x)1)~RR{r&?mSQEb60NyNJXf*i6Et@OG5I)?=$F{oet0wViNZvaS7Z4WvCCrj zIPg(*BeVoaK6M!H?B0utW*g2gA1Oef^Dx4Hxn$UuhWM-q9tU^B>f;taS(FDB+W(%V z8xp%4g~Y8tOLCN&GPz>q!4DlHFCyA%;-D3+{faK59 zIQTnR{@H8xv`%9XxP8_D)RTWMI>hvHCwZPAjjTmFv4vJ*3wHARE&a<8a@ffCRf=`$ zwz~b|z03j_1nM4t7;8tLN6$zKk{%9-M>;N83TYWns}M8CBFZ&Q6aT>hv1RTZhxzko zC0YMiC@qOhZHkJekw_R(f4fY~>BzogcpL+PvuEBySRpMJDu|CT11S2W0-y9#L*plK zpe>E(XL9Hb@p`3h4FNzD3fg$Du1BvDRGVRLUI!&Hfa#A&`7(E3I1~GKZp5d1cM%q4 z(djhN@Jzvq*IyK`Pa6E)i=uMCVoM8sua9#d)L2=+8~Yp{E)tDMhcqQoLodD-*^En$ zA1&7PeTV4e$=1Jym{g+m=YJx{90T~l5lfz!EPpN{Auj#i-8fX$bFjwsf8szX`>(eq zm|YUV>BQEqeE<%ki0H;a=bI>nnvVnebDs5~VdCDU33Pcl|VX(=%|4!)-8ojc3 zN?zC}%4x|+No1-7CxV`fx*KpvNxGhqZ`)N6+<48| z7&~?no_z8?Y}{Cly^U_HtF6V9q9XViRFiWzV)uvBuvgdYMOcogLXN+yz9Z%yZTazB z07*VNoHxal|6AmAqIK`{16KT7p4$vtn}_{)9wBe0Xcd3aC}rz=#1=;}ivGQaKO1|7 zY1=PoJG+EH;PI7qQgS7(JXM-;XAnp%_QedqU{E64BGKB~%3Zym87nG*K-A|)zp^4^ zb(PR2rDb(VG%QK_*VSc4gy|_o!2vO`CzL-bA}D2A3uMOZ1HM+KNnsX1DCffWKDir> zh^)O4Mde_7>?TET(gisc2n__Pyo$&B=8zIjSyTk<@P5CQuAEgN5^NaHbapMwO<@#o z3u5T0V=?2lg@k9#7(cQcQ)awD2X2vCsH;-=2>8waJt4k+M1H1l>-KdVd2WqH9YtrS z4E}(OXgl!F^*cm8fQRoolK@Qu*lVx76IWezm3Un3Y=R?r@G5qx1b*A>4fv+HLohc| z{yVxZ(=o>Y`j{ju|F_g(_<3Hs&c1F>cj#({QTf(E-dh@tFd#(b+Vn#4gs-(GzGTB7 zFoZ#X8-{Qh>|dTe82On-*jl{O(vVDQSH%F3l`75H*X-d5tfV#L_y8aa5#gzIaFp()W(P*IK2jO*54*H3mp@Go1h_}R44L(&aN)q87 zeuQ20^Y_KNFE^6%yZH5DA99H+oNx|7g!U%FKO-W(b||zd2s&+0#nZtJd04sl&)Bhb z2QrOvj4G5|yojg(bmTv;odAHG6D;{=H}=%~@ayYX`R{?T*T)ES+Bp)3nE>C>A-QSVoh!Dq5R=%5OD5&xl;b2zz-|Ep0jHo2$u|-RsIhg! zYJ}Qqp)h73>T==-6|SwN&>T|vh4AE>?1$o`BICd3Q@sRo#uiFoR!Un>=^4t&%71{6 z^22SzpYOQ`o~0Gnwovk5kN5nK0VIj+$gaqdTtFTQ{-9UHc605%6rQh&#SO%V z3HkgYPJoU)O>NFcO3?)PNm(^UGt^nfk=3c;*Qe3Oe14Z&gRnkMZc`W zxH$43&>7|R_xSyc9&X^&A?6so2R6%W4_S~(^ncMEmtxHhC%75X{7I$ANK*+H@7p91 zAcEww6{qV_)8fIS8@|FPJ6mzVB58wtPDa_#q{FgxNPobm$0DGpyLU`h7h3LW{TW^hWAfIk2Q@? zlD-E3@p90K6H%=K<0MdJ`=0M2SD#B}`l5!n9CcGw-nIFqtVV+DlSEnr}{H^Ug3 z!yrH#*6*?6>dE~vp~Q;!H&>&rrCGc=ej(#FBdNRf_aia|qP#B8ey~2h_X?8)5+R4I11K=3^?H0}7dxApN@9OeS2{sgz_7TPlCJZ3*=f1n0x&nP&9ZHs<(fQMZYZ z0-`}TWLmR`?Vq>#l`UuzQ~a0q{{A*1kN;C9WzT}^nbjD0>=7I$4#A#`PW{B)$hN6m)`w~tiNRWw{P4|O4p32T92UL3l$EpoY;RQTv<3AMAX%Q zsG^nrjuprZdmse@#g+{Fq9o^f@GPR1K`agT-Y^rdEZYIANrj)Co`)i93Mw02Ju4h1 z%_+s#--|N!sBZRP(W+WJy22)kq~1Db3hrL?7|hlos9g0nLXLKr($dKK_am(2I)*_g zGq{4Q6A#~gw>Zw&!a|s}dbD|a7FFfIpgpavh)9zbPK`pg8a)?uk4fnh0B|JAe}uwD zdUA{1CY1lGyB~qYV#Po1xmLV*$uAzlsFSCoV$H|1?fZN0WS&=C_)Fg3^3Z+a?<=mj z6=$8*j8&^v;nPn)L)DHQ`0|raaN>*^QpL_6OT=WKTB1Xt_)NMY<`(o(`9 z49ZaA#mDc#g6q5LaUjsNT_`_`!IDbWKSQ$qVYdE*u=b;uaPOa9LRN|j=afrJg2^et zTpGNd=zp_YnuwIkWFO-vB1aVfen{nyNon#E+ctg_hdi`e`6Ash&Z#+KaR(wfx|5qcbSAAV(_?_G{1#b+UFD!1fvIUr&Atgo(|E(Rm0hghZ)g&EQm6> zPW+E0hpYU_lWEatLMzTF$I>UhAzDiJb__ib(SY>6NfwJ4`*v)?XKy}_g}2;?A!8?^ z{>_)6*BLSG+?(KZR%+=%t#E~G$y$q8n_W|>*N9tX~4;MR-Tb_=T3=2Bj9eD7%nfUvw%Y+%4 zQY^@t){TP_3!J~h?2JGV>#caj$|2&L){=5Xkv-Ox%(#-&qZzZReb90a;Pgfj51#P{A zFCLrnqXWSAp!{Z;MD0ftEgVim^HlUg^$}Bk7G+uy_EmlYcUwIg?A?0aSXaZ!f9P)` zUojl~FAH(>Q4vvd+`dY!7F#@LKT)DiJN_$4P=4a!SiI<7+cpDA{O_X z|Exh%yNB3$L?jJy&JStE7 zaB8qdRIiFw;3p)?lLySkF(UJ5yOb#E1jI{>Cx{{?7plAyM2)&&M?C_x@m{9Z!`HeM zbLTEZbNF!g~T37&!B^_34 z7Rrtvf&RtCU5D&!myB?VC@AA24^5AYF1;9XQySE!9EAKnxLO)ujK@lm@*`sqnyS~} z!WnbP6(CTt0-GB=7}l>1X1eE2?}4j0%m93ZNC{!VJ^ENgacoBd9Q9RzgGt;KRViT& zhZTQ`L}eV1Lq2Lq^poTcGzvooROTX?*S0~7WsSx{yH2?}b0E|iWe9cJiTN4eb+usU zrcY5@-+{D2r^ByHg)v`^<*z-1yrL3lli*}yLs#KY+xo37IIXqaUnHu?5!H+)U9zK0 z|C5KGA~8CUtNIucz|7tV|E}F=sI5c8KAYG(8yW<_xnlt?3Rzg{l%rH2&0>PDtqGe~ zuEOAnlOWd`5%GSv)sARqGfp}6GlPPvtE=P`iA@5=a|-0qXe1aWqZ0PZqy-6ioRmoKiyYhjU!Mhl zn3M)XqH(BDQFV$HDzy>{eWpyI&wyNGq|GEY*Y4$TSFVJvU_2szX^<)mQgoTdXhpN% z2~$oXGl({lvajsfy_p+4?C7rYvW+j%%C}z&Oq?}4R@;h4Tptbq6-pnQ zvv4+`YSSK6ZmdAn=FI{C!Y--ks6nMhmcf9cY*IdR7Shs&)7}J=QYZD#X6cuKU7xSV zl9d(k(Xq7VY#g!hrHb&}Nf_4BQbKMGWGZf<5|@CeZWIkBq!lvb3U>%)?wW+`ssY-& z!f_r!R8&do#Uh&}<)1s|WNdG7V?<6SM(1Y1*6zZr;|45w?yJpnXv4xW!;wY|$w5pY zdhk%rW1J55l)elA?ANbH65ZDqPnAW9&P6%wmG)tGi(mqJQha6t!s_cR^jc6%4#gIc zpdzc!gD4W~CL9iUkdmGaRfiSMrtXP>PG0BNcBQPYFlYE$UVQf5jByj6#_1Pd1zBf< z=*)w@GV`ZU3d<~0OXuvg??>h8&#iaXlUkbCozEY()GGIdzxEcVGuZX=s;u`jc849`!qe9=k&-*lJ#L*a5&Oe z0f3dhOZhG3XK>y=+_nmMYgb3Lxnl$f#3kbEfRg+^L&+3EZZ6}L5TVHwO&;yuCrBI& z4k6p(4}O06EqKO~;h#9`0u4H=k17br%oh6Q7`2xLP`7gzwtv1_>|0~aO0DT;%o$mZ z?2=*u09_LCBS;_@j8WYK@)*Mjze$JxUSbTO>+z2uGIE3D=~B+ll4tJ4UBCD}?43c( zC^uu?(BoiD(ZjY=u*8;Dj~4_0OL!v?nDh7b>v7(&VJOYWfWzZ~KNNzNK$bzk-%E|a zV|xbRz!IECU1HamX}{pH>BpT)ls^qR+9KW-c=qp>DUG>Mreq=#^mN?-w)QfWUJ8v( zsB;pw(~VU=P^Q6aW8H3L`7zC`n%x1%_5#sbJ=T0HvhSJ0F5wqR@yrW6lAST2X1u8UGl7GB}eYGeqxLS9(3s<~E^>ULis z_`u?g8*$cYUk?J_`>GI?H3umBw%6J4j-B9r)nI{05C(e+Ls3ADI z&9tQKl{Onv$r^%VA)F2z72%fZIw|2vC0xI-*yOx)8P-dR&qDWO>2ptF-HN4n?Y&RL zvSKOW!L0HDIH7+b+#InP43O7zP-?@~eVFwveP`P?0RYp=2BOH4E)s+w+QRm_y|n*w_=3y=_#x-{52Ee8 z-Azp;)$Q$=TV5_eV3WOx$JA6BPY>WHB7F@2E=3Gsbr~fGyci*>#!Af~5D9p`y}VXb zD#*pbol%(_GM*nuc%6@>CJ;%S){Upqb1hEx4wNw@2!|D~1&DrHtytXJ>cbt^-+>R8 zeu%pt`8}+Kqv?DIsJJfR4?HX6A*IhMD8T90UW4avzZ2+t)p`}d|zC^Q>I zgd$xC4m{(zsh>tR;L)DMNHm(!u~Ww3b*<#O=nYndhK-?K&)9 z{5+~p9*+@LGyF0IG_oU|ljtgA96P^|bV1}Yy!^%|7%*w7=noin)DwV)dfu=|Z=~ly zkQt`1!@xp_zWt@NDUGowXg<)v*qGXFDu9EmE{P zsPha^D`m*gtFf2 zT7Es*gC%50?r(OxxuiS?2Jwk-A=#e<3+OuxAd0S#UX{5}Eb|@e&2dRoex*u_PP+LD zg9R#+RRBTUm-W`~L26nW6lntx_It#7vg})|HCz8=Ms1LbGGS!~Ep95x#tm$IZoTbZ zy!XZu+;s0l7(1EM5z-N9>%G3f_aZ?*qQrpakSkETX(Qf#`yGrJaTB@9L}9t1iQ>Ea z{6hH&;g&6W5sj@K_~lL4AWGLuDF5LK`{c@)Z_dFy&fSOoQA<`ovA^eki$M3#D%(hrC0G5b|^G}NFI6U3qRRhrqDmOjl z2C_?7xpoIuPB{}-TzwHPzxomskD4sK(`6Is!r%8ASfsNRiuC@t?w?QN(Tgv^Bai$W z*I$1T)R`8@IRBk5>|uRnOz}Cko+)l5D3qUre{Oy8aVV{&1ZK73Em0Xal1f?$UX~!#_R{x}H{?`=$bv?KKGA;;3Cn;7 zG%KdB_Jw-@#Uy%?ZmoWHaz#Q7sR&k@{4fMRTpB=$WtNb{&}7{Qh+0G zYMCq?=fLaSyoFo$Lu<{(t*^dWJKGLW!&l zwASpyt|kY*UiJkl_csgW=eB2&HpzNNW!*!CBl%<^+K{Y#s0FoqH)7M;&uPCCH9NOr z^JW`dE#z-%ewUEEgVTjldmB<@B9o`Nf0zomb*#bx-Jem~k5$zc)(ZdCfz*gt(gjH$8lp#gPH>RSY-4ohY z=fE@ncmeOc^g2!*ccOCs&#%I`X_Fz>r--@&VPYqtSRjrfsjQqlIcO%y#KhT)bj=i` zpe<0RS#jOVuVBSr9>oibU&4DU*I@qHQ&Cn{c);b3NO2EjtYcqbvEYk!TX6L)Qh$rv z&Yy+f|MkyE9Way}^2)Aq5i(*}axGWVm6+L=E8oZJ4_BaS%jej*u@b&mDP^@G9hv?5 zqkQC0toraJOgMQm)L8@J?jT=DZh#IkDsIddT%u;@I=uhJn|Sf5|DdA24W(q0ub)tY zlesq^w;yx4xB^f2Z%(=%+>=qS)?o{Qydw~SMTh4h-A_&jf4U>6yy~MG8?udN49(1h z&Fz(dM<%#KG#H5vP{?I_yN?&?y6*B=H>hMQf2>>mL{aLEN0$V2N9{#lS1NIT*o8a1 zRcpmF5l=gm#-0^k5|y9#N^J@p+gD-cg%{$uG1GC!RcDH~oqqNLG&R^!K4KECzEcmg zMT#iC`>u!a*MB^T>WVjDG50cq-V1F$SZ@;=AKU}m)9m)>oAn+{Dl9;Q*MY_kFEU+H zsO`EBSBY)j&n`p$z%oplbOO@K2Sa0)&L`}4(U&FaKB6>6PAW~tv=JB$EQT2Kipo2W|y$;3n0}PJSVTD@H|^(%{&HzO*G(h1`R~+ z;K3L$VFJp^2S8!U6IMxpVc3Z%FIydM&|N&)#_uB_vBON3^Za}7MRRQ}zIyjv0=n(k zwqZAdpGs-$OvzJ72|8Pv@b2~<=x{nkX5GY*#iaa;g!02->xzV8! zD?cA*a|TLBpCk5Rx&%$l&BBuFNvZmotuPo;QC+zeIe8hFJpW>Gf;yuG+tz%7PnRvl z*PpJyn_o!1^$H0GuN+e*0ANH;8eM)RnmtF>1cWR3v`L>?r;h2Yn+S%MvQJ9lBv*I(ny z*WW-|K>_*?8$zCrMeK)>m6Ds|dGAiCJ8&p)==g$oyghB6Se|?)De8<^aZGn>Q`e?5 zmt)n_kK%!M-bOyL5YDmRUsZ+iQ>8TBNPCk|etG;y6YXE}k3R_IpD<}Gg3&ah`!3Yf zY^S|PDzQc4Aq6a;-%^|_71nID?Z!FtCld8<$0`E7rSGgHm*GR$Vv9TD@__8Z5|pS7 zuy=Ze^0Tn=D~=$bDqW`&<+>RJ=&Me}7(t2kfb7MQ5N+1kxypu_zQ87*Zsz9VP$GoMJ&BW>J)MKHq%331^Kg!Ny9- zEhx6CaAv>MXjyuutSmhPc_uTKY^%V>du*s7H|F$#c_=bx$7=J%Z^*YS)6u!qksGB5 zDG`o(zv|H&ko&22->wIYipctqT=DlcwY8;tTN{WWD0m7fJ4=g$&<%n z=(v-`Rr#w#IPn!5#s>9+@BgEgM*7>rSBT_#?CaWVGqcc6Ua zND)4(Aq$#CZo^a0tVGGMhcWfMi=i`_M3`}7CbRn>d3e3uO+=_yZCwsuaZ$0eth zs!^7n-V+3lKxD~9ZhQX8ec{ST@o#8y2XBHqSZX$^;0U_A!cLWuB)<34HU2`BeI>2E zOQZ{48UM4R*^ai#b;#*ofQj=j!n_NwLb^2%tqcflEyQ}e?+^!R6%QDInyNjbMx2mX zP>jixilxuq1C2t5i++6{*kx?4w?VDLy2P(nB&{-ek_zA?jfcIC5PltXg&u5YV41^Hs1k(mRzF;iqliq(@Oj9>G~Cs4;6Wexf4ZkJ2c2jF>t>lXeJCq2E0 zu9XhW%^d_3t)dS?W_k%4RVrwhbr1j~>qICLftJ`pyyIqTLlv^MGR&DcjC^}J3e$2( z;kD$K```-s;ES=AE%pXJR23=zO#}iZwBK3h-i%pv569)@2@r@J!9-y9B~K8M27bVs z9w!jsPEddIg@YW`$IW9!`*=k-DN+$XZRx8FphQ6fCg66$WNg4$r1-NJTp~cA(Pl?| zZOUJA<0?hl{WgJ9J~rv8!LZxG`UXLw<`X@WQk52ekcA1gMg(_G1To5$theYr`+MdpyuXg z`2Ee~)_l|TL7v>>g@w$lEV@qp$#uzqg)C`SzbrBP-oJPNUAui)_r(_|DY5qWQVy9l z5TjrwuwgIx(&+{QfqW>^%_t(I+)qlcW-hGkeYmiDWg*tU48ZGhqP4LG1;i`{lM?&A zPJC6nT_`_`IVB6jvvbIAZ-GsuDNEFwq>?~jP@TK;qouod=e5xHG7xb3Zu@_;R()vf z;9xFpLp-DF?a5#h{b^HxJ_i6QxtLYT>2xV!$ui@v2cAIbkmF&u)u3u`bysdce4W*s zz#DgPo_X47V!LP2mjBc}`XiUV3IL)OpV#e!qool=WkcZiFg*^DvS%QL zEdTPwPhi#C&tbvOeukMB|3ZAo(b580)CF^<6|?8h#*dQoF1Q=UW86ZP5fOq(^leE=ZSC^q5LF?5K|eFPb#{LbA$_}aoFrp^Q@KC^&$HXBznDKVK+#6+pVtp~SGWx~x@D?TL>qMz(d zh(*xRNvb#!ihO=+hE;&TCbH^TIVMb)d^S8p>06uYiJ?g*{>yLnz>;EwCDjZ^ELP!y zGta{CfrFH9zyI0a_SyE0Fd9SGxq}fHR9)XwNmieiG>XUtIHSeA?}>`KS`?TqC^V;` z(2|B+0)z6bEV1oqYMQT5$ZqLzG5`N!^hYdxZWSPYI;ND+yVcdMX%(Npqa8AO4E%m2 z(z5cgZ^Ifq^E)wNi$DK!DXit?h;V&AvQ(*}aZ3bImxEZqmH2wi7x=?LH@a?Dgorcz5|9+2@-W01mPKq94-=62WIJ1=}$dxLo{GN;S z#AsG3x!|wpgQ$&$0_|~V2=PFFUy&`9K95gb_!K_0#2#m8GZlpftAeK{TEhkvR0h?T zi(kQK&-{C4{Cx727&yMDNId@1slo<@3MRUiX|ZaDUWN2^{phT%V$DVRre=RTnza5cd2}DFJfkBr_mYRTJ(^^zkZpWvee1bW%rl7o3YQ?3|Dsk$m zrz$O3S;{A$efHXh#zwPQ8(t7dsMr$?hDCrxidxPL;kjTWa(QK|WA2_7$EobS^iMZp zWL6$@IyDzD&81U3iQf0cfwwCbS*?&s?cMNG5AiuXQAYdPENA!qT4pd{+PaV4#>Kz* zBPo9lo`3W=*t2mXrkryQ7X181@uo=YE)Et*IDi~cE*L`FZU1)Y!E6PVt;0ZtM*svN3M>WjpX6F7V9ytP?wN7leRbwInK}M$&E4FP! z1}Ry3mQ{d&JJwTANj|hrug6|HDZgET+*klae0q(Qzm)#EfPVJJr2HS!b6Mnig-PXo zJ9gmuyRJuG(O^7q^Y!SAsxe?_F^WpZAj~xuh{mXOI&7)<6x9_q$RmowwfJDxz(*9n zWmhXa(Ey%mdlp;w)S!QMw%Ay{_-w`BAO%W^482e&3S}>~tLdI?AY;CP&iY~clLL7e z1ZLncgxjP=BYn*99VLlXIO;>vbJFRlRFnGV#~*$Me|h!^%)Ibgr~(f7n=5f}=`L%{ zZKT|-4baOZtLBNSMD>RrUl+v`8cd55pZjdzK?g_I3zG_d9N#JE!wkZ&vw81Bt99Zj z6EOGMJH=}Z0KSe!6cM{IlY7MS+;6WGA(YI4A0ZYnuEl}JckRIV@#9fsHlwlA3zb?8 z6#+oa-o0WuFgK|NLtObUmwT|Zx(+YWb3=*-pr1J%`(s&vgGWrniBsp}(;{#R|+i?X)fsC>mUj z>g_ui1cVjmWVJvbO2<6pIOPHHL~J{P(nbH1qn-_zERmk1&$a+pQM59WPkR^)oM0hSB6oOZ>Xfh>k41_`h`E16W zJ{4n6nZ9%6NmF?u!&F~Woqx*NbBT^i=i1V+A8$VW5Wd=0jeg|Q^PASggUgIEtn=%! za?KjdAP~qQHqhyEVK-Uv{f%|d6Bzho(USa&I!Re`>EzEtCq8v}&`@s1&7&q`-Meqo z(b5T!>=-e^40BF@5hZx$`3tda>pj@HWh?Rva_Qc1UqQJD8y2esd{09%x+JkGOtCqI zAYGFjg$eSI1M9w82g8)pk&QAwD>9hFa)3vZSG(vB+iVb!p-GR%lSQ zuM&+82lS*-%7paSVC>q@B2{+;!uY`6f#3b%2@EFySpC*p2zooj>v?&{Aw4}0HrsX# zKjmx`m%W6lJ(XgOKaZ?DR2CIYKCDp-Y|SlL|J52y zB@oEZFA-a9ZKYrVi3C-w`t`9%>tkJ%k-&Ff2>&rer^Uifmr~Sy{_8`3!pYNVkPJDV zlLWr|L0yfa+|`sRMfm*7>QVxL9@eHenNk#QGyDC!Osx1mU-;>eOPQfEA~bg5X*hAp zj7r{Hva_T0wN<&aiFH1*{GqQtm12L^uKWO1ySE9&XEAGuVox9q z%|xH|L^GP5POSWLHPXo^H%TS2dWf5}Yao4wKlhhbKL!@&3FT+8Sk&0l(kxtuP{>cp zC~f`wm*KQCPsdY_EJ7;O zVjYC0oO2%DTPc>qxf#jN6W=nvzcyT$mmS@@!KUOmdy83$84SxszAaB(bM5M!XjI0D z?6E#V=#a@G77abkV!pgTbH{gUb=HZp+77G?oKClc1 zqX|lK0cvY@V)W?A_~MJDXld&ZiXQ02Mc2~hGx`*;)zu0BNMHds(W&;hFY!eyia{+o<38H{5y6s<@QbOSQr$B5nDIA--I7kKTgi4}4-w=$qz4HTe&OHl% z{M7@Y`Ud=7RxQ2{5iTfGoTI@D1zNeSY zUizKcg#+=$(igCMPmR);Qw+IEEjC%x77Q9a0q4gi1~;sD5gJ0Qy@pIt05gR)dq;&&icA2 z6@45@V~YZnv8`n9&K;Qe?H@bnIN-*gGKCbKrnR1kTkgEp`N(}wnnOzCJn>`*lOR#g zQeVT4(u_PVd&Ny8e4_kMSfiprD;3J)6Gox9xL8bPZr}JhcGan%jui-rXpH#u-G5{9*;gYoM_PTDF#RF{05z4{1OTuM zCZ_h;$~DNzE5xjM^YFntOHk)`pdWfhUvUb)Dy)VjtRv8$d<1*lV` z+7DbA$5#6#_Ux<@5a`ufUlZS_k`R%*2=OCdP`W@};W075^mMeLeDDyQJWVQkX*8Kp zwQDmgf8w`3M%G?9(X9AfqJUF&S@BOgb55{-*`RRc&h0|+fvy$G11K3={|&3&#;R4j zVYFsIEf2#VaYLgsA2e7G zh)X>0K0wDBblga2={27#gjMhUN3;{q8!!MJ?c`MClo8le;CEM^hzo9f45Lq)h||x% z1gk%I0dKwhAqEe(Au}sa06}5>ZY*E24CgLffHTisfcKZa3|o@}dFWY?HKZW664Jw^ z@?zKKuQB<|xdH^*wpUz$1OPa2(dtN>pZ-r0r7s5pCCjp`EL_J7z;D|GP2TYY0EZL5 z15p`AZs|{2t-`BMK7!AdzK&X39RWZsygnGp1{DVzT)kflMN;lSG(tWJDGtZYj~g#l z>Tz{S(Rg34S&4uz41=YcR>c*+?6@-D<+sdojyq+3lofyfo}CKbAl0SsRWw>1(Od-_ z&GmTa-w(k}j3cYSO5oEBtuals&TfbmKGCWYzLS)lm7n(!@}anjkLdWrWxixeVe!=( zEkg7=9G#u8q@;-F!qKQueijBaGojThulxn8zNkXK{CvRxRCP zSBlAJT_o6mMx(^us%-)QSjL=i8rm9{;H{Tl!Td`XV)i+gV#S9`U?aA|Oh6M>3FT*z z$Ex{swmZefNnUjNCn|addiD^Wzc^U1(EsGyMcLQEGZ^Y>cDF{OjfVHtgcQp@UXD3e zoP>^`5*BrG8ULOpqRl5mX7(U>Ivu$7!dY1V{wH0pS#nK~=awoP{6VEmAr1Uca`%{| zDzO|m#Y!?@=n$AQGsMid$(#mz?LIUU1JLSBa`H0Z?(7g(wzRA$bivj0nopiJ-<@I2 zgVWhy-n(ZjPaFz9El)6MJeU<4DWRRa2{~F?L9Pkbz5j1~PS!t<&Nt-RgLG3rG5Ocp z)`m#z{QO?8009LlaXmdBB<1I2zD#;wJNfUa(FlfxyfDS)EbMYGwx%0U)$B!jsvJQ& z4Mix3W@QjgVkrd~0|;DvSp3)DLPrX!F{Hxd@k6iDi=ZBPAOvOMXvjJo`1R|P4!is_)cf#ueQgc*@(zQs<$l}X?Jfuj!%GeF=dB0=x7r}tE|CWHEgwMxo`5mVA7(;RBp8We!qE87{k-EYMpY z!s}^3SeGMe=*gmow-m|>>h*Y#o|%b}!$;F#jkTOssqxL%ACY17L#5LQJhg!pzr}9LqD>!0&w>`Bz-Ek^hsX-IlSSvvNlMKAxGBSm&8wFYut*l3Cnq(= zEVOra$3pOgo|=@OT>&SZA1l6^j>&cR_@c4$F9>_YYJ4yjkTcX5z;LY^kCQU*Xm+4H zlPI}A0GrIvMTMTcc_H@NLdY3Bl0eT-=c7S1?3Y?>i^L^5msAV%S=sP3HK3!GbTn2( zwY9Yg8F{7XB!EaYS#ZXgbFgCB61=_Sx#-z*7RshhJ4d!<(>iSWdOcb_P64c`sV3wV zS}B!|fBw$8FTOd^cA| z>Y(Ga(lK`lwYk>ppyW?LZ|oS zuNR^N24s{T*LB`;5a91t$hje>2JM8M&09Ah?DyfaE9aqn!kPHfFBhVvr3s~c9|+*u zV<2$O+)J?LixoT%5S@D3IkI8LkAuaOiK?n^pw;S;lT!qJnpr5n*W(hY-<-!l0KhT+ z0swRehA;Gxc(c%N6PfJT8TUV=C?k=+9Z(_f8EX46yRuwCd-vv*m@?;9MB18rG#6my zS7xwVZN}qwU4!4;_YYjSUXFK{A7Gm(g zjePl^(JBI`}ON5 z_N=&_ol-mVJv(>el_&oVE1j=3HwE^(PI#1Q2zojs<>xRtVlOQW9=x;{cL(Sg{D|ZB zj*kS<ld0s{xZw zJxjKA^ZMw=E8dD0mzHDLaVN^gkDnoW4ETI*c-<1K;*|=HC}akJgviM6ON8qnVj%kV z`2V3rDVO(kC#Ywc=3q$vW_pHf_R`ls!;~2pk_Alg(Zc~m%!S}ptp~1|iQhiE9OutC z5s$z49v=L^Td;Cv1^VYJ;nC%ZzvZiU-Qo@qeF{a ziDtS!>E1SEtJ+aGrjV50ND3K1h>q9k3u8m|J~TM}7;OZ8`RB(l?)39vBTJr{TMkpn zaQHTFgQKAurnDSH!je)m;4zCBI&8cw(@L(*hA+_6xDUfdo-D$KLmZWw&`%*m;A*j$ zmFZdesH?5z$iU^Q@0sGqRyGe?`nt9psT@nI076vC$ZMgHV)lpc#@e~*$anQRg!02u zEGlXIYQY(J?2XTG&gfFS_}&_Mk5Ptn4!Ve2L*Wey(nJ6LhU;hysXj@DLD za=c{VFt~^bsE7*lWZ=ftpTbBso_k*oKWP#soN+!JjrB;#vXmh zqlH|Eb!)y9Rdsp!QLR?d<+qdnZ%nmdTg4i& zu`FA*31shndLAa9J`X#|eOUY1dnha}NBPhbghlqarJRF^ z=mgyL+c>aldFbG`?K?>*6oJwB|1S$rMvpN_Qz@fw#vd~XOgr~-5!;W9LGU^E;=<`O z@z#dDm^p4R9(!>K`QSGE=IX1&`_udB;8t27j~qOHfGvF_X(fOa-H?)k2@|Eb_#jy^ zw*Gszu0_NC8e#pJb)0$O6(Y~x@AV`CK#$SY+0h}aJ1ginTek^iEhx-KeO&{6PY}8N z^N^jL9nHzh18;vL=JLk#Z~Xz4b$dI;&zgc$=G}lcdv`4bc2D%A z=;z;bw_qD$-@i_(oz1|2f(R@~H4lCwmOt${n zdBxbW@pIHITZ}f>`RNwm~pA3F~q7ochA=H|m7FZ~c#kmlr z00G(T_uqUQ)8me`>(4+UQ^;fItP~co zzOEjHMTJN)NxnZ@er5t}{U=X71*vIiQ6DKeEC0K1zA5`FF&8Z%jGEW#={#D=UEn1? z)j^tA@)RHcLQ!^{l-ZExLCKKuuw?be2a6wsE2=@G+Y6)2j~saiktgZ*v`5XzmrE8m zp1VI{+z7Gvx}Du$pw);zfSyUXWX4t>3#D^^n7&Lek zUBf}5Xo$}*u>mK2zuA(BiBspGrfNI(?%X80Jq&eQ6M5mt?w;TpEVX!5D<4&4|anonv!&jfg+SNOu%^g6%(J8q@5V`UufewU%ONL4i6}X27)XT)&iW3lY5N?x#Z?$s zIt%Me8ATe0ObF* z0XuRH2nCN)A?P1Kl*j0-#&Ux}1-CnhCC}W0MR)&MDF5BpFTjPjJt*F=qhc+ddGHSC z3^FKE(&1OcssFc+m^cGqMP>jPG+%v?f9~c}TU$$XzW{ke^KJWWXeYo(OOv|d=Hz6dlm2E`gSUHrJ{#3dVPp_JcD1*5 zH3Q|6T;XoNnC-RL2Z9b#+-}##V8}(2+l_!C6WH5G01$*Xy#&7YIt)$=;FJZo;<$-( zFn;2R*u44!M1xy;oU=B?jFrpYz{pe2LoANrfZxRy+?9 zPe%H}Ou!Tjp<(BKG}!lJ)QFQXpkxSwp#ZT7DW-u}3X}>Zh7KPOYi=QGDz~Gdp_Tw( zC{j~J=wAbwpl>XtihtNXShL!({yBCq=+#%Y8 zJ$28`u-ih&D^|j-IJDn?Fkv5;*X+v%l}8x}SmM^7H=g)A<(zRiW!CvZ`IChyKC=l{ z{@puw%XB&&jvG1z8uI1$lC@;v^?y#f$}V>3rP|C+zk*xRE9Nd7r)j{xlUrc007h`A)z1 z7NPt;Ujv$KRcNZKI^f*Rc}3V!U4fs?I~#XB^Z-VTpLPHUsAF9{p8eZ>Vr3-VTG)Hr zB)QbcMNRCbFq(ljrwd=N`U3S0`!ICy7^J6V!R77{%p*kZL8r?}N^ilaF;mdk+KBr4 zT4Exp%mm8)?d{z7pb`I*??sfy8h|FaoR87=H&*^@uQ*RAf6a~xSc}T=$ zv?}0J<{%>19uWXA1K>4v_WcJ88cdYESXlqKu=RIxE{Q)UR~%ylxQ~f4e2lp>{y}6Ln{DpeTp_H#hm`8dpWTch!$(H$6`qr48llmf{Q-0Yug%pxpFx+eD;xe-R{>3P%)XZ5v13{ zQ5j4|!~bjVOTgnOkF?*Odo-h&(KQ;KmMvLEzAx|v7~3&+I2;0OvLTy)b1ZD~vn1K% z-z7h=Jo^L^lKe?XmXMnq8*&)zm_Q6R7(E(e*jx(#=Vf+TM3Eo-ea%RThF1V!bcq{s-% zbezo~hCh^;Bs%}-!u9{$6vQAKPyjbN2L`eC_1);`Xu-k-%iwnL90NmO%blMkZffFm z!A<(t9@c2fFcd*n;*S?!*%%L*M37*BS3y~H;OB+ zz;_<_49*?KP&Z- zBS+wJd$4Hj-_z>>!8$nOud}U59P7)^rw2YjZcZ&;f8lAIJhTrjr~APD(uN=|AkvHb z`qZ)X5Gi1j_R5Xd%!fP22e-o}=2hgl!v5#}Kt6a79+wMpC87oC?mbLI(4%Sk{P4i}ow9>MX0 zd%;8dxBt_ZP(rT3fj4)fp}wB1Yc5KsOcANUEFAdD&gL0&GjZ(LF}(fu+XNP^DCQxp zqCyc}XTa$0>>}&eK@WeYU;qx62ZyTn!e&=3erT|dSja44)$8jU2wY-ty1e9%t7=`f z%qJ{4OPH*1%-=1B=-B;WpSn-QF4T0XH!iQB3@*~1NJ>>rR0E7)EF@<2VOh3%J#q`n zaIW@9Qocd1uLQsN&i!J0?ur}8MMy5oHk-$;n-M7{T7?(NF0{A%@$!q$VbPN1sGL3* zAp&*=clEo4keBPj)XGXUo<7E-AGhi(U{Wq#Ozx}+MxhLLeQV?Euk63|x|`o3%dd8z z`OSYlNDqDtnFIh4gB!+Jf6@@vScLJ|L@;dJDD4e$zeB{T#yJcfFL&mVRwZ7 zojQ65H7Dw@^qLjOaodS?s6oYmzaKZ;eZOEE&p*EhW^NW*It@Mjy(lAh;i^^FixG&# zyauNJ`*yvE*S0-{8}GOqfq}lE&nB%jn5?iRO!>>{(~2~cgh9ClBH3 zb?flxz5jyOb{ux_IgXBJnJxl*R8>r zI*;O{T)ddN$JkWoy&^W7Hf9_|hr?ldZs#)_#q6Jd{OuF;fb+x?c0|qD7p43xgMmS^ zyoF?GX9*?{Rf5Q{cyaK+CY)}Nv2xvNELpJ{r%#>2`PLTX=H;S_tn$k*sja#T3VkA) z&C1UOKDXU|t3a&HoBpWu_4adoAc=DEq#;c2SvhCSn1P#azDZ%%pr5$==BGDHS=l*Q ze)aM&yA%W*lCEn};k!j357)7nHe@JNW3Z=71SXv}D?DqTE(7Liiy7rxD{k~HZCT#A^oe3(!Y z2oCkkbQnTgYHE((T>Zd*3gu_F*>B3bXrD$;{Fy<@pG7phySoccPcB*iHnK>siDTB@ z`f;&7-_k7B^XAVJ0k<>Slv!uVPiFw&X|mSeaJ_Q={CR2rzG{VY0P?)KA_bU-81>R! znUs+I^|rP)?AWn`K|pe3I+O#|2P6grUtwWXR1A{xr@7=r?bD&anD}=d$zY$HSqX1P zW2)jiiJ=gqAod`M7{}3r2Qh!eb@>UJ?ysEcpPH2mqmzlUQ7_u#g> zzK(&u&b0S19P-0zQ-7ll@?%$~J`fOrQw+vC^u zQD71PE=5cMTNx&l47r#5#Q)MhQ2z@pUM6OaiQ3#3ZT&ei&x$`~YB}`8pA1Vz-1;xS zb{1LV>u|d66jA?vqPotwKmU=x|A+|Wb#-Hmv;fF%LMRl1&0#~?v@+xp z7>Q0q1{;EdgJ>cqP*wixRs;t7 zN4$@jo_ttkBL+=jIKuXE#Q}6-5Ri#MWC!dp%Lcst_FKXY=;`cEJnU9X$|Z>@`re)x zXqd#38T4$uh_9mQIOA=+VfgqCHYjW^qnNw;;o}MW6%kwa~eyzUZLQEkrVm88VMmQ7! zH!!q29H^+A23e8G$0zoZlMBZ*Hz`{OF$M!MoPIod-)B*EG=NmOM&F2;-C~hqfr~nk7`wM;h|IrORGZ1xV#Cqx8;NpuV*1SK zn73jbJ^amNtqTOr4-5w2r=`2ATWW4<7SEo;snXw2FocDR7bq^5TMC7ehTMiJKMPZI zQc6kBZI2OEPfXJ$ks$$kvD2SqLcVd1^>-!CxA)NYfKUM5^akQCvuu*Z2LYVzPxguC)gt(dO( z3Q8n@KR4~Lkp*l;{o!iy`ts|RBPYKYZB0kv@(fLE5sgIUU?3<`eHj!62ZIJ487P}F z1ukL+3CgcSZIa@rN@_0xw)&*_vi0Gx_A|8HVv6<%25>18MHChl z$G6Q^8=C5m$M=~5=wsfI$WZnar^k|oRTB1^n`4aoVJP#hH14lvu3`Qha?Pl0)J{XJ!q3{V3Q54A#R@?q* z#z!%T(g7_Nq40(zUQ=IB#ikS((2Xnk`Xltdky7@CP7n#JbqM(d`IuH&A-WTBvrTa+ z+S_9C&<)IVtE_3)wr#lglmCG8=X+3EY8992^;$*t-Ic38jI5k|bhmR?po9qQNTOX% zfLMdK^a|vc`p|Nw6?Ox$0GJUSr-|mn83FZ1CyH>9WVmI{X0)K+8rBi^$Fxj0L{r@p zX)-Ku0Wn3!@}s_oMKMY*5des7N4O0^Yx%g(!4{pz;yLYCue;}zULFEu2?ZjkJ9z{P zR^OKRwnR#=i_m>7P?zr5QRQMNzpnV~>lc+4fg5geR$hqQ8YSWRm$XQ{uK33eR^wau z{f7X6^73M=Sg{%h&zynX?!=O1*JEyA02x_c^ma61yb_B>;PB+ZS6U?iV7#K=0KRc% zZJ!sOz=YQpTIc%h3;^OdN7!89w?w#u>JKm}V-}Mgy_nDvGb3zt{Fp%CvkU~0Sg)u7 z7!M0bCkzB!UFgcmKwoD7`*!WX^&j~xxdwK@43M7652N*(^&g8En30QAx-p2D5{uJ* z={mXasD%9dg5pBKT*ASi@YRQoRgmEvid*b`^=16(d*2Z2;`!I&t4}aj=Bc)Aud7c9oNe*HAcs^*9SrA@#4omgBR zl^vX`ug9L9J8|`jRYMmlKw#_~J~Y@b7(kZSf$lRs7>_X2@Fz(lyv7nW$ZYxHpx;je z0G=-XVY;6WU{b~;CYwC589*!=2g|NXI2sn?_@%|9_(b)sy@@T>RbdSFS zbt*ZQiB;_KH=y4zdebY&q-io`S1@L&iEr*lMz<@LZbOzuNQWwQz*V}@pWsT z0T(*k&*POpZ^2VP{Q(YE9~G~E@U{%iyg?e0d+vBOxgat$s<^nj_)S4nJT4??jRM(XO#H$?dM;LbtnI#v0RWs%y~SPXJH>Ur8ZqdrzXZu^A0@$E2AHuU0rANRx!T`?Ll!@e$Om5qAe3f%Z%B z!&vFL=!X@*pr}w#eeM&GsQ4MKA>aPMt{3sgr+$s!J+77t`+PQ`_+@jKV(t3%B6YdB z{%rhsW(t3J^5=MS_imy5i6U5l!-0Bo1*TQDh;-$_!SVN2;LN~+!WnSog9>#Pr(XqnOZ=<;C(H4qaCO z02Eb8L_t)7EPanb;PbpO!~(_!04xjwr^!E_H*bN+1K>g(tKETuDMhF~a#FB>V{h%2 z<}dreFj~o(dWrkwS|mQ<`tb%en{VVe0Ve{n#pkulX-Gr&rr^7=^XUfb1w=+L~{yg#%J|{QNi<;x_VDs;P50^WA z%*3RD;^~@WC@8o%7QkiG9!~*EDl5@`?i?c45KMl@u;bLhJ=OY~kgVjX3ZJ@W7T^w9 z&=Xc!fcD~#=&rAwNR!|GPsqe$0I9!cG%A@b@z$pQ8ZpYBS2w$13FgoPXB)FCz)IHE z+=9l&Mxj957K|0HsB8f;Jv%|Wc;}5>2LETe4F0iww);psp87JdEws`Y2;&jHU8 zFzrcJ38M$h0{EWP)zx7}How6^n7a`c(`@!>~%WxO0>Ug?#5^ z^=8J`!_GI-nr?Ycz=C=L7^|8Kz=*X%mZaT@@1JZSk}MMs0Mf``>dq@G%k$M|A%c5| zLq4Xy(h5Z?A2R^(h(dobKrEn6002wS-vy6%8Vbs;K+mBQIDWhlbw>`Oa^7N5{YMsk z*x1&P^=GA5MvU;Q2}7FVn@#ZgyeRPH3&l?(_4T#2JsW@a==@E;_$eB?)Q`A!rWf~p z{hL^G^X(#kpA~rT>u;j=XkTA1 zPMkc6s|yNnF%lZ+Lry^%@(QNn?8!Pf%@No_R>Ved16UH3UmC+YLg&hinBfYU(Pxe5 zAn*|V2CEWIH5n5~k%JTFc{3SOGe3I;{GDy*@y5<=c=MGPv2*7>4}pLfoG+`W=!y2! zqiX&_eD}#`;%8>XXJG~q^!w4-(HU>fD5bA`r-y|ImTA1QU?8_UBsqa#|Cq zvw&K1J+4~19D#r`YC%w{aBA?Biuv@NpQCey;oyjUEcrI+!+?7FZ)zUEg_NJSIWNE! zG9iyZpxqHK!g_+1eBDKxbODlO;xT~aA24E1$Ze0vCdFq?PgSlJd=OM!Q3V?@0=*z=w6^^5eCbdSnK=b0n!XGj2VWrz9f4c2BAjNR zR38S^>D^cYf%bpI>pF@=yJo5?jZ4I2_nOgJ7717KkmVCCKcJS^xO6hnmc*^dwiaIw(% z(h)BMdEWrQH4Em5wLhE`le;m~6cY+$4K`rVIh!5^Be8&ybJ}^L%H`Lt64`IuuiwP; z(hv&>^me1LY!;?WE5y;m&1gBjM;yEuJhdHy=zIzb4DiD>1rJUS5uQSE&p@q(N&|+@JvgPf(%@TWRiA zl;KbTprgGFf721AH!?2vZ^D|%WA&M)J!Z#;yb{pVe{cFie~FvDU>Y4{oJ z38E*cvd)&XXO!w)J7U|m{1ONEoY@Jra&3EvJl1ey?L){Kg2V5KHw~4v#2x-MM@k32 zkn-yiF~*R?DZ-Xe;;`WF3Hql-D>x)p{EpCrETKwoDw@=9jl!?&!%lYjU#(enrJnJ+(# zbM>dtc={yHoH>c6`Z_e$of7MYQ;qTQM@dq)bhO9*gEs3f^c`6FQ)IoqQ9g6ti0|W> ziMVZ7re^h->N`A{aJ#dx?b$zJ>$A^rn{n|PyDQP?_=bSEU`jMLrG-DoZX0`dAYC}U z+LKp=vYE@#dhU4y+#y&)R+yr6J*J`S87U5sPSOE^=p#U2q7MsdvY0UFHZl^MF)2dc zcL0zYud+etV|pzM?(te!Invx83YWa z#fZIg90o5L?Nv8(?yUfU@`YXt2NY&<9C2k1!%GjV%-hutI;-)M~8 zG1l*pCNTbmp3WXjn=utrr&W#kzLutzc)*g&g*{nWMB5$0`m@});TAMCpA&9CZhpQ9 z5Xxiln?05Bx)I{-*c%Zn?MgwN5Fw1~E@WEYvM>A3Gbw*8UJ z{?Pn(Jd7lSKtLke4_Sfa&P3$(S7FZf!ZmNH0037`A?9DX1lyk8it6eUq-ZAC$m05@ zCMO(4`dNYGr^j;bt_&yAl*?6U3p_a3K#xZcm;vbX4zRMa|L<@(G0@YC zg^RDm`VAjKb8|DcJ@+SU+4y_<+I`6NdWSV4O%zuC0YWwI9k_DUT1+JXUi5HCEfXIA z$gx~He>pufYT7G3JtOm41Fm-kJN6swj*53)-3(q97>UNZT_`o$w6`l#j2<~&h$D+p z09ZKhKLq8)XE11{2X)p0g#1DH%9p}dvJH`-46{v(UB^sGuCFlz2kHNp^!cgwWg)A4W$Mf+(rpbvO9Lod5CBn!sf|Egy*CC{S&~)J_D3h!CO3)X!#->etjKabplHS2E@!-_pU?`{qaHx0FWvXJd9L~BDU%=FO# zdl=Tfq4@*!IDi!w2KKSI2b>#F5U{~-iQf;-tC$1;T)wg`W^rtTRC$e+$aQ<9d>iKWLDDn@V{5w*vlq48A zDT;B&^P9Ei9;E!fGyuT43ap&W032p*Qckk^S#~uuQI?Zchij5$?K?3D%$hwHtJbZ< zrYE0F0szh-C@3rz?!~*U{E5O0Ko@2JF@H>C@5MA0pvMEoDkFgb=LTd%O`?Zjw>`)# zfDT1=?Oa6ST7UeS`h>zd>0AfnAiIx)@ z=kI)O<7#~zqp&0g#l;n(cqfr(uysCnwgFA;Eu#FFDL*eZvi>HU8KD3JSAtqd91772 zW1xr$QLARo5=}-T9P==!pU1&J&NSqqKcikK^eziejqY&zU^Q`7ntERbGlFmq@Gxi; zF1i%P$B~+Yj#p#?mBImw0015#utp8vh)Kx+aJj_1AZ$HZ}a9`Xy4uin(qm{k7D zq5{C!tv0iU)LsMw{(--W<=2H%tTUV*c=B@4ey&Bm4pM#w0ZYgPo}w@{8}Qu_cgQRN zKnx2;jXxrHW4iuYXXTAzn`jnml6{PZCQS@@*%SO7MGo>vbu1c$5(y8#s)QyS7K<51C4xhT4#DAetHCy{y`qsA1y>KYw6?)lPy|UU zYgS^(Nl2F>%r0VnKMG40qVC8MMESd0IF%xXkkgO6ZU=Z&Fn&BlL_|v5Pgir0D5)M; zl+Nvr8ju|}2>=MwzAbEiBxs3j0t32iysRj|Bmn#k#q0Iq(4Gsso3Wv0LKXT(aaje5 zr&c5#XVfbGI$MX0K9Ir|h-EZk*068iURw5zcuX_7Aq)WT6-kUr@WZRap*~t5A-NtT z9dGHhsR`pbL34bYK;R3sy2l`2USYsV0Qeh9XJ`8bdl9gNg7HWE``)5bv^6#OlMb-i zL@h6$B^DHE$Ni&xY*KK*W*_>^gKDK>()-OOQ@mS=nOH$h($ literal 0 HcmV?d00001 diff --git a/webui/src/App.vue b/webui/src/App.vue new file mode 100644 index 0000000..a2aa622 --- /dev/null +++ b/webui/src/App.vue @@ -0,0 +1,214 @@ + + + + + diff --git a/webui/src/components/auth/LoginModal.vue b/webui/src/components/auth/LoginModal.vue new file mode 100644 index 0000000..33ffc9c --- /dev/null +++ b/webui/src/components/auth/LoginModal.vue @@ -0,0 +1,82 @@ + + + diff --git a/webui/src/components/dash.vue b/webui/src/components/dash.vue new file mode 100644 index 0000000..f9aa6aa --- /dev/null +++ b/webui/src/components/dash.vue @@ -0,0 +1,237 @@ + + + \ No newline at end of file diff --git a/webui/src/components/settings/adapters.vue b/webui/src/components/settings/adapters.vue new file mode 100644 index 0000000..29c0650 --- /dev/null +++ b/webui/src/components/settings/adapters.vue @@ -0,0 +1,128 @@ + + + diff --git a/webui/src/components/settings/browser.vue b/webui/src/components/settings/browser.vue new file mode 100644 index 0000000..12ef0cd --- /dev/null +++ b/webui/src/components/settings/browser.vue @@ -0,0 +1,171 @@ + + + diff --git a/webui/src/components/settings/server.vue b/webui/src/components/settings/server.vue new file mode 100644 index 0000000..7ffc37e --- /dev/null +++ b/webui/src/components/settings/server.vue @@ -0,0 +1,123 @@ + + + + + \ No newline at end of file diff --git a/webui/src/components/settings/workers.vue b/webui/src/components/settings/workers.vue new file mode 100644 index 0000000..c1a59dd --- /dev/null +++ b/webui/src/components/settings/workers.vue @@ -0,0 +1,490 @@ + + + diff --git a/webui/src/components/tools/cache.vue b/webui/src/components/tools/cache.vue new file mode 100644 index 0000000..7ee6ce5 --- /dev/null +++ b/webui/src/components/tools/cache.vue @@ -0,0 +1,444 @@ + + + diff --git a/webui/src/components/tools/display.vue b/webui/src/components/tools/display.vue new file mode 100644 index 0000000..f03de4d --- /dev/null +++ b/webui/src/components/tools/display.vue @@ -0,0 +1,220 @@ + + + diff --git a/webui/src/main.js b/webui/src/main.js new file mode 100644 index 0000000..836468f --- /dev/null +++ b/webui/src/main.js @@ -0,0 +1,28 @@ +import { createApp } from 'vue' +import { createPinia } from 'pinia' +import Antd from 'ant-design-vue'; +import { createRouter, createWebHistory } from 'vue-router' +import App from './App.vue' +import 'ant-design-vue/dist/reset.css'; + +const routes = [ + { path: '/', component: () => import('@/components/dash.vue') }, + { path: '/settings/server', component: () => import('@/components/settings/server.vue') }, + { path: '/settings/workers', component: () => import('@/components/settings/workers.vue') }, + { path: '/settings/browser', component: () => import('@/components/settings/browser.vue') }, + { path: '/settings/adapters', component: () => import('@/components/settings/adapters.vue') }, + { path: '/tools/display', component: () => import('@/components/tools/display.vue') }, + { path: '/tools/cache', component: () => import('@/components/tools/cache.vue') }, +]; + +const router = createRouter({ + history: createWebHistory(), + routes +}) + +const pinia = createPinia() +const app = createApp(App); +app.use(pinia) +app.use(router) +app.use(Antd) +app.mount('#app') diff --git a/webui/src/stores/settings.js b/webui/src/stores/settings.js new file mode 100644 index 0000000..df34baa --- /dev/null +++ b/webui/src/stores/settings.js @@ -0,0 +1,229 @@ +import { defineStore } from 'pinia'; +import { message, Modal } from 'ant-design-vue'; + +export const useSettingsStore = defineStore('settings', { + state: () => ({ + token: localStorage.getItem('admin_token') || '', + serverConfig: {}, + browserConfig: {}, + workerConfig: [], + poolConfig: { + strategy: 'least_busy', + failover: { + enabled: false, + maxRetries: 3 + } + }, + adapterConfig: {}, + adaptersMeta: [] + }), + + actions: { + setToken(token) { + this.token = token; + if (token) { + localStorage.setItem('admin_token', token); + } else { + localStorage.removeItem('admin_token'); + } + }, + + getHeaders() { + const headers = { 'Content-Type': 'application/json' }; + if (this.token) { + headers['Authorization'] = `Bearer ${this.token}`; + } + return headers; + }, + + async checkAuth() { + try { + const res = await fetch('/admin/status', { + headers: this.getHeaders() + }); + return res.status !== 401; + } catch (e) { + return false; + } + }, + + // 错误处理辅助函数 + async handleResponse(res, successMsg) { + let data = {}; + try { + data = await res.json(); + } catch (e) { + // 忽略JSON解析错误 + } + + if (res.ok) { + if (successMsg) message.success(successMsg); + return { success: true, data }; + } else { + console.error('Request failed:', res.status, data); + Modal.error({ + title: '保存失败', + content: data.message || `请求未成功: ${res.status} ${res.statusText}`, + okText: '好的' + }); + return { success: false, data }; + } + }, + + // --- 服务器配置 --- + async fetchServerConfig() { + try { + const res = await fetch('/admin/config/server', { headers: this.getHeaders() }); + if (res.ok) this.serverConfig = await res.json(); + } catch (e) { + console.error('Fetch server config failed', e); + } + }, + async saveServerConfig(config) { + try { + const res = await fetch('/admin/config/server', { + method: 'POST', + headers: this.getHeaders(), + body: JSON.stringify(config) + }); + const result = await this.handleResponse(res, '服务器设置保存成功'); + if (result.success) { + this.serverConfig = config; + return true; + } + } catch (e) { + Modal.error({ title: '保存失败 (网络异常)', content: e.message }); + } + return false; + }, + + // --- 浏览器配置 --- + async fetchBrowserConfig() { + try { + const res = await fetch('/admin/config/browser', { headers: this.getHeaders() }); + if (res.ok) this.browserConfig = await res.json(); + } catch (e) { + console.error('Fetch browser config failed', e); + } + }, + async saveBrowserConfig(config) { + try { + const res = await fetch('/admin/config/browser', { + method: 'POST', + headers: this.getHeaders(), + body: JSON.stringify(config) + }); + const result = await this.handleResponse(res, '浏览器设置保存成功'); + if (result.success) { + this.browserConfig = config; + return true; + } + } catch (e) { + Modal.error({ title: '保存失败 (网络异常)', content: e.message }); + } + return false; + }, + + // --- 工作实例配置 --- + async fetchWorkerConfig() { + try { + // 端点已更改为 /admin/config/instances + const res = await fetch('/admin/config/instances', { headers: this.getHeaders() }); + if (res.ok) this.workerConfig = await res.json(); + } catch (e) { + console.error('Fetch instance configuration failed', e); + } + }, + async saveWorkerConfig(config) { + try { + // 端点已更改为 /admin/config/instances + const res = await fetch('/admin/config/instances', { + method: 'POST', + headers: this.getHeaders(), + body: JSON.stringify(config) + }); + const result = await this.handleResponse(res, '实例配置保存成功'); + if (result.success) { + this.workerConfig = config; + return true; + } + } catch (e) { + Modal.error({ title: '保存失败 (网络异常)', content: e.message }); + } + return false; + }, + + // --- 工作池配置 --- + async fetchPoolConfig() { + try { + const res = await fetch('/admin/config/pool', { headers: this.getHeaders() }); + if (res.ok) { + const data = await res.json(); + // 合并以确保结构存在 + this.poolConfig = { + strategy: data.strategy || 'least_busy', + failover: { + enabled: data.failover?.enabled || false, + maxRetries: data.failover?.maxRetries || 3 + } + }; + } + } catch (e) { + console.error('Fetch pool config failed', e); + } + }, + async savePoolConfig(config) { + try { + const res = await fetch('/admin/config/pool', { + method: 'POST', + headers: this.getHeaders(), + body: JSON.stringify(config) + }); + const result = await this.handleResponse(res, '工作池设置保存成功'); + if (result.success) { + this.poolConfig = config; + return true; + } + } catch (e) { + Modal.error({ title: '保存失败 (网络异常)', content: e.message }); + } + return false; + }, + + // --- 适配器配置与元数据 --- + async fetchAdaptersMeta() { + try { + const res = await fetch('/admin/adapters', { headers: this.getHeaders() }); + if (res.ok) this.adaptersMeta = await res.json(); + } catch (e) { + console.error('Fetch adapters meta failed', e); + } + }, + async fetchAdapterConfig() { + try { + const res = await fetch('/admin/config/adapters', { headers: this.getHeaders() }); + if (res.ok) this.adapterConfig = await res.json(); + } catch (e) { + console.error('Fetch adapter config failed', e); + } + }, + async saveAdapterConfig(config) { + try { + const res = await fetch('/admin/config/adapters', { + method: 'POST', + headers: this.getHeaders(), + body: JSON.stringify(config) + }); + const result = await this.handleResponse(res, '适配器设置保存成功'); + if (result.success) { + // 通过合并更新本地状态 + this.adapterConfig = { ...this.adapterConfig, ...config }; + return true; + } + } catch (e) { + Modal.error({ title: '保存失败 (网络异常)', content: e.message }); + } + return false; + } + } +}); diff --git a/webui/src/stores/system.js b/webui/src/stores/system.js new file mode 100644 index 0000000..77c8ac0 --- /dev/null +++ b/webui/src/stores/system.js @@ -0,0 +1,112 @@ +import { defineStore } from 'pinia'; +import { message } from 'ant-design-vue'; +import { useSettingsStore } from './settings'; + +export const useSystemStore = defineStore('system', { + state: () => ({ + // 系统状态 + status: '', + version: '1.0.0', + systemVersion: '', + uptime: 0, + cpuUsage: 0, + memoryUsage: { + total: 0, + used: 0, + free: 0 + }, + + // 仪表盘统计信息 + stats: { + totalRequests: 0, + successRate: 0, + activeWorkers: 0, + totalWorkers: 0, + avgResponseTime: 0 + } + }), + + actions: { + // 获取系统状态 + async fetchStatus() { + const settingsStore = useSettingsStore(); + try { + const response = await fetch('/admin/status', { + headers: settingsStore.getHeaders() + }); + // 如果返回401,状态更新将失败,由App.vue的身份验证检查处理 + if (response.ok) { + const data = await response.json(); + this.$patch(data); + } + } catch (error) { + console.error('Failed to fetch system status:', error); + } + }, + + // 获取仪表盘统计信息 + async fetchStats() { + const settingsStore = useSettingsStore(); + try { + const response = await fetch('/admin/stats', { + headers: settingsStore.getHeaders() + }); + if (response.ok) { + const data = await response.json(); + this.stats = data; + } + } catch (error) { + console.error('Failed to fetch stats:', error); + } + }, + + // 重启服务 + async restartService(options = {}) { + const settingsStore = useSettingsStore(); + const { loginMode, workerName } = options; + try { + const response = await fetch('/admin/restart', { + method: 'POST', + headers: { + ...settingsStore.getHeaders(), + 'Content-Type': 'application/json' + }, + body: JSON.stringify({ loginMode, workerName }) + }); + const data = await response.json(); + if (data.success) { + message.success(data.message || '服务重启中...'); + return true; + } else { + message.error('重启失败'); + return false; + } + } catch (error) { + message.error('重启请求失败'); + return false; + } + }, + + // 停止服务 + async stopService() { + const settingsStore = useSettingsStore(); + try { + const response = await fetch('/admin/stop', { + method: 'POST', + headers: settingsStore.getHeaders() + }); + const data = await response.json(); + if (data.success) { + message.success(data.message || '服务停止中...'); + return true; + } else { + message.error('停止失败'); + return false; + } + } catch (error) { + message.error('停止请求失败'); + return false; + } + } + } +}); diff --git a/webui/vite.config.js b/webui/vite.config.js new file mode 100644 index 0000000..8a73e27 --- /dev/null +++ b/webui/vite.config.js @@ -0,0 +1,22 @@ +import { defineConfig } from 'vite' +import vue from '@vitejs/plugin-vue' +import path from 'path' + +export default defineConfig({ + plugins: [vue()], + resolve: { + alias: { + '@': path.resolve(__dirname, './src') + } + }, + server: { + host: '127.0.0.1', + port: 5173, + proxy: { + '/admin': { + target: 'http://127.0.0.1:3000', + changeOrigin: true + } + } + } +})