diff --git a/AGENTS.md b/AGENTS.md index 0669699..c975840 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -15,4 +15,40 @@ Use `@/openspec/AGENTS.md` to learn: Keep this managed block so 'openspec update' can refresh the instructions. - \ No newline at end of file + + +# 项目约束:发布/打包流程(强制) + +以后只要涉及“发布 / 打包 / 上线 / 部署”,默认目标产物必须生成到 `deploy_bundle/`(无需用户再次强调)。 + +## 一键口径 + +- **发布前**:`npm ci` → `npm run check` → `npm test` +- **构建**:`npm run build`(包含:`vite build` + `scripts/build-api.mjs` + `postbuild` 复制 `init.sql`) +- **产物**:同步到 `deploy_bundle/`(见下方“产物映射”) + +## 产物映射(从仓库根目录执行) + +构建完成后,仓库根目录的 `dist/` 同时包含: +- 前端静态资源:`dist/index.html`、`dist/assets/`、`dist/favicon.svg` 等 +- 后端产物:`dist/api/server.js`、`dist/api/server.js.map`、`dist/api/database/init.sql` + +发布时必须把它们整理为: + +- `deploy_bundle/web/`:放“前端静态资源”(复制 `dist/` 下除 `api/` 之外的所有内容) +- `deploy_bundle/server/`:放“后端可运行目录” + - `deploy_bundle/server/dist/api/`:复制整个 `dist/api/` + - `deploy_bundle/server/package.json`、`deploy_bundle/server/package-lock.json`:与根目录依赖保持同步 + - `deploy_bundle/server/ecosystem.config.cjs`:PM2 配置(通常无需改动,按环境变量/路径调整) + +## 服务器侧部署(默认 PM2) + +- 将 `deploy_bundle/server/` 上传/同步到服务器运行目录(由 `ecosystem.config.cjs` 的 `cwd` 决定) +- 在服务器运行目录执行:`npm ci --omit=dev` +- 启动/重启:`pm2 start ecosystem.config.cjs` 或 `pm2 reload ecosystem.config.cjs` + +## 发布注意事项(必须检查) + +- Node 版本与构建目标一致(当前后端构建目标:Node 20) +- 数据库文件是外置持久化(由 `DB_PATH` 指定),发布不覆盖 DB 文件 +- 构建后确认 `deploy_bundle/server/dist/api/database/init.sql` 存在(用于首次初始化/新环境) diff --git a/api/controllers/quizController.ts b/api/controllers/quizController.ts index e5ba2ff..8ec9cf2 100644 --- a/api/controllers/quizController.ts +++ b/api/controllers/quizController.ts @@ -96,6 +96,18 @@ export class QuizController { totalPossibleScore += Number(question.score) || 0; + if (answer.userAnswer === undefined || answer.userAnswer === null) { + answer.userAnswer = ''; + } + + // 规则:分值为0的题目不判定正误,不要求答案,默认正确 + if (Number(question.score) === 0) { + answer.score = 0; + answer.isCorrect = true; + processedAnswers.push(answer); + continue; + } + if (question.type === 'multiple') { const optionCount = question.options ? question.options.length : 0; const unitScore = optionCount > 0 ? question.score / optionCount : 0; diff --git a/api/database/index.ts b/api/database/index.ts index 496dba5..38b3b45 100644 --- a/api/database/index.ts +++ b/api/database/index.ts @@ -164,9 +164,84 @@ const ensureUserGroupSchemaAndAllUsersMembership = async () => { } }; +const getTableCreateSql = async (tableName: string): Promise => { + const row = await get( + `SELECT sql FROM sqlite_master WHERE type='table' AND name=? LIMIT 1`, + [tableName], + ); + return (row?.sql as string | undefined) ?? ''; +}; + +const tableSqlHasScoreGreaterThanZeroCheck = (tableSql: string): boolean => { + if (!tableSql) return false; + // 兼容不同空白/大小写写法:CHECK(score > 0) / CHECK ( score>0 ) + return /check\s*\(\s*score\s*>\s*0\s*\)/i.test(tableSql); +}; + +const migrateQuestionsScoreCheckToAllowZero = async () => { + const questionsSql = await getTableCreateSql('questions'); + if (!tableSqlHasScoreGreaterThanZeroCheck(questionsSql)) return; + + console.log('检测到旧表约束:questions.score CHECK(score > 0),开始迁移为 >= 0'); + + // 迁移方式:重建 questions 表(SQLite 不支持直接修改 CHECK 约束) + // 注意:questions 被 quiz_answers 外键引用,因此迁移期间临时关闭 foreign_keys。 + await exec('PRAGMA foreign_keys = OFF;'); + try { + await exec('BEGIN TRANSACTION;'); + + await exec(` + CREATE TABLE IF NOT EXISTS questions_new ( + id TEXT PRIMARY KEY, + content TEXT NOT NULL, + type TEXT NOT NULL CHECK(type IN ('single', 'multiple', 'judgment', 'text')), + options TEXT, + answer TEXT NOT NULL, + analysis TEXT NOT NULL DEFAULT '', + score INTEGER NOT NULL CHECK(score >= 0), + category TEXT NOT NULL DEFAULT '通用', + created_at DATETIME DEFAULT CURRENT_TIMESTAMP + ); + `); + + await exec(` + INSERT INTO questions_new (id, content, type, options, answer, analysis, score, category, created_at) + SELECT + id, + content, + type, + options, + COALESCE(answer, ''), + COALESCE(analysis, ''), + score, + COALESCE(category, '通用'), + created_at + FROM questions; + `); + + await exec('DROP TABLE questions;'); + await exec('ALTER TABLE questions_new RENAME TO questions;'); + + await exec('CREATE INDEX IF NOT EXISTS idx_questions_type ON questions(type);'); + await exec('CREATE INDEX IF NOT EXISTS idx_questions_score ON questions(score);'); + await exec('CREATE INDEX IF NOT EXISTS idx_questions_category ON questions(category);'); + + await exec('COMMIT;'); + console.log('questions 表迁移完成:score 允许 0 分'); + } catch (error) { + try { + await exec('ROLLBACK;'); + } catch { + // ignore + } + throw error; + } finally { + await exec('PRAGMA foreign_keys = ON;'); + } +}; + const migrateDatabase = async () => { - // 跳过迁移,因为数据库连接可能未初始化 - console.log('跳过数据库迁移'); + await migrateQuestionsScoreCheckToAllowZero(); }; // 数据库初始化函数 @@ -194,6 +269,9 @@ export const initDatabase = async () => { await ensureColumn('quiz_records', "score_percentage REAL", 'score_percentage'); await ensureColumn('quiz_records', "status TEXT", 'status'); + // 兼容历史数据库:迁移无法通过 init.sql 修复的约束/结构 + await migrateDatabase(); + // 用户组(含“全体用户”系统组) await ensureUserGroupSchemaAndAllUsersMembership(); } diff --git a/api/database/init.sql b/api/database/init.sql index 7db2160..9bca33b 100644 --- a/api/database/init.sql +++ b/api/database/init.sql @@ -45,7 +45,7 @@ CREATE TABLE questions ( options TEXT, -- JSON格式存储选项 answer TEXT NOT NULL, analysis TEXT NOT NULL DEFAULT '', - score INTEGER NOT NULL CHECK(score > 0), + score INTEGER NOT NULL CHECK(score >= 0), category TEXT NOT NULL DEFAULT '通用', created_at DATETIME DEFAULT CURRENT_TIMESTAMP ); diff --git a/api/models/examSubject.ts b/api/models/examSubject.ts index 09f7575..33b4220 100644 --- a/api/models/examSubject.ts +++ b/api/models/examSubject.ts @@ -306,7 +306,7 @@ export class ExamSubjectModel { judgment: 20, text: 10 }), - categoryRatios: parseJson>(row.categoryRatios, { 通用: 100 }), + categoryRatios: parseJson>(row.categoryRatios, {}), createdAt: row.createdAt, updatedAt: row.updatedAt })); @@ -341,7 +341,7 @@ export class ExamSubjectModel { judgment: 20, text: 10 }), - categoryRatios: parseJson>(row.categoryRatios, { 通用: 100 }), + categoryRatios: parseJson>(row.categoryRatios, {}), createdAt: row.createdAt, updatedAt: row.updatedAt }; @@ -361,7 +361,7 @@ export class ExamSubjectModel { const timeLimitMinutes = data.timeLimitMinutes ?? 60; if (!Number.isInteger(timeLimitMinutes) || timeLimitMinutes <= 0) throw new Error('答题时间必须为正整数(分钟)'); - const categoryRatios = data.categoryRatios && Object.keys(data.categoryRatios).length > 0 ? data.categoryRatios : { 通用: 100 }; + const categoryRatios = data.categoryRatios && Object.keys(data.categoryRatios).length > 0 ? data.categoryRatios : {}; const typeRatioMode = isRatioMode(data.typeRatios as any); const categoryRatioMode = isRatioMode(categoryRatios); if (typeRatioMode !== categoryRatioMode) { @@ -423,7 +423,7 @@ export class ExamSubjectModel { const timeLimitMinutes = data.timeLimitMinutes ?? 60; if (!Number.isInteger(timeLimitMinutes) || timeLimitMinutes <= 0) throw new Error('答题时间必须为正整数(分钟)'); - const categoryRatios = data.categoryRatios && Object.keys(data.categoryRatios).length > 0 ? data.categoryRatios : { 通用: 100 }; + const categoryRatios = data.categoryRatios && Object.keys(data.categoryRatios).length > 0 ? data.categoryRatios : {}; const typeRatioMode = isRatioMode(data.typeRatios as any); const categoryRatioMode = isRatioMode(categoryRatios); if (typeRatioMode !== categoryRatioMode) { diff --git a/api/models/question.ts b/api/models/question.ts index 79003a6..8839898 100644 --- a/api/models/question.ts +++ b/api/models/question.ts @@ -51,11 +51,12 @@ export class QuestionModel { static async create(data: CreateQuestionData): Promise { const id = uuidv4(); const optionsStr = data.options ? JSON.stringify(data.options) : null; + const rawAnswer = (data as any).answer; const normalizedAnswer = - data.type === 'judgment' && !Array.isArray(data.answer) - ? this.normalizeJudgmentAnswer(data.answer) - : data.answer; - const answerStr = Array.isArray(normalizedAnswer) ? JSON.stringify(normalizedAnswer) : normalizedAnswer; + data.type === 'judgment' && !Array.isArray(rawAnswer) + ? this.normalizeJudgmentAnswer(rawAnswer) + : rawAnswer; + const answerStr = Array.isArray(normalizedAnswer) ? JSON.stringify(normalizedAnswer) : String(normalizedAnswer ?? ''); const category = data.category && data.category.trim() ? data.category.trim() : '通用'; const analysis = String(data.analysis ?? '').trim().slice(0, 255); @@ -88,11 +89,12 @@ export class QuestionModel { const question = questions[i]; const id = uuidv4(); const optionsStr = question.options ? JSON.stringify(question.options) : null; + const rawAnswer = (question as any).answer; const normalizedAnswer = - question.type === 'judgment' && !Array.isArray(question.answer) - ? this.normalizeJudgmentAnswer(question.answer) - : question.answer; - const answerStr = Array.isArray(normalizedAnswer) ? JSON.stringify(normalizedAnswer) : normalizedAnswer; + question.type === 'judgment' && !Array.isArray(rawAnswer) + ? this.normalizeJudgmentAnswer(rawAnswer) + : rawAnswer; + const answerStr = Array.isArray(normalizedAnswer) ? JSON.stringify(normalizedAnswer) : String(normalizedAnswer ?? ''); const category = question.category && question.category.trim() ? question.category.trim() : '通用'; const analysis = String(question.analysis ?? '').trim().slice(0, 255); @@ -153,11 +155,12 @@ export class QuestionModel { const question = questions[i]; try { const optionsStr = question.options ? JSON.stringify(question.options) : null; + const rawAnswer = (question as any).answer; const normalizedAnswer = - question.type === 'judgment' && !Array.isArray(question.answer) - ? this.normalizeJudgmentAnswer(question.answer) - : question.answer; - const answerStr = Array.isArray(normalizedAnswer) ? JSON.stringify(normalizedAnswer) : normalizedAnswer; + question.type === 'judgment' && !Array.isArray(rawAnswer) + ? this.normalizeJudgmentAnswer(rawAnswer) + : rawAnswer; + const answerStr = Array.isArray(normalizedAnswer) ? JSON.stringify(normalizedAnswer) : String(normalizedAnswer ?? ''); const category = question.category && question.category.trim() ? question.category.trim() : '通用'; const analysis = String(question.analysis ?? '').trim().slice(0, 255); @@ -316,11 +319,12 @@ export class QuestionModel { } if (data.answer !== undefined) { + const rawAnswer = (data as any).answer; const normalizedAnswer = - data.type === 'judgment' && !Array.isArray(data.answer) - ? this.normalizeJudgmentAnswer(data.answer) - : data.answer; - const answerStr = Array.isArray(normalizedAnswer) ? JSON.stringify(normalizedAnswer) : normalizedAnswer; + data.type === 'judgment' && !Array.isArray(rawAnswer) + ? this.normalizeJudgmentAnswer(rawAnswer) + : rawAnswer; + const answerStr = Array.isArray(normalizedAnswer) ? JSON.stringify(normalizedAnswer) : String(normalizedAnswer ?? ''); fields.push('answer = ?'); values.push(answerStr); } @@ -411,13 +415,20 @@ export class QuestionModel { } // 验证答案 - if (!data.answer) { - errors.push('答案不能为空'); + const score = Number((data as any).score); + const allowEmptyAnswer = Number.isFinite(score) && score === 0; + if (!allowEmptyAnswer) { + const ans = (data as any).answer; + const isEmptyArray = Array.isArray(ans) && ans.length === 0; + const isEmptyString = typeof ans === 'string' && ans.trim().length === 0; + if (ans === undefined || ans === null || isEmptyArray || isEmptyString) { + errors.push('答案不能为空'); + } } // 验证分值 - if (!data.score || data.score <= 0) { - errors.push('分值必须是正数'); + if (!Number.isFinite(score) || score < 0) { + errors.push('分值必须是非负数'); } if (data.category !== undefined && data.category.trim().length === 0) { @@ -445,12 +456,16 @@ export class QuestionModel { errors.push(`第${index + 1}行:题型必须是 single、multiple、judgment 或 text`); } - if (!row.answer) { + const score = Number((row as any).score); + const allowEmptyAnswer = Number.isFinite(score) && score === 0; + const ans = (row as any).answer; + const isEmptyString = typeof ans === 'string' && ans.trim().length === 0; + if (!allowEmptyAnswer && (ans === undefined || ans === null || isEmptyString)) { errors.push(`第${index + 1}行:答案不能为空`); } - if (!row.score || row.score <= 0) { - errors.push(`第${index + 1}行:分值必须是正数`); + if (!Number.isFinite(score) || score < 0) { + errors.push(`第${index + 1}行:分值必须是非负数`); } }); diff --git a/api/models/quiz.ts b/api/models/quiz.ts index ec7072a..4ef5e0e 100644 --- a/api/models/quiz.ts +++ b/api/models/quiz.ts @@ -154,7 +154,11 @@ export class QuizModel { END ELSE r.status END as status, - r.created_at as createdAt + r.created_at as createdAt, + COALESCE(r.subject_id, t.subject_id) as subjectId, + COALESCE(s.name, ts.name) as subjectName, + r.task_id as taskId, + t.name as taskName FROM quiz_records r LEFT JOIN ( SELECT a.record_id as recordId, SUM(q.score) as totalPossibleScore @@ -162,6 +166,9 @@ export class QuizModel { JOIN questions q ON a.question_id = q.id GROUP BY a.record_id ) totals ON totals.recordId = r.id + LEFT JOIN exam_tasks t ON r.task_id = t.id + LEFT JOIN exam_subjects s ON r.subject_id = s.id + LEFT JOIN exam_subjects ts ON t.subject_id = ts.id WHERE r.id = ? `; const record = await get(sql, [id]); diff --git a/data/AI生成题目提示词.md b/data/AI生成题目提示词.md index d2ce2dd..cc35c68 100644 --- a/data/AI生成题目提示词.md +++ b/data/AI生成题目提示词.md @@ -1,19 +1,49 @@ -上传word格式文档,这是我公司内部考试的题目,我需要你根据文档内容,转换为符合要求的考试题目。请以csv格式输出,包含题型、题目类别、分值、题目内容、选项A、选项B、选项C、选项D、答案、解析。并以文本块方式呈现。 ---------------------------------------------------------------------------- -# 格式: +你是“本知识库”的出题助手。请【仅基于本知识库的内容】生成可用于“文本导入题库”的考试题目,用.csv的格式返回。 + +重要要求(务必遵守): +1) 题型必须严格符合本项目支持的题型:单选、多选、判断、文字描述。不得输出其他题型名称。 +2) 题目来源声明:这些题目来源于“本知识库”。但【不得】在题干/选项/解析中写出“根据《某文件》/依据XX文档/引用出处/本知识库/某章节/某页面”等任何出处描述。 +3) 严谨性:题目内容必须与知识库一致、表述严谨、可验证;不得编造不确定事实,不得出现与知识不符/自相矛盾/模棱两可的题。 +4) 避免固定模板句式:禁止出现“根据《…》”“依据…规则”“根据…文档”这类开头。 + +题型数量配置(你将按我给的数量生成): +- 单选题数量:{单选数量} +- 多选题数量:{多选数量} +- 判断题数量:{判断数量} +- 文字描述题数量:{文字描述数量} + +输出要求: +- 以“管道分隔的CSV文本”输出(每列用“|”分隔;不是逗号分隔)。 +- 只输出题目数据行,不要输出任何额外说明文字。 +- 每行字段固定为: 题型|题目类别|分值|题目内容|选项A|选项B|选项C|选项D|答案1,答案2|解析 -# 解析: - - 题型:单选,多选,判断,文字描述 - - 分值:默认5分,根据题目难度,取值2~20分,注意:文字描述题默认0分 - - 题目内容:题目的具体内容,在题目前面加【题型】 - - 选项:对于选择题,提供4个选项,选项之间用"|"分割,例如:北京|上海|广州|深圳 - - 答案:标准答案,例如:A,对于多选题,有多个答案,答案之间用","做分割 - - 解析:对题目答案的解析,例如:这是常识 +字段规则: +- 题型:只能是 单选 / 多选 / 判断 / 文字描述。 +- 题目类别:优先使用知识库中的分类;不确定则用“通用”。 +- 分值:默认 5 分;按难度可取 2~20 的整数;文字描述题必须为 0 分。 +- 题目内容: + - 必须在最前面加【题型】前缀: + - 单选 → 【单选题】 + - 多选 → 【多选题】 + - 判断 → 【判断题】 + - 文字描述 → 【文字描述题】 + - 题干不得包含任何出处/文件名/章节号/“根据…”等引用式表述。 +- 选项: + - 单选/多选:必须给出 A-D 四个选项(不得为空、不得重复、不得出现明显无关/语义重叠选项)。 + - 判断:选项A 为空,选项B 固定写“正确”,选项C 固定写“错误”,选项D 为空。 + - 文字描述:选项A 为空,选项B 可写“可自由作答”,其余为空。 +- 答案: + - 单选:A/B/C/D 之一。 + - 多选:用英文逗号分隔,如 A,B,D(按 A-D 升序)。 + - 判断:只能是“正确”或“错误”。 + - 文字描述:留空。 +- 解析: + - 必须给出简洁且严谨的理由/要点;不得提及任何文件出处;不得出现“这是常识/见文档”等空泛描述。 -# 示例: - 多选|软件技术|10|【多选题】下列哪些属于网络安全的基本组成部分?|防火墙|杀毒软件|数据加密|物理安全|A,B,C|这是常识 - 单选|通用|5|【单选题】我国首都是哪里?|北京|上海|广州|深圳|A|我国首都为北京 - 多选|通用|5|【多选题】以下哪些是水果?|苹果|白菜|香蕉|西红柿|A,C,D|水果包括苹果/香蕉/西红柿 - 判断|通用|2|【判断题】地球是圆的||正确|地球接近球体 - 文字描述|通用|10|【文字描述题】请简述你对该岗位的理解||可自由作答|仅用于人工评阅 \ No newline at end of file +示例(仅示例格式,实际题目需来自本知识库): +多选|软件技术|10|【多选题】下列哪些属于网络安全的基本组成部分?|防火墙|杀毒软件|数据加密|物理安全|A,B,C|防火墙用于访问控制;杀毒软件用于恶意代码检测;数据加密用于保护数据机密性。 +单选|通用|5|【单选题】我国首都是哪里?|北京|上海|广州|深圳|A|我国首都为北京。 +多选|通用|5|【多选题】以下哪些是水果?|苹果|白菜|香蕉|西红柿|A,C,D|苹果、香蕉、西红柿(植物学上为果实)常被归入水果;白菜为蔬菜。 +判断|通用|2|【判断题】地球是圆的||正确|错误||正确|地球整体接近球体,但严格来说是略扁的旋转椭球体。 +文字描述|通用|0|【文字描述题】请简述你对该岗位的理解||可自由作答||| |用于人工评阅,关注职责理解、能力匹配与改进方向。 \ No newline at end of file diff --git a/data/survey.db b/data/survey.db index ea2e508..0f318f0 100644 Binary files a/data/survey.db and b/data/survey.db differ diff --git a/deploy_bundle/server/package.json b/deploy_bundle/server/package.json index e1a7044..1d9ffe3 100644 --- a/deploy_bundle/server/package.json +++ b/deploy_bundle/server/package.json @@ -9,9 +9,10 @@ "dev:frontend": "vite", "build": "vite build && node scripts/build-api.mjs", "postbuild": "node scripts/copy-init-sql.mjs", + "bundle": "node scripts/build-deploy-bundle.mjs", "preview": "vite preview", "start": "node --enable-source-maps dist/api/server.js", - "test": "node --import tsx --test test/admin-task-stats.test.ts test/question-text-import.test.ts test/swipe-detect.test.ts test/user-tasks.test.ts test/user-records-subjectname.test.ts test/score-percentage.test.ts", + "test": "node --import tsx --test test/admin-task-stats.test.ts test/question-text-import.test.ts test/swipe-detect.test.ts test/user-tasks.test.ts test/user-records-subjectname.test.ts test/score-percentage.test.ts test/user-default-group.test.ts", "check": "tsc --noEmit" }, "dependencies": { diff --git a/deploy_bundle/web/assets/index-38e9e7a4.js b/deploy_bundle/web/assets/index-38e9e7a4.js new file mode 100644 index 0000000..9a580a0 --- /dev/null +++ b/deploy_bundle/web/assets/index-38e9e7a4.js @@ -0,0 +1,681 @@ +var pee=Object.defineProperty;var vee=(e,t,r)=>t in e?pee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var bC=(e,t,r)=>(vee(e,typeof t!="symbol"?t+"":t,r),r);function FL(e,t){for(var r=0;rn[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=r(a);fetch(a.href,i)}})();var ru=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function sa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var LL={exports:{}},xb={},BL={exports:{}},vr={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var nv=Symbol.for("react.element"),gee=Symbol.for("react.portal"),yee=Symbol.for("react.fragment"),xee=Symbol.for("react.strict_mode"),bee=Symbol.for("react.profiler"),See=Symbol.for("react.provider"),wee=Symbol.for("react.context"),Cee=Symbol.for("react.forward_ref"),Eee=Symbol.for("react.suspense"),$ee=Symbol.for("react.memo"),_ee=Symbol.for("react.lazy"),x4=Symbol.iterator;function Oee(e){return e===null||typeof e!="object"?null:(e=x4&&e[x4]||e["@@iterator"],typeof e=="function"?e:null)}var zL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},HL=Object.assign,WL={};function j0(e,t,r){this.props=e,this.context=t,this.refs=WL,this.updater=r||zL}j0.prototype.isReactComponent={};j0.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};j0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function VL(){}VL.prototype=j0.prototype;function OT(e,t,r){this.props=e,this.context=t,this.refs=WL,this.updater=r||zL}var TT=OT.prototype=new VL;TT.constructor=OT;HL(TT,j0.prototype);TT.isPureReactComponent=!0;var b4=Array.isArray,UL=Object.prototype.hasOwnProperty,PT={current:null},KL={key:!0,ref:!0,__self:!0,__source:!0};function GL(e,t,r){var n,a={},i=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)UL.call(t,n)&&!KL.hasOwnProperty(n)&&(a[n]=t[n]);var s=arguments.length-2;if(s===1)a.children=r;else if(1>>1,L=F[K];if(0>>1;Ka(H,V))Ua(X,H)?(F[K]=X,F[U]=V,K=U):(F[K]=H,F[W]=V,K=W);else if(Ua(X,V))F[K]=X,F[U]=V,K=U;else break e}}return M}function a(F,M){var V=F.sortIndex-M.sortIndex;return V!==0?V:F.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],c=[],u=1,f=null,m=3,h=!1,v=!1,p=!1,g=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(F){for(var M=r(c);M!==null;){if(M.callback===null)n(c);else if(M.startTime<=F)n(c),M.sortIndex=M.expirationTime,t(l,M);else break;M=r(c)}}function S(F){if(p=!1,b(F),!v)if(r(l)!==null)v=!0,A(w);else{var M=r(c);M!==null&&j(S,M.startTime-F)}}function w(F,M){v=!1,p&&(p=!1,y(O),O=-1),h=!0;var V=m;try{for(b(M),f=r(l);f!==null&&(!(f.expirationTime>M)||F&&!I());){var K=f.callback;if(typeof K=="function"){f.callback=null,m=f.priorityLevel;var L=K(f.expirationTime<=M);M=e.unstable_now(),typeof L=="function"?f.callback=L:f===r(l)&&n(l),b(M)}else n(l);f=r(l)}if(f!==null)var B=!0;else{var W=r(c);W!==null&&j(S,W.startTime-M),B=!1}return B}finally{f=null,m=V,h=!1}}var E=!1,C=null,O=-1,_=5,T=-1;function I(){return!(e.unstable_now()-T<_)}function N(){if(C!==null){var F=e.unstable_now();T=F;var M=!0;try{M=C(!0,F)}finally{M?D():(E=!1,C=null)}}else E=!1}var D;if(typeof x=="function")D=function(){x(N)};else if(typeof MessageChannel<"u"){var k=new MessageChannel,R=k.port2;k.port1.onmessage=N,D=function(){R.postMessage(null)}}else D=function(){g(N,0)};function A(F){C=F,E||(E=!0,D())}function j(F,M){O=g(function(){F(e.unstable_now())},M)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_continueExecution=function(){v||h||(v=!0,A(w))},e.unstable_forceFrameRate=function(F){0>F||125K?(F.sortIndex=V,t(c,F),r(l)===null&&F===r(c)&&(p?(y(O),O=-1):p=!0,j(S,V-K))):(F.sortIndex=L,t(l,F),v||h||(v=!0,A(w))),F},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(F){var M=m;return function(){var V=m;m=M;try{return F.apply(this,arguments)}finally{m=V}}}})(ZL);QL.exports=ZL;var Fee=QL.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Lee=d,uo=Fee;function gt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),UE=Object.prototype.hasOwnProperty,Bee=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,w4={},C4={};function zee(e){return UE.call(C4,e)?!0:UE.call(w4,e)?!1:Bee.test(e)?C4[e]=!0:(w4[e]=!0,!1)}function Hee(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Wee(e,t,r,n){if(t===null||typeof t>"u"||Hee(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Oi(e,t,r,n,a,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Ka={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ka[e]=new Oi(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ka[t]=new Oi(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ka[e]=new Oi(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ka[e]=new Oi(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ka[e]=new Oi(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ka[e]=new Oi(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ka[e]=new Oi(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ka[e]=new Oi(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ka[e]=new Oi(e,5,!1,e.toLowerCase(),null,!1,!1)});var NT=/[\-:]([a-z])/g;function kT(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(NT,kT);Ka[t]=new Oi(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(NT,kT);Ka[t]=new Oi(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(NT,kT);Ka[t]=new Oi(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ka[e]=new Oi(e,1,!1,e.toLowerCase(),null,!1,!1)});Ka.xlinkHref=new Oi("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ka[e]=new Oi(e,1,!1,e.toLowerCase(),null,!0,!0)});function RT(e,t,r,n){var a=Ka.hasOwnProperty(t)?Ka[t]:null;(a!==null?a.type!==0:n||!(2s||a[o]!==i[s]){var l=` +`+a[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{CC=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?eh(e):""}function Vee(e){switch(e.tag){case 5:return eh(e.type);case 16:return eh("Lazy");case 13:return eh("Suspense");case 19:return eh("SuspenseList");case 0:case 2:case 15:return e=EC(e.type,!1),e;case 11:return e=EC(e.type.render,!1),e;case 1:return e=EC(e.type,!0),e;default:return""}}function XE(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ef:return"Fragment";case Cf:return"Portal";case KE:return"Profiler";case AT:return"StrictMode";case GE:return"Suspense";case qE:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case tB:return(e.displayName||"Context")+".Consumer";case eB:return(e._context.displayName||"Context")+".Provider";case MT:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case DT:return t=e.displayName||null,t!==null?t:XE(e.type)||"Memo";case lc:t=e._payload,e=e._init;try{return XE(e(t))}catch{}}return null}function Uee(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return XE(t);case 8:return t===AT?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Bc(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nB(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kee(e){var t=nB(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){n=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Cg(e){e._valueTracker||(e._valueTracker=Kee(e))}function aB(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=nB(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function wx(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function YE(e,t){var r=t.checked;return vn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function $4(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Bc(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function iB(e,t){t=t.checked,t!=null&&RT(e,"checked",t,!1)}function QE(e,t){iB(e,t);var r=Bc(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ZE(e,t.type,r):t.hasOwnProperty("defaultValue")&&ZE(e,t.type,Bc(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _4(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function ZE(e,t,r){(t!=="number"||wx(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var th=Array.isArray;function Wf(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=Eg.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hh(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var vh={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Gee=["Webkit","ms","Moz","O"];Object.keys(vh).forEach(function(e){Gee.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),vh[t]=vh[e]})});function cB(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||vh.hasOwnProperty(e)&&vh[e]?(""+t).trim():t+"px"}function uB(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=cB(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var qee=vn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function t$(e,t){if(t){if(qee[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(gt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(gt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(gt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(gt(62))}}function r$(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var n$=null;function jT(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var a$=null,Vf=null,Uf=null;function P4(e){if(e=ov(e)){if(typeof a$!="function")throw Error(gt(280));var t=e.stateNode;t&&(t=Eb(t),a$(e.stateNode,e.type,t))}}function dB(e){Vf?Uf?Uf.push(e):Uf=[e]:Vf=e}function fB(){if(Vf){var e=Vf,t=Uf;if(Uf=Vf=null,P4(e),t)for(e=0;e>>=0,e===0?32:31-(ite(e)/ote|0)|0}var $g=64,_g=4194304;function rh(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function _x(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,i=e.pingedLanes,o=r&268435455;if(o!==0){var s=o&~a;s!==0?n=rh(s):(i&=o,i!==0&&(n=rh(i)))}else o=r&~a,o!==0?n=rh(o):i!==0&&(n=rh(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function av(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-vs(t),e[t]=r}function ute(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=yh),F4=String.fromCharCode(32),L4=!1;function kB(e,t){switch(e){case"keyup":return Fte.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function RB(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $f=!1;function Bte(e,t){switch(e){case"compositionend":return RB(t);case"keypress":return t.which!==32?null:(L4=!0,F4);case"textInput":return e=t.data,e===F4&&L4?null:e;default:return null}}function zte(e,t){if($f)return e==="compositionend"||!UT&&kB(e,t)?(e=IB(),Wy=HT=pc=null,$f=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=W4(r)}}function jB(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jB(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function FB(){for(var e=window,t=wx();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=wx(e.document)}return t}function KT(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Yte(e){var t=FB(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&jB(r.ownerDocument.documentElement,r)){if(n!==null&&KT(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,i=Math.min(n.start,a);n=n.end===void 0?i:Math.min(n.end,a),!e.extend&&i>n&&(a=n,n=i,i=a),a=V4(r,i);var o=V4(r,n);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,_f=null,u$=null,bh=null,d$=!1;function U4(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;d$||_f==null||_f!==wx(n)||(n=_f,"selectionStart"in n&&KT(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),bh&&qh(bh,n)||(bh=n,n=Px(u$,"onSelect"),0Pf||(e.current=g$[Pf],g$[Pf]=null,Pf--)}function qr(e,t){Pf++,g$[Pf]=e.current,e.current=t}var zc={},ui=au(zc),ji=au(!1),od=zc;function l0(e,t){var r=e.type.contextTypes;if(!r)return zc;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in r)a[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Fi(e){return e=e.childContextTypes,e!=null}function Nx(){en(ji),en(ui)}function Z4(e,t,r){if(ui.current!==zc)throw Error(gt(168));qr(ui,t),qr(ji,r)}function GB(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(gt(108,Uee(e)||"Unknown",a));return vn({},r,n)}function kx(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zc,od=ui.current,qr(ui,e),qr(ji,ji.current),!0}function J4(e,t,r){var n=e.stateNode;if(!n)throw Error(gt(169));r?(e=GB(e,t,od),n.__reactInternalMemoizedMergedChildContext=e,en(ji),en(ui),qr(ui,e)):en(ji),qr(ji,r)}var hl=null,$b=!1,FC=!1;function qB(e){hl===null?hl=[e]:hl.push(e)}function lre(e){$b=!0,qB(e)}function iu(){if(!FC&&hl!==null){FC=!0;var e=0,t=Dr;try{var r=hl;for(Dr=1;e>=o,a-=o,gl=1<<32-vs(t)+a|r<O?(_=C,C=null):_=C.sibling;var T=m(y,C,b[O],S);if(T===null){C===null&&(C=_);break}e&&C&&T.alternate===null&&t(y,C),x=i(T,x,O),E===null?w=T:E.sibling=T,E=T,C=_}if(O===b.length)return r(y,C),ln&&$u(y,O),w;if(C===null){for(;OO?(_=C,C=null):_=C.sibling;var I=m(y,C,T.value,S);if(I===null){C===null&&(C=_);break}e&&C&&I.alternate===null&&t(y,C),x=i(I,x,O),E===null?w=I:E.sibling=I,E=I,C=_}if(T.done)return r(y,C),ln&&$u(y,O),w;if(C===null){for(;!T.done;O++,T=b.next())T=f(y,T.value,S),T!==null&&(x=i(T,x,O),E===null?w=T:E.sibling=T,E=T);return ln&&$u(y,O),w}for(C=n(y,C);!T.done;O++,T=b.next())T=h(C,y,O,T.value,S),T!==null&&(e&&T.alternate!==null&&C.delete(T.key===null?O:T.key),x=i(T,x,O),E===null?w=T:E.sibling=T,E=T);return e&&C.forEach(function(N){return t(y,N)}),ln&&$u(y,O),w}function g(y,x,b,S){if(typeof b=="object"&&b!==null&&b.type===Ef&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case wg:e:{for(var w=b.key,E=x;E!==null;){if(E.key===w){if(w=b.type,w===Ef){if(E.tag===7){r(y,E.sibling),x=a(E,b.props.children),x.return=y,y=x;break e}}else if(E.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===lc&&rA(w)===E.type){r(y,E.sibling),x=a(E,b.props),x.ref=km(y,E,b),x.return=y,y=x;break e}r(y,E);break}else t(y,E);E=E.sibling}b.type===Ef?(x=qu(b.props.children,y.mode,S,b.key),x.return=y,y=x):(S=Qy(b.type,b.key,b.props,null,y.mode,S),S.ref=km(y,x,b),S.return=y,y=S)}return o(y);case Cf:e:{for(E=b.key;x!==null;){if(x.key===E)if(x.tag===4&&x.stateNode.containerInfo===b.containerInfo&&x.stateNode.implementation===b.implementation){r(y,x.sibling),x=a(x,b.children||[]),x.return=y,y=x;break e}else{r(y,x);break}else t(y,x);x=x.sibling}x=KC(b,y.mode,S),x.return=y,y=x}return o(y);case lc:return E=b._init,g(y,x,E(b._payload),S)}if(th(b))return v(y,x,b,S);if(Om(b))return p(y,x,b,S);Rg(y,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,x!==null&&x.tag===6?(r(y,x.sibling),x=a(x,b),x.return=y,y=x):(r(y,x),x=UC(b,y.mode,S),x.return=y,y=x),o(y)):r(y,x)}return g}var u0=ZB(!0),JB=ZB(!1),Mx=au(null),Dx=null,kf=null,YT=null;function QT(){YT=kf=Dx=null}function ZT(e){var t=Mx.current;en(Mx),e._currentValue=t}function b$(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Gf(e,t){Dx=e,YT=kf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ri=!0),e.firstContext=null)}function zo(e){var t=e._currentValue;if(YT!==e)if(e={context:e,memoizedValue:t,next:null},kf===null){if(Dx===null)throw Error(gt(308));kf=e,Dx.dependencies={lanes:0,firstContext:e}}else kf=kf.next=e;return t}var Du=null;function JT(e){Du===null?Du=[e]:Du.push(e)}function ez(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,JT(t)):(r.next=a.next,a.next=r),t.interleaved=r,Pl(e,n)}function Pl(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var cc=!1;function eP(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function tz(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function wl(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kc(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,wr&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,Pl(e,r)}return a=n.interleaved,a===null?(t.next=t,JT(n)):(t.next=a.next,a.next=t),n.interleaved=t,Pl(e,r)}function Uy(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,LT(e,r)}}function nA(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?a=i=o:i=i.next=o,r=r.next}while(r!==null);i===null?a=i=t:i=i.next=t}else a=i=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function jx(e,t,r,n){var a=e.updateQueue;cc=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var l=s,c=l.next;l.next=null,o===null?i=c:o.next=c,o=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(i!==null){var f=a.baseState;o=0,u=c=l=null,s=i;do{var m=s.lane,h=s.eventTime;if((n&m)===m){u!==null&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=e,p=s;switch(m=t,h=r,p.tag){case 1:if(v=p.payload,typeof v=="function"){f=v.call(h,f,m);break e}f=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=p.payload,m=typeof v=="function"?v.call(h,f,m):v,m==null)break e;f=vn({},f,m);break e;case 2:cc=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=a.effects,m===null?a.effects=[s]:m.push(s))}else h={eventTime:h,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=h,l=f):u=u.next=h,o|=m;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;m=s,s=m.next,m.next=null,a.lastBaseUpdate=m,a.shared.pending=null}}while(1);if(u===null&&(l=f),a.baseState=l,a.firstBaseUpdate=c,a.lastBaseUpdate=u,t=a.shared.interleaved,t!==null){a=t;do o|=a.lane,a=a.next;while(a!==t)}else i===null&&(a.shared.lanes=0);cd|=o,e.lanes=o,e.memoizedState=f}}function aA(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=BC.transition;BC.transition={};try{e(!1),t()}finally{Dr=r,BC.transition=n}}function yz(){return Ho().memoizedState}function fre(e,t,r){var n=Ac(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},xz(e))bz(t,r);else if(r=ez(e,t,r,n),r!==null){var a=Si();gs(r,e,n,a),Sz(r,t,n)}}function mre(e,t,r){var n=Ac(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(xz(e))bz(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,r);if(a.hasEagerState=!0,a.eagerState=s,$s(s,o)){var l=t.interleaved;l===null?(a.next=a,JT(t)):(a.next=l.next,l.next=a),t.interleaved=a;return}}catch{}finally{}r=ez(e,t,a,n),r!==null&&(a=Si(),gs(r,e,n,a),Sz(r,t,n))}}function xz(e){var t=e.alternate;return e===pn||t!==null&&t===pn}function bz(e,t){Sh=Lx=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Sz(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,LT(e,r)}}var Bx={readContext:zo,useCallback:qa,useContext:qa,useEffect:qa,useImperativeHandle:qa,useInsertionEffect:qa,useLayoutEffect:qa,useMemo:qa,useReducer:qa,useRef:qa,useState:qa,useDebugValue:qa,useDeferredValue:qa,useTransition:qa,useMutableSource:qa,useSyncExternalStore:qa,useId:qa,unstable_isNewReconciler:!1},hre={readContext:zo,useCallback:function(e,t){return Ws().memoizedState=[e,t===void 0?null:t],e},useContext:zo,useEffect:oA,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Gy(4194308,4,mz.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Gy(4194308,4,e,t)},useInsertionEffect:function(e,t){return Gy(4,2,e,t)},useMemo:function(e,t){var r=Ws();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ws();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=fre.bind(null,pn,e),[n.memoizedState,e]},useRef:function(e){var t=Ws();return e={current:e},t.memoizedState=e},useState:iA,useDebugValue:lP,useDeferredValue:function(e){return Ws().memoizedState=e},useTransition:function(){var e=iA(!1),t=e[0];return e=dre.bind(null,e[1]),Ws().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=pn,a=Ws();if(ln){if(r===void 0)throw Error(gt(407));r=r()}else{if(r=t(),Ra===null)throw Error(gt(349));ld&30||iz(n,t,r)}a.memoizedState=r;var i={value:r,getSnapshot:t};return a.queue=i,oA(sz.bind(null,n,i,e),[e]),n.flags|=2048,rp(9,oz.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Ws(),t=Ra.identifierPrefix;if(ln){var r=yl,n=gl;r=(n&~(1<<32-vs(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=ep++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Us]=t,e[Qh]=n,Nz(e,t,!1,!1),t.stateNode=e;e:{switch(o=r$(r,n),r){case"dialog":Yr("cancel",e),Yr("close",e),a=n;break;case"iframe":case"object":case"embed":Yr("load",e),a=n;break;case"video":case"audio":for(a=0;am0&&(t.flags|=128,n=!0,Rm(i,!1),t.lanes=4194304)}else{if(!n)if(e=Fx(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Rm(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ln)return Xa(t),null}else 2*Mn()-i.renderingStartTime>m0&&r!==1073741824&&(t.flags|=128,n=!0,Rm(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(r=i.last,r!==null?r.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Mn(),t.sibling=null,r=fn.current,qr(fn,n?r&1|2:r&1),t):(Xa(t),null);case 22:case 23:return hP(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Yi&1073741824&&(Xa(t),t.subtreeFlags&6&&(t.flags|=8192)):Xa(t),null;case 24:return null;case 25:return null}throw Error(gt(156,t.tag))}function wre(e,t){switch(qT(t),t.tag){case 1:return Fi(t.type)&&Nx(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return d0(),en(ji),en(ui),nP(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return rP(t),null;case 13:if(en(fn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(gt(340));c0()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return en(fn),null;case 4:return d0(),null;case 10:return ZT(t.type._context),null;case 22:case 23:return hP(),null;case 24:return null;default:return null}}var Mg=!1,ti=!1,Cre=typeof WeakSet=="function"?WeakSet:Set,Dt=null;function Rf(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){wn(e,t,n)}else r.current=null}function P$(e,t,r){try{r()}catch(n){wn(e,t,n)}}var gA=!1;function Ere(e,t){if(f$=Ox,e=FB(),KT(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var o=0,s=-1,l=-1,c=0,u=0,f=e,m=null;t:for(;;){for(var h;f!==r||a!==0&&f.nodeType!==3||(s=o+a),f!==i||n!==0&&f.nodeType!==3||(l=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)m=f,f=h;for(;;){if(f===e)break t;if(m===r&&++c===a&&(s=o),m===i&&++u===n&&(l=o),(h=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=h}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(m$={focusedElem:e,selectionRange:r},Ox=!1,Dt=t;Dt!==null;)if(t=Dt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Dt=e;else for(;Dt!==null;){t=Dt;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var p=v.memoizedProps,g=v.memoizedState,y=t.stateNode,x=y.getSnapshotBeforeUpdate(t.elementType===t.type?p:is(t.type,p),g);y.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(gt(163))}}catch(S){wn(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Dt=e;break}Dt=t.return}return v=gA,gA=!1,v}function wh(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&P$(t,r,i)}a=a.next}while(a!==n)}}function Tb(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function I$(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Az(e){var t=e.alternate;t!==null&&(e.alternate=null,Az(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Us],delete t[Qh],delete t[v$],delete t[ore],delete t[sre])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Mz(e){return e.tag===5||e.tag===3||e.tag===4}function yA(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mz(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function N$(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Ix));else if(n!==4&&(e=e.child,e!==null))for(N$(e,t,r),e=e.sibling;e!==null;)N$(e,t,r),e=e.sibling}function k$(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(k$(e,t,r),e=e.sibling;e!==null;)k$(e,t,r),e=e.sibling}var za=null,os=!1;function Jl(e,t,r){for(r=r.child;r!==null;)Dz(e,t,r),r=r.sibling}function Dz(e,t,r){if(Qs&&typeof Qs.onCommitFiberUnmount=="function")try{Qs.onCommitFiberUnmount(bb,r)}catch{}switch(r.tag){case 5:ti||Rf(r,t);case 6:var n=za,a=os;za=null,Jl(e,t,r),za=n,os=a,za!==null&&(os?(e=za,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):za.removeChild(r.stateNode));break;case 18:za!==null&&(os?(e=za,r=r.stateNode,e.nodeType===8?jC(e.parentNode,r):e.nodeType===1&&jC(e,r),Kh(e)):jC(za,r.stateNode));break;case 4:n=za,a=os,za=r.stateNode.containerInfo,os=!0,Jl(e,t,r),za=n,os=a;break;case 0:case 11:case 14:case 15:if(!ti&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&P$(r,t,o),a=a.next}while(a!==n)}Jl(e,t,r);break;case 1:if(!ti&&(Rf(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){wn(r,t,s)}Jl(e,t,r);break;case 21:Jl(e,t,r);break;case 22:r.mode&1?(ti=(n=ti)||r.memoizedState!==null,Jl(e,t,r),ti=n):Jl(e,t,r);break;default:Jl(e,t,r)}}function xA(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Cre),t.forEach(function(n){var a=Rre.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function rs(e,t){var r=t.deletions;if(r!==null)for(var n=0;na&&(a=o),n&=~i}if(n=a,n=Mn()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*_re(n/1960))-n,10e?16:e,vc===null)var n=!1;else{if(e=vc,vc=null,Wx=0,wr&6)throw Error(gt(331));var a=wr;for(wr|=4,Dt=e.current;Dt!==null;){var i=Dt,o=i.child;if(Dt.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lMn()-fP?Gu(e,0):dP|=r),Li(e,t)}function Vz(e,t){t===0&&(e.mode&1?(t=_g,_g<<=1,!(_g&130023424)&&(_g=4194304)):t=1);var r=Si();e=Pl(e,t),e!==null&&(av(e,t,r),Li(e,r))}function kre(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Vz(e,r)}function Rre(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(gt(314))}n!==null&&n.delete(t),Vz(e,r)}var Uz;Uz=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||ji.current)Ri=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Ri=!1,bre(e,t,r);Ri=!!(e.flags&131072)}else Ri=!1,ln&&t.flags&1048576&&XB(t,Ax,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;qy(e,t),e=t.pendingProps;var a=l0(t,ui.current);Gf(t,r),a=iP(null,t,n,e,a,r);var i=oP();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Fi(n)?(i=!0,kx(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,eP(t),a.updater=Ob,t.stateNode=a,a._reactInternals=t,w$(t,n,e,r),t=$$(null,t,n,!0,i,r)):(t.tag=0,ln&&i&>(t),pi(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(qy(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=Mre(n),e=is(n,e),a){case 0:t=E$(null,t,n,e,r);break e;case 1:t=hA(null,t,n,e,r);break e;case 11:t=fA(null,t,n,e,r);break e;case 14:t=mA(null,t,n,is(n.type,e),r);break e}throw Error(gt(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:is(n,a),E$(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:is(n,a),hA(e,t,n,a,r);case 3:e:{if(Tz(t),e===null)throw Error(gt(387));n=t.pendingProps,i=t.memoizedState,a=i.element,tz(e,t),jx(t,n,null,r);var o=t.memoizedState;if(n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=f0(Error(gt(423)),t),t=pA(e,t,n,r,a);break e}else if(n!==a){a=f0(Error(gt(424)),t),t=pA(e,t,n,r,a);break e}else for(ro=Nc(t.stateNode.containerInfo.firstChild),oo=t,ln=!0,ls=null,r=JB(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(c0(),n===a){t=Il(e,t,r);break e}pi(e,t,n,r)}t=t.child}return t;case 5:return rz(t),e===null&&x$(t),n=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,h$(n,a)?o=null:i!==null&&h$(n,i)&&(t.flags|=32),Oz(e,t),pi(e,t,o,r),t.child;case 6:return e===null&&x$(t),null;case 13:return Pz(e,t,r);case 4:return tP(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=u0(t,null,n,r):pi(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:is(n,a),fA(e,t,n,a,r);case 7:return pi(e,t,t.pendingProps,r),t.child;case 8:return pi(e,t,t.pendingProps.children,r),t.child;case 12:return pi(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,qr(Mx,n._currentValue),n._currentValue=o,i!==null)if($s(i.value,o)){if(i.children===a.children&&!ji.current){t=Il(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=wl(-1,r&-r),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),b$(i.return,r,t),s.lanes|=r;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(gt(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),b$(o,r,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}pi(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,Gf(t,r),a=zo(a),n=n(a),t.flags|=1,pi(e,t,n,r),t.child;case 14:return n=t.type,a=is(n,t.pendingProps),a=is(n.type,a),mA(e,t,n,a,r);case 15:return $z(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:is(n,a),qy(e,t),t.tag=1,Fi(n)?(e=!0,kx(t)):e=!1,Gf(t,r),wz(t,n,a),w$(t,n,a,r),$$(null,t,n,!0,e,r);case 19:return Iz(e,t,r);case 22:return _z(e,t,r)}throw Error(gt(156,t.tag))};function Kz(e,t){return xB(e,t)}function Are(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Do(e,t,r,n){return new Are(e,t,r,n)}function vP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mre(e){if(typeof e=="function")return vP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===MT)return 11;if(e===DT)return 14}return 2}function Mc(e,t){var r=e.alternate;return r===null?(r=Do(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Qy(e,t,r,n,a,i){var o=2;if(n=e,typeof e=="function")vP(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ef:return qu(r.children,a,i,t);case AT:o=8,a|=8;break;case KE:return e=Do(12,r,t,a|2),e.elementType=KE,e.lanes=i,e;case GE:return e=Do(13,r,t,a),e.elementType=GE,e.lanes=i,e;case qE:return e=Do(19,r,t,a),e.elementType=qE,e.lanes=i,e;case rB:return Ib(r,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case eB:o=10;break e;case tB:o=9;break e;case MT:o=11;break e;case DT:o=14;break e;case lc:o=16,n=null;break e}throw Error(gt(130,e==null?e:typeof e,""))}return t=Do(o,r,t,a),t.elementType=e,t.type=n,t.lanes=i,t}function qu(e,t,r,n){return e=Do(7,e,n,t),e.lanes=r,e}function Ib(e,t,r,n){return e=Do(22,e,n,t),e.elementType=rB,e.lanes=r,e.stateNode={isHidden:!1},e}function UC(e,t,r){return e=Do(6,e,null,t),e.lanes=r,e}function KC(e,t,r){return t=Do(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Dre(e,t,r,n,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_C(0),this.expirationTimes=_C(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_C(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function gP(e,t,r,n,a,i,o,s,l){return e=new Dre(e,t,r,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Do(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},eP(i),e}function jre(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yz)}catch(e){console.error(e)}}Yz(),YL.exports=vo;var wi=YL.exports;const ap=sa(wi),Hre=FL({__proto__:null,default:ap},[wi]);var OA=wi;VE.createRoot=OA.createRoot,VE.hydrateRoot=OA.hydrateRoot;/** + * @remix-run/router v1.23.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function ip(){return ip=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function SP(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Vre(){return Math.random().toString(36).substr(2,8)}function PA(e,t){return{usr:e.state,key:e.key,idx:t}}function j$(e,t,r,n){return r===void 0&&(r=null),ip({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?z0(t):t,{state:r,key:t&&t.key||n||Vre()})}function Qz(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function z0(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Ure(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:i=!1}=n,o=a.history,s=gc.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(ip({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function f(){s=gc.Pop;let g=u(),y=g==null?null:g-c;c=g,l&&l({action:s,location:p.location,delta:y})}function m(g,y){s=gc.Push;let x=j$(p.location,g,y);r&&r(x,g),c=u()+1;let b=PA(x,c),S=p.createHref(x);try{o.pushState(b,"",S)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;a.location.assign(S)}i&&l&&l({action:s,location:p.location,delta:1})}function h(g,y){s=gc.Replace;let x=j$(p.location,g,y);r&&r(x,g),c=u();let b=PA(x,c),S=p.createHref(x);o.replaceState(b,"",S),i&&l&&l({action:s,location:p.location,delta:0})}function v(g){let y=a.location.origin!=="null"?a.location.origin:a.location.href,x=typeof g=="string"?g:Qz(g);return x=x.replace(/ $/,"%20"),na(y,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,y)}let p={get action(){return s},get location(){return e(a,o)},listen(g){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(TA,f),l=g,()=>{a.removeEventListener(TA,f),l=null}},createHref(g){return t(a,g)},createURL:v,encodeLocation(g){let y=v(g);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:m,replace:h,go(g){return o.go(g)}};return p}var IA;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(IA||(IA={}));function Kre(e,t,r){return r===void 0&&(r="/"),Gre(e,t,r,!1)}function Gre(e,t,r,n){let a=typeof t=="string"?z0(t):t,i=e7(a.pathname||"/",r);if(i==null)return null;let o=Zz(e);qre(o);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(na(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=Xu([n,l.relativePath]),u=r.concat(l);i.children&&i.children.length>0&&(na(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Zz(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:tne(c,i.index),routesMeta:u})};return e.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))a(i,o);else for(let l of Jz(i.path))a(i,o,l)}),t}function Jz(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return a?[i,""]:[i];let o=Jz(n.join("/")),s=[];return s.push(...o.map(l=>l===""?i:[i,l].join("/"))),a&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function qre(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:rne(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Xre=/^:[\w-]+$/,Yre=3,Qre=2,Zre=1,Jre=10,ene=-2,NA=e=>e==="*";function tne(e,t){let r=e.split("/"),n=r.length;return r.some(NA)&&(n+=ene),t&&(n+=Qre),r.filter(a=>!NA(a)).reduce((a,i)=>a+(Xre.test(i)?Yre:i===""?Zre:Jre),n)}function rne(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function nne(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},i="/",o=[];for(let s=0;s{let{paramName:m,isOptional:h}=u;if(m==="*"){let p=s[f]||"";o=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}const v=s[f];return h&&!v?c[m]=void 0:c[m]=(v||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:o,pattern:e}}function ane(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),SP(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function ine(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return SP(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function e7(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const one=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sne=e=>one.test(e);function lne(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?z0(e):e,i;if(r)if(sne(r))i=r;else{if(r.includes("//")){let o=r;r=r.replace(/\/\/+/g,"/"),SP(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+r))}r.startsWith("/")?i=RA(r.substring(1),"/"):i=RA(r,t)}else i=t;return{pathname:i,search:dne(n),hash:fne(a)}}function RA(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function GC(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function cne(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function t7(e,t){let r=cne(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function r7(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=z0(e):(a=ip({},e),na(!a.pathname||!a.pathname.includes("?"),GC("?","pathname","search",a)),na(!a.pathname||!a.pathname.includes("#"),GC("#","pathname","hash",a)),na(!a.search||!a.search.includes("#"),GC("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,s;if(o==null)s=r;else{let f=t.length-1;if(!n&&o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),f-=1;a.pathname=m.join("/")}s=f>=0?t[f]:"/"}let l=lne(a,s),c=o&&o!=="/"&&o.endsWith("/"),u=(i||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Xu=e=>e.join("/").replace(/\/\/+/g,"/"),une=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),dne=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fne=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function mne(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const n7=["post","put","patch","delete"];new Set(n7);const hne=["get",...n7];new Set(hne);/** + * React Router v6.30.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function op(){return op=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),d.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){n.go(c);return}let f=r7(c,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Xu([t,f.pathname])),(u.replace?n.replace:n.push)(f,u.state,u)},[t,n,o,i,e])}function gne(){let{matches:e}=d.useContext(ou),t=e[e.length-1];return t?t.params:{}}function yne(e,t){return xne(e,t)}function xne(e,t,r,n){cv()||na(!1);let{navigator:a}=d.useContext(lv),{matches:i}=d.useContext(ou),o=i[i.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=H0(),u;if(t){var f;let g=typeof t=="string"?z0(t):t;l==="/"||(f=g.pathname)!=null&&f.startsWith(l)||na(!1),u=g}else u=c;let m=u.pathname||"/",h=m;if(l!=="/"){let g=l.replace(/^\//,"").split("/");h="/"+m.replace(/^\//,"").split("/").slice(g.length).join("/")}let v=Kre(e,{pathname:h}),p=Ene(v&&v.map(g=>Object.assign({},g,{params:Object.assign({},s,g.params),pathname:Xu([l,a.encodeLocation?a.encodeLocation(g.pathname).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?l:Xu([l,a.encodeLocation?a.encodeLocation(g.pathnameBase).pathname:g.pathnameBase])})),i,r,n);return t&&p?d.createElement(Mb.Provider,{value:{location:op({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:gc.Pop}},p):p}function bne(){let e=Tne(),t=mne(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),r?d.createElement("pre",{style:a},r):null,i)}const Sne=d.createElement(bne,null);class wne extends d.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?d.createElement(ou.Provider,{value:this.props.routeContext},d.createElement(a7.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Cne(e){let{routeContext:t,match:r,children:n}=e,a=d.useContext(wP);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),d.createElement(ou.Provider,{value:t},n)}function Ene(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if(!r)return null;if(r.errors)e=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,s=(a=r)==null?void 0:a.errors;if(s!=null){let u=o.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);u>=0||na(!1),o=o.slice(0,Math.min(o.length,u+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let u=0;u=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,f,m)=>{let h,v=!1,p=null,g=null;r&&(h=s&&f.route.id?s[f.route.id]:void 0,p=f.route.errorElement||Sne,l&&(c<0&&m===0?(Ine("route-fallback",!1),v=!0,g=null):c===m&&(v=!0,g=f.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,m+1)),x=()=>{let b;return h?b=p:v?b=g:f.route.Component?b=d.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=u,d.createElement(Cne,{match:f,routeContext:{outlet:u,matches:y,isDataRoute:r!=null},children:b})};return r&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?d.createElement(wne,{location:r.location,revalidation:r.revalidation,component:p,error:h,children:x(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):x()},null)}var o7=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(o7||{}),Kx=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Kx||{});function $ne(e){let t=d.useContext(wP);return t||na(!1),t}function _ne(e){let t=d.useContext(pne);return t||na(!1),t}function One(e){let t=d.useContext(ou);return t||na(!1),t}function s7(e){let t=One(),r=t.matches[t.matches.length-1];return r.route.id||na(!1),r.route.id}function Tne(){var e;let t=d.useContext(a7),r=_ne(Kx.UseRouteError),n=s7(Kx.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function Pne(){let{router:e}=$ne(o7.UseNavigateStable),t=s7(Kx.UseNavigateStable),r=d.useRef(!1);return i7(()=>{r.current=!0}),d.useCallback(function(a,i){i===void 0&&(i={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,op({fromRouteId:t},i)))},[e,t])}const AA={};function Ine(e,t,r){!t&&!AA[e]&&(AA[e]=!0)}function Nne(e,t){e==null||e.v7_startTransition,(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}function F$(e){let{to:t,replace:r,state:n,relative:a}=e;cv()||na(!1);let{future:i,static:o}=d.useContext(lv),{matches:s}=d.useContext(ou),{pathname:l}=H0(),c=Xo(),u=r7(t,t7(s,i.v7_relativeSplatPath),l,a==="path"),f=JSON.stringify(u);return d.useEffect(()=>c(JSON.parse(f),{replace:r,state:n,relative:a}),[c,f,a,r,n]),null}function bn(e){na(!1)}function kne(e){let{basename:t="/",children:r=null,location:n,navigationType:a=gc.Pop,navigator:i,static:o=!1,future:s}=e;cv()&&na(!1);let l=t.replace(/^\/*/,"/"),c=d.useMemo(()=>({basename:l,navigator:i,static:o,future:op({v7_relativeSplatPath:!1},s)}),[l,s,i,o]);typeof n=="string"&&(n=z0(n));let{pathname:u="/",search:f="",hash:m="",state:h=null,key:v="default"}=n,p=d.useMemo(()=>{let g=e7(u,l);return g==null?null:{location:{pathname:g,search:f,hash:m,state:h,key:v},navigationType:a}},[l,u,f,m,h,v,a]);return p==null?null:d.createElement(lv.Provider,{value:c},d.createElement(Mb.Provider,{children:r,value:p}))}function MA(e){let{children:t,location:r}=e;return yne(L$(t),r)}new Promise(()=>{});function L$(e,t){t===void 0&&(t=[]);let r=[];return d.Children.forEach(e,(n,a)=>{if(!d.isValidElement(n))return;let i=[...t,a];if(n.type===d.Fragment){r.push.apply(r,L$(n.props.children,i));return}n.type!==bn&&na(!1),!n.props.index||!n.props.children||na(!1);let o={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=L$(n.props.children,i)),r.push(o)}),r}/** + * React Router DOM v6.30.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */const Rne="6";try{window.__reactRouterVersion=Rne}catch{}const Ane="startTransition",DA=F0[Ane];function Mne(e){let{basename:t,children:r,future:n,window:a}=e,i=d.useRef();i.current==null&&(i.current=Wre({window:a,v5Compat:!0}));let o=i.current,[s,l]=d.useState({action:o.action,location:o.location}),{v7_startTransition:c}=n||{},u=d.useCallback(f=>{c&&DA?DA(()=>l(f)):l(f)},[l,c]);return d.useLayoutEffect(()=>o.listen(u),[o,u]),d.useEffect(()=>Nne(n),[n]),d.createElement(kne,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:o,future:n})}var jA;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(jA||(jA={}));var FA;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(FA||(FA={}));var l7={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",o=0;o1&&arguments[1]!==void 0?arguments[1]:{},r=[];return ve.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(ha(n)):c7(n)&&n.props?r=r.concat(ha(n.props.children,t)):r.push(n))}),r}var B$={},Bne=function(t){};function zne(e,t){}function Hne(e,t){}function Wne(){B$={}}function u7(e,t,r){!t&&!B$[r]&&(e(!1,r),B$[r]=!0)}function Br(e,t){u7(zne,e,t)}function Vne(e,t){u7(Hne,e,t)}Br.preMessage=Bne;Br.resetWarned=Wne;Br.noteOnce=Vne;function Une(e,t){if(bt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(bt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d7(e){var t=Une(e,"string");return bt(t)=="symbol"?t:t+""}function ee(e,t,r){return(t=d7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ae(e){for(var t=1;t=19)return!0;var a=qC.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((r=a.prototype)!==null&&r!==void 0&&r.render)&&a.$$typeof!==qC.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==qC.ForwardRef)};function $P(e){return d.isValidElement(e)&&!c7(e)}var Xne=function(t){return $P(t)&&_s(t)},su=function(t){if(t&&$P(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},z$=d.createContext(null);function Yne(e){var t=e.children,r=e.onBatchResize,n=d.useRef(0),a=d.useRef([]),i=d.useContext(z$),o=d.useCallback(function(s,l,c){n.current+=1;var u=n.current;a.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===n.current&&(r==null||r(a.current),a.current=[])}),i==null||i(s,l,c)},[r,i]);return d.createElement(z$.Provider,{value:o},t)}var h7=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(a,i){return a[0]===r?(n=i,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),a=this.__entries__[n];return a&&a[1]},t.prototype.set=function(r,n){var a=e(this.__entries__,r);~a?this.__entries__[a][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,a=e(n,r);~a&&n.splice(a,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var a=0,i=this.__entries__;a0},e.prototype.connect_=function(){!H$||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),rae?(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(){!H$||!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 r=t.propertyName,n=r===void 0?"":r,a=tae.some(function(i){return!!~n.indexOf(i)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),p7=function(e,t){for(var r=0,n=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof h0(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new dae(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 h0(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.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(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new fae(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),g7=typeof WeakMap<"u"?new WeakMap:new h7,y7=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 r=nae.getInstance(),n=new mae(t,r,this);g7.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){y7.prototype[e]=function(){var t;return(t=g7.get(this))[e].apply(t,arguments)}});var hae=function(){return typeof Gx.ResizeObserver<"u"?Gx.ResizeObserver:y7}(),yc=new Map;function pae(e){e.forEach(function(t){var r,n=t.target;(r=yc.get(n))===null||r===void 0||r.forEach(function(a){return a(n)})})}var x7=new hae(pae);function vae(e,t){yc.has(e)||(yc.set(e,new Set),x7.observe(e)),yc.get(e).add(t)}function gae(e,t){yc.has(e)&&(yc.get(e).delete(t),yc.get(e).size||(x7.unobserve(e),yc.delete(e)))}function Wr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zA(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=Array(t);r1&&arguments[1]!==void 0?arguments[1]:1;HA+=1;var n=HA;function a(i){if(i===0)E7(n),t();else{var o=w7(function(){a(i-1)});OP.set(n,o)}}return a(r),n};Ut.cancel=function(e){var t=OP.get(e);return E7(e),C7(t)};function $7(e){if(Array.isArray(e))return e}function $ae(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,a=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function _7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function me(e,t){return $7(e)||$ae(e,t)||_P(e,t)||_7()}function up(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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)}function Ma(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function V$(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var WA="data-rc-order",VA="data-rc-priority",_ae="rc-util-key",U$=new Map;function O7(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):_ae}function qb(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Oae(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function TP(e){return Array.from((U$.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function T7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ma())return null;var r=t.csp,n=t.prepend,a=t.priority,i=a===void 0?0:a,o=Oae(n),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(WA,o),s&&i&&l.setAttribute(VA,"".concat(i)),r!=null&&r.nonce&&(l.nonce=r==null?void 0:r.nonce),l.innerHTML=e;var c=qb(t),u=c.firstChild;if(n){if(s){var f=(t.styles||TP(c)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(WA)))return!1;var h=Number(m.getAttribute(VA)||0);return i>=h});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function P7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=qb(t);return(t.styles||TP(r)).find(function(n){return n.getAttribute(O7(t))===e})}function dp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=P7(e,t);if(r){var n=qb(t);n.removeChild(r)}}function Tae(e,t){var r=U$.get(e);if(!r||!V$(document,r)){var n=T7("",t),a=n.parentNode;U$.set(e,a),e.removeChild(n)}}function Cl(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=qb(r),a=TP(n),i=ae(ae({},r),{},{styles:a});Tae(n,i);var o=P7(t,i);if(o){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;o.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var u=T7(e,i);return u.setAttribute(O7(i),t),u}function Pae(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Rt(e,t){if(e==null)return{};var r,n,a=Pae(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function a(i,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(i);if(Br(!l,"Warning: There may be circular references"),l)return!1;if(i===o)return!0;if(r&&s>1)return!1;n.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(o)||i.length!==o.length)return!1;for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return r.forEach(function(s){if(!o)o=void 0;else{var l;o=(l=o)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(n=o)!==null&&n!==void 0&&n.value&&i&&(o.value[1]=this.cacheCallTimes++),(a=o)===null||a===void 0?void 0:a.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var a=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var f=me(c,2),m=f[1];return a.internalGet(u)[1]0,void 0),UA+=1}return Vr(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,a){return a(r,n)},void 0)}}]),e}(),XC=new PP;function G$(e){var t=Array.isArray(e)?e:[e];return XC.has(t)||XC.set(t,new I7(t)),XC.get(t)}var Aae=new WeakMap,YC={};function Mae(e,t){for(var r=Aae,n=0;n3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var i=ae(ae({},n),{},ee(ee({},p0,t),ys,r)),o=Object.keys(i).map(function(s){var l=i[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"")}var Jy=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Dae=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(a){var i=me(a,2),o=i[0],s=i[1];return"".concat(o,":").concat(s,";")}).join(""),"}"):""},N7=function(t,r,n){var a={},i={};return Object.entries(t).forEach(function(o){var s,l,c=me(o,2),u=c[0],f=c[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[u])i[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[u])){var m,h=Jy(u,n==null?void 0:n.prefix);a[h]=typeof f=="number"&&!(n!=null&&(m=n.unitless)!==null&&m!==void 0&&m[u])?"".concat(f,"px"):String(f),i[u]="var(".concat(h,")")}}),[i,Dae(a,r,{scope:n==null?void 0:n.scope})]},qA=Ma()?d.useLayoutEffect:d.useEffect,Gt=function(t,r){var n=d.useRef(!0);qA(function(){return t(n.current)},r),qA(function(){return n.current=!1,function(){n.current=!0}},[])},Yu=function(t,r){Gt(function(n){if(!n)return t()},r)},jae=ae({},F0),XA=jae.useInsertionEffect,Fae=function(t,r,n){d.useMemo(t,n),Gt(function(){return r(!0)},n)},Lae=XA?function(e,t,r){return XA(function(){return e(),t()},r)}:Fae,Bae=ae({},F0),zae=Bae.useInsertionEffect,Hae=function(t){var r=[],n=!1;function a(i){n||r.push(i)}return d.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(i){return i()})}},t),a},Wae=function(){return function(t){t()}},Vae=typeof zae<"u"?Hae:Wae;function IP(e,t,r,n,a){var i=d.useContext(dv),o=i.cache,s=[e].concat(De(t)),l=K$(s),c=Vae([l]),u=function(v){o.opUpdate(l,function(p){var g=p||[void 0,void 0],y=me(g,2),x=y[0],b=x===void 0?0:x,S=y[1],w=S,E=w||r(),C=[b,E];return v?v(C):C})};d.useMemo(function(){u()},[l]);var f=o.opGet(l),m=f[1];return Lae(function(){a==null||a(m)},function(h){return u(function(v){var p=me(v,2),g=p[0],y=p[1];return h&&g===0&&(a==null||a(m)),[g+1,y]}),function(){o.opUpdate(l,function(v){var p=v||[],g=me(p,2),y=g[0],x=y===void 0?0:y,b=g[1],S=x-1;return S===0?(c(function(){(h||!o.opGet(l))&&(n==null||n(b,!1))}),null):[x-1,b]})}},[l]),m}var Uae={},Kae="css",Nu=new Map;function Gae(e){Nu.set(e,(Nu.get(e)||0)+1)}function qae(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(p0,'="').concat(e,'"]'));r.forEach(function(n){if(n[xc]===t){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}})}}var Xae=0;function Yae(e,t){Nu.set(e,(Nu.get(e)||0)-1);var r=new Set;Nu.forEach(function(n,a){n<=0&&r.add(a)}),Nu.size-r.size>Xae&&r.forEach(function(n){qae(n,t),Nu.delete(n)})}var Qae=function(t,r,n,a){var i=n.getDerivativeToken(t),o=ae(ae({},i),r);return a&&(o=a(o)),o},k7="token";function Zae(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=d.useContext(dv),a=n.cache.instanceId,i=n.container,o=r.salt,s=o===void 0?"":o,l=r.override,c=l===void 0?Uae:l,u=r.formatToken,f=r.getComputedToken,m=r.cssVar,h=Mae(function(){return Object.assign.apply(Object,[{}].concat(De(t)))},t),v=$h(h),p=$h(c),g=m?$h(m):"",y=IP(k7,[s,e.id,v,p,g],function(){var x,b=f?f(h,c,e):Qae(h,c,e,u),S=ae({},b),w="";if(m){var E=N7(b,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),C=me(E,2);b=C[0],w=C[1]}var O=GA(b,s);b._tokenKey=O,S._tokenKey=GA(S,s);var _=(x=m==null?void 0:m.key)!==null&&x!==void 0?x:O;b._themeKey=_,Gae(_);var T="".concat(Kae,"-").concat(up(O));return b._hashId=T,[b,T,S,w,(m==null?void 0:m.key)||""]},function(x){Yae(x[0]._themeKey,a)},function(x){var b=me(x,4),S=b[0],w=b[3];if(m&&w){var E=Cl(w,up("css-variables-".concat(S._themeKey)),{mark:ys,prepend:"queue",attachTo:i,priority:-999});E[xc]=a,E.setAttribute(p0,S._themeKey)}});return y}var Jae=function(t,r,n){var a=me(t,5),i=a[2],o=a[3],s=a[4],l=n||{},c=l.plain;if(!o)return null;var u=i._tokenKey,f=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},h=Xx(o,s,u,m,c);return[f,u,h]},eie={animationIterationCount: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},R7="comm",A7="rule",M7="decl",tie="@import",rie="@namespace",nie="@keyframes",aie="@layer",D7=Math.abs,NP=String.fromCharCode;function j7(e){return e.trim()}function ex(e,t,r){return e.replace(t,r)}function iie(e,t,r){return e.indexOf(t,r)}function Xf(e,t){return e.charCodeAt(t)|0}function v0(e,t,r){return e.slice(t,r)}function Vs(e){return e.length}function oie(e){return e.length}function Fg(e,t){return t.push(e),e}var Xb=1,g0=1,F7=0,Wo=0,Jn=0,W0="";function kP(e,t,r,n,a,i,o,s){return{value:e,root:t,parent:r,type:n,props:a,children:i,line:Xb,column:g0,length:o,return:"",siblings:s}}function sie(){return Jn}function lie(){return Jn=Wo>0?Xf(W0,--Wo):0,g0--,Jn===10&&(g0=1,Xb--),Jn}function xs(){return Jn=Wo2||fp(Jn)>3?"":" "}function fie(e,t){for(;--t&&xs()&&!(Jn<48||Jn>102||Jn>57&&Jn<65||Jn>70&&Jn<97););return Yb(e,tx()+(t<6&&bc()==32&&xs()==32))}function X$(e){for(;xs();)switch(Jn){case e:return Wo;case 34:case 39:e!==34&&e!==39&&X$(Jn);break;case 40:e===41&&X$(e);break;case 92:xs();break}return Wo}function mie(e,t){for(;xs()&&e+Jn!==47+10;)if(e+Jn===42+42&&bc()===47)break;return"/*"+Yb(t,Wo-1)+"*"+NP(e===47?e:xs())}function hie(e){for(;!fp(bc());)xs();return Yb(e,Wo)}function pie(e){return uie(rx("",null,null,null,[""],e=cie(e),0,[0],e))}function rx(e,t,r,n,a,i,o,s,l){for(var c=0,u=0,f=o,m=0,h=0,v=0,p=1,g=1,y=1,x=0,b="",S=a,w=i,E=n,C=b;g;)switch(v=x,x=xs()){case 40:if(v!=108&&Xf(C,f-1)==58){iie(C+=ex(QC(x),"&","&\f"),"&\f",D7(c?s[c-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:C+=QC(x);break;case 9:case 10:case 13:case 32:C+=die(v);break;case 92:C+=fie(tx()-1,7);continue;case 47:switch(bc()){case 42:case 47:Fg(vie(mie(xs(),tx()),t,r,l),l),(fp(v||1)==5||fp(bc()||1)==5)&&Vs(C)&&v0(C,-1,void 0)!==" "&&(C+=" ");break;default:C+="/"}break;case 123*p:s[c++]=Vs(C)*y;case 125*p:case 59:case 0:switch(x){case 0:case 125:g=0;case 59+u:y==-1&&(C=ex(C,/\f/g,"")),h>0&&(Vs(C)-f||p===0&&v===47)&&Fg(h>32?QA(C+";",n,r,f-1,l):QA(ex(C," ","")+";",n,r,f-2,l),l);break;case 59:C+=";";default:if(Fg(E=YA(C,t,r,c,u,a,s,b,S=[],w=[],f,i),i),x===123)if(u===0)rx(C,t,E,E,S,i,f,s,w);else{switch(m){case 99:if(Xf(C,3)===110)break;case 108:if(Xf(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?rx(e,E,E,n&&Fg(YA(e,E,E,0,0,a,s,b,a,S=[],f,w),w),a,w,f,s,n?S:w):rx(C,E,E,E,[""],w,0,s,w)}}c=u=h=0,p=y=1,b=C="",f=o;break;case 58:f=1+Vs(C),h=v;default:if(p<1){if(x==123)--p;else if(x==125&&p++==0&&lie()==125)continue}switch(C+=NP(x),x*p){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Vs(C)-1)*y,y=1;break;case 64:bc()===45&&(C+=QC(xs())),m=bc(),u=f=Vs(b=C+=hie(tx())),x++;break;case 45:v===45&&Vs(C)==2&&(p=0)}}return i}function YA(e,t,r,n,a,i,o,s,l,c,u,f){for(var m=a-1,h=a===0?i:[""],v=oie(h),p=0,g=0,y=0;p0?h[x]+" "+b:ex(b,/&\f/g,h[x])))&&(l[y++]=S);return kP(e,t,r,a===0?A7:s,l,c,u,f)}function vie(e,t,r,n){return kP(e,t,r,R7,NP(sie()),v0(e,2,-2),0,n)}function QA(e,t,r,n,a){return kP(e,t,r,M7,v0(e,0,n),v0(e,n+1,-1),n,a)}function Y$(e,t){for(var r="",n=0;n1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=n.root,i=n.injectHash,o=n.parentSelectors,s=r.hashId,l=r.layer;r.path;var c=r.hashPriority,u=r.transformers,f=u===void 0?[]:u;r.linters;var m="",h={};function v(y){var x=y.getName(s);if(!h[x]){var b=e(y.style,r,{root:!1,parentSelectors:o}),S=me(b,1),w=S[0];h[x]="@keyframes ".concat(y.getName(s)).concat(w)}}function p(y){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y.forEach(function(b){Array.isArray(b)?p(b,x):b&&x.push(b)}),x}var g=p(Array.isArray(t)?t:[t]);return g.forEach(function(y){var x=typeof y=="string"&&!a?{}:y;if(typeof x=="string")m+="".concat(x,` +`);else if(x._keyframe)v(x);else{var b=f.reduce(function(S,w){var E;return(w==null||(E=w.visit)===null||E===void 0?void 0:E.call(w,S))||S},x);Object.keys(b).forEach(function(S){var w=b[S];if(bt(w)==="object"&&w&&(S!=="animationName"||!w._keyframe)&&!wie(w)){var E=!1,C=S.trim(),O=!1;(a||i)&&s?C.startsWith("@")?E=!0:C==="&"?C=JA("",s,c):C=JA(S,s,c):a&&!s&&(C==="&"||C==="")&&(C="",O=!0);var _=e(w,r,{root:O,injectHash:E,parentSelectors:[].concat(De(o),[C])}),T=me(_,2),I=T[0],N=T[1];h=ae(ae({},h),N),m+="".concat(C).concat(I)}else{let A=function(j,F){var M=j.replace(/[A-Z]/g,function(K){return"-".concat(K.toLowerCase())}),V=F;!eie[j]&&typeof V=="number"&&V!==0&&(V="".concat(V,"px")),j==="animationName"&&F!==null&&F!==void 0&&F._keyframe&&(v(F),V=F.getName(s)),m+="".concat(M,":").concat(V,";")};var R=A,D,k=(D=w==null?void 0:w.value)!==null&&D!==void 0?D:w;bt(w)==="object"&&w!==null&&w!==void 0&&w[z7]&&Array.isArray(k)?k.forEach(function(j){A(S,j)}):A(S,k)}})}}),a?l&&(m&&(m="@layer ".concat(l.name," {").concat(m,"}")),l.dependencies&&(h["@layer ".concat(l.name)]=l.dependencies.map(function(y){return"@layer ".concat(y,", ").concat(l.name,";")}).join(` +`))):m="{".concat(m,"}"),[m,h]};function H7(e,t){return up("".concat(e.join("%")).concat(t))}function Eie(){return null}var W7="style";function Q$(e,t){var r=e.token,n=e.path,a=e.hashId,i=e.layer,o=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=d.useContext(dv),f=u.autoClear;u.mock;var m=u.defaultCache,h=u.hashPriority,v=u.container,p=u.ssrInline,g=u.transformers,y=u.linters,x=u.cache,b=u.layer,S=r._tokenKey,w=[S];b&&w.push("layer"),w.push.apply(w,De(n));var E=q$,C=IP(W7,w,function(){var N=w.join("|");if(xie(N)){var D=bie(N),k=me(D,2),R=k[0],A=k[1];if(R)return[R,S,A,{},s,c]}var j=t(),F=Cie(j,{hashId:a,hashPriority:h,layer:b?i:void 0,path:n.join("-"),transformers:g,linters:y}),M=me(F,2),V=M[0],K=M[1],L=nx(V),B=H7(w,L);return[L,S,B,K,s,c]},function(N,D){var k=me(N,3),R=k[2];(D||f)&&q$&&dp(R,{mark:ys,attachTo:v})},function(N){var D=me(N,4),k=D[0];D[1];var R=D[2],A=D[3];if(E&&k!==L7){var j={mark:ys,prepend:b?!1:"queue",attachTo:v,priority:c},F=typeof o=="function"?o():o;F&&(j.csp={nonce:F});var M=[],V=[];Object.keys(A).forEach(function(L){L.startsWith("@layer")?M.push(L):V.push(L)}),M.forEach(function(L){Cl(nx(A[L]),"_layer-".concat(L),ae(ae({},j),{},{prepend:!0}))});var K=Cl(k,R,j);K[xc]=x.instanceId,K.setAttribute(p0,S),V.forEach(function(L){Cl(nx(A[L]),"_effect-".concat(L),j)})}}),O=me(C,3),_=O[0],T=O[1],I=O[2];return function(N){var D;return!p||E||!m?D=d.createElement(Eie,null):D=d.createElement("style",Te({},ee(ee({},p0,T),ys,I),{dangerouslySetInnerHTML:{__html:_}})),d.createElement(d.Fragment,null,D,N)}}var $ie=function(t,r,n){var a=me(t,6),i=a[0],o=a[1],s=a[2],l=a[3],c=a[4],u=a[5],f=n||{},m=f.plain;if(c)return null;var h=i,v={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return h=Xx(i,o,s,v,m),l&&Object.keys(l).forEach(function(p){if(!r[p]){r[p]=!0;var g=nx(l[p]),y=Xx(g,o,"_effect-".concat(p),v,m);p.startsWith("@layer")?h=y+h:h+=y}}),[u,s,h]},V7="cssVar",_ie=function(t,r){var n=t.key,a=t.prefix,i=t.unitless,o=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=d.useContext(dv),f=u.cache.instanceId,m=u.container,h=s._tokenKey,v=[].concat(De(t.path),[n,c,h]),p=IP(V7,v,function(){var g=r(),y=N7(g,n,{prefix:a,unitless:i,ignore:o,scope:c}),x=me(y,2),b=x[0],S=x[1],w=H7(v,S);return[b,S,w,n]},function(g){var y=me(g,3),x=y[2];q$&&dp(x,{mark:ys,attachTo:m})},function(g){var y=me(g,3),x=y[1],b=y[2];if(x){var S=Cl(x,b,{mark:ys,prepend:"queue",attachTo:m,priority:-999});S[xc]=f,S.setAttribute(p0,n)}});return p},Oie=function(t,r,n){var a=me(t,4),i=a[1],o=a[2],s=a[3],l=n||{},c=l.plain;if(!i)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},m=Xx(i,s,o,f,c);return[u,o,m]};ee(ee(ee({},W7,$ie),k7,Jae),V7,Oie);var fr=function(){function e(t,r){Wr(this,e),ee(this,"name",void 0),ee(this,"style",void 0),ee(this,"_keyframe",!0),this.name=t,this.style=r}return Vr(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function rf(e){return e.notSplit=!0,e}rf(["borderTop","borderBottom"]),rf(["borderTop"]),rf(["borderBottom"]),rf(["borderLeft","borderRight"]),rf(["borderLeft"]),rf(["borderRight"]);var Tie=d.createContext({});const RP=Tie;function U7(e){return $7(e)||S7(e)||_P(e)||_7()}function yi(e,t){for(var r=e,n=0;n3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!yi(e,t.slice(0,-1))?e:K7(e,t,r,n)}function Pie(e){return bt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function eM(e){return Array.isArray(e)?[]:{}}var Iie=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Mf(){for(var e=arguments.length,t=new Array(e),r=0;r{const e=()=>{};return e.deprecated=Nie,e},G7=d.createContext(void 0);var q7={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},Rie={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Aie=ae(ae({},Rie),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",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"});const Mie={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},X7=Mie,Die={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Aie),timePickerLocale:Object.assign({},X7)},Yx=Die,Ki="${label} is not a valid ${type}",jie={locale:"en",Pagination:q7,DatePicker:Yx,TimePicker:X7,Calendar:Yx,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ki,method:Ki,array:Ki,object:Ki,number:Ki,date:Ki,boolean:Ki,integer:Ki,float:Ki,regexp:Ki,email:Ki,url:Ki,hex:Ki},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},Vo=jie;let ax=Object.assign({},Vo.Modal),ix=[];const tM=()=>ix.reduce((e,t)=>Object.assign(Object.assign({},e),t),Vo.Modal);function Fie(e){if(e){const t=Object.assign({},e);return ix.push(t),ax=tM(),()=>{ix=ix.filter(r=>r!==t),ax=tM()}}ax=Object.assign({},Vo.Modal)}function Y7(){return ax}const Lie=d.createContext(void 0),AP=Lie,Bie=(e,t)=>{const r=d.useContext(AP),n=d.useMemo(()=>{var i;const o=t||Vo[e],s=(i=r==null?void 0:r[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof o=="function"?o():o),s||{})},[e,t,r]),a=d.useMemo(()=>{const i=r==null?void 0:r.locale;return r!=null&&r.exist&&!i?Vo.locale:i},[r]);return[n,a]},Hi=Bie,zie="internalMark",Hie=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;d.useEffect(()=>Fie(t==null?void 0:t.Modal),[t]);const a=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(AP.Provider,{value:a},r)},Wie=Hie,Q7={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"},Vie=Object.assign(Object.assign({},Q7),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",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'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),mp=Vie,Ea=Math.round;function ZC(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)n[a]=t(n[a]||0,r[a]||"",a);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const rM=(e,t,r)=>r===0?e:e/100;function Mm(e,t){const r=t||255;return e>r?r:e<0?0:e}class lr{constructor(t){ee(this,"isValid",!0),ee(this,"r",0),ee(this,"g",0),ee(this,"b",0),ee(this,"a",1),ee(this,"_h",void 0),ee(this,"_s",void 0),ee(this,"_l",void 0),ee(this,"_v",void 0),ee(this,"_max",void 0),ee(this,"_min",void 0),ee(this,"_brightness",void 0);function r(a){return a[0]in t&&a[1]in t&&a[2]in t}if(t)if(typeof t=="string"){let i=function(o){return a.startsWith(o)};var n=i;const a=t.trim();/^#?[A-F\d]{3,8}$/i.test(a)?this.fromHexString(a):i("rgb")?this.fromRgbString(a):i("hsl")?this.fromHslString(a):(i("hsv")||i("hsb"))&&this.fromHsvString(a)}else if(t instanceof lr)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=Mm(t.r),this.g=Mm(t.g),this.b=Mm(t.b),this.a=typeof t.a=="number"?Mm(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){const o=i/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),a=t(this.b);return .2126*r+.7152*n+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Ea(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),n=this.getSaturation();let a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:r,s:n,l:a,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:r,s:n,l:a,a:this.a})}mix(t,r=50){const n=this._c(t),a=r/100,i=s=>(n[s]-this[s])*a+this[s],o={r:Ea(i("r")),g:Ea(i("g")),b:Ea(i("b")),a:Ea(i("a")*100)/100};return this._c(o)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),n=this.a+r.a*(1-this.a),a=i=>Ea((this[i]*this.a+r[i]*r.a*(1-this.a))/n);return this._c({r:a("r"),g:a("g"),b:a("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=Ea(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=Ea(this.getSaturation()*100),n=Ea(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){const a=this.clone();return a[t]=Mm(r,n),a}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function n(a,i){return parseInt(r[a]+r[i||a],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof a=="number"?a:1,r<=0){const m=Ea(n*255);this.r=m,this.g=m,this.b=m}let i=0,o=0,s=0;const l=t/60,c=(1-Math.abs(2*n-1))*r,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,o=u):l>=1&&l<2?(i=u,o=c):l>=2&&l<3?(o=c,s=u):l>=3&&l<4?(o=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);const f=n-c/2;this.r=Ea((i+f)*255),this.g=Ea((o+f)*255),this.b=Ea((s+f)*255)}fromHsv({h:t,s:r,v:n,a}){this._h=t%360,this._s=r,this._v=n,this.a=typeof a=="number"?a:1;const i=Ea(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;const o=t/60,s=Math.floor(o),l=o-s,c=Ea(n*(1-r)*255),u=Ea(n*(1-r*l)*255),f=Ea(n*(1-r*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const r=ZC(t,rM);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=ZC(t,rM);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=ZC(t,(n,a)=>a.includes("%")?Ea(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var Lg=2,nM=.16,Uie=.05,Kie=.05,Gie=.15,Z7=5,J7=4,qie=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function aM(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Lg*t:Math.round(e.h)+Lg*t:n=r?Math.round(e.h)+Lg*t:Math.round(e.h)-Lg*t,n<0?n+=360:n>=360&&(n-=360),n}function iM(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-nM*t:t===J7?n=e.s+nM:n=e.s+Uie*t,n>1&&(n=1),r&&t===Z7&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function oM(e,t,r){var n;return r?n=e.v+Kie*t:n=e.v-Gie*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function hp(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new lr(e),a=n.toHsv(),i=Z7;i>0;i-=1){var o=new lr({h:aM(a,i,!0),s:iM(a,i,!0),v:oM(a,i,!0)});r.push(o)}r.push(n);for(var s=1;s<=J7;s+=1){var l=new lr({h:aM(a,s),s:iM(a,s),v:oM(a,s)});r.push(l)}return t.theme==="dark"?qie.map(function(c){var u=c.index,f=c.amount;return new lr(t.backgroundColor||"#141414").mix(r[u],f).toHexString()}):r.map(function(c){return c.toHexString()})}var Yf={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Z$=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Z$.primary=Z$[5];var J$=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];J$.primary=J$[5];var e_=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];e_.primary=e_[5];var Qx=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Qx.primary=Qx[5];var t_=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];t_.primary=t_[5];var r_=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];r_.primary=r_[5];var n_=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];n_.primary=n_[5];var a_=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];a_.primary=a_[5];var y0=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];y0.primary=y0[5];var i_=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];i_.primary=i_[5];var o_=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];o_.primary=o_[5];var s_=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];s_.primary=s_[5];var l_=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];l_.primary=l_[5];var JC={red:Z$,volcano:J$,orange:e_,gold:Qx,yellow:t_,lime:r_,green:n_,cyan:a_,blue:y0,geekblue:i_,purple:o_,magenta:s_,grey:l_};function Xie(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){const{colorSuccess:n,colorWarning:a,colorError:i,colorInfo:o,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),f=t(n),m=t(a),h=t(i),v=t(o),p=r(l,c),g=e.colorLink||e.colorInfo,y=t(g),x=new lr(h[1]).mix(new lr(h[3]),50).toHexString();return Object.assign(Object.assign({},p),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[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:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:x,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new lr("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const Yie=e=>{let t=e,r=e,n=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:a}},Qie=Yie;function Zie(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:a+1},Qie(n))}const Jie=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},eoe=Jie;function ox(e){return(e+8)/e}function toe(e){const t=Array.from({length:10}).map((r,n)=>{const a=n-1,i=e*Math.pow(Math.E,a/5),o=n>1?Math.floor(i):Math.ceil(i);return Math.floor(o/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:ox(r)}))}const roe=e=>{const t=toe(e),r=t.map(u=>u.size),n=t.map(u=>u.lineHeight),a=r[1],i=r[0],o=r[2],s=n[1],l=n[0],c=n[2];return{fontSizeSM:i,fontSize:a,fontSizeLG:o,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*a),fontHeightLG:Math.round(c*o),fontHeightSM:Math.round(l*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},noe=roe;function aoe(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const xo=(e,t)=>new lr(e).setA(t).toRgbString(),Dm=(e,t)=>new lr(e).darken(t).toHexString(),ioe=e=>{const t=hp(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]}},ooe=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:xo(n,.88),colorTextSecondary:xo(n,.65),colorTextTertiary:xo(n,.45),colorTextQuaternary:xo(n,.25),colorFill:xo(n,.15),colorFillSecondary:xo(n,.06),colorFillTertiary:xo(n,.04),colorFillQuaternary:xo(n,.02),colorBgSolid:xo(n,1),colorBgSolidHover:xo(n,.75),colorBgSolidActive:xo(n,.95),colorBgLayout:Dm(r,4),colorBgContainer:Dm(r,0),colorBgElevated:Dm(r,0),colorBgSpotlight:xo(n,.85),colorBgBlur:"transparent",colorBorder:Dm(r,15),colorBorderSecondary:Dm(r,6)}};function soe(e){Yf.pink=Yf.magenta,JC.pink=JC.magenta;const t=Object.keys(Q7).map(r=>{const n=e[r]===Yf[r]?JC[r]:hp(e[r]);return Array.from({length:10},()=>1).reduce((a,i,o)=>(a[`${r}-${o+1}`]=n[o],a[`${r}${o+1}`]=n[o],a),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Xie(e,{generateColorPalettes:ioe,generateNeutralColorPalettes:ooe})),noe(e.fontSize)),aoe(e)),eoe(e)),Zie(e))}const loe=G$(soe),e9=loe,c_={token:mp,override:{override:mp},hashed:!0},t9=ve.createContext(c_),pp="ant",Qb="anticon",coe=["outlined","borderless","filled","underlined"],uoe=(e,t)=>t||(e?`${pp}-${e}`:pp),Nt=d.createContext({getPrefixCls:uoe,iconPrefixCls:Qb}),sM={};function Fn(e){const t=d.useContext(Nt),{getPrefixCls:r,direction:n,getPopupContainer:a}=t,i=t[e];return Object.assign(Object.assign({classNames:sM,styles:sM},i),{getPrefixCls:r,direction:n,getPopupContainer:a})}const doe=`-ant-${Date.now()}-${Math.random()}`;function foe(e,t){const r={},n=(o,s)=>{let l=o.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},a=(o,s)=>{const l=new lr(o),c=hp(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=c[1],r[`${s}-color-hover`]=c[4],r[`${s}-color-active`]=c[6],r[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=c[0],r[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){a(t.primaryColor,"primary");const o=new lr(t.primaryColor),s=hp(o.toRgbString());s.forEach((c,u)=>{r[`primary-${u+1}`]=c}),r["primary-color-deprecated-l-35"]=n(o,c=>c.lighten(35)),r["primary-color-deprecated-l-20"]=n(o,c=>c.lighten(20)),r["primary-color-deprecated-t-20"]=n(o,c=>c.tint(20)),r["primary-color-deprecated-t-50"]=n(o,c=>c.tint(50)),r["primary-color-deprecated-f-12"]=n(o,c=>c.setA(c.a*.12));const l=new lr(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,c=>c.setA(c.a*.3)),r["primary-color-active-deprecated-d-02"]=n(l,c=>c.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),` + :root { + ${Object.keys(r).map(o=>`--${e}-${o}: ${r[o]};`).join(` +`)} + } + `.trim()}function moe(e,t){const r=foe(e,t);Ma()&&Cl(r,`${doe}-dynamic-theme`)}const u_=d.createContext(!1),MP=({children:e,disabled:t})=>{const r=d.useContext(u_);return d.createElement(u_.Provider,{value:t??r},e)},Wi=u_,d_=d.createContext(void 0),hoe=({children:e,size:t})=>{const r=d.useContext(d_);return d.createElement(d_.Provider,{value:t||r},e)},fv=d_;function poe(){const e=d.useContext(Wi),t=d.useContext(fv);return{componentDisabled:e,componentSize:t}}var r9=Vr(function e(){Wr(this,e)}),n9="CALC_UNIT",voe=new RegExp(n9,"g");function e2(e){return typeof e=="number"?"".concat(e).concat(n9):e}var goe=function(e){yo(r,e);var t=Qo(r);function r(n,a){var i;Wr(this,r),i=t.call(this),ee(vt(i),"result",""),ee(vt(i),"unitlessCssVar",void 0),ee(vt(i),"lowPriority",void 0);var o=bt(n);return i.unitlessCssVar=a,n instanceof r?i.result="(".concat(n.result,")"):o==="number"?i.result=e2(n):o==="string"&&(i.result=n),i}return Vr(r,[{key:"add",value:function(a){return a instanceof r?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(e2(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof r?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(e2(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var i=this,o=a||{},s=o.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(l=!1),this.result=this.result.replace(voe,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(r9),yoe=function(e){yo(r,e);var t=Qo(r);function r(n){var a;return Wr(this,r),a=t.call(this),ee(vt(a),"result",0),n instanceof r?a.result=n.result:typeof n=="number"&&(a.result=n),a}return Vr(r,[{key:"add",value:function(a){return a instanceof r?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof r?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof r?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof r?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),r}(r9),xoe=function(t,r){var n=t==="css"?goe:yoe;return function(a){return new n(a,r)}},lM=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function qt(e){var t=d.useRef();t.current=e;var r=d.useCallback(function(){for(var n,a=arguments.length,i=new Array(a),o=0;o1e4){var n=Date.now();this.lastAccessBeat.forEach(function(a,i){n-a>Coe&&(r.map.delete(i),r.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),fM=new Eoe;function $oe(e,t){return ve.useMemo(function(){var r=fM.get(t);if(r)return r;var n=e();return fM.set(t,n),n},t)}var _oe=function(){return{}};function Ooe(e){var t=e.useCSP,r=t===void 0?_oe:t,n=e.useToken,a=e.usePrefix,i=e.getResetStyles,o=e.getCommonStyle,s=e.getCompUnitless;function l(m,h,v,p){var g=Array.isArray(m)?m[0]:m;function y(O){return"".concat(String(g)).concat(O.slice(0,1).toUpperCase()).concat(O.slice(1))}var x=(p==null?void 0:p.unitless)||{},b=typeof s=="function"?s(m):{},S=ae(ae({},b),{},ee({},y("zIndexPopup"),!0));Object.keys(x).forEach(function(O){S[y(O)]=x[O]});var w=ae(ae({},p),{},{unitless:S,prefixToken:y}),E=u(m,h,v,w),C=c(g,v,w);return function(O){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:O,T=E(O,_),I=me(T,2),N=I[1],D=C(_),k=me(D,2),R=k[0],A=k[1];return[R,N,A]}}function c(m,h,v){var p=v.unitless,g=v.injectStyle,y=g===void 0?!0:g,x=v.prefixToken,b=v.ignore,S=function(C){var O=C.rootCls,_=C.cssVar,T=_===void 0?{}:_,I=n(),N=I.realToken;return _ie({path:[m],prefix:T.prefix,key:T.key,unitless:p,ignore:b,token:N,scope:O},function(){var D=dM(m,N,h),k=cM(m,N,D,{deprecatedTokens:v==null?void 0:v.deprecatedTokens});return Object.keys(D).forEach(function(R){k[x(R)]=k[R],delete k[R]}),k}),null},w=function(C){var O=n(),_=O.cssVar;return[function(T){return y&&_?ve.createElement(ve.Fragment,null,ve.createElement(S,{rootCls:C,cssVar:_,component:m}),T):T},_==null?void 0:_.key]};return w}function u(m,h,v){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=Array.isArray(m)?m:[m,m],y=me(g,1),x=y[0],b=g.join("-"),S=e.layer||{name:"antd"};return function(w){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,C=n(),O=C.theme,_=C.realToken,T=C.hashId,I=C.token,N=C.cssVar,D=a(),k=D.rootPrefixCls,R=D.iconPrefixCls,A=r(),j=N?"css":"js",F=$oe(function(){var W=new Set;return N&&Object.keys(p.unitless||{}).forEach(function(H){W.add(Jy(H,N.prefix)),W.add(Jy(H,lM(x,N.prefix)))}),xoe(j,W)},[j,x,N==null?void 0:N.prefix]),M=woe(j),V=M.max,K=M.min,L={theme:O,token:I,hashId:T,nonce:function(){return A.nonce},clientOnly:p.clientOnly,layer:S,order:p.order||-999};typeof i=="function"&&Q$(ae(ae({},L),{},{clientOnly:!1,path:["Shared",k]}),function(){return i(I,{prefix:{rootPrefixCls:k,iconPrefixCls:R},csp:A})});var B=Q$(ae(ae({},L),{},{path:[b,w,R]}),function(){if(p.injectStyle===!1)return[];var W=Soe(I),H=W.token,U=W.flush,X=dM(x,_,v),Y=".".concat(w),G=cM(x,_,X,{deprecatedTokens:p.deprecatedTokens});N&&X&&bt(X)==="object"&&Object.keys(X).forEach(function(fe){X[fe]="var(".concat(Jy(fe,lM(x,N.prefix)),")")});var Q=Yt(H,{componentCls:Y,prefixCls:w,iconCls:".".concat(R),antCls:".".concat(k),calc:F,max:V,min:K},N?X:G),J=h(Q,{hashId:T,prefixCls:w,rootPrefixCls:k,iconPrefixCls:R});U(x,G);var z=typeof o=="function"?o(Q,w,E,p.resetFont):null;return[p.resetStyle===!1?null:z,J]});return[B,T]}}function f(m,h,v){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=u(m,h,v,ae({resetStyle:!1,order:-998},p)),y=function(b){var S=b.prefixCls,w=b.rootCls,E=w===void 0?S:w;return g(S,E),null};return y}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const Hc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Toe="5.29.2";function r2(e){return e>=0&&e<=255}function ah(e,t){const{r,g:n,b:a,a:i}=new lr(e).toRgb();if(i<1)return e;const{r:o,g:s,b:l}=new lr(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((r-o*(1-c))/c),f=Math.round((n-s*(1-c))/c),m=Math.round((a-l*(1-c))/c);if(r2(u)&&r2(f)&&r2(m))return new lr({r:u,g:f,b:m,a:Math.round(c*100)/100}).toRgbString()}return new lr({r,g:n,b:a,a:1}).toRgbString()}var Poe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{delete n[m]});const a=Object.assign(Object.assign({},r),n),i=480,o=576,s=768,l=992,c=1200,u=1600;if(a.motion===!1){const m="0s";a.motionDurationFast=m,a.motionDurationMid=m,a.motionDurationSlow=m}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:ah(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:ah(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:ah(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*3,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:ah(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:` + 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) + `,boxShadowSecondary:` + 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) + `,boxShadowTertiary:` + 0 1px 2px 0 rgba(0, 0, 0, 0.03), + 0 1px 6px -1px rgba(0, 0, 0, 0.02), + 0 2px 4px 0 rgba(0, 0, 0, 0.02) + `,screenXS:i,screenXSMin:i,screenXSMax:o-1,screenSM:o,screenSMMin:o,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` + 0 1px 2px -2px ${new lr("rgba(0, 0, 0, 0.16)").toRgbString()}, + 0 3px 6px 0 ${new lr("rgba(0, 0, 0, 0.12)").toRgbString()}, + 0 5px 12px 4px ${new lr("rgba(0, 0, 0, 0.09)").toRgbString()} + `,boxShadowDrawerRight:` + -6px 0 16px 0 rgba(0, 0, 0, 0.08), + -3px 0 6px -4px rgba(0, 0, 0, 0.12), + -9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerLeft:` + 6px 0 16px 0 rgba(0, 0, 0, 0.08), + 3px 0 6px -4px rgba(0, 0, 0, 0.12), + 9px 0 28px 8px rgba(0, 0, 0, 0.05) + `,boxShadowDrawerUp:` + 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) + `,boxShadowDrawerDown:` + 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)"}),n)}var mM=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const n=r.getDerivativeToken(e),{override:a}=t,i=mM(t,["override"]);let o=Object.assign(Object.assign({},n),{override:a});return o=i9(o),i&&Object.entries(i).forEach(([s,l])=>{const{theme:c}=l,u=mM(l,["theme"]);let f=u;c&&(f=s9(Object.assign(Object.assign({},o),u),{override:u},c)),o[s]=f}),o};function Ga(){const{token:e,hashed:t,theme:r,override:n,cssVar:a}=ve.useContext(t9),i=`${Toe}-${t||""}`,o=r||e9,[s,l,c]=Zae(o,[mp,e],{salt:i,override:n,getComputedToken:s9,formatToken:i9,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:o9,ignore:Ioe,preserve:Noe}});return[o,c,t?l:"",s,a]}const Uo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},ur=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),V0=()=>({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"}}),rl=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),koe=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Roe=(e,t,r,n)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,i=r?`.${r}`:a,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),o),{[a]:o})}},nl=(e,t)=>({outline:`${se(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Nl=(e,t)=>({"&:focus-visible":nl(e,t)}),l9=e=>({[`.${e}`]:Object.assign(Object.assign({},V0()),{[`.${e} .${e}-icon`]:{display:"block"}})}),DP=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},Nl(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:or,genComponentStyleHook:Aoe,genSubStyleComponent:U0}=Ooe({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=d.useContext(Nt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,a]=Ga();return{theme:e,realToken:t,hashId:r,token:n,cssVar:a}},useCSP:()=>{const{csp:e}=d.useContext(Nt);return e??{}},getResetStyles:(e,t)=>{var r;const n=koe(e);return[n,{"&":n},l9((r=t==null?void 0:t.prefix.iconPrefixCls)!==null&&r!==void 0?r:Qb)]},getCommonStyle:Roe,getCompUnitless:()=>o9});function c9(e,t){return Hc.reduce((r,n)=>{const a=e[`${n}1`],i=e[`${n}3`],o=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:a,lightBorderColor:i,darkColor:o,textColor:s}))},{})}const Moe=(e,t)=>{const[r,n]=Ga();return Q$({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>l9(e))},Doe=Moe,joe=Object.assign({},F0),{useId:hM}=joe,Foe=()=>"",Loe=typeof hM>"u"?Foe:hM,Boe=Loe;function zoe(e,t,r){var n;lu();const a=e||{},i=a.inherit===!1||!t?Object.assign(Object.assign({},c_),{hashed:(n=t==null?void 0:t.hashed)!==null&&n!==void 0?n:c_.hashed,cssVar:t==null?void 0:t.cssVar}):t,o=Boe();return Md(()=>{var s,l;if(!e)return t;const c=Object.assign({},i.components);Object.keys(e.components||{}).forEach(m=>{c[m]=Object.assign(Object.assign({},c[m]),e.components[m])});const u=`css-var-${o.replace(/:/g,"")}`,f=((s=a.cssVar)!==null&&s!==void 0?s:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r==null?void 0:r.prefixCls},typeof i.cssVar=="object"?i.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((l=a.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},i),a),{token:Object.assign(Object.assign({},i.token),a.token),components:c,cssVar:f})},[a,i],(s,l)=>s.some((c,u)=>{const f=l[u];return!tl(c,f,!0)}))}var Hoe=["children"],u9=d.createContext({});function Woe(e){var t=e.children,r=Rt(e,Hoe);return d.createElement(u9.Provider,{value:r},t)}var Voe=function(e){yo(r,e);var t=Qo(r);function r(){return Wr(this,r),t.apply(this,arguments)}return Vr(r,[{key:"render",value:function(){return this.props.children}}]),r}(d.Component);function Uoe(e){var t=d.useReducer(function(s){return s+1},0),r=me(t,2),n=r[1],a=d.useRef(e),i=qt(function(){return a.current}),o=qt(function(s){a.current=typeof s=="function"?s(a.current):s,n()});return[i,o]}var ac="none",Bg="appear",zg="enter",Hg="leave",pM="none",ss="prepare",Df="start",jf="active",jP="end",d9="prepared";function vM(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function Koe(e,t){var r={animationend:vM("Animation","AnimationEnd"),transitionend:vM("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var Goe=Koe(Ma(),typeof window<"u"?window:{}),f9={};if(Ma()){var qoe=document.createElement("div");f9=qoe.style}var Wg={};function m9(e){if(Wg[e])return Wg[e];var t=Goe[e];if(t)for(var r=Object.keys(t),n=r.length,a=0;a1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Ut(function(){a<=1?n({isCanceled:function(){return i!==e.current}}):r(n,a-1)});e.current=i}return d.useEffect(function(){return function(){t()}},[]),[r,t]};var Qoe=[ss,Df,jf,jP],Zoe=[ss,d9],y9=!1,Joe=!0;function x9(e){return e===jf||e===jP}const ese=function(e,t,r){var n=fd(pM),a=me(n,2),i=a[0],o=a[1],s=Yoe(),l=me(s,2),c=l[0],u=l[1];function f(){o(ss,!0)}var m=t?Zoe:Qoe;return g9(function(){if(i!==pM&&i!==jP){var h=m.indexOf(i),v=m[h+1],p=r(i);p===y9?o(v,!0):v&&c(function(g){function y(){g.isCanceled()||o(v,!0)}p===!0?y():Promise.resolve(p).then(y)})}},[e,i]),d.useEffect(function(){return function(){u()}},[]),[f,i]};function tse(e,t,r,n){var a=n.motionEnter,i=a===void 0?!0:a,o=n.motionAppear,s=o===void 0?!0:o,l=n.motionLeave,c=l===void 0?!0:l,u=n.motionDeadline,f=n.motionLeaveImmediately,m=n.onAppearPrepare,h=n.onEnterPrepare,v=n.onLeavePrepare,p=n.onAppearStart,g=n.onEnterStart,y=n.onLeaveStart,x=n.onAppearActive,b=n.onEnterActive,S=n.onLeaveActive,w=n.onAppearEnd,E=n.onEnterEnd,C=n.onLeaveEnd,O=n.onVisibleChanged,_=fd(),T=me(_,2),I=T[0],N=T[1],D=Uoe(ac),k=me(D,2),R=k[0],A=k[1],j=fd(null),F=me(j,2),M=F[0],V=F[1],K=R(),L=d.useRef(!1),B=d.useRef(null);function W(){return r()}var H=d.useRef(!1);function U(){A(ac),V(null,!0)}var X=qt(function(pe){var be=R();if(be!==ac){var _e=W();if(!(pe&&!pe.deadline&&pe.target!==_e)){var $e=H.current,Be;be===Bg&&$e?Be=w==null?void 0:w(_e,pe):be===zg&&$e?Be=E==null?void 0:E(_e,pe):be===Hg&&$e&&(Be=C==null?void 0:C(_e,pe)),$e&&Be!==!1&&U()}}}),Y=Xoe(X),G=me(Y,1),Q=G[0],J=function(be){switch(be){case Bg:return ee(ee(ee({},ss,m),Df,p),jf,x);case zg:return ee(ee(ee({},ss,h),Df,g),jf,b);case Hg:return ee(ee(ee({},ss,v),Df,y),jf,S);default:return{}}},z=d.useMemo(function(){return J(K)},[K]),fe=ese(K,!e,function(pe){if(pe===ss){var be=z[ss];return be?be(W()):y9}if(q in z){var _e;V(((_e=z[q])===null||_e===void 0?void 0:_e.call(z,W(),null))||null)}return q===jf&&K!==ac&&(Q(W()),u>0&&(clearTimeout(B.current),B.current=setTimeout(function(){X({deadline:!0})},u))),q===d9&&U(),Joe}),te=me(fe,2),re=te[0],q=te[1],ne=x9(q);H.current=ne;var he=d.useRef(null);g9(function(){if(!(L.current&&he.current===t)){N(t);var pe=L.current;L.current=!0;var be;!pe&&t&&s&&(be=Bg),pe&&t&&i&&(be=zg),(pe&&!t&&c||!pe&&f&&!t&&c)&&(be=Hg);var _e=J(be);be&&(e||_e[ss])?(A(be),re()):A(ac),he.current=t}},[t]),d.useEffect(function(){(K===Bg&&!s||K===zg&&!i||K===Hg&&!c)&&A(ac)},[s,i,c]),d.useEffect(function(){return function(){L.current=!1,clearTimeout(B.current)}},[]);var xe=d.useRef(!1);d.useEffect(function(){I&&(xe.current=!0),I!==void 0&&K===ac&&((xe.current||I)&&(O==null||O(I)),xe.current=!0)},[I,K]);var ye=M;return z[ss]&&q===Df&&(ye=ae({transition:"none"},ye)),[K,q,ye,I??t]}function rse(e){var t=e;bt(e)==="object"&&(t=e.transitionSupport);function r(a,i){return!!(a.motionName&&t&&i!==!1)}var n=d.forwardRef(function(a,i){var o=a.visible,s=o===void 0?!0:o,l=a.removeOnLeave,c=l===void 0?!0:l,u=a.forceRender,f=a.children,m=a.motionName,h=a.leavedClassName,v=a.eventProps,p=d.useContext(u9),g=p.motion,y=r(a,g),x=d.useRef(),b=d.useRef();function S(){try{return x.current instanceof HTMLElement?x.current:Zy(b.current)}catch{return null}}var w=tse(y,s,S,a),E=me(w,4),C=E[0],O=E[1],_=E[2],T=E[3],I=d.useRef(T);T&&(I.current=!0);var N=d.useCallback(function(F){x.current=F,lp(i,F)},[i]),D,k=ae(ae({},v),{},{visible:s});if(!f)D=null;else if(C===ac)T?D=f(ae({},k),N):!c&&I.current&&h?D=f(ae(ae({},k),{},{className:h}),N):u||!c&&!h?D=f(ae(ae({},k),{},{style:{display:"none"}}),N):D=null;else{var R;O===ss?R="prepare":x9(O)?R="active":O===Df&&(R="start");var A=xM(m,"".concat(C,"-").concat(R));D=f(ae(ae({},k),{},{className:ce(xM(m,C),ee(ee({},A,A&&R),m,typeof m=="string")),style:_}),N)}if(d.isValidElement(D)&&_s(D)){var j=su(D);j||(D=d.cloneElement(D,{ref:N}))}return d.createElement(Voe,{ref:b},D)});return n.displayName="CSSMotion",n}const Vi=rse(v9);var m_="add",h_="keep",p_="remove",n2="removed";function nse(e){var t;return e&&bt(e)==="object"&&"key"in e?t=e:t={key:e},ae(ae({},t),{},{key:String(t.key)})}function v_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(nse)}function ase(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,a=t.length,i=v_(e),o=v_(t);i.forEach(function(c){for(var u=!1,f=n;f1});return l.forEach(function(c){r=r.filter(function(u){var f=u.key,m=u.status;return f!==c||m!==p_}),r.forEach(function(u){u.key===c&&(u.status=h_)})}),r}var ise=["component","children","onVisibleChanged","onAllRemoved"],ose=["status"],sse=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function lse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Vi,r=function(n){yo(i,n);var a=Qo(i);function i(){var o;Wr(this,i);for(var s=arguments.length,l=new Array(s),c=0;cnull;var dse=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);at.endsWith("Color"))}const pse=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:a}=e;t!==void 0&&(Zx=t),r!==void 0&&(b9=r),"holderRender"in e&&(w9=a),n&&(hse(n)?moe(sx(),n):S9=n)},C9=()=>({getPrefixCls:(e,t)=>t||(e?`${sx()}-${e}`:sx()),getIconPrefixCls:mse,getRootPrefixCls:()=>Zx||sx(),getTheme:()=>S9,holderRender:w9}),vse=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:a,anchor:i,form:o,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:m,dropdownMatchSelectWidth:h,popupMatchSelectWidth:v,popupOverflow:p,legacyLocale:g,parentContext:y,iconPrefixCls:x,theme:b,componentDisabled:S,segmented:w,statistic:E,spin:C,calendar:O,carousel:_,cascader:T,collapse:I,typography:N,checkbox:D,descriptions:k,divider:R,drawer:A,skeleton:j,steps:F,image:M,layout:V,list:K,mentions:L,modal:B,progress:W,result:H,slider:U,breadcrumb:X,menu:Y,pagination:G,input:Q,textArea:J,empty:z,badge:fe,radio:te,rate:re,switch:q,transfer:ne,avatar:he,message:xe,tag:ye,table:pe,card:be,tabs:_e,timeline:$e,timePicker:Be,upload:Fe,notification:nt,tree:qe,colorPicker:Ge,datePicker:Le,rangePicker:Ne,flex:we,wave:je,dropdown:Oe,warning:Me,tour:ge,tooltip:Se,popover:Re,popconfirm:We,floatButton:at,floatButtonGroup:yt,variant:tt,inputNumber:it,treeSelect:ft}=e,lt=d.useCallback((ue,le)=>{const{prefixCls:ie}=e;if(le)return le;const oe=ie||y.getPrefixCls("");return ue?`${oe}-${ue}`:oe},[y.getPrefixCls,e.prefixCls]),mt=x||y.iconPrefixCls||Qb,Mt=r||y.csp;Doe(mt,Mt);const Ft=zoe(b,y.theme,{prefixCls:lt("")}),ht={csp:Mt,autoInsertSpaceInButton:n,alert:a,anchor:i,locale:s||g,direction:c,space:u,splitter:f,virtual:m,popupMatchSelectWidth:v??h,popupOverflow:p,getPrefixCls:lt,iconPrefixCls:mt,theme:Ft,segmented:w,statistic:E,spin:C,calendar:O,carousel:_,cascader:T,collapse:I,typography:N,checkbox:D,descriptions:k,divider:R,drawer:A,skeleton:j,steps:F,image:M,input:Q,textArea:J,layout:V,list:K,mentions:L,modal:B,progress:W,result:H,slider:U,breadcrumb:X,menu:Y,pagination:G,empty:z,badge:fe,radio:te,rate:re,switch:q,transfer:ne,avatar:he,message:xe,tag:ye,table:pe,card:be,tabs:_e,timeline:$e,timePicker:Be,upload:Fe,notification:nt,tree:qe,colorPicker:Ge,datePicker:Le,rangePicker:Ne,flex:we,wave:je,dropdown:Oe,warning:Me,tour:ge,tooltip:Se,popover:Re,popconfirm:We,floatButton:at,floatButtonGroup:yt,variant:tt,inputNumber:it,treeSelect:ft},St=Object.assign({},y);Object.keys(ht).forEach(ue=>{ht[ue]!==void 0&&(St[ue]=ht[ue])}),fse.forEach(ue=>{const le=e[ue];le&&(St[ue]=le)}),typeof n<"u"&&(St.button=Object.assign({autoInsertSpace:n},St.button));const xt=Md(()=>St,St,(ue,le)=>{const ie=Object.keys(ue),oe=Object.keys(le);return ie.length!==oe.length||ie.some(de=>ue[de]!==le[de])}),{layer:rt}=d.useContext(dv),Ye=d.useMemo(()=>({prefixCls:mt,csp:Mt,layer:rt?"antd":void 0}),[mt,Mt,rt]);let Ze=d.createElement(d.Fragment,null,d.createElement(use,{dropdownMatchSelectWidth:h}),t);const ut=d.useMemo(()=>{var ue,le,ie,oe;return Mf(((ue=Vo.Form)===null||ue===void 0?void 0:ue.defaultValidateMessages)||{},((ie=(le=xt.locale)===null||le===void 0?void 0:le.Form)===null||ie===void 0?void 0:ie.defaultValidateMessages)||{},((oe=xt.form)===null||oe===void 0?void 0:oe.validateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[xt,o==null?void 0:o.validateMessages]);Object.keys(ut).length>0&&(Ze=d.createElement(G7.Provider,{value:ut},Ze)),s&&(Ze=d.createElement(Wie,{locale:s,_ANT_MARK__:zie},Ze)),(mt||Mt)&&(Ze=d.createElement(RP.Provider,{value:Ye},Ze)),l&&(Ze=d.createElement(hoe,{size:l},Ze)),Ze=d.createElement(cse,null,Ze);const Z=d.useMemo(()=>{const ue=Ft||{},{algorithm:le,token:ie,components:oe,cssVar:de}=ue,Ce=dse(ue,["algorithm","token","components","cssVar"]),Ae=le&&(!Array.isArray(le)||le.length>0)?G$(le):e9,Ee={};Object.entries(oe||{}).forEach(([Pe,Xe])=>{const ke=Object.assign({},Xe);"algorithm"in ke&&(ke.algorithm===!0?ke.theme=Ae:(Array.isArray(ke.algorithm)||typeof ke.algorithm=="function")&&(ke.theme=G$(ke.algorithm)),delete ke.algorithm),Ee[Pe]=ke});const Ie=Object.assign(Object.assign({},mp),ie);return Object.assign(Object.assign({},Ce),{theme:Ae,token:Ie,components:Ee,override:Object.assign({override:Ie},Ee),cssVar:de})},[Ft]);return b&&(Ze=d.createElement(t9.Provider,{value:Z},Ze)),xt.warning&&(Ze=d.createElement(kie.Provider,{value:xt.warning},Ze)),S!==void 0&&(Ze=d.createElement(MP,{disabled:S},Ze)),d.createElement(Nt.Provider,{value:xt},Ze)},K0=e=>{const t=d.useContext(Nt),r=d.useContext(AP);return d.createElement(vse,Object.assign({parentContext:t,legacyLocale:r},e))};K0.ConfigContext=Nt;K0.SizeContext=fv;K0.config=pse;K0.useConfig=poe;Object.defineProperty(K0,"SizeContext",{get:()=>fv});const Dd=K0;var gse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const yse=gse;function E9(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function xse(e){return E9(e)instanceof ShadowRoot}function Jx(e){return xse(e)?E9(e):null}function bse(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Sse(e,t){Br(e,"[@ant-design/icons] ".concat(t))}function SM(e){return bt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(bt(e.icon)==="object"||typeof e.icon=="function")}function wM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[bse(r)]=n}return t},{})}function g_(e,t,r){return r?ve.createElement(e.tag,ae(ae({key:t},wM(e.attrs)),r),(e.children||[]).map(function(n,a){return g_(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):ve.createElement(e.tag,ae({key:t},wM(e.attrs)),(e.children||[]).map(function(n,a){return g_(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function $9(e){return hp(e)[0]}function _9(e){return e?Array.isArray(e)?e:[e]:[]}var wse=` +.anticon { + display: inline-flex; + align-items: center; + color: inherit; + font-style: normal; + line-height: 0; + text-align: center; + text-transform: none; + vertical-align: -0.125em; + text-rendering: optimizeLegibility; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.anticon > * { + line-height: 1; +} + +.anticon svg { + display: inline-block; +} + +.anticon::before { + display: none; +} + +.anticon .anticon-icon { + display: block; +} + +.anticon[tabindex] { + cursor: pointer; +} + +.anticon-spin::before, +.anticon-spin { + display: inline-block; + -webkit-animation: loadingCircle 1s infinite linear; + animation: loadingCircle 1s infinite linear; +} + +@-webkit-keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} + +@keyframes loadingCircle { + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +`,Cse=function(t){var r=d.useContext(RP),n=r.csp,a=r.prefixCls,i=r.layer,o=wse;a&&(o=o.replace(/anticon/g,a)),i&&(o="@layer ".concat(i,` { +`).concat(o,` +}`)),d.useEffect(function(){var s=t.current,l=Jx(s);Cl(o,"@ant-design-icons",{prepend:!i,csp:n,attachTo:l})},[])},Ese=["icon","className","onClick","style","primaryColor","secondaryColor"],_h={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function $se(e){var t=e.primaryColor,r=e.secondaryColor;_h.primaryColor=t,_h.secondaryColor=r||$9(t),_h.calculated=!!r}function _se(){return ae({},_h)}var Zb=function(t){var r=t.icon,n=t.className,a=t.onClick,i=t.style,o=t.primaryColor,s=t.secondaryColor,l=Rt(t,Ese),c=d.useRef(),u=_h;if(o&&(u={primaryColor:o,secondaryColor:s||$9(o)}),Cse(c),Sse(SM(r),"icon should be icon definiton, but got ".concat(r)),!SM(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=ae(ae({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),g_(f.icon,"svg-".concat(f.name),ae(ae({className:n,onClick:a,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Zb.displayName="IconReact";Zb.getTwoToneColors=_se;Zb.setTwoToneColors=$se;const LP=Zb;function O9(e){var t=_9(e),r=me(t,2),n=r[0],a=r[1];return LP.setTwoToneColors({primaryColor:n,secondaryColor:a})}function Ose(){var e=LP.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Tse=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];O9(y0.primary);var Jb=d.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,i=e.rotate,o=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=Rt(e,Tse),u=d.useContext(RP),f=u.prefixCls,m=f===void 0?"anticon":f,h=u.rootClassName,v=ce(h,m,ee(ee({},"".concat(m,"-").concat(n.name),!!n.name),"".concat(m,"-spin"),!!a||n.name==="loading"),r),p=o;p===void 0&&s&&(p=-1);var g=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,y=_9(l),x=me(y,2),b=x[0],S=x[1];return d.createElement("span",Te({role:"img","aria-label":n.name},c,{ref:t,tabIndex:p,onClick:s,className:v}),d.createElement(LP,{icon:n,primaryColor:b,secondaryColor:S,style:g}))});Jb.displayName="AntdIcon";Jb.getTwoToneColor=Ose;Jb.setTwoToneColor=O9;const Wt=Jb;var Pse=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:yse}))},Ise=d.forwardRef(Pse);const mv=Ise;var Nse={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const kse=Nse;var Rse=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:kse}))},Ase=d.forwardRef(Rse);const jd=Ase;var Mse={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const Dse=Mse;var jse=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:Dse}))},Fse=d.forwardRef(jse);const cu=Fse;var Lse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};const Bse=Lse;var zse=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:Bse}))},Hse=d.forwardRef(zse);const G0=Hse;var Wse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};const Vse=Wse;var Use=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:Vse}))},Kse=d.forwardRef(Use);const BP=Kse;var Gse=`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 + encType form formAction formEncType formMethod formNoValidate formTarget frameBorder + headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity + is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media + mediaGroup method min minLength multiple muted name noValidate nonce open + optimum pattern placeholder poster preload radioGroup readOnly rel required + reversed role rowSpan rows sandbox scope scoped scrolling seamless selected + shape size sizes span spellCheck src srcDoc srcLang srcSet start step style + summary tabIndex target title type useMap value width wmode wrap`,qse=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown + onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick + onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown + onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel + onTouchEnd onTouchMove onTouchStart 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`,Xse="".concat(Gse," ").concat(qse).split(/[\s\n]+/),Yse="aria-",Qse="data-";function CM(e,t){return e.indexOf(t)===0}function Dn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=ae({},t);var n={};return Object.keys(e).forEach(function(a){(r.aria&&(a==="role"||CM(a,Yse))||r.data&&CM(a,Qse)||r.attr&&Xse.includes(a))&&(n[a]=e[a])}),n}function T9(e){return e&&ve.isValidElement(e)&&e.type===ve.Fragment}const zP=(e,t,r)=>ve.isValidElement(e)?ve.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function pa(e,t){return zP(e,e,t)}const Vg=(e,t,r,n,a)=>({background:e,border:`${se(n.lineWidth)} ${n.lineType} ${t}`,[`${a}-icon`]:{color:r}}),Zse=e=>{const{componentCls:t,motionDurationSlow:r,marginXS:n,marginSM:a,fontSize:i,fontSizeLG:o,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:f,colorTextHeading:m,withDescriptionPadding:h,defaultPadding:v}=e;return{[t]:Object.assign(Object.assign({},ur(e)),{position:"relative",display:"flex",alignItems:"center",padding:v,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:n,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:s},"&-message":{color:m},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${r} ${c}, opacity ${r} ${c}, + padding-top ${r} ${c}, padding-bottom ${r} ${c}, + margin-bottom ${r} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:h,[`${t}-icon`]:{marginInlineEnd:a,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:n,color:m,fontSize:o},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},Jse=e=>{const{componentCls:t,colorSuccess:r,colorSuccessBorder:n,colorSuccessBg:a,colorWarning:i,colorWarningBorder:o,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:f,colorInfoBorder:m,colorInfoBg:h}=e;return{[t]:{"&-success":Vg(a,n,r,e,t),"&-info":Vg(h,m,f,e,t),"&-warning":Vg(s,o,i,e,t),"&-error":Object.assign(Object.assign({},Vg(u,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},ele=e=>{const{componentCls:t,iconCls:r,motionDurationMid:n,marginXS:a,fontSizeIcon:i,colorIcon:o,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:a},[`${t}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:i,lineHeight:se(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${r}-close`]:{color:o,transition:`color ${n}`,"&:hover":{color:s}}},"&-close-text":{color:o,transition:`color ${n}`,"&:hover":{color:s}}}}},tle=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),rle=or("Alert",e=>[Zse(e),Jse(e),ele(e)],tle);var EM=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{icon:t,prefixCls:r,type:n}=e,a=nle[n]||null;return t?zP(t,d.createElement("span",{className:`${r}-icon`},t),()=>({className:ce(`${r}-icon`,t.props.className)})):d.createElement(a,{className:`${r}-icon`})},ile=e=>{const{isClosable:t,prefixCls:r,closeIcon:n,handleClose:a,ariaProps:i}=e,o=n===!0||n===void 0?d.createElement(cu,null):n;return t?d.createElement("button",Object.assign({type:"button",onClick:a,className:`${r}-close-icon`,tabIndex:0},i),o):null},ole=d.forwardRef((e,t)=>{const{description:r,prefixCls:n,message:a,banner:i,className:o,rootClassName:s,style:l,onMouseEnter:c,onMouseLeave:u,onClick:f,afterClose:m,showIcon:h,closable:v,closeText:p,closeIcon:g,action:y,id:x}=e,b=EM(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[S,w]=d.useState(!1),E=d.useRef(null);d.useImperativeHandle(t,()=>({nativeElement:E.current}));const{getPrefixCls:C,direction:O,closable:_,closeIcon:T,className:I,style:N}=Fn("alert"),D=C("alert",n),[k,R,A]=rle(D),j=H=>{var U;w(!0),(U=e.onClose)===null||U===void 0||U.call(e,H)},F=d.useMemo(()=>e.type!==void 0?e.type:i?"warning":"info",[e.type,i]),M=d.useMemo(()=>typeof v=="object"&&v.closeIcon||p?!0:typeof v=="boolean"?v:g!==!1&&g!==null&&g!==void 0?!0:!!_,[p,g,v,_]),V=i&&h===void 0?!0:h,K=ce(D,`${D}-${F}`,{[`${D}-with-description`]:!!r,[`${D}-no-icon`]:!V,[`${D}-banner`]:!!i,[`${D}-rtl`]:O==="rtl"},I,o,s,A,R),L=Dn(b,{aria:!0,data:!0}),B=d.useMemo(()=>typeof v=="object"&&v.closeIcon?v.closeIcon:p||(g!==void 0?g:typeof _=="object"&&_.closeIcon?_.closeIcon:T),[g,v,_,p,T]),W=d.useMemo(()=>{const H=v??_;return typeof H=="object"?EM(H,["closeIcon"]):{}},[v,_]);return k(d.createElement(Vi,{visible:!S,motionName:`${D}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:H=>({maxHeight:H.offsetHeight}),onLeaveEnd:m},({className:H,style:U},X)=>d.createElement("div",Object.assign({id:x,ref:xa(E,X),"data-show":!S,className:ce(K,H),style:Object.assign(Object.assign(Object.assign({},N),l),U),onMouseEnter:c,onMouseLeave:u,onClick:f,role:"alert"},L),V?d.createElement(ale,{description:r,icon:e.icon,prefixCls:D,type:F}):null,d.createElement("div",{className:`${D}-content`},a?d.createElement("div",{className:`${D}-message`},a):null,r?d.createElement("div",{className:`${D}-description`},r):null),y?d.createElement("div",{className:`${D}-action`},y):null,d.createElement(ile,{isClosable:M,prefixCls:D,closeIcon:B,handleClose:j,ariaProps:W}))))}),P9=ole;function sle(e,t,r){return t=dd(t),b7(e,Gb()?Reflect.construct(t,r||[],dd(e).constructor):t.apply(e,r))}let lle=function(e){function t(){var r;return Wr(this,t),r=sle(this,t,arguments),r.state={error:void 0,info:{componentStack:""}},r}return yo(t,e),Vr(t,[{key:"componentDidCatch",value:function(n,a){this.setState({error:n,info:a})}},{key:"render",value:function(){const{message:n,description:a,id:i,children:o}=this.props,{error:s,info:l}=this.state,c=(l==null?void 0:l.componentStack)||null,u=typeof n>"u"?(s||"").toString():n,f=typeof a>"u"?c:a;return s?d.createElement(P9,{id:i,type:"error",message:u,description:d.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):o}}])}(d.Component);const cle=lle,I9=P9;I9.ErrorBoundary=cle;const ule=I9,$M=e=>typeof e=="object"&&e!=null&&e.nodeType===1,_M=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Ug=(e,t)=>{if(e.clientHeight{const a=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!a&&(a.clientHeightit||i>e&&o=t&&s>=r?i-e-n:o>t&&sr?o-t+a:0,dle=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},OM=(e,t)=>{var r,n,a,i;if(typeof document>"u")return[];const{scrollMode:o,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:A=>A!==c;if(!$M(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,h=[];let v=e;for(;$M(v)&&f(v);){if(v=dle(v),v===m){h.push(v);break}v!=null&&v===document.body&&Ug(v)&&!Ug(document.documentElement)||v!=null&&Ug(v,u)&&h.push(v)}const p=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,g=(i=(a=window.visualViewport)==null?void 0:a.height)!=null?i:innerHeight,{scrollX:y,scrollY:x}=window,{height:b,width:S,top:w,right:E,bottom:C,left:O}=e.getBoundingClientRect(),{top:_,right:T,bottom:I,left:N}=(A=>{const j=window.getComputedStyle(A);return{top:parseFloat(j.scrollMarginTop)||0,right:parseFloat(j.scrollMarginRight)||0,bottom:parseFloat(j.scrollMarginBottom)||0,left:parseFloat(j.scrollMarginLeft)||0}})(e);let D=s==="start"||s==="nearest"?w-_:s==="end"?C+I:w+b/2-_+I,k=l==="center"?O+S/2-N+T:l==="end"?E+T:O-N;const R=[];for(let A=0;A=0&&O>=0&&C<=g&&E<=p&&(j===m&&!Ug(j)||w>=V&&C<=L&&O>=B&&E<=K))return R;const W=getComputedStyle(j),H=parseInt(W.borderLeftWidth,10),U=parseInt(W.borderTopWidth,10),X=parseInt(W.borderRightWidth,10),Y=parseInt(W.borderBottomWidth,10);let G=0,Q=0;const J="offsetWidth"in j?j.offsetWidth-j.clientWidth-H-X:0,z="offsetHeight"in j?j.offsetHeight-j.clientHeight-U-Y:0,fe="offsetWidth"in j?j.offsetWidth===0?0:M/j.offsetWidth:0,te="offsetHeight"in j?j.offsetHeight===0?0:F/j.offsetHeight:0;if(m===j)G=s==="start"?D:s==="end"?D-g:s==="nearest"?Kg(x,x+g,g,U,Y,x+D,x+D+b,b):D-g/2,Q=l==="start"?k:l==="center"?k-p/2:l==="end"?k-p:Kg(y,y+p,p,H,X,y+k,y+k+S,S),G=Math.max(0,G+x),Q=Math.max(0,Q+y);else{G=s==="start"?D-V-U:s==="end"?D-L+Y+z:s==="nearest"?Kg(V,L,F,U,Y+z,D,D+b,b):D-(V+F/2)+z/2,Q=l==="start"?k-B-H:l==="center"?k-(B+M/2)+J/2:l==="end"?k-K+X+J:Kg(B,K,M,H,X+J,k,k+S,S);const{scrollLeft:re,scrollTop:q}=j;G=te===0?0:Math.max(0,Math.min(q+G/te,j.scrollHeight-F/te+z)),Q=fe===0?0:Math.max(0,Math.min(re+Q/fe,j.scrollWidth-M/fe+J)),D+=q-G,k+=re-Q}R.push({el:j,top:G,left:Q})}return R},fle=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function mle(e,t){if(!e.isConnected||!(a=>{let i=a;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const r=(a=>{const i=window.getComputedStyle(a);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(OM(e,t));const n=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:i,left:o}of OM(e,fle(t))){const s=i-r.top+r.bottom,l=o-r.left+r.right;a.scroll({top:s,left:l,behavior:n})}}function y_(e){return e!=null&&e===e.window}const hle=e=>{var t,r;if(typeof window>"u")return 0;let n=0;return y_(e)?n=e.pageYOffset:e instanceof Document?n=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(n=e.scrollTop),e&&!y_(e)&&typeof n!="number"&&(n=(r=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||r===void 0?void 0:r.scrollTop),n},ple=hle;function vle(e,t,r,n){const a=r-t;return e/=n/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}function gle(e,t={}){const{getContainer:r=()=>window,callback:n,duration:a=450}=t,i=r(),o=ple(i),s=Date.now(),l=()=>{const u=Date.now()-s,f=vle(u>a?a:u,o,e,a);y_(i)?i.scrollTo(window.pageXOffset,f):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=f:i.scrollTop=f,u{const[,,,,t]=Ga();return t?`${e}-css-var`:""},gn=yle;var Qe={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var r=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||r>=Qe.F1&&r<=Qe.F12)return!1;switch(r){case Qe.ALT:case Qe.CAPS_LOCK:case Qe.CONTEXT_MENU:case Qe.CTRL:case Qe.DOWN:case Qe.END:case Qe.ESC:case Qe.HOME:case Qe.INSERT:case Qe.LEFT:case Qe.MAC_FF_META:case Qe.META:case Qe.NUMLOCK:case Qe.NUM_CENTER:case Qe.PAGE_DOWN:case Qe.PAGE_UP:case Qe.PAUSE:case Qe.PRINT_SCREEN:case Qe.RIGHT:case Qe.SHIFT:case Qe.UP:case Qe.WIN_KEY:case Qe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Qe.ZERO&&t<=Qe.NINE||t>=Qe.NUM_ZERO&&t<=Qe.NUM_MULTIPLY||t>=Qe.A&&t<=Qe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Qe.SPACE:case Qe.QUESTION_MARK:case Qe.NUM_PLUS:case Qe.NUM_MINUS:case Qe.NUM_PERIOD:case Qe.NUM_DIVISION:case Qe.SEMICOLON:case Qe.DASH:case Qe.EQUALS:case Qe.COMMA:case Qe.PERIOD:case Qe.SLASH:case Qe.APOSTROPHE:case Qe.SINGLE_QUOTE:case Qe.OPEN_SQUARE_BRACKET:case Qe.BACKSLASH:case Qe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},N9=d.forwardRef(function(e,t){var r=e.prefixCls,n=e.style,a=e.className,i=e.duration,o=i===void 0?4.5:i,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,f=e.content,m=e.closable,h=e.closeIcon,v=h===void 0?"x":h,p=e.props,g=e.onClick,y=e.onNoticeClose,x=e.times,b=e.hovering,S=d.useState(!1),w=me(S,2),E=w[0],C=w[1],O=d.useState(0),_=me(O,2),T=_[0],I=_[1],N=d.useState(0),D=me(N,2),k=D[0],R=D[1],A=b||E,j=o>0&&s,F=function(){y(u)},M=function(H){(H.key==="Enter"||H.code==="Enter"||H.keyCode===Qe.ENTER)&&F()};d.useEffect(function(){if(!A&&o>0){var W=Date.now()-k,H=setTimeout(function(){F()},o*1e3-k);return function(){c&&clearTimeout(H),R(Date.now()-W)}}},[o,A,x]),d.useEffect(function(){if(!A&&j&&(c||k===0)){var W=performance.now(),H,U=function X(){cancelAnimationFrame(H),H=requestAnimationFrame(function(Y){var G=Y+k-W,Q=Math.min(G/(o*1e3),1);I(Q*100),Q<1&&X()})};return U(),function(){c&&cancelAnimationFrame(H)}}},[o,k,A,j,x]);var V=d.useMemo(function(){return bt(m)==="object"&&m!==null?m:m?{closeIcon:v}:{}},[m,v]),K=Dn(V,!0),L=100-(!T||T<0?0:T>100?100:T),B="".concat(r,"-notice");return d.createElement("div",Te({},p,{ref:t,className:ce(B,a,ee({},"".concat(B,"-closable"),m)),style:n,onMouseEnter:function(H){var U;C(!0),p==null||(U=p.onMouseEnter)===null||U===void 0||U.call(p,H)},onMouseLeave:function(H){var U;C(!1),p==null||(U=p.onMouseLeave)===null||U===void 0||U.call(p,H)},onClick:g}),d.createElement("div",{className:"".concat(B,"-content")},f),m&&d.createElement("a",Te({tabIndex:0,className:"".concat(B,"-close"),onKeyDown:M,"aria-label":"Close"},K,{onClick:function(H){H.preventDefault(),H.stopPropagation(),F()}}),V.closeIcon),j&&d.createElement("progress",{className:"".concat(B,"-progress"),max:"100",value:L},L+"%"))}),k9=ve.createContext({}),xle=function(t){var r=t.children,n=t.classNames;return ve.createElement(k9.Provider,{value:{classNames:n}},r)},TM=8,PM=3,IM=16,ble=function(t){var r={offset:TM,threshold:PM,gap:IM};if(t&&bt(t)==="object"){var n,a,i;r.offset=(n=t.offset)!==null&&n!==void 0?n:TM,r.threshold=(a=t.threshold)!==null&&a!==void 0?a:PM,r.gap=(i=t.gap)!==null&&i!==void 0?i:IM}return[!!t,r]},Sle=["className","style","classNames","styles"],wle=function(t){var r=t.configList,n=t.placement,a=t.prefixCls,i=t.className,o=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,f=d.useContext(k9),m=f.classNames,h=d.useRef({}),v=d.useState(null),p=me(v,2),g=p[0],y=p[1],x=d.useState([]),b=me(x,2),S=b[0],w=b[1],E=r.map(function(A){return{config:A,key:String(A.key)}}),C=ble(u),O=me(C,2),_=O[0],T=O[1],I=T.offset,N=T.threshold,D=T.gap,k=_&&(S.length>0||E.length<=N),R=typeof s=="function"?s(n):s;return d.useEffect(function(){_&&S.length>1&&w(function(A){return A.filter(function(j){return E.some(function(F){var M=F.key;return j===M})})})},[S,E,_]),d.useEffect(function(){var A;if(_&&h.current[(A=E[E.length-1])===null||A===void 0?void 0:A.key]){var j;y(h.current[(j=E[E.length-1])===null||j===void 0?void 0:j.key])}},[E,_]),ve.createElement(FP,Te({key:n,className:ce(a,"".concat(a,"-").concat(n),m==null?void 0:m.list,i,ee(ee({},"".concat(a,"-stack"),!!_),"".concat(a,"-stack-expanded"),k)),style:o,keys:E,motionAppear:!0},R,{onAllRemoved:function(){l(n)}}),function(A,j){var F=A.config,M=A.className,V=A.style,K=A.index,L=F,B=L.key,W=L.times,H=String(B),U=F,X=U.className,Y=U.style,G=U.classNames,Q=U.styles,J=Rt(U,Sle),z=E.findIndex(function($e){return $e.key===H}),fe={};if(_){var te=E.length-1-(z>-1?z:K-1),re=n==="top"||n==="bottom"?"-50%":"0";if(te>0){var q,ne,he;fe.height=k?(q=h.current[H])===null||q===void 0?void 0:q.offsetHeight:g==null?void 0:g.offsetHeight;for(var xe=0,ye=0;ye-1?h.current[H]=Be:delete h.current[H]},prefixCls:a,classNames:G,styles:Q,className:ce(X,m==null?void 0:m.notice),style:Y,times:W,key:B,eventKey:B,onNoticeClose:c,hovering:_&&S.length>0})))})},Cle=d.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-notification":r,a=e.container,i=e.motion,o=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,f=e.renderNotifications,m=d.useState([]),h=me(m,2),v=h[0],p=h[1],g=function(_){var T,I=v.find(function(N){return N.key===_});I==null||(T=I.onClose)===null||T===void 0||T.call(I),p(function(N){return N.filter(function(D){return D.key!==_})})};d.useImperativeHandle(t,function(){return{open:function(_){p(function(T){var I=De(T),N=I.findIndex(function(R){return R.key===_.key}),D=ae({},_);if(N>=0){var k;D.times=(((k=T[N])===null||k===void 0?void 0:k.times)||0)+1,I[N]=D}else D.times=0,I.push(D);return o>0&&I.length>o&&(I=I.slice(-o)),I})},close:function(_){g(_)},destroy:function(){p([])}}});var y=d.useState({}),x=me(y,2),b=x[0],S=x[1];d.useEffect(function(){var O={};v.forEach(function(_){var T=_.placement,I=T===void 0?"topRight":T;I&&(O[I]=O[I]||[],O[I].push(_))}),Object.keys(b).forEach(function(_){O[_]=O[_]||[]}),S(O)},[v]);var w=function(_){S(function(T){var I=ae({},T),N=I[_]||[];return N.length||delete I[_],I})},E=d.useRef(!1);if(d.useEffect(function(){Object.keys(b).length>0?E.current=!0:E.current&&(c==null||c(),E.current=!1)},[b]),!a)return null;var C=Object.keys(b);return wi.createPortal(d.createElement(d.Fragment,null,C.map(function(O){var _=b[O],T=d.createElement(wle,{key:O,configList:_,placement:O,prefixCls:n,className:s==null?void 0:s(O),style:l==null?void 0:l(O),motion:i,onNoticeClose:g,onAllNoticeRemoved:w,stack:u});return f?f(T,{prefixCls:n,key:O}):T})),a)}),Ele=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],$le=function(){return document.body},NM=0;function _le(){for(var e={},t=arguments.length,r=new Array(t),n=0;n0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,r=t===void 0?$le:t,n=e.motion,a=e.prefixCls,i=e.maxCount,o=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,f=Rt(e,Ele),m=d.useState(),h=me(m,2),v=h[0],p=h[1],g=d.useRef(),y=d.createElement(Cle,{container:v,ref:g,prefixCls:a,motion:n,maxCount:i,className:o,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),x=d.useState([]),b=me(x,2),S=b[0],w=b[1],E=qt(function(O){var _=_le(f,O);(_.key===null||_.key===void 0)&&(_.key="rc-notification-".concat(NM),NM+=1),w(function(T){return[].concat(De(T),[{type:"open",config:_}])})}),C=d.useMemo(function(){return{open:E,close:function(_){w(function(T){return[].concat(De(T),[{type:"close",key:_}])})},destroy:function(){w(function(_){return[].concat(De(_),[{type:"destroy"}])})}}},[]);return d.useEffect(function(){p(r())}),d.useEffect(function(){if(g.current&&S.length){S.forEach(function(T){switch(T.type){case"open":g.current.open(T.config);break;case"close":g.current.close(T.key);break;case"destroy":g.current.destroy();break}});var O,_;w(function(T){return(O!==T||!_)&&(O=T,_=T.filter(function(I){return!S.includes(I)})),_})}},[S]),[C,y]}var Tle={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const Ple=Tle;var Ile=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:Ple}))},Nle=d.forwardRef(Ile);const Wc=Nle;function e1(...e){const t={};return e.forEach(r=>{r&&Object.keys(r).forEach(n=>{r[n]!==void 0&&(t[n]=r[n])})}),t}function t1(e){if(!e)return;const{closable:t,closeIcon:r}=e;return{closable:t,closeIcon:r}}function kM(e){const{closable:t,closeIcon:r}=e||{};return ve.useMemo(()=>{if(!t&&(t===!1||r===!1||r===null))return!1;if(t===void 0&&r===void 0)return null;let n={closeIcon:typeof r!="boolean"&&r!==null?r:void 0};return t&&typeof t=="object"&&(n=Object.assign(Object.assign({},n),t)),n},[t,r])}const kle={},R9=(e,t,r=kle)=>{const n=kM(e),a=kM(t),[i]=Hi("global",Vo.global),o=typeof n!="boolean"?!!(n!=null&&n.disabled):!1,s=ve.useMemo(()=>Object.assign({closeIcon:ve.createElement(cu,null)},r),[r]),l=ve.useMemo(()=>n===!1?!1:n?e1(s,a,n):a===!1?!1:a?e1(s,a):s.closable?s:!1,[n,a,s]);return ve.useMemo(()=>{var c,u;if(l===!1)return[!1,null,o,{}];const{closeIconRender:f}=s,{closeIcon:m}=l;let h=m;const v=Dn(l,!0);return h!=null&&(f&&(h=f(m)),h=ve.isValidElement(h)?ve.cloneElement(h,Object.assign(Object.assign(Object.assign({},h.props),{"aria-label":(u=(c=h.props)===null||c===void 0?void 0:c["aria-label"])!==null&&u!==void 0?u:i.close}),v)):ve.createElement("span",Object.assign({"aria-label":i.close},v),h)),[!0,h,o,v]},[o,i.close,l,s])},HP=()=>ve.useReducer(e=>e+1,0);function A9(e,...t){const r=e||{};return t.reduce((n,a)=>(Object.keys(a||{}).forEach(i=>{const o=r[i],s=a[i];if(o&&typeof o=="object")if(s&&typeof s=="object")n[i]=A9(o,n[i],s);else{const{_default:l}=o;l&&(n[i]=n[i]||{},n[i][l]=ce(n[i][l],s))}else n[i]=ce(n[i],s)}),n),{})}function Rle(e,...t){return d.useMemo(()=>A9.apply(void 0,[e].concat(t)),[t,e])}function Ale(...e){return d.useMemo(()=>e.reduce((t,r={})=>(Object.keys(r).forEach(n=>{t[n]=Object.assign(Object.assign({},t[n]),r[n])}),t),{}),[e])}function x_(e,t){const r=Object.assign({},e);return Object.keys(t).forEach(n=>{if(n!=="_default"){const a=t[n],i=r[n]||{};r[n]=a?x_(i,a):i}}),r}const Mle=(e,t,r)=>{const n=Rle.apply(void 0,[r].concat(De(e))),a=Ale.apply(void 0,De(t));return d.useMemo(()=>[x_(n,r),x_(a,r)],[n,a,r])},Dle=e=>{const[t,r]=d.useState(null);return[d.useCallback((a,i,o)=>{const s=t??a,l=Math.min(s||0,a),c=Math.max(s||0,a),u=i.slice(l,c+1).map(e),f=u.some(h=>!o.has(h)),m=[];return u.forEach(h=>{f?(o.has(h)||m.push(h),o.add(h)):(o.delete(h),m.push(h))}),r(f?c:null),m},[t]),r]},jle=()=>{const[e,t]=d.useState([]),r=d.useCallback(n=>(t(a=>[].concat(De(a),[n])),()=>{t(a=>a.filter(i=>i!==n))}),[]);return[e,r]};function Fle(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(r=>{if(!(r in e._antProxy)){const n=e[r];e._antProxy[r]=n,e[r]=t[r]}}),e}const Lle=(e,t)=>d.useImperativeHandle(e,()=>{const r=t(),{nativeElement:n}=r;return typeof Proxy<"u"?new Proxy(n,{get(a,i){return r[i]?r[i]:Reflect.get(a,i)}}):Fle(n,r)}),Ble=e=>{const t=d.useRef(e),[,r]=HP();return[()=>t.current,n=>{t.current=n,r()}]},zle=ve.createContext(void 0),eS=zle,ic=100,Hle=10,M9=ic*Hle,D9={Modal:ic,Drawer:ic,Popover:ic,Popconfirm:ic,Tooltip:ic,Tour:ic,FloatButton:ic},Wle={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Vle(e){return e in D9}const uu=(e,t)=>{const[,r]=Ga(),n=ve.useContext(eS),a=Vle(e);let i;if(t!==void 0)i=[t,t];else{let o=n??0;a?o+=(n?0:r.zIndexPopupBase)+D9[e]:o+=Wle[e],i=[n===void 0?t:o,o]}return i},Ule=e=>{const{componentCls:t,iconCls:r,boxShadow:n,colorText:a,colorSuccess:i,colorError:o,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:m,paddingXS:h,borderRadiusLG:v,zIndexPopup:p,contentPadding:g,contentBg:y}=e,x=`${t}-notice`,b=new fr("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),S=new fr("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:h,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${r}`]:{marginInlineEnd:m,fontSize:c},[`${x}-content`]:{display:"inline-block",padding:g,background:y,borderRadius:v,boxShadow:n,pointerEvents:"all"},[`${t}-success > ${r}`]:{color:i},[`${t}-error > ${r}`]:{color:o},[`${t}-warning > ${r}`]:{color:s},[`${t}-info > ${r}, + ${t}-loading > ${r}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},ur(e)),{color:a,position:"fixed",top:m,width:"100%",pointerEvents:"none",zIndex:p,[`${t}-move-up`]:{animationFillMode:"forwards"},[` + ${t}-move-up-appear, + ${t}-move-up-enter + `]:{animationName:b,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[` + ${t}-move-up-appear${t}-move-up-appear-active, + ${t}-move-up-enter${t}-move-up-enter-active + `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${x}-wrapper`]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},Kle=e=>({zIndexPopup:e.zIndexPopupBase+M9+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),j9=or("Message",e=>{const t=Yt(e,{height:150});return Ule(t)},Kle);var Gle=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);ad.createElement("div",{className:ce(`${e}-custom-content`,`${e}-${t}`)},r||qle[t],d.createElement("span",null,n)),Xle=e=>{const{prefixCls:t,className:r,type:n,icon:a,content:i}=e,o=Gle(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=d.useContext(Nt),l=t||s("message"),c=gn(l),[u,f,m]=j9(l,c);return u(d.createElement(N9,Object.assign({},o,{prefixCls:l,className:ce(r,f,`${l}-notice-pure-panel`,m,c),eventKey:"pure",duration:null,content:d.createElement(F9,{prefixCls:l,type:n,icon:a},i)})))},Yle=Xle;function Qle(e,t){return{motionName:t??`${e}-move-up`}}function WP(e){let t;const r=new Promise(a=>{t=e(()=>{a(!0)})}),n=()=>{t==null||t()};return n.then=(a,i)=>r.then(a,i),n.promise=r,n}var Zle=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const r=gn(t),[n,a,i]=j9(t,r);return n(d.createElement(xle,{classNames:{list:ce(a,i,r)}},e))},rce=(e,{prefixCls:t,key:r})=>d.createElement(tce,{prefixCls:t,key:r},e),nce=d.forwardRef((e,t)=>{const{top:r,prefixCls:n,getContainer:a,maxCount:i,duration:o=ece,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:m,direction:h}=d.useContext(Nt),v=n||u("message"),p=()=>({left:"50%",transform:"translateX(-50%)",top:r??Jle}),g=()=>ce({[`${v}-rtl`]:s??h==="rtl"}),y=()=>Qle(v,l),x=d.createElement("span",{className:`${v}-close-x`},d.createElement(cu,{className:`${v}-close-icon`})),[b,S]=Ole({prefixCls:v,style:p,className:g,motion:y,closable:!1,closeIcon:x,duration:o,getContainer:()=>(a==null?void 0:a())||(f==null?void 0:f())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:rce});return d.useImperativeHandle(t,()=>Object.assign(Object.assign({},b),{prefixCls:v,message:m})),S});let RM=0;function L9(e){const t=d.useRef(null);return lu(),[d.useMemo(()=>{const n=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},a=l=>{if(!t.current){const E=()=>{};return E.then=()=>{},E}const{open:c,prefixCls:u,message:f}=t.current,m=`${u}-notice`,{content:h,icon:v,type:p,key:g,className:y,style:x,onClose:b}=l,S=Zle(l,["content","icon","type","key","className","style","onClose"]);let w=g;return w==null&&(RM+=1,w=`antd-message-${RM}`),WP(E=>(c(Object.assign(Object.assign({},S),{key:w,content:d.createElement(F9,{prefixCls:u,type:p,icon:v},h),placement:"top",className:ce(p&&`${m}-${p}`,y,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),x),onClose:()=>{b==null||b(),E()}})),()=>{n(w)}))},o={open:a,destroy:l=>{var c;l!==void 0?n(l):(c=t.current)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(u,f,m)=>{let h;u&&typeof u=="object"&&"content"in u?h=u:h={content:u};let v,p;typeof f=="function"?p=f:(v=f,p=m);const g=Object.assign(Object.assign({onClose:p,duration:v},h),{type:l});return a(g)};o[l]=c}),o},[]),d.createElement(nce,Object.assign({key:"message-holder"},e,{ref:t}))]}function ace(e){return L9(e)}function B9(e,t){this.v=e,this.k=t}function Qa(e,t,r,n){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}Qa=function(o,s,l,c){function u(f,m){Qa(o,f,function(h){return this._invoke(f,m,h)})}s?a?a(o,s,{value:l,enumerable:!c,configurable:!c,writable:!c}):o[s]=l:(u("next",0),u("throw",1),u("return",2))},Qa(e,t,r,n)}function VP(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function i(h,v,p,g){var y=v&&v.prototype instanceof s?v:s,x=Object.create(y.prototype);return Qa(x,"_invoke",function(b,S,w){var E,C,O,_=0,T=w||[],I=!1,N={p:0,n:0,v:e,a:D,f:D.bind(e,4),d:function(R,A){return E=R,C=0,O=e,N.n=A,o}};function D(k,R){for(C=k,O=R,t=0;!I&&_&&!A&&t3?(A=M===R)&&(O=j[(C=j[4])?5:(C=3,3)],j[4]=j[5]=e):j[0]<=F&&((A=k<2&&FR||R>M)&&(j[4]=k,j[5]=R,N.n=M,C=0))}if(A||k>1)return o;throw I=!0,R}return function(k,R,A){if(_>1)throw TypeError("Generator is already running");for(I&&R===1&&D(R,A),C=R,O=A;(t=C<2?e:O)||!I;){E||(C?C<3?(C>1&&(N.n=-1),D(C,O)):N.n=O:N.v=O);try{if(_=2,E){if(C||(k="next"),t=E[k]){if(!(t=t.call(E,O)))throw TypeError("iterator result is not an object");if(!t.done)return t;O=t.value,C<2&&(C=0)}else C===1&&(t=E.return)&&t.call(E),C<2&&(O=TypeError("The iterator does not provide a '"+k+"' method"),C=1);E=e}else if((t=(I=N.n<0)?O:b.call(S,N))!==o)break}catch(j){E=e,C=1,O=j}finally{_=1}}return{value:t,done:I}}}(h,p,g),!0),x}var o={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Qa(t={},n,function(){return this}),t),f=c.prototype=s.prototype=Object.create(u);function m(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,c):(h.__proto__=c,Qa(h,a,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=c,Qa(f,"constructor",c),Qa(c,"constructor",l),l.displayName="GeneratorFunction",Qa(c,a,"GeneratorFunction"),Qa(f),Qa(f,a,"Generator"),Qa(f,n,function(){return this}),Qa(f,"toString",function(){return"[object Generator]"}),(VP=function(){return{w:i,m}})()}function r1(e,t){function r(a,i,o,s){try{var l=e[a](i),c=l.value;return c instanceof B9?t.resolve(c.v).then(function(u){r("next",u,o,s)},function(u){r("throw",u,o,s)}):t.resolve(c).then(function(u){l.value=u,o(l)},function(u){return r("throw",u,o,s)})}catch(u){s(u)}}var n;this.next||(Qa(r1.prototype),Qa(r1.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Qa(this,"_invoke",function(a,i,o){function s(){return new t(function(l,c){r(a,o,l,c)})}return n=n?n.then(s,s):s()},!0)}function z9(e,t,r,n,a){return new r1(VP().w(e,t,r,n),a||Promise)}function ice(e,t,r,n,a){var i=z9(e,t,r,n,a);return i.next().then(function(o){return o.done?o.value:i.next()})}function oce(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function a(){for(;r.length;)if((n=r.pop())in t)return a.value=n,a.done=!1,a;return a.done=!0,a}}function AM(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(bt(e)+" is not iterable")}function Or(){var e=VP(),t=e.m(Or),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(o){var s=typeof o=="function"&&o.constructor;return!!s&&(s===r||(s.displayName||s.name)==="GeneratorFunction")}var a={throw:1,return:2,break:3,continue:3};function i(o){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(f,m){return l(c.a,a[f],m)},delegateYield:function(f,m,h){return s.resultName=m,l(c.d,AM(f),h)},finish:function(f){return l(c.f,f)}},l=function(f,m,h){c.p=s.prev,c.n=s.next;try{return f(m,h)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return o.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(Or=function(){return{wrap:function(l,c,u,f){return e.w(i(l),c,u,f&&f.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(l,c){return new B9(l,c)},AsyncIterator:r1,async:function(l,c,u,f,m){return(n(c)?z9:ice)(i(l),c,u,f,m)},keys:oce,values:AM}})()}function MM(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,a)}function xi(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var i=e.apply(t,r);function o(l){MM(i,n,a,o,s,"next",l)}function s(l){MM(i,n,a,o,s,"throw",l)}o(void 0)})}}var hv=ae({},Hre),sce=hv.version,a2=hv.render,lce=hv.unmountComponentAtNode,tS;try{var cce=Number((sce||"").split(".")[0]);cce>=18&&(tS=hv.createRoot)}catch{}function DM(e){var t=hv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&bt(t)==="object"&&(t.usingClientEntryPoint=e)}var n1="__rc_react_root__";function uce(e,t){DM(!0);var r=t[n1]||tS(t);DM(!1),r.render(e),t[n1]=r}function dce(e,t){a2==null||a2(e,t)}function fce(e,t){if(tS){uce(e,t);return}dce(e,t)}function mce(e){return b_.apply(this,arguments)}function b_(){return b_=xi(Or().mark(function e(t){return Or().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var a;(a=t[n1])===null||a===void 0||a.unmount(),delete t[n1]}));case 1:case"end":return n.stop()}},e)})),b_.apply(this,arguments)}function hce(e){lce(e)}function pce(e){return S_.apply(this,arguments)}function S_(){return S_=xi(Or().mark(function e(t){return Or().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(tS===void 0){n.next=2;break}return n.abrupt("return",mce(t));case 2:hce(t);case 3:case"end":return n.stop()}},e)})),S_.apply(this,arguments)}const vce=(e,t)=>(fce(e,t),()=>pce(t));let jM=vce;function UP(e){return e&&(jM=e),jM}const i2=()=>({height:0,opacity:0}),FM=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},gce=e=>({height:e?e.offsetHeight:0}),o2=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",yce=(e=pp)=>({motionName:`${e}-motion-collapse`,onAppearStart:i2,onEnterStart:i2,onAppearActive:FM,onEnterActive:FM,onLeaveStart:gce,onLeaveActive:i2,onAppearEnd:o2,onEnterEnd:o2,onLeaveEnd:o2,motionDeadline:500}),Vc=(e,t,r)=>r!==void 0?r:`${e}-${t}`,vp=yce;function Er(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}const q0=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),i=a.width,o=a.height;if(i||o)return!0}}return!1},xce=e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},bce=Aoe("Wave",xce),rS=`${pp}-wave-target`;function Sce(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function wce(e){var t;const{borderTopColor:r,borderColor:n,backgroundColor:a}=getComputedStyle(e);return(t=[r,n,a].find(Sce))!==null&&t!==void 0?t:null}function s2(e){return Number.isNaN(e)?0:e}const Cce=e=>{const{className:t,target:r,component:n,registerUnmount:a}=e,i=d.useRef(null),o=d.useRef(null);d.useEffect(()=>{o.current=a()},[]);const[s,l]=d.useState(null),[c,u]=d.useState([]),[f,m]=d.useState(0),[h,v]=d.useState(0),[p,g]=d.useState(0),[y,x]=d.useState(0),[b,S]=d.useState(!1),w={left:f,top:h,width:p,height:y,borderRadius:c.map(O=>`${O}px`).join(" ")};s&&(w["--wave-color"]=s);function E(){const O=getComputedStyle(r);l(wce(r));const _=O.position==="static",{borderLeftWidth:T,borderTopWidth:I}=O;m(_?r.offsetLeft:s2(-Number.parseFloat(T))),v(_?r.offsetTop:s2(-Number.parseFloat(I))),g(r.offsetWidth),x(r.offsetHeight);const{borderTopLeftRadius:N,borderTopRightRadius:D,borderBottomLeftRadius:k,borderBottomRightRadius:R}=O;u([N,D,R,k].map(A=>s2(Number.parseFloat(A))))}if(d.useEffect(()=>{if(r){const O=Ut(()=>{E(),S(!0)});let _;return typeof ResizeObserver<"u"&&(_=new ResizeObserver(E),_.observe(r)),()=>{Ut.cancel(O),_==null||_.disconnect()}}},[r]),!b)return null;const C=(n==="Checkbox"||n==="Radio")&&(r==null?void 0:r.classList.contains(rS));return d.createElement(Vi,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(O,_)=>{var T,I;if(_.deadline||_.propertyName==="opacity"){const N=(T=i.current)===null||T===void 0?void 0:T.parentElement;(I=o.current)===null||I===void 0||I.call(o).then(()=>{N==null||N.remove()})}return!1}},({className:O},_)=>d.createElement("div",{ref:xa(i,_),className:ce(t,O,{"wave-quick":C}),style:w}))},Ece=(e,t)=>{var r;const{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e==null||e.insertBefore(a,e==null?void 0:e.firstChild);const i=UP();let o=null;function s(){return o}o=i(d.createElement(Cce,Object.assign({},t,{target:e,registerUnmount:s})),a)},$ce=Ece,_ce=(e,t,r)=>{const{wave:n}=d.useContext(Nt),[,a,i]=Ga(),o=qt(c=>{const u=e.current;if(n!=null&&n.disabled||!u)return;const f=u.querySelector(`.${rS}`)||u,{showEffect:m}=n||{};(m||$ce)(f,{className:t,token:a,component:r,event:c,hashId:i})}),s=d.useRef(null);return c=>{Ut.cancel(s.current),s.current=Ut(()=>{o(c)})}},Oce=_ce,Tce=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:a}=d.useContext(Nt),i=d.useRef(null),o=a("wave"),[,s]=bce(o),l=Oce(i,ce(o,s),n);if(ve.useEffect(()=>{const u=i.current;if(!u||u.nodeType!==window.Node.ELEMENT_NODE||r)return;const f=m=>{!q0(m.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")&&!u.className.includes("disabled:")||u.getAttribute("aria-disabled")==="true"||u.className.includes("-leave")||l(m)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[r]),!ve.isValidElement(t))return t??null;const c=_s(t)?xa(su(t),i):i;return pa(t,{ref:c})},nS=Tce,Pce=e=>{const t=ve.useContext(fv);return ve.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},ba=Pce,Ice=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},Nce=or(["Space","Compact"],e=>[Ice(e)],()=>({}),{resetStyle:!1});var H9=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const r=d.useContext(aS),n=d.useMemo(()=>{if(!r)return"";const{compactDirection:a,isFirstItem:i,isLastItem:o}=r,s=a==="vertical"?"-vertical-":"-";return ce(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:o,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:n}},kce=e=>{const{children:t}=e;return d.createElement(aS.Provider,{value:null},t)},Rce=e=>{const{children:t}=e,r=H9(e,["children"]);return d.createElement(aS.Provider,{value:d.useMemo(()=>r,[r])},t)},Ace=e=>{const{getPrefixCls:t,direction:r}=d.useContext(Nt),{size:n,direction:a,block:i,prefixCls:o,className:s,rootClassName:l,children:c}=e,u=H9(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=ba(b=>n??b),m=t("space-compact",o),[h,v]=Nce(m),p=ce(m,v,{[`${m}-rtl`]:r==="rtl",[`${m}-block`]:i,[`${m}-vertical`]:a==="vertical"},s,l),g=d.useContext(aS),y=ha(c),x=d.useMemo(()=>y.map((b,S)=>{const w=(b==null?void 0:b.key)||`${m}-item-${S}`;return d.createElement(Rce,{key:w,compactSize:f,compactDirection:a,isFirstItem:S===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:S===y.length-1&&(!g||(g==null?void 0:g.isLastItem))},b)}),[y,g,a,f,m]);return y.length===0?null:h(d.createElement("div",Object.assign({className:p},u),x))},Mce=Ace;var Dce=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:r}=d.useContext(Nt),{prefixCls:n,size:a,className:i}=e,o=Dce(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=Ga(),c=d.useMemo(()=>{switch(a){case"large":return"lg";case"small":return"sm";default:return""}},[a]),u=ce(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},i,l);return d.createElement(W9.Provider,{value:a},d.createElement("div",Object.assign({},o,{className:u})))},Fce=jce,LM=/^[\u4E00-\u9FA5]{2}$/,w_=LM.test.bind(LM);function KP(e){return e==="danger"?{danger:!0}:{type:e}}function BM(e){return typeof e=="string"}function l2(e){return e==="text"||e==="link"}function Lce(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&BM(e.type)&&w_(e.props.children)?pa(e,{children:e.props.children.split("").join(r)}):BM(e)?w_(e)?ve.createElement("span",null,e.split("").join(r)):ve.createElement("span",null,e):T9(e)?ve.createElement("span",null,e):e}function Bce(e,t){let r=!1;const n=[];return ve.Children.forEach(e,a=>{const i=typeof a,o=i==="string"||i==="number";if(r&&o){const s=n.length-1,l=n[s];n[s]=`${l}${a}`}else n.push(a);r=o}),ve.Children.map(n,a=>Lce(a,t))}["default","primary","danger"].concat(De(Hc));const zce=d.forwardRef((e,t)=>{const{className:r,style:n,children:a,prefixCls:i}=e,o=ce(`${i}-icon`,r);return ve.createElement("span",{ref:t,className:o,style:n},a)}),V9=zce,zM=d.forwardRef((e,t)=>{const{prefixCls:r,className:n,style:a,iconClassName:i}=e,o=ce(`${r}-loading-icon`,n);return ve.createElement(V9,{prefixCls:r,className:o,style:a,ref:t},ve.createElement(Wc,{className:i}))}),c2=()=>({width:0,opacity:0,transform:"scale(0)"}),u2=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Hce=e=>{const{prefixCls:t,loading:r,existIcon:n,className:a,style:i,mount:o}=e,s=!!r;return n?ve.createElement(zM,{prefixCls:t,className:a,style:i}):ve.createElement(Vi,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!o,motionEnter:!o,motionLeave:!o,removeOnLeave:!0,onAppearStart:c2,onAppearActive:u2,onEnterStart:c2,onEnterActive:u2,onLeaveStart:u2,onLeaveActive:c2},({className:l,style:c},u)=>{const f=Object.assign(Object.assign({},i),c);return ve.createElement(zM,{prefixCls:t,className:ce(a,l),style:f,ref:u})})},Wce=Hce,HM=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Vce=e=>{const{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:a,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(n).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},HM(`${t}-primary`,a),HM(`${t}-danger`,i)]}},Uce=Vce;var Kce=["b"],Gce=["v"],d2=function(t){return Math.round(Number(t||0))},qce=function(t){if(t instanceof lr)return t;if(t&&bt(t)==="object"&&"h"in t&&"b"in t){var r=t,n=r.b,a=Rt(r,Kce);return ae(ae({},a),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},gp=function(e){yo(r,e);var t=Qo(r);function r(n){return Wr(this,r),t.call(this,qce(n))}return Vr(r,[{key:"toHsbString",value:function(){var a=this.toHsb(),i=d2(a.s*100),o=d2(a.b*100),s=d2(a.h),l=a.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(o,"%)"),u="hsba(".concat(s,", ").concat(i,"%, ").concat(o,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var a=this.toHsv(),i=a.v,o=Rt(a,Gce);return ae(ae({},o),{},{b:i,a:this.a})}}]),r}(lr),Xce=function(t){return t instanceof gp?t:new gp(t)};Xce("#1677ff");const Yce=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",Qce=(e,t)=>e?Yce(e,t):"";let C_=function(){function e(t){Wr(this,e);var r;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(r=t.colors)===null||r===void 0?void 0:r.map(a=>({color:new e(a.color),percent:a.percent})),this.cleared=t.cleared;return}const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:a,percent:i})=>({color:new e(a),percent:i})),this.metaColor=new gp(this.colors[0].color.metaColor)):this.metaColor=new gp(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Vr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Qce(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:r}=this;return r?`linear-gradient(90deg, ${r.map(a=>`${a.color.toRgbString()} ${a.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((n,a)=>{const i=r.colors[a];return n.percent===i.percent&&n.color.equals(i.color)}):this.toHexString()===r.toHexString()}}])}();var Zce={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"};const Jce=Zce;var eue=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:Jce}))},tue=d.forwardRef(eue);const md=tue,rue=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, + opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),iS=rue,nue=e=>({animationDuration:e,animationFillMode:"both"}),aue=e=>({animationDuration:e,animationFillMode:"both"}),oS=(e,t,r,n,a=!1)=>{const i=a?"&":"";return{[` + ${i}${e}-enter, + ${i}${e}-appear + `]:Object.assign(Object.assign({},nue(n)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},aue(n)),{animationPlayState:"paused"}),[` + ${i}${e}-enter${e}-enter-active, + ${i}${e}-appear${e}-appear-active + `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},iue=new fr("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),oue=new fr("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),U9=(e,t=!1)=>{const{antCls:r}=e,n=`${r}-fade`,a=t?"&":"";return[oS(n,iue,oue,e.motionDurationMid,t),{[` + ${a}${n}-enter, + ${a}${n}-appear + `]:{opacity:0,animationTimingFunction:"linear"},[`${a}${n}-leave`]:{animationTimingFunction:"linear"}}]},sue=new fr("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),lue=new fr("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),cue=new fr("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),uue=new fr("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),due=new fr("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),fue=new fr("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),mue=new fr("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),hue=new fr("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),pue={"move-up":{inKeyframes:mue,outKeyframes:hue},"move-down":{inKeyframes:sue,outKeyframes:lue},"move-left":{inKeyframes:cue,outKeyframes:uue},"move-right":{inKeyframes:due,outKeyframes:fue}},x0=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:i}=pue[t];return[oS(n,a,i,e.motionDurationMid),{[` + ${n}-enter, + ${n}-appear + `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},sS=new fr("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),lS=new fr("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),cS=new fr("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),uS=new fr("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),vue=new fr("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),gue=new fr("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),yue=new fr("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),xue=new fr("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),bue={"slide-up":{inKeyframes:sS,outKeyframes:lS},"slide-down":{inKeyframes:cS,outKeyframes:uS},"slide-left":{inKeyframes:vue,outKeyframes:gue},"slide-right":{inKeyframes:yue,outKeyframes:xue}},al=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:i}=bue[t];return[oS(n,a,i,e.motionDurationMid),{[` + ${n}-enter, + ${n}-appear + `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},GP=new fr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Sue=new fr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),WM=new fr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),VM=new fr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),wue=new fr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Cue=new fr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Eue=new fr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),$ue=new fr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),_ue=new fr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Oue=new fr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Tue=new fr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Pue=new fr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Iue={zoom:{inKeyframes:GP,outKeyframes:Sue},"zoom-big":{inKeyframes:WM,outKeyframes:VM},"zoom-big-fast":{inKeyframes:WM,outKeyframes:VM},"zoom-left":{inKeyframes:Eue,outKeyframes:$ue},"zoom-right":{inKeyframes:_ue,outKeyframes:Oue},"zoom-up":{inKeyframes:wue,outKeyframes:Cue},"zoom-down":{inKeyframes:Tue,outKeyframes:Pue}},pv=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:i}=Iue[t];return[oS(n,a,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` + ${n}-enter, + ${n}-appear + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Nue=e=>e instanceof C_?e:new C_(e),kue=(e,t)=>{const{r,g:n,b:a,a:i}=e.toRgb(),o=new gp(e.toRgbString()).onBackground(t).toHsv();return i<=.5?o.v>.5:r*.299+n*.587+a*.114>192},K9=e=>{const{paddingInline:t,onlyIconSize:r}=e;return Yt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r})},G9=e=>{var t,r,n,a,i,o;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,c=(n=e.contentFontSizeLG)!==null&&n!==void 0?n:e.fontSizeLG,u=(a=e.contentLineHeight)!==null&&a!==void 0?a:ox(s),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:ox(l),m=(o=e.contentLineHeightLG)!==null&&o!==void 0?o:ox(c),h=kue(new C_(e.colorBgSolid),"#fff")?"#000":"#fff",v=Hc.reduce((p,g)=>Object.assign(Object.assign({},p),{[`${g}ShadowColor`]:`0 ${se(e.controlOutlineWidth)} 0 ${ah(e[`${g}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},v),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:h,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*m)/2-e.lineWidth,0)})},Rue=e=>{const{componentCls:t,iconCls:r,fontWeight:n,opacityLoading:a,motionDurationSlow:i,motionEaseInOut:o,iconGap:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${se(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:V0(),"> a":{color:"currentColor"},"&:not(:disabled)":Nl(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:a,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${i} ${o}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},q9=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),Aue=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),Mue=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),dS=(e,t,r,n,a,i,o,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},q9(e,Object.assign({background:t},o),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:i||void 0}})}),Due=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Mue(e))}),jue=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),fS=(e,t,r,n)=>{const i=n&&["link","text"].includes(n)?jue:Due;return Object.assign(Object.assign({},i(e)),q9(e.componentCls,t,r))},mS=(e,t,r,n,a)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:r},fS(e,n,a))}),hS=(e,t,r,n,a)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:r},fS(e,n,a))}),pS=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),vS=(e,t,r,n)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},fS(e,r,n))}),il=(e,t,r,n,a)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:t,boxShadow:"none"},fS(e,n,a,r))}),Fue=e=>{const{componentCls:t}=e;return Hc.reduce((r,n)=>{const a=e[`${n}6`],i=e[`${n}1`],o=e[`${n}5`],s=e[`${n}2`],l=e[`${n}3`],c=e[`${n}7`];return Object.assign(Object.assign({},r),{[`&${t}-color-${n}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:a,boxShadow:e[`${n}ShadowColor`]},mS(e,e.colorTextLightSolid,a,{background:o},{background:c})),hS(e,a,e.colorBgContainer,{color:o,borderColor:o,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),pS(e)),vS(e,i,{color:a,background:s},{color:a,background:l})),il(e,a,"link",{color:o},{color:c})),il(e,a,"text",{color:o,background:i},{color:c,background:l}))})},{})},Lue=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},mS(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),pS(e)),vS(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),dS(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),il(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Bue=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},hS(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),pS(e)),vS(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),il(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),il(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),dS(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),zue=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},mS(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),hS(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),pS(e)),vS(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),il(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),il(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),dS(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Hue=e=>Object.assign(Object.assign({},il(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),dS(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),Wue=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:Lue(e),[`${t}-color-primary`]:Bue(e),[`${t}-color-dangerous`]:zue(e),[`${t}-color-link`]:Hue(e)},Fue(e))},Vue=e=>Object.assign(Object.assign(Object.assign(Object.assign({},hS(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),il(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),mS(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),il(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),qP=(e,t="")=>{const{componentCls:r,controlHeight:n,fontSize:a,borderRadius:i,buttonPaddingHorizontal:o,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:a,height:n,padding:`${se(l)} ${se(o)}`,borderRadius:i,[`&${r}-icon-only`]:{width:n,[s]:{fontSize:c}}}},{[`${r}${r}-circle${t}`]:Aue(e)},{[`${r}${r}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${r}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},Uue=e=>{const t=Yt(e,{fontSize:e.contentFontSize});return qP(t,e.componentCls)},Kue=e=>{const t=Yt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return qP(t,`${e.componentCls}-sm`)},Gue=e=>{const t=Yt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return qP(t,`${e.componentCls}-lg`)},que=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Xue=or("Button",e=>{const t=K9(e);return[Rue(t),Uue(t),Kue(t),Gue(t),que(t),Wue(t),Vue(t),Uce(t)]},G9,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Yue(e,t,r,n){const{focusElCls:a,focus:i,borderElCls:o}=r,s=o?"> *":"",l=["hover",i?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[l]:{zIndex:3}},a?{[`&${a}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function Que(e,t,r){const{borderElCls:n}=r,a=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function X0(e,t={focus:!0}){const{componentCls:r}=e,{componentCls:n}=t,a=n||r,i=`${a}-compact`;return{[i]:Object.assign(Object.assign({},Yue(e,i,t,a)),Que(a,i,t))}}function Zue(e,t,r){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function Jue(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 ede(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Zue(e,t,e.componentCls)),Jue(e.componentCls,t))}}const tde=e=>{const{componentCls:t,colorPrimaryHover:r,lineWidth:n,calc:a}=e,i=a(n).mul(-1).equal(),o=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?i:0,insetInlineStart:s?0:i,backgroundColor:r,content:'""',width:s?"100%":n,height:s?n:"100%"}}};return Object.assign(Object.assign({},o()),o(!0))},rde=U0(["Button","compact"],e=>{const t=K9(e);return[X0(t),ede(t),tde(t)]},G9);var nde=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var r,n;const{loading:a=!1,prefixCls:i,color:o,variant:s,type:l,danger:c=!1,shape:u,size:f,styles:m,disabled:h,className:v,rootClassName:p,children:g,icon:y,iconPosition:x="start",ghost:b=!1,block:S=!1,htmlType:w="button",classNames:E,style:C={},autoInsertSpace:O,autoFocus:_}=e,T=nde(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),I=l||"default",{button:N}=ve.useContext(Nt),D=u||(N==null?void 0:N.shape)||"default",[k,R]=d.useMemo(()=>{if(o&&s)return[o,s];if(l||c){const We=ide[I]||[];return c?["danger",We[1]]:We}return N!=null&&N.color&&(N!=null&&N.variant)?[N.color,N.variant]:["default","outlined"]},[o,s,l,c,N==null?void 0:N.color,N==null?void 0:N.variant,I]),j=k==="danger"?"dangerous":k,{getPrefixCls:F,direction:M,autoInsertSpace:V,className:K,style:L,classNames:B,styles:W}=Fn("button"),H=(r=O??V)!==null&&r!==void 0?r:!0,U=F("btn",i),[X,Y,G]=Xue(U),Q=d.useContext(Wi),J=h??Q,z=d.useContext(W9),fe=d.useMemo(()=>ade(a),[a]),[te,re]=d.useState(fe.loading),[q,ne]=d.useState(!1),he=d.useRef(null),xe=Wl(t,he),ye=d.Children.count(g)===1&&!y&&!l2(R),pe=d.useRef(!0);ve.useEffect(()=>(pe.current=!1,()=>{pe.current=!0}),[]),Gt(()=>{let We=null;fe.delay>0?We=setTimeout(()=>{We=null,re(!0)},fe.delay):re(fe.loading);function at(){We&&(clearTimeout(We),We=null)}return at},[fe.delay,fe.loading]),d.useEffect(()=>{if(!he.current||!H)return;const We=he.current.textContent||"";ye&&w_(We)?q||ne(!0):q&&ne(!1)}),d.useEffect(()=>{_&&he.current&&he.current.focus()},[]);const be=ve.useCallback(We=>{var at;if(te||J){We.preventDefault();return}(at=e.onClick)===null||at===void 0||at.call(e,("href"in e,We))},[e.onClick,te,J]),{compactSize:_e,compactItemClassnames:$e}=cl(U,M),Be={large:"lg",small:"sm",middle:void 0},Fe=ba(We=>{var at,yt;return(yt=(at=f??_e)!==null&&at!==void 0?at:z)!==null&&yt!==void 0?yt:We}),nt=Fe&&(n=Be[Fe])!==null&&n!==void 0?n:"",qe=te?"loading":y,Ge=Er(T,["navigate"]),Le=ce(U,Y,G,{[`${U}-${D}`]:D!=="default"&&D,[`${U}-${I}`]:I,[`${U}-dangerous`]:c,[`${U}-color-${j}`]:j,[`${U}-variant-${R}`]:R,[`${U}-${nt}`]:nt,[`${U}-icon-only`]:!g&&g!==0&&!!qe,[`${U}-background-ghost`]:b&&!l2(R),[`${U}-loading`]:te,[`${U}-two-chinese-chars`]:q&&H&&!te,[`${U}-block`]:S,[`${U}-rtl`]:M==="rtl",[`${U}-icon-end`]:x==="end"},$e,v,p,K),Ne=Object.assign(Object.assign({},L),C),we=ce(E==null?void 0:E.icon,B.icon),je=Object.assign(Object.assign({},(m==null?void 0:m.icon)||{}),W.icon||{}),Oe=We=>ve.createElement(V9,{prefixCls:U,className:we,style:je},We),Me=()=>ve.createElement(Wce,{existIcon:!!y,prefixCls:U,loading:te,mount:pe.current});let ge;y&&!te?ge=Oe(y):a&&typeof a=="object"&&a.icon?ge=Oe(a.icon):ge=Me();const Se=g||g===0?Bce(g,ye&&H):null;if(Ge.href!==void 0)return X(ve.createElement("a",Object.assign({},Ge,{className:ce(Le,{[`${U}-disabled`]:J}),href:J?void 0:Ge.href,style:Ne,onClick:be,ref:xe,tabIndex:J?-1:0,"aria-disabled":J}),ge,Se));let Re=ve.createElement("button",Object.assign({},T,{type:w,className:Le,style:Ne,onClick:be,disabled:J,ref:xe}),ge,Se,$e&&ve.createElement(rde,{prefixCls:U}));return l2(R)||(Re=ve.createElement(nS,{component:"Button",disabled:te},Re)),X(Re)}),XP=ode;XP.Group=Fce;XP.__ANT_BUTTON=!0;const kt=XP,f2=e=>typeof(e==null?void 0:e.then)=="function",sde=e=>{const{type:t,children:r,prefixCls:n,buttonProps:a,close:i,autoFocus:o,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,f=d.useRef(!1),m=d.useRef(null),[h,v]=fd(!1),p=(...x)=>{i==null||i.apply(void 0,x)};d.useEffect(()=>{let x=null;return o&&(x=setTimeout(()=>{var b;(b=m.current)===null||b===void 0||b.focus({preventScroll:!0})})),()=>{x&&clearTimeout(x)}},[o]);const g=x=>{f2(x)&&(v(!0),x.then((...b)=>{v(!1,!0),p.apply(void 0,b),f.current=!1},b=>{if(v(!1,!0),f.current=!1,!(l!=null&&l()))return Promise.reject(b)}))},y=x=>{if(f.current)return;if(f.current=!0,!u){p();return}let b;if(s){if(b=u(x),c&&!f2(b)){f.current=!1,p(x);return}}else if(u.length)b=u(i),f.current=!1;else if(b=u(),!f2(b)){p();return}g(b)};return d.createElement(kt,Object.assign({},KP(t),{onClick:y,loading:h,prefixCls:n},a,{ref:m}),r)},YP=sde,vv=ve.createContext({}),{Provider:X9}=vv,lde=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:r,isSilent:n,mergedOkCancel:a,rootPrefixCls:i,close:o,onCancel:s,onConfirm:l}=d.useContext(vv);return a?ve.createElement(YP,{isSilent:n,actionFn:s,close:(...c)=>{o==null||o.apply(void 0,c),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},r):null},UM=lde,cde=()=>{const{autoFocusButton:e,close:t,isSilent:r,okButtonProps:n,rootPrefixCls:a,okTextLocale:i,okType:o,onConfirm:s,onOk:l}=d.useContext(vv);return ve.createElement(YP,{isSilent:r,type:o||"primary",actionFn:l,close:(...c)=>{t==null||t.apply(void 0,c),s==null||s(!0)},autoFocus:e==="ok",buttonProps:n,prefixCls:`${a}-btn`},i)},KM=cde;var Y9=d.createContext(null),GM=[];function ude(e,t){var r=d.useState(function(){if(!Ma())return null;var v=document.createElement("div");return v}),n=me(r,1),a=n[0],i=d.useRef(!1),o=d.useContext(Y9),s=d.useState(GM),l=me(s,2),c=l[0],u=l[1],f=o||(i.current?void 0:function(v){u(function(p){var g=[v].concat(De(p));return g})});function m(){a.parentElement||document.body.appendChild(a),i.current=!0}function h(){var v;(v=a.parentElement)===null||v===void 0||v.removeChild(a),i.current=!1}return Gt(function(){return e?o?o(m):m():h(),h},[e]),Gt(function(){c.length&&(c.forEach(function(v){return v()}),u(GM))},[c]),[a,f]}var m2;function Q9(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var a,i;if(e){var o=getComputedStyle(e);n.scrollbarColor=o.scrollbarColor,n.scrollbarWidth=o.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";Cl(` +#`.concat(t,`::-webkit-scrollbar { +`).concat(u,` +`).concat(f,` +}`),t)}catch(v){console.error(v),a=l,i=c}}document.body.appendChild(r);var m=e&&a&&!isNaN(a)?a:r.offsetWidth-r.clientWidth,h=e&&i&&!isNaN(i)?i:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),dp(t),{width:m,height:h}}function qM(e){return typeof document>"u"?0:((e||m2===void 0)&&(m2=Q9()),m2.width)}function E_(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:Q9(e)}function dde(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var fde="rc-util-locker-".concat(Date.now()),XM=0;function mde(e){var t=!!e,r=d.useState(function(){return XM+=1,"".concat(fde,"_").concat(XM)}),n=me(r,1),a=n[0];Gt(function(){if(t){var i=E_(document.body).width,o=dde();Cl(` +html body { + overflow-y: hidden; + `.concat(o?"width: calc(100% - ".concat(i,"px);"):"",` +}`),a)}else dp(a);return function(){dp(a)}},[t,a])}var YM=!1;function hde(e){return typeof e=="boolean"&&(YM=e),YM}var QM=function(t){return t===!1?!1:!Ma()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},QP=d.forwardRef(function(e,t){var r=e.open,n=e.autoLock,a=e.getContainer;e.debug;var i=e.autoDestroy,o=i===void 0?!0:i,s=e.children,l=d.useState(r),c=me(l,2),u=c[0],f=c[1],m=u||r;d.useEffect(function(){(o||r)&&f(r)},[r,o]);var h=d.useState(function(){return QM(a)}),v=me(h,2),p=v[0],g=v[1];d.useEffect(function(){var I=QM(a);g(I??null)});var y=ude(m&&!p),x=me(y,2),b=x[0],S=x[1],w=p??b;mde(n&&r&&Ma()&&(w===b||w===document.body));var E=null;if(s&&_s(s)&&t){var C=s;E=C.ref}var O=Wl(E,t);if(!m||!Ma()||p===void 0)return null;var _=w===!1||hde(),T=s;return t&&(T=d.cloneElement(s,{ref:O})),d.createElement(Y9.Provider,{value:S},_?T:wi.createPortal(T,w))}),Z9=d.createContext({});function pde(){var e=ae({},F0);return e.useId}var ZM=0,JM=pde();const gS=JM?function(t){var r=JM();return t||r}:function(t){var r=d.useState("ssr-id"),n=me(r,2),a=n[0],i=n[1];return d.useEffect(function(){var o=ZM;ZM+=1,i("rc_unique_".concat(o))},[]),t||a};function e3(e,t,r){var n=t;return!n&&r&&(n="".concat(e,"-").concat(r)),n}function t3(e,t){var r=e["page".concat(t?"Y":"X","Offset")],n="scroll".concat(t?"Top":"Left");if(typeof r!="number"){var a=e.document;r=a.documentElement[n],typeof r!="number"&&(r=a.body[n])}return r}function vde(e){var t=e.getBoundingClientRect(),r={left:t.left,top:t.top},n=e.ownerDocument,a=n.defaultView||n.parentWindow;return r.left+=t3(a),r.top+=t3(a,!0),r}const gde=d.memo(function(e){var t=e.children;return t},function(e,t){var r=t.shouldUpdate;return!r});var yde={width:0,height:0,overflow:"hidden",outline:"none"},xde={outline:"none"},J9=ve.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,a=e.style,i=e.title,o=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,f=e.children,m=e.bodyStyle,h=e.bodyProps,v=e.modalRender,p=e.onMouseDown,g=e.onMouseUp,y=e.holderRef,x=e.visible,b=e.forceRender,S=e.width,w=e.height,E=e.classNames,C=e.styles,O=ve.useContext(Z9),_=O.panel,T=Wl(y,_),I=d.useRef(),N=d.useRef();ve.useImperativeHandle(t,function(){return{focus:function(){var L;(L=I.current)===null||L===void 0||L.focus({preventScroll:!0})},changeActive:function(L){var B=document,W=B.activeElement;L&&W===N.current?I.current.focus({preventScroll:!0}):!L&&W===I.current&&N.current.focus({preventScroll:!0})}}});var D={};S!==void 0&&(D.width=S),w!==void 0&&(D.height=w);var k=s?ve.createElement("div",{className:ce("".concat(r,"-footer"),E==null?void 0:E.footer),style:ae({},C==null?void 0:C.footer)},s):null,R=i?ve.createElement("div",{className:ce("".concat(r,"-header"),E==null?void 0:E.header),style:ae({},C==null?void 0:C.header)},ve.createElement("div",{className:"".concat(r,"-title"),id:o},i)):null,A=d.useMemo(function(){return bt(l)==="object"&&l!==null?l:l?{closeIcon:c??ve.createElement("span",{className:"".concat(r,"-close-x")})}:{}},[l,c,r]),j=Dn(A,!0),F=bt(l)==="object"&&l.disabled,M=l?ve.createElement("button",Te({type:"button",onClick:u,"aria-label":"Close"},j,{className:"".concat(r,"-close"),disabled:F}),A.closeIcon):null,V=ve.createElement("div",{className:ce("".concat(r,"-content"),E==null?void 0:E.content),style:C==null?void 0:C.content},M,R,ve.createElement("div",Te({className:ce("".concat(r,"-body"),E==null?void 0:E.body),style:ae(ae({},m),C==null?void 0:C.body)},h),f),k);return ve.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?o:null,"aria-modal":"true",ref:T,style:ae(ae({},a),D),className:ce(r,n),onMouseDown:p,onMouseUp:g},ve.createElement("div",{ref:I,tabIndex:0,style:xde},ve.createElement(gde,{shouldUpdate:x||b},v?v(V):V)),ve.createElement("div",{tabIndex:0,ref:N,style:yde}))}),eH=d.forwardRef(function(e,t){var r=e.prefixCls,n=e.title,a=e.style,i=e.className,o=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,f=e.onVisibleChanged,m=e.mousePosition,h=d.useRef(),v=d.useState(),p=me(v,2),g=p[0],y=p[1],x={};g&&(x.transformOrigin=g);function b(){var S=vde(h.current);y(m&&(m.x||m.y)?"".concat(m.x-S.left,"px ").concat(m.y-S.top,"px"):"")}return d.createElement(Vi,{visible:o,onVisibleChanged:f,onAppearPrepare:b,onEnterPrepare:b,forceRender:s,motionName:c,removeOnLeave:l,ref:h},function(S,w){var E=S.className,C=S.style;return d.createElement(J9,Te({},e,{ref:t,title:n,ariaId:u,prefixCls:r,holderRef:w,style:ae(ae(ae({},C),a),x),className:ce(i,E)}))})});eH.displayName="Content";var bde=function(t){var r=t.prefixCls,n=t.style,a=t.visible,i=t.maskProps,o=t.motionName,s=t.className;return d.createElement(Vi,{key:"mask",visible:a,motionName:o,leavedClassName:"".concat(r,"-mask-hidden")},function(l,c){var u=l.className,f=l.style;return d.createElement("div",Te({ref:c,style:ae(ae({},f),n),className:ce("".concat(r,"-mask"),u,s)},i))})},Sde=function(t){var r=t.prefixCls,n=r===void 0?"rc-dialog":r,a=t.zIndex,i=t.visible,o=i===void 0?!1:i,s=t.keyboard,l=s===void 0?!0:s,c=t.focusTriggerAfterClose,u=c===void 0?!0:c,f=t.wrapStyle,m=t.wrapClassName,h=t.wrapProps,v=t.onClose,p=t.afterOpenChange,g=t.afterClose,y=t.transitionName,x=t.animation,b=t.closable,S=b===void 0?!0:b,w=t.mask,E=w===void 0?!0:w,C=t.maskTransitionName,O=t.maskAnimation,_=t.maskClosable,T=_===void 0?!0:_,I=t.maskStyle,N=t.maskProps,D=t.rootClassName,k=t.classNames,R=t.styles,A=d.useRef(),j=d.useRef(),F=d.useRef(),M=d.useState(o),V=me(M,2),K=V[0],L=V[1],B=gS();function W(){V$(j.current,document.activeElement)||(A.current=document.activeElement)}function H(){if(!V$(j.current,document.activeElement)){var re;(re=F.current)===null||re===void 0||re.focus()}}function U(re){if(re)H();else{if(L(!1),E&&A.current&&u){try{A.current.focus({preventScroll:!0})}catch{}A.current=null}K&&(g==null||g())}p==null||p(re)}function X(re){v==null||v(re)}var Y=d.useRef(!1),G=d.useRef(),Q=function(){clearTimeout(G.current),Y.current=!0},J=function(){G.current=setTimeout(function(){Y.current=!1})},z=null;T&&(z=function(q){Y.current?Y.current=!1:j.current===q.target&&X(q)});function fe(re){if(l&&re.keyCode===Qe.ESC){re.stopPropagation(),X(re);return}o&&re.keyCode===Qe.TAB&&F.current.changeActive(!re.shiftKey)}d.useEffect(function(){o&&(L(!0),W())},[o]),d.useEffect(function(){return function(){clearTimeout(G.current)}},[]);var te=ae(ae(ae({zIndex:a},f),R==null?void 0:R.wrapper),{},{display:K?null:"none"});return d.createElement("div",Te({className:ce("".concat(n,"-root"),D)},Dn(t,{data:!0})),d.createElement(bde,{prefixCls:n,visible:E&&o,motionName:e3(n,C,O),style:ae(ae({zIndex:a},I),R==null?void 0:R.mask),maskProps:N,className:k==null?void 0:k.mask}),d.createElement("div",Te({tabIndex:-1,onKeyDown:fe,className:ce("".concat(n,"-wrap"),m,k==null?void 0:k.wrapper),ref:j,onClick:z,style:te},h),d.createElement(eH,Te({},t,{onMouseDown:Q,onMouseUp:J,ref:F,closable:S,ariaId:B,prefixCls:n,visible:o&&K,onClose:X,onVisibleChanged:U,motionName:e3(n,y,x)}))))},tH=function(t){var r=t.visible,n=t.getContainer,a=t.forceRender,i=t.destroyOnClose,o=i===void 0?!1:i,s=t.afterClose,l=t.panelRef,c=d.useState(r),u=me(c,2),f=u[0],m=u[1],h=d.useMemo(function(){return{panel:l}},[l]);return d.useEffect(function(){r&&m(!0)},[r]),!a&&o&&!f?null:d.createElement(Z9.Provider,{value:h},d.createElement(QP,{open:r||a||f,autoDestroy:!1,getContainer:n,autoLock:r||f},d.createElement(Sde,Te({},t,{destroyOnClose:o,afterClose:function(){s==null||s(),m(!1)}}))))};tH.displayName="Dialog";var Fu="RC_FORM_INTERNAL_HOOKS",Fr=function(){Br(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},hd=d.createContext({getFieldValue:Fr,getFieldsValue:Fr,getFieldError:Fr,getFieldWarning:Fr,getFieldsError:Fr,isFieldsTouched:Fr,isFieldTouched:Fr,isFieldValidating:Fr,isFieldsValidating:Fr,resetFields:Fr,setFields:Fr,setFieldValue:Fr,setFieldsValue:Fr,validateFields:Fr,submit:Fr,getInternalHooks:function(){return Fr(),{dispatch:Fr,initEntityValue:Fr,registerField:Fr,useSubscribe:Fr,setInitialValues:Fr,destroyForm:Fr,setCallbacks:Fr,registerWatch:Fr,getFields:Fr,setValidateMessages:Fr,setPreserve:Fr,getInitialValue:Fr}}}),yp=d.createContext(null);function $_(e){return e==null?[]:Array.isArray(e)?e:[e]}function wde(e){return e&&!!e._init}function __(){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 O_=__();function Cde(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Ede(e,t,r){if(Gb())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&cp(a,r.prototype),a}function T_(e){var t=typeof Map=="function"?new Map:void 0;return T_=function(n){if(n===null||!Cde(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return Ede(n,arguments,dd(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),cp(a,n)},T_(e)}var $de=/%[sdj%]/g,_de=function(){};typeof process<"u"&&process.env;function P_(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function no(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=i)return s;switch(s){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function Ode(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function va(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Ode(t)&&typeof e=="string"&&!e)}function Tde(e,t,r){var n=[],a=0,i=e.length;function o(s){n.push.apply(n,De(s||[])),a++,a===i&&r(n)}e.forEach(function(s){t(s,o)})}function r3(e,t,r){var n=0,a=e.length;function i(o){if(o&&o.length){r(o);return}var s=n;n=n+1,st.max?a.push(no(i.messages[f].max,t.fullField,t.max)):s&&l&&(ut.max)&&a.push(no(i.messages[f].range,t.fullField,t.min,t.max))},rH=function(t,r,n,a,i,o){t.required&&(!n.hasOwnProperty(t.field)||va(r,o||t.type))&&a.push(no(i.messages.required,t.fullField))},Gg;const Dde=function(){if(Gg)return Gg;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",a=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",o="(?:".concat(a.join("|"),")").concat(i),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(o,"$)")),l=new RegExp("^".concat(r,"$")),c=new RegExp("^".concat(o,"$")),u=function(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(r).concat(t(E),")|(?:").concat(t(E)).concat(o).concat(t(E),")"),"g")};u.v4=function(w){return w&&w.exact?l:new RegExp("".concat(t(w)).concat(r).concat(t(w)),"g")},u.v6=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(o).concat(t(w)),"g")};var f="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",h=u.v4().source,v=u.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",x="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',S="(?:".concat(f,"|www\\.)").concat(m,"(?:localhost|").concat(h,"|").concat(v,"|").concat(p).concat(g).concat(y,")").concat(x).concat(b);return Gg=new RegExp("(?:^".concat(S,"$)"),"i"),Gg};var o3={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},ih={integer:function(t){return ih.number(t)&&parseInt(t,10)===t},float:function(t){return ih.number(t)&&!ih.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 bt(t)==="object"&&!ih.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(o3.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Dde())},hex:function(t){return typeof t=="string"&&!!t.match(o3.hex)}},jde=function(t,r,n,a,i){if(t.required&&r===void 0){rH(t,r,n,a,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?ih[s](r)||a.push(no(i.messages.types[s],t.fullField,t.type)):s&&bt(r)!==t.type&&a.push(no(i.messages.types[s],t.fullField,t.type))},Fde=function(t,r,n,a,i){(/^\s+$/.test(r)||r==="")&&a.push(no(i.messages.whitespace,t.fullField))};const gr={required:rH,whitespace:Fde,type:jde,range:Mde,enum:Rde,pattern:Ade};var Lde=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(va(r)&&!t.required)return n();gr.required(t,r,a,o,i)}n(o)},Bde=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();gr.required(t,r,a,o,i,"array"),r!=null&&(gr.type(t,r,a,o,i),gr.range(t,r,a,o,i))}n(o)},zde=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(va(r)&&!t.required)return n();gr.required(t,r,a,o,i),r!==void 0&&gr.type(t,r,a,o,i)}n(o)},Hde=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(va(r,"date")&&!t.required)return n();if(gr.required(t,r,a,o,i),!va(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),gr.type(t,l,a,o,i),l&&gr.range(t,l.getTime(),a,o,i)}}n(o)},Wde="enum",Vde=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(va(r)&&!t.required)return n();gr.required(t,r,a,o,i),r!==void 0&&gr[Wde](t,r,a,o,i)}n(o)},Ude=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(va(r)&&!t.required)return n();gr.required(t,r,a,o,i),r!==void 0&&(gr.type(t,r,a,o,i),gr.range(t,r,a,o,i))}n(o)},Kde=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(va(r)&&!t.required)return n();gr.required(t,r,a,o,i),r!==void 0&&(gr.type(t,r,a,o,i),gr.range(t,r,a,o,i))}n(o)},Gde=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(va(r)&&!t.required)return n();gr.required(t,r,a,o,i),r!==void 0&&gr.type(t,r,a,o,i)}n(o)},qde=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),va(r)&&!t.required)return n();gr.required(t,r,a,o,i),r!==void 0&&(gr.type(t,r,a,o,i),gr.range(t,r,a,o,i))}n(o)},Xde=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(va(r)&&!t.required)return n();gr.required(t,r,a,o,i),r!==void 0&&gr.type(t,r,a,o,i)}n(o)},Yde=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(va(r,"string")&&!t.required)return n();gr.required(t,r,a,o,i),va(r,"string")||gr.pattern(t,r,a,o,i)}n(o)},Qde=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(va(r)&&!t.required)return n();gr.required(t,r,a,o,i),va(r)||gr.type(t,r,a,o,i)}n(o)},Zde=function(t,r,n,a,i){var o=[],s=Array.isArray(r)?"array":bt(r);gr.required(t,r,a,o,i,s),n(o)},Jde=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(va(r,"string")&&!t.required)return n();gr.required(t,r,a,o,i,"string"),va(r,"string")||(gr.type(t,r,a,o,i),gr.range(t,r,a,o,i),gr.pattern(t,r,a,o,i),t.whitespace===!0&&gr.whitespace(t,r,a,o,i))}n(o)},h2=function(t,r,n,a,i){var o=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(va(r,o)&&!t.required)return n();gr.required(t,r,a,s,i,o),va(r,o)||gr.type(t,r,a,s,i)}n(s)};const Oh={string:Jde,method:Gde,number:qde,boolean:zde,regexp:Qde,integer:Kde,float:Ude,array:Bde,object:Xde,enum:Vde,pattern:Yde,date:Hde,url:h2,hex:h2,email:h2,required:Zde,any:Lde};var gv=function(){function e(t){Wr(this,e),ee(this,"rules",null),ee(this,"_messages",O_),this.define(t)}return Vr(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(bt(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var i=r[a];n.rules[a]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(r){return r&&(this._messages=i3(__(),r)),this._messages}},{key:"validate",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},o=r,s=a,l=i;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,o),Promise.resolve(o);function c(v){var p=[],g={};function y(b){if(Array.isArray(b)){var S;p=(S=p).concat.apply(S,De(b))}else p.push(b)}for(var x=0;x0&&arguments[0]!==void 0?arguments[0]:[],O=Array.isArray(C)?C:[C];!s.suppressWarning&&O.length&&e.warning("async-validator:",O),O.length&&g.message!==void 0&&(O=[].concat(g.message));var _=O.map(a3(g,o));if(s.first&&_.length)return h[g.field]=1,p(_);if(!y)p(_);else{if(g.required&&!v.value)return g.message!==void 0?_=[].concat(g.message).map(a3(g,o)):s.error&&(_=[s.error(g,no(s.messages.required,g.field))]),p(_);var T={};g.defaultField&&Object.keys(v.value).map(function(D){T[D]=g.defaultField}),T=ae(ae({},T),v.rule.fields);var I={};Object.keys(T).forEach(function(D){var k=T[D],R=Array.isArray(k)?k:[k];I[D]=R.map(x.bind(null,D))});var N=new e(I);N.messages(s.messages),v.rule.options&&(v.rule.options.messages=s.messages,v.rule.options.error=s.error),N.validate(v.value,v.rule.options||s,function(D){var k=[];_&&_.length&&k.push.apply(k,De(_)),D&&D.length&&k.push.apply(k,De(D)),p(k.length?k:null)})}}var S;if(g.asyncValidator)S=g.asyncValidator(g,v.value,b,v.source,s);else if(g.validator){try{S=g.validator(g,v.value,b,v.source,s)}catch(C){var w,E;(w=(E=console).error)===null||w===void 0||w.call(E,C),s.suppressValidatorError||setTimeout(function(){throw C},0),b(C.message)}S===!0?b():S===!1?b(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||"".concat(g.fullField||g.field," fails")):S instanceof Array?b(S):S instanceof Error&&b(S.message)}S&&S.then&&S.then(function(){return b()},function(C){return b(C)})},function(v){c(v)},o)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Oh.hasOwnProperty(r.type))throw new Error(no("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),a=n.indexOf("message");return a!==-1&&n.splice(a,1),n.length===1&&n[0]==="required"?Oh.required:Oh[this.getType(r)]||void 0}}]),e}();ee(gv,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Oh[t]=r});ee(gv,"warning",_de);ee(gv,"messages",O_);ee(gv,"validators",Oh);var Gi="'${name}' is not a valid ${type}",nH={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:Gi,method:Gi,array:Gi,object:Gi,number:Gi,date:Gi,boolean:Gi,integer:Gi,float:Gi,regexp:Gi,email:Gi,url:Gi,hex:Gi},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}"}},s3=gv;function efe(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var l3="CODE_LOGIC_ERROR";function I_(e,t,r,n,a){return N_.apply(this,arguments)}function N_(){return N_=xi(Or().mark(function e(t,r,n,a,i){var o,s,l,c,u,f,m,h,v;return Or().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return o=ae({},n),delete o.ruleIndex,s3.warning=function(){},o.validator&&(s=o.validator,o.validator=function(){try{return s.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(l3)}}),l=null,o&&o.type==="array"&&o.defaultField&&(l=o.defaultField,delete o.defaultField),c=new s3(ee({},t,[o])),u=Mf(nH,a.validateMessages),c.messages(u),f=[],g.prev=10,g.next=13,Promise.resolve(c.validate(ee({},t,r),ae({},a)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(f=g.t0.errors.map(function(y,x){var b=y.message,S=b===l3?u.default:b;return d.isValidElement(S)?d.cloneElement(S,{key:"error_".concat(x)}):S}));case 18:if(!(!f.length&&l&&Array.isArray(r)&&r.length>0)){g.next=23;break}return g.next=21,Promise.all(r.map(function(y,x){return I_("".concat(t,".").concat(x),y,l,a,i)}));case 21:return m=g.sent,g.abrupt("return",m.reduce(function(y,x){return[].concat(De(y),De(x))},[]));case 23:return h=ae(ae({},n),{},{name:t,enum:(n.enum||[]).join(", ")},i),v=f.map(function(y){return typeof y=="string"?efe(y,h):y}),g.abrupt("return",v);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),N_.apply(this,arguments)}function tfe(e,t,r,n,a,i){var o=e.join("."),s=r.map(function(u,f){var m=u.validator,h=ae(ae({},u),{},{ruleIndex:f});return m&&(h.validator=function(v,p,g){var y=!1,x=function(){for(var w=arguments.length,E=new Array(w),C=0;C2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return aH(t,n,r)})}function aH(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,a){return e[a]===n})}function afe(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||bt(e)!=="object"||bt(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),a=new Set([].concat(r,n));return De(a).every(function(i){var o=e[i],s=t[i];return typeof o=="function"&&typeof s=="function"?!0:o===s})}function ife(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&bt(t.target)==="object"&&e in t.target?t.target[e]:t}function u3(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var a=e[t],i=t-r;return i>0?[].concat(De(e.slice(0,r)),[a],De(e.slice(r,t)),De(e.slice(t+1,n))):i<0?[].concat(De(e.slice(0,t)),De(e.slice(t+1,r+1)),[a],De(e.slice(r+1,n))):e}var ofe=["name"],bo=[];function p2(e,t,r,n,a,i){return typeof e=="function"?e(t,r,"source"in i?{source:i.source}:{}):n!==a}var ZP=function(e){yo(r,e);var t=Qo(r);function r(n){var a;if(Wr(this,r),a=t.call(this,n),ee(vt(a),"state",{resetCount:0}),ee(vt(a),"cancelRegisterFunc",null),ee(vt(a),"mounted",!1),ee(vt(a),"touched",!1),ee(vt(a),"dirty",!1),ee(vt(a),"validatePromise",void 0),ee(vt(a),"prevValidating",void 0),ee(vt(a),"errors",bo),ee(vt(a),"warnings",bo),ee(vt(a),"cancelRegister",function(){var l=a.props,c=l.preserve,u=l.isListField,f=l.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(u,c,An(f)),a.cancelRegisterFunc=null}),ee(vt(a),"getNamePath",function(){var l=a.props,c=l.name,u=l.fieldContext,f=u.prefixName,m=f===void 0?[]:f;return c!==void 0?[].concat(De(m),De(c)):[]}),ee(vt(a),"getRules",function(){var l=a.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(m){return typeof m=="function"?m(f):m})}),ee(vt(a),"refresh",function(){a.mounted&&a.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),ee(vt(a),"metaCache",null),ee(vt(a),"triggerMetaEvent",function(l){var c=a.props.onMetaChange;if(c){var u=ae(ae({},a.getMeta()),{},{destroy:l});tl(a.metaCache,u)||c(u),a.metaCache=u}else a.metaCache=null}),ee(vt(a),"onStoreChange",function(l,c,u){var f=a.props,m=f.shouldUpdate,h=f.dependencies,v=h===void 0?[]:h,p=f.onReset,g=u.store,y=a.getNamePath(),x=a.getValue(l),b=a.getValue(g),S=c&&Qf(c,y);switch(u.type==="valueUpdate"&&u.source==="external"&&!tl(x,b)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=bo,a.warnings=bo,a.triggerMetaEvent()),u.type){case"reset":if(!c||S){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=bo,a.warnings=bo,a.triggerMetaEvent(),p==null||p(),a.refresh();return}break;case"remove":{if(m&&p2(m,l,g,x,b,u)){a.reRender();return}break}case"setField":{var w=u.data;if(S){"touched"in w&&(a.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(a.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(a.errors=w.errors||bo),"warnings"in w&&(a.warnings=w.warnings||bo),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in w&&Qf(c,y,!0)){a.reRender();return}if(m&&!y.length&&p2(m,l,g,x,b,u)){a.reRender();return}break}case"dependenciesUpdate":{var E=v.map(An);if(E.some(function(C){return Qf(u.relatedFields,C)})){a.reRender();return}break}default:if(S||(!v.length||y.length||m)&&p2(m,l,g,x,b,u)){a.reRender();return}break}m===!0&&a.reRender()}),ee(vt(a),"validateRules",function(l){var c=a.getNamePath(),u=a.getValue(),f=l||{},m=f.triggerName,h=f.validateOnly,v=h===void 0?!1:h,p=Promise.resolve().then(xi(Or().mark(function g(){var y,x,b,S,w,E,C;return Or().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(a.mounted){_.next=2;break}return _.abrupt("return",[]);case 2:if(y=a.props,x=y.validateFirst,b=x===void 0?!1:x,S=y.messageVariables,w=y.validateDebounce,E=a.getRules(),m&&(E=E.filter(function(T){return T}).filter(function(T){var I=T.validateTrigger;if(!I)return!0;var N=$_(I);return N.includes(m)})),!(w&&m)){_.next=10;break}return _.next=8,new Promise(function(T){setTimeout(T,w)});case 8:if(a.validatePromise===p){_.next=10;break}return _.abrupt("return",[]);case 10:return C=tfe(c,u,E,l,b,S),C.catch(function(T){return T}).then(function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:bo;if(a.validatePromise===p){var I;a.validatePromise=null;var N=[],D=[];(I=T.forEach)===null||I===void 0||I.call(T,function(k){var R=k.rule.warningOnly,A=k.errors,j=A===void 0?bo:A;R?D.push.apply(D,De(j)):N.push.apply(N,De(j))}),a.errors=N,a.warnings=D,a.triggerMetaEvent(),a.reRender()}}),_.abrupt("return",C);case 13:case"end":return _.stop()}},g)})));return v||(a.validatePromise=p,a.dirty=!0,a.errors=bo,a.warnings=bo,a.triggerMetaEvent(),a.reRender()),p}),ee(vt(a),"isFieldValidating",function(){return!!a.validatePromise}),ee(vt(a),"isFieldTouched",function(){return a.touched}),ee(vt(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var l=a.props.fieldContext,c=l.getInternalHooks(Fu),u=c.getInitialValue;return u(a.getNamePath())!==void 0}),ee(vt(a),"getErrors",function(){return a.errors}),ee(vt(a),"getWarnings",function(){return a.warnings}),ee(vt(a),"isListField",function(){return a.props.isListField}),ee(vt(a),"isList",function(){return a.props.isList}),ee(vt(a),"isPreserve",function(){return a.props.preserve}),ee(vt(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var l={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return l}),ee(vt(a),"getOnlyChild",function(l){if(typeof l=="function"){var c=a.getMeta();return ae(ae({},a.getOnlyChild(l(a.getControlled(),c,a.props.fieldContext))),{},{isFunction:!0})}var u=ha(l);return u.length!==1||!d.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),ee(vt(a),"getValue",function(l){var c=a.props.fieldContext.getFieldsValue,u=a.getNamePath();return yi(l||c(!0),u)}),ee(vt(a),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=a.props,u=c.name,f=c.trigger,m=c.validateTrigger,h=c.getValueFromEvent,v=c.normalize,p=c.valuePropName,g=c.getValueProps,y=c.fieldContext,x=m!==void 0?m:y.validateTrigger,b=a.getNamePath(),S=y.getInternalHooks,w=y.getFieldsValue,E=S(Fu),C=E.dispatch,O=a.getValue(),_=g||function(k){return ee({},p,k)},T=l[f],I=u!==void 0?_(O):{},N=ae(ae({},l),I);N[f]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var k,R=arguments.length,A=new Array(R),j=0;j=0&&T<=I.length?(u.keys=[].concat(De(u.keys.slice(0,T)),[u.id],De(u.keys.slice(T))),b([].concat(De(I.slice(0,T)),[_],De(I.slice(T))))):(u.keys=[].concat(De(u.keys),[u.id]),b([].concat(De(I),[_]))),u.id+=1},remove:function(_){var T=w(),I=new Set(Array.isArray(_)?_:[_]);I.size<=0||(u.keys=u.keys.filter(function(N,D){return!I.has(D)}),b(T.filter(function(N,D){return!I.has(D)})))},move:function(_,T){if(_!==T){var I=w();_<0||_>=I.length||T<0||T>=I.length||(u.keys=u3(u.keys,_,T),b(u3(I,_,T)))}}},C=x||[];return Array.isArray(C)||(C=[]),n(C.map(function(O,_){var T=u.keys[_];return T===void 0&&(u.keys[_]=u.id,T=u.keys[_],u.id+=1),{name:_,key:T,isListField:!0}}),E,g)})))}function sfe(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(a,i){e.forEach(function(o,s){o.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&i(n),a(n))})})}):Promise.resolve([])}var oH="__@field_split__";function v2(e){return e.map(function(t){return"".concat(bt(t),":").concat(t)}).join(oH)}var af=function(){function e(){Wr(this,e),ee(this,"kvs",new Map)}return Vr(e,[{key:"set",value:function(r,n){this.kvs.set(v2(r),n)}},{key:"get",value:function(r){return this.kvs.get(v2(r))}},{key:"update",value:function(r,n){var a=this.get(r),i=n(a);i?this.set(r,i):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(v2(r))}},{key:"map",value:function(r){return De(this.kvs.entries()).map(function(n){var a=me(n,2),i=a[0],o=a[1],s=i.split(oH);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=me(c,3),f=u[1],m=u[2];return f==="number"?Number(m):m}),value:o})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var a=n.key,i=n.value;return r[a.join(".")]=i,null}),r}}]),e}(),lfe=["name"],cfe=Vr(function e(t){var r=this;Wr(this,e),ee(this,"formHooked",!1),ee(this,"forceRootUpdate",void 0),ee(this,"subscribable",!0),ee(this,"store",{}),ee(this,"fieldEntities",[]),ee(this,"initialValues",{}),ee(this,"callbacks",{}),ee(this,"validateMessages",null),ee(this,"preserve",null),ee(this,"lastValidatePromise",null),ee(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),ee(this,"getInternalHooks",function(n){return n===Fu?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(Br(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),ee(this,"useSubscribe",function(n){r.subscribable=n}),ee(this,"prevWithoutPreserves",null),ee(this,"setInitialValues",function(n,a){if(r.initialValues=n||{},a){var i,o=Mf(n,r.store);(i=r.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;o=Ro(o,l,yi(n,l))}),r.prevWithoutPreserves=null,r.updateStore(o)}}),ee(this,"destroyForm",function(n){if(n)r.updateStore({});else{var a=new af;r.getFieldEntities(!0).forEach(function(i){r.isMergedPreserve(i.isPreserve())||a.set(i.getNamePath(),!0)}),r.prevWithoutPreserves=a}}),ee(this,"getInitialValue",function(n){var a=yi(r.initialValues,n);return n.length?Mf(a):a}),ee(this,"setCallbacks",function(n){r.callbacks=n}),ee(this,"setValidateMessages",function(n){r.validateMessages=n}),ee(this,"setPreserve",function(n){r.preserve=n}),ee(this,"watchList",[]),ee(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(a){return a!==n})}}),ee(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var a=r.getFieldsValue(),i=r.getFieldsValue(!0);r.watchList.forEach(function(o){o(a,i,n)})}}),ee(this,"timeoutId",null),ee(this,"warningUnhooked",function(){}),ee(this,"updateStore",function(n){r.store=n}),ee(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(a){return a.getNamePath().length}):r.fieldEntities}),ee(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new af;return r.getFieldEntities(n).forEach(function(i){var o=i.getNamePath();a.set(o,i)}),a}),ee(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var a=r.getFieldsMap(!0);return n.map(function(i){var o=An(i);return a.get(o)||{INVALIDATE_NAME_PATH:An(i)}})}),ee(this,"getFieldsValue",function(n,a){r.warningUnhooked();var i,o,s;if(n===!0||Array.isArray(n)?(i=n,o=a):n&&bt(n)==="object"&&(s=n.strict,o=n.filter),i===!0&&!o)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(u){var f,m,h="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var v,p;if((v=(p=u).isList)!==null&&v!==void 0&&v.call(p))return}else if(!i&&(f=(m=u).isListField)!==null&&f!==void 0&&f.call(m))return;if(!o)c.push(h);else{var g="getMeta"in u?u.getMeta():null;o(g)&&c.push(h)}}),c3(r.store,c.map(An))}),ee(this,"getFieldValue",function(n){r.warningUnhooked();var a=An(n);return yi(r.store,a)}),ee(this,"getFieldsError",function(n){r.warningUnhooked();var a=r.getFieldEntitiesForNamePathList(n);return a.map(function(i,o){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:An(n[o]),errors:[],warnings:[]}})}),ee(this,"getFieldError",function(n){r.warningUnhooked();var a=An(n),i=r.getFieldsError([a])[0];return i.errors}),ee(this,"getFieldWarning",function(n){r.warningUnhooked();var a=An(n),i=r.getFieldsError([a])[0];return i.warnings}),ee(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,a=new Array(n),i=0;i0&&arguments[0]!==void 0?arguments[0]:{},a=new af,i=r.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=a.get(u)||new Set;f.add({entity:l,value:c}),a.set(u,f)}});var o=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var m=u.getNamePath(),h=r.getInitialValue(m);if(h!==void 0)Br(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var v=a.get(m);if(v&&v.size>1)Br(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(v){var p=r.getFieldValue(m),g=u.isListField();!g&&(!n.skipExist||p===void 0)&&r.updateStore(Ro(r.store,m,De(v)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var c=a.get(l);if(c){var u;(u=s).push.apply(u,De(De(c).map(function(f){return f.entity})))}})):s=i,o(s)}),ee(this,"resetFields",function(n){r.warningUnhooked();var a=r.store;if(!n){r.updateStore(Mf(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(a,null,{type:"reset"}),r.notifyWatch();return}var i=n.map(An);i.forEach(function(o){var s=r.getInitialValue(o);r.updateStore(Ro(r.store,o,s))}),r.resetWithFieldInitialValue({namePathList:i}),r.notifyObservers(a,i,{type:"reset"}),r.notifyWatch(i)}),ee(this,"setFields",function(n){r.warningUnhooked();var a=r.store,i=[];n.forEach(function(o){var s=o.name,l=Rt(o,lfe),c=An(s);i.push(c),"value"in l&&r.updateStore(Ro(r.store,c,l.value)),r.notifyObservers(a,[c],{type:"setField",data:o})}),r.notifyWatch(i)}),ee(this,"getFields",function(){var n=r.getFieldEntities(!0),a=n.map(function(i){var o=i.getNamePath(),s=i.getMeta(),l=ae(ae({},s),{},{name:o,value:r.getFieldValue(o)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return a}),ee(this,"initEntityValue",function(n){var a=n.props.initialValue;if(a!==void 0){var i=n.getNamePath(),o=yi(r.store,i);o===void 0&&r.updateStore(Ro(r.store,i,a))}}),ee(this,"isMergedPreserve",function(n){var a=n!==void 0?n:r.preserve;return a??!0}),ee(this,"registerField",function(n){r.fieldEntities.push(n);var a=n.getNamePath();if(r.notifyWatch([a]),n.props.initialValue!==void 0){var i=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(i,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==n}),!r.isMergedPreserve(s)&&(!o||l.length>1)){var c=o?void 0:r.getInitialValue(a);if(a.length&&r.getFieldValue(a)!==c&&r.fieldEntities.every(function(f){return!aH(f.getNamePath(),a)})){var u=r.store;r.updateStore(Ro(u,a,c,!0)),r.notifyObservers(u,[a],{type:"remove"}),r.triggerDependenciesUpdate(u,a)}}r.notifyWatch([a])}}),ee(this,"dispatch",function(n){switch(n.type){case"updateValue":{var a=n.namePath,i=n.value;r.updateValue(a,i);break}case"validateField":{var o=n.namePath,s=n.triggerName;r.validateFields([o],{triggerName:s});break}}}),ee(this,"notifyObservers",function(n,a,i){if(r.subscribable){var o=ae(ae({},i),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,a,o)})}else r.forceRootUpdate()}),ee(this,"triggerDependenciesUpdate",function(n,a){var i=r.getDependencyChildrenFields(a);return i.length&&r.validateFields(i),r.notifyObservers(n,i,{type:"dependenciesUpdate",relatedFields:[a].concat(De(i))}),i}),ee(this,"updateValue",function(n,a){var i=An(n),o=r.store;r.updateStore(Ro(r.store,i,a)),r.notifyObservers(o,[i],{type:"valueUpdate",source:"internal"}),r.notifyWatch([i]);var s=r.triggerDependenciesUpdate(o,i),l=r.callbacks.onValuesChange;if(l){var c=c3(r.store,[i]);l(c,r.getFieldsValue())}r.triggerOnFieldsChange([i].concat(De(s)))}),ee(this,"setFieldsValue",function(n){r.warningUnhooked();var a=r.store;if(n){var i=Mf(r.store,n);r.updateStore(i)}r.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),ee(this,"setFieldValue",function(n,a){r.setFields([{name:n,value:a,errors:[],warnings:[]}])}),ee(this,"getDependencyChildrenFields",function(n){var a=new Set,i=[],o=new af;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=An(u);o.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(l),m})})});var s=function l(c){var u=o.get(c)||new Set;u.forEach(function(f){if(!a.has(f)){a.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(i.push(m),l(m))}})};return s(n),i}),ee(this,"triggerOnFieldsChange",function(n,a){var i=r.callbacks.onFieldsChange;if(i){var o=r.getFields();if(a){var s=new af;a.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),o.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=o.filter(function(c){var u=c.name;return Qf(n,u)});l.length&&i(l,o)}}),ee(this,"validateFields",function(n,a){r.warningUnhooked();var i,o;Array.isArray(n)||typeof n=="string"||typeof a=="string"?(i=n,o=a):o=n;var s=!!i,l=s?i.map(An):[],c=[],u=String(Date.now()),f=new Set,m=o||{},h=m.recursive,v=m.dirty;r.getFieldEntities(!0).forEach(function(x){if(s||l.push(x.getNamePath()),!(!x.props.rules||!x.props.rules.length)&&!(v&&!x.isFieldDirty())){var b=x.getNamePath();if(f.add(b.join(u)),!s||Qf(l,b,h)){var S=x.validateRules(ae({validateMessages:ae(ae({},nH),r.validateMessages)},o));c.push(S.then(function(){return{name:b,errors:[],warnings:[]}}).catch(function(w){var E,C=[],O=[];return(E=w.forEach)===null||E===void 0||E.call(w,function(_){var T=_.rule.warningOnly,I=_.errors;T?O.push.apply(O,De(I)):C.push.apply(C,De(I))}),C.length?Promise.reject({name:b,errors:C,warnings:O}):{name:b,errors:C,warnings:O}}))}}});var p=sfe(c);r.lastValidatePromise=p,p.catch(function(x){return x}).then(function(x){var b=x.map(function(S){var w=S.name;return w});r.notifyObservers(r.store,b,{type:"validateFinish"}),r.triggerOnFieldsChange(b,x)});var g=p.then(function(){return r.lastValidatePromise===p?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(x){var b=x.filter(function(S){return S&&S.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:b,outOfDate:r.lastValidatePromise!==p})});g.catch(function(x){return x});var y=l.filter(function(x){return f.has(x.join(u))});return r.triggerOnFieldsChange(y),g}),ee(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var a=r.callbacks.onFinish;if(a)try{a(n)}catch(i){console.error(i)}}).catch(function(n){var a=r.callbacks.onFinishFailed;a&&a(n)})}),this.forceRootUpdate=t});function eI(e){var t=d.useRef(),r=d.useState({}),n=me(r,2),a=n[1];if(!t.current)if(e)t.current=e;else{var i=function(){a({})},o=new cfe(i);t.current=o.getForm()}return[t.current]}var A_=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),sH=function(t){var r=t.validateMessages,n=t.onFormChange,a=t.onFormFinish,i=t.children,o=d.useContext(A_),s=d.useRef({});return d.createElement(A_.Provider,{value:ae(ae({},o),{},{validateMessages:ae(ae({},o.validateMessages),r),triggerFormChange:function(c,u){n&&n(c,{changedFields:u,forms:s.current}),o.triggerFormChange(c,u)},triggerFormFinish:function(c,u){a&&a(c,{values:u,forms:s.current}),o.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=ae(ae({},s.current),{},ee({},c,u))),o.registerForm(c,u)},unregisterForm:function(c){var u=ae({},s.current);delete u[c],s.current=u,o.unregisterForm(c)}})},i)},ufe=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],dfe=function(t,r){var n=t.name,a=t.initialValues,i=t.fields,o=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,m=t.validateTrigger,h=m===void 0?"onChange":m,v=t.onValuesChange,p=t.onFieldsChange,g=t.onFinish,y=t.onFinishFailed,x=t.clearOnDestroy,b=Rt(t,ufe),S=d.useRef(null),w=d.useContext(A_),E=eI(o),C=me(E,1),O=C[0],_=O.getInternalHooks(Fu),T=_.useSubscribe,I=_.setInitialValues,N=_.setCallbacks,D=_.setValidateMessages,k=_.setPreserve,R=_.destroyForm;d.useImperativeHandle(r,function(){return ae(ae({},O),{},{nativeElement:S.current})}),d.useEffect(function(){return w.registerForm(n,O),function(){w.unregisterForm(n)}},[w,O,n]),D(ae(ae({},w.validateMessages),f)),N({onValuesChange:v,onFieldsChange:function(W){if(w.triggerFormChange(n,W),p){for(var H=arguments.length,U=new Array(H>1?H-1:0),X=1;X{}}),cH=d.createContext(null),uH=e=>{const t=Er(e,["prefixCls"]);return d.createElement(sH,Object.assign({},t))},tI=d.createContext({prefixCls:""}),ga=d.createContext({}),dH=({children:e,status:t,override:r})=>{const n=d.useContext(ga),a=d.useMemo(()=>{const i=Object.assign({},n);return r&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,r,n]);return d.createElement(ga.Provider,{value:a},e)},fH=d.createContext(void 0),mfe=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let a=n;return r&&(a=ve.createElement(dH,{override:!0,status:!0},a)),t&&(a=ve.createElement(kce,null,a)),a},ol=mfe;var mH=function(t){if(Ma()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(a){return a in n.style})}return!1},hfe=function(t,r){if(!mH(t))return!1;var n=document.createElement("div"),a=n.style[t];return n.style[t]=r,n.style[t]!==a};function M_(e,t){return!Array.isArray(e)&&t!==void 0?hfe(e,t):mH(e)}const pfe=()=>Ma()&&window.document.documentElement,vfe=e=>{const{prefixCls:t,className:r,style:n,size:a,shape:i}=e,o=ce({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),s=ce({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),l=d.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return d.createElement("span",{className:ce(t,o,s,r),style:Object.assign(Object.assign({},l),n)})},yS=vfe,gfe=new fr("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),xS=e=>({height:e,lineHeight:se(e)}),Zf=e=>Object.assign({width:e},xS(e)),yfe=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:gfe,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),g2=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},xS(e)),xfe=e=>{const{skeletonAvatarCls:t,gradientFromColor:r,controlHeight:n,controlHeightLG:a,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:r},Zf(n)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Zf(a)),[`${t}${t}-sm`]:Object.assign({},Zf(i))}},bfe=e=>{const{controlHeight:t,borderRadiusSM:r,skeletonInputCls:n,controlHeightLG:a,controlHeightSM:i,gradientFromColor:o,calc:s}=e;return{[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:r},g2(t,s)),[`${n}-lg`]:Object.assign({},g2(a,s)),[`${n}-sm`]:Object.assign({},g2(i,s))}},f3=e=>Object.assign({width:e},xS(e)),Sfe=e=>{const{skeletonImageCls:t,imageSizeBase:r,gradientFromColor:n,borderRadiusSM:a,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:n,borderRadius:a},f3(i(r).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},f3(r)),{maxWidth:i(r).mul(4).equal(),maxHeight:i(r).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},y2=(e,t,r)=>{const{skeletonButtonCls:n}=e;return{[`${r}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${r}${n}-round`]:{borderRadius:t}}},x2=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},xS(e)),wfe=e=>{const{borderRadiusSM:t,skeletonButtonCls:r,controlHeight:n,controlHeightLG:a,controlHeightSM:i,gradientFromColor:o,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:t,width:s(n).mul(2).equal(),minWidth:s(n).mul(2).equal()},x2(n,s))},y2(e,n,r)),{[`${r}-lg`]:Object.assign({},x2(a,s))}),y2(e,a,`${r}-lg`)),{[`${r}-sm`]:Object.assign({},x2(i,s))}),y2(e,i,`${r}-sm`))},Cfe=e=>{const{componentCls:t,skeletonAvatarCls:r,skeletonTitleCls:n,skeletonParagraphCls:a,skeletonButtonCls:i,skeletonInputCls:o,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:f,padding:m,marginSM:h,borderRadius:v,titleHeight:p,blockRadius:g,paragraphLiHeight:y,controlHeightXS:x,paragraphMarginTop:b}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},Zf(l)),[`${r}-circle`]:{borderRadius:"50%"},[`${r}-lg`]:Object.assign({},Zf(c)),[`${r}-sm`]:Object.assign({},Zf(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:p,background:f,borderRadius:g,[`+ ${a}`]:{marginBlockStart:u}},[a]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:f,borderRadius:g,"+ li":{marginBlockStart:x}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${n}, ${a} > li`]:{borderRadius:v}}},[`${t}-with-avatar ${t}-content`]:{[n]:{marginBlockStart:h,[`+ ${a}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},wfe(e)),xfe(e)),bfe(e)),Sfe(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[o]:{width:"100%"}},[`${t}${t}-active`]:{[` + ${n}, + ${a} > li, + ${r}, + ${i}, + ${o}, + ${s} + `]:Object.assign({},yfe(e))}}},Efe=e=>{const{colorFillContent:t,colorFill:r}=e,n=t,a=r;return{color:n,colorGradientEnd:a,gradientFromColor:n,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Q0=or("Skeleton",e=>{const{componentCls:t,calc:r}=e,n=Yt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:r(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return Cfe(n)},Efe,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),$fe=e=>{const{prefixCls:t,className:r,rootClassName:n,active:a,shape:i="circle",size:o="default"}=e,{getPrefixCls:s}=d.useContext(Nt),l=s("skeleton",t),[c,u,f]=Q0(l),m=Er(e,["prefixCls","className"]),h=ce(l,`${l}-element`,{[`${l}-active`]:a},r,n,u,f);return c(d.createElement("div",{className:h},d.createElement(yS,Object.assign({prefixCls:`${l}-avatar`,shape:i,size:o},m))))},_fe=$fe,Ofe=e=>{const{prefixCls:t,className:r,rootClassName:n,active:a,block:i=!1,size:o="default"}=e,{getPrefixCls:s}=d.useContext(Nt),l=s("skeleton",t),[c,u,f]=Q0(l),m=Er(e,["prefixCls"]),h=ce(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:i},r,n,u,f);return c(d.createElement("div",{className:h},d.createElement(yS,Object.assign({prefixCls:`${l}-button`,size:o},m))))},Tfe=Ofe,Pfe="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",Ife=e=>{const{prefixCls:t,className:r,rootClassName:n,style:a,active:i}=e,{getPrefixCls:o}=d.useContext(Nt),s=o("skeleton",t),[l,c,u]=Q0(s),f=ce(s,`${s}-element`,{[`${s}-active`]:i},r,n,c,u);return l(d.createElement("div",{className:f},d.createElement("div",{className:ce(`${s}-image`,r),style:a},d.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},d.createElement("title",null,"Image placeholder"),d.createElement("path",{d:Pfe,className:`${s}-image-path`})))))},Nfe=Ife,kfe=e=>{const{prefixCls:t,className:r,rootClassName:n,active:a,block:i,size:o="default"}=e,{getPrefixCls:s}=d.useContext(Nt),l=s("skeleton",t),[c,u,f]=Q0(l),m=Er(e,["prefixCls"]),h=ce(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:i},r,n,u,f);return c(d.createElement("div",{className:h},d.createElement(yS,Object.assign({prefixCls:`${l}-input`,size:o},m))))},Rfe=kfe,Afe=e=>{const{prefixCls:t,className:r,rootClassName:n,style:a,active:i,children:o}=e,{getPrefixCls:s}=d.useContext(Nt),l=s("skeleton",t),[c,u,f]=Q0(l),m=ce(l,`${l}-element`,{[`${l}-active`]:i},u,r,n,f);return c(d.createElement("div",{className:m},d.createElement("div",{className:ce(`${l}-image`,r),style:a},o)))},Mfe=Afe,Dfe=(e,t)=>{const{width:r,rows:n=2}=t;if(Array.isArray(r))return r[e];if(n-1===e)return r},jfe=e=>{const{prefixCls:t,className:r,style:n,rows:a=0}=e,i=Array.from({length:a}).map((o,s)=>d.createElement("li",{key:s,style:{width:Dfe(s,e)}}));return d.createElement("ul",{className:ce(t,r),style:n},i)},Ffe=jfe,Lfe=({prefixCls:e,className:t,width:r,style:n})=>d.createElement("h3",{className:ce(e,t),style:Object.assign({width:r},n)}),Bfe=Lfe;function b2(e){return e&&typeof e=="object"?e:{}}function zfe(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Hfe(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Wfe(e,t){const r={};return(!e||!t)&&(r.width="61%"),!e&&t?r.rows=3:r.rows=2,r}const Z0=e=>{const{prefixCls:t,loading:r,className:n,rootClassName:a,style:i,children:o,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:f}=e,{getPrefixCls:m,direction:h,className:v,style:p}=Fn("skeleton"),g=m("skeleton",t),[y,x,b]=Q0(g);if(r||!("loading"in e)){const S=!!s,w=!!l,E=!!c;let C;if(S){const T=Object.assign(Object.assign({prefixCls:`${g}-avatar`},zfe(w,E)),b2(s));C=d.createElement("div",{className:`${g}-header`},d.createElement(yS,Object.assign({},T)))}let O;if(w||E){let T;if(w){const N=Object.assign(Object.assign({prefixCls:`${g}-title`},Hfe(S,E)),b2(l));T=d.createElement(Bfe,Object.assign({},N))}let I;if(E){const N=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},Wfe(S,w)),b2(c));I=d.createElement(Ffe,Object.assign({},N))}O=d.createElement("div",{className:`${g}-content`},T,I)}const _=ce(g,{[`${g}-with-avatar`]:S,[`${g}-active`]:u,[`${g}-rtl`]:h==="rtl",[`${g}-round`]:f},v,n,a,x,b);return y(d.createElement("div",{className:_,style:Object.assign(Object.assign({},p),i)},C,O))}return o??null};Z0.Button=Tfe;Z0.Avatar=_fe;Z0.Input=Rfe;Z0.Image=Nfe;Z0.Node=Mfe;const rI=Z0;function m3(){}const Vfe=d.createContext({add:m3,remove:m3});function Ufe(e){const t=d.useContext(Vfe),r=d.useRef(null);return qt(a=>{if(a){const i=e?a.querySelector(e):a;i&&(t.add(i),r.current=i)}else t.remove(r.current)})}const Kfe=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:r}=d.useContext(vv);return ve.createElement(kt,Object.assign({onClick:r},e),t)},h3=Kfe,Gfe=()=>{const{confirmLoading:e,okButtonProps:t,okType:r,okTextLocale:n,onOk:a}=d.useContext(vv);return ve.createElement(kt,Object.assign({},KP(r),{loading:e,onClick:a},t),n)},p3=Gfe;function hH(e,t){return ve.createElement("span",{className:`${e}-close-x`},t||ve.createElement(cu,{className:`${e}-close-icon`}))}const pH=e=>{const{okText:t,okType:r="primary",cancelText:n,confirmLoading:a,onOk:i,onCancel:o,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=Hi("Modal",Y7()),f=t||(u==null?void 0:u.okText),m=n||(u==null?void 0:u.cancelText),h=ve.useMemo(()=>({confirmLoading:a,okButtonProps:s,cancelButtonProps:l,okTextLocale:f,cancelTextLocale:m,okType:r,onOk:i,onCancel:o}),[a,s,l,f,m,r,i,o]);let v;return typeof c=="function"||typeof c>"u"?(v=ve.createElement(ve.Fragment,null,ve.createElement(h3,null),ve.createElement(p3,null)),typeof c=="function"&&(v=c(v,{OkBtn:p3,CancelBtn:h3})),v=ve.createElement(X9,{value:h},v)):v=c,ve.createElement(MP,{disabled:!1},v)},qfe=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"}}}},Xfe=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Yfe=(e,t)=>{const{prefixCls:r,componentCls:n,gridColumns:a}=e,i={};for(let o=a;o>=0;o--)o===0?(i[`${n}${t}-${o}`]={display:"none"},i[`${n}-push-${o}`]={insetInlineStart:"auto"},i[`${n}-pull-${o}`]={insetInlineEnd:"auto"},i[`${n}${t}-push-${o}`]={insetInlineStart:"auto"},i[`${n}${t}-pull-${o}`]={insetInlineEnd:"auto"},i[`${n}${t}-offset-${o}`]={marginInlineStart:0},i[`${n}${t}-order-${o}`]={order:0}):(i[`${n}${t}-${o}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${o/a*100}%`,maxWidth:`${o/a*100}%`}],i[`${n}${t}-push-${o}`]={insetInlineStart:`${o/a*100}%`},i[`${n}${t}-pull-${o}`]={insetInlineEnd:`${o/a*100}%`},i[`${n}${t}-offset-${o}`]={marginInlineStart:`${o/a*100}%`},i[`${n}${t}-order-${o}`]={order:o});return i[`${n}${t}-flex`]={flex:`var(--${r}${t}-flex)`},i},D_=(e,t)=>Yfe(e,t),Qfe=(e,t,r)=>({[`@media (min-width: ${se(t)})`]:Object.assign({},D_(e,r))}),Zfe=()=>({}),Jfe=()=>({}),e0e=or("Grid",qfe,Zfe),vH=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),t0e=or("Grid",e=>{const t=Yt(e,{gridColumns:24}),r=vH(t);return delete r.xs,[Xfe(t),D_(t,""),D_(t,"-xs"),Object.keys(r).map(n=>Qfe(t,r[n],`-${n}`)).reduce((n,a)=>Object.assign(Object.assign({},n),a),{})]},Jfe);function v3(e){return{position:e,inset:0}}const r0e=e=>{const{componentCls:t,antCls:r}=e;return[{[`${t}-root`]:{[`${t}${r}-zoom-enter, ${t}${r}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${r}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},v3("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},v3("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:U9(e)}]},n0e=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${se(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},ur(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${se(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:se(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Nl(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${se(e.borderRadiusLG)} ${se(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${se(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, + ${t}-body, + ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},a0e=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},i0e=e=>{const{componentCls:t}=e,r=vH(e),n=Object.assign({},r);delete n.xs;const a=`--${t.replace(".","")}-`,i=Object.keys(n).map(o=>({[`@media (min-width: ${se(n[o])})`]:{width:`var(${a}${o}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(De(Object.keys(r).map((o,s)=>{const l=Object.keys(r)[s-1];return l?{[`${a}${o}-width`]:`var(${a}${l}-width)`}:null})),[{width:`var(${a}xs-width)`}],De(i))}}},gH=e=>{const t=e.padding,r=e.fontSizeHeading5,n=e.lineHeightHeading5;return Yt(e,{modalHeaderHeight:e.calc(e.calc(n).mul(r).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},yH=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${se(e.paddingMD)} ${se(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${se(e.padding)} ${se(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${se(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${se(e.paddingXS)} ${se(e.padding)}`:0,footerBorderTop:e.wireframe?`${se(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${se(e.borderRadiusLG)} ${se(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${se(e.padding*2)} ${se(e.padding*2)} ${se(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),xH=or("Modal",e=>{const t=gH(e);return[n0e(t),a0e(t),r0e(t),pv(t,"zoom"),i0e(t)]},yH,{unitless:{titleLineHeight:!0}});var o0e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{j_={x:e.pageX,y:e.pageY},setTimeout(()=>{j_=null},100)};pfe()&&document.documentElement.addEventListener("click",s0e,!0);const l0e=e=>{const{prefixCls:t,className:r,rootClassName:n,open:a,wrapClassName:i,centered:o,getContainer:s,focusTriggerAfterClose:l=!0,style:c,visible:u,width:f=520,footer:m,classNames:h,styles:v,children:p,loading:g,confirmLoading:y,zIndex:x,mousePosition:b,onOk:S,onCancel:w,destroyOnHidden:E,destroyOnClose:C,panelRef:O=null,modalRender:_}=e,T=o0e(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose","panelRef","modalRender"]),{getPopupContainer:I,getPrefixCls:N,direction:D,modal:k}=d.useContext(Nt),R=he=>{y||w==null||w(he)},A=he=>{S==null||S(he)},j=N("modal",t),F=N(),M=gn(j),[V,K,L]=xH(j,M),B=ce(i,{[`${j}-centered`]:o??(k==null?void 0:k.centered),[`${j}-wrap-rtl`]:D==="rtl"}),W=m!==null&&!g?d.createElement(pH,Object.assign({},e,{onOk:A,onCancel:R})):null,[H,U,X,Y]=R9(t1(e),t1(k),{closable:!0,closeIcon:d.createElement(cu,{className:`${j}-close-icon`}),closeIconRender:he=>hH(j,he)}),G=_?he=>d.createElement("div",{className:`${j}-render`},_(he)):void 0,Q=`.${j}-${_?"render":"content"}`,J=Ufe(Q),z=xa(O,J),[fe,te]=uu("Modal",x),[re,q]=d.useMemo(()=>f&&typeof f=="object"?[void 0,f]:[f,void 0],[f]),ne=d.useMemo(()=>{const he={};return q&&Object.keys(q).forEach(xe=>{const ye=q[xe];ye!==void 0&&(he[`--${j}-${xe}-width`]=typeof ye=="number"?`${ye}px`:ye)}),he},[j,q]);return V(d.createElement(ol,{form:!0,space:!0},d.createElement(eS.Provider,{value:te},d.createElement(tH,Object.assign({width:re},T,{zIndex:fe,getContainer:s===void 0?I:s,prefixCls:j,rootClassName:ce(K,n,L,M),footer:W,visible:a??u,mousePosition:b??j_,onClose:R,closable:H&&Object.assign({disabled:X,closeIcon:U},Y),closeIcon:U,focusTriggerAfterClose:l,transitionName:Vc(F,"zoom",e.transitionName),maskTransitionName:Vc(F,"fade",e.maskTransitionName),className:ce(K,r,k==null?void 0:k.className),style:Object.assign(Object.assign(Object.assign({},k==null?void 0:k.style),c),ne),classNames:Object.assign(Object.assign(Object.assign({},k==null?void 0:k.classNames),h),{wrapper:ce(B,h==null?void 0:h.wrapper)}),styles:Object.assign(Object.assign({},k==null?void 0:k.styles),v),panelRef:z,destroyOnClose:E??C,modalRender:G}),g?d.createElement(rI,{active:!0,title:!1,paragraph:{rows:4},className:`${j}-body-skeleton`}):p))))},bH=l0e,c0e=e=>{const{componentCls:t,titleFontSize:r,titleLineHeight:n,modalConfirmIconSize:a,fontSize:i,lineHeight:o,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},rl()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:a,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(a).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(a).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${se(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${se(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:r,lineHeight:n},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:o},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls}, + ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},u0e=U0(["Modal","confirm"],e=>{const t=gH(e);return c0e(t)},yH,{order:-1e3});var d0e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,icon:r,okText:n,cancelText:a,confirmPrefixCls:i,type:o,okCancel:s,footer:l,locale:c}=e,u=d0e(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=r;if(!r&&r!==null)switch(o){case"info":f=d.createElement(BP,null);break;case"success":f=d.createElement(mv,null);break;case"error":f=d.createElement(jd,null);break;default:f=d.createElement(G0,null)}const m=s??o==="confirm",h=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[v]=Hi("Modal"),p=c||v,g=n||(m?p==null?void 0:p.okText:p==null?void 0:p.justOkText),y=a||(p==null?void 0:p.cancelText),x=d.useMemo(()=>Object.assign({autoFocusButton:h,cancelTextLocale:y,okTextLocale:g,mergedOkCancel:m},u),[h,y,g,m,u]),b=d.createElement(d.Fragment,null,d.createElement(UM,null),d.createElement(KM,null)),S=e.title!==void 0&&e.title!==null,w=`${i}-body`;return d.createElement("div",{className:`${i}-body-wrapper`},d.createElement("div",{className:ce(w,{[`${w}-has-title`]:S})},f,d.createElement("div",{className:`${i}-paragraph`},S&&d.createElement("span",{className:`${i}-title`},e.title),d.createElement("div",{className:`${i}-content`},e.content))),l===void 0||typeof l=="function"?d.createElement(X9,{value:x},d.createElement("div",{className:`${i}-btns`},typeof l=="function"?l(b,{OkBtn:KM,CancelBtn:UM}):b)):l,d.createElement(u0e,{prefixCls:t}))},f0e=e=>{const{close:t,zIndex:r,maskStyle:n,direction:a,prefixCls:i,wrapClassName:o,rootPrefixCls:s,bodyStyle:l,closable:c=!1,onConfirm:u,styles:f,title:m}=e,h=`${i}-confirm`,v=e.width||416,p=e.style||{},g=e.mask===void 0?!0:e.mask,y=e.maskClosable===void 0?!1:e.maskClosable,x=ce(h,`${h}-${e.type}`,{[`${h}-rtl`]:a==="rtl"},e.className),[,b]=Ga(),S=d.useMemo(()=>r!==void 0?r:b.zIndexPopupBase+M9,[r,b]);return d.createElement(bH,Object.assign({},e,{className:x,wrapClassName:ce({[`${h}-centered`]:!!e.centered},o),onCancel:()=>{t==null||t({triggerCancel:!0}),u==null||u(!1)},title:m,footer:null,transitionName:Vc(s||"","zoom",e.transitionName),maskTransitionName:Vc(s||"","fade",e.maskTransitionName),mask:g,maskClosable:y,style:p,styles:Object.assign({body:l,mask:n},f),width:v,zIndex:S,closable:c}),d.createElement(SH,Object.assign({},e,{confirmPrefixCls:h})))},wH=e=>{const{rootPrefixCls:t,iconPrefixCls:r,direction:n,theme:a}=e;return d.createElement(Dd,{prefixCls:t,iconPrefixCls:r,direction:n,theme:a},d.createElement(f0e,Object.assign({},e)))},m0e=[],Lu=m0e;let CH="";function EH(){return CH}const h0e=e=>{var t,r;const{prefixCls:n,getContainer:a,direction:i}=e,o=Y7(),s=d.useContext(Nt),l=EH()||s.getPrefixCls(),c=n||`${l}-modal`;let u=a;return u===!1&&(u=void 0),ve.createElement(wH,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:i??s.direction,locale:(r=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&r!==void 0?r:o,getContainer:u}))};function yv(e){const t=C9(),r=document.createDocumentFragment();let n=Object.assign(Object.assign({},e),{close:l,open:!0}),a,i;function o(...u){var f;if(u.some(v=>v==null?void 0:v.triggerCancel)){var h;(f=e.onCancel)===null||f===void 0||(h=f).call.apply(h,[e,()=>{}].concat(De(u.slice(1))))}for(let v=0;v{clearTimeout(a),a=setTimeout(()=>{const f=t.getPrefixCls(void 0,EH()),m=t.getIconPrefixCls(),h=t.getTheme(),v=ve.createElement(h0e,Object.assign({},u));i=UP()(ve.createElement(Dd,{prefixCls:f,iconPrefixCls:m,theme:h},typeof t.holderRender=="function"?t.holderRender(v):v),r)})};function l(...u){n=Object.assign(Object.assign({},n),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,u)}}),n.visible&&delete n.visible,s(n)}function c(u){typeof u=="function"?n=u(n):n=Object.assign(Object.assign({},n),u),s(n)}return s(n),Lu.push(l),{destroy:l,update:c}}function $H(e){return Object.assign(Object.assign({},e),{type:"warning"})}function _H(e){return Object.assign(Object.assign({},e),{type:"info"})}function OH(e){return Object.assign(Object.assign({},e),{type:"success"})}function TH(e){return Object.assign(Object.assign({},e),{type:"error"})}function PH(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function p0e({rootPrefixCls:e}){CH=e}var v0e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var r,{afterClose:n,config:a}=e,i=v0e(e,["afterClose","config"]);const[o,s]=d.useState(!0),[l,c]=d.useState(a),{direction:u,getPrefixCls:f}=d.useContext(Nt),m=f("modal"),h=f(),v=()=>{var x;n(),(x=l.afterClose)===null||x===void 0||x.call(l)},p=(...x)=>{var b;if(s(!1),x.some(E=>E==null?void 0:E.triggerCancel)){var w;(b=l.onCancel)===null||b===void 0||(w=b).call.apply(w,[l,()=>{}].concat(De(x.slice(1))))}};d.useImperativeHandle(t,()=>({destroy:p,update:x=>{c(b=>{const S=typeof x=="function"?x(b):x;return Object.assign(Object.assign({},b),S)})}}));const g=(r=l.okCancel)!==null&&r!==void 0?r:l.type==="confirm",[y]=Hi("Modal",Vo.Modal);return d.createElement(wH,Object.assign({prefixCls:m,rootPrefixCls:h},l,{close:p,open:o,afterClose:v,okText:l.okText||(g?y==null?void 0:y.okText:y==null?void 0:y.justOkText),direction:l.direction||u,cancelText:l.cancelText||(y==null?void 0:y.cancelText)},i))},y0e=d.forwardRef(g0e);let g3=0;const x0e=d.memo(d.forwardRef((e,t)=>{const[r,n]=jle();return d.useImperativeHandle(t,()=>({patchElement:n}),[n]),d.createElement(d.Fragment,null,r)}));function b0e(){const e=d.useRef(null),[t,r]=d.useState([]);d.useEffect(()=>{t.length&&(De(t).forEach(o=>{o()}),r([]))},[t]);const n=d.useCallback(i=>function(s){var l;g3+=1;const c=d.createRef();let u;const f=new Promise(g=>{u=g});let m=!1,h;const v=d.createElement(y0e,{key:`modal-${g3}`,config:i(s),ref:c,afterClose:()=>{h==null||h()},isSilent:()=>m,onConfirm:g=>{u(g)}});return h=(l=e.current)===null||l===void 0?void 0:l.patchElement(v),h&&Lu.push(h),{destroy:()=>{function g(){var y;(y=c.current)===null||y===void 0||y.destroy()}c.current?g():r(y=>[].concat(De(y),[g]))},update:g=>{function y(){var x;(x=c.current)===null||x===void 0||x.update(g)}c.current?y():r(x=>[].concat(De(x),[y]))},then:g=>(m=!0,f.then(g))}},[]);return[d.useMemo(()=>({info:n(_H),success:n(OH),error:n(TH),warning:n($H),confirm:n(PH)}),[n]),d.createElement(x0e,{key:"modal-holder",ref:e})]}const S0e=ve.createContext({});function IH(e){return t=>d.createElement(Dd,{theme:{token:{motion:!1,zIndexPopupBase:0}}},d.createElement(e,Object.assign({},t)))}const w0e=(e,t,r,n,a)=>IH(o=>{const{prefixCls:s,style:l}=o,c=d.useRef(null),[u,f]=d.useState(0),[m,h]=d.useState(0),[v,p]=br(!1,{value:o.open}),{getPrefixCls:g}=d.useContext(Nt),y=g(n||"select",s);d.useEffect(()=>{if(p(!0),typeof ResizeObserver<"u"){const S=new ResizeObserver(E=>{const C=E[0].target;f(C.offsetHeight+8),h(C.offsetWidth)}),w=setInterval(()=>{var E;const C=a?`.${a(y)}`:`.${y}-dropdown`,O=(E=c.current)===null||E===void 0?void 0:E.querySelector(C);O&&(clearInterval(w),S.observe(O))},10);return()=>{clearInterval(w),S.disconnect()}}},[y]);let x=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},l),{margin:0}),open:v,visible:v,getPopupContainer:()=>c.current});r&&(x=r(x)),t&&Object.assign(x,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const b={paddingBottom:u,position:"relative",minWidth:m};return d.createElement("div",{ref:c,style:b},d.createElement(e,Object.assign({},x)))}),xv=w0e,bS=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var SS=function(t){var r=t.className,n=t.customizeIcon,a=t.customizeIconProps,i=t.children,o=t.onMouseDown,s=t.onClick,l=typeof n=="function"?n(a):n;return d.createElement("span",{className:r,onMouseDown:function(u){u.preventDefault(),o==null||o(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:d.createElement("span",{className:ce(r.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},i))},C0e=function(t,r,n,a,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=ve.useMemo(function(){if(bt(a)==="object")return a.clearIcon;if(i)return i},[a,i]),u=ve.useMemo(function(){return!!(!o&&a&&(n.length||s)&&!(l==="combobox"&&s===""))},[a,o,n.length,s,l]);return{allowClear:u,clearIcon:ve.createElement(SS,{className:"".concat(t,"-clear"),onMouseDown:r,customizeIcon:c},"×")}},NH=d.createContext(null);function E0e(){return d.useContext(NH)}function $0e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=d.useState(!1),r=me(t,2),n=r[0],a=r[1],i=d.useRef(null),o=function(){window.clearTimeout(i.current)};d.useEffect(function(){return o},[]);var s=function(c,u){o(),i.current=window.setTimeout(function(){a(c),u&&u()},e)};return[n,s,o]}function kH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=d.useRef(null),r=d.useRef(null);d.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]);function n(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(r.current),r.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},n]}function _0e(e,t,r,n){var a=d.useRef(null);a.current={open:t,triggerOpen:r,customizedTrigger:n},d.useEffect(function(){function i(o){var s;if(!((s=a.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=o.target;l.shadowRoot&&o.composed&&(l=o.composedPath()[0]||l),a.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}function O0e(e){return e&&![Qe.ESC,Qe.SHIFT,Qe.BACKSPACE,Qe.TAB,Qe.WIN_KEY,Qe.ALT,Qe.META,Qe.WIN_KEY_RIGHT,Qe.CTRL,Qe.SEMICOLON,Qe.EQUALS,Qe.CAPS_LOCK,Qe.CONTEXT_MENU,Qe.F1,Qe.F2,Qe.F3,Qe.F4,Qe.F5,Qe.F6,Qe.F7,Qe.F8,Qe.F9,Qe.F10,Qe.F11,Qe.F12].includes(e)}var T0e=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],of=void 0;function P0e(e,t){var r=e.prefixCls,n=e.invalidate,a=e.item,i=e.renderItem,o=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,f=e.style,m=e.children,h=e.display,v=e.order,p=e.component,g=p===void 0?"div":p,y=Rt(e,T0e),x=o&&!h;function b(O){l(c,O)}d.useEffect(function(){return function(){b(null)}},[]);var S=i&&a!==of?i(a,{index:v}):m,w;n||(w={opacity:x?0:1,height:x?0:of,overflowY:x?"hidden":of,order:o?v:of,pointerEvents:x?"none":of,position:x?"absolute":of});var E={};x&&(E["aria-hidden"]=!0);var C=d.createElement(g,Te({className:ce(!n&&r,u),style:ae(ae({},w),f)},E,y,{ref:t}),S);return o&&(C=d.createElement(Aa,{onResize:function(_){var T=_.offsetWidth;b(T)},disabled:s},C)),C}var Ff=d.forwardRef(P0e);Ff.displayName="Item";function I0e(e){if(typeof MessageChannel>"u")Ut(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function N0e(){var e=d.useRef(null),t=function(n){e.current||(e.current=[],I0e(function(){wi.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(n)};return t}function sf(e,t){var r=d.useState(t),n=me(r,2),a=n[0],i=n[1],o=qt(function(s){e(function(){i(s)})});return[a,o]}var a1=ve.createContext(null),k0e=["component"],R0e=["className"],A0e=["className"],M0e=function(t,r){var n=d.useContext(a1);if(!n){var a=t.component,i=a===void 0?"div":a,o=Rt(t,k0e);return d.createElement(i,Te({},o,{ref:r}))}var s=n.className,l=Rt(n,R0e),c=t.className,u=Rt(t,A0e);return d.createElement(a1.Provider,{value:null},d.createElement(Ff,Te({ref:r,className:ce(s,c)},l,u)))},RH=d.forwardRef(M0e);RH.displayName="RawItem";var D0e=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],AH="responsive",MH="invalidate";function j0e(e){return"+ ".concat(e.length," ...")}function F0e(e,t){var r=e.prefixCls,n=r===void 0?"rc-overflow":r,a=e.data,i=a===void 0?[]:a,o=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,m=e.style,h=e.className,v=e.maxCount,p=e.renderRest,g=e.renderRawRest,y=e.prefix,x=e.suffix,b=e.component,S=b===void 0?"div":b,w=e.itemComponent,E=e.onVisibleChange,C=Rt(e,D0e),O=f==="full",_=N0e(),T=sf(_,null),I=me(T,2),N=I[0],D=I[1],k=N||0,R=sf(_,new Map),A=me(R,2),j=A[0],F=A[1],M=sf(_,0),V=me(M,2),K=V[0],L=V[1],B=sf(_,0),W=me(B,2),H=W[0],U=W[1],X=sf(_,0),Y=me(X,2),G=Y[0],Q=Y[1],J=sf(_,0),z=me(J,2),fe=z[0],te=z[1],re=d.useState(null),q=me(re,2),ne=q[0],he=q[1],xe=d.useState(null),ye=me(xe,2),pe=ye[0],be=ye[1],_e=d.useMemo(function(){return pe===null&&O?Number.MAX_SAFE_INTEGER:pe||0},[pe,N]),$e=d.useState(!1),Be=me($e,2),Fe=Be[0],nt=Be[1],qe="".concat(n,"-item"),Ge=Math.max(K,H),Le=v===AH,Ne=i.length&&Le,we=v===MH,je=Ne||typeof v=="number"&&i.length>v,Oe=d.useMemo(function(){var Ye=i;return Ne?N===null&&O?Ye=i:Ye=i.slice(0,Math.min(i.length,k/u)):typeof v=="number"&&(Ye=i.slice(0,v)),Ye},[i,u,N,v,Ne]),Me=d.useMemo(function(){return Ne?i.slice(_e+1):i.slice(Oe.length)},[i,Oe,Ne,_e]),ge=d.useCallback(function(Ye,Ze){var ut;return typeof l=="function"?l(Ye):(ut=l&&(Ye==null?void 0:Ye[l]))!==null&&ut!==void 0?ut:Ze},[l]),Se=d.useCallback(o||function(Ye){return Ye},[o]);function Re(Ye,Ze,ut){pe===Ye&&(Ze===void 0||Ze===ne)||(be(Ye),ut||(nt(Yek){Re(Z-1,Ye-ue-fe+H);break}}x&&ft(0)+fe>k&&he(null)}},[k,j,H,G,fe,ge,Oe]);var lt=Fe&&!!Me.length,mt={};ne!==null&&Ne&&(mt={position:"absolute",left:ne,top:0});var Mt={prefixCls:qe,responsive:Ne,component:w,invalidate:we},Ft=s?function(Ye,Ze){var ut=ge(Ye,Ze);return d.createElement(a1.Provider,{key:ut,value:ae(ae({},Mt),{},{order:Ze,item:Ye,itemKey:ut,registerSize:at,display:Ze<=_e})},s(Ye,Ze))}:function(Ye,Ze){var ut=ge(Ye,Ze);return d.createElement(Ff,Te({},Mt,{order:Ze,key:ut,item:Ye,renderItem:Se,itemKey:ut,registerSize:at,display:Ze<=_e}))},ht={order:lt?_e:Number.MAX_SAFE_INTEGER,className:"".concat(qe,"-rest"),registerSize:yt,display:lt},St=p||j0e,xt=g?d.createElement(a1.Provider,{value:ae(ae({},Mt),ht)},g(Me)):d.createElement(Ff,Te({},Mt,ht),typeof St=="function"?St(Me):St),rt=d.createElement(S,Te({className:ce(!we&&n,h),style:m,ref:t},C),y&&d.createElement(Ff,Te({},Mt,{responsive:Le,responsiveDisabled:!Ne,order:-1,className:"".concat(qe,"-prefix"),registerSize:tt,display:!0}),y),Oe.map(Ft),je?xt:null,x&&d.createElement(Ff,Te({},Mt,{responsive:Le,responsiveDisabled:!Ne,order:_e,className:"".concat(qe,"-suffix"),registerSize:it,display:!0,style:mt}),x));return Le?d.createElement(Aa,{onResize:We,disabled:!Ne},rt):rt}var bs=d.forwardRef(F0e);bs.displayName="Overflow";bs.Item=RH;bs.RESPONSIVE=AH;bs.INVALIDATE=MH;function L0e(e,t,r){var n=ae(ae({},e),r?t:{});return Object.keys(t).forEach(function(a){var i=t[a];typeof i=="function"&&(n[a]=function(){for(var o,s=arguments.length,l=new Array(s),c=0;cb&&(ye="".concat(pe.slice(0,b),"..."))}var be=function($e){$e&&$e.stopPropagation(),O(re)};return typeof E=="function"?G(he,ye,q,xe,be):Y(re,ye,q,xe,be)},J=function(re){if(!a.length)return null;var q=typeof w=="function"?w(re):w;return typeof E=="function"?G(void 0,q,!1,!1,void 0,!0):Y({title:q},q,!1)},z=d.createElement("div",{className:"".concat(H,"-search"),style:{width:M},onFocus:function(){W(!0)},onBlur:function(){W(!1)}},d.createElement(DH,{ref:l,open:i,prefixCls:n,id:r,inputElement:null,disabled:u,autoFocus:h,autoComplete:v,editable:X,activeDescendantId:p,value:U,onKeyDown:I,onMouseDown:N,onChange:_,onPaste:T,onCompositionStart:D,onCompositionEnd:k,onBlur:R,tabIndex:g,attrs:Dn(t,!0)}),d.createElement("span",{ref:A,className:"".concat(H,"-search-mirror"),"aria-hidden":!0},U," ")),fe=d.createElement(bs,{prefixCls:"".concat(H,"-overflow"),data:a,renderItem:Q,renderRest:J,suffix:z,itemKey:G0e,maxCount:x});return d.createElement("span",{className:"".concat(H,"-wrap")},fe,!a.length&&!U&&d.createElement("span",{className:"".concat(H,"-placeholder")},c))},X0e=function(t){var r=t.inputElement,n=t.prefixCls,a=t.id,i=t.inputRef,o=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,f=t.open,m=t.values,h=t.placeholder,v=t.tabIndex,p=t.showSearch,g=t.searchValue,y=t.activeValue,x=t.maxLength,b=t.onInputKeyDown,S=t.onInputMouseDown,w=t.onInputChange,E=t.onInputPaste,C=t.onInputCompositionStart,O=t.onInputCompositionEnd,_=t.onInputBlur,T=t.title,I=d.useState(!1),N=me(I,2),D=N[0],k=N[1],R=u==="combobox",A=R||p,j=m[0],F=g||"";R&&y&&!D&&(F=y),d.useEffect(function(){R&&k(!1)},[R,y]);var M=u!=="combobox"&&!f&&!p?!1:!!F,V=T===void 0?FH(j):T,K=d.useMemo(function(){return j?null:d.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:M?{visibility:"hidden"}:void 0},h)},[j,M,h,n]);return d.createElement("span",{className:"".concat(n,"-selection-wrap")},d.createElement("span",{className:"".concat(n,"-selection-search")},d.createElement(DH,{ref:i,prefixCls:n,id:a,open:f,inputElement:r,disabled:o,autoFocus:s,autoComplete:l,editable:A,activeDescendantId:c,value:F,onKeyDown:b,onMouseDown:S,onChange:function(B){k(!0),w(B)},onPaste:E,onCompositionStart:C,onCompositionEnd:O,onBlur:_,tabIndex:v,attrs:Dn(t,!0),maxLength:R?x:void 0})),!R&&j?d.createElement("span",{className:"".concat(n,"-selection-item"),title:V,style:M?{visibility:"hidden"}:void 0},j.label):null,K)},Y0e=function(t,r){var n=d.useRef(null),a=d.useRef(!1),i=t.prefixCls,o=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,f=t.prefix,m=t.autoClearSearchValue,h=t.onSearch,v=t.onSearchSubmit,p=t.onToggleOpen,g=t.onInputKeyDown,y=t.onInputBlur,x=t.domRef;d.useImperativeHandle(r,function(){return{focus:function(V){n.current.focus(V)},blur:function(){n.current.blur()}}});var b=kH(0),S=me(b,2),w=S[0],E=S[1],C=function(V){var K=V.which,L=n.current instanceof HTMLTextAreaElement;!L&&o&&(K===Qe.UP||K===Qe.DOWN)&&V.preventDefault(),g&&g(V),K===Qe.ENTER&&s==="tags"&&!a.current&&!o&&(v==null||v(V.target.value)),!(L&&!o&&~[Qe.UP,Qe.DOWN,Qe.LEFT,Qe.RIGHT].indexOf(K))&&O0e(K)&&p(!0)},O=function(){E(!0)},_=d.useRef(null),T=function(V){h(V,!0,a.current)!==!1&&p(!0)},I=function(){a.current=!0},N=function(V){a.current=!1,s!=="combobox"&&T(V.target.value)},D=function(V){var K=V.target.value;if(c&&_.current&&/[\r\n]/.test(_.current)){var L=_.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");K=K.replace(L,_.current)}_.current=null,T(K)},k=function(V){var K=V.clipboardData,L=K==null?void 0:K.getData("text");_.current=L||""},R=function(V){var K=V.target;if(K!==n.current){var L=document.body.style.msTouchAction!==void 0;L?setTimeout(function(){n.current.focus()}):n.current.focus()}},A=function(V){var K=w();V.target!==n.current&&!K&&!(s==="combobox"&&u)&&V.preventDefault(),(s!=="combobox"&&(!l||!K)||!o)&&(o&&m!==!1&&h("",!0,!1),p())},j={inputRef:n,onInputKeyDown:C,onInputMouseDown:O,onInputChange:D,onInputPaste:k,onInputCompositionStart:I,onInputCompositionEnd:N,onInputBlur:y},F=s==="multiple"||s==="tags"?d.createElement(q0e,Te({},t,j)):d.createElement(X0e,Te({},t,j));return d.createElement("div",{ref:x,className:"".concat(i,"-selector"),onClick:R,onMouseDown:A},f&&d.createElement("div",{className:"".concat(i,"-prefix")},f),F)},Q0e=d.forwardRef(Y0e);function Z0e(e){var t=e.prefixCls,r=e.align,n=e.arrow,a=e.arrowPos,i=n||{},o=i.className,s=i.content,l=a.x,c=l===void 0?0:l,u=a.y,f=u===void 0?0:u,m=d.useRef();if(!r||!r.points)return null;var h={position:"absolute"};if(r.autoArrow!==!1){var v=r.points[0],p=r.points[1],g=v[0],y=v[1],x=p[0],b=p[1];g===x||!["t","b"].includes(g)?h.top=f:g==="t"?h.top=0:h.bottom=0,y===b||!["l","r"].includes(y)?h.left=c:y==="l"?h.left=0:h.right=0}return d.createElement("div",{ref:m,className:ce("".concat(t,"-arrow"),o),style:h},s)}function J0e(e){var t=e.prefixCls,r=e.open,n=e.zIndex,a=e.mask,i=e.motion;return a?d.createElement(Vi,Te({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(o){var s=o.className;return d.createElement("div",{style:{zIndex:n},className:ce("".concat(t,"-mask"),s)})}):null}var eme=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),tme=d.forwardRef(function(e,t){var r=e.popup,n=e.className,a=e.prefixCls,i=e.style,o=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,m=e.mask,h=e.arrow,v=e.arrowPos,p=e.align,g=e.motion,y=e.maskMotion,x=e.forceRender,b=e.getPopupContainer,S=e.autoDestroy,w=e.portal,E=e.zIndex,C=e.onMouseEnter,O=e.onMouseLeave,_=e.onPointerEnter,T=e.onPointerDownCapture,I=e.ready,N=e.offsetX,D=e.offsetY,k=e.offsetR,R=e.offsetB,A=e.onAlign,j=e.onPrepare,F=e.stretch,M=e.targetWidth,V=e.targetHeight,K=typeof r=="function"?r():r,L=l||c,B=(b==null?void 0:b.length)>0,W=d.useState(!b||!B),H=me(W,2),U=H[0],X=H[1];if(Gt(function(){!U&&B&&o&&X(!0)},[U,B,o]),!U)return null;var Y="auto",G={left:"-1000vw",top:"-1000vh",right:Y,bottom:Y};if(I||!l){var Q,J=p.points,z=p.dynamicInset||((Q=p._experimental)===null||Q===void 0?void 0:Q.dynamicInset),fe=z&&J[0][1]==="r",te=z&&J[0][0]==="b";fe?(G.right=k,G.left=Y):(G.left=N,G.right=Y),te?(G.bottom=R,G.top=Y):(G.top=D,G.bottom=Y)}var re={};return F&&(F.includes("height")&&V?re.height=V:F.includes("minHeight")&&V&&(re.minHeight=V),F.includes("width")&&M?re.width=M:F.includes("minWidth")&&M&&(re.minWidth=M)),l||(re.pointerEvents="none"),d.createElement(w,{open:x||L,getContainer:b&&function(){return b(o)},autoDestroy:S},d.createElement(J0e,{prefixCls:a,open:l,zIndex:E,mask:m,motion:y}),d.createElement(Aa,{onResize:A,disabled:!l},function(q){return d.createElement(Vi,Te({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:"".concat(a,"-hidden")},g,{onAppearPrepare:j,onEnterPrepare:j,visible:l,onVisibleChanged:function(he){var xe;g==null||(xe=g.onVisibleChanged)===null||xe===void 0||xe.call(g,he),s(he)}}),function(ne,he){var xe=ne.className,ye=ne.style,pe=ce(a,xe,n);return d.createElement("div",{ref:xa(q,t,he),className:pe,style:ae(ae(ae(ae({"--arrow-x":"".concat(v.x||0,"px"),"--arrow-y":"".concat(v.y||0,"px")},G),re),ye),{},{boxSizing:"border-box",zIndex:E},i),onMouseEnter:C,onMouseLeave:O,onPointerEnter:_,onClick:f,onPointerDownCapture:T},h&&d.createElement(Z0e,{prefixCls:a,arrow:h,arrowPos:v,align:p}),d.createElement(eme,{cache:!l&&!u},K))})}))}),rme=d.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,a=_s(r),i=d.useCallback(function(s){lp(t,n?n(s):s)},[n]),o=Wl(i,su(r));return a?d.cloneElement(r,{ref:o}):r}),b3=d.createContext(null);function S3(e){return e?Array.isArray(e)?e:[e]:[]}function nme(e,t,r,n){return d.useMemo(function(){var a=S3(r??t),i=S3(n??t),o=new Set(a),s=new Set(i);return e&&(o.has("hover")&&(o.delete("hover"),o.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[o,s]},[e,t,r,n])}function ame(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function ime(e,t,r,n){for(var a=r.points,i=Object.keys(e),o=0;o1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function jm(e){return xp(parseFloat(e),0)}function C3(e,t){var r=ae({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var a=bv(n).getComputedStyle(n),i=a.overflow,o=a.overflowClipMargin,s=a.borderTopWidth,l=a.borderBottomWidth,c=a.borderLeftWidth,u=a.borderRightWidth,f=n.getBoundingClientRect(),m=n.offsetHeight,h=n.clientHeight,v=n.offsetWidth,p=n.clientWidth,g=jm(s),y=jm(l),x=jm(c),b=jm(u),S=xp(Math.round(f.width/v*1e3)/1e3),w=xp(Math.round(f.height/m*1e3)/1e3),E=(v-p-x-b)*S,C=(m-h-g-y)*w,O=g*w,_=y*w,T=x*S,I=b*S,N=0,D=0;if(i==="clip"){var k=jm(o);N=k*S,D=k*w}var R=f.x+T-N,A=f.y+O-D,j=R+f.width+2*N-T-I-E,F=A+f.height+2*D-O-_-C;r.left=Math.max(r.left,R),r.top=Math.max(r.top,A),r.right=Math.min(r.right,j),r.bottom=Math.min(r.bottom,F)}}),r}function E3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function $3(e,t){var r=t||[],n=me(r,2),a=n[0],i=n[1];return[E3(e.width,a),E3(e.height,i)]}function _3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function lf(e,t){var r=t[0],n=t[1],a,i;return r==="t"?i=e.y:r==="b"?i=e.y+e.height:i=e.y+e.height/2,n==="l"?a=e.x:n==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:i}}function ec(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,a){return a===t?r[n]||"c":n}).join("")}function ome(e,t,r,n,a,i,o){var s=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[n]||{}}),l=me(s,2),c=l[0],u=l[1],f=d.useRef(0),m=d.useMemo(function(){return t?F_(t):[]},[t]),h=d.useRef({}),v=function(){h.current={}};e||v();var p=qt(function(){if(t&&r&&e){let Nn=function(Ti,Pi){var As=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Be,gg=L.x+Ti,yg=L.y+Pi,yC=gg+te,Bt=yg+fe,Qt=Math.max(gg,As.left),an=Math.max(yg,As.top),kn=Math.min(yC,As.right),on=Math.min(Bt,As.bottom);return Math.max(0,(kn-Qt)*(on-an))},hi=function(){Ae=L.y+St,Ee=Ae+fe,Ie=L.x+ht,Pe=Ie+te};var Sr=Nn,nn=hi,x,b,S,w,E=t,C=E.ownerDocument,O=bv(E),_=O.getComputedStyle(E),T=_.position,I=E.style.left,N=E.style.top,D=E.style.right,k=E.style.bottom,R=E.style.overflow,A=ae(ae({},a[n]),i),j=C.createElement("div");(x=E.parentElement)===null||x===void 0||x.appendChild(j),j.style.left="".concat(E.offsetLeft,"px"),j.style.top="".concat(E.offsetTop,"px"),j.style.position=T,j.style.height="".concat(E.offsetHeight,"px"),j.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var F;if(Array.isArray(r))F={x:r[0],y:r[1],width:0,height:0};else{var M,V,K=r.getBoundingClientRect();K.x=(M=K.x)!==null&&M!==void 0?M:K.left,K.y=(V=K.y)!==null&&V!==void 0?V:K.top,F={x:K.x,y:K.y,width:K.width,height:K.height}}var L=E.getBoundingClientRect(),B=O.getComputedStyle(E),W=B.height,H=B.width;L.x=(b=L.x)!==null&&b!==void 0?b:L.left,L.y=(S=L.y)!==null&&S!==void 0?S:L.top;var U=C.documentElement,X=U.clientWidth,Y=U.clientHeight,G=U.scrollWidth,Q=U.scrollHeight,J=U.scrollTop,z=U.scrollLeft,fe=L.height,te=L.width,re=F.height,q=F.width,ne={left:0,top:0,right:X,bottom:Y},he={left:-z,top:-J,right:G-z,bottom:Q-J},xe=A.htmlRegion,ye="visible",pe="visibleFirst";xe!=="scroll"&&xe!==pe&&(xe=ye);var be=xe===pe,_e=C3(he,m),$e=C3(ne,m),Be=xe===ye?$e:_e,Fe=be?$e:Be;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var nt=E.getBoundingClientRect();E.style.left=I,E.style.top=N,E.style.right=D,E.style.bottom=k,E.style.overflow=R,(w=E.parentElement)===null||w===void 0||w.removeChild(j);var qe=xp(Math.round(te/parseFloat(H)*1e3)/1e3),Ge=xp(Math.round(fe/parseFloat(W)*1e3)/1e3);if(qe===0||Ge===0||sp(r)&&!q0(r))return;var Le=A.offset,Ne=A.targetOffset,we=$3(L,Le),je=me(we,2),Oe=je[0],Me=je[1],ge=$3(F,Ne),Se=me(ge,2),Re=Se[0],We=Se[1];F.x-=Re,F.y-=We;var at=A.points||[],yt=me(at,2),tt=yt[0],it=yt[1],ft=_3(it),lt=_3(tt),mt=lf(F,ft),Mt=lf(L,lt),Ft=ae({},A),ht=mt.x-Mt.x+Oe,St=mt.y-Mt.y+Me,xt=Nn(ht,St),rt=Nn(ht,St,$e),Ye=lf(F,["t","l"]),Ze=lf(L,["t","l"]),ut=lf(F,["b","r"]),Z=lf(L,["b","r"]),ue=A.overflow||{},le=ue.adjustX,ie=ue.adjustY,oe=ue.shiftX,de=ue.shiftY,Ce=function(Pi){return typeof Pi=="boolean"?Pi:Pi>=0},Ae,Ee,Ie,Pe;hi();var Xe=Ce(ie),ke=lt[0]===ft[0];if(Xe&<[0]==="t"&&(Ee>Fe.bottom||h.current.bt)){var ze=St;ke?ze-=fe-re:ze=Ye.y-Z.y-Me;var He=Nn(ht,ze),Ve=Nn(ht,ze,$e);He>xt||He===xt&&(!be||Ve>=rt)?(h.current.bt=!0,St=ze,Me=-Me,Ft.points=[ec(lt,0),ec(ft,0)]):h.current.bt=!1}if(Xe&<[0]==="b"&&(Aext||ot===xt&&(!be||wt>=rt)?(h.current.tb=!0,St=et,Me=-Me,Ft.points=[ec(lt,0),ec(ft,0)]):h.current.tb=!1}var Lt=Ce(le),pt=lt[1]===ft[1];if(Lt&<[1]==="l"&&(Pe>Fe.right||h.current.rl)){var Ot=ht;pt?Ot-=te-q:Ot=Ye.x-Z.x-Oe;var zt=Nn(Ot,St),pr=Nn(Ot,St,$e);zt>xt||zt===xt&&(!be||pr>=rt)?(h.current.rl=!0,ht=Ot,Oe=-Oe,Ft.points=[ec(lt,1),ec(ft,1)]):h.current.rl=!1}if(Lt&<[1]==="r"&&(Iext||Pr===xt&&(!be||In>=rt)?(h.current.lr=!0,ht=Ir,Oe=-Oe,Ft.points=[ec(lt,1),ec(ft,1)]):h.current.lr=!1}hi();var dn=oe===!0?0:oe;typeof dn=="number"&&(Ie<$e.left&&(ht-=Ie-$e.left-Oe,F.x+q<$e.left+dn&&(ht+=F.x-$e.left+q-dn)),Pe>$e.right&&(ht-=Pe-$e.right-Oe,F.x>$e.right-dn&&(ht+=F.x-$e.right+dn)));var zn=de===!0?0:de;typeof zn=="number"&&(Ae<$e.top&&(St-=Ae-$e.top-Me,F.y+re<$e.top+zn&&(St+=F.y-$e.top+re-zn)),Ee>$e.bottom&&(St-=Ee-$e.bottom-Me,F.y>$e.bottom-zn&&(St+=F.y-$e.bottom+zn)));var Hn=L.x+ht,la=Hn+te,Wn=L.y+St,mr=Wn+fe,It=F.x,Pt=It+q,cr=F.y,_t=cr+re,Tt=Math.max(Hn,It),nr=Math.min(la,Pt),Nr=(Tt+nr)/2,Kr=Nr-Hn,Vn=Math.max(Wn,cr),xn=Math.min(mr,_t),Un=(Vn+xn)/2,Jt=Un-Wn;o==null||o(t,Ft);var dt=nt.right-L.x-(ht+L.width),$t=nt.bottom-L.y-(St+L.height);qe===1&&(ht=Math.round(ht),dt=Math.round(dt)),Ge===1&&(St=Math.round(St),$t=Math.round($t));var tr={ready:!0,offsetX:ht/qe,offsetY:St/Ge,offsetR:dt/qe,offsetB:$t/Ge,arrowX:Kr/qe,arrowY:Jt/Ge,scaleX:qe,scaleY:Ge,align:Ft};u(tr)}}),g=function(){f.current+=1;var b=f.current;Promise.resolve().then(function(){f.current===b&&p()})},y=function(){u(function(b){return ae(ae({},b),{},{ready:!1})})};return Gt(y,[n]),Gt(function(){e||y()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,g]}function sme(e,t,r,n,a){Gt(function(){if(e&&t&&r){let m=function(){n(),a()};var f=m,i=t,o=r,s=F_(i),l=F_(o),c=bv(o),u=new Set([c].concat(De(s),De(l)));return u.forEach(function(h){h.addEventListener("scroll",m,{passive:!0})}),c.addEventListener("resize",m,{passive:!0}),n(),function(){u.forEach(function(h){h.removeEventListener("scroll",m),c.removeEventListener("resize",m)})}}},[e,t,r])}function lme(e,t,r,n,a,i,o,s){var l=d.useRef(e);l.current=e;var c=d.useRef(!1);d.useEffect(function(){if(t&&n&&(!a||i)){var f=function(){c.current=!1},m=function(g){var y;l.current&&!o(((y=g.composedPath)===null||y===void 0||(y=y.call(g))===null||y===void 0?void 0:y[0])||g.target)&&!c.current&&s(!1)},h=bv(n);h.addEventListener("pointerdown",f,!0),h.addEventListener("mousedown",m,!0),h.addEventListener("contextmenu",m,!0);var v=Jx(r);return v&&(v.addEventListener("mousedown",m,!0),v.addEventListener("contextmenu",m,!0)),function(){h.removeEventListener("pointerdown",f,!0),h.removeEventListener("mousedown",m,!0),h.removeEventListener("contextmenu",m,!0),v&&(v.removeEventListener("mousedown",m,!0),v.removeEventListener("contextmenu",m,!0))}}},[t,r,n,a,i]);function u(){c.current=!0}return u}var cme=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function ume(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:QP,t=d.forwardRef(function(r,n){var a=r.prefixCls,i=a===void 0?"rc-trigger-popup":a,o=r.children,s=r.action,l=s===void 0?"hover":s,c=r.showAction,u=r.hideAction,f=r.popupVisible,m=r.defaultPopupVisible,h=r.onPopupVisibleChange,v=r.afterPopupVisibleChange,p=r.mouseEnterDelay,g=r.mouseLeaveDelay,y=g===void 0?.1:g,x=r.focusDelay,b=r.blurDelay,S=r.mask,w=r.maskClosable,E=w===void 0?!0:w,C=r.getPopupContainer,O=r.forceRender,_=r.autoDestroy,T=r.destroyPopupOnHide,I=r.popup,N=r.popupClassName,D=r.popupStyle,k=r.popupPlacement,R=r.builtinPlacements,A=R===void 0?{}:R,j=r.popupAlign,F=r.zIndex,M=r.stretch,V=r.getPopupClassNameFromAlign,K=r.fresh,L=r.alignPoint,B=r.onPopupClick,W=r.onPopupAlign,H=r.arrow,U=r.popupMotion,X=r.maskMotion,Y=r.popupTransitionName,G=r.popupAnimation,Q=r.maskTransitionName,J=r.maskAnimation,z=r.className,fe=r.getTriggerDOMNode,te=Rt(r,cme),re=_||T||!1,q=d.useState(!1),ne=me(q,2),he=ne[0],xe=ne[1];Gt(function(){xe(bS())},[]);var ye=d.useRef({}),pe=d.useContext(b3),be=d.useMemo(function(){return{registerSubPopup:function(Qt,an){ye.current[Qt]=an,pe==null||pe.registerSubPopup(Qt,an)}}},[pe]),_e=gS(),$e=d.useState(null),Be=me($e,2),Fe=Be[0],nt=Be[1],qe=d.useRef(null),Ge=qt(function(Bt){qe.current=Bt,sp(Bt)&&Fe!==Bt&&nt(Bt),pe==null||pe.registerSubPopup(_e,Bt)}),Le=d.useState(null),Ne=me(Le,2),we=Ne[0],je=Ne[1],Oe=d.useRef(null),Me=qt(function(Bt){sp(Bt)&&we!==Bt&&(je(Bt),Oe.current=Bt)}),ge=d.Children.only(o),Se=(ge==null?void 0:ge.props)||{},Re={},We=qt(function(Bt){var Qt,an,kn=we;return(kn==null?void 0:kn.contains(Bt))||((Qt=Jx(kn))===null||Qt===void 0?void 0:Qt.host)===Bt||Bt===kn||(Fe==null?void 0:Fe.contains(Bt))||((an=Jx(Fe))===null||an===void 0?void 0:an.host)===Bt||Bt===Fe||Object.values(ye.current).some(function(on){return(on==null?void 0:on.contains(Bt))||Bt===on})}),at=w3(i,U,G,Y),yt=w3(i,X,J,Q),tt=d.useState(m||!1),it=me(tt,2),ft=it[0],lt=it[1],mt=f??ft,Mt=qt(function(Bt){f===void 0&<(Bt)});Gt(function(){lt(f||!1)},[f]);var Ft=d.useRef(mt);Ft.current=mt;var ht=d.useRef([]);ht.current=[];var St=qt(function(Bt){var Qt;Mt(Bt),((Qt=ht.current[ht.current.length-1])!==null&&Qt!==void 0?Qt:mt)!==Bt&&(ht.current.push(Bt),h==null||h(Bt))}),xt=d.useRef(),rt=function(){clearTimeout(xt.current)},Ye=function(Qt){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;rt(),an===0?St(Qt):xt.current=setTimeout(function(){St(Qt)},an*1e3)};d.useEffect(function(){return rt},[]);var Ze=d.useState(!1),ut=me(Ze,2),Z=ut[0],ue=ut[1];Gt(function(Bt){(!Bt||mt)&&ue(!0)},[mt]);var le=d.useState(null),ie=me(le,2),oe=ie[0],de=ie[1],Ce=d.useState(null),Ae=me(Ce,2),Ee=Ae[0],Ie=Ae[1],Pe=function(Qt){Ie([Qt.clientX,Qt.clientY])},Xe=ome(mt,Fe,L&&Ee!==null?Ee:we,k,A,j,W),ke=me(Xe,11),ze=ke[0],He=ke[1],Ve=ke[2],et=ke[3],ot=ke[4],wt=ke[5],Lt=ke[6],pt=ke[7],Ot=ke[8],zt=ke[9],pr=ke[10],Ir=nme(he,l,c,u),Pr=me(Ir,2),In=Pr[0],dn=Pr[1],zn=In.has("click"),Hn=dn.has("click")||dn.has("contextMenu"),la=qt(function(){Z||pr()}),Wn=function(){Ft.current&&L&&Hn&&Ye(!1)};sme(mt,we,Fe,la,Wn),Gt(function(){la()},[Ee,k]),Gt(function(){mt&&!(A!=null&&A[k])&&la()},[JSON.stringify(j)]);var mr=d.useMemo(function(){var Bt=ime(A,i,zt,L);return ce(Bt,V==null?void 0:V(zt))},[zt,V,A,i,L]);d.useImperativeHandle(n,function(){return{nativeElement:Oe.current,popupElement:qe.current,forceAlign:la}});var It=d.useState(0),Pt=me(It,2),cr=Pt[0],_t=Pt[1],Tt=d.useState(0),nr=me(Tt,2),Nr=nr[0],Kr=nr[1],Vn=function(){if(M&&we){var Qt=we.getBoundingClientRect();_t(Qt.width),Kr(Qt.height)}},xn=function(){Vn(),la()},Un=function(Qt){ue(!1),pr(),v==null||v(Qt)},Jt=function(){return new Promise(function(Qt){Vn(),de(function(){return Qt})})};Gt(function(){oe&&(pr(),oe(),de(null))},[oe]);function dt(Bt,Qt,an,kn){Re[Bt]=function(on){var xg;kn==null||kn(on),Ye(Qt,an);for(var xC=arguments.length,y4=new Array(xC>1?xC-1:0),bg=1;bg1?an-1:0),on=1;on1?an-1:0),on=1;on1&&arguments[1]!==void 0?arguments[1]:{},r=t.fieldNames,n=t.childrenAsData,a=[],i=LH(r,!1),o=i.label,s=i.value,l=i.options,c=i.groupLabel;function u(f,m){Array.isArray(f)&&f.forEach(function(h){if(m||!(l in h)){var v=h[s];a.push({key:O3(h,a.length),groupOption:m,data:h,label:h[o],value:v})}else{var p=h[c];p===void 0&&n&&(p=h.label),a.push({key:O3(h,a.length),group:!0,data:h,label:p}),u(h[l],!0)}})}return u(e,!1),a}function B_(e){var t=ae({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Br(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var vme=function(t,r,n){if(!r||!r.length)return null;var a=!1,i=function s(l,c){var u=U7(c),f=u[0],m=u.slice(1);if(!f)return[l];var h=l.split(f);return a=a||h.length>1,h.reduce(function(v,p){return[].concat(De(v),De(s(p,m)))},[]).filter(Boolean)},o=i(t,r);return a?typeof n<"u"?o.slice(0,n):o:null},nI=d.createContext(null);function gme(e){var t=e.visible,r=e.values;if(!t)return null;var n=50;return d.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(r.slice(0,n).map(function(a){var i=a.label,o=a.value;return["number","string"].includes(bt(i))?i:o}).join(", ")),r.length>n?", ...":null)}var yme=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],xme=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],z_=function(t){return t==="tags"||t==="multiple"},bme=d.forwardRef(function(e,t){var r,n=e.id,a=e.prefixCls,i=e.className,o=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,f=e.onDisplayValuesChange,m=e.emptyOptions,h=e.notFoundContent,v=h===void 0?"Not Found":h,p=e.onClear,g=e.mode,y=e.disabled,x=e.loading,b=e.getInputElement,S=e.getRawInputElement,w=e.open,E=e.defaultOpen,C=e.onDropdownVisibleChange,O=e.activeValue,_=e.onActiveValueChange,T=e.activeDescendantId,I=e.searchValue,N=e.autoClearSearchValue,D=e.onSearch,k=e.onSearchSplit,R=e.tokenSeparators,A=e.allowClear,j=e.prefix,F=e.suffixIcon,M=e.clearIcon,V=e.OptionList,K=e.animation,L=e.transitionName,B=e.dropdownStyle,W=e.dropdownClassName,H=e.dropdownMatchSelectWidth,U=e.dropdownRender,X=e.dropdownAlign,Y=e.placement,G=e.builtinPlacements,Q=e.getPopupContainer,J=e.showAction,z=J===void 0?[]:J,fe=e.onFocus,te=e.onBlur,re=e.onKeyUp,q=e.onKeyDown,ne=e.onMouseDown,he=Rt(e,yme),xe=z_(g),ye=(o!==void 0?o:xe)||g==="combobox",pe=ae({},he);xme.forEach(function(It){delete pe[It]}),c==null||c.forEach(function(It){delete pe[It]});var be=d.useState(!1),_e=me(be,2),$e=_e[0],Be=_e[1];d.useEffect(function(){Be(bS())},[]);var Fe=d.useRef(null),nt=d.useRef(null),qe=d.useRef(null),Ge=d.useRef(null),Le=d.useRef(null),Ne=d.useRef(!1),we=$0e(),je=me(we,3),Oe=je[0],Me=je[1],ge=je[2];d.useImperativeHandle(t,function(){var It,Pt;return{focus:(It=Ge.current)===null||It===void 0?void 0:It.focus,blur:(Pt=Ge.current)===null||Pt===void 0?void 0:Pt.blur,scrollTo:function(_t){var Tt;return(Tt=Le.current)===null||Tt===void 0?void 0:Tt.scrollTo(_t)},nativeElement:Fe.current||nt.current}});var Se=d.useMemo(function(){var It;if(g!=="combobox")return I;var Pt=(It=u[0])===null||It===void 0?void 0:It.value;return typeof Pt=="string"||typeof Pt=="number"?String(Pt):""},[I,g,u]),Re=g==="combobox"&&typeof b=="function"&&b()||null,We=typeof S=="function"&&S(),at=Wl(nt,We==null||(r=We.props)===null||r===void 0?void 0:r.ref),yt=d.useState(!1),tt=me(yt,2),it=tt[0],ft=tt[1];Gt(function(){ft(!0)},[]);var lt=br(!1,{defaultValue:E,value:w}),mt=me(lt,2),Mt=mt[0],Ft=mt[1],ht=it?Mt:!1,St=!v&&m;(y||St&&ht&&g==="combobox")&&(ht=!1);var xt=St?!1:ht,rt=d.useCallback(function(It){var Pt=It!==void 0?It:!ht;y||(Ft(Pt),ht!==Pt&&(C==null||C(Pt)))},[y,ht,Ft,C]),Ye=d.useMemo(function(){return(R||[]).some(function(It){return[` +`,`\r +`].includes(It)})},[R]),Ze=d.useContext(nI)||{},ut=Ze.maxCount,Z=Ze.rawValues,ue=function(Pt,cr,_t){if(!(xe&&L_(ut)&&(Z==null?void 0:Z.size)>=ut)){var Tt=!0,nr=Pt;_==null||_(null);var Nr=vme(Pt,R,L_(ut)?ut-Z.size:void 0),Kr=_t?null:Nr;return g!=="combobox"&&Kr&&(nr="",k==null||k(Kr),rt(!1),Tt=!1),D&&Se!==nr&&D(nr,{source:cr?"typing":"effect"}),Tt}},le=function(Pt){!Pt||!Pt.trim()||D(Pt,{source:"submit"})};d.useEffect(function(){!ht&&!xe&&g!=="combobox"&&ue("",!1,!1)},[ht]),d.useEffect(function(){Mt&&y&&Ft(!1),y&&!Ne.current&&Me(!1)},[y]);var ie=kH(),oe=me(ie,2),de=oe[0],Ce=oe[1],Ae=d.useRef(!1),Ee=function(Pt){var cr=de(),_t=Pt.key,Tt=_t==="Enter";if(Tt&&(g!=="combobox"&&Pt.preventDefault(),ht||rt(!0)),Ce(!!Se),_t==="Backspace"&&!cr&&xe&&!Se&&u.length){for(var nr=De(u),Nr=null,Kr=nr.length-1;Kr>=0;Kr-=1){var Vn=nr[Kr];if(!Vn.disabled){nr.splice(Kr,1),Nr=Vn;break}}Nr&&f(nr,{type:"remove",values:[Nr]})}for(var xn=arguments.length,Un=new Array(xn>1?xn-1:0),Jt=1;Jt1?cr-1:0),Tt=1;Tt1?Nr-1:0),Vn=1;Vn"u"?"undefined":bt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const zH=function(e,t,r,n){var a=d.useRef(!1),i=d.useRef(null);function o(){clearTimeout(i.current),a.current=!0,i.current=setTimeout(function(){a.current=!1},50)}var s=d.useRef({top:e,bottom:t,left:r,right:n});return s.current.top=e,s.current.bottom=t,s.current.left=r,s.current.right=n,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&f?(clearTimeout(i.current),a.current=!1):(!f||a.current)&&o(),!a.current&&f}};function $me(e,t,r,n,a,i,o){var s=d.useRef(0),l=d.useRef(null),c=d.useRef(null),u=d.useRef(!1),f=zH(t,r,n,a);function m(x,b){if(Ut.cancel(l.current),!f(!1,b)){var S=x;if(!S._virtualHandled)S._virtualHandled=!0;else return;s.current+=b,c.current=b,T3||S.preventDefault(),l.current=Ut(function(){var w=u.current?10:1;o(s.current*w,!1),s.current=0})}}function h(x,b){o(b,!0),T3||x.preventDefault()}var v=d.useRef(null),p=d.useRef(null);function g(x){if(e){Ut.cancel(p.current),p.current=Ut(function(){v.current=null},2);var b=x.deltaX,S=x.deltaY,w=x.shiftKey,E=b,C=S;(v.current==="sx"||!v.current&&w&&S&&!b)&&(E=S,C=0,v.current="sx");var O=Math.abs(E),_=Math.abs(C);v.current===null&&(v.current=i&&O>_?"x":"y"),v.current==="y"?m(x,C):h(x,E)}}function y(x){e&&(u.current=x.detail===c.current)}return[g,y]}function _me(e,t,r,n){var a=d.useMemo(function(){return[new Map,[]]},[e,r.id,n]),i=me(a,2),o=i[0],s=i[1],l=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,m=o.get(u),h=o.get(f);if(m===void 0||h===void 0)for(var v=e.length,p=s.length;p0&&arguments[0]!==void 0?arguments[0]:!1;u();var v=function(){var y=!1;s.current.forEach(function(x,b){if(x&&x.offsetParent){var S=x.offsetHeight,w=getComputedStyle(x),E=w.marginTop,C=w.marginBottom,O=P3(E),_=P3(C),T=S+O+_;l.current.get(b)!==T&&(l.current.set(b,T),y=!0)}}),y&&o(function(x){return x+1})};if(h)v();else{c.current+=1;var p=c.current;Promise.resolve().then(function(){p===c.current&&v()})}}function m(h,v){var p=e(h),g=s.current.get(p);v?(s.current.set(p,v),f()):s.current.delete(p),!g!=!v&&(v?t==null||t(h):r==null||r(h))}return d.useEffect(function(){return u},[]),[m,f,l.current,i]}var I3=14/15;function Pme(e,t,r){var n=d.useRef(!1),a=d.useRef(0),i=d.useRef(0),o=d.useRef(null),s=d.useRef(null),l,c=function(h){if(n.current){var v=Math.ceil(h.touches[0].pageX),p=Math.ceil(h.touches[0].pageY),g=a.current-v,y=i.current-p,x=Math.abs(g)>Math.abs(y);x?a.current=v:i.current=p;var b=r(x,x?g:y,!1,h);b&&h.preventDefault(),clearInterval(s.current),b&&(s.current=setInterval(function(){x?g*=I3:y*=I3;var S=Math.floor(x?g:y);(!r(x,S,!0)||Math.abs(S)<=.1)&&clearInterval(s.current)},16))}},u=function(){n.current=!1,l()},f=function(h){l(),h.touches.length===1&&!n.current&&(n.current=!0,a.current=Math.ceil(h.touches[0].pageX),i.current=Math.ceil(h.touches[0].pageY),o.current=h.target,o.current.addEventListener("touchmove",c,{passive:!1}),o.current.addEventListener("touchend",u,{passive:!0}))};l=function(){o.current&&(o.current.removeEventListener("touchmove",c),o.current.removeEventListener("touchend",u))},Gt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var m;(m=t.current)===null||m===void 0||m.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}function N3(e){return Math.floor(Math.pow(e,.5))}function H_(e,t){var r="touches"in e?e.touches[0]:e;return r[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function Ime(e,t,r){d.useEffect(function(){var n=t.current;if(e&&n){var a=!1,i,o,s=function(){Ut.cancel(i)},l=function m(){s(),i=Ut(function(){r(o),m()})},c=function(){a=!1,s()},u=function(h){if(!(h.target.draggable||h.button!==0)){var v=h;v._virtualHandled||(v._virtualHandled=!0,a=!0)}},f=function(h){if(a){var v=H_(h,!1),p=n.getBoundingClientRect(),g=p.top,y=p.bottom;if(v<=g){var x=g-v;o=-N3(x),l()}else if(v>=y){var b=v-y;o=N3(b),l()}else s()}};return n.addEventListener("mousedown",u),n.ownerDocument.addEventListener("mouseup",c),n.ownerDocument.addEventListener("mousemove",f),n.ownerDocument.addEventListener("dragend",c),function(){n.removeEventListener("mousedown",u),n.ownerDocument.removeEventListener("mouseup",c),n.ownerDocument.removeEventListener("mousemove",f),n.ownerDocument.removeEventListener("dragend",c),s()}}},[e])}var Nme=10;function kme(e,t,r,n,a,i,o,s){var l=d.useRef(),c=d.useState(null),u=me(c,2),f=u[0],m=u[1];return Gt(function(){if(f&&f.times=0;k-=1){var R=a(t[k]),A=r.get(R);if(A===void 0){x=!0;break}if(D-=A,D<=0)break}switch(w){case"top":S=C-g;break;case"bottom":S=O-y+g;break;default:{var j=e.current.scrollTop,F=j+y;CF&&(b="bottom")}}S!==null&&o(S),S!==f.lastTop&&(x=!0)}x&&m(ae(ae({},f),{},{times:f.times+1,targetAlign:b,lastTop:S}))}},[f,e.current]),function(h){if(h==null){s();return}if(Ut.cancel(l.current),typeof h=="number")o(h);else if(h&&bt(h)==="object"){var v,p=h.align;"index"in h?v=h.index:v=t.findIndex(function(x){return a(x)===h.key});var g=h.offset,y=g===void 0?0:g;m({times:0,index:v,offset:y,originAlign:p})}}}var k3=d.forwardRef(function(e,t){var r=e.prefixCls,n=e.rtl,a=e.scrollOffset,i=e.scrollRange,o=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,f=e.containerSize,m=e.style,h=e.thumbStyle,v=e.showScrollBar,p=d.useState(!1),g=me(p,2),y=g[0],x=g[1],b=d.useState(null),S=me(b,2),w=S[0],E=S[1],C=d.useState(null),O=me(C,2),_=O[0],T=O[1],I=!n,N=d.useRef(),D=d.useRef(),k=d.useState(v),R=me(k,2),A=R[0],j=R[1],F=d.useRef(),M=function(){v===!0||v===!1||(clearTimeout(F.current),j(!0),F.current=setTimeout(function(){j(!1)},3e3))},V=i-f||0,K=f-u||0,L=d.useMemo(function(){if(a===0||V===0)return 0;var J=a/V;return J*K},[a,V,K]),B=function(z){z.stopPropagation(),z.preventDefault()},W=d.useRef({top:L,dragging:y,pageY:w,startTop:_});W.current={top:L,dragging:y,pageY:w,startTop:_};var H=function(z){x(!0),E(H_(z,c)),T(W.current.top),o(),z.stopPropagation(),z.preventDefault()};d.useEffect(function(){var J=function(re){re.preventDefault()},z=N.current,fe=D.current;return z.addEventListener("touchstart",J,{passive:!1}),fe.addEventListener("touchstart",H,{passive:!1}),function(){z.removeEventListener("touchstart",J),fe.removeEventListener("touchstart",H)}},[]);var U=d.useRef();U.current=V;var X=d.useRef();X.current=K,d.useEffect(function(){if(y){var J,z=function(re){var q=W.current,ne=q.dragging,he=q.pageY,xe=q.startTop;Ut.cancel(J);var ye=N.current.getBoundingClientRect(),pe=f/(c?ye.width:ye.height);if(ne){var be=(H_(re,c)-he)*pe,_e=xe;!I&&c?_e-=be:_e+=be;var $e=U.current,Be=X.current,Fe=Be?_e/Be:0,nt=Math.ceil(Fe*$e);nt=Math.max(nt,0),nt=Math.min(nt,$e),J=Ut(function(){l(nt,c)})}},fe=function(){x(!1),s()};return window.addEventListener("mousemove",z,{passive:!0}),window.addEventListener("touchmove",z,{passive:!0}),window.addEventListener("mouseup",fe,{passive:!0}),window.addEventListener("touchend",fe,{passive:!0}),function(){window.removeEventListener("mousemove",z),window.removeEventListener("touchmove",z),window.removeEventListener("mouseup",fe),window.removeEventListener("touchend",fe),Ut.cancel(J)}}},[y]),d.useEffect(function(){return M(),function(){clearTimeout(F.current)}},[a]),d.useImperativeHandle(t,function(){return{delayHidden:M}});var Y="".concat(r,"-scrollbar"),G={position:"absolute",visibility:A?null:"hidden"},Q={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return c?(Object.assign(G,{height:8,left:0,right:0,bottom:0}),Object.assign(Q,ee({height:"100%",width:u},I?"left":"right",L))):(Object.assign(G,ee({width:8,top:0,bottom:0},I?"right":"left",0)),Object.assign(Q,{width:"100%",height:u,top:L})),d.createElement("div",{ref:N,className:ce(Y,ee(ee(ee({},"".concat(Y,"-horizontal"),c),"".concat(Y,"-vertical"),!c),"".concat(Y,"-visible"),A)),style:ae(ae({},G),m),onMouseDown:B,onMouseMove:M},d.createElement("div",{ref:D,className:ce("".concat(Y,"-thumb"),ee({},"".concat(Y,"-thumb-moving"),y)),style:ae(ae({},Q),h),onMouseDown:H}))}),Rme=20;function R3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e/t*e;return isNaN(r)&&(r=0),r=Math.max(r,Rme),Math.floor(r)}var Ame=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Mme=[],Dme={overflowY:"auto",overflowAnchor:"none"};function jme(e,t){var r=e.prefixCls,n=r===void 0?"rc-virtual-list":r,a=e.className,i=e.height,o=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,f=e.children,m=e.itemKey,h=e.virtual,v=e.direction,p=e.scrollWidth,g=e.component,y=g===void 0?"div":g,x=e.onScroll,b=e.onVirtualScroll,S=e.onVisibleChange,w=e.innerProps,E=e.extraRender,C=e.styles,O=e.showScrollBar,_=O===void 0?"optional":O,T=Rt(e,Ame),I=d.useCallback(function(ke){return typeof m=="function"?m(ke):ke==null?void 0:ke[m]},[m]),N=Tme(I,null,null),D=me(N,4),k=D[0],R=D[1],A=D[2],j=D[3],F=!!(h!==!1&&i&&o),M=d.useMemo(function(){return Object.values(A.maps).reduce(function(ke,ze){return ke+ze},0)},[A.id,A.maps]),V=F&&u&&(Math.max(o*u.length,M)>i||!!p),K=v==="rtl",L=ce(n,ee({},"".concat(n,"-rtl"),K),a),B=u||Mme,W=d.useRef(),H=d.useRef(),U=d.useRef(),X=d.useState(0),Y=me(X,2),G=Y[0],Q=Y[1],J=d.useState(0),z=me(J,2),fe=z[0],te=z[1],re=d.useState(!1),q=me(re,2),ne=q[0],he=q[1],xe=function(){he(!0)},ye=function(){he(!1)},pe={getKey:I};function be(ke){Q(function(ze){var He;typeof ke=="function"?He=ke(ze):He=ke;var Ve=ft(He);return W.current.scrollTop=Ve,Ve})}var _e=d.useRef({start:0,end:B.length}),$e=d.useRef(),Be=Eme(B,I),Fe=me(Be,1),nt=Fe[0];$e.current=nt;var qe=d.useMemo(function(){if(!F)return{scrollHeight:void 0,start:0,end:B.length-1,offset:void 0};if(!V){var ke;return{scrollHeight:((ke=H.current)===null||ke===void 0?void 0:ke.offsetHeight)||0,start:0,end:B.length-1,offset:void 0}}for(var ze=0,He,Ve,et,ot=B.length,wt=0;wt=G&&He===void 0&&(He=wt,Ve=ze),zt>G+i&&et===void 0&&(et=wt),ze=zt}return He===void 0&&(He=0,Ve=0,et=Math.ceil(i/o)),et===void 0&&(et=B.length-1),et=Math.min(et+1,B.length-1),{scrollHeight:ze,start:He,end:et,offset:Ve}},[V,F,G,B,j,i]),Ge=qe.scrollHeight,Le=qe.start,Ne=qe.end,we=qe.offset;_e.current.start=Le,_e.current.end=Ne,d.useLayoutEffect(function(){var ke=A.getRecord();if(ke.size===1){var ze=Array.from(ke.keys())[0],He=ke.get(ze),Ve=B[Le];if(Ve&&He===void 0){var et=I(Ve);if(et===ze){var ot=A.get(ze),wt=ot-o;be(function(Lt){return Lt+wt})}}}A.resetRecord()},[Ge]);var je=d.useState({width:0,height:i}),Oe=me(je,2),Me=Oe[0],ge=Oe[1],Se=function(ze){ge({width:ze.offsetWidth,height:ze.offsetHeight})},Re=d.useRef(),We=d.useRef(),at=d.useMemo(function(){return R3(Me.width,p)},[Me.width,p]),yt=d.useMemo(function(){return R3(Me.height,Ge)},[Me.height,Ge]),tt=Ge-i,it=d.useRef(tt);it.current=tt;function ft(ke){var ze=ke;return Number.isNaN(it.current)||(ze=Math.min(ze,it.current)),ze=Math.max(ze,0),ze}var lt=G<=0,mt=G>=tt,Mt=fe<=0,Ft=fe>=p,ht=zH(lt,mt,Mt,Ft),St=function(){return{x:K?-fe:fe,y:G}},xt=d.useRef(St()),rt=qt(function(ke){if(b){var ze=ae(ae({},St()),ke);(xt.current.x!==ze.x||xt.current.y!==ze.y)&&(b(ze),xt.current=ze)}});function Ye(ke,ze){var He=ke;ze?(wi.flushSync(function(){te(He)}),rt()):be(He)}function Ze(ke){var ze=ke.currentTarget.scrollTop;ze!==G&&be(ze),x==null||x(ke),rt()}var ut=function(ze){var He=ze,Ve=p?p-Me.width:0;return He=Math.max(He,0),He=Math.min(He,Ve),He},Z=qt(function(ke,ze){ze?(wi.flushSync(function(){te(function(He){var Ve=He+(K?-ke:ke);return ut(Ve)})}),rt()):be(function(He){var Ve=He+ke;return Ve})}),ue=$me(F,lt,mt,Mt,Ft,!!p,Z),le=me(ue,2),ie=le[0],oe=le[1];Pme(F,W,function(ke,ze,He,Ve){var et=Ve;return ht(ke,ze,He)?!1:!et||!et._virtualHandled?(et&&(et._virtualHandled=!0),ie({preventDefault:function(){},deltaX:ke?ze:0,deltaY:ke?0:ze}),!0):!1}),Ime(V,W,function(ke){be(function(ze){return ze+ke})}),Gt(function(){function ke(He){var Ve=lt&&He.detail<0,et=mt&&He.detail>0;F&&!Ve&&!et&&He.preventDefault()}var ze=W.current;return ze.addEventListener("wheel",ie,{passive:!1}),ze.addEventListener("DOMMouseScroll",oe,{passive:!0}),ze.addEventListener("MozMousePixelScroll",ke,{passive:!1}),function(){ze.removeEventListener("wheel",ie),ze.removeEventListener("DOMMouseScroll",oe),ze.removeEventListener("MozMousePixelScroll",ke)}},[F,lt,mt]),Gt(function(){if(p){var ke=ut(fe);te(ke),rt({x:ke})}},[Me.width,p]);var de=function(){var ze,He;(ze=Re.current)===null||ze===void 0||ze.delayHidden(),(He=We.current)===null||He===void 0||He.delayHidden()},Ce=kme(W,B,A,o,I,function(){return R(!0)},be,de);d.useImperativeHandle(t,function(){return{nativeElement:U.current,getScrollInfo:St,scrollTo:function(ze){function He(Ve){return Ve&&bt(Ve)==="object"&&("left"in Ve||"top"in Ve)}He(ze)?(ze.left!==void 0&&te(ut(ze.left)),Ce(ze.top)):Ce(ze)}}}),Gt(function(){if(S){var ke=B.slice(Le,Ne+1);S(ke,B)}},[Le,Ne,B]);var Ae=_me(B,I,A,o),Ee=E==null?void 0:E({start:Le,end:Ne,virtual:V,offsetX:fe,offsetY:we,rtl:K,getSize:Ae}),Ie=wme(B,Le,Ne,p,fe,k,f,pe),Pe=null;i&&(Pe=ae(ee({},l?"height":"maxHeight",i),Dme),F&&(Pe.overflowY="hidden",p&&(Pe.overflowX="hidden"),ne&&(Pe.pointerEvents="none")));var Xe={};return K&&(Xe.dir="rtl"),d.createElement("div",Te({ref:U,style:ae(ae({},c),{},{position:"relative"}),className:L},Xe,T),d.createElement(Aa,{onResize:Se},d.createElement(y,{className:"".concat(n,"-holder"),style:Pe,ref:W,onScroll:Ze,onMouseEnter:de},d.createElement(BH,{prefixCls:n,height:Ge,offsetX:fe,offsetY:we,scrollWidth:p,onInnerResize:R,ref:H,innerProps:w,rtl:K,extra:Ee},Ie))),V&&Ge>i&&d.createElement(k3,{ref:Re,prefixCls:n,scrollOffset:G,scrollRange:Ge,rtl:K,onScroll:Ye,onStartMove:xe,onStopMove:ye,spinSize:yt,containerSize:Me.height,style:C==null?void 0:C.verticalScrollBar,thumbStyle:C==null?void 0:C.verticalScrollBarThumb,showScrollBar:_}),V&&p>Me.width&&d.createElement(k3,{ref:We,prefixCls:n,scrollOffset:fe,scrollRange:p,rtl:K,onScroll:Ye,onStartMove:xe,onStopMove:ye,spinSize:at,containerSize:Me.width,horizontal:!0,style:C==null?void 0:C.horizontalScrollBar,thumbStyle:C==null?void 0:C.horizontalScrollBarThumb,showScrollBar:_}))}var wS=d.forwardRef(jme);wS.displayName="List";function Fme(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Lme=["disabled","title","children","style","className"];function A3(e){return typeof e=="string"||typeof e=="number"}var Bme=function(t,r){var n=E0e(),a=n.prefixCls,i=n.id,o=n.open,s=n.multiple,l=n.mode,c=n.searchValue,u=n.toggleOpen,f=n.notFoundContent,m=n.onPopupScroll,h=d.useContext(nI),v=h.maxCount,p=h.flattenOptions,g=h.onActiveValue,y=h.defaultActiveFirstOption,x=h.onSelect,b=h.menuItemSelectedIcon,S=h.rawValues,w=h.fieldNames,E=h.virtual,C=h.direction,O=h.listHeight,_=h.listItemHeight,T=h.optionRender,I="".concat(a,"-item"),N=Md(function(){return p},[o,p],function(J,z){return z[0]&&J[1]!==z[1]}),D=d.useRef(null),k=d.useMemo(function(){return s&&L_(v)&&(S==null?void 0:S.size)>=v},[s,v,S==null?void 0:S.size]),R=function(z){z.preventDefault()},A=function(z){var fe;(fe=D.current)===null||fe===void 0||fe.scrollTo(typeof z=="number"?{index:z}:z)},j=d.useCallback(function(J){return l==="combobox"?!1:S.has(J)},[l,De(S).toString(),S.size]),F=function(z){for(var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,te=N.length,re=0;re1&&arguments[1]!==void 0?arguments[1]:!1;L(z);var te={source:fe?"keyboard":"mouse"},re=N[z];if(!re){g(null,-1,te);return}g(re.value,z,te)};d.useEffect(function(){B(y!==!1?F(0):-1)},[N.length,c]);var W=d.useCallback(function(J){return l==="combobox"?String(J).toLowerCase()===c.toLowerCase():S.has(J)},[l,c,De(S).toString(),S.size]);d.useEffect(function(){var J=setTimeout(function(){if(!s&&o&&S.size===1){var fe=Array.from(S)[0],te=N.findIndex(function(re){var q=re.data;return c?String(q.value).startsWith(c):q.value===fe});te!==-1&&(B(te),A(te))}});if(o){var z;(z=D.current)===null||z===void 0||z.scrollTo(void 0)}return function(){return clearTimeout(J)}},[o,c]);var H=function(z){z!==void 0&&x(z,{selected:!S.has(z)}),s||u(!1)};if(d.useImperativeHandle(r,function(){return{onKeyDown:function(z){var fe=z.which,te=z.ctrlKey;switch(fe){case Qe.N:case Qe.P:case Qe.UP:case Qe.DOWN:{var re=0;if(fe===Qe.UP?re=-1:fe===Qe.DOWN?re=1:Fme()&&te&&(fe===Qe.N?re=1:fe===Qe.P&&(re=-1)),re!==0){var q=F(K+re,re);A(q),B(q,!0)}break}case Qe.TAB:case Qe.ENTER:{var ne,he=N[K];he&&!(he!=null&&(ne=he.data)!==null&&ne!==void 0&&ne.disabled)&&!k?H(he.value):H(void 0),o&&z.preventDefault();break}case Qe.ESC:u(!1),o&&z.stopPropagation()}},onKeyUp:function(){},scrollTo:function(z){A(z)}}}),N.length===0)return d.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(I,"-empty"),onMouseDown:R},f);var U=Object.keys(w).map(function(J){return w[J]}),X=function(z){return z.label};function Y(J,z){var fe=J.group;return{role:fe?"presentation":"option",id:"".concat(i,"_list_").concat(z)}}var G=function(z){var fe=N[z];if(!fe)return null;var te=fe.data||{},re=te.value,q=fe.group,ne=Dn(te,!0),he=X(fe);return fe?d.createElement("div",Te({"aria-label":typeof he=="string"&&!q?he:null},ne,{key:z},Y(fe,z),{"aria-selected":W(re)}),re):null},Q={role:"listbox",id:"".concat(i,"_list")};return d.createElement(d.Fragment,null,E&&d.createElement("div",Te({},Q,{style:{height:0,width:0,overflow:"hidden"}}),G(K-1),G(K),G(K+1)),d.createElement(wS,{itemKey:"key",ref:D,data:N,height:O,itemHeight:_,fullHeight:!1,onMouseDown:R,onScroll:m,virtual:E,direction:C,innerProps:E?null:Q},function(J,z){var fe=J.group,te=J.groupOption,re=J.data,q=J.label,ne=J.value,he=re.key;if(fe){var xe,ye=(xe=re.title)!==null&&xe!==void 0?xe:A3(q)?q.toString():void 0;return d.createElement("div",{className:ce(I,"".concat(I,"-group"),re.className),title:ye},q!==void 0?q:he)}var pe=re.disabled,be=re.title;re.children;var _e=re.style,$e=re.className,Be=Rt(re,Lme),Fe=Er(Be,U),nt=j(ne),qe=pe||!nt&&k,Ge="".concat(I,"-option"),Le=ce(I,Ge,$e,ee(ee(ee(ee({},"".concat(Ge,"-grouped"),te),"".concat(Ge,"-active"),K===z&&!qe),"".concat(Ge,"-disabled"),qe),"".concat(Ge,"-selected"),nt)),Ne=X(J),we=!b||typeof b=="function"||nt,je=typeof Ne=="number"?Ne:Ne||ne,Oe=A3(je)?je.toString():void 0;return be!==void 0&&(Oe=be),d.createElement("div",Te({},Dn(Fe),E?{}:Y(J,z),{"aria-selected":W(ne),className:Le,title:Oe,onMouseMove:function(){K===z||qe||B(z)},onClick:function(){qe||H(ne)},style:_e}),d.createElement("div",{className:"".concat(Ge,"-content")},typeof T=="function"?T(J,{index:z}):je),d.isValidElement(b)||nt,we&&d.createElement(SS,{className:"".concat(I,"-option-state"),customizeIcon:b,customizeIconProps:{value:ne,disabled:qe,isSelected:nt}},nt?"✓":null))}))},zme=d.forwardRef(Bme);const Hme=function(e,t){var r=d.useRef({values:new Map,options:new Map}),n=d.useMemo(function(){var i=r.current,o=i.values,s=i.options,l=e.map(function(f){if(f.label===void 0){var m;return ae(ae({},f),{},{label:(m=o.get(f.value))===null||m===void 0?void 0:m.label})}return f}),c=new Map,u=new Map;return l.forEach(function(f){c.set(f.value,f),u.set(f.value,t.get(f.value)||s.get(f.value))}),r.current.values=c,r.current.options=u,l},[e,t]),a=d.useCallback(function(i){return t.get(i)||r.current.options.get(i)},[t]);return[n,a]};function S2(e,t){return jH(e).join("").toUpperCase().includes(t)}const Wme=function(e,t,r,n,a){return d.useMemo(function(){if(!r||n===!1)return e;var i=t.options,o=t.label,s=t.value,l=[],c=typeof n=="function",u=r.toUpperCase(),f=c?n:function(h,v){return a?S2(v[a],u):v[i]?S2(v[o!=="children"?o:"label"],u):S2(v[s],u)},m=c?function(h){return B_(h)}:function(h){return h};return e.forEach(function(h){if(h[i]){var v=f(r,m(h));if(v)l.push(h);else{var p=h[i].filter(function(g){return f(r,m(g))});p.length&&l.push(ae(ae({},h),{},ee({},i,p)))}return}f(r,m(h))&&l.push(h)}),l},[e,n,a,r,t])};var M3=0,Vme=Ma();function Ume(){var e;return Vme?(e=M3,M3+=1):e="TEST_OR_SSR",e}function Kme(e){var t=d.useState(),r=me(t,2),n=r[0],a=r[1];return d.useEffect(function(){a("rc_select_".concat(Ume()))},[]),e||n}var Gme=["children","value"],qme=["children"];function Xme(e){var t=e,r=t.key,n=t.props,a=n.children,i=n.value,o=Rt(n,Gme);return ae({key:r,value:i!==void 0?i:r,children:a},o)}function HH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ha(e).map(function(r,n){if(!d.isValidElement(r)||!r.type)return null;var a=r,i=a.type.isSelectOptGroup,o=a.key,s=a.props,l=s.children,c=Rt(s,qme);return t||!i?Xme(r):ae(ae({key:"__RC_SELECT_GRP__".concat(o===null?n:o,"__"),label:o},c),{},{options:HH(l)})}).filter(function(r){return r})}var Yme=function(t,r,n,a,i){return d.useMemo(function(){var o=t,s=!t;s&&(o=HH(r));var l=new Map,c=new Map,u=function(h,v,p){p&&typeof p=="string"&&h.set(v[p],v)},f=function m(h){for(var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,p=0;p0?rt(ut.options):ut.options}):ut})},je=d.useMemo(function(){return x?we(Ne):Ne},[Ne,x,Q]),Oe=d.useMemo(function(){return pme(je,{fieldNames:X,childrenAsData:H})},[je,X,H]),Me=function(Ye){var Ze=q(Ye);if(ye(Ze),V&&(Ze.length!==$e.length||Ze.some(function(ue,le){var ie;return((ie=$e[le])===null||ie===void 0?void 0:ie.value)!==(ue==null?void 0:ue.value)}))){var ut=M?Ze:Ze.map(function(ue){return ue.value}),Z=Ze.map(function(ue){return B_(Be(ue.value))});V(W?ut:ut[0],W?Z:Z[0])}},ge=d.useState(null),Se=me(ge,2),Re=Se[0],We=Se[1],at=d.useState(0),yt=me(at,2),tt=yt[0],it=yt[1],ft=O!==void 0?O:n!=="combobox",lt=d.useCallback(function(rt,Ye){var Ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ut=Ze.source,Z=ut===void 0?"keyboard":ut;it(Ye),o&&n==="combobox"&&rt!==null&&Z==="keyboard"&&We(String(rt))},[o,n]),mt=function(Ye,Ze,ut){var Z=function(){var Pe,Xe=Be(Ye);return[M?{label:Xe==null?void 0:Xe[X.label],value:Ye,key:(Pe=Xe==null?void 0:Xe.key)!==null&&Pe!==void 0?Pe:Ye}:Ye,B_(Xe)]};if(Ze&&h){var ue=Z(),le=me(ue,2),ie=le[0],oe=le[1];h(ie,oe)}else if(!Ze&&v&&ut!=="clear"){var de=Z(),Ce=me(de,2),Ae=Ce[0],Ee=Ce[1];v(Ae,Ee)}},Mt=D3(function(rt,Ye){var Ze,ut=W?Ye.selected:!0;ut?Ze=W?[].concat(De($e),[rt]):[rt]:Ze=$e.filter(function(Z){return Z.value!==rt}),Me(Ze),mt(rt,ut),n==="combobox"?We(""):(!z_||m)&&(J(""),We(""))}),Ft=function(Ye,Ze){Me(Ye);var ut=Ze.type,Z=Ze.values;(ut==="remove"||ut==="clear")&&Z.forEach(function(ue){mt(ue.value,!1,ut)})},ht=function(Ye,Ze){if(J(Ye),We(null),Ze.source==="submit"){var ut=(Ye||"").trim();if(ut){var Z=Array.from(new Set([].concat(De(nt),[ut])));Me(Z),mt(ut,!0),J("")}return}Ze.source!=="blur"&&(n==="combobox"&&Me(Ye),u==null||u(Ye))},St=function(Ye){var Ze=Ye;n!=="tags"&&(Ze=Ye.map(function(Z){var ue=te.get(Z);return ue==null?void 0:ue.value}).filter(function(Z){return Z!==void 0}));var ut=Array.from(new Set([].concat(De(nt),De(Ze))));Me(ut),ut.forEach(function(Z){mt(Z,!0)})},xt=d.useMemo(function(){var rt=T!==!1&&g!==!1;return ae(ae({},z),{},{flattenOptions:Oe,onActiveValue:lt,defaultActiveFirstOption:ft,onSelect:Mt,menuItemSelectedIcon:_,rawValues:nt,fieldNames:X,virtual:rt,direction:I,listHeight:D,listItemHeight:R,childrenAsData:H,maxCount:K,optionRender:E})},[K,z,Oe,lt,ft,Mt,_,nt,X,T,g,I,D,R,H,E]);return d.createElement(nI.Provider,{value:xt},d.createElement(bme,Te({},L,{id:B,prefixCls:i,ref:t,omitDomProps:Zme,mode:n,displayValues:Fe,onDisplayValuesChange:Ft,direction:I,searchValue:Q,onSearch:ht,autoClearSearchValue:m,onSearchSplit:St,dropdownMatchSelectWidth:g,OptionList:zme,emptyOptions:!Oe.length,activeValue:Re,activeDescendantId:"".concat(B,"_list_").concat(tt)})))}),oI=ehe;oI.Option=iI;oI.OptGroup=aI;function Uc(e,t,r){return ce({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}const Fd=(e,t)=>t||e,the=()=>{const[,e]=Ga(),[t]=Hi("Empty"),n=new lr(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return d.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(24 31.67)"},d.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),d.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),d.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),d.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),d.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),d.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),d.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},d.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),d.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},rhe=the,nhe=()=>{const[,e]=Ga(),[t]=Hi("Empty"),{colorFill:r,colorFillTertiary:n,colorFillQuaternary:a,colorBgContainer:i}=e,{borderColor:o,shadowColor:s,contentColor:l}=d.useMemo(()=>({borderColor:new lr(r).onBackground(i).toHexString(),shadowColor:new lr(n).onBackground(i).toHexString(),contentColor:new lr(a).onBackground(i).toHexString()}),[r,n,a,i]);return d.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},d.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),d.createElement("g",{fillRule:"nonzero",stroke:o},d.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),d.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},ahe=nhe,ihe=e=>{const{componentCls:t,margin:r,marginXS:n,marginXL:a,fontSize:i,lineHeight:o}=e;return{[t]:{marginInline:n,fontSize:i,lineHeight:o,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:r},"&-normal":{marginBlock:a,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},ohe=or("Empty",e=>{const{componentCls:t,controlHeightLG:r,calc:n}=e,a=Yt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:n(r).mul(.875).equal()});return ihe(a)});var she=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var t;const{className:r,rootClassName:n,prefixCls:a,image:i,description:o,children:s,imageStyle:l,style:c,classNames:u,styles:f}=e,m=she(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:h,direction:v,className:p,style:g,classNames:y,styles:x,image:b}=Fn("empty"),S=h("empty",a),[w,E,C]=ohe(S),[O]=Hi("Empty"),_=typeof o<"u"?o:O==null?void 0:O.description,T=typeof _=="string"?_:"empty",I=(t=i??b)!==null&&t!==void 0?t:WH;let N=null;return typeof I=="string"?N=d.createElement("img",{draggable:!1,alt:T,src:I}):N=I,w(d.createElement("div",Object.assign({className:ce(E,C,S,p,{[`${S}-normal`]:I===VH,[`${S}-rtl`]:v==="rtl"},r,n,y.root,u==null?void 0:u.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},x.root),g),f==null?void 0:f.root),c)},m),d.createElement("div",{className:ce(`${S}-image`,y.image,u==null?void 0:u.image),style:Object.assign(Object.assign(Object.assign({},l),x.image),f==null?void 0:f.image)},N),_&&d.createElement("div",{className:ce(`${S}-description`,y.description,u==null?void 0:u.description),style:Object.assign(Object.assign({},x.description),f==null?void 0:f.description)},_),s&&d.createElement("div",{className:ce(`${S}-footer`,y.footer,u==null?void 0:u.footer),style:Object.assign(Object.assign({},x.footer),f==null?void 0:f.footer)},s)))};sI.PRESENTED_IMAGE_DEFAULT=WH;sI.PRESENTED_IMAGE_SIMPLE=VH;const ku=sI,lhe=e=>{const{componentName:t}=e,{getPrefixCls:r}=d.useContext(Nt),n=r("empty");switch(t){case"Table":case"List":return ve.createElement(ku,{image:ku.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ve.createElement(ku,{image:ku.PRESENTED_IMAGE_SIMPLE,className:`${n}-small`});case"Table.filter":return null;default:return ve.createElement(ku,null)}},UH=lhe,che=(e,t,r)=>{var n,a;const{variant:i,[e]:o}=d.useContext(Nt),s=d.useContext(fH),l=o==null?void 0:o.variant;let c;typeof t<"u"?c=t:r===!1?c="borderless":c=(a=(n=s??l)!==null&&n!==void 0?n:i)!==null&&a!==void 0?a:"outlined";const u=coe.includes(c);return[c,u]},Ld=che,uhe=e=>{const r={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},r),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},r),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},r),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},r),{points:["br","tr"],offset:[0,-4]})}};function dhe(e,t){return e||uhe(t)}const j3=e=>{const{optionHeight:t,optionFontSize:r,optionLineHeight:n,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:n,boxSizing:"border-box"}},fhe=e=>{const{antCls:t,componentCls:r}=e,n=`${r}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${r}-dropdown-placement-`,l=`${n}-option-selected`;return[{[`${r}-dropdown`]:Object.assign(Object.assign({},ur(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` + ${a}${s}bottomLeft, + ${i}${s}bottomLeft + `]:{animationName:sS},[` + ${a}${s}topLeft, + ${i}${s}topLeft, + ${a}${s}topRight, + ${i}${s}topRight + `]:{animationName:cS},[`${o}${s}bottomLeft`]:{animationName:lS},[` + ${o}${s}topLeft, + ${o}${s}topRight + `]:{animationName:uS},"&-hidden":{display:"none"},[n]:Object.assign(Object.assign({},j3(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Uo),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${n}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${n}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${n}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${n}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},j3(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},al(e,"slide-up"),al(e,"slide-down"),x0(e,"move-up"),x0(e,"move-down")]},mhe=fhe,KH=e=>{const{multipleSelectItemHeight:t,paddingXXS:r,lineWidth:n,INTERNAL_FIXED_ITEM_MARGIN:a}=e,i=e.max(e.calc(r).sub(n).equal(),0),o=e.max(e.calc(i).sub(a).equal(),0);return{basePadding:i,containerPadding:o,itemHeight:se(t),itemLineHeight:se(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},hhe=e=>{const{multipleSelectItemHeight:t,selectHeight:r,lineWidth:n}=e;return e.calc(r).sub(t).div(2).sub(n).equal()},GH=e=>{const{componentCls:t,iconCls:r,borderRadiusSM:n,motionDurationSlow:a,paddingXS:i,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:n,cursor:"default",transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:o,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},V0()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},phe=(e,t)=>{const{componentCls:r,INTERNAL_FIXED_ITEM_MARGIN:n}=e,a=`${r}-selection-overflow`,i=e.multipleSelectItemHeight,o=hhe(e),s=t?`${r}-${t}`:"",l=KH(e);return{[`${r}-multiple${s}`]:Object.assign(Object.assign({},GH(e)),{[`${r}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${r}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${se(n)} 0`,lineHeight:se(i),visibility:"hidden",content:'"\\a0"'}},[`${r}-selection-item`]:{height:l.itemHeight,lineHeight:se(l.itemLineHeight)},[`${r}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:se(i),marginBlock:n}},[`${r}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${a}-item + ${a}-item, + ${r}-prefix + ${r}-selection-wrap + `]:{[`${r}-selection-search`]:{marginInlineStart:0},[`${r}-selection-placeholder`]:{insetInlineStart:0}},[`${a}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:n},[`${r}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(o).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:se(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${r}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function w2(e,t){const{componentCls:r}=e,n=t?`${r}-${t}`:"",a={[`${r}-multiple${n}`]:{fontSize:e.fontSize,[`${r}-selector`]:{[`${r}-show-search&`]:{cursor:"text"}},[` + &${r}-show-arrow ${r}-selector, + &${r}-allow-clear ${r}-selector + `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[phe(e,t),a]}const vhe=e=>{const{componentCls:t}=e,r=Yt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),n=Yt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[w2(e),w2(r,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},w2(n,"lg")]},ghe=vhe;function C2(e,t){const{componentCls:r,inputPaddingHorizontalBase:n,borderRadius:a}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),o=t?`${r}-${t}`:"";return{[`${r}-single${o}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${r}-selector`]:Object.assign(Object.assign({},ur(e,!0)),{display:"flex",borderRadius:a,flex:"1 1 auto",[`${r}-selection-wrap:after`]:{lineHeight:se(i)},[`${r}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` + ${r}-selection-item, + ${r}-selection-placeholder + `]:{display:"block",padding:0,lineHeight:se(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${r}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${r}-selection-item:empty:after`,`${r}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` + &${r}-show-arrow ${r}-selection-item, + &${r}-show-arrow ${r}-selection-search, + &${r}-show-arrow ${r}-selection-placeholder + `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${r}-open ${r}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${r}-customize-input)`]:{[`${r}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${se(n)}`,[`${r}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:se(i)}}},[`&${r}-customize-input`]:{[`${r}-selector`]:{"&:after":{display:"none"},[`${r}-selection-search`]:{position:"static",width:"100%"},[`${r}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${se(n)}`,"&:after":{display:"none"}}}}}}}function yhe(e){const{componentCls:t}=e,r=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[C2(e),C2(Yt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${se(r)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(r).add(e.calc(e.fontSize).mul(1.5)).equal()},[` + &${t}-show-arrow ${t}-selection-item, + &${t}-show-arrow ${t}-selection-placeholder + `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},C2(Yt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const xhe=e=>{const{fontSize:t,lineHeight:r,lineWidth:n,controlHeight:a,controlHeightSM:i,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:f,controlItemBgActive:m,controlItemBgHover:h,colorBgContainer:v,colorFillSecondary:p,colorBgContainerDisabled:g,colorTextDisabled:y,colorPrimaryHover:x,colorPrimary:b,controlOutline:S}=e,w=s*2,E=n*2,C=Math.min(a-w,a-E),O=Math.min(i-w,i-E),_=Math.min(o-w,o-E);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:m,optionActiveBg:h,optionPadding:`${(a-t*r)/2}px ${l}px`,optionFontSize:t,optionLineHeight:r,optionHeight:a,selectorBg:v,clearBg:v,singleItemHeightLG:o,multipleItemBg:p,multipleItemBorderColor:"transparent",multipleItemHeight:C,multipleItemHeightSM:O,multipleItemHeightLG:_,multipleSelectorBgDisabled:g,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:x,activeBorderColor:b,activeOutlineColor:S,selectAffixPadding:s}},qH=(e,t)=>{const{componentCls:r,antCls:n,controlOutlineWidth:a}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{border:`${se(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:t.hoverBorderHover},[`${r}-focused& ${r}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${se(a)} ${t.activeOutlineColor}`,outline:0},[`${r}-prefix`]:{color:t.color}}}},F3=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},qH(e,t))}),bhe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},qH(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),F3(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),F3(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${se(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),XH=(e,t)=>{const{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{background:t.bg,border:`${se(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{background:t.hoverBg},[`${r}-focused& ${r}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},L3=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},XH(e,t))}),She=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},XH(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),L3(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),L3(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${se(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),whe=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${se(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${se(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),YH=(e,t)=>{const{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{borderWidth:`${se(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,background:e.selectorBg,borderRadius:0},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:`transparent transparent ${t.hoverBorderHover} transparent`},[`${r}-focused& ${r}-selector`]:{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0},[`${r}-prefix`]:{color:t.color}}}},B3=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},YH(e,t))}),Che=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},YH(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),B3(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),B3(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${se(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Ehe=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},bhe(e)),She(e)),whe(e)),Che(e))}),$he=Ehe,_he=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Ohe=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},The=e=>{const{antCls:t,componentCls:r,inputPaddingHorizontalBase:n,iconCls:a}=e,i={[`${r}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[r]:Object.assign(Object.assign({},ur(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${r}-customize-input) ${r}-selector`]:Object.assign(Object.assign({},_he(e)),Ohe(e)),[`${r}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Uo),{[`> ${t}-typography`]:{display:"inline"}}),[`${r}-selection-placeholder`]:Object.assign(Object.assign({},Uo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${r}-arrow`]:Object.assign(Object.assign({},V0()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[a]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${r}-suffix)`]:{pointerEvents:"auto"}},[`${r}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${r}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${r}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${r}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i}),[`${r}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${r}-has-feedback`]:{[`${r}-clear`]:{insetInlineEnd:e.calc(n).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Phe=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},The(e),yhe(e),ghe(e),mhe(e),{[`${t}-rtl`]:{direction:"rtl"}},X0(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Ihe=or("Select",(e,{rootPrefixCls:t})=>{const r=Yt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Phe(r),$he(r)]},xhe,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Nhe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const khe=Nhe;var Rhe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:khe}))},Ahe=d.forwardRef(Rhe);const lI=Ahe;var Mhe={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"};const Dhe=Mhe;var jhe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:Dhe}))},Fhe=d.forwardRef(jhe);const cI=Fhe;var Lhe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};const Bhe=Lhe;var zhe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:Bhe}))},Hhe=d.forwardRef(zhe);const uI=Hhe;function QH({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:r,removeIcon:n,loading:a,multiple:i,hasFeedback:o,prefixCls:s,showSuffixIcon:l,feedbackIcon:c,showArrow:u,componentName:f}){const m=t??d.createElement(jd,null),h=y=>e===null&&!o&&!u?null:d.createElement(d.Fragment,null,l!==!1&&y,o&&c);let v=null;if(e!==void 0)v=h(e);else if(a)v=h(d.createElement(Wc,{spin:!0}));else{const y=`${s}-suffix`;v=({open:x,showSearch:b})=>h(x&&b?d.createElement(uI,{className:y}):d.createElement(cI,{className:y}))}let p=null;r!==void 0?p=r:i?p=d.createElement(lI,null):p=null;let g=null;return n!==void 0?g=n:g=d.createElement(cu,null),{clearIcon:m,suffixIcon:v,itemIcon:p,removeIcon:g}}function Whe(e){return ve.useMemo(()=>{if(e)return(...t)=>ve.createElement(ol,{space:!0},e.apply(void 0,t))},[e])}function Vhe(e,t){return t!==void 0?t:e!==null}var Uhe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var r,n,a,i,o;const{prefixCls:s,bordered:l,className:c,rootClassName:u,getPopupContainer:f,popupClassName:m,dropdownClassName:h,listHeight:v=256,placement:p,listItemHeight:g,size:y,disabled:x,notFoundContent:b,status:S,builtinPlacements:w,dropdownMatchSelectWidth:E,popupMatchSelectWidth:C,direction:O,style:_,allowClear:T,variant:I,dropdownStyle:N,transitionName:D,tagRender:k,maxCount:R,prefix:A,dropdownRender:j,popupRender:F,onDropdownVisibleChange:M,onOpenChange:V,styles:K,classNames:L}=e,B=Uhe(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:W,getPrefixCls:H,renderEmpty:U,direction:X,virtual:Y,popupMatchSelectWidth:G,popupOverflow:Q}=d.useContext(Nt),{showSearch:J,style:z,styles:fe,className:te,classNames:re}=Fn("select"),[,q]=Ga(),ne=g??(q==null?void 0:q.controlHeight),he=H("select",s),xe=H(),ye=O??X,{compactSize:pe,compactItemClassnames:be}=cl(he,ye),[_e,$e]=Ld("select",I,l),Be=gn(he),[Fe,nt,qe]=Ihe(he,Be),Ge=d.useMemo(()=>{const{mode:ut}=e;if(ut!=="combobox")return ut===ZH?"combobox":ut},[e.mode]),Le=Ge==="multiple"||Ge==="tags",Ne=Vhe(e.suffixIcon,e.showArrow),we=(r=C??E)!==null&&r!==void 0?r:G,je=((n=K==null?void 0:K.popup)===null||n===void 0?void 0:n.root)||((a=fe.popup)===null||a===void 0?void 0:a.root)||N,Oe=Whe(F||j),Me=V||M,{status:ge,hasFeedback:Se,isFormItemInput:Re,feedbackIcon:We}=d.useContext(ga),at=Fd(ge,S);let yt;b!==void 0?yt=b:Ge==="combobox"?yt=null:yt=(U==null?void 0:U("Select"))||d.createElement(UH,{componentName:"Select"});const{suffixIcon:tt,itemIcon:it,removeIcon:ft,clearIcon:lt}=QH(Object.assign(Object.assign({},B),{multiple:Le,hasFeedback:Se,feedbackIcon:We,showSuffixIcon:Ne,prefixCls:he,componentName:"Select"})),mt=T===!0?{clearIcon:lt}:T,Mt=Er(B,["suffixIcon","itemIcon"]),Ft=ce(((i=L==null?void 0:L.popup)===null||i===void 0?void 0:i.root)||((o=re==null?void 0:re.popup)===null||o===void 0?void 0:o.root)||m||h,{[`${he}-dropdown-${ye}`]:ye==="rtl"},u,re.root,L==null?void 0:L.root,qe,Be,nt),ht=ba(ut=>{var Z;return(Z=y??pe)!==null&&Z!==void 0?Z:ut}),St=d.useContext(Wi),xt=x??St,rt=ce({[`${he}-lg`]:ht==="large",[`${he}-sm`]:ht==="small",[`${he}-rtl`]:ye==="rtl",[`${he}-${_e}`]:$e,[`${he}-in-form-item`]:Re},Uc(he,at,Se),be,te,c,re.root,L==null?void 0:L.root,u,qe,Be,nt),Ye=d.useMemo(()=>p!==void 0?p:ye==="rtl"?"bottomRight":"bottomLeft",[p,ye]),[Ze]=uu("SelectLike",je==null?void 0:je.zIndex);return Fe(d.createElement(oI,Object.assign({ref:t,virtual:Y,showSearch:J},Mt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},fe.root),K==null?void 0:K.root),z),_),dropdownMatchSelectWidth:we,transitionName:Vc(xe,"slide-up",D),builtinPlacements:dhe(w,Q),listHeight:v,listItemHeight:ne,mode:Ge,prefixCls:he,placement:Ye,direction:ye,prefix:A,suffixIcon:tt,menuItemSelectedIcon:it,removeIcon:ft,allowClear:mt,notFoundContent:yt,className:rt,getPopupContainer:f||W,dropdownClassName:Ft,disabled:xt,dropdownStyle:Object.assign(Object.assign({},je),{zIndex:Ze}),maxCount:Le?R:void 0,tagRender:Le?k:void 0,dropdownRender:Oe,onDropdownVisibleChange:Me})))},J0=d.forwardRef(Khe),Ghe=xv(J0,"dropdownAlign");J0.SECRET_COMBOBOX_MODE_DO_NOT_USE=ZH;J0.Option=iI;J0.OptGroup=aI;J0._InternalPanelDoNotUseOrYouWillBeFired=Ghe;const ea=J0,{Option:z3}=ea;function H3(e){return(e==null?void 0:e.type)&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const qhe=(e,t)=>{var r,n;const{prefixCls:a,className:i,popupClassName:o,dropdownClassName:s,children:l,dataSource:c,dropdownStyle:u,dropdownRender:f,popupRender:m,onDropdownVisibleChange:h,onOpenChange:v,styles:p,classNames:g}=e,y=ha(l),x=((r=p==null?void 0:p.popup)===null||r===void 0?void 0:r.root)||u,b=((n=g==null?void 0:g.popup)===null||n===void 0?void 0:n.root)||o||s,S=m||f,w=v||h;let E;y.length===1&&d.isValidElement(y[0])&&!H3(y[0])&&([E]=y);const C=E?()=>E:void 0;let O;y.length&&H3(y[0])?O=l:O=c?c.map(N=>{if(d.isValidElement(N))return N;switch(typeof N){case"string":return d.createElement(z3,{key:N,value:N},N);case"object":{const{value:D}=N;return d.createElement(z3,{key:D,value:D},N.text)}default:return}}):[];const{getPrefixCls:_}=d.useContext(Nt),T=_("select",a),[I]=uu("SelectLike",x==null?void 0:x.zIndex);return d.createElement(ea,Object.assign({ref:t,suffixIcon:null},Er(e,["dataSource","dropdownClassName","popupClassName"]),{prefixCls:T,classNames:{popup:{root:b},root:g==null?void 0:g.root},styles:{popup:{root:Object.assign(Object.assign({},x),{zIndex:I})},root:p==null?void 0:p.root},className:ce(`${T}-auto-complete`,i),mode:ea.SECRET_COMBOBOX_MODE_DO_NOT_USE,popupRender:S,onOpenChange:w,getInputElement:C}),O)},Xhe=d.forwardRef(qhe),JH=Xhe,{Option:Yhe}=ea,Qhe=xv(JH,"dropdownAlign",e=>Er(e,["visible"])),dI=JH;dI.Option=Yhe;dI._InternalPanelDoNotUseOrYouWillBeFired=Qhe;const Zhe=dI,eW=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)},tW=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)},pd=["xxl","xl","lg","md","sm","xs"],Jhe=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)`}),epe=e=>{const t=e,r=[].concat(pd).reverse();return r.forEach((n,a)=>{const i=n.toUpperCase(),o=`screen${i}Min`,s=`screen${i}`;if(!(t[o]<=t[s]))throw new Error(`${o}<=${s} fails : !(${t[o]}<=${t[s]})`);if(a{if(t){for(const r of pd)if(e[r]&&(t==null?void 0:t[r])!==void 0)return t[r]}},tpe=()=>{const[,e]=Ga(),t=Jhe(epe(e));return ve.useMemo(()=>{const r=new Map;let n=-1,a={};return{responsiveMap:t,matchHandlers:{},dispatch(i){return a=i,r.forEach(o=>o(a)),r.size>=1},subscribe(i){return r.size||this.register(),n+=1,r.set(n,i),i(a),n},unsubscribe(i){r.delete(i),r.size||this.unregister()},register(){Object.entries(t).forEach(([i,o])=>{const s=({matches:c})=>{this.dispatch(Object.assign(Object.assign({},a),{[i]:c}))},l=window.matchMedia(o);eW(l,s),this.matchHandlers[o]={mql:l,listener:s},s(l)})},unregister(){Object.values(t).forEach(i=>{const o=this.matchHandlers[i];tW(o==null?void 0:o.mql,o==null?void 0:o.listener)}),r.clear()}}},[t])};function wv(e=!0,t={}){const r=d.useRef(t),[,n]=HP(),a=tpe();return Gt(()=>{const i=a.subscribe(o=>{r.current=o,e&&n()});return()=>a.unsubscribe(i)},[]),r.current}const rpe=d.createContext({}),W_=rpe,npe=e=>{const{antCls:t,componentCls:r,iconCls:n,avatarBg:a,avatarColor:i,containerSize:o,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:f,iconFontSize:m,iconFontSizeLG:h,iconFontSizeSM:v,borderRadius:p,borderRadiusLG:g,borderRadiusSM:y,lineWidth:x,lineType:b}=e,S=(w,E,C,O)=>({width:w,height:w,borderRadius:"50%",fontSize:E,[`&${r}-square`]:{borderRadius:O},[`&${r}-icon`]:{fontSize:C,[`> ${n}`]:{margin:0}}});return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},ur(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:a,border:`${se(x)} ${b} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),S(o,c,m,p)),{"&-lg":Object.assign({},S(s,u,h,g)),"&-sm":Object.assign({},S(l,f,v,y)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},ape=e=>{const{componentCls:t,groupBorderColor:r,groupOverlapping:n,groupSpace:a}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:r},"> *:not(:first-child)":{marginInlineStart:n}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:a}}}},ipe=e=>{const{controlHeight:t,controlHeightLG:r,controlHeightSM:n,fontSize:a,fontSizeLG:i,fontSizeXL:o,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:r,containerSizeSM:n,textFontSize:a,textFontSizeLG:a,textFontSizeSM:a,iconFontSize:Math.round((i+o)/2),iconFontSizeLG:s,iconFontSizeSM:a,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}},nW=or("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:r}=e,n=Yt(e,{avatarBg:r,avatarColor:t});return[npe(n),ape(n)]},ipe);var ope=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:r,shape:n,size:a,src:i,srcSet:o,icon:s,className:l,rootClassName:c,style:u,alt:f,draggable:m,children:h,crossOrigin:v,gap:p=4,onError:g}=e,y=ope(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","style","alt","draggable","children","crossOrigin","gap","onError"]),[x,b]=d.useState(1),[S,w]=d.useState(!1),[E,C]=d.useState(!0),O=d.useRef(null),_=d.useRef(null),T=xa(t,O),{getPrefixCls:I,avatar:N}=d.useContext(Nt),D=d.useContext(W_),k=()=>{if(!_.current||!O.current)return;const J=_.current.offsetWidth,z=O.current.offsetWidth;J!==0&&z!==0&&p*2{w(!0)},[]),d.useEffect(()=>{C(!0),b(1)},[i]),d.useEffect(k,[p]);const R=()=>{(g==null?void 0:g())!==!1&&C(!1)},A=ba(J=>{var z,fe;return(fe=(z=a??(D==null?void 0:D.size))!==null&&z!==void 0?z:J)!==null&&fe!==void 0?fe:"default"}),j=Object.keys(typeof A=="object"?A||{}:{}).some(J=>["xs","sm","md","lg","xl","xxl"].includes(J)),F=wv(j),M=d.useMemo(()=>{if(typeof A!="object")return{};const J=pd.find(fe=>F[fe]),z=A[J];return z?{width:z,height:z,fontSize:z&&(s||h)?z/2:18}:{}},[F,A,s,h]),V=I("avatar",r),K=gn(V),[L,B,W]=nW(V,K),H=ce({[`${V}-lg`]:A==="large",[`${V}-sm`]:A==="small"}),U=d.isValidElement(i),X=n||(D==null?void 0:D.shape)||"circle",Y=ce(V,H,N==null?void 0:N.className,`${V}-${X}`,{[`${V}-image`]:U||i&&E,[`${V}-icon`]:!!s},W,K,l,c,B),G=typeof A=="number"?{width:A,height:A,fontSize:s?A/2:18}:{};let Q;if(typeof i=="string"&&E)Q=d.createElement("img",{src:i,draggable:m,srcSet:o,onError:R,alt:f,crossOrigin:v});else if(U)Q=i;else if(s)Q=s;else if(S||x!==1){const J=`scale(${x})`,z={msTransform:J,WebkitTransform:J,transform:J};Q=d.createElement(Aa,{onResize:k},d.createElement("span",{className:`${V}-string`,ref:_,style:z},h))}else Q=d.createElement("span",{className:`${V}-string`,style:{opacity:0},ref:_},h);return L(d.createElement("span",Object.assign({},y,{style:Object.assign(Object.assign(Object.assign(Object.assign({},G),M),N==null?void 0:N.style),u),className:Y,ref:T}),Q))}),aW=spe,b0=e=>e?typeof e=="function"?e():e:null;function fI(e){var t=e.children,r=e.prefixCls,n=e.id,a=e.overlayInnerStyle,i=e.bodyClassName,o=e.className,s=e.style;return d.createElement("div",{className:ce("".concat(r,"-content"),o),style:s},d.createElement("div",{className:ce("".concat(r,"-inner"),i),id:n,role:"tooltip",style:a},typeof t=="function"?t():t))}var cf={shiftX:64,adjustY:1},uf={adjustX:1,shiftY:!0},So=[0,0],lpe={left:{points:["cr","cl"],overflow:uf,offset:[-4,0],targetOffset:So},right:{points:["cl","cr"],overflow:uf,offset:[4,0],targetOffset:So},top:{points:["bc","tc"],overflow:cf,offset:[0,-4],targetOffset:So},bottom:{points:["tc","bc"],overflow:cf,offset:[0,4],targetOffset:So},topLeft:{points:["bl","tl"],overflow:cf,offset:[0,-4],targetOffset:So},leftTop:{points:["tr","tl"],overflow:uf,offset:[-4,0],targetOffset:So},topRight:{points:["br","tr"],overflow:cf,offset:[0,-4],targetOffset:So},rightTop:{points:["tl","tr"],overflow:uf,offset:[4,0],targetOffset:So},bottomRight:{points:["tr","br"],overflow:cf,offset:[0,4],targetOffset:So},rightBottom:{points:["bl","br"],overflow:uf,offset:[4,0],targetOffset:So},bottomLeft:{points:["tl","bl"],overflow:cf,offset:[0,4],targetOffset:So},leftBottom:{points:["br","bl"],overflow:uf,offset:[-4,0],targetOffset:So}},cpe=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],upe=function(t,r){var n=t.overlayClassName,a=t.trigger,i=a===void 0?["hover"]:a,o=t.mouseEnterDelay,s=o===void 0?0:o,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,h=t.children,v=t.onVisibleChange,p=t.afterVisibleChange,g=t.transitionName,y=t.animation,x=t.motion,b=t.placement,S=b===void 0?"right":b,w=t.align,E=w===void 0?{}:w,C=t.destroyTooltipOnHide,O=C===void 0?!1:C,_=t.defaultVisible,T=t.getTooltipContainer,I=t.overlayInnerStyle;t.arrowContent;var N=t.overlay,D=t.id,k=t.showArrow,R=k===void 0?!0:k,A=t.classNames,j=t.styles,F=Rt(t,cpe),M=gS(D),V=d.useRef(null);d.useImperativeHandle(r,function(){return V.current});var K=ae({},F);"visible"in t&&(K.popupVisible=t.visible);var L=function(){return d.createElement(fI,{key:"content",prefixCls:m,id:M,bodyClassName:A==null?void 0:A.body,overlayInnerStyle:ae(ae({},I),j==null?void 0:j.body)},N)},B=function(){var H=d.Children.only(h),U=(H==null?void 0:H.props)||{},X=ae(ae({},U),{},{"aria-describedby":N?M:null});return d.cloneElement(h,X)};return d.createElement(Sv,Te({popupClassName:ce(n,A==null?void 0:A.root),prefixCls:m,popup:L,action:i,builtinPlacements:lpe,popupPlacement:S,ref:V,popupAlign:E,getPopupContainer:T,onPopupVisibleChange:v,afterPopupVisibleChange:p,popupTransitionName:g,popupAnimation:y,popupMotion:x,defaultPopupVisible:_,autoDestroy:O,mouseLeaveDelay:c,popupStyle:ae(ae({},u),j==null?void 0:j.root),mouseEnterDelay:s,arrow:R},K),B())};const dpe=d.forwardRef(upe);function CS(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,a=t/2,i=0,o=a,s=n*1/Math.sqrt(2),l=a-n*(1-1/Math.sqrt(2)),c=a-r*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*a-c,m=u,h=2*a-s,v=l,p=2*a-i,g=o,y=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),x=n*(Math.sqrt(2)-1),b=`polygon(${x}px 100%, 50% ${x}px, ${2*a-x}px 100%, ${x}px 100%)`,S=`path('M ${i} ${o} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${r} ${r} 0 0 1 ${f} ${m} L ${h} ${v} A ${n} ${n} 0 0 0 ${p} ${g} Z')`;return{arrowShadowWidth:y,arrowPath:S,arrowPolygon:b}}const iW=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:a,arrowPath:i,arrowShadowWidth:o,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:o,height:o,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${se(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},oW=8;function ES(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?oW:n}}function qg(e,t){return e?t:{}}function mI(e,t,r){const{componentCls:n,boxShadowPopoverArrow:a,arrowOffsetVertical:i,arrowOffsetHorizontal:o}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=r||{};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},iW(e,t,a)),{"&:before":{background:t}})]},qg(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":o,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${se(o)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),qg(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":o,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${se(o)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),qg(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},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:i},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:i}})),qg(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},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:i},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:i}}))}}function fpe(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const a=n&&typeof n=="object"?n:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+r,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+r,i.shiftX=!0,i.adjustX=!0;break}const o=Object.assign(Object.assign({},i),a);return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}const W3={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},mpe={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},hpe=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function sW(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:a,borderRadius:i,visibleFirst:o}=e,s=t/2,l={},c=ES({contentRadius:i,limitVerticalRadius:!0});return Object.keys(W3).forEach(u=>{const f=n&&mpe[u]||W3[u],m=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(l[u]=m,hpe.has(u)&&(m.autoArrow=!1),u){case"top":case"topLeft":case"topRight":m.offset[1]=-s-a;break;case"bottom":case"bottomLeft":case"bottomRight":m.offset[1]=s+a;break;case"left":case"leftTop":case"leftBottom":m.offset[0]=-s-a;break;case"right":case"rightTop":case"rightBottom":m.offset[0]=s+a;break}if(n)switch(u){case"topLeft":case"bottomLeft":m.offset[0]=-c.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":m.offset[0]=c.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":m.offset[1]=-c.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":m.offset[1]=c.arrowOffsetHorizontal*2-s;break}m.overflow=fpe(u,c,t,r),o&&(m.htmlRegion="visibleFirst")}),l}const ppe=e=>{const{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:a,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:m,sizePopupArrow:h}=e,v=t(o).add(h).add(m).equal(),p=t(o).mul(2).add(h).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},ur(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${r}-inner`]:{minWidth:p,minHeight:l,padding:`${se(e.calc(u).div(2).equal())} ${se(f)}`,color:`var(--ant-tooltip-color, ${a})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:v},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(o,oW)}},[`${r}-content`]:{position:"relative"}}),c9(e,(g,{darkColor:y})=>({[`&${r}-${g}`]:{[`${r}-inner`]:{backgroundColor:y},[`${r}-arrow`]:{"--antd-arrow-background-color":y}}}))),{"&-rtl":{direction:"rtl"}})},mI(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},vpe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},ES({contentRadius:e.borderRadius,limitVerticalRadius:!0})),CS(Yt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),lW=(e,t=!0)=>or("Tooltip",n=>{const{borderRadius:a,colorTextLightSolid:i,colorBgSpotlight:o}=n,s=Yt(n,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:a,tooltipBg:o});return[ppe(s),pv(n,"zoom-big-fast")]},vpe,{resetStyle:!1,injectStyle:t})(e),gpe=Hc.map(e=>`${e}-inverse`),ype=["success","processing","error","default","warning"];function cW(e,t=!0){return t?[].concat(De(gpe),De(Hc)).includes(e):Hc.includes(e)}function xpe(e){return ype.includes(e)}function uW(e,t){const r=cW(t),n=ce({[`${e}-${t}`]:t&&r}),a={},i={},o=Nue(t).toRgb(),l=(.299*o.r+.587*o.g+.114*o.b)/255<.5?"#FFF":"#000";return t&&!r&&(a.background=t,a["--ant-tooltip-color"]=l,i["--antd-arrow-background-color"]=t),{className:n,overlayStyle:a,arrowStyle:i}}const bpe=e=>{const{prefixCls:t,className:r,placement:n="top",title:a,color:i,overlayInnerStyle:o}=e,{getPrefixCls:s}=d.useContext(Nt),l=s("tooltip",t),[c,u,f]=lW(l),m=uW(l,i),h=m.arrowStyle,v=Object.assign(Object.assign({},o),m.overlayStyle),p=ce(u,f,l,`${l}-pure`,`${l}-placement-${n}`,r,m.className);return c(d.createElement("div",{className:p,style:h},d.createElement("div",{className:`${l}-arrow`}),d.createElement(fI,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:v}),a)))},Spe=bpe;var wpe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var r,n;const{prefixCls:a,openClassName:i,getTooltipContainer:o,color:s,overlayInnerStyle:l,children:c,afterOpenChange:u,afterVisibleChange:f,destroyTooltipOnHide:m,destroyOnHidden:h,arrow:v=!0,title:p,overlay:g,builtinPlacements:y,arrowPointAtCenter:x=!1,autoAdjustOverflow:b=!0,motion:S,getPopupContainer:w,placement:E="top",mouseEnterDelay:C=.1,mouseLeaveDelay:O=.1,overlayStyle:_,rootClassName:T,overlayClassName:I,styles:N,classNames:D}=e,k=wpe(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),R=!!v,[,A]=Ga(),{getPopupContainer:j,getPrefixCls:F,direction:M,className:V,style:K,classNames:L,styles:B}=Fn("tooltip"),W=lu(),H=d.useRef(null),U=()=>{var Ne;(Ne=H.current)===null||Ne===void 0||Ne.forceAlign()};d.useImperativeHandle(t,()=>{var Ne,we;return{forceAlign:U,forcePopupAlign:()=>{W.deprecated(!1,"forcePopupAlign","forceAlign"),U()},nativeElement:(Ne=H.current)===null||Ne===void 0?void 0:Ne.nativeElement,popupElement:(we=H.current)===null||we===void 0?void 0:we.popupElement}});const[X,Y]=br(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),G=!p&&!g&&p!==0,Q=Ne=>{var we,je;Y(G?!1:Ne),G||((we=e.onOpenChange)===null||we===void 0||we.call(e,Ne),(je=e.onVisibleChange)===null||je===void 0||je.call(e,Ne))},J=d.useMemo(()=>{var Ne,we;let je=x;return typeof v=="object"&&(je=(we=(Ne=v.pointAtCenter)!==null&&Ne!==void 0?Ne:v.arrowPointAtCenter)!==null&&we!==void 0?we:x),y||sW({arrowPointAtCenter:je,autoAdjustOverflow:b,arrowWidth:R?A.sizePopupArrow:0,borderRadius:A.borderRadius,offset:A.marginXXS,visibleFirst:!0})},[x,v,y,A]),z=d.useMemo(()=>p===0?p:g||p||"",[g,p]),fe=d.createElement(ol,{space:!0},typeof z=="function"?z():z),te=F("tooltip",a),re=F(),q=e["data-popover-inject"];let ne=X;!("open"in e)&&!("visible"in e)&&G&&(ne=!1);const he=d.isValidElement(c)&&!T9(c)?c:d.createElement("span",null,c),xe=he.props,ye=!xe.className||typeof xe.className=="string"?ce(xe.className,i||`${te}-open`):xe.className,[pe,be,_e]=lW(te,!q),$e=uW(te,s),Be=$e.arrowStyle,Fe=ce(I,{[`${te}-rtl`]:M==="rtl"},$e.className,T,be,_e,V,L.root,D==null?void 0:D.root),nt=ce(L.body,D==null?void 0:D.body),[qe,Ge]=uu("Tooltip",k.zIndex),Le=d.createElement(dpe,Object.assign({},k,{zIndex:qe,showArrow:R,placement:E,mouseEnterDelay:C,mouseLeaveDelay:O,prefixCls:te,classNames:{root:Fe,body:nt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Be),B.root),K),_),N==null?void 0:N.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},B.body),l),N==null?void 0:N.body),$e.overlayStyle)},getTooltipContainer:w||o||j,ref:H,builtinPlacements:J,overlay:fe,visible:ne,onVisibleChange:Q,afterVisibleChange:u??f,arrowContent:d.createElement("span",{className:`${te}-arrow-content`}),motion:{motionName:Vc(re,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:h??!!m}),ne?pa(he,{className:ye}):he);return pe(d.createElement(eS.Provider,{value:Ge},Le))}),dW=Cpe;dW._InternalPanelDoNotUseOrYouWillBeFired=Spe;const Os=dW,Epe=e=>{const{componentCls:t,popoverColor:r,titleMinWidth:n,fontWeightStrong:a,innerPadding:i,boxShadowSecondary:o,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:f,popoverBg:m,titleBorderBottom:h,innerContentPadding:v,titlePadding:p}=e;return[{[t]:Object.assign(Object.assign({},ur(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:l,boxShadow:o,padding:i},[`${t}-title`]:{minWidth:n,marginBottom:u,color:s,fontWeight:a,borderBottom:h,padding:p},[`${t}-inner-content`]:{color:r,padding:v}})},mI(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},$pe=e=>{const{componentCls:t}=e;return{[t]:Hc.map(r=>{const n=e[`${r}6`];return{[`&${t}-${r}`]:{"--antd-arrow-background-color":n,[`${t}-inner`]:{backgroundColor:n},[`${t}-arrow`]:{background:"transparent"}}}})}},_pe=e=>{const{lineWidth:t,controlHeight:r,fontHeight:n,padding:a,wireframe:i,zIndexPopupBase:o,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:f}=e,m=r-n,h=m/2,v=m/2-t,p=a;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:o+30},CS(e)),ES({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:l,titlePadding:i?`${h}px ${p}px ${v}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${f}px ${p}px`:0})},fW=or("Popover",e=>{const{colorBgElevated:t,colorText:r}=e,n=Yt(e,{popoverBg:t,popoverColor:r});return[Epe(n),$pe(n),pv(n,"zoom-big")]},_pe,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var Ope=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a!e&&!t?null:d.createElement(d.Fragment,null,e&&d.createElement("div",{className:`${r}-title`},e),t&&d.createElement("div",{className:`${r}-inner-content`},t)),Tpe=e=>{const{hashId:t,prefixCls:r,className:n,style:a,placement:i="top",title:o,content:s,children:l}=e,c=b0(o),u=b0(s),f=ce(t,r,`${r}-pure`,`${r}-placement-${i}`,n);return d.createElement("div",{className:f,style:a},d.createElement("div",{className:`${r}-arrow`}),d.createElement(fI,Object.assign({},e,{className:t,prefixCls:r}),l||d.createElement(mW,{prefixCls:r,title:c,content:u})))},Ppe=e=>{const{prefixCls:t,className:r}=e,n=Ope(e,["prefixCls","className"]),{getPrefixCls:a}=d.useContext(Nt),i=a("popover",t),[o,s,l]=fW(i);return o(d.createElement(Tpe,Object.assign({},n,{prefixCls:i,hashId:s,className:ce(r,l)})))},hW=Ppe;var Ipe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var r,n;const{prefixCls:a,title:i,content:o,overlayClassName:s,placement:l="top",trigger:c="hover",children:u,mouseEnterDelay:f=.1,mouseLeaveDelay:m=.1,onOpenChange:h,overlayStyle:v={},styles:p,classNames:g}=e,y=Ipe(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:x,className:b,style:S,classNames:w,styles:E}=Fn("popover"),C=x("popover",a),[O,_,T]=fW(C),I=x(),N=ce(s,_,T,b,w.root,g==null?void 0:g.root),D=ce(w.body,g==null?void 0:g.body),[k,R]=br(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),A=(K,L)=>{R(K,!0),h==null||h(K,L)},j=K=>{K.keyCode===Qe.ESC&&A(!1,K)},F=K=>{A(K)},M=b0(i),V=b0(o);return O(d.createElement(Os,Object.assign({placement:l,trigger:c,mouseEnterDelay:f,mouseLeaveDelay:m},y,{prefixCls:C,classNames:{root:N,body:D},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},E.root),S),v),p==null?void 0:p.root),body:Object.assign(Object.assign({},E.body),p==null?void 0:p.body)},ref:t,open:k,onOpenChange:F,overlay:M||V?d.createElement(mW,{prefixCls:C,title:M,content:V}):null,transitionName:Vc(I,"zoom-big",y.transitionName),"data-popover-inject":!0}),pa(u,{onKeyDown:K=>{var L,B;d.isValidElement(u)&&((B=u==null?void 0:(L=u.props).onKeyDown)===null||B===void 0||B.call(L,K)),j(K)}})))}),pW=Npe;pW._InternalPanelDoNotUseOrYouWillBeFired=hW;const vW=pW,V3=e=>{const{size:t,shape:r}=d.useContext(W_),n=d.useMemo(()=>({size:e.size||t,shape:e.shape||r}),[e.size,e.shape,t,r]);return d.createElement(W_.Provider,{value:n},e.children)},kpe=e=>{var t,r,n,a;const{getPrefixCls:i,direction:o}=d.useContext(Nt),{prefixCls:s,className:l,rootClassName:c,style:u,maxCount:f,maxStyle:m,size:h,shape:v,maxPopoverPlacement:p,maxPopoverTrigger:g,children:y,max:x}=e,b=i("avatar",s),S=`${b}-group`,w=gn(b),[E,C,O]=nW(b,w),_=ce(S,{[`${S}-rtl`]:o==="rtl"},O,w,l,c,C),T=ha(y).map((D,k)=>pa(D,{key:`avatar-key-${k}`})),I=(x==null?void 0:x.count)||f,N=T.length;if(I&&Itypeof e!="object"&&typeof e!="function"||e===null,Gpe=Kpe;var xW=d.createContext(null);function bW(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function SW(e){var t=d.useContext(xW);return bW(t,e)}var qpe=["children","locked"],Ts=d.createContext(null);function Xpe(e,t){var r=ae({},e);return Object.keys(t).forEach(function(n){var a=t[n];a!==void 0&&(r[n]=a)}),r}function bp(e){var t=e.children,r=e.locked,n=Rt(e,qpe),a=d.useContext(Ts),i=Md(function(){return Xpe(a,n)},[a,n],function(o,s){return!r&&(o[0]!==s[0]||!tl(o[1],s[1],!0))});return d.createElement(Ts.Provider,{value:i},t)}var Ype=[],wW=d.createContext(null);function $S(){return d.useContext(wW)}var CW=d.createContext(Ype);function em(e){var t=d.useContext(CW);return d.useMemo(function(){return e!==void 0?[].concat(De(t),[e]):t},[t,e])}var EW=d.createContext(null),hI=d.createContext({});function U3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(q0(e)){var r=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(r)||e.isContentEditable||r==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),i=Number(a),o=null;return a&&!Number.isNaN(i)?o=i:n&&o===null&&(o=0),n&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function Qpe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=De(e.querySelectorAll("*")).filter(function(n){return U3(n,t)});return U3(e,t)&&r.unshift(e),r}var V_=Qe.LEFT,U_=Qe.RIGHT,K_=Qe.UP,lx=Qe.DOWN,cx=Qe.ENTER,$W=Qe.ESC,Fm=Qe.HOME,Lm=Qe.END,K3=[K_,lx,V_,U_];function Zpe(e,t,r,n){var a,i="prev",o="next",s="children",l="parent";if(e==="inline"&&n===cx)return{inlineTrigger:!0};var c=ee(ee({},K_,i),lx,o),u=ee(ee(ee(ee({},V_,r?o:i),U_,r?i:o),lx,s),cx,s),f=ee(ee(ee(ee(ee(ee({},K_,i),lx,o),cx,s),$W,l),V_,r?s:l),U_,r?l:s),m={inline:c,horizontal:u,vertical:f,inlineSub:c,horizontalSub:f,verticalSub:f},h=(a=m["".concat(e).concat(t?"":"Sub")])===null||a===void 0?void 0:a[n];switch(h){case i:return{offset:-1,sibling:!0};case o:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function Jpe(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function eve(e,t){for(var r=e||document.activeElement;r;){if(t.has(r))return r;r=r.parentElement}return null}function pI(e,t){var r=Qpe(e,!0);return r.filter(function(n){return t.has(n)})}function G3(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=pI(e,t),i=a.length,o=a.findIndex(function(s){return r===s});return n<0?o===-1?o=i-1:o-=1:n>0&&(o+=1),o=(o+i)%i,a[o]}var G_=function(t,r){var n=new Set,a=new Map,i=new Map;return t.forEach(function(o){var s=document.querySelector("[data-menu-id='".concat(bW(r,o),"']"));s&&(n.add(s),i.set(s,o),a.set(o,s))}),{elements:n,key2element:a,element2key:i}};function tve(e,t,r,n,a,i,o,s,l,c){var u=d.useRef(),f=d.useRef();f.current=t;var m=function(){Ut.cancel(u.current)};return d.useEffect(function(){return function(){m()}},[]),function(h){var v=h.which;if([].concat(K3,[cx,$W,Fm,Lm]).includes(v)){var p=i(),g=G_(p,n),y=g,x=y.elements,b=y.key2element,S=y.element2key,w=b.get(t),E=eve(w,x),C=S.get(E),O=Zpe(e,o(C,!0).length===1,r,v);if(!O&&v!==Fm&&v!==Lm)return;(K3.includes(v)||[Fm,Lm].includes(v))&&h.preventDefault();var _=function(j){if(j){var F=j,M=j.querySelector("a");M!=null&&M.getAttribute("href")&&(F=M);var V=S.get(j);s(V),m(),u.current=Ut(function(){f.current===V&&F.focus()})}};if([Fm,Lm].includes(v)||O.sibling||!E){var T;!E||e==="inline"?T=a.current:T=Jpe(E);var I,N=pI(T,x);v===Fm?I=N[0]:v===Lm?I=N[N.length-1]:I=G3(T,x,E,O.offset),_(I)}else if(O.inlineTrigger)l(C);else if(O.offset>0)l(C,!0),m(),u.current=Ut(function(){g=G_(p,n);var A=E.getAttribute("aria-controls"),j=document.getElementById(A),F=G3(j,g.elements);_(F)},5);else if(O.offset<0){var D=o(C,!0),k=D[D.length-2],R=b.get(k);l(k,!1),_(R)}}c==null||c(h)}}function rve(e){Promise.resolve().then(e)}var vI="__RC_UTIL_PATH_SPLIT__",q3=function(t){return t.join(vI)},nve=function(t){return t.split(vI)},q_="rc-menu-more";function ave(){var e=d.useState({}),t=me(e,2),r=t[1],n=d.useRef(new Map),a=d.useRef(new Map),i=d.useState([]),o=me(i,2),s=o[0],l=o[1],c=d.useRef(0),u=d.useRef(!1),f=function(){u.current||r({})},m=d.useCallback(function(b,S){var w=q3(S);a.current.set(w,b),n.current.set(b,w),c.current+=1;var E=c.current;rve(function(){E===c.current&&f()})},[]),h=d.useCallback(function(b,S){var w=q3(S);a.current.delete(w),n.current.delete(b)},[]),v=d.useCallback(function(b){l(b)},[]),p=d.useCallback(function(b,S){var w=n.current.get(b)||"",E=nve(w);return S&&s.includes(E[0])&&E.unshift(q_),E},[s]),g=d.useCallback(function(b,S){return b.filter(function(w){return w!==void 0}).some(function(w){var E=p(w,!0);return E.includes(S)})},[p]),y=function(){var S=De(n.current.keys());return s.length&&S.push(q_),S},x=d.useCallback(function(b){var S="".concat(n.current.get(b)).concat(vI),w=new Set;return De(a.current.keys()).forEach(function(E){E.startsWith(S)&&w.add(a.current.get(E))}),w},[]);return d.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:m,unregisterPath:h,refreshOverflowKeys:v,isSubPathKey:g,getKeyPath:p,getKeys:y,getSubPathKeys:x}}function oh(e){var t=d.useRef(e);t.current=e;var r=d.useCallback(function(){for(var n,a=arguments.length,i=new Array(a),o=0;o1&&(x.motionAppear=!1);var b=x.onVisibleChanged;return x.onVisibleChanged=function(S){return!m.current&&!S&&g(!0),b==null?void 0:b(S)},p?null:d.createElement(bp,{mode:i,locked:!m.current},d.createElement(Vi,Te({visible:y},x,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(S){var w=S.className,E=S.style;return d.createElement(gI,{id:t,className:w,style:E},a)}))}var Sve=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],wve=["active"],Cve=d.forwardRef(function(e,t){var r=e.style,n=e.className,a=e.title,i=e.eventKey;e.warnKey;var o=e.disabled,s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,f=e.popupClassName,m=e.popupOffset,h=e.popupStyle,v=e.onClick,p=e.onMouseEnter,g=e.onMouseLeave,y=e.onTitleClick,x=e.onTitleMouseEnter,b=e.onTitleMouseLeave,S=Rt(e,Sve),w=SW(i),E=d.useContext(Ts),C=E.prefixCls,O=E.mode,_=E.openKeys,T=E.disabled,I=E.overflowDisabled,N=E.activeKey,D=E.selectedKeys,k=E.itemIcon,R=E.expandIcon,A=E.onItemClick,j=E.onOpenChange,F=E.onActive,M=d.useContext(hI),V=M._internalRenderSubMenuItem,K=d.useContext(EW),L=K.isSubPathKey,B=em(),W="".concat(C,"-submenu"),H=T||o,U=d.useRef(),X=d.useRef(),Y=c??k,G=u??R,Q=_.includes(i),J=!I&&Q,z=L(D,i),fe=_W(i,H,x,b),te=fe.active,re=Rt(fe,wve),q=d.useState(!1),ne=me(q,2),he=ne[0],xe=ne[1],ye=function(ge){H||xe(ge)},pe=function(ge){ye(!0),p==null||p({key:i,domEvent:ge})},be=function(ge){ye(!1),g==null||g({key:i,domEvent:ge})},_e=d.useMemo(function(){return te||(O!=="inline"?he||L([N],i):!1)},[O,te,N,he,i,L]),$e=OW(B.length),Be=function(ge){H||(y==null||y({key:i,domEvent:ge}),O==="inline"&&j(i,!Q))},Fe=oh(function(Me){v==null||v(i1(Me)),A(Me)}),nt=function(ge){O!=="inline"&&j(i,ge)},qe=function(){F(i)},Ge=w&&"".concat(w,"-popup"),Le=d.useMemo(function(){return d.createElement(TW,{icon:O!=="horizontal"?G:void 0,props:ae(ae({},e),{},{isOpen:J,isSubMenu:!0})},d.createElement("i",{className:"".concat(W,"-arrow")}))},[O,G,e,J,W]),Ne=d.createElement("div",Te({role:"menuitem",style:$e,className:"".concat(W,"-title"),tabIndex:H?null:-1,ref:U,title:typeof a=="string"?a:null,"data-menu-id":I&&w?null:w,"aria-expanded":J,"aria-haspopup":!0,"aria-controls":Ge,"aria-disabled":H,onClick:Be,onFocus:qe},re),a,Le),we=d.useRef(O);if(O!=="inline"&&B.length>1?we.current="vertical":we.current=O,!I){var je=we.current;Ne=d.createElement(xve,{mode:je,prefixCls:W,visible:!s&&J&&O!=="inline",popupClassName:f,popupOffset:m,popupStyle:h,popup:d.createElement(bp,{mode:je==="horizontal"?"vertical":je},d.createElement(gI,{id:Ge,ref:X},l)),disabled:H,onVisibleChange:nt},Ne)}var Oe=d.createElement(bs.Item,Te({ref:t,role:"none"},S,{component:"li",style:r,className:ce(W,"".concat(W,"-").concat(O),n,ee(ee(ee(ee({},"".concat(W,"-open"),J),"".concat(W,"-active"),_e),"".concat(W,"-selected"),z),"".concat(W,"-disabled"),H)),onMouseEnter:pe,onMouseLeave:be}),Ne,!I&&d.createElement(bve,{id:Ge,open:J,keyPath:B},l));return V&&(Oe=V(Oe,e,{selected:z,active:_e,open:J,disabled:H})),d.createElement(bp,{onItemClick:Fe,mode:O==="horizontal"?"vertical":O,itemIcon:Y,expandIcon:G},Oe)}),_S=d.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=em(r),i=yI(n,a),o=$S();d.useEffect(function(){if(o)return o.registerPath(r,a),function(){o.unregisterPath(r,a)}},[a]);var s;return o?s=i:s=d.createElement(Cve,Te({ref:t},e),i),d.createElement(CW.Provider,{value:a},s)});function xI(e){var t=e.className,r=e.style,n=d.useContext(Ts),a=n.prefixCls,i=$S();return i?null:d.createElement("li",{role:"separator",className:ce("".concat(a,"-item-divider"),t),style:r})}var Eve=["className","title","eventKey","children"],$ve=d.forwardRef(function(e,t){var r=e.className,n=e.title;e.eventKey;var a=e.children,i=Rt(e,Eve),o=d.useContext(Ts),s=o.prefixCls,l="".concat(s,"-item-group");return d.createElement("li",Te({ref:t,role:"presentation"},i,{onClick:function(u){return u.stopPropagation()},className:ce(l,r)}),d.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof n=="string"?n:void 0},n),d.createElement("ul",{role:"group",className:"".concat(l,"-list")},a))}),bI=d.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=em(r),i=yI(n,a),o=$S();return o?i:d.createElement($ve,Te({ref:t},Er(e,["warnKey"])),i)}),_ve=["label","children","key","type","extra"];function X_(e,t,r){var n=t.item,a=t.group,i=t.submenu,o=t.divider;return(e||[]).map(function(s,l){if(s&&bt(s)==="object"){var c=s,u=c.label,f=c.children,m=c.key,h=c.type,v=c.extra,p=Rt(c,_ve),g=m??"tmp-".concat(l);return f||h==="group"?h==="group"?d.createElement(a,Te({key:g},p,{title:u}),X_(f,t,r)):d.createElement(i,Te({key:g},p,{title:u}),X_(f,t,r)):h==="divider"?d.createElement(o,Te({key:g},p)):d.createElement(n,Te({key:g},p,{extra:v}),u,(!!v||v===0)&&d.createElement("span",{className:"".concat(r,"-item-extra")},v))}return null}).filter(function(s){return s})}function Y3(e,t,r,n,a){var i=e,o=ae({divider:xI,item:Cv,group:bI,submenu:_S},n);return t&&(i=X_(t,o,a)),yI(i,r)}var Ove=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],wu=[],Tve=d.forwardRef(function(e,t){var r,n=e,a=n.prefixCls,i=a===void 0?"rc-menu":a,o=n.rootClassName,s=n.style,l=n.className,c=n.tabIndex,u=c===void 0?0:c,f=n.items,m=n.children,h=n.direction,v=n.id,p=n.mode,g=p===void 0?"vertical":p,y=n.inlineCollapsed,x=n.disabled,b=n.disabledOverflow,S=n.subMenuOpenDelay,w=S===void 0?.1:S,E=n.subMenuCloseDelay,C=E===void 0?.1:E,O=n.forceSubMenuRender,_=n.defaultOpenKeys,T=n.openKeys,I=n.activeKey,N=n.defaultActiveFirst,D=n.selectable,k=D===void 0?!0:D,R=n.multiple,A=R===void 0?!1:R,j=n.defaultSelectedKeys,F=n.selectedKeys,M=n.onSelect,V=n.onDeselect,K=n.inlineIndent,L=K===void 0?24:K,B=n.motion,W=n.defaultMotions,H=n.triggerSubMenuAction,U=H===void 0?"hover":H,X=n.builtinPlacements,Y=n.itemIcon,G=n.expandIcon,Q=n.overflowedIndicator,J=Q===void 0?"...":Q,z=n.overflowedIndicatorPopupClassName,fe=n.getPopupContainer,te=n.onClick,re=n.onOpenChange,q=n.onKeyDown;n.openAnimation,n.openTransitionName;var ne=n._internalRenderMenuItem,he=n._internalRenderSubMenuItem,xe=n._internalComponents,ye=Rt(n,Ove),pe=d.useMemo(function(){return[Y3(m,f,wu,xe,i),Y3(m,f,wu,{},i)]},[m,f,xe]),be=me(pe,2),_e=be[0],$e=be[1],Be=d.useState(!1),Fe=me(Be,2),nt=Fe[0],qe=Fe[1],Ge=d.useRef(),Le=ove(v),Ne=h==="rtl",we=br(_,{value:T,postState:function(It){return It||wu}}),je=me(we,2),Oe=je[0],Me=je[1],ge=function(It){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function cr(){Me(It),re==null||re(It)}Pt?wi.flushSync(cr):cr()},Se=d.useState(Oe),Re=me(Se,2),We=Re[0],at=Re[1],yt=d.useRef(!1),tt=d.useMemo(function(){return(g==="inline"||g==="vertical")&&y?["vertical",y]:[g,!1]},[g,y]),it=me(tt,2),ft=it[0],lt=it[1],mt=ft==="inline",Mt=d.useState(ft),Ft=me(Mt,2),ht=Ft[0],St=Ft[1],xt=d.useState(lt),rt=me(xt,2),Ye=rt[0],Ze=rt[1];d.useEffect(function(){St(ft),Ze(lt),yt.current&&(mt?Me(We):ge(wu))},[ft,lt]);var ut=d.useState(0),Z=me(ut,2),ue=Z[0],le=Z[1],ie=ue>=_e.length-1||ht!=="horizontal"||b;d.useEffect(function(){mt&&at(Oe)},[Oe]),d.useEffect(function(){return yt.current=!0,function(){yt.current=!1}},[]);var oe=ave(),de=oe.registerPath,Ce=oe.unregisterPath,Ae=oe.refreshOverflowKeys,Ee=oe.isSubPathKey,Ie=oe.getKeyPath,Pe=oe.getKeys,Xe=oe.getSubPathKeys,ke=d.useMemo(function(){return{registerPath:de,unregisterPath:Ce}},[de,Ce]),ze=d.useMemo(function(){return{isSubPathKey:Ee}},[Ee]);d.useEffect(function(){Ae(ie?wu:_e.slice(ue+1).map(function(mr){return mr.key}))},[ue,ie]);var He=br(I||N&&((r=_e[0])===null||r===void 0?void 0:r.key),{value:I}),Ve=me(He,2),et=Ve[0],ot=Ve[1],wt=oh(function(mr){ot(mr)}),Lt=oh(function(){ot(void 0)});d.useImperativeHandle(t,function(){return{list:Ge.current,focus:function(It){var Pt,cr=Pe(),_t=G_(cr,Le),Tt=_t.elements,nr=_t.key2element,Nr=_t.element2key,Kr=pI(Ge.current,Tt),Vn=et??(Kr[0]?Nr.get(Kr[0]):(Pt=_e.find(function(Jt){return!Jt.props.disabled}))===null||Pt===void 0?void 0:Pt.key),xn=nr.get(Vn);if(Vn&&xn){var Un;xn==null||(Un=xn.focus)===null||Un===void 0||Un.call(xn,It)}}}});var pt=br(j||[],{value:F,postState:function(It){return Array.isArray(It)?It:It==null?wu:[It]}}),Ot=me(pt,2),zt=Ot[0],pr=Ot[1],Ir=function(It){if(k){var Pt=It.key,cr=zt.includes(Pt),_t;A?cr?_t=zt.filter(function(nr){return nr!==Pt}):_t=[].concat(De(zt),[Pt]):_t=[Pt],pr(_t);var Tt=ae(ae({},It),{},{selectedKeys:_t});cr?V==null||V(Tt):M==null||M(Tt)}!A&&Oe.length&&ht!=="inline"&&ge(wu)},Pr=oh(function(mr){te==null||te(i1(mr)),Ir(mr)}),In=oh(function(mr,It){var Pt=Oe.filter(function(_t){return _t!==mr});if(It)Pt.push(mr);else if(ht!=="inline"){var cr=Xe(mr);Pt=Pt.filter(function(_t){return!cr.has(_t)})}tl(Oe,Pt,!0)||ge(Pt,!0)}),dn=function(It,Pt){var cr=Pt??!Oe.includes(It);In(It,cr)},zn=tve(ht,et,Ne,Le,Ge,Pe,Ie,ot,dn,q);d.useEffect(function(){qe(!0)},[]);var Hn=d.useMemo(function(){return{_internalRenderMenuItem:ne,_internalRenderSubMenuItem:he}},[ne,he]),la=ht!=="horizontal"||b?_e:_e.map(function(mr,It){return d.createElement(bp,{key:mr.key,overflowDisabled:It>ue},mr)}),Wn=d.createElement(bs,Te({id:v,ref:Ge,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Cv,className:ce(i,"".concat(i,"-root"),"".concat(i,"-").concat(ht),l,ee(ee({},"".concat(i,"-inline-collapsed"),Ye),"".concat(i,"-rtl"),Ne),o),dir:h,style:s,role:"menu",tabIndex:u,data:la,renderRawItem:function(It){return It},renderRawRest:function(It){var Pt=It.length,cr=Pt?_e.slice(-Pt):null;return d.createElement(_S,{eventKey:q_,title:J,disabled:ie,internalPopupClose:Pt===0,popupClassName:z},cr)},maxCount:ht!=="horizontal"||b?bs.INVALIDATE:bs.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(It){le(It)},onKeyDown:zn},ye));return d.createElement(hI.Provider,{value:Hn},d.createElement(xW.Provider,{value:Le},d.createElement(bp,{prefixCls:i,rootClassName:o,mode:ht,openKeys:Oe,rtl:Ne,disabled:x,motion:nt?B:null,defaultMotions:nt?W:null,activeKey:et,onActive:wt,onInactive:Lt,selectedKeys:zt,inlineIndent:L,subMenuOpenDelay:w,subMenuCloseDelay:C,forceSubMenuRender:O,builtinPlacements:X,triggerSubMenuAction:U,getPopupContainer:fe,itemIcon:Y,expandIcon:G,onItemClick:Pr,onOpenChange:In},d.createElement(EW.Provider,{value:ze},Wn),d.createElement("div",{style:{display:"none"},"aria-hidden":!0},d.createElement(wW.Provider,{value:ke},$e)))))}),tm=Tve;tm.Item=Cv;tm.SubMenu=_S;tm.ItemGroup=bI;tm.Divider=xI;var Pve={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"};const Ive=Pve;var Nve=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:Ive}))},kve=d.forwardRef(Nve);const Rve=kve,IW=d.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),Ave=e=>{const{antCls:t,componentCls:r,colorText:n,footerBg:a,headerHeight:i,headerPadding:o,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:f}=e;return{[r]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${r}-has-sider`]:{flexDirection:"row",[`> ${r}, > ${r}-content`]:{width:0}},[`${r}-header, &${r}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${r}-header`]:{height:i,padding:o,color:s,lineHeight:se(i),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${r}-footer`]:{padding:l,color:n,fontSize:c,background:a},[`${r}-content`]:{flex:"auto",color:n,minHeight:0}}},NW=e=>{const{colorBgLayout:t,controlHeight:r,controlHeightLG:n,colorText:a,controlHeightSM:i,marginXXS:o,colorTextLightSolid:s,colorBgContainer:l}=e,c=n*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:r*2,headerPadding:`0 ${c}px`,headerColor:a,footerPadding:`${i}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:n+o*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:n,zeroTriggerHeight:n,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:a}},kW=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],RW=or("Layout",Ave,NW,{deprecatedTokens:kW}),Mve=e=>{const{componentCls:t,siderBg:r,motionDurationMid:n,motionDurationSlow:a,antCls:i,triggerHeight:o,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:f,borderRadiusLG:m,lightSiderBg:h,lightTriggerColor:v,lightTriggerBg:p,bodyBg:g}=e;return{[t]:{position:"relative",minWidth:0,background:r,transition:`all ${n}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:o,color:s,lineHeight:se(o),textAlign:"center",background:l,cursor:"pointer",transition:`all ${n}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:r,borderRadius:`0 ${se(m)} ${se(m)} 0`,cursor:"pointer",transition:`background ${a} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${a}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${se(m)} 0 0 ${se(m)}`}},"&-light":{background:h,[`${t}-trigger`]:{color:v,background:p},[`${t}-zero-width-trigger`]:{color:v,background:p,border:`1px solid ${g}`,borderInlineStart:0}}}}},Dve=or(["Layout","Sider"],Mve,NW,{deprecatedTokens:kW});var jve=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),OS=d.createContext({}),Lve=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),Bve=d.forwardRef((e,t)=>{const{prefixCls:r,className:n,trigger:a,children:i,defaultCollapsed:o=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:h,breakpoint:v,onCollapse:p,onBreakpoint:g}=e,y=jve(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:x}=d.useContext(IW),[b,S]=d.useState("collapsed"in e?e.collapsed:o),[w,E]=d.useState(!1);d.useEffect(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const C=(Y,G)=>{"collapsed"in e||S(Y),p==null||p(Y,G)},{getPrefixCls:O,direction:_}=d.useContext(Nt),T=O("layout-sider",r),[I,N,D]=Dve(T),k=d.useRef(null);k.current=Y=>{E(Y.matches),g==null||g(Y.matches),b!==Y.matches&&C(Y.matches,"responsive")},d.useEffect(()=>{function Y(Q){var J;return(J=k.current)===null||J===void 0?void 0:J.call(k,Q)}let G;return typeof(window==null?void 0:window.matchMedia)<"u"&&v&&v in Q3&&(G=window.matchMedia(`screen and (max-width: ${Q3[v]})`),eW(G,Y),Y(G)),()=>{tW(G,Y)}},[v]),d.useEffect(()=>{const Y=Lve("ant-sider-");return x.addSider(Y),()=>x.removeSider(Y)},[]);const R=()=>{C(!b,"clickTrigger")},A=Er(y,["collapsed"]),j=b?m:f,F=Fve(j)?`${j}px`:String(j),M=Number.parseFloat(String(m||0))===0?d.createElement("span",{onClick:R,className:ce(`${T}-zero-width-trigger`,`${T}-zero-width-trigger-${u?"right":"left"}`),style:h},a||d.createElement(Rve,null)):null,V=_==="rtl"==!u,B={expanded:V?d.createElement(md,null):d.createElement(vd,null),collapsed:V?d.createElement(vd,null):d.createElement(md,null)}[b?"collapsed":"expanded"],W=a!==null?M||d.createElement("div",{className:`${T}-trigger`,onClick:R,style:{width:F}},a||B):null,H=Object.assign(Object.assign({},l),{flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F}),U=ce(T,`${T}-${s}`,{[`${T}-collapsed`]:!!b,[`${T}-has-trigger`]:c&&a!==null&&!M,[`${T}-below`]:!!w,[`${T}-zero-width`]:Number.parseFloat(F)===0},n,N,D),X=d.useMemo(()=>({siderCollapsed:b}),[b]);return I(d.createElement(OS.Provider,{value:X},d.createElement("aside",Object.assign({className:U},A,{style:H,ref:t}),d.createElement("div",{className:`${T}-children`},i),c||w&&M?W:null)))}),AW=Bve;var zve={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"};const Hve=zve;var Wve=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:Hve}))},Vve=d.forwardRef(Wve);const SI=Vve,Uve=d.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),o1=Uve;var Kve=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:r,dashed:n}=e,a=Kve(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=d.useContext(Nt),o=i("menu",t),s=ce({[`${o}-item-divider-dashed`]:!!n},r);return d.createElement(xI,Object.assign({className:s},a))},MW=Gve,qve=e=>{var t;const{className:r,children:n,icon:a,title:i,danger:o,extra:s}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:f,inlineCollapsed:m}=d.useContext(o1),h=b=>{const S=n==null?void 0:n[0],w=d.createElement("span",{className:ce(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!s||s===0})},n);return(!a||d.isValidElement(n)&&n.type==="span")&&n&&b&&c&&typeof S=="string"?d.createElement("div",{className:`${l}-inline-collapsed-noicon`},S.charAt(0)):w},{siderCollapsed:v}=d.useContext(OS);let p=i;typeof i>"u"?p=c?n:"":i===!1&&(p="");const g={title:p};!v&&!m&&(g.title=null,g.open=!1);const y=ha(n).length;let x=d.createElement(Cv,Object.assign({},Er(e,["title","icon","danger"]),{className:ce({[`${l}-item-danger`]:o,[`${l}-item-only-child`]:(a?y+1:y)===1},r),title:typeof i=="string"?i:void 0}),pa(a,{className:ce(d.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:void 0,`${l}-item-icon`)}),h(m));return f||(x=d.createElement(Os,Object.assign({},g,{placement:u==="rtl"?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),x)),x},DW=qve;var Xve=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{children:r}=e,n=Xve(e,["children"]),a=d.useContext(Y_),i=d.useMemo(()=>Object.assign(Object.assign({},a),n),[a,n.prefixCls,n.mode,n.selectable,n.rootClassName]),o=Xne(r),s=Wl(t,o?su(r):null);return d.createElement(Y_.Provider,{value:i},d.createElement(ol,{space:!0},o?d.cloneElement(r,{ref:s}):r))}),Z3=Y_,Yve=e=>{const{componentCls:t,motionDurationSlow:r,horizontalLineHeight:n,colorSplit:a,lineWidth:i,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:n,border:0,borderBottom:`${se(i)} ${o} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover, + > ${t}-item-active, + > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${r}`,`background ${r}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},Qve=Yve,Zve=({componentCls:e,menuArrowOffset:t,calc:r})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical, + ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${se(r(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${se(t)})`}}}}),Jve=Zve,J3=e=>nl(e),ege=(e,t)=>{const{componentCls:r,itemColor:n,itemSelectedColor:a,subMenuItemSelectedColor:i,groupTitleColor:o,itemBg:s,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:f,activeBarBorderWidth:m,motionDurationSlow:h,motionEaseInOut:v,motionEaseOut:p,itemPaddingInline:g,motionDurationMid:y,itemHoverColor:x,lineType:b,colorSplit:S,itemDisabledColor:w,dangerItemColor:E,dangerItemHoverColor:C,dangerItemSelectedColor:O,dangerItemActiveBg:_,dangerItemSelectedBg:T,popupBg:I,itemHoverBg:N,itemActiveBg:D,menuSubMenuBg:k,horizontalItemSelectedColor:R,horizontalItemSelectedBg:A,horizontalItemBorderRadius:j,horizontalItemHoverBg:F}=e;return{[`${r}-${t}, ${r}-${t} > ${r}`]:{color:n,background:s,[`&${r}-root:focus-visible`]:Object.assign({},J3(e)),[`${r}-item`]:{"&-group-title, &-extra":{color:o}},[`${r}-submenu-selected > ${r}-submenu-title`]:{color:i},[`${r}-item, ${r}-submenu-title`]:{color:n,[`&:not(${r}-item-disabled):focus-visible`]:Object.assign({},J3(e))},[`${r}-item-disabled, ${r}-submenu-disabled`]:{color:`${w} !important`},[`${r}-item:not(${r}-item-selected):not(${r}-submenu-selected)`]:{[`&:hover, > ${r}-submenu-title:hover`]:{color:x}},[`&:not(${r}-horizontal)`]:{[`${r}-item:not(${r}-item-selected)`]:{"&:hover":{backgroundColor:N},"&:active":{backgroundColor:D}},[`${r}-submenu-title`]:{"&:hover":{backgroundColor:N},"&:active":{backgroundColor:D}}},[`${r}-item-danger`]:{color:E,[`&${r}-item:hover`]:{[`&:not(${r}-item-selected):not(${r}-submenu-selected)`]:{color:C}},[`&${r}-item:active`]:{background:_}},[`${r}-item a`]:{"&, &:hover":{color:"inherit"}},[`${r}-item-selected`]:{color:a,[`&${r}-item-danger`]:{color:O},"a, a:hover":{color:"inherit"}},[`& ${r}-item-selected`]:{backgroundColor:c,[`&${r}-item-danger`]:{backgroundColor:T}},[`&${r}-submenu > ${r}`]:{backgroundColor:k},[`&${r}-popup > ${r}`]:{backgroundColor:I},[`&${r}-submenu-popup > ${r}`]:{backgroundColor:I},[`&${r}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${r}-item, > ${r}-submenu`]:{top:m,marginTop:e.calc(m).mul(-1).equal(),marginBottom:0,borderRadius:j,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${se(u)} solid transparent`,transition:`border-color ${h} ${v}`,content:'""'},"&:hover, &-active, &-open":{background:F,"&::after":{borderBottomWidth:u,borderBottomColor:R}},"&-selected":{color:R,backgroundColor:A,"&:hover":{backgroundColor:A},"&::after":{borderBottomWidth:u,borderBottomColor:R}}}}),[`&${r}-root`]:{[`&${r}-inline, &${r}-vertical`]:{borderInlineEnd:`${se(m)} ${b} ${S}`}},[`&${r}-inline`]:{[`${r}-sub${r}-inline`]:{background:l},[`${r}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${se(f)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${y} ${p}`,`opacity ${y} ${p}`].join(","),content:'""'},[`&${r}-item-danger`]:{"&::after":{borderInlineEndColor:O}}},[`${r}-selected, ${r}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${y} ${v}`,`opacity ${y} ${v}`].join(",")}}}}}},eD=ege,tD=e=>{const{componentCls:t,itemHeight:r,itemMarginInline:n,padding:a,menuArrowSize:i,marginXS:o,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(i).add(a).add(o).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:r,lineHeight:se(r),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:n,marginBlock:s,width:l},[`> ${t}-item, + > ${t}-submenu > ${t}-submenu-title`]:{height:r,lineHeight:se(r)},[`${t}-item-group-list ${t}-submenu-title, + ${t}-submenu-title`]:{paddingInlineEnd:u}}},tge=e=>{const{componentCls:t,iconCls:r,itemHeight:n,colorTextLightSolid:a,dropdownWidth:i,controlHeightLG:o,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:u,motionDurationFast:f,motionDurationSlow:m,paddingXS:h,boxShadowSecondary:v,collapsedWidth:p,collapsedIconSize:g}=e,y={height:n,lineHeight:se(n),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},tD(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},tD(e)),{boxShadow:v})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${se(e.calc(o).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${f} ${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`]:y,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:y}},{[`${t}-inline-collapsed`]:{width:p,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item, + > ${t}-item-group > ${t}-item-group-list > ${t}-item, + > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, + > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${se(e.calc(g).div(2).equal())} - ${se(c)})`,textOverflow:"clip",[` + ${t}-submenu-arrow, + ${t}-submenu-expand-icon + `]:{opacity:0},[`${t}-item-icon, ${r}`]:{margin:0,fontSize:g,lineHeight:se(n),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${r}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${r}`]:{display:"none"},"a, a:hover":{color:a}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Uo),{paddingInline:h})}}]},rge=tge,rD=e=>{const{componentCls:t,motionDurationSlow:r,motionDurationMid:n,motionEaseInOut:a,motionEaseOut:i,iconCls:o,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background ${r}`,`padding calc(${r} + 0.1s) ${a}`].join(","),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${n} ${i}`,`margin ${r} ${a}`,`color ${r}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${r} ${a}`,`margin ${r}`,`color ${r}`].join(",")}},[`${t}-item-icon`]:Object.assign({},V0()),[`&${t}-item-only-child`]:{[`> ${o}, > ${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",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},nD=e=>{const{componentCls:t,motionDurationSlow:r,motionEaseInOut:n,borderRadius:a,menuArrowSize:i,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${r} ${n}, opacity ${r}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:a,transition:[`background ${r} ${n}`,`transform ${r} ${n}`,`top ${r} ${n}`,`color ${r} ${n}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${se(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${se(o)})`}}}}},nge=e=>{const{antCls:t,componentCls:r,fontSize:n,motionDurationSlow:a,motionDurationMid:i,motionEaseInOut:o,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:h,menuArrowSize:v,menuArrowOffset:p,lineType:g,groupTitleLineHeight:y,groupTitleFontSize:x}=e;return[{"":{[r]:Object.assign(Object.assign({},rl()),{"&-hidden":{display:"none"}})},[`${r}-submenu-hidden`]:{display:"none"}},{[r]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ur(e)),rl()),{marginBottom:0,paddingInlineStart:0,fontSize:n,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${a} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${r}-item`]:{flex:"none"}},[`${r}-item, ${r}-submenu, ${r}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${r}-item-group-title`]:{padding:`${se(s)} ${se(l)}`,fontSize:x,lineHeight:y,transition:`all ${a}`},[`&-horizontal ${r}-submenu`]:{transition:[`border-color ${a} ${o}`,`background ${a} ${o}`].join(",")},[`${r}-submenu, ${r}-submenu-inline`]:{transition:[`border-color ${a} ${o}`,`background ${a} ${o}`,`padding ${i} ${o}`].join(",")},[`${r}-submenu ${r}-sub`]:{cursor:"initial",transition:[`background ${a} ${o}`,`padding ${a} ${o}`].join(",")},[`${r}-title-content`]:{transition:`color ${a}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${r}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${r}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${r}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),rD(e)),{[`${r}-item-group`]:{[`${r}-item-group-list`]:{margin:0,padding:0,[`${r}-item, ${r}-submenu-title`]:{paddingInline:`${se(e.calc(n).mul(2).equal())} ${se(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${r}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${r}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},rD(e)),nD(e)),{[`${r}-item, ${r}-submenu > ${r}-submenu-title`]:{borderRadius:h},[`${r}-submenu-title::after`]:{transition:`transform ${a} ${o}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),nD(e)),{[`&-inline-collapsed ${r}-submenu-arrow, + &-inline ${r}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${se(p)})`},"&::after":{transform:`rotate(45deg) translateX(${se(e.calc(p).mul(-1).equal())})`}},[`${r}-submenu-open${r}-submenu-inline > ${r}-submenu-title > ${r}-submenu-arrow`]:{transform:`translateY(${se(e.calc(v).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${se(e.calc(p).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${se(p)})`}}})},{[`${t}-layout-header`]:{[r]:{lineHeight:"inherit"}}}]},age=e=>{var t,r,n;const{colorPrimary:a,colorError:i,colorTextDisabled:o,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:f,colorFillContent:m,lineWidth:h,lineWidthBold:v,controlItemBgActive:p,colorBgTextHover:g,controlHeightLG:y,lineHeight:x,colorBgElevated:b,marginXXS:S,padding:w,fontSize:E,controlHeightSM:C,fontSizeLG:O,colorTextLightSolid:_,colorErrorHover:T}=e,I=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,N=(r=e.activeBarBorderWidth)!==null&&r!==void 0?r:h,D=(n=e.itemMarginInline)!==null&&n!==void 0?n:e.marginXXS,k=new lr(_).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:a,horizontalItemHoverColor:a,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:a,itemSelectedColor:a,subMenuItemSelectedColor:a,colorItemTextSelectedHorizontal:a,horizontalItemSelectedColor:a,colorItemBg:u,itemBg:u,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:m,itemActiveBg:p,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:p,itemSelectedBg:p,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:I,colorActiveBarHeight:v,activeBarHeight:v,colorActiveBarBorderSize:h,activeBarBorderWidth:N,colorItemTextDisabled:o,itemDisabledColor:o,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:D,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:y,groupTitleLineHeight:x,collapsedWidth:y*2,popupBg:b,itemMarginBlock:S,itemPaddingInline:w,horizontalLineHeight:`${y*1.15}px`,iconSize:E,iconMarginInlineEnd:C-E,collapsedIconSize:O,groupTitleFontSize:E,darkItemDisabledColor:new lr(_).setA(.25).toRgbString(),darkItemColor:k,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:_,darkItemSelectedBg:a,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:k,darkItemHoverColor:_,darkDangerItemHoverColor:T,darkDangerItemSelectedColor:_,darkDangerItemActiveBg:i,itemWidth:I?`calc(100% + ${N}px)`:`calc(100% - ${D*2}px)`}},ige=(e,t=e,r=!0)=>or("Menu",a=>{const{colorBgElevated:i,controlHeightLG:o,fontSize:s,darkItemColor:l,darkDangerItemColor:c,darkItemBg:u,darkSubMenuItemBg:f,darkItemSelectedColor:m,darkItemSelectedBg:h,darkDangerItemSelectedBg:v,darkItemHoverBg:p,darkGroupTitleColor:g,darkItemHoverColor:y,darkItemDisabledColor:x,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:w,popupBg:E,darkPopupBg:C}=a,O=a.calc(s).div(7).mul(5).equal(),_=Yt(a,{menuArrowSize:O,menuHorizontalHeight:a.calc(o).mul(1.15).equal(),menuArrowOffset:a.calc(O).mul(.25).equal(),menuSubMenuBg:i,calc:a.calc,popupBg:E}),T=Yt(_,{itemColor:l,itemHoverColor:y,groupTitleColor:g,itemSelectedColor:m,subMenuItemSelectedColor:m,itemBg:u,popupBg:C,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:h,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:p,itemDisabledColor:x,dangerItemColor:c,dangerItemHoverColor:b,dangerItemSelectedColor:S,dangerItemActiveBg:w,dangerItemSelectedBg:v,menuSubMenuBg:f,horizontalItemSelectedColor:m,horizontalItemSelectedBg:h});return[nge(_),Qve(_),rge(_),eD(_,"light"),eD(T,"dark"),Jve(_),iS(_),al(_,"slide-up"),al(_,"slide-down"),pv(_,"zoom-big")]},age,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:r,unitless:{groupTitleLineHeight:!0}})(e,t),oge=e=>{var t;const{popupClassName:r,icon:n,title:a,theme:i}=e,o=d.useContext(o1),{prefixCls:s,inlineCollapsed:l,theme:c}=o,u=em();let f;if(!n)f=l&&!u.length&&a&&typeof a=="string"?d.createElement("div",{className:`${s}-inline-collapsed-noicon`},a.charAt(0)):d.createElement("span",{className:`${s}-title-content`},a);else{const v=d.isValidElement(a)&&a.type==="span";f=d.createElement(d.Fragment,null,pa(n,{className:ce(d.isValidElement(n)?(t=n.props)===null||t===void 0?void 0:t.className:void 0,`${s}-item-icon`)}),v?a:d.createElement("span",{className:`${s}-title-content`},a))}const m=d.useMemo(()=>Object.assign(Object.assign({},o),{firstLevel:!1}),[o]),[h]=uu("Menu");return d.createElement(o1.Provider,{value:m},d.createElement(_S,Object.assign({},Er(e,["icon"]),{title:f,popupClassName:ce(s,r,`${s}-${i||c}`),popupStyle:Object.assign({zIndex:h},e.popupStyle)})))},FW=oge;var sge=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var r;const n=d.useContext(Z3),a=n||{},{getPrefixCls:i,getPopupContainer:o,direction:s,menu:l}=d.useContext(Nt),c=i(),{prefixCls:u,className:f,style:m,theme:h="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:p,inlineCollapsed:g,siderCollapsed:y,rootClassName:x,mode:b,selectable:S,onClick:w,overflowedIndicatorPopupClassName:E}=e,C=sge(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),O=Er(C,["collapsedWidth"]);(r=a.validator)===null||r===void 0||r.call(a,{mode:b});const _=qt((...L)=>{var B;w==null||w.apply(void 0,L),(B=a.onClick)===null||B===void 0||B.call(a)}),T=a.mode||b,I=S??a.selectable,N=g??y,D={horizontal:{motionName:`${c}-slide-up`},inline:vp(c),other:{motionName:`${c}-zoom-big`}},k=i("menu",u||a.prefixCls),R=gn(k),[A,j,F]=ige(k,R,!n),M=ce(`${k}-${h}`,l==null?void 0:l.className,f),V=d.useMemo(()=>{var L,B;if(typeof v=="function"||E2(v))return v||null;if(typeof a.expandIcon=="function"||E2(a.expandIcon))return a.expandIcon||null;if(typeof(l==null?void 0:l.expandIcon)=="function"||E2(l==null?void 0:l.expandIcon))return(l==null?void 0:l.expandIcon)||null;const W=(L=v??(a==null?void 0:a.expandIcon))!==null&&L!==void 0?L:l==null?void 0:l.expandIcon;return pa(W,{className:ce(`${k}-submenu-expand-icon`,d.isValidElement(W)?(B=W.props)===null||B===void 0?void 0:B.className:void 0)})},[v,a==null?void 0:a.expandIcon,l==null?void 0:l.expandIcon,k]),K=d.useMemo(()=>({prefixCls:k,inlineCollapsed:N||!1,direction:s,firstLevel:!0,theme:h,mode:T,disableMenuItemTitleTooltip:p}),[k,N,s,p,h]);return A(d.createElement(Z3.Provider,{value:null},d.createElement(o1.Provider,{value:K},d.createElement(tm,Object.assign({getPopupContainer:o,overflowedIndicator:d.createElement(SI,null),overflowedIndicatorPopupClassName:ce(k,`${k}-${h}`,E),mode:T,selectable:I,onClick:_},O,{inlineCollapsed:N,style:Object.assign(Object.assign({},l==null?void 0:l.style),m),className:M,prefixCls:k,direction:s,defaultMotions:D,expandIcon:V,ref:t,rootClassName:ce(x,j,a.rootClassName,F,R),_internalComponents:lge})))))}),uge=cge,Ev=d.forwardRef((e,t)=>{const r=d.useRef(null),n=d.useContext(OS);return d.useImperativeHandle(t,()=>({menu:r.current,focus:a=>{var i;(i=r.current)===null||i===void 0||i.focus(a)}})),d.createElement(uge,Object.assign({ref:r},e,n))});Ev.Item=DW;Ev.SubMenu=FW;Ev.Divider=MW;Ev.ItemGroup=bI;const wI=Ev,dge=e=>{const{componentCls:t,menuCls:r,colorError:n,colorTextLightSolid:a}=e,i=`${r}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${r} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:n,"&:hover":{color:a,backgroundColor:n}}}}}},fge=dge,mge=e=>{const{componentCls:t,menuCls:r,zIndexPopup:n,dropdownArrowDistance:a,sizePopupArrow:i,antCls:o,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:h,controlPaddingHorizontal:v,colorBgElevated:p}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:n,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(a).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:h}},[`${t}-wrap`]:{position:"relative",[`${o}-btn > ${s}-down`]:{fontSize:h},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft, + &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomLeft, + &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottom, + &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottom, + &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomRight, + &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:sS},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topLeft, + &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topLeft, + &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-top, + &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-top, + &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topRight, + &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topRight`]:{animationName:cS},[`&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomLeft, + &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottom, + &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:lS},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topLeft, + &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-top, + &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:uS}}},mI(e,p,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${r}`]:{position:"relative",margin:0},[`${r}-submenu-popup`]:{position:"absolute",zIndex:n,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},ur(e)),{[r]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:p,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Nl(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${r}-item-group-title`]:{padding:`${se(c)} ${se(v)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${r}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${r}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${r}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${r}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${r}-item, ${r}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${se(c)} ${se(v)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Nl(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:p,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${se(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:h,fontStyle:"normal"}}}),[`${r}-item-group-list`]:{margin:`0 ${se(e.marginXS)}`,padding:0,listStyle:"none"},[`${r}-submenu-title`]:{paddingInlineEnd:e.calc(v).add(e.fontSizeSM).equal()},[`${r}-submenu-vertical`]:{position:"relative"},[`${r}-submenu${r}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:p,cursor:"not-allowed"}},[`${r}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[al(e,"slide-up"),al(e,"slide-down"),x0(e,"move-up"),x0(e,"move-down"),pv(e,"zoom-big")]]},hge=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},ES({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),CS(e)),pge=or("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:r,paddingXXS:n,componentCls:a}=e,i=Yt(e,{menuCls:`${a}-menu`,dropdownArrowDistance:e.calc(r).div(2).add(t).equal(),dropdownEdgeChildPadding:n});return[mge(i),fge(i)]},hge,{resetStyle:!1}),CI=e=>{var t;const{menu:r,arrow:n,prefixCls:a,children:i,trigger:o,disabled:s,dropdownRender:l,popupRender:c,getPopupContainer:u,overlayClassName:f,rootClassName:m,overlayStyle:h,open:v,onOpenChange:p,visible:g,onVisibleChange:y,mouseEnterDelay:x=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:S=!0,placement:w="",overlay:E,transitionName:C,destroyOnHidden:O,destroyPopupOnHide:_}=e,{getPopupContainer:T,getPrefixCls:I,direction:N,dropdown:D}=d.useContext(Nt),k=c||l;lu();const R=d.useMemo(()=>{const ne=I();return C!==void 0?C:w.includes("top")?`${ne}-slide-down`:`${ne}-slide-up`},[I,w,C]),A=d.useMemo(()=>w?w.includes("Center")?w.slice(0,w.indexOf("Center")):w:N==="rtl"?"bottomRight":"bottomLeft",[w,N]),j=I("dropdown",a),F=gn(j),[M,V,K]=pge(j,F),[,L]=Ga(),B=d.Children.only(Gpe(i)?d.createElement("span",null,i):i),W=pa(B,{className:ce(`${j}-trigger`,{[`${j}-rtl`]:N==="rtl"},B.props.className),disabled:(t=B.props.disabled)!==null&&t!==void 0?t:s}),H=s?[]:o,U=!!(H!=null&&H.includes("contextMenu")),[X,Y]=br(!1,{value:v??g}),G=qt(ne=>{p==null||p(ne,{source:"trigger"}),y==null||y(ne),Y(ne)}),Q=ce(f,m,V,K,F,D==null?void 0:D.className,{[`${j}-rtl`]:N==="rtl"}),J=sW({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:S,offset:L.marginXXS,arrowWidth:n?L.sizePopupArrow:0,borderRadius:L.borderRadius}),z=qt(()=>{r!=null&&r.selectable&&(r!=null&&r.multiple)||(p==null||p(!1,{source:"menu"}),Y(!1))}),fe=()=>{let ne;return r!=null&&r.items?ne=d.createElement(wI,Object.assign({},r)):typeof E=="function"?ne=E():ne=E,k&&(ne=k(ne)),ne=d.Children.only(typeof ne=="string"?d.createElement("span",null,ne):ne),d.createElement(jW,{prefixCls:`${j}-menu`,rootClassName:ce(K,F),expandIcon:d.createElement("span",{className:`${j}-menu-submenu-arrow`},N==="rtl"?d.createElement(vd,{className:`${j}-menu-submenu-arrow-icon`}):d.createElement(md,{className:`${j}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:z,validator:({mode:he})=>{}},ne)},[te,re]=uu("Dropdown",h==null?void 0:h.zIndex);let q=d.createElement(yW,Object.assign({alignPoint:U},Er(e,["rootClassName"]),{mouseEnterDelay:x,mouseLeaveDelay:b,visible:X,builtinPlacements:J,arrow:!!n,overlayClassName:Q,prefixCls:j,getPopupContainer:u||T,transitionName:R,trigger:H,overlay:fe,placement:A,onVisibleChange:G,overlayStyle:Object.assign(Object.assign(Object.assign({},D==null?void 0:D.style),h),{zIndex:te}),autoDestroy:O??_}),W);return te&&(q=d.createElement(eS.Provider,{value:re},q)),M(q)},vge=xv(CI,"align",void 0,"dropdown",e=>e),gge=e=>d.createElement(vge,Object.assign({},e),d.createElement("span",null));CI._InternalPanelDoNotUseOrYouWillBeFired=gge;const LW=CI;var BW={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ru,function(){var r=1e3,n=6e4,a=36e5,i="millisecond",o="second",s="minute",l="hour",c="day",u="week",f="month",m="quarter",h="year",v="date",p="Invalid Date",g=/^(\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,x={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(k){var R=["th","st","nd","rd"],A=k%100;return"["+k+(R[(A-20)%10]||R[A]||R[0])+"]"}},b=function(k,R,A){var j=String(k);return!j||j.length>=R?k:""+Array(R+1-j.length).join(A)+k},S={s:b,z:function(k){var R=-k.utcOffset(),A=Math.abs(R),j=Math.floor(A/60),F=A%60;return(R<=0?"+":"-")+b(j,2,"0")+":"+b(F,2,"0")},m:function k(R,A){if(R.date()1)return k(V[0])}else{var K=R.name;E[K]=R,F=K}return!j&&F&&(w=F),F||!j&&w},T=function(k,R){if(O(k))return k.clone();var A=typeof R=="object"?R:{};return A.date=k,A.args=arguments,new N(A)},I=S;I.l=_,I.i=O,I.w=function(k,R){return T(k,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var N=function(){function k(A){this.$L=_(A.locale,null,!0),this.parse(A),this.$x=this.$x||A.x||{},this[C]=!0}var R=k.prototype;return R.parse=function(A){this.$d=function(j){var F=j.date,M=j.utc;if(F===null)return new Date(NaN);if(I.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var V=F.match(g);if(V){var K=V[2]-1||0,L=(V[7]||"0").substring(0,3);return M?new Date(Date.UTC(V[1],K,V[3]||1,V[4]||0,V[5]||0,V[6]||0,L)):new Date(V[1],K,V[3]||1,V[4]||0,V[5]||0,V[6]||0,L)}}return new Date(F)}(A),this.init()},R.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},R.$utils=function(){return I},R.isValid=function(){return this.$d.toString()!==p},R.isSame=function(A,j){var F=T(A);return this.startOf(j)<=F&&F<=this.endOf(j)},R.isAfter=function(A,j){return T(A)25){var u=o(this).startOf(n).add(1,n).date(c),f=o(this).endOf(r);if(u.isBefore(f))return 1}var m=o(this).startOf(n).date(c).startOf(r).subtract(1,"millisecond"),h=this.diff(m,r,!0);return h<0?o(this).startOf("week").week():Math.ceil(h)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(VW);var wge=VW.exports;const Cge=sa(wge);var UW={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ru,function(){return function(r,n){n.prototype.weekYear=function(){var a=this.month(),i=this.week(),o=this.year();return i===1&&a===11?o+1:a===0&&i>=52?o-1:o}}})})(UW);var Ege=UW.exports;const $ge=sa(Ege);var KW={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ru,function(){return function(r,n){var a=n.prototype,i=a.format;a.format=function(o){var s=this,l=this.$locale();if(!this.isValid())return i.bind(this)(o);var c=this.$utils(),u=(o||"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(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return i.bind(this)(u)}}})})(KW);var _ge=KW.exports;const Oge=sa(_ge);var GW={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ru,function(){var r={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"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,i=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(g){return(g=+g)+(g>68?1900:2e3)},u=function(g){return function(y){this[g]=+y}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var x=y.match(/([+-]|\d\d)/g),b=60*x[1]+(+x[2]||0);return b===0?0:x[0]==="+"?-b:b}(g)}],m=function(g){var y=l[g];return y&&(y.indexOf?y:y.s.concat(y.f))},h=function(g,y){var x,b=l.meridiem;if(b){for(var S=1;S<=24;S+=1)if(g.indexOf(b(S,0,y))>-1){x=S>12;break}}else x=g===(y?"pm":"PM");return x},v={A:[s,function(g){this.afternoon=h(g,!1)}],a:[s,function(g){this.afternoon=h(g,!0)}],Q:[a,function(g){this.month=3*(g-1)+1}],S:[a,function(g){this.milliseconds=100*+g}],SS:[i,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[o,u("seconds")],ss:[o,u("seconds")],m:[o,u("minutes")],mm:[o,u("minutes")],H:[o,u("hours")],h:[o,u("hours")],HH:[o,u("hours")],hh:[o,u("hours")],D:[o,u("day")],DD:[i,u("day")],Do:[s,function(g){var y=l.ordinal,x=g.match(/\d+/);if(this.day=x[0],y)for(var b=1;b<=31;b+=1)y(b).replace(/\[|\]/g,"")===g&&(this.day=b)}],w:[o,u("week")],ww:[i,u("week")],M:[o,u("month")],MM:[i,u("month")],MMM:[s,function(g){var y=m("months"),x=(m("monthsShort")||y.map(function(b){return b.slice(0,3)})).indexOf(g)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[s,function(g){var y=m("months").indexOf(g)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(g){this.year=c(g)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function p(g){var y,x;y=g,x=l&&l.formats;for(var b=(g=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(T,I,N){var D=N&&N.toUpperCase();return I||x[N]||r[N]||x[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(k,R,A){return R||A.slice(1)})})).match(n),S=b.length,w=0;w-1)return new Date((F==="X"?1e3:1)*j);var K=p(F)(j),L=K.year,B=K.month,W=K.day,H=K.hours,U=K.minutes,X=K.seconds,Y=K.milliseconds,G=K.zone,Q=K.week,J=new Date,z=W||(L||B?1:J.getDate()),fe=L||J.getFullYear(),te=0;L&&!B||(te=B>0?B-1:J.getMonth());var re,q=H||0,ne=U||0,he=X||0,xe=Y||0;return G?new Date(Date.UTC(fe,te,z,q,ne,he,xe+60*G.offset*1e3)):M?new Date(Date.UTC(fe,te,z,q,ne,he,xe)):(re=new Date(fe,te,z,q,ne,he,xe),Q&&(re=V(re).week(Q).toDate()),re)}catch{return new Date("")}}(E,_,C,x),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),N&&E!=this.format(_)&&(this.$d=new Date("")),l={}}else if(_ instanceof Array)for(var k=_.length,R=1;R<=k;R+=1){O[1]=_[R-1];var A=x.apply(this,O);if(A.isValid()){this.$d=A.$d,this.$L=A.$L,this.init();break}R===k&&(this.$d=new Date(""))}else S.call(this,w)}}})})(GW);var Tge=GW.exports;const Pge=sa(Tge);Zn.extend(Pge);Zn.extend(Oge);Zn.extend(xge);Zn.extend(Sge);Zn.extend(Cge);Zn.extend($ge);Zn.extend(function(e,t){var r=t.prototype,n=r.format;r.format=function(i){var o=(i||"").replace("Wo","wo");return n.bind(this)(o)}});var Ige={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"},Cu=function(t){var r=Ige[t];return r||t.split("_")[0]},Nge={getNow:function(){var t=Zn();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return Zn(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var r=t.locale("en");return r.weekday()+r.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,r){return t.add(r,"year")},addMonth:function(t,r){return t.add(r,"month")},addDate:function(t,r){return t.add(r,"day")},setYear:function(t,r){return t.year(r)},setMonth:function(t,r){return t.month(r)},setDate:function(t,r){return t.date(r)},setHour:function(t,r){return t.hour(r)},setMinute:function(t,r){return t.minute(r)},setSecond:function(t,r){return t.second(r)},setMillisecond:function(t,r){return t.millisecond(r)},isAfter:function(t,r){return t.isAfter(r)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return Zn().locale(Cu(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,r){return r.locale(Cu(t)).weekday(0)},getWeek:function(t,r){return r.locale(Cu(t)).week()},getShortWeekDays:function(t){return Zn().locale(Cu(t)).localeData().weekdaysMin()},getShortMonths:function(t){return Zn().locale(Cu(t)).localeData().monthsShort()},format:function(t,r,n){return r.locale(Cu(t)).format(n)},parse:function(t,r,n){for(var a=Cu(t),i=0;i2&&arguments[2]!==void 0?arguments[2]:"0",n=String(e);n.length2&&arguments[2]!==void 0?arguments[2]:[],n=d.useState([!1,!1]),a=me(n,2),i=a[0],o=a[1],s=function(u,f){o(function(m){return Th(m,f,u)})},l=d.useMemo(function(){return i.map(function(c,u){if(c)return!0;var f=e[u];return f?!!(!r[u]&&!f||f&&t(f,{activeIndex:u})):!1})},[e,i,t,r]);return[l,s]}function JW(e,t,r,n,a){var i="",o=[];return e&&o.push(a?"hh":"HH"),t&&o.push("mm"),r&&o.push("ss"),i=o.join(":"),n&&(i+=".SSS"),a&&(i+=" A"),i}function Age(e,t,r,n,a,i){var o=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,f=e.fieldWeekFormat,m=e.fieldQuarterFormat,h=e.yearFormat,v=e.cellYearFormat,p=e.cellQuarterFormat,g=e.dayFormat,y=e.cellDateFormat,x=JW(t,r,n,a,i);return ae(ae({},e),{},{fieldDateTimeFormat:o||"YYYY-MM-DD ".concat(x),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||x,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:m||"YYYY-[Q]Q",yearFormat:h||"YYYY",cellYearFormat:v||"YYYY",cellQuarterFormat:p||"[Q]Q",cellDateFormat:y||g||"D"})}function eV(e,t){var r=t.showHour,n=t.showMinute,a=t.showSecond,i=t.showMillisecond,o=t.use12Hours;return ve.useMemo(function(){return Age(e,r,n,a,i,o)},[e,r,n,a,i,o])}function Bm(e,t,r){return r??t.some(function(n){return e.includes(n)})}var Mge=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function Dge(e){var t=TS(e,Mge),r=e.format,n=e.picker,a=null;return r&&(a=r,Array.isArray(a)&&(a=a[0]),a=bt(a)==="object"?a.format:a),n==="time"&&(t.format=a),[t,a]}function jge(e){return e&&typeof e=="string"}function tV(e,t,r,n){return[e,t,r,n].some(function(a){return a!==void 0})}function rV(e,t,r,n,a){var i=t,o=r,s=n;if(!e&&!i&&!o&&!s&&!a)i=!0,o=!0,s=!0;else if(e){var l,c,u,f=[i,o,s].some(function(v){return v===!1}),m=[i,o,s].some(function(v){return v===!0}),h=f?!0:!m;i=(l=i)!==null&&l!==void 0?l:h,o=(c=o)!==null&&c!==void 0?c:h,s=(u=s)!==null&&u!==void 0?u:h}return[i,o,s,a]}function nV(e){var t=e.showTime,r=Dge(e),n=me(r,2),a=n[0],i=n[1],o=t&&bt(t)==="object"?t:{},s=ae(ae({defaultOpenValue:o.defaultOpenValue||o.defaultValue},a),o),l=s.showMillisecond,c=s.showHour,u=s.showMinute,f=s.showSecond,m=tV(c,u,f,l),h=rV(m,c,u,f,l),v=me(h,3);return c=v[0],u=v[1],f=v[2],[s,ae(ae({},s),{},{showHour:c,showMinute:u,showSecond:f,showMillisecond:l}),s.format,i]}function aV(e,t,r,n,a){var i=e==="time";if(e==="datetime"||i){for(var o=n,s=XW(e,a,null),l=s,c=[t,r],u=0;u1&&(o=t.addDate(o,-7)),o}function ma(e,t){var r=t.generateConfig,n=t.locale,a=t.format;return e?typeof a=="function"?a(e):r.locale.format(n.locale,e,a):""}function s1(e,t,r){var n=t,a=["getHour","getMinute","getSecond","getMillisecond"],i=["setHour","setMinute","setSecond","setMillisecond"];return i.forEach(function(o,s){r?n=e[o](n,e[a[s]](r)):n=e[o](n,0)}),n}function zge(e,t,r,n,a){var i=qt(function(o,s){return!!(r&&r(o,s)||n&&e.isAfter(n,o)&&!ii(e,t,n,o,s.type)||a&&e.isAfter(o,a)&&!ii(e,t,a,o,s.type))});return i}function Hge(e,t,r){return d.useMemo(function(){var n=XW(e,t,r),a=Bd(n),i=a[0],o=bt(i)==="object"&&i.type==="mask"?i.format:null;return[a.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),o]},[e,t,r])}function Wge(e,t,r){return typeof e[0]=="function"||r?!0:t}function Vge(e,t,r,n){var a=qt(function(i,o){var s=ae({type:t},o);if(delete s.activeIndex,!e.isValidate(i)||r&&r(i,s))return!0;if((t==="date"||t==="time")&&n){var l,c=o&&o.activeIndex===1?"end":"start",u=((l=n.disabledTime)===null||l===void 0?void 0:l.call(n,i,c,{from:s.from}))||{},f=u.disabledHours,m=u.disabledMinutes,h=u.disabledSeconds,v=u.disabledMilliseconds,p=n.disabledHours,g=n.disabledMinutes,y=n.disabledSeconds,x=f||p,b=m||g,S=h||y,w=e.getHour(i),E=e.getMinute(i),C=e.getSecond(i),O=e.getMillisecond(i);if(x&&x().includes(w)||b&&b(w).includes(E)||S&&S(w,E).includes(C)||v&&v(w,E,C).includes(O))return!0}return!1});return a}function Yg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=d.useMemo(function(){var n=e&&Bd(e);return t&&n&&(n[1]=n[1]||n[0]),n},[e,t]);return r}function sV(e,t){var r=e.generateConfig,n=e.locale,a=e.picker,i=a===void 0?"date":a,o=e.prefixCls,s=o===void 0?"rc-picker":o,l=e.styles,c=l===void 0?{}:l,u=e.classNames,f=u===void 0?{}:u,m=e.order,h=m===void 0?!0:m,v=e.components,p=v===void 0?{}:v,g=e.inputRender,y=e.allowClear,x=e.clearIcon,b=e.needConfirm,S=e.multiple,w=e.format,E=e.inputReadOnly,C=e.disabledDate,O=e.minDate,_=e.maxDate,T=e.showTime,I=e.value,N=e.defaultValue,D=e.pickerValue,k=e.defaultPickerValue,R=Yg(I),A=Yg(N),j=Yg(D),F=Yg(k),M=i==="date"&&T?"datetime":i,V=M==="time"||M==="datetime",K=V||S,L=b??V,B=nV(e),W=me(B,4),H=W[0],U=W[1],X=W[2],Y=W[3],G=eV(n,U),Q=d.useMemo(function(){return aV(M,X,Y,H,G)},[M,X,Y,H,G]),J=d.useMemo(function(){return ae(ae({},e),{},{prefixCls:s,locale:G,picker:i,styles:c,classNames:f,order:h,components:ae({input:g},p),clearIcon:Fge(s,y,x),showTime:Q,value:R,defaultValue:A,pickerValue:j,defaultPickerValue:F},t==null?void 0:t())},[e]),z=Hge(M,G,w),fe=me(z,2),te=fe[0],re=fe[1],q=Wge(te,E,S),ne=zge(r,n,C,O,_),he=Vge(r,i,ne,Q),xe=d.useMemo(function(){return ae(ae({},J),{},{needConfirm:L,inputReadOnly:q,disabledDate:ne})},[J,L,q,ne]);return[xe,M,K,te,re,he]}function Uge(e,t,r){var n=br(t,{value:e}),a=me(n,2),i=a[0],o=a[1],s=ve.useRef(e),l=ve.useRef(),c=function(){Ut.cancel(l.current)},u=qt(function(){o(s.current),r&&i!==s.current&&r(s.current)}),f=qt(function(m,h){c(),s.current=m,m||h?u():l.current=Ut(u)});return ve.useEffect(function(){return c},[]),[i,f]}function lV(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=arguments.length>3?arguments[3]:void 0,a=r.every(function(u){return u})?!1:e,i=Uge(a,t||!1,n),o=me(i,2),s=o[0],l=o[1];function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||s)&&l(u,f.force)}return[s,c]}function cV(e){var t=d.useRef();return d.useImperativeHandle(e,function(){var r;return{nativeElement:(r=t.current)===null||r===void 0?void 0:r.nativeElement,focus:function(a){var i;(i=t.current)===null||i===void 0||i.focus(a)},blur:function(){var a;(a=t.current)===null||a===void 0||a.blur()}}}),t}function uV(e,t){return d.useMemo(function(){return e||(t?(Br(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(r){var n=me(r,2),a=n[0],i=n[1];return{label:a,value:i}})):[])},[e,t])}function TI(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,n=d.useRef(t);n.current=t,Yu(function(){if(e)n.current(e);else{var a=Ut(function(){n.current(e)},r);return function(){Ut.cancel(a)}}},[e])}function dV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=d.useState(0),a=me(n,2),i=a[0],o=a[1],s=d.useState(!1),l=me(s,2),c=l[0],u=l[1],f=d.useRef([]),m=d.useRef(null),h=d.useRef(null),v=function(S){m.current=S},p=function(S){return m.current===S},g=function(S){u(S)},y=function(S){return S&&(h.current=S),h.current},x=function(S){var w=f.current,E=new Set(w.filter(function(O){return S[O]||t[O]})),C=w[w.length-1]===0?1:0;return E.size>=2||e[C]?null:C};return TI(c||r,function(){c||(f.current=[],v(null))}),d.useEffect(function(){c&&f.current.push(i)},[c,i]),[c,g,y,i,o,x,f.current,v,p]}function Kge(e,t,r,n,a,i){var o=r[r.length-1],s=function(c,u){var f=me(e,2),m=f[0],h=f[1],v=ae(ae({},u),{},{from:YW(e,r)});return o===1&&t[0]&&m&&!ii(n,a,m,c,v.type)&&n.isAfter(m,c)||o===0&&t[1]&&h&&!ii(n,a,h,c,v.type)&&n.isAfter(c,h)?!0:i==null?void 0:i(c,v)};return s}function lh(e,t,r,n){switch(t){case"date":case"week":return e.addMonth(r,n);case"month":case"quarter":return e.addYear(r,n);case"year":return e.addYear(r,n*10);case"decade":return e.addYear(r,n*100);default:return r}}var _2=[];function fV(e,t,r,n,a,i,o,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:_2,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:_2,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:_2,f=arguments.length>11?arguments[11]:void 0,m=arguments.length>12?arguments[12]:void 0,h=arguments.length>13?arguments[13]:void 0,v=o==="time",p=i||0,g=function(j){var F=e.getNow();return v&&(F=s1(e,F)),l[j]||r[j]||F},y=me(c,2),x=y[0],b=y[1],S=br(function(){return g(0)},{value:x}),w=me(S,2),E=w[0],C=w[1],O=br(function(){return g(1)},{value:b}),_=me(O,2),T=_[0],I=_[1],N=d.useMemo(function(){var A=[E,T][p];return v?A:s1(e,A,u[p])},[v,E,T,p,e,u]),D=function(j){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",M=[C,I][p];M(j);var V=[E,T];V[p]=j,f&&(!ii(e,t,E,V[0],o)||!ii(e,t,T,V[1],o))&&f(V,{source:F,range:p===1?"end":"start",mode:n})},k=function(j,F){if(s){var M={date:"month",week:"month",month:"year",quarter:"year"},V=M[o];if(V&&!ii(e,t,j,F,V))return lh(e,o,F,-1);if(o==="year"&&j){var K=Math.floor(e.getYear(j)/10),L=Math.floor(e.getYear(F)/10);if(K!==L)return lh(e,o,F,-1)}}return F},R=d.useRef(null);return Gt(function(){if(a&&!l[p]){var A=v?null:e.getNow();if(R.current!==null&&R.current!==p?A=[E,T][p^1]:r[p]?A=p===0?r[0]:k(r[0],r[1]):r[p^1]&&(A=r[p^1]),A){m&&e.isAfter(m,A)&&(A=m);var j=s?lh(e,o,A,1):A;h&&e.isAfter(j,h)&&(A=s?lh(e,o,h,-1):h),D(A,"reset")}}},[a,p,r[p]]),d.useEffect(function(){a?R.current=p:R.current=null},[a,p]),Gt(function(){a&&l&&l[p]&&D(l[p],"reset")},[a,p]),[N,D]}function mV(e,t){var r=d.useRef(e),n=d.useState({}),a=me(n,2),i=a[1],o=function(c){return c&&t!==void 0?t:r.current},s=function(c){r.current=c,i({})};return[o,s,o(!0)]}var Gge=[];function hV(e,t,r){var n=function(o){return o.map(function(s){return ma(s,{generateConfig:e,locale:t,format:r[0]})})},a=function(o,s){for(var l=Math.max(o.length,s.length),c=-1,u=0;u2&&arguments[2]!==void 0?arguments[2]:1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,o=[],s=r>=1?r|0:1,l=e;l<=t;l+=s){var c=a.includes(l);(!c||!n)&&o.push({label:EI(l,i),value:l,disabled:c})}return o}function PI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=t||{},a=n.use12Hours,i=n.hourStep,o=i===void 0?1:i,s=n.minuteStep,l=s===void 0?1:s,c=n.secondStep,u=c===void 0?1:c,f=n.millisecondStep,m=f===void 0?100:f,h=n.hideDisabledOptions,v=n.disabledTime,p=n.disabledHours,g=n.disabledMinutes,y=n.disabledSeconds,x=d.useMemo(function(){return r||e.getNow()},[r,e]),b=d.useCallback(function(F){var M=(v==null?void 0:v(F))||{};return[M.disabledHours||p||Qg,M.disabledMinutes||g||Qg,M.disabledSeconds||y||Qg,M.disabledMilliseconds||Qg]},[v,p,g,y]),S=d.useMemo(function(){return b(x)},[x,b]),w=me(S,4),E=w[0],C=w[1],O=w[2],_=w[3],T=d.useCallback(function(F,M,V,K){var L=Zg(0,23,o,h,F()),B=a?L.map(function(X){return ae(ae({},X),{},{label:EI(X.value%12||12,2)})}):L,W=function(Y){return Zg(0,59,l,h,M(Y))},H=function(Y,G){return Zg(0,59,u,h,V(Y,G))},U=function(Y,G,Q){return Zg(0,999,m,h,K(Y,G,Q),3)};return[B,W,H,U]},[h,o,a,m,l,u]),I=d.useMemo(function(){return T(E,C,O,_)},[T,E,C,O,_]),N=me(I,4),D=N[0],k=N[1],R=N[2],A=N[3],j=function(M,V){var K=function(){return D},L=k,B=R,W=A;if(V){var H=b(V),U=me(H,4),X=U[0],Y=U[1],G=U[2],Q=U[3],J=T(X,Y,G,Q),z=me(J,4),fe=z[0],te=z[1],re=z[2],q=z[3];K=function(){return fe},L=te,B=re,W=q}var ne=Xge(M,K,L,B,W,e);return ne};return[j,D,k,R,A]}function Yge(e){var t=e.mode,r=e.internalMode,n=e.renderExtraFooter,a=e.showNow,i=e.showTime,o=e.onSubmit,s=e.onNow,l=e.invalid,c=e.needConfirm,u=e.generateConfig,f=e.disabledDate,m=d.useContext(Is),h=m.prefixCls,v=m.locale,p=m.button,g=p===void 0?"button":p,y=u.getNow(),x=PI(u,i,y),b=me(x,1),S=b[0],w=n==null?void 0:n(t),E=f(y,{type:t}),C=function(){if(!E){var k=S(y);s(k)}},O="".concat(h,"-now"),_="".concat(O,"-btn"),T=a&&d.createElement("li",{className:O},d.createElement("a",{className:ce(_,E&&"".concat(_,"-disabled")),"aria-disabled":E,onClick:C},r==="date"?v.today:v.now)),I=c&&d.createElement("li",{className:"".concat(h,"-ok")},d.createElement(g,{disabled:l,onClick:o},v.ok)),N=(T||I)&&d.createElement("ul",{className:"".concat(h,"-ranges")},T,I);return!w&&!N?null:d.createElement("div",{className:"".concat(h,"-footer")},w&&d.createElement("div",{className:"".concat(h,"-footer-extra")},w),N)}function xV(e,t,r){function n(a,i){var o=a.findIndex(function(l){return ii(e,t,l,i,r)});if(o===-1)return[].concat(De(a),[i]);var s=De(a);return s.splice(o,1),s}return n}var zd=d.createContext(null);function IS(){return d.useContext(zd)}function rm(e,t){var r=e.prefixCls,n=e.generateConfig,a=e.locale,i=e.disabledDate,o=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,f=e.onHover,m=e.values,h=e.pickerValue,v=e.onSelect,p=e.prevIcon,g=e.nextIcon,y=e.superPrevIcon,x=e.superNextIcon,b=n.getNow(),S={now:b,values:m,pickerValue:h,prefixCls:r,disabledDate:i,minDate:o,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:f,locale:a,generateConfig:n,onSelect:v,panelType:t,prevIcon:p,nextIcon:g,superPrevIcon:y,superNextIcon:x};return[S,b]}var Dc=d.createContext({});function $v(e){for(var t=e.rowNum,r=e.colNum,n=e.baseDate,a=e.getCellDate,i=e.prefixColumn,o=e.rowClassName,s=e.titleFormat,l=e.getCellText,c=e.getCellClassName,u=e.headerCells,f=e.cellSelection,m=f===void 0?!0:f,h=e.disabledDate,v=IS(),p=v.prefixCls,g=v.panelType,y=v.now,x=v.disabledDate,b=v.cellRender,S=v.onHover,w=v.hoverValue,E=v.hoverRangeValue,C=v.generateConfig,O=v.values,_=v.locale,T=v.onSelect,I=h||x,N="".concat(p,"-cell"),D=d.useContext(Dc),k=D.onCellDblClick,R=function(B){return O.some(function(W){return W&&ii(C,_,B,W,g)})},A=[],j=0;j1&&arguments[1]!==void 0?arguments[1]:!1;be(Me),g==null||g(Me),ge&&_e(Me)},Be=function(Me,ge){G(Me),ge&&$e(ge),_e(ge,Me)},Fe=function(Me){if(he(Me),$e(Me),Y!==S){var ge=["decade","year"],Se=[].concat(ge,["month"]),Re={quarter:[].concat(ge,["quarter"]),week:[].concat(De(Se),["week"]),date:[].concat(De(Se),["date"])},We=Re[S]||Se,at=We.indexOf(Y),yt=We[at+1];yt&&Be(yt,Me)}},nt=d.useMemo(function(){var Oe,Me;if(Array.isArray(C)){var ge=me(C,2);Oe=ge[0],Me=ge[1]}else Oe=C;return!Oe&&!Me?null:(Oe=Oe||Me,Me=Me||Oe,a.isAfter(Oe,Me)?[Me,Oe]:[Oe,Me])},[C,a]),qe=$I(O,_,T),Ge=N[Q]||lye[Q]||NS,Le=d.useContext(Dc),Ne=d.useMemo(function(){return ae(ae({},Le),{},{hideHeader:D})},[Le,D]),we="".concat(k,"-panel"),je=TS(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return d.createElement(Dc.Provider,{value:Ne},d.createElement("div",{ref:R,tabIndex:l,className:ce(we,ee({},"".concat(we,"-rtl"),i==="rtl"))},d.createElement(Ge,Te({},je,{showTime:W,prefixCls:k,locale:L,generateConfig:a,onModeChange:Be,pickerValue:pe,onPickerValueChange:function(Me){$e(Me,!0)},value:q[0],onSelect:Fe,values:q,cellRender:qe,hoverRangeValue:nt,hoverValue:E}))))}var O2=d.memo(d.forwardRef(cye));function uye(e){var t=e.picker,r=e.multiplePanel,n=e.pickerValue,a=e.onPickerValueChange,i=e.needConfirm,o=e.onSubmit,s=e.range,l=e.hoverValue,c=d.useContext(Is),u=c.prefixCls,f=c.generateConfig,m=d.useCallback(function(x,b){return lh(f,t,x,b)},[f,t]),h=d.useMemo(function(){return m(n,1)},[n,m]),v=function(b){a(m(b,-1))},p={onCellDblClick:function(){i&&o()}},g=t==="time",y=ae(ae({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:g});return s?y.hoverRangeValue=l:y.hoverValue=l,r?d.createElement("div",{className:"".concat(u,"-panels")},d.createElement(Dc.Provider,{value:ae(ae({},p),{},{hideNext:!0})},d.createElement(O2,y)),d.createElement(Dc.Provider,{value:ae(ae({},p),{},{hidePrev:!0})},d.createElement(O2,Te({},y,{pickerValue:h,onPickerValueChange:v})))):d.createElement(Dc.Provider,{value:ae({},p)},d.createElement(O2,y))}function iD(e){return typeof e=="function"?e():e}function dye(e){var t=e.prefixCls,r=e.presets,n=e.onClick,a=e.onHover;return r.length?d.createElement("div",{className:"".concat(t,"-presets")},d.createElement("ul",null,r.map(function(i,o){var s=i.label,l=i.value;return d.createElement("li",{key:o,onClick:function(){n(iD(l))},onMouseEnter:function(){a(iD(l))},onMouseLeave:function(){a(null)}},s)}))):null}function SV(e){var t=e.panelRender,r=e.internalMode,n=e.picker,a=e.showNow,i=e.range,o=e.multiple,s=e.activeInfo,l=s===void 0?[0,0,0]:s,c=e.presets,u=e.onPresetHover,f=e.onPresetSubmit,m=e.onFocus,h=e.onBlur,v=e.onPanelMouseDown,p=e.direction,g=e.value,y=e.onSelect,x=e.isInvalid,b=e.defaultOpenValue,S=e.onOk,w=e.onSubmit,E=d.useContext(Is),C=E.prefixCls,O="".concat(C,"-panel"),_=p==="rtl",T=d.useRef(null),I=d.useRef(null),N=d.useState(0),D=me(N,2),k=D[0],R=D[1],A=d.useState(0),j=me(A,2),F=j[0],M=j[1],V=d.useState(0),K=me(V,2),L=K[0],B=K[1],W=function(Fe){Fe.width&&R(Fe.width)},H=me(l,3),U=H[0],X=H[1],Y=H[2],G=d.useState(0),Q=me(G,2),J=Q[0],z=Q[1];d.useEffect(function(){z(10)},[U]),d.useEffect(function(){if(i&&I.current){var Be,Fe=((Be=T.current)===null||Be===void 0?void 0:Be.offsetWidth)||0,nt=I.current.getBoundingClientRect();if(!nt.height||nt.right<0){z(function(Ne){return Math.max(0,Ne-1)});return}var qe=(_?X-Fe:U)-nt.left;if(B(qe),k&&k=s&&r<=l)return i;var c=Math.min(Math.abs(r-s),Math.abs(r-l));c0?Mt:Ft));var rt=xt+ft,Ye=Ft-Mt+1;return String(Mt+(Ye+rt-Mt)%Ye)};switch(Me){case"Backspace":case"Delete":ge="",Se=We;break;case"ArrowLeft":ge="",at(-1);break;case"ArrowRight":ge="",at(1);break;case"ArrowUp":ge="",Se=yt(1);break;case"ArrowDown":ge="",Se=yt(-1);break;default:isNaN(Number(Me))||(ge=K+Me,Se=ge);break}if(ge!==null&&(L(ge),ge.length>=Re&&(at(1),L(""))),Se!==null){var tt=J.slice(0,ne)+EI(Se,Re)+J.slice(he);ye(tt.slice(0,o.length))}Q({})},Ne=d.useRef();Gt(function(){if(!(!D||!o||_e.current)){if(!te.match(J)){ye(o);return}return fe.current.setSelectionRange(ne,he),Ne.current=Ut(function(){fe.current.setSelectionRange(ne,he)}),function(){Ut.cancel(Ne.current)}}},[te,o,D,J,H,ne,he,G,ye]);var we=o?{onFocus:Fe,onBlur:qe,onKeyDown:Le,onMouseDown:$e,onMouseUp:Be,onPaste:be}:{};return d.createElement("div",{ref:z,className:ce(T,ee(ee({},"".concat(T,"-active"),r&&a),"".concat(T,"-placeholder"),c))},d.createElement(_,Te({ref:fe,"aria-invalid":p,autoComplete:"off"},y,{onKeyDown:Ge,onBlur:nt},we,{value:J,onChange:pe})),d.createElement(kS,{type:"suffix",icon:i}),g)}),yye=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],xye=["index"];function bye(e,t){var r=e.id,n=e.prefix,a=e.clearIcon,i=e.suffixIcon,o=e.separator,s=o===void 0?"~":o,l=e.activeIndex;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,f=e.className,m=e.style,h=e.onClick,v=e.onClear,p=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var g=e.disabled,y=e.invalid;e.inputReadOnly;var x=e.direction;e.onOpenChange;var b=e.onActiveInfo;e.placement;var S=e.onMouseDown;e.required,e["aria-required"];var w=e.autoFocus,E=e.tabIndex,C=Rt(e,yye),O=x==="rtl",_=d.useContext(Is),T=_.prefixCls,I=d.useMemo(function(){if(typeof r=="string")return[r];var G=r||{};return[G.start,G.end]},[r]),N=d.useRef(),D=d.useRef(),k=d.useRef(),R=function(Q){var J;return(J=[D,k][Q])===null||J===void 0?void 0:J.current};d.useImperativeHandle(t,function(){return{nativeElement:N.current,focus:function(Q){if(bt(Q)==="object"){var J,z=Q||{},fe=z.index,te=fe===void 0?0:fe,re=Rt(z,xye);(J=R(te))===null||J===void 0||J.focus(re)}else{var q;(q=R(Q??0))===null||q===void 0||q.focus()}},blur:function(){var Q,J;(Q=R(0))===null||Q===void 0||Q.blur(),(J=R(1))===null||J===void 0||J.blur()}}});var A=CV(C),j=d.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),F=wV(ae(ae({},e),{},{id:I,placeholder:j})),M=me(F,1),V=M[0],K=d.useState({position:"absolute",width:0}),L=me(K,2),B=L[0],W=L[1],H=qt(function(){var G=R(l);if(G){var Q=G.nativeElement.getBoundingClientRect(),J=N.current.getBoundingClientRect(),z=Q.left-J.left;W(function(fe){return ae(ae({},fe),{},{width:Q.width,left:z})}),b([Q.left,Q.right,J.width])}});d.useEffect(function(){H()},[l]);var U=a&&(p[0]&&!g[0]||p[1]&&!g[1]),X=w&&!g[0],Y=w&&!X&&!g[1];return d.createElement(Aa,{onResize:H},d.createElement("div",Te({},A,{className:ce(T,"".concat(T,"-range"),ee(ee(ee(ee({},"".concat(T,"-focused"),c),"".concat(T,"-disabled"),g.every(function(G){return G})),"".concat(T,"-invalid"),y.some(function(G){return G})),"".concat(T,"-rtl"),O),f),style:m,ref:N,onClick:h,onMouseDown:function(Q){var J=Q.target;J!==D.current.inputElement&&J!==k.current.inputElement&&Q.preventDefault(),S==null||S(Q)}}),n&&d.createElement("div",{className:"".concat(T,"-prefix")},n),d.createElement(J_,Te({ref:D},V(0),{autoFocus:X,tabIndex:E,"date-range":"start"})),d.createElement("div",{className:"".concat(T,"-range-separator")},s),d.createElement(J_,Te({ref:k},V(1),{autoFocus:Y,tabIndex:E,"date-range":"end"})),d.createElement("div",{className:"".concat(T,"-active-bar"),style:B}),d.createElement(kS,{type:"suffix",icon:i}),U&&d.createElement(Z_,{icon:a,onClear:v})))}var Sye=d.forwardRef(bye);function sD(e,t){var r=e??t;return Array.isArray(r)?r:[r,r]}function ey(e){return e===1?"end":"start"}function wye(e,t){var r=sV(e,function(){var Jt=e.disabled,dt=e.allowEmpty,$t=sD(Jt,!1),tr=sD(dt,!1);return{disabled:$t,allowEmpty:tr}}),n=me(r,6),a=n[0],i=n[1],o=n[2],s=n[3],l=n[4],c=n[5],u=a.prefixCls,f=a.styles,m=a.classNames,h=a.defaultValue,v=a.value,p=a.needConfirm,g=a.onKeyDown,y=a.disabled,x=a.allowEmpty,b=a.disabledDate,S=a.minDate,w=a.maxDate,E=a.defaultOpen,C=a.open,O=a.onOpenChange,_=a.locale,T=a.generateConfig,I=a.picker,N=a.showNow,D=a.showToday,k=a.showTime,R=a.mode,A=a.onPanelChange,j=a.onCalendarChange,F=a.onOk,M=a.defaultPickerValue,V=a.pickerValue,K=a.onPickerValueChange,L=a.inputReadOnly,B=a.suffixIcon,W=a.onFocus,H=a.onBlur,U=a.presets,X=a.ranges,Y=a.components,G=a.cellRender,Q=a.dateRender,J=a.monthCellRender,z=a.onClick,fe=cV(t),te=lV(C,E,y,O),re=me(te,2),q=re[0],ne=re[1],he=function(dt,$t){(y.some(function(tr){return!tr})||!dt)&&ne(dt,$t)},xe=vV(T,_,s,!0,!1,h,v,j,F),ye=me(xe,5),pe=ye[0],be=ye[1],_e=ye[2],$e=ye[3],Be=ye[4],Fe=_e(),nt=dV(y,x,q),qe=me(nt,9),Ge=qe[0],Le=qe[1],Ne=qe[2],we=qe[3],je=qe[4],Oe=qe[5],Me=qe[6],ge=qe[7],Se=qe[8],Re=function(dt,$t){Le(!0),W==null||W(dt,{range:ey($t??we)})},We=function(dt,$t){Le(!1),H==null||H(dt,{range:ey($t??we)})},at=d.useMemo(function(){if(!k)return null;var Jt=k.disabledTime,dt=Jt?function($t){var tr=ey(we),Sr=YW(Fe,Me,we);return Jt($t,tr,{from:Sr})}:void 0;return ae(ae({},k),{},{disabledTime:dt})},[k,we,Fe,Me]),yt=br([I,I],{value:R}),tt=me(yt,2),it=tt[0],ft=tt[1],lt=it[we]||I,mt=lt==="date"&&at?"datetime":lt,Mt=mt===I&&mt!=="time",Ft=yV(I,lt,N,D,!0),ht=gV(a,pe,be,_e,$e,y,s,Ge,q,c),St=me(ht,2),xt=St[0],rt=St[1],Ye=Kge(Fe,y,Me,T,_,b),Ze=ZW(Fe,c,x),ut=me(Ze,2),Z=ut[0],ue=ut[1],le=fV(T,_,Fe,it,q,we,i,Mt,M,V,at==null?void 0:at.defaultOpenValue,K,S,w),ie=me(le,2),oe=ie[0],de=ie[1],Ce=qt(function(Jt,dt,$t){var tr=Th(it,we,dt);if((tr[0]!==it[0]||tr[1]!==it[1])&&ft(tr),A&&$t!==!1){var Sr=De(Fe);Jt&&(Sr[we]=Jt),A(Sr,tr)}}),Ae=function(dt,$t){return Th(Fe,$t,dt)},Ee=function(dt,$t){var tr=Fe;dt&&(tr=Ae(dt,we)),ge(we);var Sr=Oe(tr);$e(tr),xt(we,Sr===null),Sr===null?he(!1,{force:!0}):$t||fe.current.focus({index:Sr})},Ie=function(dt){var $t,tr=dt.target.getRootNode();if(!fe.current.nativeElement.contains(($t=tr.activeElement)!==null&&$t!==void 0?$t:document.activeElement)){var Sr=y.findIndex(function(nn){return!nn});Sr>=0&&fe.current.focus({index:Sr})}he(!0),z==null||z(dt)},Pe=function(){rt(null),he(!1,{force:!0})},Xe=d.useState(null),ke=me(Xe,2),ze=ke[0],He=ke[1],Ve=d.useState(null),et=me(Ve,2),ot=et[0],wt=et[1],Lt=d.useMemo(function(){return ot||Fe},[Fe,ot]);d.useEffect(function(){q||wt(null)},[q]);var pt=d.useState([0,0,0]),Ot=me(pt,2),zt=Ot[0],pr=Ot[1],Ir=uV(U,X),Pr=function(dt){wt(dt),He("preset")},In=function(dt){var $t=rt(dt);$t&&he(!1,{force:!0})},dn=function(dt){Ee(dt)},zn=function(dt){wt(dt?Ae(dt,we):null),He("cell")},Hn=function(dt){he(!0),Re(dt)},la=function(){Ne("panel")},Wn=function(dt){var $t=Th(Fe,we,dt);$e($t),!p&&!o&&i===mt&&Ee(dt)},mr=function(){he(!1)},It=$I(G,Q,J,ey(we)),Pt=Fe[we]||null,cr=qt(function(Jt){return c(Jt,{activeIndex:we})}),_t=d.useMemo(function(){var Jt=Dn(a,!1),dt=Er(a,[].concat(De(Object.keys(Jt)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return dt},[a]),Tt=d.createElement(SV,Te({},_t,{showNow:Ft,showTime:at,range:!0,multiplePanel:Mt,activeInfo:zt,disabledDate:Ye,onFocus:Hn,onBlur:We,onPanelMouseDown:la,picker:I,mode:lt,internalMode:mt,onPanelChange:Ce,format:l,value:Pt,isInvalid:cr,onChange:null,onSelect:Wn,pickerValue:oe,defaultOpenValue:Bd(k==null?void 0:k.defaultOpenValue)[we],onPickerValueChange:de,hoverValue:Lt,onHover:zn,needConfirm:p,onSubmit:Ee,onOk:Be,presets:Ir,onPresetHover:Pr,onPresetSubmit:In,onNow:dn,cellRender:It})),nr=function(dt,$t){var tr=Ae(dt,$t);$e(tr)},Nr=function(){Ne("input")},Kr=function(dt,$t){var tr=Me.length,Sr=Me[tr-1];if(tr&&Sr!==$t&&p&&!x[Sr]&&!Se(Sr)&&Fe[Sr]){fe.current.focus({index:Sr});return}Ne("input"),he(!0,{inherit:!0}),we!==$t&&q&&!p&&o&&Ee(null,!0),je($t),Re(dt,$t)},Vn=function(dt,$t){if(he(!1),!p&&Ne()==="input"){var tr=Oe(Fe);xt(we,tr===null)}We(dt,$t)},xn=function(dt,$t){dt.key==="Tab"&&Ee(null,!0),g==null||g(dt,$t)},Un=d.useMemo(function(){return{prefixCls:u,locale:_,generateConfig:T,button:Y.button,input:Y.input}},[u,_,T,Y.button,Y.input]);return Gt(function(){q&&we!==void 0&&Ce(null,I,!1)},[q,we,I]),Gt(function(){var Jt=Ne();!q&&Jt==="input"&&(he(!1),Ee(null,!0)),!q&&o&&!p&&Jt==="panel"&&(he(!0),Ee())},[q]),d.createElement(Is.Provider,{value:Un},d.createElement(qW,Te({},QW(a),{popupElement:Tt,popupStyle:f.popup,popupClassName:m.popup,visible:q,onClose:mr,range:!0}),d.createElement(Sye,Te({},a,{ref:fe,suffixIcon:B,activeIndex:Ge||q?we:null,activeHelp:!!ot,allHelp:!!ot&&ze==="preset",focused:Ge,onFocus:Kr,onBlur:Vn,onKeyDown:xn,onSubmit:Ee,value:Lt,maskFormat:l,onChange:nr,onInputChange:Nr,format:s,inputReadOnly:L,disabled:y,open:q,onOpenChange:he,onClick:Ie,onClear:Pe,invalid:Z,onInvalid:ue,onActiveInfo:pr}))))}var Cye=d.forwardRef(wye);function Eye(e){var t=e.prefixCls,r=e.value,n=e.onRemove,a=e.removeIcon,i=a===void 0?"×":a,o=e.formatDate,s=e.disabled,l=e.maxTagCount,c=e.placeholder,u="".concat(t,"-selector"),f="".concat(t,"-selection"),m="".concat(f,"-overflow");function h(g,y){return d.createElement("span",{className:ce("".concat(f,"-item")),title:typeof g=="string"?g:null},d.createElement("span",{className:"".concat(f,"-item-content")},g),!s&&y&&d.createElement("span",{onMouseDown:function(b){b.preventDefault()},onClick:y,className:"".concat(f,"-item-remove")},i))}function v(g){var y=o(g),x=function(S){S&&S.stopPropagation(),n(g)};return h(y,x)}function p(g){var y="+ ".concat(g.length," ...");return h(y)}return d.createElement("div",{className:u},d.createElement(bs,{prefixCls:m,data:r,renderItem:v,renderRest:p,itemKey:function(y){return o(y)},maxCount:l}),!r.length&&d.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var $ye=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function _ye(e,t){e.id;var r=e.open,n=e.prefix,a=e.clearIcon,i=e.suffixIcon;e.activeHelp,e.allHelp;var o=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var s=e.locale,l=e.generateConfig,c=e.placeholder,u=e.className,f=e.style,m=e.onClick,h=e.onClear,v=e.internalPicker,p=e.value,g=e.onChange,y=e.onSubmit;e.onInputChange;var x=e.multiple,b=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var S=e.disabled,w=e.invalid;e.inputReadOnly;var E=e.direction;e.onOpenChange;var C=e.onMouseDown;e.required,e["aria-required"];var O=e.autoFocus,_=e.tabIndex,T=e.removeIcon,I=Rt(e,$ye),N=E==="rtl",D=d.useContext(Is),k=D.prefixCls,R=d.useRef(),A=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:R.current,focus:function(X){var Y;(Y=A.current)===null||Y===void 0||Y.focus(X)},blur:function(){var X;(X=A.current)===null||X===void 0||X.blur()}}});var j=CV(I),F=function(X){g([X])},M=function(X){var Y=p.filter(function(G){return G&&!ii(l,s,G,X,v)});g(Y),r||y()},V=wV(ae(ae({},e),{},{onChange:F}),function(U){var X=U.valueTexts;return{value:X[0]||"",active:o}}),K=me(V,2),L=K[0],B=K[1],W=!!(a&&p.length&&!S),H=x?d.createElement(d.Fragment,null,d.createElement(Eye,{prefixCls:k,value:p,onRemove:M,formatDate:B,maxTagCount:b,disabled:S,removeIcon:T,placeholder:c}),d.createElement("input",{className:"".concat(k,"-multiple-input"),value:p.map(B).join(","),ref:A,readOnly:!0,autoFocus:O,tabIndex:_}),d.createElement(kS,{type:"suffix",icon:i}),W&&d.createElement(Z_,{icon:a,onClear:h})):d.createElement(J_,Te({ref:A},L(),{autoFocus:O,tabIndex:_,suffixIcon:i,clearIcon:W&&d.createElement(Z_,{icon:a,onClear:h}),showActiveCls:!1}));return d.createElement("div",Te({},j,{className:ce(k,ee(ee(ee(ee(ee({},"".concat(k,"-multiple"),x),"".concat(k,"-focused"),o),"".concat(k,"-disabled"),S),"".concat(k,"-invalid"),w),"".concat(k,"-rtl"),N),u),style:f,ref:R,onClick:m,onMouseDown:function(X){var Y,G=X.target;G!==((Y=A.current)===null||Y===void 0?void 0:Y.inputElement)&&X.preventDefault(),C==null||C(X)}}),n&&d.createElement("div",{className:"".concat(k,"-prefix")},n),H)}var Oye=d.forwardRef(_ye);function Tye(e,t){var r=sV(e),n=me(r,6),a=n[0],i=n[1],o=n[2],s=n[3],l=n[4],c=n[5],u=a,f=u.prefixCls,m=u.styles,h=u.classNames,v=u.order,p=u.defaultValue,g=u.value,y=u.needConfirm,x=u.onChange,b=u.onKeyDown,S=u.disabled,w=u.disabledDate,E=u.minDate,C=u.maxDate,O=u.defaultOpen,_=u.open,T=u.onOpenChange,I=u.locale,N=u.generateConfig,D=u.picker,k=u.showNow,R=u.showToday,A=u.showTime,j=u.mode,F=u.onPanelChange,M=u.onCalendarChange,V=u.onOk,K=u.multiple,L=u.defaultPickerValue,B=u.pickerValue,W=u.onPickerValueChange,H=u.inputReadOnly,U=u.suffixIcon,X=u.removeIcon,Y=u.onFocus,G=u.onBlur,Q=u.presets,J=u.components,z=u.cellRender,fe=u.dateRender,te=u.monthCellRender,re=u.onClick,q=cV(t);function ne(_t){return _t===null?null:K?_t:_t[0]}var he=xV(N,I,i),xe=lV(_,O,[S],T),ye=me(xe,2),pe=ye[0],be=ye[1],_e=function(Tt,nr,Nr){if(M){var Kr=ae({},Nr);delete Kr.range,M(ne(Tt),ne(nr),Kr)}},$e=function(Tt){V==null||V(ne(Tt))},Be=vV(N,I,s,!1,v,p,g,_e,$e),Fe=me(Be,5),nt=Fe[0],qe=Fe[1],Ge=Fe[2],Le=Fe[3],Ne=Fe[4],we=Ge(),je=dV([S]),Oe=me(je,4),Me=Oe[0],ge=Oe[1],Se=Oe[2],Re=Oe[3],We=function(Tt){ge(!0),Y==null||Y(Tt,{})},at=function(Tt){ge(!1),G==null||G(Tt,{})},yt=br(D,{value:j}),tt=me(yt,2),it=tt[0],ft=tt[1],lt=it==="date"&&A?"datetime":it,mt=yV(D,it,k,R),Mt=x&&function(_t,Tt){x(ne(_t),ne(Tt))},Ft=gV(ae(ae({},a),{},{onChange:Mt}),nt,qe,Ge,Le,[],s,Me,pe,c),ht=me(Ft,2),St=ht[1],xt=ZW(we,c),rt=me(xt,2),Ye=rt[0],Ze=rt[1],ut=d.useMemo(function(){return Ye.some(function(_t){return _t})},[Ye]),Z=function(Tt,nr){if(W){var Nr=ae(ae({},nr),{},{mode:nr.mode[0]});delete Nr.range,W(Tt[0],Nr)}},ue=fV(N,I,we,[it],pe,Re,i,!1,L,B,Bd(A==null?void 0:A.defaultOpenValue),Z,E,C),le=me(ue,2),ie=le[0],oe=le[1],de=qt(function(_t,Tt,nr){if(ft(Tt),F&&nr!==!1){var Nr=_t||we[we.length-1];F(Nr,Tt)}}),Ce=function(){St(Ge()),be(!1,{force:!0})},Ae=function(Tt){!S&&!q.current.nativeElement.contains(document.activeElement)&&q.current.focus(),be(!0),re==null||re(Tt)},Ee=function(){St(null),be(!1,{force:!0})},Ie=d.useState(null),Pe=me(Ie,2),Xe=Pe[0],ke=Pe[1],ze=d.useState(null),He=me(ze,2),Ve=He[0],et=He[1],ot=d.useMemo(function(){var _t=[Ve].concat(De(we)).filter(function(Tt){return Tt});return K?_t:_t.slice(0,1)},[we,Ve,K]),wt=d.useMemo(function(){return!K&&Ve?[Ve]:we.filter(function(_t){return _t})},[we,Ve,K]);d.useEffect(function(){pe||et(null)},[pe]);var Lt=uV(Q),pt=function(Tt){et(Tt),ke("preset")},Ot=function(Tt){var nr=K?he(Ge(),Tt):[Tt],Nr=St(nr);Nr&&!K&&be(!1,{force:!0})},zt=function(Tt){Ot(Tt)},pr=function(Tt){et(Tt),ke("cell")},Ir=function(Tt){be(!0),We(Tt)},Pr=function(Tt){if(Se("panel"),!(K&<!==D)){var nr=K?he(Ge(),Tt):[Tt];Le(nr),!y&&!o&&i===lt&&Ce()}},In=function(){be(!1)},dn=$I(z,fe,te),zn=d.useMemo(function(){var _t=Dn(a,!1),Tt=Er(a,[].concat(De(Object.keys(_t)),["onChange","onCalendarChange","style","className","onPanelChange"]));return ae(ae({},Tt),{},{multiple:a.multiple})},[a]),Hn=d.createElement(SV,Te({},zn,{showNow:mt,showTime:A,disabledDate:w,onFocus:Ir,onBlur:at,picker:D,mode:it,internalMode:lt,onPanelChange:de,format:l,value:we,isInvalid:c,onChange:null,onSelect:Pr,pickerValue:ie,defaultOpenValue:A==null?void 0:A.defaultOpenValue,onPickerValueChange:oe,hoverValue:ot,onHover:pr,needConfirm:y,onSubmit:Ce,onOk:Ne,presets:Lt,onPresetHover:pt,onPresetSubmit:Ot,onNow:zt,cellRender:dn})),la=function(Tt){Le(Tt)},Wn=function(){Se("input")},mr=function(Tt){Se("input"),be(!0,{inherit:!0}),We(Tt)},It=function(Tt){be(!1),at(Tt)},Pt=function(Tt,nr){Tt.key==="Tab"&&Ce(),b==null||b(Tt,nr)},cr=d.useMemo(function(){return{prefixCls:f,locale:I,generateConfig:N,button:J.button,input:J.input}},[f,I,N,J.button,J.input]);return Gt(function(){pe&&Re!==void 0&&de(null,D,!1)},[pe,Re,D]),Gt(function(){var _t=Se();!pe&&_t==="input"&&(be(!1),Ce()),!pe&&o&&!y&&_t==="panel"&&Ce()},[pe]),d.createElement(Is.Provider,{value:cr},d.createElement(qW,Te({},QW(a),{popupElement:Hn,popupStyle:m.popup,popupClassName:h.popup,visible:pe,onClose:In}),d.createElement(Oye,Te({},a,{ref:q,suffixIcon:U,removeIcon:X,activeHelp:!!Ve,allHelp:!!Ve&&Xe==="preset",focused:Me,onFocus:mr,onBlur:It,onKeyDown:Pt,onSubmit:Ce,value:wt,maskFormat:l,onChange:la,onInputChange:Wn,internalPicker:i,format:s,inputReadOnly:H,disabled:S,open:pe,onOpenChange:be,onClick:Ae,onClear:Ee,invalid:ut,onInvalid:function(Tt){Ze(Tt,0)}}))))}var Pye=d.forwardRef(Tye);const EV=d.createContext(null),Iye=EV.Provider,$V=d.createContext(null),Nye=$V.Provider;var kye=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],_V=d.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-checkbox":r,a=e.className,i=e.style,o=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,f=u===void 0?"checkbox":u,m=e.title,h=e.onChange,v=Rt(e,kye),p=d.useRef(null),g=d.useRef(null),y=br(c,{value:o}),x=me(y,2),b=x[0],S=x[1];d.useImperativeHandle(t,function(){return{focus:function(O){var _;(_=p.current)===null||_===void 0||_.focus(O)},blur:function(){var O;(O=p.current)===null||O===void 0||O.blur()},input:p.current,nativeElement:g.current}});var w=ce(n,a,ee(ee({},"".concat(n,"-checked"),b),"".concat(n,"-disabled"),s)),E=function(O){s||("checked"in e||S(O.target.checked),h==null||h({target:ae(ae({},e),{},{type:f,checked:O.target.checked}),stopPropagation:function(){O.stopPropagation()},preventDefault:function(){O.preventDefault()},nativeEvent:O.nativeEvent}))};return d.createElement("span",{className:w,title:m,style:i,ref:g},d.createElement("input",Te({},v,{className:"".concat(n,"-input"),ref:p,onChange:E,disabled:s,checked:!!b,type:f})),d.createElement("span",{className:"".concat(n,"-inner")}))});function OV(e){const t=ve.useRef(null),r=()=>{Ut.cancel(t.current),t.current=null};return[()=>{r(),t.current=Ut(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),r()),e==null||e(i)}]}const Rye=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-group`;return{[n]:Object.assign(Object.assign({},ur(e)),{display:"inline-block",fontSize:0,[`&${n}-rtl`]:{direction:"rtl"},[`&${n}-block`]:{display:"flex"},[`${r}-badge ${r}-badge-count`]:{zIndex:1},[`> ${r}-badge:not(:first-child) > ${r}-button-wrapper`]:{borderInlineStart:"none"}})}},Aye=e=>{const{componentCls:t,wrapperMarginInlineEnd:r,colorPrimary:n,radioSize:a,motionDurationSlow:i,motionDurationMid:o,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:f,colorTextDisabled:m,paddingXS:h,dotColorDisabled:v,lineType:p,radioColor:g,radioBgColor:y,calc:x}=e,b=`${t}-inner`,S=4,w=x(a).sub(x(S).mul(2)),E=x(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},ur(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${se(u)} ${p} ${n}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},ur(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, + &:hover ${b}`]:{borderColor:n},[`${t}-input:focus-visible + ${b}`]:nl(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:E,height:E,marginBlockStart:x(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:x(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:E,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:E,height:E,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${o}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[b]:{borderColor:n,backgroundColor:y,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:v}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[b]:{"&::after":{transform:`scale(${x(w).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},Mye=e=>{const{buttonColor:t,controlHeight:r,componentCls:n,lineWidth:a,lineType:i,colorBorder:o,motionDurationMid:s,buttonPaddingInline:l,fontSize:c,buttonBg:u,fontSizeLG:f,controlHeightLG:m,controlHeightSM:h,paddingXS:v,borderRadius:p,borderRadiusSM:g,borderRadiusLG:y,buttonCheckedBg:x,buttonSolidCheckedColor:b,colorTextDisabled:S,colorBgContainerDisabled:w,buttonCheckedBgDisabled:E,buttonCheckedColorDisabled:C,colorPrimary:O,colorPrimaryHover:_,colorPrimaryActive:T,buttonSolidCheckedBg:I,buttonSolidCheckedHoverBg:N,buttonSolidCheckedActiveBg:D,calc:k}=e;return{[`${n}-button-wrapper`]:{position:"relative",display:"inline-block",height:r,margin:0,paddingInline:l,paddingBlock:0,color:t,fontSize:c,lineHeight:se(k(r).sub(k(a).mul(2)).equal()),background:u,border:`${se(a)} ${i} ${o}`,borderBlockStartWidth:k(a).add(.02).equal(),borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${n}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:k(a).mul(-1).equal()},"&:first-child":{borderInlineStart:`${se(a)} ${i} ${o}`,borderStartStartRadius:p,borderEndStartRadius:p},"&:last-child":{borderStartEndRadius:p,borderEndEndRadius:p},"&:first-child:last-child":{borderRadius:p},[`${n}-group-large &`]:{height:m,fontSize:f,lineHeight:se(k(m).sub(k(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${n}-group-small &`]:{height:h,paddingInline:k(v).sub(a).equal(),paddingBlock:0,lineHeight:se(k(h).sub(k(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},"&:hover":{position:"relative",color:O},"&:has(:focus-visible)":nl(e),[`${n}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${n}-button-wrapper-disabled)`]:{zIndex:1,color:O,background:x,borderColor:O,"&::before":{backgroundColor:O},"&:first-child":{borderColor:O},"&:hover":{color:_,borderColor:_,"&::before":{backgroundColor:_}},"&:active":{color:T,borderColor:T,"&::before":{backgroundColor:T}}},[`${n}-group-solid &-checked:not(${n}-button-wrapper-disabled)`]:{color:b,background:I,borderColor:I,"&:hover":{color:b,background:N,borderColor:N},"&:active":{color:b,background:D,borderColor:D}},"&-disabled":{color:S,backgroundColor:w,borderColor:o,cursor:"not-allowed","&:first-child, &:hover":{color:S,backgroundColor:w,borderColor:o}},[`&-disabled${n}-button-wrapper-checked`]:{color:C,backgroundColor:E,borderColor:o,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},Dye=e=>{const{wireframe:t,padding:r,marginXS:n,lineWidth:a,fontSizeLG:i,colorText:o,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:f,colorPrimaryHover:m,colorPrimaryActive:h,colorWhite:v}=e,p=4,g=i,y=t?g-p*2:g-(p+a)*2;return{radioSize:g,dotSize:y,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:h,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:r-a,wrapperMarginInlineEnd:n,radioColor:t?f:v,radioBgColor:t?s:f}},TV=or("Radio",e=>{const{controlOutline:t,controlOutlineWidth:r}=e,n=`0 0 0 ${se(r)} ${t}`,i=Yt(e,{radioFocusShadow:n,radioButtonFocusShadow:n});return[Rye(i),Aye(i),Mye(i)]},Dye,{unitless:{radioSize:!0,dotSize:!0}});var jye=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var r,n;const a=d.useContext(EV),i=d.useContext($V),{getPrefixCls:o,direction:s,radio:l}=d.useContext(Nt),c=d.useRef(null),u=xa(t,c),{isFormItemInput:f}=d.useContext(ga),m=A=>{var j,F;(j=e.onChange)===null||j===void 0||j.call(e,A),(F=a==null?void 0:a.onChange)===null||F===void 0||F.call(a,A)},{prefixCls:h,className:v,rootClassName:p,children:g,style:y,title:x}=e,b=jye(e,["prefixCls","className","rootClassName","children","style","title"]),S=o("radio",h),w=((a==null?void 0:a.optionType)||i)==="button",E=w?`${S}-button`:S,C=gn(S),[O,_,T]=TV(S,C),I=Object.assign({},b),N=d.useContext(Wi);a&&(I.name=a.name,I.onChange=m,I.checked=e.value===a.value,I.disabled=(r=I.disabled)!==null&&r!==void 0?r:a.disabled),I.disabled=(n=I.disabled)!==null&&n!==void 0?n:N;const D=ce(`${E}-wrapper`,{[`${E}-wrapper-checked`]:I.checked,[`${E}-wrapper-disabled`]:I.disabled,[`${E}-wrapper-rtl`]:s==="rtl",[`${E}-wrapper-in-form-item`]:f,[`${E}-wrapper-block`]:!!(a!=null&&a.block)},l==null?void 0:l.className,v,p,_,T,C),[k,R]=OV(I.onClick);return O(d.createElement(nS,{component:"Radio",disabled:I.disabled},d.createElement("label",{className:D,style:Object.assign(Object.assign({},l==null?void 0:l.style),y),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:x,onClick:k},d.createElement(_V,Object.assign({},I,{className:ce(I.className,{[rS]:!w}),type:"radio",prefixCls:E,ref:u,onClick:R})),g!==void 0?d.createElement("span",{className:`${E}-label`},g):null)))},Lye=d.forwardRef(Fye),l1=Lye,Bye=["parentNode"],zye="form_item";function Ph(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function PV(e,t){if(!e.length)return;const r=e.join("_");return t?`${t}_${r}`:Bye.includes(r)?`${zye}_${r}`:r}function IV(e,t,r,n,a,i){let o=n;return i!==void 0?o=i:r.validating?o="validating":e.length?o="error":t.length?o="warning":(r.touched||a&&r.validated)&&(o="success"),o}var Hye=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);ae??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:a=>i=>{const o=eO(a);i?r.current[o]=i:delete r.current[o]}},scrollToField:(a,i={})=>{const{focus:o}=i,s=Hye(i,["focus"]),l=lD(a,n);l&&(mle(l,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),o&&n.focusField(a))},focusField:a=>{var i,o;const s=n.getFieldInstance(a);typeof(s==null?void 0:s.focus)=="function"?s.focus():(o=(i=lD(a,n))===null||i===void 0?void 0:i.focus)===null||o===void 0||o.call(i)},getFieldInstance:a=>{const i=eO(a);return r.current[i]}}),[e,t]);return[n]}const Wye=d.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=d.useContext(Nt),{name:a}=d.useContext(ga),i=gS(eO(a)),{prefixCls:o,className:s,rootClassName:l,options:c,buttonStyle:u="outline",disabled:f,children:m,size:h,style:v,id:p,optionType:g,name:y=i,defaultValue:x,value:b,block:S=!1,onChange:w,onMouseEnter:E,onMouseLeave:C,onFocus:O,onBlur:_}=e,[T,I]=br(x,{value:b}),N=d.useCallback(B=>{const W=T,H=B.target.value;"value"in e||I(H),H!==W&&(w==null||w(B))},[T,I,w]),D=r("radio",o),k=`${D}-group`,R=gn(D),[A,j,F]=TV(D,R);let M=m;c&&c.length>0&&(M=c.map(B=>typeof B=="string"||typeof B=="number"?d.createElement(l1,{key:B.toString(),prefixCls:D,disabled:f,value:B,checked:T===B},B):d.createElement(l1,{key:`radio-group-value-options-${B.value}`,prefixCls:D,disabled:B.disabled||f,value:B.value,checked:T===B.value,title:B.title,style:B.style,className:B.className,id:B.id,required:B.required},B.label)));const V=ba(h),K=ce(k,`${k}-${u}`,{[`${k}-${V}`]:V,[`${k}-rtl`]:n==="rtl",[`${k}-block`]:S},s,l,j,F,R),L=d.useMemo(()=>({onChange:N,value:T,disabled:f,name:y,optionType:g,block:S}),[N,T,f,y,g,S]);return A(d.createElement("div",Object.assign({},Dn(e,{aria:!0,data:!0}),{className:K,style:v,onMouseEnter:E,onMouseLeave:C,onFocus:O,onBlur:_,id:p,ref:t}),d.createElement(Iye,{value:L},M)))}),Vye=d.memo(Wye);var Uye=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:r}=d.useContext(Nt),{prefixCls:n}=e,a=Uye(e,["prefixCls"]),i=r("radio",n);return d.createElement(Nye,{value:"button"},d.createElement(l1,Object.assign({prefixCls:i},a,{type:"radio",ref:t})))},Gye=d.forwardRef(Kye),RS=l1;RS.Button=Gye;RS.Group=Vye;RS.__ANT_RADIO=!0;const Gs=RS;function Hd(e){return Yt(e,{inputAffixPadding:e.paddingXXS})}const Wd=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:a,controlHeightSM:i,controlHeightLG:o,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:h,colorPrimary:v,controlOutlineWidth:p,controlOutline:g,colorErrorOutline:y,colorWarningOutline:x,colorBgContainer:b,inputFontSize:S,inputFontSizeLG:w,inputFontSizeSM:E}=e,C=S||r,O=E||C,_=w||s,T=Math.round((t-C*n)/2*10)/10-a,I=Math.round((i-O*n)/2*10)/10-a,N=Math.ceil((o-_*l)/2*10)/10-a;return{paddingBlock:Math.max(T,0),paddingBlockSM:Math.max(I,0),paddingBlockLG:Math.max(N,0),paddingInline:c-a,paddingInlineSM:u-a,paddingInlineLG:f-a,addonBg:m,activeBorderColor:v,hoverBorderColor:h,activeShadow:`0 0 0 ${p}px ${g}`,errorActiveShadow:`0 0 0 ${p}px ${y}`,warningActiveShadow:`0 0 0 ${p}px ${x}`,hoverBg:b,activeBg:b,inputFontSize:C,inputFontSizeLG:_,inputFontSizeSM:O}},qye=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),AS=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},qye(Yt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),II=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),cD=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},II(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),NI=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},II(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},AS(e))}),cD(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),cD(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),uD=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),kV=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},uD(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),uD(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},AS(e))}})}),kI=(e,t)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},RV=(e,t)=>{var r;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(r=t==null?void 0:t.inputColor)!==null&&r!==void 0?r:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},dD=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},RV(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),RI=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},RV(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},AS(e))}),dD(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),dD(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),fD=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),AV=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},fD(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),fD(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),MV=(e,t)=>({background:e.colorBgContainer,borderWidth:`${se(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),mD=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},MV(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),AI=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},MV(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),mD(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),mD(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),MI=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),DV=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:a}=e;return{padding:`${se(t)} ${se(a)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},DI=e=>({padding:`${se(e.paddingBlockSM)} ${se(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),_v=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${se(e.paddingBlock)} ${se(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},MI(e.colorTextPlaceholder)),{"&-lg":Object.assign({},DV(e)),"&-sm":Object.assign({},DI(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),jV=e=>{const{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},DV(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},DI(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${se(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${se(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${se(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${se(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${se(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-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,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},rl()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` + & > ${t}-affix-wrapper, + & > ${t}-number-affix-wrapper, + & > ${r}-picker-range + `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${r}-select > ${r}-select-selector, + & > ${r}-select-auto-complete ${t}, + & > ${r}-cascader-picker ${t}, + & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child, + & > ${r}-select:first-child > ${r}-select-selector, + & > ${r}-select-auto-complete:first-child ${t}, + & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, + & > ${r}-select:last-child > ${r}-select-selector, + & > ${r}-cascader-picker:last-child ${t}, + & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},Xye=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:a}=e,i=16,o=a(r).sub(a(n).mul(2)).sub(i).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ur(e)),_v(e)),NI(e)),RI(e)),kI(e)),AI(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},Yye=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${se(e.inputAffixPadding)}`}}}},Qye=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:a,colorIcon:i,colorIconHover:o,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},_v(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),Yye(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:o}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},Zye=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},ur(e)),jV(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},kV(e)),AV(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},Jye=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${n}-button:not(${r}-btn-color-primary):not(${r}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{inset:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, + > ${t}, + ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},exe=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},FV=or(["Input","Shared"],e=>{const t=Yt(e,Hd(e));return[Xye(t),Qye(t)]},Wd,{resetFont:!1}),LV=or(["Input","Component"],e=>{const t=Yt(e,Hd(e));return[Zye(t),Jye(t),exe(t),X0(t)]},Wd,{resetFont:!1}),P2=(e,t)=>{const{componentCls:r,controlHeight:n}=e,a=t?`${r}-${t}`:"",i=KH(e);return[{[`${r}-multiple${a}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:n,[`${r}-selection-item`]:{height:i.itemHeight,lineHeight:se(i.itemLineHeight)}}}]},txe=e=>{const{componentCls:t,calc:r,lineWidth:n}=e,a=Yt(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=Yt(e,{fontHeight:r(e.multipleItemHeightLG).sub(r(n).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[P2(a,"small"),P2(e),P2(i,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},GH(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},rxe=txe,nxe=e=>{const{pickerCellCls:t,pickerCellInnerCls:r,cellHeight:n,borderRadiusSM:a,motionDurationMid:i,cellHoverBg:o,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:f,colorTextDisabled:m,cellBgDisabled:h,colorFillSecondary:v}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:n,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[r]:{position:"relative",zIndex:2,display:"inline-block",minWidth:n,height:n,lineHeight:se(n),borderRadius:a,transition:`background ${i}`},[`&:hover:not(${t}-in-view):not(${t}-disabled), + &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[r]:{background:o}},[`&-in-view${t}-today ${r}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${se(s)} ${l} ${c}`,borderRadius:a,content:'""'}},[`&-in-view${t}-in-range, + &-in-view${t}-range-start, + &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected, + &-in-view${t}-range-start, + &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${r}`]:{color:f,background:c},[`&${t}-disabled ${r}`]:{background:v}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${r}`]:{borderStartStartRadius:a,borderEndStartRadius:a,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a},"&-disabled":{color:m,cursor:"not-allowed",[r]:{background:"transparent"},"&::before":{background:h}},[`&-disabled${t}-today ${r}::before`]:{borderColor:m}}},axe=e=>{const{componentCls:t,pickerCellCls:r,pickerCellInnerCls:n,pickerYearMonthCellWidth:a,pickerControlIconSize:i,cellWidth:o,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:f,lineType:m,borderRadiusLG:h,colorPrimary:v,colorTextHeading:p,colorSplit:g,pickerControlIconBorderWidth:y,colorIcon:x,textHeight:b,motionDurationMid:S,colorIconHover:w,fontWeightStrong:E,cellHeight:C,pickerCellPaddingVertical:O,colorTextDisabled:_,colorText:T,fontSize:I,motionDurationSlow:N,withoutTimeCellHeight:D,pickerQuarterPanelContentHeight:k,borderRadiusSM:R,colorTextLightSolid:A,cellHoverBg:j,timeColumnHeight:F,timeColumnWidth:M,timeCellHeight:V,controlItemBgActive:K,marginXXS:L,pickerDatePanelPaddingHorizontal:B,pickerControlIconMargin:W}=e,H=e.calc(o).mul(7).add(e.calc(B).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:h,outline:"none","&-focused":{borderColor:v},"&-rtl":{[`${t}-prev-icon, + ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, + ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:H},"&-header":{display:"flex",padding:`0 ${se(l)}`,color:p,borderBottom:`${se(f)} ${m} ${g}`,"> *":{flex:"none"},button:{padding:0,color:x,lineHeight:se(b),background:"transparent",border:0,cursor:"pointer",transition:`color ${S}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:I,"&:hover":{color:w},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:E,lineHeight:se(b),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:v}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:y,borderInlineStartWidth:y,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:W,insetInlineStart:W,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:y,borderInlineStartWidth:y,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:C,fontWeight:"normal"},th:{height:e.calc(C).add(e.calc(O).mul(2)).equal(),color:T,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${se(O)} 0`,color:_,cursor:"pointer","&-in-view":{color:T}},nxe(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(D).mul(4).equal()},[n]:{padding:`0 ${se(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:k}},"&-decade-panel":{[n]:{padding:`0 ${se(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${se(l)}`},[n]:{width:a}},"&-date-panel":{[`${t}-body`]:{padding:`${se(l)} ${se(B)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${S}`},"&:first-child:before":{borderStartStartRadius:R,borderEndStartRadius:R},"&:last-child:before":{borderStartEndRadius:R,borderEndEndRadius:R}},"&:hover td:before":{background:j},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${r}`]:{"&:before":{background:v},[`&${t}-cell-week`]:{color:new lr(A).setA(.5).toHexString()},[n]:{color:A}}},"&-range-hover td:before":{background:K}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${se(l)} ${se(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${se(f)} ${m} ${g}`},[`${t}-date-panel, + ${t}-time-panel`]:{transition:`opacity ${N}`},"&-active":{[`${t}-date-panel, + ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:F},"&-column":{flex:"1 0 auto",width:M,margin:`${se(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${S}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${se(V)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${se(f)} ${m} ${g}`},"&-active":{background:new lr(K).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:L,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(M).sub(e.calc(L).mul(2)).equal(),height:V,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(M).sub(V).div(2).equal(),color:T,lineHeight:se(V),borderRadius:R,cursor:"pointer",transition:`background ${S}`,"&:hover":{background:j}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:K}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:_,background:"transparent",cursor:"not-allowed"}}}}}}}}},ixe=e=>{const{componentCls:t,textHeight:r,lineWidth:n,paddingSM:a,antCls:i,colorPrimary:o,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${se(n)} ${c} ${u}`,"&-extra":{padding:`0 ${se(a)}`,lineHeight:se(e.calc(r).sub(e.calc(n).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${se(n)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:se(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:se(e.calc(r).sub(e.calc(n).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:o,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(n).mul(2).equal(),marginInlineStart:"auto"}}}}},oxe=ixe,sxe=e=>{const{componentCls:t,controlHeightLG:r,paddingXXS:n,padding:a}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(r).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(r).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(n).add(e.calc(n).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(a).add(e.calc(n).div(2)).equal()}},lxe=e=>{const{colorBgContainerDisabled:t,controlHeight:r,controlHeightSM:n,controlHeightLG:a,paddingXXS:i,lineWidth:o}=e,s=i*2,l=o*2,c=Math.min(r-s,r-l),u=Math.min(n-s,n-l),f=Math.min(a-s,a-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new lr(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new lr(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:a*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:n*1.5,cellHeight:n,textHeight:a,withoutTimeCellHeight:a*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},cxe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Wd(e)),lxe(e)),CS(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),uxe=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},NI(e)),AI(e)),RI(e)),kI(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${se(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${se(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${se(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${se(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},dxe=uxe,I2=(e,t)=>({padding:`${se(e)} ${se(t)}`}),fxe=e=>{const{componentCls:t,colorError:r,colorWarning:n}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:r}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:n}}}}},mxe=e=>{var t;const{componentCls:r,antCls:n,paddingInline:a,lineWidth:i,lineType:o,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:f,colorTextQuaternary:m,fontSizeLG:h,inputFontSizeLG:v,fontSizeSM:p,inputFontSizeSM:g,controlHeightSM:y,paddingInlineSM:x,paddingXS:b,marginXS:S,colorIcon:w,lineWidthBold:E,colorPrimary:C,motionDurationSlow:O,zIndexPopup:_,paddingXXS:T,sizePopupArrow:I,colorBgElevated:N,borderRadiusLG:D,boxShadowSecondary:k,borderRadiusSM:R,colorSplit:A,cellHoverBg:j,presetsWidth:F,presetsMaxWidth:M,boxShadowPopoverArrow:V,fontHeight:K,lineHeightLG:L}=e;return[{[r]:Object.assign(Object.assign(Object.assign({},ur(e)),I2(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${r}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${r}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:(t=e.inputFontSize)!==null&&t!==void 0?t:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},MI(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},I2(e.paddingBlockLG,e.paddingInlineLG)),{[`${r}-input > input`]:{fontSize:v??h,lineHeight:L}}),"&-small":Object.assign(Object.assign({},I2(e.paddingBlockSM,e.paddingInlineSM)),{[`${r}-input > input`]:{fontSize:g??p}}),[`${r}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(b).div(2).equal(),color:m,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:S}}},[`${r}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:m,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:w}},"&:hover":{[`${r}-clear`]:{opacity:1},[`${r}-suffix:not(:last-child)`]:{opacity:0}},[`${r}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:h,color:m,fontSize:h,verticalAlign:"top",cursor:"default",[`${r}-focused &`]:{color:w},[`${r}-range-separator &`]:{[`${r}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${r}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:E,background:C,opacity:0,transition:`all ${O} ease-out`,pointerEvents:"none"},[`&${r}-focused`]:{[`${r}-active-bar`]:{opacity:1}},[`${r}-range-separator`]:{alignItems:"center",padding:`0 ${se(b)}`,lineHeight:1}},"&-range, &-multiple":{[`${r}-clear`]:{insetInlineEnd:a},[`&${r}-small`]:{[`${r}-clear`]:{insetInlineEnd:x}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},ur(e)),axe(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:_,[`&${r}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${r}-dropdown-placement-bottomLeft, + &${r}-dropdown-placement-bottomRight`]:{[`${r}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${r}-dropdown-placement-topLeft, + &${r}-dropdown-placement-topRight`]:{[`${r}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-appear, &${n}-slide-up-enter`]:{[`${r}-range-arrow${r}-range-arrow`]:{transition:"none"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${r}-dropdown-placement-topLeft, + &${n}-slide-up-enter${n}-slide-up-enter-active${r}-dropdown-placement-topRight, + &${n}-slide-up-appear${n}-slide-up-appear-active${r}-dropdown-placement-topLeft, + &${n}-slide-up-appear${n}-slide-up-appear-active${r}-dropdown-placement-topRight`]:{animationName:cS},[`&${n}-slide-up-enter${n}-slide-up-enter-active${r}-dropdown-placement-bottomLeft, + &${n}-slide-up-enter${n}-slide-up-enter-active${r}-dropdown-placement-bottomRight, + &${n}-slide-up-appear${n}-slide-up-appear-active${r}-dropdown-placement-bottomLeft, + &${n}-slide-up-appear${n}-slide-up-appear-active${r}-dropdown-placement-bottomRight`]:{animationName:sS},[`&${n}-slide-up-leave ${r}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${r}-dropdown-placement-topLeft, + &${n}-slide-up-leave${n}-slide-up-leave-active${r}-dropdown-placement-topRight`]:{animationName:uS},[`&${n}-slide-up-leave${n}-slide-up-leave-active${r}-dropdown-placement-bottomLeft, + &${n}-slide-up-leave${n}-slide-up-leave-active${r}-dropdown-placement-bottomRight`]:{animationName:lS},[`${r}-panel > ${r}-time-panel`]:{paddingTop:T},[`${r}-range-wrapper`]:{display:"flex",position:"relative"},[`${r}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(a).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${O} ease-out`},iW(e,N,V)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${r}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:N,borderRadius:D,boxShadow:k,transition:`margin ${O}`,display:"inline-block",pointerEvents:"auto",[`${r}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${r}-presets`]:{display:"flex",flexDirection:"column",minWidth:F,maxWidth:M,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:b,borderInlineEnd:`${se(i)} ${o} ${A}`,li:Object.assign(Object.assign({},Uo),{borderRadius:R,paddingInline:b,paddingBlock:e.calc(y).sub(K).div(2).equal(),cursor:"pointer",transition:`all ${O}`,"+ li":{marginTop:S},"&:hover":{background:j}})}},[`${r}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${r}-panel`]:{borderWidth:0}}},[`${r}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${r}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${se(e.calc(I).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${r}-separator`]:{transform:"scale(-1, 1)"},[`${r}-footer`]:{"&-extra":{direction:"rtl"}}}})},al(e,"slide-up"),al(e,"slide-down"),x0(e,"move-up"),x0(e,"move-down")]},BV=or("DatePicker",e=>{const t=Yt(Hd(e),sxe(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[oxe(t),mxe(t),dxe(t),fxe(t),rxe(t),X0(e,{focusElCls:`${e.componentCls}-focused`})]},cxe);var hxe={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"};const pxe=hxe;var vxe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:pxe}))},gxe=d.forwardRef(vxe);const Vd=gxe,MS=d.createContext(null);var yxe=function(t){var r=t.activeTabOffset,n=t.horizontal,a=t.rtl,i=t.indicator,o=i===void 0?{}:i,s=o.size,l=o.align,c=l===void 0?"center":l,u=d.useState(),f=me(u,2),m=f[0],h=f[1],v=d.useRef(),p=ve.useCallback(function(y){return typeof s=="function"?s(y):typeof s=="number"?s:y},[s]);function g(){Ut.cancel(v.current)}return d.useEffect(function(){var y={};if(r)if(n){y.width=p(r.width);var x=a?"right":"left";c==="start"&&(y[x]=r[x]),c==="center"&&(y[x]=r[x]+r.width/2,y.transform=a?"translateX(50%)":"translateX(-50%)"),c==="end"&&(y[x]=r[x]+r.width,y.transform="translateX(-100%)")}else y.height=p(r.height),c==="start"&&(y.top=r.top),c==="center"&&(y.top=r.top+r.height/2,y.transform="translateY(-50%)"),c==="end"&&(y.top=r.top+r.height,y.transform="translateY(-100%)");return g(),v.current=Ut(function(){var b=m&&y&&Object.keys(y).every(function(S){var w=y[S],E=m[S];return typeof w=="number"&&typeof E=="number"?Math.round(w)===Math.round(E):w===E});b||h(y)}),g},[JSON.stringify(r),n,a,c,p]),{style:m}},hD={width:0,height:0,left:0,top:0};function xxe(e,t,r){return d.useMemo(function(){for(var n,a=new Map,i=t.get((n=e[0])===null||n===void 0?void 0:n.key)||hD,o=i.left+i.width,s=0;sk?(N=T,E.current="x"):(N=I,E.current="y"),t(-N,-N)&&_.preventDefault()}var O=d.useRef(null);O.current={onTouchStart:b,onTouchMove:S,onTouchEnd:w,onWheel:C},d.useEffect(function(){function _(D){O.current.onTouchStart(D)}function T(D){O.current.onTouchMove(D)}function I(D){O.current.onTouchEnd(D)}function N(D){O.current.onWheel(D)}return document.addEventListener("touchmove",T,{passive:!1}),document.addEventListener("touchend",I,{passive:!0}),e.current.addEventListener("touchstart",_,{passive:!0}),e.current.addEventListener("wheel",N,{passive:!1}),function(){document.removeEventListener("touchmove",T),document.removeEventListener("touchend",I)}},[])}function zV(e){var t=d.useState(0),r=me(t,2),n=r[0],a=r[1],i=d.useRef(0),o=d.useRef();return o.current=e,Yu(function(){var s;(s=o.current)===null||s===void 0||s.call(o)},[n]),function(){i.current===n&&(i.current+=1,a(i.current))}}function wxe(e){var t=d.useRef([]),r=d.useState({}),n=me(r,2),a=n[1],i=d.useRef(typeof e=="function"?e():e),o=zV(function(){var l=i.current;t.current.forEach(function(c){l=c(l)}),t.current=[],i.current=l,a({})});function s(l){t.current.push(l),o()}return[i.current,s]}var yD={width:0,height:0,left:0,top:0,right:0};function Cxe(e,t,r,n,a,i,o){var s=o.tabs,l=o.tabPosition,c=o.rtl,u,f,m;return["top","bottom"].includes(l)?(u="width",f=c?"right":"left",m=Math.abs(r)):(u="height",f="top",m=-r),d.useMemo(function(){if(!s.length)return[0,0];for(var h=s.length,v=h,p=0;pMath.floor(m+t)){v=p-1;break}}for(var y=0,x=h-1;x>=0;x-=1){var b=e.get(s[x].key)||yD;if(b[f]v?[0,-1]:[y,v]},[e,t,n,a,i,m,l,s.map(function(h){return h.key}).join("_"),c])}function xD(e){var t;return e instanceof Map?(t={},e.forEach(function(r,n){t[n]=r})):t=e,JSON.stringify(t)}var Exe="TABS_DQ";function HV(e){return String(e).replace(/"/g,Exe)}function jI(e,t,r,n){return!(!r||n||e===!1||e===void 0&&(t===!1||t===null))}var WV=d.forwardRef(function(e,t){var r=e.prefixCls,n=e.editable,a=e.locale,i=e.style;return!n||n.showAdd===!1?null:d.createElement("button",{ref:t,type:"button",className:"".concat(r,"-nav-add"),style:i,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(s){n.onEdit("add",{event:s})}},n.addIcon||"+")}),bD=d.forwardRef(function(e,t){var r=e.position,n=e.prefixCls,a=e.extra;if(!a)return null;var i,o={};return bt(a)==="object"&&!d.isValidElement(a)?o=a:o.right=a,r==="right"&&(i=o.right),r==="left"&&(i=o.left),i?d.createElement("div",{className:"".concat(n,"-extra-content"),ref:t},i):null}),$xe=d.forwardRef(function(e,t){var r=e.prefixCls,n=e.id,a=e.tabs,i=e.locale,o=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,u=e.className,f=e.editable,m=e.tabBarGutter,h=e.rtl,v=e.removeAriaLabel,p=e.onTabClick,g=e.getPopupContainer,y=e.popupClassName,x=d.useState(!1),b=me(x,2),S=b[0],w=b[1],E=d.useState(null),C=me(E,2),O=C[0],_=C[1],T=l.icon,I=T===void 0?"More":T,N="".concat(n,"-more-popup"),D="".concat(r,"-dropdown"),k=O!==null?"".concat(N,"-").concat(O):null,R=i==null?void 0:i.dropdownAriaLabel;function A(B,W){B.preventDefault(),B.stopPropagation(),f.onEdit("remove",{key:W,event:B})}var j=d.createElement(tm,{onClick:function(W){var H=W.key,U=W.domEvent;p(H,U),w(!1)},prefixCls:"".concat(D,"-menu"),id:N,tabIndex:-1,role:"listbox","aria-activedescendant":k,selectedKeys:[O],"aria-label":R!==void 0?R:"expanded dropdown"},a.map(function(B){var W=B.closable,H=B.disabled,U=B.closeIcon,X=B.key,Y=B.label,G=jI(W,U,f,H);return d.createElement(Cv,{key:X,id:"".concat(N,"-").concat(X),role:"option","aria-controls":n&&"".concat(n,"-panel-").concat(X),disabled:H},d.createElement("span",null,Y),G&&d.createElement("button",{type:"button","aria-label":v||"remove",tabIndex:0,className:"".concat(D,"-menu-item-remove"),onClick:function(J){J.stopPropagation(),A(J,X)}},U||f.removeIcon||"×"))}));function F(B){for(var W=a.filter(function(G){return!G.disabled}),H=W.findIndex(function(G){return G.key===O})||0,U=W.length,X=0;Xot?"left":"right"})}),D=me(N,2),k=D[0],R=D[1],A=pD(0,function(et,ot){!I&&p&&p({direction:et>ot?"top":"bottom"})}),j=me(A,2),F=j[0],M=j[1],V=d.useState([0,0]),K=me(V,2),L=K[0],B=K[1],W=d.useState([0,0]),H=me(W,2),U=H[0],X=H[1],Y=d.useState([0,0]),G=me(Y,2),Q=G[0],J=G[1],z=d.useState([0,0]),fe=me(z,2),te=fe[0],re=fe[1],q=wxe(new Map),ne=me(q,2),he=ne[0],xe=ne[1],ye=xxe(b,he,U[0]),pe=ty(L,I),be=ty(U,I),_e=ty(Q,I),$e=ty(te,I),Be=Math.floor(pe)Ge?Ge:et}var Ne=d.useRef(null),we=d.useState(),je=me(we,2),Oe=je[0],Me=je[1];function ge(){Me(Date.now())}function Se(){Ne.current&&clearTimeout(Ne.current)}Sxe(C,function(et,ot){function wt(Lt,pt){Lt(function(Ot){var zt=Le(Ot+pt);return zt})}return Be?(I?wt(R,et):wt(M,ot),Se(),ge(),!0):!1}),d.useEffect(function(){return Se(),Oe&&(Ne.current=setTimeout(function(){Me(0)},100)),Se},[Oe]);var Re=Cxe(ye,Fe,I?k:F,be,_e,$e,ae(ae({},e),{},{tabs:b})),We=me(Re,2),at=We[0],yt=We[1],tt=qt(function(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o,ot=ye.get(et)||{width:0,height:0,left:0,right:0,top:0};if(I){var wt=k;s?ot.rightk+Fe&&(wt=ot.right+ot.width-Fe):ot.left<-k?wt=-ot.left:ot.left+ot.width>-k+Fe&&(wt=-(ot.left+ot.width-Fe)),M(0),R(Le(wt))}else{var Lt=F;ot.top<-F?Lt=-ot.top:ot.top+ot.height>-F+Fe&&(Lt=-(ot.top+ot.height-Fe)),R(0),M(Le(Lt))}}),it=d.useState(),ft=me(it,2),lt=ft[0],mt=ft[1],Mt=d.useState(!1),Ft=me(Mt,2),ht=Ft[0],St=Ft[1],xt=b.filter(function(et){return!et.disabled}).map(function(et){return et.key}),rt=function(ot){var wt=xt.indexOf(lt||o),Lt=xt.length,pt=(wt+ot+Lt)%Lt,Ot=xt[pt];mt(Ot)},Ye=function(ot,wt){var Lt=xt.indexOf(ot),pt=b.find(function(zt){return zt.key===ot}),Ot=jI(pt==null?void 0:pt.closable,pt==null?void 0:pt.closeIcon,c,pt==null?void 0:pt.disabled);Ot&&(wt.preventDefault(),wt.stopPropagation(),c.onEdit("remove",{key:ot,event:wt}),Lt===xt.length-1?rt(-1):rt(1))},Ze=function(ot,wt){St(!0),wt.button===1&&Ye(ot,wt)},ut=function(ot){var wt=ot.code,Lt=s&&I,pt=xt[0],Ot=xt[xt.length-1];switch(wt){case"ArrowLeft":{I&&rt(Lt?1:-1);break}case"ArrowRight":{I&&rt(Lt?-1:1);break}case"ArrowUp":{ot.preventDefault(),I||rt(-1);break}case"ArrowDown":{ot.preventDefault(),I||rt(1);break}case"Home":{ot.preventDefault(),mt(pt);break}case"End":{ot.preventDefault(),mt(Ot);break}case"Enter":case"Space":{ot.preventDefault(),v(lt??o,ot);break}case"Backspace":case"Delete":{Ye(lt,ot);break}}},Z={};I?Z[s?"marginRight":"marginLeft"]=m:Z.marginTop=m;var ue=b.map(function(et,ot){var wt=et.key;return d.createElement(Oxe,{id:a,prefixCls:x,key:wt,tab:et,style:ot===0?void 0:Z,closable:et.closable,editable:c,active:wt===o,focus:wt===lt,renderWrapper:h,removeAriaLabel:u==null?void 0:u.removeAriaLabel,tabCount:xt.length,currentPosition:ot+1,onClick:function(pt){v(wt,pt)},onKeyDown:ut,onFocus:function(){ht||mt(wt),tt(wt),ge(),C.current&&(s||(C.current.scrollLeft=0),C.current.scrollTop=0)},onBlur:function(){mt(void 0)},onMouseDown:function(pt){return Ze(wt,pt)},onMouseUp:function(){St(!1)}})}),le=function(){return xe(function(){var ot,wt=new Map,Lt=(ot=O.current)===null||ot===void 0?void 0:ot.getBoundingClientRect();return b.forEach(function(pt){var Ot,zt=pt.key,pr=(Ot=O.current)===null||Ot===void 0?void 0:Ot.querySelector('[data-node-key="'.concat(HV(zt),'"]'));if(pr){var Ir=Txe(pr,Lt),Pr=me(Ir,4),In=Pr[0],dn=Pr[1],zn=Pr[2],Hn=Pr[3];wt.set(zt,{width:In,height:dn,left:zn,top:Hn})}}),wt})};d.useEffect(function(){le()},[b.map(function(et){return et.key}).join("_")]);var ie=zV(function(){var et=mf(S),ot=mf(w),wt=mf(E);B([et[0]-ot[0]-wt[0],et[1]-ot[1]-wt[1]]);var Lt=mf(T);J(Lt);var pt=mf(_);re(pt);var Ot=mf(O);X([Ot[0]-Lt[0],Ot[1]-Lt[1]]),le()}),oe=b.slice(0,at),de=b.slice(yt+1),Ce=[].concat(De(oe),De(de)),Ae=ye.get(o),Ee=yxe({activeTabOffset:Ae,horizontal:I,indicator:g,rtl:s}),Ie=Ee.style;d.useEffect(function(){tt()},[o,qe,Ge,xD(Ae),xD(ye),I]),d.useEffect(function(){ie()},[s]);var Pe=!!Ce.length,Xe="".concat(x,"-nav-wrap"),ke,ze,He,Ve;return I?s?(ze=k>0,ke=k!==Ge):(ke=k<0,ze=k!==qe):(He=F<0,Ve=F!==qe),d.createElement(Aa,{onResize:ie},d.createElement("div",{ref:Wl(t,S),role:"tablist","aria-orientation":I?"horizontal":"vertical",className:ce("".concat(x,"-nav"),r),style:n,onKeyDown:function(){ge()}},d.createElement(bD,{ref:w,position:"left",extra:l,prefixCls:x}),d.createElement(Aa,{onResize:ie},d.createElement("div",{className:ce(Xe,ee(ee(ee(ee({},"".concat(Xe,"-ping-left"),ke),"".concat(Xe,"-ping-right"),ze),"".concat(Xe,"-ping-top"),He),"".concat(Xe,"-ping-bottom"),Ve)),ref:C},d.createElement(Aa,{onResize:ie},d.createElement("div",{ref:O,className:"".concat(x,"-nav-list"),style:{transform:"translate(".concat(k,"px, ").concat(F,"px)"),transition:Oe?"none":void 0}},ue,d.createElement(WV,{ref:T,prefixCls:x,locale:u,editable:c,style:ae(ae({},ue.length===0?void 0:Z),{},{visibility:Pe?"hidden":null})}),d.createElement("div",{className:ce("".concat(x,"-ink-bar"),ee({},"".concat(x,"-ink-bar-animated"),i.inkBar)),style:Ie}))))),d.createElement(_xe,Te({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:_,prefixCls:x,tabs:Ce,className:!Pe&&nt,tabMoving:!!Oe})),d.createElement(bD,{ref:E,position:"right",extra:l,prefixCls:x})))}),VV=d.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,a=e.style,i=e.id,o=e.active,s=e.tabKey,l=e.children;return d.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:o?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!o,style:a,className:ce(r,o&&"".concat(r,"-active"),n),ref:t},l)}),Pxe=["renderTabBar"],Ixe=["label","key"],Nxe=function(t){var r=t.renderTabBar,n=Rt(t,Pxe),a=d.useContext(MS),i=a.tabs;if(r){var o=ae(ae({},n),{},{panes:i.map(function(s){var l=s.label,c=s.key,u=Rt(s,Ixe);return d.createElement(VV,Te({tab:l,key:c,tabKey:c},u))})});return r(o,SD)}return d.createElement(SD,n)},kxe=["key","forceRender","style","className","destroyInactiveTabPane"],Rxe=function(t){var r=t.id,n=t.activeKey,a=t.animated,i=t.tabPosition,o=t.destroyInactiveTabPane,s=d.useContext(MS),l=s.prefixCls,c=s.tabs,u=a.tabPane,f="".concat(l,"-tabpane");return d.createElement("div",{className:ce("".concat(l,"-content-holder"))},d.createElement("div",{className:ce("".concat(l,"-content"),"".concat(l,"-content-").concat(i),ee({},"".concat(l,"-content-animated"),u))},c.map(function(m){var h=m.key,v=m.forceRender,p=m.style,g=m.className,y=m.destroyInactiveTabPane,x=Rt(m,kxe),b=h===n;return d.createElement(Vi,Te({key:h,visible:b,forceRender:v,removeOnLeave:!!(o||y),leavedClassName:"".concat(f,"-hidden")},a.tabPaneMotion),function(S,w){var E=S.style,C=S.className;return d.createElement(VV,Te({},x,{prefixCls:f,id:r,tabKey:h,animated:u,active:b,style:ae(ae({},p),E),className:ce(g,C),ref:w}))})})))};function Axe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=ae({inkBar:!0},bt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var Mxe=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],wD=0,Dxe=d.forwardRef(function(e,t){var r=e.id,n=e.prefixCls,a=n===void 0?"rc-tabs":n,i=e.className,o=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,f=e.animated,m=e.tabPosition,h=m===void 0?"top":m,v=e.tabBarGutter,p=e.tabBarStyle,g=e.tabBarExtraContent,y=e.locale,x=e.more,b=e.destroyInactiveTabPane,S=e.renderTabBar,w=e.onChange,E=e.onTabClick,C=e.onTabScroll,O=e.getPopupContainer,_=e.popupClassName,T=e.indicator,I=Rt(e,Mxe),N=d.useMemo(function(){return(o||[]).filter(function(te){return te&&bt(te)==="object"&&"key"in te})},[o]),D=s==="rtl",k=Axe(f),R=d.useState(!1),A=me(R,2),j=A[0],F=A[1];d.useEffect(function(){F(bS())},[]);var M=br(function(){var te;return(te=N[0])===null||te===void 0?void 0:te.key},{value:l,defaultValue:c}),V=me(M,2),K=V[0],L=V[1],B=d.useState(function(){return N.findIndex(function(te){return te.key===K})}),W=me(B,2),H=W[0],U=W[1];d.useEffect(function(){var te=N.findIndex(function(q){return q.key===K});if(te===-1){var re;te=Math.max(0,Math.min(H,N.length-1)),L((re=N[te])===null||re===void 0?void 0:re.key)}U(te)},[N.map(function(te){return te.key}).join("_"),K,H]);var X=br(null,{value:r}),Y=me(X,2),G=Y[0],Q=Y[1];d.useEffect(function(){r||(Q("rc-tabs-".concat(wD)),wD+=1)},[]);function J(te,re){E==null||E(te,re);var q=te!==K;L(te),q&&(w==null||w(te))}var z={id:G,activeKey:K,animated:k,tabPosition:h,rtl:D,mobile:j},fe=ae(ae({},z),{},{editable:u,locale:y,more:x,tabBarGutter:v,onTabClick:J,onTabScroll:C,extra:g,style:p,panes:null,getPopupContainer:O,popupClassName:_,indicator:T});return d.createElement(MS.Provider,{value:{tabs:N,prefixCls:a}},d.createElement("div",Te({ref:t,id:r,className:ce(a,"".concat(a,"-").concat(h),ee(ee(ee({},"".concat(a,"-mobile"),j),"".concat(a,"-editable"),u),"".concat(a,"-rtl"),D),i)},I),d.createElement(Nxe,Te({},fe,{renderTabBar:S})),d.createElement(Rxe,Te({destroyInactiveTabPane:b},z,{animated:k}))))});const jxe={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Fxe(e,t={inkBar:!0,tabPane:!1}){let r;return t===!1?r={inkBar:!1,tabPane:!1}:t===!0?r={inkBar:!0,tabPane:!0}:r=Object.assign({inkBar:!0},typeof t=="object"?t:{}),r.tabPane&&(r.tabPaneMotion=Object.assign(Object.assign({},jxe),{motionName:Vc(e,"switch")})),r}var Lxe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);at)}function zxe(e,t){if(e)return e.map(n=>{var a;const i=(a=n.destroyOnHidden)!==null&&a!==void 0?a:n.destroyInactiveTabPane;return Object.assign(Object.assign({},n),{destroyInactiveTabPane:i})});const r=ha(t).map(n=>{if(d.isValidElement(n)){const{key:a,props:i}=n,o=i||{},{tab:s}=o,l=Lxe(o,["tab"]);return Object.assign(Object.assign({key:String(a)},l),{label:s})}return null});return Bxe(r)}const Hxe=e=>{const{componentCls:t,motionDurationSlow:r}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${r}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${r}`}}}}},[al(e,"slide-up"),al(e,"slide-down")]]},Wxe=Hxe,Vxe=e=>{const{componentCls:t,tabsCardPadding:r,cardBg:n,cardGutter:a,colorBorderSecondary:i,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:r,background:n,border:`${se(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:nl(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:se(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${se(e.borderRadiusLG)} ${se(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${se(e.borderRadiusLG)} ${se(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:se(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${se(e.borderRadiusLG)} 0 0 ${se(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${se(e.borderRadiusLG)} ${se(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Uxe=e=>{const{componentCls:t,itemHoverColor:r,dropdownEdgeChildVerticalPadding:n}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},ur(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:`${se(n)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Uo),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${se(e.paddingXXS)} ${se(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Kxe=e=>{const{componentCls:t,margin:r,colorBorderSecondary:n,horizontalMargin:a,verticalItemPadding:i,verticalItemMargin:o,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${se(e.lineWidth)} ${e.lineType} ${n}`,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:r,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:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:o},[`${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:se(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Gxe=e=>{const{componentCls:t,cardPaddingSM:r,cardPaddingLG:n,cardHeightSM:a,cardHeightLG:i,horizontalItemPaddingSM:o,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${se(e.borderRadius)} ${se(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${se(e.borderRadius)} ${se(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${se(e.borderRadius)} ${se(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${se(e.borderRadius)} 0 0 ${se(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},qxe=e=>{const{componentCls:t,itemActiveColor:r,itemHoverColor:n,iconCls:a,tabsHorizontalItemMargin:i,horizontalItemPadding:o,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:o,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:r}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Nl(e)),"&:hover":{color:n},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn:focus-visible`]:nl(e),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${a}`]:{margin:0,verticalAlign:"middle"},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},Xxe=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:r,iconCls:n,cardGutter:a,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:r},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[n]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:se(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:se(e.marginXS)},marginLeft:{_skip_check_:!0,value:se(i(e.marginXXS).mul(-1).equal())},[n]:{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:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Yxe=e=>{const{componentCls:t,tabsCardPadding:r,cardHeight:n,cardGutter:a,itemHoverColor:i,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ur(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:r,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:n,minHeight:n,marginLeft:{_skip_check_:!0,value:a},background:"transparent",border:`${se(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${se(e.borderRadiusLG)} ${se(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:o}},Nl(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),qxe(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Nl(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},Qxe=e=>{const{cardHeight:t,cardHeightSM:r,cardHeightLG:n,controlHeight:a,controlHeightLG:i}=e,o=t||i,s=r||a,l=n||i+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:o,cardHeightSM:s,cardHeightLG:l,cardPadding:`${(o-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(l-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},Zxe=or("Tabs",e=>{const t=Yt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${se(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${se(e.horizontalItemGutter)}`});return[Gxe(t),Xxe(t),Kxe(t),Uxe(t),Vxe(t),Yxe(t),Wxe(t)]},Qxe),Jxe=()=>null,e1e=Jxe;var t1e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var r,n,a,i,o,s,l,c,u,f,m;const{type:h,className:v,rootClassName:p,size:g,onEdit:y,hideAdd:x,centered:b,addIcon:S,removeIcon:w,moreIcon:E,more:C,popupClassName:O,children:_,items:T,animated:I,style:N,indicatorSize:D,indicator:k,destroyInactiveTabPane:R,destroyOnHidden:A}=e,j=t1e(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:F}=j,{direction:M,tabs:V,getPrefixCls:K,getPopupContainer:L}=d.useContext(Nt),B=K("tabs",F),W=gn(B),[H,U,X]=Zxe(B,W),Y=d.useRef(null);d.useImperativeHandle(t,()=>({nativeElement:Y.current}));let G;h==="editable-card"&&(G={onEdit:(q,{key:ne,event:he})=>{y==null||y(q==="add"?he:ne,q)},removeIcon:(r=w??(V==null?void 0:V.removeIcon))!==null&&r!==void 0?r:d.createElement(cu,null),addIcon:(S??(V==null?void 0:V.addIcon))||d.createElement(Vd,null),showAdd:x!==!0});const Q=K(),J=ba(g),z=zxe(T,_),fe=Fxe(B,I),te=Object.assign(Object.assign({},V==null?void 0:V.style),N),re={align:(n=k==null?void 0:k.align)!==null&&n!==void 0?n:(a=V==null?void 0:V.indicator)===null||a===void 0?void 0:a.align,size:(l=(o=(i=k==null?void 0:k.size)!==null&&i!==void 0?i:D)!==null&&o!==void 0?o:(s=V==null?void 0:V.indicator)===null||s===void 0?void 0:s.size)!==null&&l!==void 0?l:V==null?void 0:V.indicatorSize};return H(d.createElement(Dxe,Object.assign({ref:Y,direction:M,getPopupContainer:L},j,{items:z,className:ce({[`${B}-${J}`]:J,[`${B}-card`]:["card","editable-card"].includes(h),[`${B}-editable-card`]:h==="editable-card",[`${B}-centered`]:b},V==null?void 0:V.className,v,p,U,X,W),popupClassName:ce(O,U,X,W),style:te,editable:G,more:Object.assign({icon:(m=(f=(u=(c=V==null?void 0:V.more)===null||c===void 0?void 0:c.icon)!==null&&u!==void 0?u:V==null?void 0:V.moreIcon)!==null&&f!==void 0?f:E)!==null&&m!==void 0?m:d.createElement(SI,null),transitionName:`${Q}-slide-up`},C),prefixCls:B,animated:fe,indicator:re,destroyInactiveTabPane:A??R})))}),UV=r1e;UV.TabPane=e1e;const DS=UV;var n1e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:r,hoverable:n=!0}=e,a=n1e(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=d.useContext(Nt),o=i("card",t),s=ce(`${o}-grid`,r,{[`${o}-grid-hoverable`]:n});return d.createElement("div",Object.assign({},a,{className:s}))},KV=a1e,i1e=e=>{const{antCls:t,componentCls:r,headerHeight:n,headerPadding:a,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:n,marginBottom:-1,padding:`0 ${se(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${se(e.borderRadiusLG)} ${se(e.borderRadiusLG)} 0 0`},rl()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Uo),{[` + > ${r}-typography, + > ${r}-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:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},o1e=e=>{const{cardPaddingBase:t,colorBorderSecondary:r,cardShadow:n,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` + ${se(a)} 0 0 0 ${r}, + 0 ${se(a)} 0 0 ${r}, + ${se(a)} ${se(a)} 0 0 ${r}, + ${se(a)} 0 0 0 ${r} inset, + 0 ${se(a)} 0 0 ${r} inset; + `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:n}}},s1e=e=>{const{componentCls:t,iconCls:r,actionsLiMargin:n,cardActionsIconSize:a,colorBorderSecondary:i,actionsBg:o}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:o,borderTop:`${se(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${se(e.borderRadiusLG)} ${se(e.borderRadiusLG)}`},rl()),{"& > li":{margin:n,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${r}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:se(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:a,lineHeight:se(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${se(e.lineWidth)} ${e.lineType} ${i}`}}})},l1e=e=>Object.assign(Object.assign({margin:`${se(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},rl()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Uo),"&-description":{color:e.colorTextDescription}}),c1e=e=>{const{componentCls:t,colorFillAlter:r,headerPadding:n,bodyPadding:a}=e;return{[`${t}-head`]:{padding:`0 ${se(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${se(e.padding)} ${se(a)}`}}},u1e=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},d1e=e=>{const{componentCls:t,cardShadow:r,cardHeadPadding:n,colorBorderSecondary:a,boxShadowTertiary:i,bodyPadding:o,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},ur(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:i1e(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:o,borderRadius:`0 0 ${se(e.borderRadiusLG)} ${se(e.borderRadiusLG)}`},[`${t}-grid`]:o1e(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${se(e.borderRadiusLG)} ${se(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:s1e(e),[`${t}-meta`]:l1e(e)}),[`${t}-bordered`]:{border:`${se(e.lineWidth)} ${e.lineType} ${a}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${t}-contain-grid`]:{borderRadius:`${se(e.borderRadiusLG)} ${se(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:n}}},[`${t}-type-inner`]:c1e(e),[`${t}-loading`]:u1e(e),[`${t}-rtl`]:{direction:"rtl"}}},f1e=e=>{const{componentCls:t,bodyPaddingSM:r,headerPaddingSM:n,headerHeightSM:a,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:a,padding:`0 ${se(n)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:r}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},m1e=e=>{var t,r;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(r=e.headerPadding)!==null&&r!==void 0?r:e.paddingLG}},h1e=or("Card",e=>{const t=Yt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[d1e(t),f1e(t)]},m1e);var CD=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{actionClasses:t,actions:r=[],actionStyle:n}=e;return d.createElement("ul",{className:t,style:n},r.map((a,i)=>{const o=`action-${i}`;return d.createElement("li",{style:{width:`${100/r.length}%`},key:o},d.createElement("span",null,a))}))},v1e=d.forwardRef((e,t)=>{const{prefixCls:r,className:n,rootClassName:a,style:i,extra:o,headStyle:s={},bodyStyle:l={},title:c,loading:u,bordered:f,variant:m,size:h,type:v,cover:p,actions:g,tabList:y,children:x,activeTabKey:b,defaultActiveTabKey:S,tabBarExtraContent:w,hoverable:E,tabProps:C={},classNames:O,styles:_}=e,T=CD(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:I,direction:N,card:D}=d.useContext(Nt),[k]=Ld("card",m,f),R=ye=>{var pe;(pe=e.onTabChange)===null||pe===void 0||pe.call(e,ye)},A=ye=>{var pe;return ce((pe=D==null?void 0:D.classNames)===null||pe===void 0?void 0:pe[ye],O==null?void 0:O[ye])},j=ye=>{var pe;return Object.assign(Object.assign({},(pe=D==null?void 0:D.styles)===null||pe===void 0?void 0:pe[ye]),_==null?void 0:_[ye])},F=d.useMemo(()=>{let ye=!1;return d.Children.forEach(x,pe=>{(pe==null?void 0:pe.type)===KV&&(ye=!0)}),ye},[x]),M=I("card",r),[V,K,L]=h1e(M),B=d.createElement(rI,{loading:!0,active:!0,paragraph:{rows:4},title:!1},x),W=b!==void 0,H=Object.assign(Object.assign({},C),{[W?"activeKey":"defaultActiveKey"]:W?b:S,tabBarExtraContent:w});let U;const X=ba(h),Y=!X||X==="default"?"large":X,G=y?d.createElement(DS,Object.assign({size:Y},H,{className:`${M}-head-tabs`,onChange:R,items:y.map(ye=>{var{tab:pe}=ye,be=CD(ye,["tab"]);return Object.assign({label:pe},be)})})):null;if(c||o||G){const ye=ce(`${M}-head`,A("header")),pe=ce(`${M}-head-title`,A("title")),be=ce(`${M}-extra`,A("extra")),_e=Object.assign(Object.assign({},s),j("header"));U=d.createElement("div",{className:ye,style:_e},d.createElement("div",{className:`${M}-head-wrapper`},c&&d.createElement("div",{className:pe,style:j("title")},c),o&&d.createElement("div",{className:be,style:j("extra")},o)),G)}const Q=ce(`${M}-cover`,A("cover")),J=p?d.createElement("div",{className:Q,style:j("cover")},p):null,z=ce(`${M}-body`,A("body")),fe=Object.assign(Object.assign({},l),j("body")),te=d.createElement("div",{className:z,style:fe},u?B:x),re=ce(`${M}-actions`,A("actions")),q=g!=null&&g.length?d.createElement(p1e,{actionClasses:re,actionStyle:j("actions"),actions:g}):null,ne=Er(T,["onTabChange"]),he=ce(M,D==null?void 0:D.className,{[`${M}-loading`]:u,[`${M}-bordered`]:k!=="borderless",[`${M}-hoverable`]:E,[`${M}-contain-grid`]:F,[`${M}-contain-tabs`]:y==null?void 0:y.length,[`${M}-${X}`]:X,[`${M}-type-${v}`]:!!v,[`${M}-rtl`]:N==="rtl"},n,a,K,L),xe=Object.assign(Object.assign({},D==null?void 0:D.style),i);return V(d.createElement("div",Object.assign({ref:t},ne,{className:he,style:xe}),U,J,te,q))}),g1e=v1e;var y1e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:r,avatar:n,title:a,description:i}=e,o=y1e(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=d.useContext(Nt),l=s("card",t),c=ce(`${l}-meta`,r),u=n?d.createElement("div",{className:`${l}-meta-avatar`},n):null,f=a?d.createElement("div",{className:`${l}-meta-title`},a):null,m=i?d.createElement("div",{className:`${l}-meta-description`},i):null,h=f||m?d.createElement("div",{className:`${l}-meta-detail`},f,m):null;return d.createElement("div",Object.assign({},o,{className:c}),u,h)},b1e=x1e,FI=g1e;FI.Grid=KV;FI.Meta=b1e;const _r=FI;function S1e(e,t,r){var n=r||{},a=n.noTrailing,i=a===void 0?!1:a,o=n.noLeading,s=o===void 0?!1:o,l=n.debounceMode,c=l===void 0?void 0:l,u,f=!1,m=0;function h(){u&&clearTimeout(u)}function v(g){var y=g||{},x=y.upcomingOnly,b=x===void 0?!1:x;h(),f=!b}function p(){for(var g=arguments.length,y=new Array(g),x=0;xe?s?(m=Date.now(),i||(u=setTimeout(c?E:w,e))):w():i!==!0&&(u=setTimeout(c?E:w,c===void 0?e-S:e))}return p.cancel=v,p}function w1e(e,t,r){var n=r||{},a=n.atBegin,i=a===void 0?!1:a;return S1e(e,t,{debounceMode:i!==!1})}function ki(e,t){return e[t]}var C1e=["children"];function GV(e,t){return"".concat(e,"-").concat(t)}function E1e(e){return e&&e.type&&e.type.isTreeNode}function Ov(e,t){return e??t}function S0(e){var t=e||{},r=t.title,n=t._title,a=t.key,i=t.children,o=r||"title";return{title:o,_title:n||[o],key:a||"key",children:i||"children"}}function qV(e){function t(r){var n=ha(r);return n.map(function(a){if(!E1e(a))return Br(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var i=a.key,o=a.props,s=o.children,l=Rt(o,C1e),c=ae({key:i},l),u=t(s);return u.length&&(c.children=u),c}).filter(function(a){return a})}return t(e)}function N2(e,t,r){var n=S0(r),a=n._title,i=n.key,o=n.children,s=new Set(t===!0?[]:t),l=[];function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(m,h){for(var v=GV(f?f.pos:"0",h),p=Ov(m[i],v),g,y=0;y1&&arguments[1]!==void 0?arguments[1]:{},r=t.initWrapper,n=t.processEntity,a=t.onProcessFinished,i=t.externalGetKey,o=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,c=i||l,u={},f={},m={posEntities:u,keyEntities:f};return r&&(m=r(m)||m),$1e(e,function(h){var v=h.node,p=h.index,g=h.pos,y=h.key,x=h.parentPos,b=h.level,S=h.nodes,w={node:v,nodes:S,index:p,key:y,pos:g,level:b},E=Ov(y,g);u[g]=w,f[E]=w,w.parent=u[x],w.parent&&(w.parent.children=w.parent.children||[],w.parent.children.push(w)),n&&n(w,m)},{externalGetKey:c,childrenPropName:o,fieldNames:s}),a&&a(m),m}function Ih(e,t){var r=t.expandedKeys,n=t.selectedKeys,a=t.loadedKeys,i=t.loadingKeys,o=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities,f=ki(u,e),m={eventKey:e,expanded:r.indexOf(e)!==-1,selected:n.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:o.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:l===e&&c===0,dragOverGapTop:l===e&&c===-1,dragOverGapBottom:l===e&&c===1};return m}function Qn(e){var t=e.data,r=e.expanded,n=e.selected,a=e.checked,i=e.loaded,o=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,f=e.pos,m=e.active,h=e.eventKey,v=ae(ae({},t),{},{expanded:r,selected:n,checked:a,loaded:i,loading:o,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:f,active:m,key:h});return"props"in v||Object.defineProperty(v,"props",{get:function(){return Br(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),v}function XV(e,t){var r=new Set;return e.forEach(function(n){t.has(n)||r.add(n)}),r}function _1e(e){var t=e||{},r=t.disabled,n=t.disableCheckbox,a=t.checkable;return!!(r||n)||a===!1}function O1e(e,t,r,n){for(var a=new Set(e),i=new Set,o=0;o<=r;o+=1){var s=t.get(o)||new Set;s.forEach(function(f){var m=f.key,h=f.node,v=f.children,p=v===void 0?[]:v;a.has(m)&&!n(h)&&p.filter(function(g){return!n(g.node)}).forEach(function(g){a.add(g.key)})})}for(var l=new Set,c=r;c>=0;c-=1){var u=t.get(c)||new Set;u.forEach(function(f){var m=f.parent,h=f.node;if(!(n(h)||!f.parent||l.has(f.parent.key))){if(n(f.parent.node)){l.add(m.key);return}var v=!0,p=!1;(m.children||[]).filter(function(g){return!n(g.node)}).forEach(function(g){var y=g.key,x=a.has(y);v&&!x&&(v=!1),!p&&(x||i.has(y))&&(p=!0)}),v&&a.add(m.key),p&&i.add(m.key),l.add(m.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(XV(i,a))}}function T1e(e,t,r,n,a){for(var i=new Set(e),o=new Set(t),s=0;s<=n;s+=1){var l=r.get(s)||new Set;l.forEach(function(m){var h=m.key,v=m.node,p=m.children,g=p===void 0?[]:p;!i.has(h)&&!o.has(h)&&!a(v)&&g.filter(function(y){return!a(y.node)}).forEach(function(y){i.delete(y.key)})})}o=new Set;for(var c=new Set,u=n;u>=0;u-=1){var f=r.get(u)||new Set;f.forEach(function(m){var h=m.parent,v=m.node;if(!(a(v)||!m.parent||c.has(m.parent.key))){if(a(m.parent.node)){c.add(h.key);return}var p=!0,g=!1;(h.children||[]).filter(function(y){return!a(y.node)}).forEach(function(y){var x=y.key,b=i.has(x);p&&!b&&(p=!1),!g&&(b||o.has(x))&&(g=!0)}),p||i.delete(h.key),g&&o.add(h.key),c.add(h.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(XV(o,i))}}function Jf(e,t,r,n){var a=[],i;n?i=n:i=_1e;var o=new Set(e.filter(function(u){var f=!!ki(r,u);return f||a.push(u),f})),s=new Map,l=0;Object.keys(r).forEach(function(u){var f=r[u],m=f.level,h=s.get(m);h||(h=new Set,s.set(m,h)),h.add(f),l=Math.max(l,m)}),Br(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var c;return t===!0?c=O1e(o,s,l,i):c=T1e(o,t.halfCheckedKeys,s,l,i),c}const P1e=e=>{const{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},ur(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},ur(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},ur(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:nl(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${se(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` + ${r}:not(${r}-disabled), + ${t}:not(${t}-disabled) + `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-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}`}}},[` + ${r}-checked:not(${r}-disabled), + ${t}-checked:not(${t}-disabled) + `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${r}-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 YV(e,t){const r=Yt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return P1e(r)}const QV=or("Checkbox",(e,{prefixCls:t})=>[YV(t,e)]),I1e=ve.createContext(null),ZV=I1e;var N1e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var r;const{prefixCls:n,className:a,rootClassName:i,children:o,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:f=!1,disabled:m}=e,h=N1e(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:v,direction:p,checkbox:g}=d.useContext(Nt),y=d.useContext(ZV),{isFormItemInput:x}=d.useContext(ga),b=d.useContext(Wi),S=(r=(y==null?void 0:y.disabled)||m)!==null&&r!==void 0?r:b,w=d.useRef(h.value),E=d.useRef(null),C=xa(t,E);d.useEffect(()=>{y==null||y.registerValue(h.value)},[]),d.useEffect(()=>{if(!f)return h.value!==w.current&&(y==null||y.cancelValue(w.current),y==null||y.registerValue(h.value),w.current=h.value),()=>y==null?void 0:y.cancelValue(h.value)},[h.value]),d.useEffect(()=>{var F;!((F=E.current)===null||F===void 0)&&F.input&&(E.current.input.indeterminate=s)},[s]);const O=v("checkbox",n),_=gn(O),[T,I,N]=QV(O,_),D=Object.assign({},h);y&&!f&&(D.onChange=(...F)=>{h.onChange&&h.onChange.apply(h,F),y.toggleOption&&y.toggleOption({label:o,value:h.value})},D.name=y.name,D.checked=y.value.includes(h.value));const k=ce(`${O}-wrapper`,{[`${O}-rtl`]:p==="rtl",[`${O}-wrapper-checked`]:D.checked,[`${O}-wrapper-disabled`]:S,[`${O}-wrapper-in-form-item`]:x},g==null?void 0:g.className,a,i,N,_,I),R=ce({[`${O}-indeterminate`]:s},rS,I),[A,j]=OV(D.onClick);return T(d.createElement(nS,{component:"Checkbox",disabled:S},d.createElement("label",{className:k,style:Object.assign(Object.assign({},g==null?void 0:g.style),l),onMouseEnter:c,onMouseLeave:u,onClick:A},d.createElement(_V,Object.assign({},D,{onClick:j,prefixCls:O,className:R,disabled:S,ref:C})),o!=null&&d.createElement("span",{className:`${O}-label`},o))))},R1e=d.forwardRef(k1e),JV=R1e;var A1e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{defaultValue:r,children:n,options:a=[],prefixCls:i,className:o,rootClassName:s,style:l,onChange:c}=e,u=A1e(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:m}=d.useContext(Nt),[h,v]=d.useState(u.value||r||[]),[p,g]=d.useState([]);d.useEffect(()=>{"value"in u&&v(u.value||[])},[u.value]);const y=d.useMemo(()=>a.map(R=>typeof R=="string"||typeof R=="number"?{label:R,value:R}:R),[a]),x=R=>{g(A=>A.filter(j=>j!==R))},b=R=>{g(A=>[].concat(De(A),[R]))},S=R=>{const A=h.indexOf(R.value),j=De(h);A===-1?j.push(R.value):j.splice(A,1),"value"in u||v(j),c==null||c(j.filter(F=>p.includes(F)).sort((F,M)=>{const V=y.findIndex(L=>L.value===F),K=y.findIndex(L=>L.value===M);return V-K}))},w=f("checkbox",i),E=`${w}-group`,C=gn(w),[O,_,T]=QV(w,C),I=Er(u,["value","disabled"]),N=a.length?y.map(R=>d.createElement(JV,{prefixCls:w,key:R.value.toString(),disabled:"disabled"in R?R.disabled:u.disabled,value:R.value,checked:h.includes(R.value),onChange:R.onChange,className:ce(`${E}-item`,R.className),style:R.style,title:R.title,id:R.id,required:R.required},R.label)):n,D=d.useMemo(()=>({toggleOption:S,value:h,disabled:u.disabled,name:u.name,registerValue:b,cancelValue:x}),[S,h,u.disabled,u.name,b,x]),k=ce(E,{[`${E}-rtl`]:m==="rtl"},o,s,T,C,_);return O(d.createElement("div",Object.assign({className:k,style:l},I,{ref:t}),d.createElement(ZV.Provider,{value:D},N)))}),D1e=M1e,BI=JV;BI.Group=D1e;BI.__ANT_CHECKBOX=!0;const Sp=BI,j1e=d.createContext({}),eU=j1e;var F1e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:r,direction:n}=d.useContext(Nt),{gutter:a,wrap:i}=d.useContext(eU),{prefixCls:o,span:s,order:l,offset:c,push:u,pull:f,className:m,children:h,flex:v,style:p}=e,g=F1e(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=r("col",o),[x,b,S]=t0e(y),w={};let E={};L1e.forEach(_=>{let T={};const I=e[_];typeof I=="number"?T.span=I:typeof I=="object"&&(T=I||{}),delete g[_],E=Object.assign(Object.assign({},E),{[`${y}-${_}-${T.span}`]:T.span!==void 0,[`${y}-${_}-order-${T.order}`]:T.order||T.order===0,[`${y}-${_}-offset-${T.offset}`]:T.offset||T.offset===0,[`${y}-${_}-push-${T.push}`]:T.push||T.push===0,[`${y}-${_}-pull-${T.pull}`]:T.pull||T.pull===0,[`${y}-rtl`]:n==="rtl"}),T.flex&&(E[`${y}-${_}-flex`]=!0,w[`--${y}-${_}-flex`]=ED(T.flex))});const C=ce(y,{[`${y}-${s}`]:s!==void 0,[`${y}-order-${l}`]:l,[`${y}-offset-${c}`]:c,[`${y}-push-${u}`]:u,[`${y}-pull-${f}`]:f},m,E,b,S),O={};if(a!=null&&a[0]){const _=typeof a[0]=="number"?`${a[0]/2}px`:`calc(${a[0]} / 2)`;O.paddingLeft=_,O.paddingRight=_}return v&&(O.flex=ED(v),i===!1&&!O.minWidth&&(O.minWidth=0)),x(d.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},O),p),w),className:C,ref:t}),h))}),Qr=B1e;function z1e(e,t){const r=[void 0,void 0],n=Array.isArray(e)?e:[e,void 0],a=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return n.forEach((i,o)=>{if(typeof i=="object"&&i!==null)for(let s=0;s{if(typeof e=="string"&&n(e),typeof e=="object")for(let i=0;i{a()},[JSON.stringify(e),t]),r}const W1e=d.forwardRef((e,t)=>{const{prefixCls:r,justify:n,align:a,className:i,style:o,children:s,gutter:l=0,wrap:c}=e,u=H1e(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:m}=d.useContext(Nt),h=wv(!0,null),v=$D(a,h),p=$D(n,h),g=f("row",r),[y,x,b]=e0e(g),S=z1e(l,h),w=ce(g,{[`${g}-no-wrap`]:c===!1,[`${g}-${p}`]:p,[`${g}-${v}`]:v,[`${g}-rtl`]:m==="rtl"},i,x,b),E={};if(S!=null&&S[0]){const T=typeof S[0]=="number"?`${S[0]/-2}px`:`calc(${S[0]} / -2)`;E.marginLeft=T,E.marginRight=T}const[C,O]=S;E.rowGap=O;const _=d.useMemo(()=>({gutter:[C,O],wrap:c}),[C,O,c]);return y(d.createElement(eU.Provider,{value:_},d.createElement("div",Object.assign({},u,{className:w,style:Object.assign(Object.assign({},E),o),ref:t}),s)))}),cs=W1e,V1e=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},U1e=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:r,colorSplit:n,lineWidth:a,textPaddingInline:i,orientationMargin:o,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},ur(e)),{borderBlockStart:`${se(a)} solid ${n}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${se(a)} solid ${n}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${se(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${se(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${n}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${se(a)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${o} * 100%)`},"&::after":{width:`calc(100% - ${o} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${o} * 100%)`},"&::after":{width:`calc(${o} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:n,borderStyle:"dashed",borderWidth:`${se(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:n,borderStyle:"dotted",borderWidth:`${se(a)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:r}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:r}}})}},K1e=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),G1e=or("Divider",e=>{const t=Yt(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[U1e(t),V1e(t)]},K1e,{unitless:{orientationMargin:!0}});var q1e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:r,className:n,style:a}=Fn("divider"),{prefixCls:i,type:o="horizontal",orientation:s="center",orientationMargin:l,className:c,rootClassName:u,children:f,dashed:m,variant:h="solid",plain:v,style:p,size:g}=e,y=q1e(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),x=t("divider",i),[b,S,w]=G1e(x),E=ba(g),C=X1e[E],O=!!f,_=d.useMemo(()=>s==="left"?r==="rtl"?"end":"start":s==="right"?r==="rtl"?"start":"end":s,[r,s]),T=_==="start"&&l!=null,I=_==="end"&&l!=null,N=ce(x,n,S,w,`${x}-${o}`,{[`${x}-with-text`]:O,[`${x}-with-text-${_}`]:O,[`${x}-dashed`]:!!m,[`${x}-${h}`]:h!=="solid",[`${x}-plain`]:!!v,[`${x}-rtl`]:r==="rtl",[`${x}-no-default-orientation-margin-start`]:T,[`${x}-no-default-orientation-margin-end`]:I,[`${x}-${C}`]:!!C},c,u),D=d.useMemo(()=>typeof l=="number"?l:/^\d+$/.test(l)?Number(l):l,[l]),k={marginInlineStart:T?D:void 0,marginInlineEnd:I?D:void 0};return b(d.createElement("div",Object.assign({className:N,style:Object.assign(Object.assign({},a),p)},y,{role:"separator"}),f&&o!=="vertical"&&d.createElement("span",{className:`${x}-inner-text`,style:k},f)))},Q1e=Y1e;var Z1e={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"};const J1e=Z1e;var ebe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:J1e}))},tbe=d.forwardRef(ebe);const rbe=tbe;function tO(){return typeof BigInt=="function"}function tU(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Zu(e){var t=e.trim(),r=t.startsWith("-");r&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var n=t||"0",a=n.split("."),i=a[0]||"0",o=a[1]||"0";i==="0"&&o==="0"&&(r=!1);var s=r?"-":"";return{negative:r,negativeStr:s,trimStr:n,integerStr:i,decimalStr:o,fullStr:"".concat(s).concat(n)}}function zI(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Bu(e){var t=String(e);if(zI(e)){var r=Number(t.slice(t.indexOf("e-")+2)),n=t.match(/\.(\d+)/);return n!=null&&n[1]&&(r+=n[1].length),r}return t.includes(".")&&HI(t)?t.length-t.indexOf(".")-1:0}function jS(e){var t=String(e);if(zI(e)){if(e>Number.MAX_SAFE_INTEGER)return String(tO()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":Zu("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),abe=function(){function e(t){if(Wr(this,e),ee(this,"origin",""),ee(this,"number",void 0),ee(this,"empty",void 0),tU(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Vr(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var n=Number(r);if(Number.isNaN(n))return this;var a=this.number+n;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(aNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":jS(this.number):this.origin}}]),e}();function as(e){return tO()?new nbe(e):new abe(e)}function dx(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=Zu(e),i=a.negativeStr,o=a.integerStr,s=a.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(o);if(r>=0){var u=Number(s[r]);if(u>=5&&!n){var f=as(e).add("".concat(i,"0.").concat("0".repeat(r)).concat(10-u));return dx(f.toString(),t,r,n)}return r===0?c:"".concat(c).concat(t).concat(s.padEnd(r,"0").slice(0,r))}return l===".0"?c:"".concat(c).concat(l)}function ibe(e){return!!(e.addonBefore||e.addonAfter)}function obe(e){return!!(e.prefix||e.suffix||e.allowClear)}function _D(e,t,r){var n=t.cloneNode(!0),a=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function c1(e,t,r,n){if(r){var a=t;if(t.type==="click"){a=_D(t,e,""),r(a);return}if(e.type!=="file"&&n!==void 0){a=_D(t,e,n),r(a);return}r(a)}}function WI(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var a=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var VI=ve.forwardRef(function(e,t){var r,n,a,i=e.inputElement,o=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,f=e.addonAfter,m=e.className,h=e.style,v=e.disabled,p=e.readOnly,g=e.focused,y=e.triggerFocus,x=e.allowClear,b=e.value,S=e.handleReset,w=e.hidden,E=e.classes,C=e.classNames,O=e.dataAttrs,_=e.styles,T=e.components,I=e.onClear,N=o??i,D=(T==null?void 0:T.affixWrapper)||"span",k=(T==null?void 0:T.groupWrapper)||"span",R=(T==null?void 0:T.wrapper)||"span",A=(T==null?void 0:T.groupAddon)||"span",j=d.useRef(null),F=function(re){var q;(q=j.current)!==null&&q!==void 0&&q.contains(re.target)&&(y==null||y())},M=obe(e),V=d.cloneElement(N,{value:b,className:ce((r=N.props)===null||r===void 0?void 0:r.className,!M&&(C==null?void 0:C.variant))||null}),K=d.useRef(null);if(ve.useImperativeHandle(t,function(){return{nativeElement:K.current||j.current}}),M){var L=null;if(x){var B=!v&&!p&&b,W="".concat(s,"-clear-icon"),H=bt(x)==="object"&&x!==null&&x!==void 0&&x.clearIcon?x.clearIcon:"✖";L=ve.createElement("button",{type:"button",tabIndex:-1,onClick:function(re){S==null||S(re),I==null||I()},onMouseDown:function(re){return re.preventDefault()},className:ce(W,ee(ee({},"".concat(W,"-hidden"),!B),"".concat(W,"-has-suffix"),!!c))},H)}var U="".concat(s,"-affix-wrapper"),X=ce(U,ee(ee(ee(ee(ee({},"".concat(s,"-disabled"),v),"".concat(U,"-disabled"),v),"".concat(U,"-focused"),g),"".concat(U,"-readonly"),p),"".concat(U,"-input-with-clear-btn"),c&&x&&b),E==null?void 0:E.affixWrapper,C==null?void 0:C.affixWrapper,C==null?void 0:C.variant),Y=(c||x)&&ve.createElement("span",{className:ce("".concat(s,"-suffix"),C==null?void 0:C.suffix),style:_==null?void 0:_.suffix},L,c);V=ve.createElement(D,Te({className:X,style:_==null?void 0:_.affixWrapper,onClick:F},O==null?void 0:O.affixWrapper,{ref:j}),l&&ve.createElement("span",{className:ce("".concat(s,"-prefix"),C==null?void 0:C.prefix),style:_==null?void 0:_.prefix},l),V,Y)}if(ibe(e)){var G="".concat(s,"-group"),Q="".concat(G,"-addon"),J="".concat(G,"-wrapper"),z=ce("".concat(s,"-wrapper"),G,E==null?void 0:E.wrapper,C==null?void 0:C.wrapper),fe=ce(J,ee({},"".concat(J,"-disabled"),v),E==null?void 0:E.group,C==null?void 0:C.groupWrapper);V=ve.createElement(k,{className:fe,ref:K},ve.createElement(R,{className:z},u&&ve.createElement(A,{className:Q},u),V,f&&ve.createElement(A,{className:Q},f)))}return ve.cloneElement(V,{className:ce((n=V.props)===null||n===void 0?void 0:n.className,m)||null,style:ae(ae({},(a=V.props)===null||a===void 0?void 0:a.style),h),hidden:w})}),sbe=["show"];function rU(e,t){return d.useMemo(function(){var r={};t&&(r.show=bt(t)==="object"&&t.formatter?t.formatter:!!t),r=ae(ae({},r),e);var n=r,a=n.show,i=Rt(n,sbe);return ae(ae({},i),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:i.strategy||function(o){return o.length}})},[e,t])}var lbe=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],cbe=d.forwardRef(function(e,t){var r=e.autoComplete,n=e.onChange,a=e.onFocus,i=e.onBlur,o=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,m=e.htmlSize,h=e.className,v=e.maxLength,p=e.suffix,g=e.showCount,y=e.count,x=e.type,b=x===void 0?"text":x,S=e.classes,w=e.classNames,E=e.styles,C=e.onCompositionStart,O=e.onCompositionEnd,_=Rt(e,lbe),T=d.useState(!1),I=me(T,2),N=I[0],D=I[1],k=d.useRef(!1),R=d.useRef(!1),A=d.useRef(null),j=d.useRef(null),F=function($e){A.current&&WI(A.current,$e)},M=br(e.defaultValue,{value:e.value}),V=me(M,2),K=V[0],L=V[1],B=K==null?"":String(K),W=d.useState(null),H=me(W,2),U=H[0],X=H[1],Y=rU(y,g),G=Y.max||v,Q=Y.strategy(B),J=!!G&&Q>G;d.useImperativeHandle(t,function(){var _e;return{focus:F,blur:function(){var Be;(Be=A.current)===null||Be===void 0||Be.blur()},setSelectionRange:function(Be,Fe,nt){var qe;(qe=A.current)===null||qe===void 0||qe.setSelectionRange(Be,Fe,nt)},select:function(){var Be;(Be=A.current)===null||Be===void 0||Be.select()},input:A.current,nativeElement:((_e=j.current)===null||_e===void 0?void 0:_e.nativeElement)||A.current}}),d.useEffect(function(){R.current&&(R.current=!1),D(function(_e){return _e&&f?!1:_e})},[f]);var z=function($e,Be,Fe){var nt=Be;if(!k.current&&Y.exceedFormatter&&Y.max&&Y.strategy(Be)>Y.max){if(nt=Y.exceedFormatter(Be,{max:Y.max}),Be!==nt){var qe,Ge;X([((qe=A.current)===null||qe===void 0?void 0:qe.selectionStart)||0,((Ge=A.current)===null||Ge===void 0?void 0:Ge.selectionEnd)||0])}}else if(Fe.source==="compositionEnd")return;L(nt),A.current&&c1(A.current,$e,n,nt)};d.useEffect(function(){if(U){var _e;(_e=A.current)===null||_e===void 0||_e.setSelectionRange.apply(_e,De(U))}},[U]);var fe=function($e){z($e,$e.target.value,{source:"change"})},te=function($e){k.current=!1,z($e,$e.currentTarget.value,{source:"compositionEnd"}),O==null||O($e)},re=function($e){o&&$e.key==="Enter"&&!R.current&&(R.current=!0,o($e)),s==null||s($e)},q=function($e){$e.key==="Enter"&&(R.current=!1),l==null||l($e)},ne=function($e){D(!0),a==null||a($e)},he=function($e){R.current&&(R.current=!1),D(!1),i==null||i($e)},xe=function($e){L(""),F(),A.current&&c1(A.current,$e,n)},ye=J&&"".concat(u,"-out-of-range"),pe=function(){var $e=Er(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ve.createElement("input",Te({autoComplete:r},$e,{onChange:fe,onFocus:ne,onBlur:he,onKeyDown:re,onKeyUp:q,className:ce(u,ee({},"".concat(u,"-disabled"),f),w==null?void 0:w.input),style:E==null?void 0:E.input,ref:A,size:m,type:b,onCompositionStart:function(Fe){k.current=!0,C==null||C(Fe)},onCompositionEnd:te}))},be=function(){var $e=Number(G)>0;if(p||Y.show){var Be=Y.showFormatter?Y.showFormatter({value:B,count:Q,maxLength:G}):"".concat(Q).concat($e?" / ".concat(G):"");return ve.createElement(ve.Fragment,null,Y.show&&ve.createElement("span",{className:ce("".concat(u,"-show-count-suffix"),ee({},"".concat(u,"-show-count-has-suffix"),!!p),w==null?void 0:w.count),style:ae({},E==null?void 0:E.count)},Be),p)}return null};return ve.createElement(VI,Te({},_,{prefixCls:u,className:ce(h,ye),handleReset:xe,value:B,focused:N,triggerFocus:F,suffix:be(),disabled:f,classes:S,classNames:w,styles:E,ref:j}),pe())});function ube(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(n,a){if(t[a])return t[a];var i=n[a];return typeof i=="function"?i.bind(n):i}}):e}function dbe(e,t){var r=d.useRef(null);function n(){try{var i=e.selectionStart,o=e.selectionEnd,s=e.value,l=s.substring(0,i),c=s.substring(o);r.current={start:i,end:o,value:s,beforeTxt:l,afterTxt:c}}catch{}}function a(){if(e&&r.current&&t)try{var i=e.value,o=r.current,s=o.beforeTxt,l=o.afterTxt,c=o.start,u=i.length;if(i.startsWith(s))u=s.length;else if(i.endsWith(l))u=i.length-r.current.afterTxt.length;else{var f=s[c-1],m=i.indexOf(f,c-1);m!==-1&&(u=m+1)}e.setSelectionRange(u,u)}catch(h){Br(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message))}}return[n,a]}var fbe=function(){var t=d.useState(!1),r=me(t,2),n=r[0],a=r[1];return Gt(function(){a(bS())},[]),n},mbe=200,hbe=600;function pbe(e){var t=e.prefixCls,r=e.upNode,n=e.downNode,a=e.upDisabled,i=e.downDisabled,o=e.onStep,s=d.useRef(),l=d.useRef([]),c=d.useRef();c.current=o;var u=function(){clearTimeout(s.current)},f=function(b,S){b.preventDefault(),u(),c.current(S);function w(){c.current(S),s.current=setTimeout(w,mbe)}s.current=setTimeout(w,hbe)};d.useEffect(function(){return function(){u(),l.current.forEach(function(x){return Ut.cancel(x)})}},[]);var m=fbe();if(m)return null;var h="".concat(t,"-handler"),v=ce(h,"".concat(h,"-up"),ee({},"".concat(h,"-up-disabled"),a)),p=ce(h,"".concat(h,"-down"),ee({},"".concat(h,"-down-disabled"),i)),g=function(){return l.current.push(Ut(u))},y={unselectable:"on",role:"button",onMouseUp:g,onMouseLeave:g};return d.createElement("div",{className:"".concat(h,"-wrap")},d.createElement("span",Te({},y,{onMouseDown:function(b){f(b,!0)},"aria-label":"Increase Value","aria-disabled":a,className:v}),r||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),d.createElement("span",Te({},y,{onMouseDown:function(b){f(b,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:p}),n||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function OD(e){var t=typeof e=="number"?jS(e):Zu(e).fullStr,r=t.includes(".");return r?Zu(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const vbe=function(){var e=d.useRef(0),t=function(){Ut.cancel(e.current)};return d.useEffect(function(){return t},[]),function(r){t(),e.current=Ut(function(){r()})}};var gbe=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],ybe=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],TD=function(t,r){return t||r.isEmpty()?r.toString():r.toNumber()},PD=function(t){var r=as(t);return r.isInvalidate()?null:r},xbe=d.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,a=e.style,i=e.min,o=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,f=e.disabled,m=e.readOnly,h=e.upHandler,v=e.downHandler,p=e.keyboard,g=e.changeOnWheel,y=g===void 0?!1:g,x=e.controls,b=x===void 0?!0:x;e.classNames;var S=e.stringMode,w=e.parser,E=e.formatter,C=e.precision,O=e.decimalSeparator,_=e.onChange,T=e.onInput,I=e.onPressEnter,N=e.onStep,D=e.changeOnBlur,k=D===void 0?!0:D,R=e.domRef,A=Rt(e,gbe),j="".concat(r,"-input"),F=d.useRef(null),M=d.useState(!1),V=me(M,2),K=V[0],L=V[1],B=d.useRef(!1),W=d.useRef(!1),H=d.useRef(!1),U=d.useState(function(){return as(u??c)}),X=me(U,2),Y=X[0],G=X[1];function Q(tt){u===void 0&&G(tt)}var J=d.useCallback(function(tt,it){if(!it)return C>=0?C:Math.max(Bu(tt),Bu(l))},[C,l]),z=d.useCallback(function(tt){var it=String(tt);if(w)return w(it);var ft=it;return O&&(ft=ft.replace(O,".")),ft.replace(/[^\w.-]+/g,"")},[w,O]),fe=d.useRef(""),te=d.useCallback(function(tt,it){if(E)return E(tt,{userTyping:it,input:String(fe.current)});var ft=typeof tt=="number"?jS(tt):tt;if(!it){var lt=J(ft,it);if(HI(ft)&&(O||lt>=0)){var mt=O||".";ft=dx(ft,mt,lt)}}return ft},[E,J,O]),re=d.useState(function(){var tt=c??u;return Y.isInvalidate()&&["string","number"].includes(bt(tt))?Number.isNaN(tt)?"":tt:te(Y.toString(),!1)}),q=me(re,2),ne=q[0],he=q[1];fe.current=ne;function xe(tt,it){he(te(tt.isInvalidate()?tt.toString(!1):tt.toString(!it),it))}var ye=d.useMemo(function(){return PD(o)},[o,C]),pe=d.useMemo(function(){return PD(i)},[i,C]),be=d.useMemo(function(){return!ye||!Y||Y.isInvalidate()?!1:ye.lessEquals(Y)},[ye,Y]),_e=d.useMemo(function(){return!pe||!Y||Y.isInvalidate()?!1:Y.lessEquals(pe)},[pe,Y]),$e=dbe(F.current,K),Be=me($e,2),Fe=Be[0],nt=Be[1],qe=function(it){return ye&&!it.lessEquals(ye)?ye:pe&&!pe.lessEquals(it)?pe:null},Ge=function(it){return!qe(it)},Le=function(it,ft){var lt=it,mt=Ge(lt)||lt.isEmpty();if(!lt.isEmpty()&&!ft&&(lt=qe(lt)||lt,mt=!0),!m&&!f&&mt){var Mt=lt.toString(),Ft=J(Mt,ft);return Ft>=0&&(lt=as(dx(Mt,".",Ft)),Ge(lt)||(lt=as(dx(Mt,".",Ft,!0)))),lt.equals(Y)||(Q(lt),_==null||_(lt.isEmpty()?null:TD(S,lt)),u===void 0&&xe(lt,ft)),lt}return Y},Ne=vbe(),we=function tt(it){if(Fe(),fe.current=it,he(it),!W.current){var ft=z(it),lt=as(ft);lt.isNaN()||Le(lt,!0)}T==null||T(it),Ne(function(){var mt=it;w||(mt=it.replace(/。/g,".")),mt!==it&&tt(mt)})},je=function(){W.current=!0},Oe=function(){W.current=!1,we(F.current.value)},Me=function(it){we(it.target.value)},ge=function(it){var ft;if(!(it&&be||!it&&_e)){B.current=!1;var lt=as(H.current?OD(l):l);it||(lt=lt.negate());var mt=(Y||as(0)).add(lt.toString()),Mt=Le(mt,!1);N==null||N(TD(S,Mt),{offset:H.current?OD(l):l,type:it?"up":"down"}),(ft=F.current)===null||ft===void 0||ft.focus()}},Se=function(it){var ft=as(z(ne)),lt;ft.isNaN()?lt=Le(Y,it):lt=Le(ft,it),u!==void 0?xe(Y,!1):lt.isNaN()||xe(lt,!1)},Re=function(){B.current=!0},We=function(it){var ft=it.key,lt=it.shiftKey;B.current=!0,H.current=lt,ft==="Enter"&&(W.current||(B.current=!1),Se(!1),I==null||I(it)),p!==!1&&!W.current&&["Up","ArrowUp","Down","ArrowDown"].includes(ft)&&(ge(ft==="Up"||ft==="ArrowUp"),it.preventDefault())},at=function(){B.current=!1,H.current=!1};d.useEffect(function(){if(y&&K){var tt=function(lt){ge(lt.deltaY<0),lt.preventDefault()},it=F.current;if(it)return it.addEventListener("wheel",tt,{passive:!1}),function(){return it.removeEventListener("wheel",tt)}}});var yt=function(){k&&Se(!1),L(!1),B.current=!1};return Yu(function(){Y.isInvalidate()||xe(Y,!1)},[C,E]),Yu(function(){var tt=as(u);G(tt);var it=as(z(ne));(!tt.equals(it)||!B.current||E)&&xe(tt,B.current)},[u]),Yu(function(){E&&nt()},[ne]),d.createElement("div",{ref:R,className:ce(r,n,ee(ee(ee(ee(ee({},"".concat(r,"-focused"),K),"".concat(r,"-disabled"),f),"".concat(r,"-readonly"),m),"".concat(r,"-not-a-number"),Y.isNaN()),"".concat(r,"-out-of-range"),!Y.isInvalidate()&&!Ge(Y))),style:a,onFocus:function(){L(!0)},onBlur:yt,onKeyDown:We,onKeyUp:at,onCompositionStart:je,onCompositionEnd:Oe,onBeforeInput:Re},b&&d.createElement(pbe,{prefixCls:r,upNode:h,downNode:v,upDisabled:be,downDisabled:_e,onStep:ge}),d.createElement("div",{className:"".concat(j,"-wrap")},d.createElement("input",Te({autoComplete:"off",role:"spinbutton","aria-valuemin":i,"aria-valuemax":o,"aria-valuenow":Y.isInvalidate()?null:Y.toString(),step:l},A,{ref:xa(F,t),className:j,value:ne,onChange:Me,disabled:f,readOnly:m}))))}),bbe=d.forwardRef(function(e,t){var r=e.disabled,n=e.style,a=e.prefixCls,i=a===void 0?"rc-input-number":a,o=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,m=e.classNames,h=Rt(e,ybe),v=d.useRef(null),p=d.useRef(null),g=d.useRef(null),y=function(b){g.current&&WI(g.current,b)};return d.useImperativeHandle(t,function(){return ube(g.current,{focus:y,nativeElement:v.current.nativeElement||p.current})}),d.createElement(VI,{className:f,triggerFocus:y,prefixCls:i,value:o,disabled:r,style:n,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:v},d.createElement(xbe,Te({prefixCls:i,disabled:r,ref:g,domRef:p,className:m==null?void 0:m.input},h)))});const Sbe=e=>{var t;const r=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",n=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},Wd(e)),{controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:r,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new lr(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:r===!0?1:0,handleVisibleWidth:r===!0?n:0})},ID=({componentCls:e,borderRadiusSM:t,borderRadiusLG:r},n)=>{const a=n==="lg"?r:t;return{[`&-${n}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${e}-handler-up`]:{borderStartEndRadius:a},[`${e}-handler-down`]:{borderEndEndRadius:a}}}},wbe=e=>{const{componentCls:t,lineWidth:r,lineType:n,borderRadius:a,inputFontSizeSM:i,inputFontSizeLG:o,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:m,paddingInlineLG:h,colorIcon:v,motionDurationMid:p,handleHoverColor:g,handleOpacity:y,paddingInline:x,paddingBlock:b,handleBg:S,handleActiveBg:w,colorTextDisabled:E,borderRadiusSM:C,borderRadiusLG:O,controlWidth:_,handleBorderColor:T,filledHandleBg:I,lineHeightLG:N,calc:D}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ur(e)),_v(e)),{display:"inline-block",width:_,margin:0,padding:0,borderRadius:a}),NI(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${se(r)} ${n} ${T}`}}})),RI(e,{[`${t}-handler-wrap`]:{background:I,[`${t}-handler-down`]:{borderBlockStart:`${se(r)} ${n} ${T}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),AI(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${se(r)} ${n} ${T}`}}})),kI(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:o,lineHeight:N,borderRadius:O,[`input${t}-input`]:{height:D(s).sub(D(r).mul(2)).equal(),padding:`${se(m)} ${se(h)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:C,[`input${t}-input`]:{height:D(l).sub(D(r).mul(2)).equal(),padding:`${se(f)} ${se(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},ur(e)),jV(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:O,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}}},kV(e)),AV(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},ur(e)),{width:"100%",padding:`${se(b)} ${se(x)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${p} linear`,appearance:"textfield",fontSize:"inherit"}),MI(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:y,height:"100%",borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${p}`,overflow:"hidden",[`${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:v,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${se(r)} ${n} ${T}`,transition:`all ${p} linear`,"&:active":{background:w},"&:hover":{height:"60%",[` + ${t}-handler-up-inner, + ${t}-handler-down-inner + `]:{color:g}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},V0()),{color:v,transition:`all ${p} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderEndEndRadius:a}},ID(e,"lg")),ID(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` + ${t}-handler-up-disabled, + ${t}-handler-down-disabled + `]:{cursor:"not-allowed"},[` + ${t}-handler-up-disabled:hover &-handler-up-inner, + ${t}-handler-down-disabled:hover &-handler-down-inner + `]:{color:E}})}]},Cbe=e=>{const{componentCls:t,paddingBlock:r,paddingInline:n,inputAffixPadding:a,controlWidth:i,borderRadiusLG:o,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:m}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${se(r)} 0`}},_v(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:o,paddingInlineStart:l,[`input${t}-input`]:{padding:`${se(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${se(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:a},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:n,marginInlineStart:a,transition:`margin ${m}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(n).equal()}}),[`${t}-underlined`]:{borderRadius:0}}},Ebe=or("InputNumber",e=>{const t=Yt(e,Hd(e));return[wbe(t),Cbe(t),X0(t)]},Sbe,{unitless:{handleOpacity:!0},resetFont:!1});var $be=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:r,direction:n}=d.useContext(Nt),a=d.useRef(null);d.useImperativeHandle(t,()=>a.current);const{className:i,rootClassName:o,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:m,suffix:h,bordered:v,readOnly:p,status:g,controls:y,variant:x}=e,b=$be(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=r("input-number",c),w=gn(S),[E,C,O]=Ebe(S,w),{compactSize:_,compactItemClassnames:T}=cl(S,n);let I=d.createElement(rbe,{className:`${S}-handler-up-inner`}),N=d.createElement(cI,{className:`${S}-handler-down-inner`});const D=typeof y=="boolean"?y:void 0;typeof y=="object"&&(I=typeof y.upIcon>"u"?I:d.createElement("span",{className:`${S}-handler-up-inner`},y.upIcon),N=typeof y.downIcon>"u"?N:d.createElement("span",{className:`${S}-handler-down-inner`},y.downIcon));const{hasFeedback:k,status:R,isFormItemInput:A,feedbackIcon:j}=d.useContext(ga),F=Fd(R,g),M=ba(Y=>{var G;return(G=s??_)!==null&&G!==void 0?G:Y}),V=d.useContext(Wi),K=l??V,[L,B]=Ld("inputNumber",x,v),W=k&&d.createElement(d.Fragment,null,j),H=ce({[`${S}-lg`]:M==="large",[`${S}-sm`]:M==="small",[`${S}-rtl`]:n==="rtl",[`${S}-in-form-item`]:A},C),U=`${S}-group`,X=d.createElement(bbe,Object.assign({ref:a,disabled:K,className:ce(O,w,i,o,T),upHandler:I,downHandler:N,prefixCls:S,readOnly:p,controls:D,prefix:m,suffix:W||h,addonBefore:u&&d.createElement(ol,{form:!0,space:!0},u),addonAfter:f&&d.createElement(ol,{form:!0,space:!0},f),classNames:{input:H,variant:ce({[`${S}-${L}`]:B},Uc(S,F,k)),affixWrapper:ce({[`${S}-affix-wrapper-sm`]:M==="small",[`${S}-affix-wrapper-lg`]:M==="large",[`${S}-affix-wrapper-rtl`]:n==="rtl",[`${S}-affix-wrapper-without-controls`]:y===!1||K||p},C),wrapper:ce({[`${U}-rtl`]:n==="rtl"},C),groupWrapper:ce({[`${S}-group-wrapper-sm`]:M==="small",[`${S}-group-wrapper-lg`]:M==="large",[`${S}-group-wrapper-rtl`]:n==="rtl",[`${S}-group-wrapper-${L}`]:B},Uc(`${S}-group-wrapper`,F,k),C)}},b));return E(X)}),aU=nU,_be=e=>d.createElement(Dd,{theme:{components:{InputNumber:{handleVisible:!0}}}},d.createElement(nU,Object.assign({},e)));aU._InternalPanelDoNotUseOrYouWillBeFired=_be;const Ks=aU,Obe=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:ve.createElement(jd,null)}),t},iU=Obe;function oU(e,t){const r=d.useRef([]),n=()=>{r.current.push(setTimeout(()=>{var a,i,o,s;!((a=e.current)===null||a===void 0)&&a.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((o=e.current)===null||o===void 0)&&o.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return d.useEffect(()=>(t&&n(),()=>r.current.forEach(a=>{a&&clearTimeout(a)})),[]),n}function Tbe(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Pbe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:r,bordered:n=!0,status:a,size:i,disabled:o,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:f,addonBefore:m,className:h,style:v,styles:p,rootClassName:g,onChange:y,classNames:x,variant:b,_skipAddonWarning:S}=e,w=Pbe(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant","_skipAddonWarning"]),{getPrefixCls:E,direction:C,allowClear:O,autoComplete:_,className:T,style:I,classNames:N,styles:D}=Fn("input"),k=E("input",r),R=d.useRef(null),A=gn(k),[j,F,M]=FV(k,g),[V]=LV(k,A),{compactSize:K,compactItemClassnames:L}=cl(k,C),B=ba(xe=>{var ye;return(ye=i??K)!==null&&ye!==void 0?ye:xe}),W=ve.useContext(Wi),H=o??W,{status:U,hasFeedback:X,feedbackIcon:Y}=d.useContext(ga),G=Fd(U,a),Q=Tbe(e)||!!X;d.useRef(Q);const J=oU(R,!0),z=xe=>{J(),s==null||s(xe)},fe=xe=>{J(),l==null||l(xe)},te=xe=>{J(),y==null||y(xe)},re=(X||c)&&ve.createElement(ve.Fragment,null,c,X&&Y),q=iU(u??O),[ne,he]=Ld("input",b,n);return j(V(ve.createElement(cbe,Object.assign({ref:xa(t,R),prefixCls:k,autoComplete:_},w,{disabled:H,onBlur:z,onFocus:fe,style:Object.assign(Object.assign({},I),v),styles:Object.assign(Object.assign({},D),p),suffix:re,allowClear:q,className:ce(h,g,M,A,L,T),onChange:te,addonBefore:m&&ve.createElement(ol,{form:!0,space:!0},m),addonAfter:f&&ve.createElement(ol,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},x),N),{input:ce({[`${k}-sm`]:B==="small",[`${k}-lg`]:B==="large",[`${k}-rtl`]:C==="rtl"},x==null?void 0:x.input,N.input,F),variant:ce({[`${k}-${ne}`]:he},Uc(k,G)),affixWrapper:ce({[`${k}-affix-wrapper-sm`]:B==="small",[`${k}-affix-wrapper-lg`]:B==="large",[`${k}-affix-wrapper-rtl`]:C==="rtl"},F),wrapper:ce({[`${k}-group-rtl`]:C==="rtl"},F),groupWrapper:ce({[`${k}-group-wrapper-sm`]:B==="small",[`${k}-group-wrapper-lg`]:B==="large",[`${k}-group-wrapper-rtl`]:C==="rtl",[`${k}-group-wrapper-${ne}`]:he},Uc(`${k}-group-wrapper`,G,X),F)})}))))}),Tv=Ibe;var Nbe={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"};const kbe=Nbe;var Rbe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:kbe}))},Abe=d.forwardRef(Rbe);const Mbe=Abe,Dbe=(e,t,r,n,a)=>{const{classNames:i,styles:o}=Fn(e),[s,l]=Mle([i,t],[o,r],{popup:{_default:"root"}});return d.useMemo(()=>{var c,u;const f=Object.assign(Object.assign({},s),{popup:Object.assign(Object.assign({},s.popup),{root:ce((c=s.popup)===null||c===void 0?void 0:c.root,n)})}),m=Object.assign(Object.assign({},l),{popup:Object.assign(Object.assign({},l.popup),{root:Object.assign(Object.assign({},(u=l.popup)===null||u===void 0?void 0:u.root),a)})});return[f,m]},[s,l,n,a])},sU=Dbe;function jbe(e,t,r){return r!==void 0?r:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function Fbe(e,t,r){return r!==void 0?r:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function lU(e,t){const{allowClear:r=!0}=e,{clearIcon:n,removeIcon:a}=QH(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[d.useMemo(()=>r===!1?!1:Object.assign({clearIcon:n},r===!0?{}:r),[r,n]),a]}const[Lbe,Bbe]=["week","WeekPicker"],[zbe,Hbe]=["month","MonthPicker"],[Wbe,Vbe]=["year","YearPicker"],[Ube,Kbe]=["quarter","QuarterPicker"],[UI,ND]=["time","TimePicker"];var Gbe={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"};const qbe=Gbe;var Xbe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:qbe}))},Ybe=d.forwardRef(Xbe);const FS=Ybe;var Qbe={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:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};const Zbe=Qbe;var Jbe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:Zbe}))},eSe=d.forwardRef(Jbe);const Nh=eSe,tSe=({picker:e,hasFeedback:t,feedbackIcon:r,suffixIcon:n})=>n===null||n===!1?null:n===!0||n===void 0?ve.createElement(ve.Fragment,null,e===UI?ve.createElement(Nh,null):ve.createElement(FS,null),t&&r):n,cU=tSe,rSe=e=>d.createElement(kt,Object.assign({size:"small",type:"primary"},e)),nSe=rSe;function uU(e){return d.useMemo(()=>Object.assign({button:nSe},e),[e])}var aSe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);ad.forwardRef((r,n)=>{var a;const{prefixCls:i,getPopupContainer:o,components:s,className:l,style:c,placement:u,size:f,disabled:m,bordered:h=!0,placeholder:v,popupStyle:p,popupClassName:g,dropdownClassName:y,status:x,rootClassName:b,variant:S,picker:w,styles:E,classNames:C,suffixIcon:O}=r,_=aSe(r,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames","suffixIcon"]),T=w===UI?"timePicker":"datePicker",I=d.useRef(null),{getPrefixCls:N,direction:D,getPopupContainer:k,rangePicker:R}=d.useContext(Nt),A=N("picker",i),{compactSize:j,compactItemClassnames:F}=cl(A,D),M=N(),[V,K]=Ld("rangePicker",S,h),L=gn(A),[B,W,H]=BV(A,L),[U,X]=sU(T,C,E,g||y,p),[Y]=lU(r,A),G=uU(s),Q=ba(pe=>{var be;return(be=f??j)!==null&&be!==void 0?be:pe}),J=d.useContext(Wi),z=m??J,fe=d.useContext(ga),{hasFeedback:te,status:re,feedbackIcon:q}=fe,ne=d.createElement(cU,{picker:w,hasFeedback:te,feedbackIcon:q,suffixIcon:O});d.useImperativeHandle(n,()=>I.current);const[he]=Hi("Calendar",Yx),xe=Object.assign(Object.assign({},he),r.locale),[ye]=uu("DatePicker",(a=X.popup.root)===null||a===void 0?void 0:a.zIndex);return B(d.createElement(ol,{space:!0},d.createElement(Cye,Object.assign({separator:d.createElement("span",{"aria-label":"to",className:`${A}-separator`},d.createElement(Mbe,null)),disabled:z,ref:I,placement:u,placeholder:Fbe(xe,w,v),suffixIcon:ne,prevIcon:d.createElement("span",{className:`${A}-prev-icon`}),nextIcon:d.createElement("span",{className:`${A}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${A}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${A}-super-next-icon`}),transitionName:`${M}-slide-up`,picker:w},_,{className:ce({[`${A}-${Q}`]:Q,[`${A}-${V}`]:K},Uc(A,Fd(re,x),te),W,F,l,R==null?void 0:R.className,H,L,b,U.root),style:Object.assign(Object.assign(Object.assign({},R==null?void 0:R.style),c),X.root),locale:xe.lang,prefixCls:A,getPopupContainer:o||k,generateConfig:e,components:G,direction:D,classNames:{popup:ce(W,H,L,b,U.popup.root)},styles:{popup:Object.assign(Object.assign({},X.popup.root),{zIndex:ye})},allowClear:Y}))))}),oSe=iSe;var sSe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const t=(l,c)=>{const u=c===ND?"timePicker":"datePicker";return d.forwardRef((m,h)=>{var v;const{prefixCls:p,getPopupContainer:g,components:y,style:x,className:b,rootClassName:S,size:w,bordered:E,placement:C,placeholder:O,popupStyle:_,popupClassName:T,dropdownClassName:I,disabled:N,status:D,variant:k,onCalendarChange:R,styles:A,classNames:j,suffixIcon:F}=m,M=sSe(m,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames","suffixIcon"]),{getPrefixCls:V,direction:K,getPopupContainer:L,[u]:B}=d.useContext(Nt),W=V("picker",p),{compactSize:H,compactItemClassnames:U}=cl(W,K),X=d.useRef(null),[Y,G]=Ld("datePicker",k,E),Q=gn(W),[J,z,fe]=BV(W,Q);d.useImperativeHandle(h,()=>X.current);const te={showToday:!0},re=l||m.picker,q=V(),{onSelect:ne,multiple:he}=M,xe=ne&&l==="time"&&!he,ye=(Se,Re,We)=>{R==null||R(Se,Re,We),xe&&ne(Se)},[pe,be]=sU(u,j,A,T||I,_),[_e,$e]=lU(m,W),Be=uU(y),Fe=ba(Se=>{var Re;return(Re=w??H)!==null&&Re!==void 0?Re:Se}),nt=d.useContext(Wi),qe=N??nt,Ge=d.useContext(ga),{hasFeedback:Le,status:Ne,feedbackIcon:we}=Ge,je=d.createElement(cU,{picker:re,hasFeedback:Le,feedbackIcon:we,suffixIcon:F}),[Oe]=Hi("DatePicker",Yx),Me=Object.assign(Object.assign({},Oe),m.locale),[ge]=uu("DatePicker",(v=be.popup.root)===null||v===void 0?void 0:v.zIndex);return J(d.createElement(ol,{space:!0},d.createElement(Pye,Object.assign({ref:X,placeholder:jbe(Me,re,O),suffixIcon:je,placement:C,prevIcon:d.createElement("span",{className:`${W}-prev-icon`}),nextIcon:d.createElement("span",{className:`${W}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${W}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${W}-super-next-icon`}),transitionName:`${q}-slide-up`,picker:l,onCalendarChange:ye},te,M,{locale:Me.lang,className:ce({[`${W}-${Fe}`]:Fe,[`${W}-${Y}`]:G},Uc(W,Fd(Ne,D),Le),z,U,B==null?void 0:B.className,b,fe,Q,S,pe.root),style:Object.assign(Object.assign(Object.assign({},B==null?void 0:B.style),x),be.root),prefixCls:W,getPopupContainer:g||L,generateConfig:e,components:Be,direction:K,disabled:qe,classNames:{popup:ce(z,fe,Q,S,pe.popup.root)},styles:{popup:Object.assign(Object.assign({},be.popup.root),{zIndex:ge})},allowClear:_e,removeIcon:$e}))))})},r=t(),n=t(Lbe,Bbe),a=t(zbe,Hbe),i=t(Wbe,Vbe),o=t(Ube,Kbe),s=t(UI,ND);return{DatePicker:r,WeekPicker:n,MonthPicker:a,YearPicker:i,TimePicker:s,QuarterPicker:o}},cSe=lSe,uSe=e=>{const{DatePicker:t,WeekPicker:r,MonthPicker:n,YearPicker:a,TimePicker:i,QuarterPicker:o}=cSe(e),s=oSe(e),l=t;return l.WeekPicker=r,l.MonthPicker=n,l.YearPicker=a,l.RangePicker=s,l.TimePicker=i,l.QuarterPicker=o,l},dU=uSe,am=dU(Nge),dSe=xv(am,"popupAlign",void 0,"picker");am._InternalPanelDoNotUseOrYouWillBeFired=dSe;const fSe=xv(am.RangePicker,"popupAlign",void 0,"picker");am._InternalRangePanelDoNotUseOrYouWillBeFired=fSe;am.generatePicker=dU;const wp=am,mSe={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},hSe=mSe,pSe=ve.createContext({}),KI=pSe;var vSe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);aha(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function ySe(e,t,r){const n=d.useMemo(()=>t||gSe(r),[t,r]);return d.useMemo(()=>n.map(i=>{var{span:o}=i,s=vSe(i,["span"]);return o==="filled"?Object.assign(Object.assign({},s),{filled:!0}):Object.assign(Object.assign({},s),{span:typeof o=="number"?o:rW(e,o)})}),[n,e])}var xSe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);ao).forEach(o=>{const{filled:s}=o,l=xSe(o,["filled"]);if(s){n.push(l),r.push(n),n=[],i=0;return}const c=t-i;i+=o.span||1,i>=t?(i>t?(a=!0,n.push(Object.assign(Object.assign({},l),{span:c}))):n.push(l),r.push(n),n=[],i=0):n.push(l)}),n.length>0&&r.push(n),r=r.map(o=>{const s=o.reduce((l,c)=>l+(c.span||1),0);if(s{const[r,n]=d.useMemo(()=>bSe(t,e),[t,e]);return r},wSe=SSe,CSe=({children:e})=>e,ESe=CSe,ry=e=>e!=null,$Se=e=>{const{itemPrefixCls:t,component:r,span:n,className:a,style:i,labelStyle:o,contentStyle:s,bordered:l,label:c,content:u,colon:f,type:m,styles:h}=e,v=r,{classNames:p}=d.useContext(KI),g=Object.assign(Object.assign({},o),h==null?void 0:h.label),y=Object.assign(Object.assign({},s),h==null?void 0:h.content);return l?d.createElement(v,{colSpan:n,style:i,className:ce(a,{[`${t}-item-${m}`]:m==="label"||m==="content",[p==null?void 0:p.label]:(p==null?void 0:p.label)&&m==="label",[p==null?void 0:p.content]:(p==null?void 0:p.content)&&m==="content"})},ry(c)&&d.createElement("span",{style:g},c),ry(u)&&d.createElement("span",{style:y},u)):d.createElement(v,{colSpan:n,style:i,className:ce(`${t}-item`,a)},d.createElement("div",{className:`${t}-item-container`},ry(c)&&d.createElement("span",{style:g,className:ce(`${t}-item-label`,p==null?void 0:p.label,{[`${t}-item-no-colon`]:!f})},c),ry(u)&&d.createElement("span",{style:y,className:ce(`${t}-item-content`,p==null?void 0:p.content)},u)))},k2=$Se;function R2(e,{colon:t,prefixCls:r,bordered:n},{component:a,type:i,showLabel:o,showContent:s,labelStyle:l,contentStyle:c,styles:u}){return e.map(({label:f,children:m,prefixCls:h=r,className:v,style:p,labelStyle:g,contentStyle:y,span:x=1,key:b,styles:S},w)=>typeof a=="string"?d.createElement(k2,{key:`${i}-${b||w}`,className:v,style:p,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},l),u==null?void 0:u.label),g),S==null?void 0:S.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},c),u==null?void 0:u.content),y),S==null?void 0:S.content)},span:x,colon:t,component:a,itemPrefixCls:h,bordered:n,label:o?f:null,content:s?m:null,type:i}):[d.createElement(k2,{key:`label-${b||w}`,className:v,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},l),u==null?void 0:u.label),p),g),S==null?void 0:S.label),span:1,colon:t,component:a[0],itemPrefixCls:h,bordered:n,label:f,type:"label"}),d.createElement(k2,{key:`content-${b||w}`,className:v,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c),u==null?void 0:u.content),p),y),S==null?void 0:S.content),span:x*2-1,component:a[1],itemPrefixCls:h,bordered:n,content:m,type:"content"})])}const _Se=e=>{const t=d.useContext(KI),{prefixCls:r,vertical:n,row:a,index:i,bordered:o}=e;return n?d.createElement(d.Fragment,null,d.createElement("tr",{key:`label-${i}`,className:`${r}-row`},R2(a,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),d.createElement("tr",{key:`content-${i}`,className:`${r}-row`},R2(a,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):d.createElement("tr",{key:i,className:`${r}-row`},R2(a,e,Object.assign({component:o?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},OSe=_Se,TSe=e=>{const{componentCls:t,labelBg:r}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${se(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${se(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:first-child":{"> th:first-child, > td:first-child":{borderStartStartRadius:e.borderRadiusLG}},"&:last-child":{borderBottom:"none","> th:first-child, > td:first-child":{borderEndStartRadius:e.borderRadiusLG}},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${se(e.padding)} ${se(e.paddingLG)}`,borderInlineEnd:`${se(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:r,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${se(e.paddingSM)} ${se(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${se(e.paddingXS)} ${se(e.padding)}`}}}}}},PSe=e=>{const{componentCls:t,extraColor:r,itemPaddingBottom:n,itemPaddingEnd:a,colonMarginRight:i,colonMarginLeft:o,titleMarginBottom:s}=e;return{[t]:Object.assign(Object.assign(Object.assign({},ur(e)),TSe(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:s},[`${t}-title`]:Object.assign(Object.assign({},Uo),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:r,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:n,paddingInlineEnd:a},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.labelColor,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${se(o)} ${se(i)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},ISe=e=>({labelBg:e.colorFillAlter,labelColor:e.colorTextTertiary,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}),NSe=or("Descriptions",e=>{const t=Yt(e,{});return PSe(t)},ISe);var kSe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,title:r,extra:n,column:a,colon:i=!0,bordered:o,layout:s,children:l,className:c,rootClassName:u,style:f,size:m,labelStyle:h,contentStyle:v,styles:p,items:g,classNames:y}=e,x=kSe(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:b,direction:S,className:w,style:E,classNames:C,styles:O}=Fn("descriptions"),_=b("descriptions",t),T=wv(),I=d.useMemo(()=>{var M;return typeof a=="number"?a:(M=rW(T,Object.assign(Object.assign({},hSe),a)))!==null&&M!==void 0?M:3},[T,a]),N=ySe(T,g,l),D=ba(m),k=wSe(I,N),[R,A,j]=NSe(_),F=d.useMemo(()=>({labelStyle:h,contentStyle:v,styles:{content:Object.assign(Object.assign({},O.content),p==null?void 0:p.content),label:Object.assign(Object.assign({},O.label),p==null?void 0:p.label)},classNames:{label:ce(C.label,y==null?void 0:y.label),content:ce(C.content,y==null?void 0:y.content)}}),[h,v,p,y,C,O]);return R(d.createElement(KI.Provider,{value:F},d.createElement("div",Object.assign({className:ce(_,w,C.root,y==null?void 0:y.root,{[`${_}-${D}`]:D&&D!=="default",[`${_}-bordered`]:!!o,[`${_}-rtl`]:S==="rtl"},c,u,A,j),style:Object.assign(Object.assign(Object.assign(Object.assign({},E),O.root),p==null?void 0:p.root),f)},x),(r||n)&&d.createElement("div",{className:ce(`${_}-header`,C.header,y==null?void 0:y.header),style:Object.assign(Object.assign({},O.header),p==null?void 0:p.header)},r&&d.createElement("div",{className:ce(`${_}-title`,C.title,y==null?void 0:y.title),style:Object.assign(Object.assign({},O.title),p==null?void 0:p.title)},r),n&&d.createElement("div",{className:ce(`${_}-extra`,C.extra,y==null?void 0:y.extra),style:Object.assign(Object.assign({},O.extra),p==null?void 0:p.extra)},n)),d.createElement("div",{className:`${_}-view`},d.createElement("table",null,d.createElement("tbody",null,k.map((M,V)=>d.createElement(OSe,{key:V,index:V,colon:i,prefixCls:_,vertical:s==="vertical",bordered:o,row:M}))))))))};fU.Item=ESe;const GI=fU;function kD(e){return["small","middle","large"].includes(e)}function RD(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const RSe=e=>{const{componentCls:t,borderRadius:r,paddingSM:n,colorBorder:a,paddingXS:i,fontSizeLG:o,fontSizeSM:s,borderRadiusLG:l,borderRadiusSM:c,colorBgContainerDisabled:u,lineWidth:f}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:n,margin:0,background:u,borderWidth:f,borderStyle:"solid",borderColor:a,borderRadius:r,"&-large":{fontSize:o,borderRadius:l},"&-small":{paddingInline:i,borderRadius:c,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0}},X0(e,{focus:!1})]}},ASe=or(["Space","Addon"],e=>[RSe(e)]);var MSe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{className:r,children:n,style:a,prefixCls:i}=e,o=MSe(e,["className","children","style","prefixCls"]),{getPrefixCls:s,direction:l}=ve.useContext(Nt),c=s("space-addon",i),[u,f,m]=ASe(c),{compactItemClassnames:h,compactSize:v}=cl(c,l),p=ce(c,f,h,m,{[`${c}-${v}`]:v},r);return u(ve.createElement("div",Object.assign({ref:t,className:p,style:a},o),n))}),jSe=DSe,mU=ve.createContext({latestIndex:0}),FSe=mU.Provider,LSe=({className:e,index:t,children:r,split:n,style:a})=>{const{latestIndex:i}=d.useContext(mU);return r==null?null:d.createElement(d.Fragment,null,d.createElement("div",{className:e,style:a},r),t{const{componentCls:t,antCls:r}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${r}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},HSe=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},WSe=or("Space",e=>{const t=Yt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[zSe(t),HSe(t)]},()=>({}),{resetStyle:!1});var VSe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var r;const{getPrefixCls:n,direction:a,size:i,className:o,style:s,classNames:l,styles:c}=Fn("space"),{size:u=i??"small",align:f,className:m,rootClassName:h,children:v,direction:p="horizontal",prefixCls:g,split:y,style:x,wrap:b=!1,classNames:S,styles:w}=e,E=VSe(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[C,O]=Array.isArray(u)?u:[u,u],_=kD(O),T=kD(C),I=RD(O),N=RD(C),D=ha(v,{keepEmpty:!0}),k=f===void 0&&p==="horizontal"?"center":f,R=n("space",g),[A,j,F]=WSe(R),M=ce(R,o,j,`${R}-${p}`,{[`${R}-rtl`]:a==="rtl",[`${R}-align-${k}`]:k,[`${R}-gap-row-${O}`]:_,[`${R}-gap-col-${C}`]:T},m,h,F),V=ce(`${R}-item`,(r=S==null?void 0:S.item)!==null&&r!==void 0?r:l.item),K=Object.assign(Object.assign({},c.item),w==null?void 0:w.item),L=D.map((H,U)=>{const X=(H==null?void 0:H.key)||`${V}-${U}`;return d.createElement(BSe,{className:V,key:X,index:U,split:y,style:K},H)}),B=d.useMemo(()=>({latestIndex:D.reduce((U,X,Y)=>X!=null?Y:U,0)}),[D]);if(D.length===0)return null;const W={};return b&&(W.flexWrap="wrap"),!T&&N&&(W.columnGap=C),!_&&I&&(W.rowGap=O),A(d.createElement("div",Object.assign({ref:t,className:M,style:Object.assign(Object.assign(Object.assign({},W),s),x)},E),d.createElement(FSe,{value:B},L)))}),qI=USe;qI.Compact=Mce;qI.Addon=jSe;const $n=qI;var KSe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{getPopupContainer:t,getPrefixCls:r,direction:n}=d.useContext(Nt),{prefixCls:a,type:i="default",danger:o,disabled:s,loading:l,onClick:c,htmlType:u,children:f,className:m,menu:h,arrow:v,autoFocus:p,overlay:g,trigger:y,align:x,open:b,onOpenChange:S,placement:w,getPopupContainer:E,href:C,icon:O=d.createElement(SI,null),title:_,buttonsRender:T=J=>J,mouseEnterDelay:I,mouseLeaveDelay:N,overlayClassName:D,overlayStyle:k,destroyOnHidden:R,destroyPopupOnHide:A,dropdownRender:j,popupRender:F}=e,M=KSe(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),V=r("dropdown",a),K=`${V}-button`,B={menu:h,arrow:v,autoFocus:p,align:x,disabled:s,trigger:s?[]:y,onOpenChange:S,getPopupContainer:E||t,mouseEnterDelay:I,mouseLeaveDelay:N,overlayClassName:D,overlayStyle:k,destroyOnHidden:R,popupRender:F||j},{compactSize:W,compactItemClassnames:H}=cl(V,n),U=ce(K,H,m);"destroyPopupOnHide"in e&&(B.destroyPopupOnHide=A),"overlay"in e&&(B.overlay=g),"open"in e&&(B.open=b),"placement"in e?B.placement=w:B.placement=n==="rtl"?"bottomLeft":"bottomRight";const X=d.createElement(kt,{type:i,danger:o,disabled:s,loading:l,onClick:c,htmlType:u,href:C,title:_},f),Y=d.createElement(kt,{type:i,danger:o,icon:O}),[G,Q]=T([X,Y]);return d.createElement($n.Compact,Object.assign({className:U,size:W,block:!0},M),G,d.createElement(LW,Object.assign({},B),Q))};hU.__ANT_BUTTON=!0;const GSe=hU,pU=LW;pU.Button=GSe;const XI=pU;function qSe(e){return e==null?null:typeof e=="object"&&!d.isValidElement(e)?e:{title:e}}var XSe={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"};const YSe=XSe;var QSe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:YSe}))},ZSe=d.forwardRef(QSe);const YI=ZSe;function u1(e){const[t,r]=d.useState(e);return d.useEffect(()=>{const n=setTimeout(()=>{r(e)},e.length?0:10);return()=>{clearTimeout(n)}},[e]),t}const JSe=e=>{const{componentCls:t}=e,r=`${t}-show-help`,n=`${t}-show-help-item`;return{[r]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut}, + opacity ${e.motionDurationFast} ${e.motionEaseInOut}, + transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},ewe=JSe,twe=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${se(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),AD=(e,t)=>{const{formItemCls:r}=e;return{[r]:{[`${r}-label > label`]:{height:t},[`${r}-control-input`]:{minHeight:t}}}},rwe=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},ur(e)),twe(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},AD(e,e.controlHeightSM)),"&-large":Object.assign({},AD(e,e.controlHeightLG))})}},nwe=e=>{const{formItemCls:t,iconCls:r,rootPrefixCls:n,antCls:a,labelRequiredMarkColor:i,labelColor:o,labelFontSize:s,labelHeight:l,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},ur(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, + &-hidden${a}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:l,color:o,fontSize:s,[`> ${r}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${n}-col-'"]):not([class*="' ${n}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${a}-switch:only-child, > ${a}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:GP,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Ru=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),awe=e=>{const{antCls:t,formItemCls:r}=e;return{[`${r}-horizontal`]:{[`${r}-label`]:{flexGrow:0},[`${r}-control`]:{flex:"1 1 0",minWidth:0},[`${r}-label[class$='-24'], ${r}-label[class*='-24 ']`]:{[`& + ${r}-control`]:{minWidth:"unset"}},[`${t}-col-24${r}-label, + ${t}-col-xl-24${r}-label`]:Ru(e)}}},iwe=e=>{const{componentCls:t,formItemCls:r,inlineItemMarginBottom:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${r}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:n,"&-row":{flexWrap:"nowrap"},[`> ${r}-label, + > ${r}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${r}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${r}-has-feedback`]:{display:"inline-block"}}}}},owe=e=>{const{componentCls:t,formItemCls:r,rootPrefixCls:n}=e;return{[`${r} ${r}-label`]:Ru(e),[`${t}:not(${t}-inline)`]:{[r]:{flexWrap:"wrap",[`${r}-label, ${r}-control`]:{[`&:not([class*=" ${n}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},swe=e=>{const{componentCls:t,formItemCls:r,antCls:n}=e;return{[`${r}-vertical`]:{[`${r}-row`]:{flexDirection:"column"},[`${r}-label > label`]:{height:"auto"},[`${r}-control`]:{width:"100%"},[`${r}-label, + ${n}-col-24${r}-label, + ${n}-col-xl-24${r}-label`]:Ru(e)},[`@media (max-width: ${se(e.screenXSMax)})`]:[owe(e),{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-xs-24${r}-label`]:Ru(e)}}}],[`@media (max-width: ${se(e.screenSMMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-sm-24${r}-label`]:Ru(e)}}},[`@media (max-width: ${se(e.screenMDMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-md-24${r}-label`]:Ru(e)}}},[`@media (max-width: ${se(e.screenLGMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-lg-24${r}-label`]:Ru(e)}}}}},lwe=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),vU=(e,t)=>Yt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),QI=or("Form",(e,{rootPrefixCls:t})=>{const r=vU(e,t);return[rwe(r),nwe(r),ewe(r),awe(r),iwe(r),swe(r),iS(r),GP]},lwe,{order:-1e3}),MD=[];function A2(e,t,r,n=0){return{key:typeof e=="string"?e:`${t}-${n}`,error:e,errorStatus:r}}const cwe=({help:e,helpStatus:t,errors:r=MD,warnings:n=MD,className:a,fieldId:i,onVisibleChanged:o})=>{const{prefixCls:s}=d.useContext(tI),l=`${s}-item-explain`,c=gn(s),[u,f,m]=QI(s,c),h=d.useMemo(()=>vp(s),[s]),v=u1(r),p=u1(n),g=d.useMemo(()=>e!=null?[A2(e,"help",t)]:[].concat(De(v.map((b,S)=>A2(b,"error","error",S))),De(p.map((b,S)=>A2(b,"warning","warning",S)))),[e,t,v,p]),y=d.useMemo(()=>{const b={};return g.forEach(({key:S})=>{b[S]=(b[S]||0)+1}),g.map((S,w)=>Object.assign(Object.assign({},S),{key:b[S.key]>1?`${S.key}-fallback-${w}`:S.key}))},[g]),x={};return i&&(x.id=`${i}_help`),u(d.createElement(Vi,{motionDeadline:h.motionDeadline,motionName:`${s}-show-help`,visible:!!y.length,onVisibleChanged:o},b=>{const{className:S,style:w}=b;return d.createElement("div",Object.assign({},x,{className:ce(l,S,m,c,a,f),style:w}),d.createElement(FP,Object.assign({keys:y},vp(s),{motionName:`${s}-show-help-item`,component:!1}),E=>{const{key:C,error:O,errorStatus:_,className:T,style:I}=E;return d.createElement("div",{key:C,className:ce(T,{[`${l}-${_}`]:_}),style:I},O)}))}))},gU=cwe;var uwe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const r=d.useContext(Wi),{getPrefixCls:n,direction:a,requiredMark:i,colon:o,scrollToFirstError:s,className:l,style:c}=Fn("form"),{prefixCls:u,className:f,rootClassName:m,size:h,disabled:v=r,form:p,colon:g,labelAlign:y,labelWrap:x,labelCol:b,wrapperCol:S,hideRequiredMark:w,layout:E="horizontal",scrollToFirstError:C,requiredMark:O,onFinishFailed:_,name:T,style:I,feedbackIcons:N,variant:D}=e,k=uwe(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),R=ba(h),A=d.useContext(G7),j=d.useMemo(()=>O!==void 0?O:w?!1:i!==void 0?i:!0,[w,O,i]),F=g??o,M=n("form",u),V=gn(M),[K,L,B]=QI(M,V),W=ce(M,`${M}-${E}`,{[`${M}-hide-required-mark`]:j===!1,[`${M}-rtl`]:a==="rtl",[`${M}-${R}`]:R},B,V,L,l,f,m),[H]=NV(p),{__INTERNAL__:U}=H;U.name=T;const X=d.useMemo(()=>({name:T,labelAlign:y,labelCol:b,labelWrap:x,wrapperCol:S,layout:E,colon:F,requiredMark:j,itemRef:U.itemRef,form:H,feedbackIcons:N}),[T,y,b,S,E,F,j,H,N]),Y=d.useRef(null);d.useImperativeHandle(t,()=>{var J;return Object.assign(Object.assign({},H),{nativeElement:(J=Y.current)===null||J===void 0?void 0:J.nativeElement})});const G=(J,z)=>{if(J){let fe={block:"nearest"};typeof J=="object"&&(fe=Object.assign(Object.assign({},fe),J)),H.scrollToField(z,fe)}},Q=J=>{if(_==null||_(J),J.errorFields.length){const z=J.errorFields[0].name;if(C!==void 0){G(C,z);return}s!==void 0&&G(s,z)}};return K(d.createElement(fH.Provider,{value:D},d.createElement(MP,{disabled:v},d.createElement(fv.Provider,{value:R},d.createElement(uH,{validateMessages:A},d.createElement(kl.Provider,{value:X},d.createElement(dH,{status:!0},d.createElement(Y0,Object.assign({id:T},k,{name:T,onFinishFailed:Q,form:H,ref:Y,style:Object.assign(Object.assign({},c),I),className:W})))))))))},fwe=d.forwardRef(dwe),mwe=fwe;function hwe(e){if(typeof e=="function")return e;const t=ha(e);return t.length<=1?t[0]:t}const yU=()=>{const{status:e,errors:t=[],warnings:r=[]}=d.useContext(ga);return{status:e,errors:t,warnings:r}};yU.Context=ga;const pwe=yU;function vwe(e){const[t,r]=d.useState(e),n=d.useRef(null),a=d.useRef([]),i=d.useRef(!1);d.useEffect(()=>(i.current=!1,()=>{i.current=!0,Ut.cancel(n.current),n.current=null}),[]);function o(s){i.current||(n.current===null&&(a.current=[],n.current=Ut(()=>{n.current=null,r(l=>{let c=l;return a.current.forEach(u=>{c=u(c)}),c})})),a.current.push(s))}return[t,o]}function gwe(){const{itemRef:e}=d.useContext(kl),t=d.useRef({});function r(n,a){const i=a&&typeof a=="object"&&su(a),o=n.join("_");return(t.current.name!==o||t.current.originRef!==i)&&(t.current.name=o,t.current.originRef=i,t.current.ref=xa(e(n),i)),t.current.ref}return r}const ywe=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},xwe=U0(["Form","item-item"],(e,{rootPrefixCls:t})=>{const r=vU(e,t);return ywe(r)});var bwe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,status:r,labelCol:n,wrapperCol:a,children:i,errors:o,warnings:s,_internalItemRender:l,extra:c,help:u,fieldId:f,marginBottom:m,onErrorVisibleChanged:h,label:v}=e,p=`${t}-item`,g=d.useContext(kl),y=d.useMemo(()=>{let k=Object.assign({},a||g.wrapperCol||{});return v===null&&!n&&!a&&g.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(A=>{const j=A?[A]:[],F=yi(g.labelCol,j),M=typeof F=="object"?F:{},V=yi(k,j),K=typeof V=="object"?V:{};"span"in M&&!("offset"in K)&&M.spanbwe(g,["labelCol","wrapperCol"]),[g]),S=d.useRef(null),[w,E]=d.useState(0);Gt(()=>{c&&S.current?E(S.current.clientHeight):E(0)},[c]);const C=d.createElement("div",{className:`${p}-control-input`},d.createElement("div",{className:`${p}-control-input-content`},i)),O=d.useMemo(()=>({prefixCls:t,status:r}),[t,r]),_=m!==null||o.length||s.length?d.createElement(tI.Provider,{value:O},d.createElement(gU,{fieldId:f,errors:o,warnings:s,help:u,helpStatus:r,className:`${p}-explain-connected`,onVisibleChanged:h})):null,T={};f&&(T.id=`${f}_extra`);const I=c?d.createElement("div",Object.assign({},T,{className:`${p}-extra`,ref:S}),c):null,N=_||I?d.createElement("div",{className:`${p}-additional`,style:m?{minHeight:m+w}:{}},_,I):null,D=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:C,errorList:_,extra:I}):d.createElement(d.Fragment,null,C,N);return d.createElement(kl.Provider,{value:b},d.createElement(Qr,Object.assign({},y,{className:x}),D),d.createElement(xwe,{prefixCls:t}))},Cwe=wwe;var Ewe={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"};const $we=Ewe;var _we=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:$we}))},Owe=d.forwardRef(_we);const xU=Owe;var Twe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var u;const[f]=Hi("Form"),{labelAlign:m,labelCol:h,labelWrap:v,colon:p}=d.useContext(kl);if(!t)return null;const g=n||h||{},y=a||m,x=`${e}-item-label`,b=ce(x,y==="left"&&`${x}-left`,g.className,{[`${x}-wrap`]:!!v});let S=t;const w=i===!0||p!==!1&&i!==!1;w&&!c&&typeof t=="string"&&t.trim()&&(S=t.replace(/[:|:]\s*$/,""));const C=qSe(l);if(C){const{icon:D=d.createElement(xU,null)}=C,k=Twe(C,["icon"]),R=d.createElement(Os,Object.assign({},k),d.cloneElement(D,{className:`${e}-item-tooltip`,title:"",onClick:A=>{A.preventDefault()},tabIndex:null}));S=d.createElement(d.Fragment,null,S,R)}const O=s==="optional",_=typeof s=="function",T=s===!1;_?S=s(S,{required:!!o}):O&&!o&&(S=d.createElement(d.Fragment,null,S,d.createElement("span",{className:`${e}-item-optional`,title:""},(f==null?void 0:f.optional)||((u=Vo.Form)===null||u===void 0?void 0:u.optional))));let I;T?I="hidden":(O||_)&&(I="optional");const N=ce({[`${e}-item-required`]:o,[`${e}-item-required-mark-${I}`]:I,[`${e}-item-no-colon`]:!w});return d.createElement(Qr,Object.assign({},g,{className:b}),d.createElement("label",{htmlFor:r,className:N,title:typeof t=="string"?t:""},S))},Iwe=Pwe,Nwe={success:mv,warning:G0,error:jd,validating:Wc};function bU({children:e,errors:t,warnings:r,hasFeedback:n,validateStatus:a,prefixCls:i,meta:o,noStyle:s,name:l}){const c=`${i}-item`,{feedbackIcons:u}=d.useContext(kl),f=IV(t,r,o,null,!!n,a),{isFormItemInput:m,status:h,hasFeedback:v,feedbackIcon:p,name:g}=d.useContext(ga),y=d.useMemo(()=>{var x;let b;if(n){const w=n!==!0&&n.icons||u,E=f&&((x=w==null?void 0:w({status:f,errors:t,warnings:r}))===null||x===void 0?void 0:x[f]),C=f?Nwe[f]:null;b=E!==!1&&C?d.createElement("span",{className:ce(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},E||d.createElement(C,null)):null}const S={status:f||"",errors:t,warnings:r,hasFeedback:!!n,feedbackIcon:b,isFormItemInput:!0,name:l};return s&&(S.status=(f??h)||"",S.isFormItemInput=m,S.hasFeedback=!!(n??v),S.feedbackIcon=n!==void 0?S.feedbackIcon:p,S.name=l??g),S},[f,n,s,m,h]);return d.createElement(ga.Provider,{value:y},e)}var kwe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{if(D&&_.current){const K=getComputedStyle(_.current);A(Number.parseInt(K.marginBottom,10))}},[D,k]);const j=K=>{K||A(null)},M=((K=!1)=>{const L=K?T:c.errors,B=K?I:c.warnings;return IV(L,B,c,"",!!u,l)})(),V=ce(S,r,n,{[`${S}-with-help`]:N||T.length||I.length,[`${S}-has-feedback`]:M&&u,[`${S}-has-success`]:M==="success",[`${S}-has-warning`]:M==="warning",[`${S}-has-error`]:M==="error",[`${S}-is-validating`]:M==="validating",[`${S}-hidden`]:f,[`${S}-${C}`]:C});return d.createElement("div",{className:V,style:a,ref:_},d.createElement(cs,Object.assign({className:`${S}-row`},Er(b,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),d.createElement(Iwe,Object.assign({htmlFor:h},e,{requiredMark:w,required:v??p,prefixCls:t,vertical:O})),d.createElement(Cwe,Object.assign({},e,c,{errors:T,warnings:I,prefixCls:t,status:M,help:i,marginBottom:R,onErrorVisibleChanged:j}),d.createElement(cH.Provider,{value:g},d.createElement(bU,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:M,name:x},m)))),!!R&&d.createElement("div",{className:`${S}-margin-offset`,style:{marginBottom:-R}}))}const Awe="__SPLIT__";function Mwe(e,t){const r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(a=>{const i=e[a],o=t[a];return i===o||typeof i=="function"||typeof o=="function"})}const Dwe=d.memo(({children:e})=>e,(e,t)=>Mwe(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((r,n)=>r===t.childProps[n]));function DD(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function jwe(e){const{name:t,noStyle:r,className:n,dependencies:a,prefixCls:i,shouldUpdate:o,rules:s,children:l,required:c,label:u,messageVariables:f,trigger:m="onChange",validateTrigger:h,hidden:v,help:p,layout:g}=e,{getPrefixCls:y}=d.useContext(Nt),{name:x}=d.useContext(kl),b=hwe(l),S=typeof b=="function",w=d.useContext(cH),{validateTrigger:E}=d.useContext(hd),C=h!==void 0?h:E,O=t!=null,_=y("form",i),T=gn(_),[I,N,D]=QI(_,T);lu();const k=d.useContext(yp),R=d.useRef(null),[A,j]=vwe({}),[F,M]=fd(()=>DD()),V=X=>{const Y=k==null?void 0:k.getKey(X.name);if(M(X.destroy?DD():X,!0),r&&p!==!1&&w){let G=X.name;if(X.destroy)G=R.current||G;else if(Y!==void 0){const[Q,J]=Y;G=[Q].concat(De(J)),R.current=G}w(X,G)}},K=(X,Y)=>{j(G=>{const Q=Object.assign({},G),z=[].concat(De(X.name.slice(0,-1)),De(Y)).join(Awe);return X.destroy?delete Q[z]:Q[z]=X,Q})},[L,B]=d.useMemo(()=>{const X=De(F.errors),Y=De(F.warnings);return Object.values(A).forEach(G=>{X.push.apply(X,De(G.errors||[])),Y.push.apply(Y,De(G.warnings||[]))}),[X,Y]},[A,F.errors,F.warnings]),W=gwe();function H(X,Y,G){return r&&!v?d.createElement(bU,{prefixCls:_,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:F,errors:L,warnings:B,noStyle:!0,name:t},X):d.createElement(Rwe,Object.assign({key:"row"},e,{className:ce(n,D,T,N),prefixCls:_,fieldId:Y,isRequired:G,errors:L,warnings:B,meta:F,onSubItemMetaChange:K,layout:g,name:t}),X)}if(!O&&!S&&!a)return I(H(b));let U={};return typeof u=="string"?U.label=u:t&&(U.label=String(t)),f&&(U=Object.assign(Object.assign({},U),f)),I(d.createElement(JP,Object.assign({},e,{messageVariables:U,trigger:m,validateTrigger:C,onMetaChange:V}),(X,Y,G)=>{const Q=Ph(t).length&&Y?Y.name:[],J=PV(Q,x),z=c!==void 0?c:!!(s!=null&&s.some(re=>{if(re&&typeof re=="object"&&re.required&&!re.warningOnly)return!0;if(typeof re=="function"){const q=re(G);return(q==null?void 0:q.required)&&!(q!=null&&q.warningOnly)}return!1})),fe=Object.assign({},X);let te=null;if(Array.isArray(b)&&O)te=b;else if(!(S&&(!(o||a)||O))){if(!(a&&!S&&!O))if(d.isValidElement(b)){const re=Object.assign(Object.assign({},b.props),fe);if(re.id||(re.id=J),p||L.length>0||B.length>0||e.extra){const he=[];(p||L.length>0)&&he.push(`${J}_help`),e.extra&&he.push(`${J}_extra`),re["aria-describedby"]=he.join(" ")}L.length>0&&(re["aria-invalid"]="true"),z&&(re["aria-required"]="true"),_s(b)&&(re.ref=W(Q,b)),new Set([].concat(De(Ph(m)),De(Ph(C)))).forEach(he=>{re[he]=(...xe)=>{var ye,pe,be,_e,$e;(be=fe[he])===null||be===void 0||(ye=be).call.apply(ye,[fe].concat(xe)),($e=(_e=b.props)[he])===null||$e===void 0||(pe=$e).call.apply(pe,[_e].concat(xe))}});const ne=[re["aria-required"],re["aria-invalid"],re["aria-describedby"]];te=d.createElement(Dwe,{control:fe,update:b,childProps:ne},pa(b,re))}else S&&(o||a)&&!O?te=b(G):te=b}return H(te,J,z)}))}const SU=jwe;SU.useStatus=pwe;const Fwe=SU;var Lwe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,children:r}=e,n=Lwe(e,["prefixCls","children"]);const{getPrefixCls:a}=d.useContext(Nt),i=a("form",t),o=d.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return d.createElement(iH,Object.assign({},n),(s,l,c)=>d.createElement(tI.Provider,{value:o},r(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))},zwe=Bwe;function Hwe(){const{form:e}=d.useContext(kl);return e}const Vl=mwe;Vl.Item=Fwe;Vl.List=zwe;Vl.ErrorList=gU;Vl.useForm=NV;Vl.useFormInstance=Hwe;Vl.useWatch=lH;Vl.Provider=uH;Vl.create=()=>{};const Ht=Vl;var Wwe={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"};const Vwe=Wwe;var Uwe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:Vwe}))},Kwe=d.forwardRef(Uwe);const Pv=Kwe;function jD(e,t,r,n){var a=ap.unstable_batchedUpdates?function(o){ap.unstable_batchedUpdates(r,o)}:r;return e!=null&&e.addEventListener&&e.addEventListener(t,a,n),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,a,n)}}}const Gwe=e=>{const{getPrefixCls:t,direction:r}=d.useContext(Nt),{prefixCls:n,className:a}=e,i=t("input-group",n),o=t("input"),[s,l,c]=LV(o),u=ce(i,c,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:r==="rtl"},l,a),f=d.useContext(ga),m=d.useMemo(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s(d.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},d.createElement(ga.Provider,{value:m},e.children)))},qwe=Gwe,Xwe=e=>{const{componentCls:t,paddingXS:r}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},Ywe=or(["Input","OTP"],e=>{const t=Yt(e,Hd(e));return Xwe(t)},Wd);var Qwe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{className:r,value:n,onChange:a,onActiveChange:i,index:o,mask:s}=e,l=Qwe(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=d.useContext(Nt),u=c("otp"),f=typeof s=="string"?s:n,m=d.useRef(null);d.useImperativeHandle(t,()=>m.current);const h=g=>{a(o,g.target.value)},v=()=>{Ut(()=>{var g;const y=(g=m.current)===null||g===void 0?void 0:g.input;document.activeElement===y&&y&&y.select()})},p=g=>{const{key:y,ctrlKey:x,metaKey:b}=g;y==="ArrowLeft"?i(o-1):y==="ArrowRight"?i(o+1):y==="z"&&(x||b)?g.preventDefault():y==="Backspace"&&!n&&i(o-1),v()};return d.createElement("span",{className:`${u}-input-wrapper`,role:"presentation"},s&&n!==""&&n!==void 0&&d.createElement("span",{className:`${u}-mask-icon`,"aria-hidden":"true"},f),d.createElement(Tv,Object.assign({"aria-label":`OTP Input ${o+1}`,type:s===!0?"password":"text"},l,{ref:m,value:n,onInput:h,onFocus:v,onKeyDown:p,onMouseDown:v,onMouseUp:v,className:ce(r,{[`${u}-mask-input`]:s})})))}),Jwe=Zwe;var eCe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{index:t,prefixCls:r,separator:n}=e,a=typeof n=="function"?n(t):n;return a?d.createElement("span",{className:`${r}-separator`},a):null},rCe=d.forwardRef((e,t)=>{const{prefixCls:r,length:n=6,size:a,defaultValue:i,value:o,onChange:s,formatter:l,separator:c,variant:u,disabled:f,status:m,autoFocus:h,mask:v,type:p,onInput:g,inputMode:y}=e,x=eCe(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:b,direction:S}=d.useContext(Nt),w=b("otp",r),E=Dn(x,{aria:!0,data:!0,attr:!0}),[C,O,_]=Ywe(w),T=ba(W=>a??W),I=d.useContext(ga),N=Fd(I.status,m),D=d.useMemo(()=>Object.assign(Object.assign({},I),{status:N,hasFeedback:!1,feedbackIcon:null}),[I,N]),k=d.useRef(null),R=d.useRef({});d.useImperativeHandle(t,()=>({focus:()=>{var W;(W=R.current[0])===null||W===void 0||W.focus()},blur:()=>{var W;for(let H=0;Hl?l(W):W,[j,F]=d.useState(()=>ny(A(i||"")));d.useEffect(()=>{o!==void 0&&F(ny(o))},[o]);const M=qt(W=>{F(W),g&&g(W),s&&W.length===n&&W.every(H=>H)&&W.some((H,U)=>j[U]!==H)&&s(W.join(""))}),V=qt((W,H)=>{let U=De(j);for(let Y=0;Y=0&&!U[Y];Y-=1)U.pop();const X=A(U.map(Y=>Y||" ").join(""));return U=ny(X).map((Y,G)=>Y===" "&&!U[G]?U[G]:Y),U}),K=(W,H)=>{var U;const X=V(W,H),Y=Math.min(W+H.length,n-1);Y!==W&&X[W]!==void 0&&((U=R.current[Y])===null||U===void 0||U.focus()),M(X)},L=W=>{var H;(H=R.current[W])===null||H===void 0||H.focus()},B={variant:u,disabled:f,status:N,mask:v,type:p,inputMode:y};return C(d.createElement("div",Object.assign({},E,{ref:k,className:ce(w,{[`${w}-sm`]:T==="small",[`${w}-lg`]:T==="large",[`${w}-rtl`]:S==="rtl"},_,O),role:"group"}),d.createElement(ga.Provider,{value:D},Array.from({length:n}).map((W,H)=>{const U=`otp-${H}`,X=j[H]||"";return d.createElement(d.Fragment,{key:U},d.createElement(Jwe,Object.assign({ref:Y=>{R.current[H]=Y},index:H,size:T,htmlSize:1,className:`${w}-input`,onChange:K,value:X,onActiveChange:L,autoFocus:H===0&&h},B)),He?d.createElement(Pv,null):d.createElement(wU,null),uCe={click:"onClick",hover:"onMouseOver"},dCe=d.forwardRef((e,t)=>{const{disabled:r,action:n="click",visibilityToggle:a=!0,iconRender:i=cCe,suffix:o}=e,s=d.useContext(Wi),l=r??s,c=typeof a=="object"&&a.visible!==void 0,[u,f]=d.useState(()=>c?a.visible:!1),m=d.useRef(null);d.useEffect(()=>{c&&f(a.visible)},[c,a]);const h=oU(m),v=()=>{var I;if(l)return;u&&h();const N=!u;f(N),typeof a=="object"&&((I=a.onVisibleChange)===null||I===void 0||I.call(a,N))},p=I=>{const N=uCe[n]||"",D=i(u),k={[N]:v,className:`${I}-icon`,key:"passwordIcon",onMouseDown:R=>{R.preventDefault()},onMouseUp:R=>{R.preventDefault()}};return d.cloneElement(d.isValidElement(D)?D:d.createElement("span",null,D),k)},{className:g,prefixCls:y,inputPrefixCls:x,size:b}=e,S=lCe(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:w}=d.useContext(Nt),E=w("input",x),C=w("input-password",y),O=a&&p(C),_=ce(C,g,{[`${C}-${b}`]:!!b}),T=Object.assign(Object.assign({},Er(S,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:_,prefixCls:E,suffix:d.createElement(d.Fragment,null,O,o)});return b&&(T.size=b),d.createElement(Tv,Object.assign({ref:xa(t,m)},T))}),fCe=dCe;var mCe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:r,inputPrefixCls:n,className:a,size:i,suffix:o,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:f,onChange:m,onCompositionStart:h,onCompositionEnd:v,variant:p,onPressEnter:g}=e,y=mCe(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:x,direction:b}=d.useContext(Nt),S=d.useRef(!1),w=x("input-search",r),E=x("input",n),{compactSize:C}=cl(w,b),O=ba(B=>{var W;return(W=i??C)!==null&&W!==void 0?W:B}),_=d.useRef(null),T=B=>{B!=null&&B.target&&B.type==="click"&&f&&f(B.target.value,B,{source:"clear"}),m==null||m(B)},I=B=>{var W;document.activeElement===((W=_.current)===null||W===void 0?void 0:W.input)&&B.preventDefault()},N=B=>{var W,H;f&&f((H=(W=_.current)===null||W===void 0?void 0:W.input)===null||H===void 0?void 0:H.value,B,{source:"input"})},D=B=>{S.current||c||(g==null||g(B),N(B))},k=typeof s=="boolean"?d.createElement(uI,null):null,R=`${w}-button`;let A;const j=s||{},F=j.type&&j.type.__ANT_BUTTON===!0;F||j.type==="button"?A=pa(j,Object.assign({onMouseDown:I,onClick:B=>{var W,H;(H=(W=j==null?void 0:j.props)===null||W===void 0?void 0:W.onClick)===null||H===void 0||H.call(W,B),N(B)},key:"enterButton"},F?{className:R,size:O}:{})):A=d.createElement(kt,{className:R,color:s?"primary":"default",size:O,disabled:u,key:"enterButton",onMouseDown:I,onClick:N,loading:c,icon:k,variant:p==="borderless"||p==="filled"||p==="underlined"?"text":s?"solid":void 0},s),l&&(A=[A,pa(l,{key:"addonAfter"})]);const M=ce(w,{[`${w}-rtl`]:b==="rtl",[`${w}-${O}`]:!!O,[`${w}-with-button`]:!!s},a),V=B=>{S.current=!0,h==null||h(B)},K=B=>{S.current=!1,v==null||v(B)},L=Object.assign(Object.assign({},y),{className:M,prefixCls:E,type:"search",size:O,variant:p,onPressEnter:D,onCompositionStart:V,onCompositionEnd:K,addonAfter:A,suffix:o,onChange:T,disabled:u,_skipAddonWarning:!0});return d.createElement(Tv,Object.assign({ref:xa(_,t)},L))}),pCe=hCe;var vCe=` + min-height:0 !important; + max-height:none !important; + height:0 !important; + visibility:hidden !important; + overflow:hidden !important; + position:absolute !important; + z-index:-1000 !important; + top:0 !important; + right:0 !important; + pointer-events: none !important; +`,gCe=["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"],M2={},qi;function yCe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&M2[r])return M2[r];var n=window.getComputedStyle(e),a=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),i=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),o=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=gCe.map(function(c){return"".concat(c,":").concat(n.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:o,boxSizing:a};return t&&r&&(M2[r]=l),l}function xCe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;qi||(qi=document.createElement("textarea"),qi.setAttribute("tab-index","-1"),qi.setAttribute("aria-hidden","true"),qi.setAttribute("name","hiddenTextarea"),document.body.appendChild(qi)),e.getAttribute("wrap")?qi.setAttribute("wrap",e.getAttribute("wrap")):qi.removeAttribute("wrap");var a=yCe(e,t),i=a.paddingSize,o=a.borderSize,s=a.boxSizing,l=a.sizingStyle;qi.setAttribute("style","".concat(l,";").concat(vCe)),qi.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,m=qi.scrollHeight;if(s==="border-box"?m+=o:s==="content-box"&&(m-=i),r!==null||n!==null){qi.value=" ";var h=qi.scrollHeight-i;r!==null&&(c=h*r,s==="border-box"&&(c=c+i+o),m=Math.max(c,m)),n!==null&&(u=h*n,s==="border-box"&&(u=u+i+o),f=m>u?"":"hidden",m=Math.min(u,m))}var v={height:m,overflowY:f,resize:"none"};return c&&(v.minHeight=c),u&&(v.maxHeight=u),v}var bCe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],D2=0,j2=1,F2=2,SCe=d.forwardRef(function(e,t){var r=e,n=r.prefixCls,a=r.defaultValue,i=r.value,o=r.autoSize,s=r.onResize,l=r.className,c=r.style,u=r.disabled,f=r.onChange;r.onInternalAutoSize;var m=Rt(r,bCe),h=br(a,{value:i,postState:function(B){return B??""}}),v=me(h,2),p=v[0],g=v[1],y=function(B){g(B.target.value),f==null||f(B)},x=d.useRef();d.useImperativeHandle(t,function(){return{textArea:x.current}});var b=d.useMemo(function(){return o&&bt(o)==="object"?[o.minRows,o.maxRows]:[]},[o]),S=me(b,2),w=S[0],E=S[1],C=!!o,O=d.useState(F2),_=me(O,2),T=_[0],I=_[1],N=d.useState(),D=me(N,2),k=D[0],R=D[1],A=function(){I(D2)};Gt(function(){C&&A()},[i,w,E,C]),Gt(function(){if(T===D2)I(j2);else if(T===j2){var L=xCe(x.current,!1,w,E);I(F2),R(L)}},[T]);var j=d.useRef(),F=function(){Ut.cancel(j.current)},M=function(B){T===F2&&(s==null||s(B),o&&(F(),j.current=Ut(function(){A()})))};d.useEffect(function(){return F},[]);var V=C?k:null,K=ae(ae({},c),V);return(T===D2||T===j2)&&(K.overflowY="hidden",K.overflowX="hidden"),d.createElement(Aa,{onResize:M,disabled:!(o||s)},d.createElement("textarea",Te({},m,{ref:x,style:K,className:ce(n,l,ee({},"".concat(n,"-disabled"),u)),disabled:u,value:p,onChange:y})))}),wCe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],CCe=ve.forwardRef(function(e,t){var r,n=e.defaultValue,a=e.value,i=e.onFocus,o=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,h=e.prefixCls,v=h===void 0?"rc-textarea":h,p=e.showCount,g=e.count,y=e.className,x=e.style,b=e.disabled,S=e.hidden,w=e.classNames,E=e.styles,C=e.onResize,O=e.onClear,_=e.onPressEnter,T=e.readOnly,I=e.autoSize,N=e.onKeyDown,D=Rt(e,wCe),k=br(n,{value:a,defaultValue:n}),R=me(k,2),A=R[0],j=R[1],F=A==null?"":String(A),M=ve.useState(!1),V=me(M,2),K=V[0],L=V[1],B=ve.useRef(!1),W=ve.useState(null),H=me(W,2),U=H[0],X=H[1],Y=d.useRef(null),G=d.useRef(null),Q=function(){var Oe;return(Oe=G.current)===null||Oe===void 0?void 0:Oe.textArea},J=function(){Q().focus()};d.useImperativeHandle(t,function(){var je;return{resizableTextArea:G.current,focus:J,blur:function(){Q().blur()},nativeElement:((je=Y.current)===null||je===void 0?void 0:je.nativeElement)||Q()}}),d.useEffect(function(){L(function(je){return!b&&je})},[b]);var z=ve.useState(null),fe=me(z,2),te=fe[0],re=fe[1];ve.useEffect(function(){if(te){var je;(je=Q()).setSelectionRange.apply(je,De(te))}},[te]);var q=rU(g,p),ne=(r=q.max)!==null&&r!==void 0?r:c,he=Number(ne)>0,xe=q.strategy(F),ye=!!ne&&xe>ne,pe=function(Oe,Me){var ge=Me;!B.current&&q.exceedFormatter&&q.max&&q.strategy(Me)>q.max&&(ge=q.exceedFormatter(Me,{max:q.max}),Me!==ge&&re([Q().selectionStart||0,Q().selectionEnd||0])),j(ge),c1(Oe.currentTarget,Oe,s,ge)},be=function(Oe){B.current=!0,u==null||u(Oe)},_e=function(Oe){B.current=!1,pe(Oe,Oe.currentTarget.value),f==null||f(Oe)},$e=function(Oe){pe(Oe,Oe.target.value)},Be=function(Oe){Oe.key==="Enter"&&_&&_(Oe),N==null||N(Oe)},Fe=function(Oe){L(!0),i==null||i(Oe)},nt=function(Oe){L(!1),o==null||o(Oe)},qe=function(Oe){j(""),J(),c1(Q(),Oe,s)},Ge=m,Le;q.show&&(q.showFormatter?Le=q.showFormatter({value:F,count:xe,maxLength:ne}):Le="".concat(xe).concat(he?" / ".concat(ne):""),Ge=ve.createElement(ve.Fragment,null,Ge,ve.createElement("span",{className:ce("".concat(v,"-data-count"),w==null?void 0:w.count),style:E==null?void 0:E.count},Le)));var Ne=function(Oe){var Me;C==null||C(Oe),(Me=Q())!==null&&Me!==void 0&&Me.style.height&&X(!0)},we=!I&&!p&&!l;return ve.createElement(VI,{ref:Y,value:F,allowClear:l,handleReset:qe,suffix:Ge,prefixCls:v,classNames:ae(ae({},w),{},{affixWrapper:ce(w==null?void 0:w.affixWrapper,ee(ee({},"".concat(v,"-show-count"),p),"".concat(v,"-textarea-allow-clear"),l))}),disabled:b,focused:K,className:ce(y,ye&&"".concat(v,"-out-of-range")),style:ae(ae({},x),U&&!we?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Le=="string"?Le:void 0}},hidden:S,readOnly:T,onClear:O},ve.createElement(SCe,Te({},D,{autoSize:I,maxLength:c,onKeyDown:Be,onChange:$e,onFocus:Fe,onBlur:nt,onCompositionStart:be,onCompositionEnd:_e,className:ce(w==null?void 0:w.textarea),style:ae(ae({},E==null?void 0:E.textarea),{},{resize:x==null?void 0:x.resize}),disabled:b,prefixCls:v,onResize:Ne,ref:G,readOnly:T})))});const ECe=e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[n]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` + &-allow-clear > ${t}, + &-affix-wrapper${n}-has-feedback ${t} + `]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},$Ce=or(["Input","TextArea"],e=>{const t=Yt(e,Hd(e));return ECe(t)},Wd,{resetFont:!1});var _Ce=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var r;const{prefixCls:n,bordered:a=!0,size:i,disabled:o,status:s,allowClear:l,classNames:c,rootClassName:u,className:f,style:m,styles:h,variant:v,showCount:p,onMouseDown:g,onResize:y}=e,x=_Ce(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:b,direction:S,allowClear:w,autoComplete:E,className:C,style:O,classNames:_,styles:T}=Fn("textArea"),I=d.useContext(Wi),N=o??I,{status:D,hasFeedback:k,feedbackIcon:R}=d.useContext(ga),A=Fd(D,s),j=d.useRef(null);d.useImperativeHandle(t,()=>{var q;return{resizableTextArea:(q=j.current)===null||q===void 0?void 0:q.resizableTextArea,focus:ne=>{var he,xe;WI((xe=(he=j.current)===null||he===void 0?void 0:he.resizableTextArea)===null||xe===void 0?void 0:xe.textArea,ne)},blur:()=>{var ne;return(ne=j.current)===null||ne===void 0?void 0:ne.blur()}}});const F=b("input",n),M=gn(F),[V,K,L]=FV(F,u),[B]=$Ce(F,M),{compactSize:W,compactItemClassnames:H}=cl(F,S),U=ba(q=>{var ne;return(ne=i??W)!==null&&ne!==void 0?ne:q}),[X,Y]=Ld("textArea",v,a),G=iU(l??w),[Q,J]=d.useState(!1),[z,fe]=d.useState(!1),te=q=>{J(!0),g==null||g(q);const ne=()=>{J(!1),document.removeEventListener("mouseup",ne)};document.addEventListener("mouseup",ne)},re=q=>{var ne,he;if(y==null||y(q),Q&&typeof getComputedStyle=="function"){const xe=(he=(ne=j.current)===null||ne===void 0?void 0:ne.nativeElement)===null||he===void 0?void 0:he.querySelector("textarea");xe&&getComputedStyle(xe).resize==="both"&&fe(!0)}};return V(B(d.createElement(CCe,Object.assign({autoComplete:E},x,{style:Object.assign(Object.assign({},O),m),styles:Object.assign(Object.assign({},T),h),disabled:N,allowClear:G,className:ce(L,M,f,u,H,C,z&&`${F}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),_),{textarea:ce({[`${F}-sm`]:U==="small",[`${F}-lg`]:U==="large"},K,c==null?void 0:c.textarea,_.textarea,Q&&`${F}-mouse-active`),variant:ce({[`${F}-${X}`]:Y},Uc(F,A)),affixWrapper:ce(`${F}-textarea-affix-wrapper`,{[`${F}-affix-wrapper-rtl`]:S==="rtl",[`${F}-affix-wrapper-sm`]:U==="small",[`${F}-affix-wrapper-lg`]:U==="large",[`${F}-textarea-show-count`]:p||((r=e.count)===null||r===void 0?void 0:r.show)},K)}),prefixCls:F,suffix:k&&d.createElement("span",{className:`${F}-textarea-suffix`},R),showCount:p,ref:j,onResize:re,onMouseDown:te}))))}),CU=OCe,im=Tv;im.Group=qwe;im.Search=pCe;im.TextArea=CU;im.Password=fCe;im.OTP=nCe;const Na=im;function TCe(e,t,r){return typeof r=="boolean"?r:e.length?!0:ha(t).some(a=>a.type===AW)}var EU=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);ad.forwardRef((i,o)=>d.createElement(n,Object.assign({ref:o,suffixCls:e,tagName:t},i)))}const ZI=d.forwardRef((e,t)=>{const{prefixCls:r,suffixCls:n,className:a,tagName:i}=e,o=EU(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=d.useContext(Nt),l=s("layout",r),[c,u,f]=RW(l),m=n?`${l}-${n}`:l;return c(d.createElement(i,Object.assign({className:ce(r||m,a,u,f),ref:t},o)))}),PCe=d.forwardRef((e,t)=>{const{direction:r}=d.useContext(Nt),[n,a]=d.useState([]),{prefixCls:i,className:o,rootClassName:s,children:l,hasSider:c,tagName:u,style:f}=e,m=EU(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=Er(m,["suffixCls"]),{getPrefixCls:v,className:p,style:g}=Fn("layout"),y=v("layout",i),x=TCe(n,l,c),[b,S,w]=RW(y),E=ce(y,{[`${y}-has-sider`]:x,[`${y}-rtl`]:r==="rtl"},p,o,s,S,w),C=d.useMemo(()=>({siderHook:{addSider:O=>{a(_=>[].concat(De(_),[O]))},removeSider:O=>{a(_=>_.filter(T=>T!==O))}}}),[]);return b(d.createElement(IW.Provider,{value:C},d.createElement(u,Object.assign({ref:t,className:E,style:Object.assign(Object.assign({},g),f)},h),l)))}),ICe=LS({tagName:"div",displayName:"Layout"})(PCe),NCe=LS({suffixCls:"header",tagName:"header",displayName:"Header"})(ZI),kCe=LS({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ZI),RCe=LS({suffixCls:"content",tagName:"main",displayName:"Content"})(ZI),ACe=ICe,om=ACe;om.Header=NCe;om.Footer=kCe;om.Content=RCe;om.Sider=AW;om._InternalSiderContext=OS;const Rl=om;var MCe={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"};const DCe=MCe;var jCe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:DCe}))},FCe=d.forwardRef(jCe);const FD=FCe;var LCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const BCe=LCe;var zCe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:BCe}))},HCe=d.forwardRef(zCe);const LD=HCe;var WCe={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},VCe=[10,20,50,100],UCe=function(t){var r=t.pageSizeOptions,n=r===void 0?VCe:r,a=t.locale,i=t.changeSize,o=t.pageSize,s=t.goButton,l=t.quickGo,c=t.rootPrefixCls,u=t.disabled,f=t.buildOptionText,m=t.showSizeChanger,h=t.sizeChangerRender,v=ve.useState(""),p=me(v,2),g=p[0],y=p[1],x=function(){return!g||Number.isNaN(g)?void 0:Number(g)},b=typeof f=="function"?f:function(N){return"".concat(N," ").concat(a.items_per_page)},S=function(D){y(D.target.value)},w=function(D){s||g===""||(y(""),!(D.relatedTarget&&(D.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||D.relatedTarget.className.indexOf("".concat(c,"-item"))>=0))&&(l==null||l(x())))},E=function(D){g!==""&&(D.keyCode===Qe.ENTER||D.type==="click")&&(y(""),l==null||l(x()))},C=function(){return n.some(function(D){return D.toString()===o.toString()})?n:n.concat([o]).sort(function(D,k){var R=Number.isNaN(Number(D))?0:Number(D),A=Number.isNaN(Number(k))?0:Number(k);return R-A})},O="".concat(c,"-options");if(!m&&!l)return null;var _=null,T=null,I=null;return m&&h&&(_=h({disabled:u,size:o,onSizeChange:function(D){i==null||i(Number(D))},"aria-label":a.page_size,className:"".concat(O,"-size-changer"),options:C().map(function(N){return{label:b(N),value:N}})})),l&&(s&&(I=typeof s=="boolean"?ve.createElement("button",{type:"button",onClick:E,onKeyUp:E,disabled:u,className:"".concat(O,"-quick-jumper-button")},a.jump_to_confirm):ve.createElement("span",{onClick:E,onKeyUp:E},s)),T=ve.createElement("div",{className:"".concat(O,"-quick-jumper")},a.jump_to,ve.createElement("input",{disabled:u,type:"text",value:g,onChange:S,onKeyUp:E,onBlur:w,"aria-label":a.page}),a.page,I)),ve.createElement("li",{className:O},_,T)},Hm=function(t){var r=t.rootPrefixCls,n=t.page,a=t.active,i=t.className,o=t.showTitle,s=t.onClick,l=t.onKeyPress,c=t.itemRender,u="".concat(r,"-item"),f=ce(u,"".concat(u,"-").concat(n),ee(ee({},"".concat(u,"-active"),a),"".concat(u,"-disabled"),!n),i),m=function(){s(n)},h=function(g){l(g,s,n)},v=c(n,"page",ve.createElement("a",{rel:"nofollow"},n));return v?ve.createElement("li",{title:o?String(n):null,className:f,onClick:m,onKeyDown:h,tabIndex:0},v):null},KCe=function(t,r,n){return n};function BD(){}function zD(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Eu(e,t,r){var n=typeof e>"u"?t:e;return Math.floor((r-1)/n)+1}var GCe=function(t){var r=t.prefixCls,n=r===void 0?"rc-pagination":r,a=t.selectPrefixCls,i=a===void 0?"rc-select":a,o=t.className,s=t.current,l=t.defaultCurrent,c=l===void 0?1:l,u=t.total,f=u===void 0?0:u,m=t.pageSize,h=t.defaultPageSize,v=h===void 0?10:h,p=t.onChange,g=p===void 0?BD:p,y=t.hideOnSinglePage,x=t.align,b=t.showPrevNextJumpers,S=b===void 0?!0:b,w=t.showQuickJumper,E=t.showLessItems,C=t.showTitle,O=C===void 0?!0:C,_=t.onShowSizeChange,T=_===void 0?BD:_,I=t.locale,N=I===void 0?WCe:I,D=t.style,k=t.totalBoundaryShowSizeChanger,R=k===void 0?50:k,A=t.disabled,j=t.simple,F=t.showTotal,M=t.showSizeChanger,V=M===void 0?f>R:M,K=t.sizeChangerRender,L=t.pageSizeOptions,B=t.itemRender,W=B===void 0?KCe:B,H=t.jumpPrevIcon,U=t.jumpNextIcon,X=t.prevIcon,Y=t.nextIcon,G=ve.useRef(null),Q=br(10,{value:m,defaultValue:v}),J=me(Q,2),z=J[0],fe=J[1],te=br(1,{value:s,defaultValue:c,postState:function(Ot){return Math.max(1,Math.min(Ot,Eu(void 0,z,f)))}}),re=me(te,2),q=re[0],ne=re[1],he=ve.useState(q),xe=me(he,2),ye=xe[0],pe=xe[1];d.useEffect(function(){pe(q)},[q]);var be=Math.max(1,q-(E?3:5)),_e=Math.min(Eu(void 0,z,f),q+(E?3:5));function $e(pt,Ot){var zt=pt||ve.createElement("button",{type:"button","aria-label":Ot,className:"".concat(n,"-item-link")});return typeof pt=="function"&&(zt=ve.createElement(pt,ae({},t))),zt}function Be(pt){var Ot=pt.target.value,zt=Eu(void 0,z,f),pr;return Ot===""?pr=Ot:Number.isNaN(Number(Ot))?pr=ye:Ot>=zt?pr=zt:pr=Number(Ot),pr}function Fe(pt){return zD(pt)&&pt!==q&&zD(f)&&f>0}var nt=f>z?w:!1;function qe(pt){(pt.keyCode===Qe.UP||pt.keyCode===Qe.DOWN)&&pt.preventDefault()}function Ge(pt){var Ot=Be(pt);switch(Ot!==ye&&pe(Ot),pt.keyCode){case Qe.ENTER:we(Ot);break;case Qe.UP:we(Ot-1);break;case Qe.DOWN:we(Ot+1);break}}function Le(pt){we(Be(pt))}function Ne(pt){var Ot=Eu(pt,z,f),zt=q>Ot&&Ot!==0?Ot:q;fe(pt),pe(zt),T==null||T(q,pt),ne(zt),g==null||g(zt,pt)}function we(pt){if(Fe(pt)&&!A){var Ot=Eu(void 0,z,f),zt=pt;return pt>Ot?zt=Ot:pt<1&&(zt=1),zt!==ye&&pe(zt),ne(zt),g==null||g(zt,z),zt}return q}var je=q>1,Oe=q2?zt-2:0),Ir=2;Irf?f:q*z])),St=null,xt=Eu(void 0,z,f);if(y&&f<=z)return null;var rt=[],Ye={rootPrefixCls:n,onClick:we,onKeyPress:We,showTitle:O,itemRender:W,page:-1},Ze=q-1>0?q-1:0,ut=q+1=oe*2&&q!==1+2&&(rt[0]=ve.cloneElement(rt[0],{className:ce("".concat(n,"-item-after-jump-prev"),rt[0].props.className)}),rt.unshift(Mt)),xt-q>=oe*2&&q!==xt-2){var ze=rt[rt.length-1];rt[rt.length-1]=ve.cloneElement(ze,{className:ce("".concat(n,"-item-before-jump-next"),ze.props.className)}),rt.push(St)}Pe!==1&&rt.unshift(ve.createElement(Hm,Te({},Ye,{key:1,page:1}))),Xe!==xt&&rt.push(ve.createElement(Hm,Te({},Ye,{key:xt,page:xt})))}var He=ft(Ze);if(He){var Ve=!je||!xt;He=ve.createElement("li",{title:O?N.prev_page:null,onClick:Me,tabIndex:Ve?null:0,onKeyDown:at,className:ce("".concat(n,"-prev"),ee({},"".concat(n,"-disabled"),Ve)),"aria-disabled":Ve},He)}var et=lt(ut);if(et){var ot,wt;j?(ot=!Oe,wt=je?0:null):(ot=!Oe||!xt,wt=ot?null:0),et=ve.createElement("li",{title:O?N.next_page:null,onClick:ge,tabIndex:wt,onKeyDown:yt,className:ce("".concat(n,"-next"),ee({},"".concat(n,"-disabled"),ot)),"aria-disabled":ot},et)}var Lt=ce(n,o,ee(ee(ee(ee(ee({},"".concat(n,"-start"),x==="start"),"".concat(n,"-center"),x==="center"),"".concat(n,"-end"),x==="end"),"".concat(n,"-simple"),j),"".concat(n,"-disabled"),A));return ve.createElement("ul",Te({className:Lt,style:D,ref:G},Ft),ht,He,j?ie:rt,et,ve.createElement(UCe,{locale:N,rootPrefixCls:n,disabled:A,selectPrefixCls:i,changeSize:Ne,pageSize:z,pageSizeOptions:L,quickGo:nt?we:null,goButton:le,showSizeChanger:V,sizeChangerRender:K}))};const qCe=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},XCe=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:se(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:se(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:se(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` + &${t}-mini ${t}-prev ${t}-item-link, + &${t}-mini ${t}-next ${t}-item-link + `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:se(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:se(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:se(e.itemSizeSM),input:Object.assign(Object.assign({},DI(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},YCe=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:se(e.itemSize),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSize,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSize,lineHeight:se(e.itemSize)}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:e.itemSize,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${se(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${se(e.inputOutlineOffset)} 0 ${se(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-mini`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSizeSM,lineHeight:se(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:se(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},QCe=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` + ${t}-prev, + ${t}-jump-prev, + ${t}-jump-next + `]:{marginInlineEnd:e.marginXS},[` + ${t}-prev, + ${t}-next, + ${t}-jump-prev, + ${t}-jump-next + `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:se(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${se(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:se(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},_v(e)),II(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},AS(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},ZCe=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:se(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${se(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${se(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},JCe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ur(e)),{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:se(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),ZCe(e)),QCe(e)),YCe(e)),XCe(e)),qCe(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"}}},e2e=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Nl(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},nl(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:nl(e)}}}},$U=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Wd(e)),_U=e=>Yt(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Hd(e)),t2e=or("Pagination",e=>{const t=_U(e);return[JCe(t),e2e(t)]},$U),r2e=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},n2e=U0(["Pagination","bordered"],e=>{const t=_U(e);return r2e(t)},$U);function HD(e){return d.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var a2e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{align:t,prefixCls:r,selectPrefixCls:n,className:a,rootClassName:i,style:o,size:s,locale:l,responsive:c,showSizeChanger:u,selectComponentClass:f,pageSizeOptions:m}=e,h=a2e(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:v}=wv(c),[,p]=Ga(),{getPrefixCls:g,direction:y,showSizeChanger:x,className:b,style:S}=Fn("pagination"),w=g("pagination",r),[E,C,O]=t2e(w),_=ba(s),T=_==="small"||!!(v&&!_&&c),[I]=Hi("Pagination",q7),N=Object.assign(Object.assign({},I),l),[D,k]=HD(u),[R,A]=HD(x),j=D??R,F=k??A,M=f||ea,V=d.useMemo(()=>m?m.map(U=>Number(U)):void 0,[m]),K=U=>{var X;const{disabled:Y,size:G,onSizeChange:Q,"aria-label":J,className:z,options:fe}=U,{className:te,onChange:re}=F||{},q=(X=fe.find(ne=>String(ne.value)===String(G)))===null||X===void 0?void 0:X.value;return d.createElement(M,Object.assign({disabled:Y,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:ne=>ne.parentNode,"aria-label":J,options:fe},F,{value:q,onChange:(ne,he)=>{Q==null||Q(ne),re==null||re(ne,he)},size:T?"small":"middle",className:ce(z,te)}))},L=d.useMemo(()=>{const U=d.createElement("span",{className:`${w}-item-ellipsis`},"•••"),X=d.createElement("button",{className:`${w}-item-link`,type:"button",tabIndex:-1},y==="rtl"?d.createElement(md,null):d.createElement(vd,null)),Y=d.createElement("button",{className:`${w}-item-link`,type:"button",tabIndex:-1},y==="rtl"?d.createElement(vd,null):d.createElement(md,null)),G=d.createElement("a",{className:`${w}-item-link`},d.createElement("div",{className:`${w}-item-container`},y==="rtl"?d.createElement(LD,{className:`${w}-item-link-icon`}):d.createElement(FD,{className:`${w}-item-link-icon`}),U)),Q=d.createElement("a",{className:`${w}-item-link`},d.createElement("div",{className:`${w}-item-container`},y==="rtl"?d.createElement(FD,{className:`${w}-item-link-icon`}):d.createElement(LD,{className:`${w}-item-link-icon`}),U));return{prevIcon:X,nextIcon:Y,jumpPrevIcon:G,jumpNextIcon:Q}},[y,w]),B=g("select",n),W=ce({[`${w}-${t}`]:!!t,[`${w}-mini`]:T,[`${w}-rtl`]:y==="rtl",[`${w}-bordered`]:p.wireframe},b,a,i,C,O),H=Object.assign(Object.assign({},S),o);return E(d.createElement(d.Fragment,null,p.wireframe&&d.createElement(n2e,{prefixCls:w}),d.createElement(GCe,Object.assign({},L,h,{style:H,prefixCls:w,selectPrefixCls:B,className:W,locale:N,pageSizeOptions:V,showSizeChanger:j,sizeChangerRender:K}))))},o2e=i2e,d1=100,OU=d1/5,TU=d1/2-OU/2,L2=TU*2*Math.PI,WD=50,VD=e=>{const{dotClassName:t,style:r,hasCircleCls:n}=e;return d.createElement("circle",{className:ce(`${t}-circle`,{[`${t}-circle-bg`]:n}),r:TU,cx:WD,cy:WD,strokeWidth:OU,style:r})},s2e=({percent:e,prefixCls:t})=>{const r=`${t}-dot`,n=`${r}-holder`,a=`${n}-hidden`,[i,o]=d.useState(!1);Gt(()=>{e!==0&&o(!0)},[e!==0]);const s=Math.max(Math.min(e,100),0);if(!i)return null;const l={strokeDashoffset:`${L2/4}`,strokeDasharray:`${L2*s/100} ${L2*(100-s)/100}`};return d.createElement("span",{className:ce(n,`${r}-progress`,s<=0&&a)},d.createElement("svg",{viewBox:`0 0 ${d1} ${d1}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},d.createElement(VD,{dotClassName:r,hasCircleCls:!0}),d.createElement(VD,{dotClassName:r,style:l})))},l2e=s2e;function c2e(e){const{prefixCls:t,percent:r=0}=e,n=`${t}-dot`,a=`${n}-holder`,i=`${a}-hidden`;return d.createElement(d.Fragment,null,d.createElement("span",{className:ce(a,r>0&&i)},d.createElement("span",{className:ce(n,`${t}-dot-spin`)},[1,2,3,4].map(o=>d.createElement("i",{className:`${t}-dot-item`,key:o})))),d.createElement(l2e,{prefixCls:t,percent:r}))}function u2e(e){var t;const{prefixCls:r,indicator:n,percent:a}=e,i=`${r}-dot`;return n&&d.isValidElement(n)?pa(n,{className:ce((t=n.props)===null||t===void 0?void 0:t.className,i),percent:a}):d.createElement(c2e,{prefixCls:r,percent:a})}const d2e=new fr("antSpinMove",{to:{opacity:1}}),f2e=new fr("antRotate",{to:{transform:"rotate(405deg)"}}),m2e=e=>{const{componentCls:t,calc:r}=e;return{[t]:Object.assign(Object.assign({},ur(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:r(r(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:r(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:r(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:r(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:r(r(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:r(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:r(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:r(r(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:r(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:r(e.dotSize).sub(r(e.marginXXS).div(2)).div(2).equal(),height:r(e.dotSize).sub(r(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:d2e,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:f2e,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(n=>`${n} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:r(r(e.dotSizeSM).sub(r(e.marginXXS).div(2))).div(2).equal(),height:r(r(e.dotSizeSM).sub(r(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:r(r(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:r(r(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},h2e=e=>{const{controlHeightLG:t,controlHeight:r}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:r}},p2e=or("Spin",e=>{const t=Yt(e,{spinDotDefault:e.colorTextDescription});return m2e(t)},h2e),v2e=200,UD=[[30,.05],[70,.03],[96,.01]];function g2e(e,t){const[r,n]=d.useState(0),a=d.useRef(null),i=t==="auto";return d.useEffect(()=>(i&&e&&(n(0),a.current=setInterval(()=>{n(o=>{const s=100-o;for(let l=0;l{a.current&&(clearInterval(a.current),a.current=null)}),[i,e]),i?r:t}var y2e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var t;const{prefixCls:r,spinning:n=!0,delay:a=0,className:i,rootClassName:o,size:s="default",tip:l,wrapperClassName:c,style:u,children:f,fullscreen:m=!1,indicator:h,percent:v}=e,p=y2e(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:g,direction:y,className:x,style:b,indicator:S}=Fn("spin"),w=g("spin",r),[E,C,O]=p2e(w),[_,T]=d.useState(()=>n&&!x2e(n,a)),I=g2e(_,v);d.useEffect(()=>{if(n){const F=w1e(a,()=>{T(!0)});return F(),()=>{var M;(M=F==null?void 0:F.cancel)===null||M===void 0||M.call(F)}}T(!1)},[a,n]);const N=d.useMemo(()=>typeof f<"u"&&!m,[f,m]),D=ce(w,x,{[`${w}-sm`]:s==="small",[`${w}-lg`]:s==="large",[`${w}-spinning`]:_,[`${w}-show-text`]:!!l,[`${w}-rtl`]:y==="rtl"},i,!m&&o,C,O),k=ce(`${w}-container`,{[`${w}-blur`]:_}),R=(t=h??S)!==null&&t!==void 0?t:PU,A=Object.assign(Object.assign({},b),u),j=d.createElement("div",Object.assign({},p,{style:A,className:D,"aria-live":"polite","aria-busy":_}),d.createElement(u2e,{prefixCls:w,indicator:R,percent:I}),l&&(N||m)?d.createElement("div",{className:`${w}-text`},l):null);return E(N?d.createElement("div",Object.assign({},p,{className:ce(`${w}-nested-loading`,c,C,O)}),_&&d.createElement("div",{key:"loading"},j),d.createElement("div",{className:k,key:"container"},f)):m?d.createElement("div",{className:ce(`${w}-fullscreen`,{[`${w}-fullscreen-show`]:_},o,C,O)},j):j)};IU.setDefaultIndicator=e=>{PU=e};const JI=IU,b2e=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e],S2e=b2e;let No=null,zu=e=>e(),Cp=[],Ep={};function KD(){const{getContainer:e,duration:t,rtl:r,maxCount:n,top:a}=Ep,i=(e==null?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:r,maxCount:n,top:a}}const w2e=ve.forwardRef((e,t)=>{const{messageConfig:r,sync:n}=e,{getPrefixCls:a}=d.useContext(Nt),i=Ep.prefixCls||a("message"),o=d.useContext(S0e),[s,l]=L9(Object.assign(Object.assign(Object.assign({},r),{prefixCls:i}),o.message));return ve.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=(...f)=>(n(),s[u].apply(s,f))}),{instance:c,sync:n}}),l}),C2e=ve.forwardRef((e,t)=>{const[r,n]=ve.useState(KD),a=()=>{n(KD)};ve.useEffect(a,[]);const i=C9(),o=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),c=ve.createElement(w2e,{ref:t,sync:a,messageConfig:r});return ve.createElement(Dd,{prefixCls:o,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(c):c)}),BS=()=>{if(!No){const e=document.createDocumentFragment(),t={fragment:e};No=t,zu(()=>{UP()(ve.createElement(C2e,{ref:n=>{const{instance:a,sync:i}=n||{};Promise.resolve().then(()=>{!t.instance&&a&&(t.instance=a,t.sync=i,BS())})}}),e)});return}No.instance&&(Cp.forEach(e=>{const{type:t,skipped:r}=e;if(!r)switch(t){case"open":{zu(()=>{const n=No.instance.open(Object.assign(Object.assign({},Ep),e.config));n==null||n.then(e.resolve),e.setCloseFn(n)});break}case"destroy":zu(()=>{No==null||No.instance.destroy(e.key)});break;default:zu(()=>{var n;const a=(n=No.instance)[t].apply(n,De(e.args));a==null||a.then(e.resolve),e.setCloseFn(a)})}}),Cp=[])};function E2e(e){Ep=Object.assign(Object.assign({},Ep),e),zu(()=>{var t;(t=No==null?void 0:No.sync)===null||t===void 0||t.call(No)})}function $2e(e){const t=WP(r=>{let n;const a={type:"open",config:e,resolve:r,setCloseFn:i=>{n=i}};return Cp.push(a),()=>{n?zu(()=>{n()}):a.skipped=!0}});return BS(),t}function _2e(e,t){const r=WP(n=>{let a;const i={type:e,args:t,resolve:n,setCloseFn:o=>{a=o}};return Cp.push(i),()=>{a?zu(()=>{a()}):i.skipped=!0}});return BS(),r}const O2e=e=>{Cp.push({type:"destroy",key:e}),BS()},T2e=["success","info","warning","error","loading"],P2e={open:$2e,destroy:O2e,config:E2e,useMessage:ace,_InternalPanelDoNotUseOrYouWillBeFired:Yle},NU=P2e;T2e.forEach(e=>{NU[e]=(...t)=>_2e(e,t)});const ct=NU;var I2e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:r,closeIcon:n,closable:a,type:i,title:o,children:s,footer:l}=e,c=I2e(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=d.useContext(Nt),f=u(),m=t||u("modal"),h=gn(f),[v,p,g]=xH(m,h),y=`${m}-confirm`;let x={};return i?x={closable:a??!1,title:"",footer:"",children:d.createElement(SH,Object.assign({},e,{prefixCls:m,confirmPrefixCls:y,rootPrefixCls:f,content:s}))}:x={closable:a??!0,title:o,footer:l!==null&&d.createElement(pH,Object.assign({},e)),children:s},v(d.createElement(J9,Object.assign({prefixCls:m,className:ce(p,`${m}-pure-panel`,i&&y,i&&`${y}-${i}`,r,g,h)},c,{closeIcon:hH(m,n),closable:a},x)))},k2e=IH(N2e);function kU(e){return yv($H(e))}const Ns=bH;Ns.useModal=b0e;Ns.info=function(t){return yv(_H(t))};Ns.success=function(t){return yv(OH(t))};Ns.error=function(t){return yv(TH(t))};Ns.warning=kU;Ns.warn=kU;Ns.confirm=function(t){return yv(PH(t))};Ns.destroyAll=function(){for(;Lu.length;){const t=Lu.pop();t&&t()}};Ns.config=p0e;Ns._InternalPanelDoNotUseOrYouWillBeFired=k2e;const Ci=Ns,R2e=e=>{const{componentCls:t,iconCls:r,antCls:n,zIndexPopup:a,colorText:i,colorWarning:o,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:f}=e;return{[t]:{zIndex:a,[`&${n}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${r}`]:{color:o,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},A2e=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},RU=or("Popconfirm",e=>R2e(e),A2e,{resetStyle:!1});var M2e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,okButtonProps:r,cancelButtonProps:n,title:a,description:i,cancelText:o,okText:s,okType:l="primary",icon:c=d.createElement(G0,null),showCancel:u=!0,close:f,onConfirm:m,onCancel:h,onPopupClick:v}=e,{getPrefixCls:p}=d.useContext(Nt),[g]=Hi("Popconfirm",Vo.Popconfirm),y=b0(a),x=b0(i);return d.createElement("div",{className:`${t}-inner-content`,onClick:v},d.createElement("div",{className:`${t}-message`},c&&d.createElement("span",{className:`${t}-message-icon`},c),d.createElement("div",{className:`${t}-message-text`},y&&d.createElement("div",{className:`${t}-title`},y),x&&d.createElement("div",{className:`${t}-description`},x))),d.createElement("div",{className:`${t}-buttons`},u&&d.createElement(kt,Object.assign({onClick:h,size:"small"},n),o||(g==null?void 0:g.cancelText)),d.createElement(YP,{buttonProps:Object.assign(Object.assign({size:"small"},KP(l)),r),actionFn:m,close:f,prefixCls:p("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(g==null?void 0:g.okText))))},D2e=e=>{const{prefixCls:t,placement:r,className:n,style:a}=e,i=M2e(e,["prefixCls","placement","className","style"]),{getPrefixCls:o}=d.useContext(Nt),s=o("popconfirm",t),[l]=RU(s);return l(d.createElement(hW,{placement:r,className:ce(s,n),style:a,content:d.createElement(AU,Object.assign({prefixCls:s},i))}))},j2e=D2e;var F2e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var r,n;const{prefixCls:a,placement:i="top",trigger:o="click",okType:s="primary",icon:l=d.createElement(G0,null),children:c,overlayClassName:u,onOpenChange:f,onVisibleChange:m,overlayStyle:h,styles:v,classNames:p}=e,g=F2e(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:y,className:x,style:b,classNames:S,styles:w}=Fn("popconfirm"),[E,C]=br(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),O=(j,F)=>{C(j,!0),m==null||m(j),f==null||f(j,F)},_=j=>{O(!1,j)},T=j=>{var F;return(F=e.onConfirm)===null||F===void 0?void 0:F.call(globalThis,j)},I=j=>{var F;O(!1,j),(F=e.onCancel)===null||F===void 0||F.call(globalThis,j)},N=(j,F)=>{const{disabled:M=!1}=e;M||O(j,F)},D=y("popconfirm",a),k=ce(D,x,u,S.root,p==null?void 0:p.root),R=ce(S.body,p==null?void 0:p.body),[A]=RU(D);return A(d.createElement(vW,Object.assign({},Er(g,["title"]),{trigger:o,placement:i,onOpenChange:N,open:E,ref:t,classNames:{root:k,body:R},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},w.root),b),h),v==null?void 0:v.root),body:Object.assign(Object.assign({},w.body),v==null?void 0:v.body)},content:d.createElement(AU,Object.assign({okType:s,icon:l},e,{prefixCls:D,close:_,onConfirm:T,onCancel:I})),"data-popover-inject":!0}),c))}),MU=L2e;MU._InternalPanelDoNotUseOrYouWillBeFired=j2e;const sm=MU;var B2e={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},z2e=function(){var t=d.useRef([]),r=d.useRef(null);return d.useEffect(function(){var n=Date.now(),a=!1;t.current.forEach(function(i){if(i){a=!0;var o=i.style;o.transitionDuration=".3s, .3s, .3s, .06s",r.current&&n-r.current<100&&(o.transitionDuration="0s, 0s")}}),a&&(r.current=Date.now())}),t.current},GD=0,H2e=Ma();function W2e(){var e;return H2e?(e=GD,GD+=1):e="TEST_OR_SSR",e}const V2e=function(e){var t=d.useState(),r=me(t,2),n=r[0],a=r[1];return d.useEffect(function(){a("rc_progress_".concat(W2e()))},[]),e||n};var qD=function(t){var r=t.bg,n=t.children;return d.createElement("div",{style:{width:"100%",height:"100%",background:r}},n)};function XD(e,t){return Object.keys(e).map(function(r){var n=parseFloat(r),a="".concat(Math.floor(n*t),"%");return"".concat(e[r]," ").concat(a)})}var U2e=d.forwardRef(function(e,t){var r=e.prefixCls,n=e.color,a=e.gradientId,i=e.radius,o=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,f=e.gapDegree,m=n&&bt(n)==="object",h=m?"#FFF":void 0,v=u/2,p=d.createElement("circle",{className:"".concat(r,"-circle-path"),r:i,cx:v,cy:v,stroke:h,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:o,ref:t});if(!m)return p;var g="".concat(a,"-conic"),y=f?"".concat(180+f/2,"deg"):"0deg",x=XD(n,(360-f)/360),b=XD(n,1),S="conic-gradient(from ".concat(y,", ").concat(x.join(", "),")"),w="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(b.join(", "),")");return d.createElement(d.Fragment,null,d.createElement("mask",{id:g},p),d.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(g,")")},d.createElement(qD,{bg:w},d.createElement(qD,{bg:S}))))}),ch=100,B2=function(t,r,n,a,i,o,s,l,c,u){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,m=n/100*360*((360-o)/360),h=o===0?0:{bottom:0,top:180,left:90,right:-90}[s],v=(100-a)/100*r;c==="round"&&a!==100&&(v+=u/2,v>=r&&(v=r-.01));var p=ch/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(r,"px ").concat(t),strokeDashoffset:v+f,transform:"rotate(".concat(i+m+h,"deg)"),transformOrigin:"".concat(p,"px ").concat(p,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},K2e=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function YD(e){var t=e??[];return Array.isArray(t)?t:[t]}var G2e=function(t){var r=ae(ae({},B2e),t),n=r.id,a=r.prefixCls,i=r.steps,o=r.strokeWidth,s=r.trailWidth,l=r.gapDegree,c=l===void 0?0:l,u=r.gapPosition,f=r.trailColor,m=r.strokeLinecap,h=r.style,v=r.className,p=r.strokeColor,g=r.percent,y=Rt(r,K2e),x=ch/2,b=V2e(n),S="".concat(b,"-gradient"),w=x-o/2,E=Math.PI*2*w,C=c>0?90+c/2:-90,O=E*((360-c)/360),_=bt(i)==="object"?i:{count:i,gap:2},T=_.count,I=_.gap,N=YD(g),D=YD(p),k=D.find(function(K){return K&&bt(K)==="object"}),R=k&&bt(k)==="object",A=R?"butt":m,j=B2(E,O,0,100,C,c,u,f,A,o),F=z2e(),M=function(){var L=0;return N.map(function(B,W){var H=D[W]||D[D.length-1],U=B2(E,O,L,B,C,c,u,H,A,o);return L+=B,d.createElement(U2e,{key:W,color:H,ptg:B,radius:w,prefixCls:a,gradientId:S,style:U,strokeLinecap:A,strokeWidth:o,gapDegree:c,ref:function(Y){F[W]=Y},size:ch})}).reverse()},V=function(){var L=Math.round(T*(N[0]/100)),B=100/T,W=0;return new Array(T).fill(null).map(function(H,U){var X=U<=L-1?D[0]:f,Y=X&&bt(X)==="object"?"url(#".concat(S,")"):void 0,G=B2(E,O,W,B,C,c,u,X,"butt",o,I);return W+=(O-G.strokeDashoffset+I)*100/O,d.createElement("circle",{key:U,className:"".concat(a,"-circle-path"),r:w,cx:x,cy:x,stroke:Y,strokeWidth:o,opacity:1,style:G,ref:function(J){F[U]=J}})})};return d.createElement("svg",Te({className:ce("".concat(a,"-circle"),v),viewBox:"0 0 ".concat(ch," ").concat(ch),style:h,id:n,role:"presentation"},y),!T&&d.createElement("circle",{className:"".concat(a,"-circle-trail"),r:w,cx:x,cy:x,stroke:f,strokeLinecap:A,strokeWidth:s||o,style:j}),T?V():M())};function jc(e){return!e||e<0?0:e>100?100:e}function f1({success:e,successPercent:t}){let r=t;return e&&"progress"in e&&(r=e.progress),e&&"percent"in e&&(r=e.percent),r}const q2e=({percent:e,success:t,successPercent:r})=>{const n=jc(f1({success:t,successPercent:r}));return[n,jc(jc(e)-n)]},X2e=({success:e={},strokeColor:t})=>{const{strokeColor:r}=e;return[r||Yf.green,t||null]},zS=(e,t,r)=>{var n,a,i,o;let s=-1,l=-1;if(t==="step"){const c=r.steps,u=r.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=u??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){const c=r==null?void 0:r.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(a=(n=e[0])!==null&&n!==void 0?n:e[1])!==null&&a!==void 0?a:120,l=(o=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&o!==void 0?o:120));return[s,l]},Y2e=3,Q2e=e=>Y2e/e*100,Z2e=e=>{const{prefixCls:t,trailColor:r=null,strokeLinecap:n="round",gapPosition:a,gapDegree:i,width:o=120,type:s,children:l,success:c,size:u=o,steps:f}=e,[m,h]=zS(u,"circle");let{strokeWidth:v}=e;v===void 0&&(v=Math.max(Q2e(m),6));const p={width:m,height:h,fontSize:m*.15+6},g=d.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),y=q2e(e),x=a||s==="dashboard"&&"bottom"||void 0,b=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=X2e({success:c,strokeColor:e.strokeColor}),w=ce(`${t}-inner`,{[`${t}-circle-gradient`]:b}),E=d.createElement(G2e,{steps:f,percent:f?y[1]:y,strokeWidth:v,trailWidth:v,strokeColor:f?S[1]:S,strokeLinecap:n,trailColor:r,prefixCls:t,gapDegree:g,gapPosition:x}),C=m<=20,O=d.createElement("div",{className:w,style:p},E,!C&&l);return C?d.createElement(Os,{title:l},O):O},J2e=Z2e,m1="--progress-line-stroke-color",DU="--progress-percent",QD=e=>{const t=e?"100%":"-100%";return new fr(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},eEe=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},ur(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${m1})`]},height:"100%",width:`calc(1 / var(${DU}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${se(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:QD(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:QD(!0)}},[`&${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}}})}},tEe=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},rEe=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.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},nEe=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},aEe=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),iEe=or("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),r=Yt(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[eEe(r),tEe(r),rEe(r),nEe(r)]},aEe);var oEe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{let t=[];return Object.keys(e).forEach(r=>{const n=Number.parseFloat(r.replace(/%/g,""));Number.isNaN(n)||t.push({key:n,value:e[r]})}),t=t.sort((r,n)=>r.key-n.key),t.map(({key:r,value:n})=>`${n} ${r}%`).join(", ")},lEe=(e,t)=>{const{from:r=Yf.blue,to:n=Yf.blue,direction:a=t==="rtl"?"to left":"to right"}=e,i=oEe(e,["from","to","direction"]);if(Object.keys(i).length!==0){const s=sEe(i),l=`linear-gradient(${a}, ${s})`;return{background:l,[m1]:l}}const o=`linear-gradient(${a}, ${r}, ${n})`;return{background:o,[m1]:o}},cEe=e=>{const{prefixCls:t,direction:r,percent:n,size:a,strokeWidth:i,strokeColor:o,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:f}=e,{align:m,type:h}=u,v=o&&typeof o!="string"?lEe(o,r):{[m1]:o,background:o},p=s==="square"||s==="butt"?0:void 0,g=a??[-1,i||(a==="small"?6:8)],[y,x]=zS(g,"line",{strokeWidth:i}),b={backgroundColor:c||void 0,borderRadius:p},S=Object.assign(Object.assign({width:`${jc(n)}%`,height:x,borderRadius:p},v),{[DU]:jc(n)/100}),w=f1(e),E={width:`${jc(w)}%`,height:x,borderRadius:p,backgroundColor:f==null?void 0:f.strokeColor},C={width:y<0?"100%":y},O=d.createElement("div",{className:`${t}-inner`,style:b},d.createElement("div",{className:ce(`${t}-bg`,`${t}-bg-${h}`),style:S},h==="inner"&&l),w!==void 0&&d.createElement("div",{className:`${t}-success-bg`,style:E})),_=h==="outer"&&m==="start",T=h==="outer"&&m==="end";return h==="outer"&&m==="center"?d.createElement("div",{className:`${t}-layout-bottom`},O,l):d.createElement("div",{className:`${t}-outer`,style:C},_&&l,O,T&&l)},uEe=cEe,dEe=e=>{const{size:t,steps:r,rounding:n=Math.round,percent:a=0,strokeWidth:i=8,strokeColor:o,trailColor:s=null,prefixCls:l,children:c}=e,u=n(r*(a/100)),m=t??[t==="small"?2:14,i],[h,v]=zS(m,"step",{steps:r,strokeWidth:i}),p=h/r,g=Array.from({length:r});for(let y=0;y{const{prefixCls:r,className:n,rootClassName:a,steps:i,strokeColor:o,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:f,format:m,style:h,percentPosition:v={}}=e,p=mEe(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:g="end",type:y="outer"}=v,x=Array.isArray(o)?o[0]:o,b=typeof o=="string"||Array.isArray(o)?o:void 0,S=d.useMemo(()=>{if(x){const M=typeof x=="string"?x:Object.values(x)[0];return new lr(M).isLight()}return!1},[o]),w=d.useMemo(()=>{var M,V;const K=f1(e);return Number.parseInt(K!==void 0?(M=K??0)===null||M===void 0?void 0:M.toString():(V=s??0)===null||V===void 0?void 0:V.toString(),10)},[s,e.success,e.successPercent]),E=d.useMemo(()=>!hEe.includes(f)&&w>=100?"success":f||"normal",[f,w]),{getPrefixCls:C,direction:O,progress:_}=d.useContext(Nt),T=C("progress",r),[I,N,D]=iEe(T),k=u==="line",R=k&&!i,A=d.useMemo(()=>{if(!c)return null;const M=f1(e);let V;const K=m||(B=>`${B}%`),L=k&&S&&y==="inner";return y==="inner"||m||E!=="exception"&&E!=="success"?V=K(jc(s),jc(M)):E==="exception"?V=k?d.createElement(jd,null):d.createElement(cu,null):E==="success"&&(V=k?d.createElement(mv,null):d.createElement(lI,null)),d.createElement("span",{className:ce(`${T}-text`,{[`${T}-text-bright`]:L,[`${T}-text-${g}`]:R,[`${T}-text-${y}`]:R}),title:typeof V=="string"?V:void 0},V)},[c,s,w,E,u,T,m]);let j;u==="line"?j=i?d.createElement(fEe,Object.assign({},e,{strokeColor:b,prefixCls:T,steps:typeof i=="object"?i.count:i}),A):d.createElement(uEe,Object.assign({},e,{strokeColor:x,prefixCls:T,direction:O,percentPosition:{align:g,type:y}}),A):(u==="circle"||u==="dashboard")&&(j=d.createElement(J2e,Object.assign({},e,{strokeColor:x,prefixCls:T,progressStatus:E}),A));const F=ce(T,`${T}-status-${E}`,{[`${T}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${T}-inline-circle`]:u==="circle"&&zS(l,"circle")[0]<=20,[`${T}-line`]:R,[`${T}-line-align-${g}`]:R,[`${T}-line-position-${y}`]:R,[`${T}-steps`]:i,[`${T}-show-info`]:c,[`${T}-${l}`]:typeof l=="string",[`${T}-rtl`]:O==="rtl"},_==null?void 0:_.className,n,a,N,D);return I(d.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},_==null?void 0:_.style),h),className:F,role:"progressbar","aria-valuenow":w,"aria-valuemin":0,"aria-valuemax":100},Er(p,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),j))}),Sc=pEe;var vEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};const gEe=vEe;var yEe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:gEe}))},xEe=d.forwardRef(yEe);const eN=xEe,bEe=e=>{const{value:t,formatter:r,precision:n,decimalSeparator:a,groupSeparator:i="",prefixCls:o}=e;let s;if(typeof r=="function")s=r(t);else{const l=String(t),c=l.match(/^(-?)(\d*)(\.(\d+))?$/);if(!c||l==="-")s=l;else{const u=c[1];let f=c[2]||"0",m=c[4]||"";f=f.replace(/\B(?=(\d{3})+(?!\d))/g,i),typeof n=="number"&&(m=m.padEnd(n,"0").slice(0,n>0?n:0)),m&&(m=`${a}${m}`),s=[d.createElement("span",{key:"int",className:`${o}-content-value-int`},u,f),m&&d.createElement("span",{key:"decimal",className:`${o}-content-value-decimal`},m)]}}return d.createElement("span",{className:`${o}-content-value`},s)},SEe=bEe,wEe=e=>{const{componentCls:t,marginXXS:r,padding:n,colorTextDescription:a,titleFontSize:i,colorTextHeading:o,contentFontSize:s,fontFamily:l}=e;return{[t]:Object.assign(Object.assign({},ur(e)),{[`${t}-title`]:{marginBottom:r,color:a,fontSize:i},[`${t}-skeleton`]:{paddingTop:n},[`${t}-content`]:{color:o,fontSize:s,fontFamily:l,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:r},[`${t}-content-suffix`]:{marginInlineStart:r}}})}},CEe=e=>{const{fontSizeHeading3:t,fontSize:r}=e;return{titleFontSize:r,contentFontSize:t}},EEe=or("Statistic",e=>{const t=Yt(e,{});return wEe(t)},CEe);var $Ee=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:r,className:n,rootClassName:a,style:i,valueStyle:o,value:s=0,title:l,valueRender:c,prefix:u,suffix:f,loading:m=!1,formatter:h,precision:v,decimalSeparator:p=".",groupSeparator:g=",",onMouseEnter:y,onMouseLeave:x}=e,b=$Ee(e,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:S,direction:w,className:E,style:C}=Fn("statistic"),O=S("statistic",r),[_,T,I]=EEe(O),N=d.createElement(SEe,{decimalSeparator:p,groupSeparator:g,prefixCls:O,formatter:h,precision:v,value:s}),D=ce(O,{[`${O}-rtl`]:w==="rtl"},E,n,a,T,I),k=d.useRef(null);d.useImperativeHandle(t,()=>({nativeElement:k.current}));const R=Dn(b,{aria:!0,data:!0});return _(d.createElement("div",Object.assign({},R,{ref:k,className:D,style:Object.assign(Object.assign({},C),i),onMouseEnter:y,onMouseLeave:x}),l&&d.createElement("div",{className:`${O}-title`},l),d.createElement(rI,{paragraph:!1,loading:m,className:`${O}-skeleton`,active:!0},d.createElement("div",{style:o,className:`${O}-content`},u&&d.createElement("span",{className:`${O}-content-prefix`},u),c?c(N):N,f&&d.createElement("span",{className:`${O}-content-suffix`},f)))))}),Ai=_Ee,OEe=[["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 TEe(e,t){let r=e;const n=/\[[^\]]*]/g,a=(t.match(n)||[]).map(l=>l.slice(1,-1)),i=t.replace(n,"[]"),o=OEe.reduce((l,[c,u])=>{if(l.includes(c)){const f=Math.floor(r/u);return r-=f*u,l.replace(new RegExp(`${c}+`,"g"),m=>{const h=m.length;return f.toString().padStart(h,"0")})}return l},i);let s=0;return o.replace(n,()=>{const l=a[s];return s+=1,l})}function PEe(e,t,r){const{format:n=""}=t,a=new Date(e).getTime(),i=Date.now(),o=Math.max(r?a-i:i-a,0);return TEe(o,n)}var IEe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{value:t,format:r="HH:mm:ss",onChange:n,onFinish:a,type:i}=e,o=IEe(e,["value","format","onChange","onFinish","type"]),s=i==="countdown",[l,c]=d.useState(null),u=qt(()=>{const h=Date.now(),v=NEe(t);c({});const p=s?v-h:h-v;return n==null||n(p),s&&v{let h;const v=()=>Ut.cancel(h),p=()=>{h=Ut(()=>{u()&&p()})};return p(),v},[t,s]),d.useEffect(()=>{c({})},[]);const f=(h,v)=>l?PEe(h,Object.assign(Object.assign({},v),{format:r}),s):"-",m=h=>pa(h,{title:void 0});return d.createElement(Ai,Object.assign({},o,{value:t,valueRender:m,formatter:f}))},jU=kEe,REe=e=>d.createElement(jU,Object.assign({},e,{type:"countdown"})),AEe=d.memo(REe);Ai.Timer=jU;Ai.Countdown=AEe;var uc={},Iv="rc-table-internal-hook";function tN(e){var t=d.createContext(void 0),r=function(a){var i=a.value,o=a.children,s=d.useRef(i);s.current=i;var l=d.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),c=me(l,1),u=c[0];return Gt(function(){wi.unstable_batchedUpdates(function(){u.listeners.forEach(function(f){f(i)})})},[i]),d.createElement(t.Provider,{value:u},o)};return{Context:t,Provider:r,defaultValue:e}}function Da(e,t){var r=qt(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var m={};return t.forEach(function(h){m[h]=f[h]}),m}),n=d.useContext(e==null?void 0:e.Context),a=n||{},i=a.listeners,o=a.getValue,s=d.useRef();s.current=r(n?o():e==null?void 0:e.defaultValue);var l=d.useState({}),c=me(l,2),u=c[1];return Gt(function(){if(!n)return;function f(m){var h=r(m);tl(s.current,h,!0)||u({})}return i.add(f),function(){i.delete(f)}},[n]),s.current}function MEe(){var e=d.createContext(null);function t(){return d.useContext(e)}function r(a,i){var o=_s(a),s=function(c,u){var f=o?{ref:u}:{},m=d.useRef(0),h=d.useRef(c),v=t();return v!==null?d.createElement(a,Te({},c,f)):((!i||i(h.current,c))&&(m.current+=1),h.current=c,d.createElement(e.Provider,{value:m.current},d.createElement(a,Te({},c,f))))};return o?d.forwardRef(s):s}function n(a,i){var o=_s(a),s=function(c,u){var f=o?{ref:u}:{};return t(),d.createElement(a,Te({},c,f))};return o?d.memo(d.forwardRef(s),i):d.memo(s,i)}return{makeImmutable:r,responseImmutable:n,useImmutableMark:t}}var rN=MEe(),FU=rN.makeImmutable,lm=rN.responseImmutable,DEe=rN.useImmutableMark,fi=tN(),LU=d.createContext({renderWithProps:!1}),jEe="RC_TABLE_KEY";function FEe(e){return e==null?[]:Array.isArray(e)?e:[e]}function HS(e){var t=[],r={};return e.forEach(function(n){for(var a=n||{},i=a.key,o=a.dataIndex,s=i||FEe(o).join("-")||jEe;r[s];)s="".concat(s,"_next");r[s]=!0,t.push(s)}),t}function rO(e){return e!=null}function LEe(e){return typeof e=="number"&&!Number.isNaN(e)}function BEe(e){return e&&bt(e)==="object"&&!Array.isArray(e)&&!d.isValidElement(e)}function zEe(e,t,r,n,a,i){var o=d.useContext(LU),s=DEe(),l=Md(function(){if(rO(n))return[n];var c=t==null||t===""?[]:Array.isArray(t)?t:[t],u=yi(e,c),f=u,m=void 0;if(a){var h=a(u,e,r);BEe(h)?(f=h.children,m=h.props,o.renderWithProps=!0):f=h}return[f,m]},[s,e,n,t,a,r],function(c,u){if(i){var f=me(c,2),m=f[1],h=me(u,2),v=h[1];return i(v,m)}return o.renderWithProps?!0:!tl(c,u,!0)});return l}function HEe(e,t,r,n){var a=e+t-1;return e<=n&&a>=r}function WEe(e,t){return Da(fi,function(r){var n=HEe(e,t||1,r.hoverStartRow,r.hoverEndRow);return[n,r.onHover]})}var VEe=function(t){var r=t.ellipsis,n=t.rowType,a=t.children,i,o=r===!0?{showTitle:!0}:r;return o&&(o.showTitle||n==="header")&&(typeof a=="string"||typeof a=="number"?i=a.toString():d.isValidElement(a)&&typeof a.props.children=="string"&&(i=a.props.children)),i};function UEe(e){var t,r,n,a,i,o,s,l,c=e.component,u=e.children,f=e.ellipsis,m=e.scope,h=e.prefixCls,v=e.className,p=e.align,g=e.record,y=e.render,x=e.dataIndex,b=e.renderIndex,S=e.shouldCellUpdate,w=e.index,E=e.rowType,C=e.colSpan,O=e.rowSpan,_=e.fixLeft,T=e.fixRight,I=e.firstFixLeft,N=e.lastFixLeft,D=e.firstFixRight,k=e.lastFixRight,R=e.appendNode,A=e.additionalProps,j=A===void 0?{}:A,F=e.isSticky,M="".concat(h,"-cell"),V=Da(fi,["supportSticky","allColumnsFixedLeft","rowHoverable"]),K=V.supportSticky,L=V.allColumnsFixedLeft,B=V.rowHoverable,W=zEe(g,x,b,u,y,S),H=me(W,2),U=H[0],X=H[1],Y={},G=typeof _=="number"&&K,Q=typeof T=="number"&&K;G&&(Y.position="sticky",Y.left=_),Q&&(Y.position="sticky",Y.right=T);var J=(t=(r=(n=X==null?void 0:X.colSpan)!==null&&n!==void 0?n:j.colSpan)!==null&&r!==void 0?r:C)!==null&&t!==void 0?t:1,z=(a=(i=(o=X==null?void 0:X.rowSpan)!==null&&o!==void 0?o:j.rowSpan)!==null&&i!==void 0?i:O)!==null&&a!==void 0?a:1,fe=WEe(w,z),te=me(fe,2),re=te[0],q=te[1],ne=qt(function($e){var Be;g&&q(w,w+z-1),j==null||(Be=j.onMouseEnter)===null||Be===void 0||Be.call(j,$e)}),he=qt(function($e){var Be;g&&q(-1,-1),j==null||(Be=j.onMouseLeave)===null||Be===void 0||Be.call(j,$e)});if(J===0||z===0)return null;var xe=(s=j.title)!==null&&s!==void 0?s:VEe({rowType:E,ellipsis:f,children:U}),ye=ce(M,v,(l={},ee(ee(ee(ee(ee(ee(ee(ee(ee(ee(l,"".concat(M,"-fix-left"),G&&K),"".concat(M,"-fix-left-first"),I&&K),"".concat(M,"-fix-left-last"),N&&K),"".concat(M,"-fix-left-all"),N&&L&&K),"".concat(M,"-fix-right"),Q&&K),"".concat(M,"-fix-right-first"),D&&K),"".concat(M,"-fix-right-last"),k&&K),"".concat(M,"-ellipsis"),f),"".concat(M,"-with-append"),R),"".concat(M,"-fix-sticky"),(G||Q)&&F&&K),ee(l,"".concat(M,"-row-hover"),!X&&re)),j.className,X==null?void 0:X.className),pe={};p&&(pe.textAlign=p);var be=ae(ae(ae(ae({},X==null?void 0:X.style),Y),pe),j.style),_e=U;return bt(_e)==="object"&&!Array.isArray(_e)&&!d.isValidElement(_e)&&(_e=null),f&&(N||D)&&(_e=d.createElement("span",{className:"".concat(M,"-content")},_e)),d.createElement(c,Te({},X,j,{className:ye,style:be,title:xe,scope:m,onMouseEnter:B?ne:void 0,onMouseLeave:B?he:void 0,colSpan:J!==1?J:null,rowSpan:z!==1?z:null}),R,_e)}const cm=d.memo(UEe);function nN(e,t,r,n,a){var i=r[e]||{},o=r[t]||{},s,l;i.fixed==="left"?s=n.left[a==="rtl"?t:e]:o.fixed==="right"&&(l=n.right[a==="rtl"?e:t]);var c=!1,u=!1,f=!1,m=!1,h=r[t+1],v=r[e-1],p=h&&!h.fixed||v&&!v.fixed||r.every(function(S){return S.fixed==="left"});if(a==="rtl"){if(s!==void 0){var g=v&&v.fixed==="left";m=!g&&p}else if(l!==void 0){var y=h&&h.fixed==="right";f=!y&&p}}else if(s!==void 0){var x=h&&h.fixed==="left";c=!x&&p}else if(l!==void 0){var b=v&&v.fixed==="right";u=!b&&p}return{fixLeft:s,fixRight:l,lastFixLeft:c,firstFixRight:u,lastFixRight:f,firstFixLeft:m,isSticky:n.isSticky}}var BU=d.createContext({});function KEe(e){var t=e.className,r=e.index,n=e.children,a=e.colSpan,i=a===void 0?1:a,o=e.rowSpan,s=e.align,l=Da(fi,["prefixCls","direction"]),c=l.prefixCls,u=l.direction,f=d.useContext(BU),m=f.scrollColumnIndex,h=f.stickyOffsets,v=f.flattenColumns,p=r+i-1,g=p+1===m?i+1:i,y=nN(r,r+g-1,v,h,u);return d.createElement(cm,Te({className:t,index:r,component:"td",prefixCls:c,record:null,dataIndex:null,align:s,colSpan:g,rowSpan:o,render:function(){return n}},y))}var GEe=["children"];function qEe(e){var t=e.children,r=Rt(e,GEe);return d.createElement("tr",r,t)}function WS(e){var t=e.children;return t}WS.Row=qEe;WS.Cell=KEe;function XEe(e){var t=e.children,r=e.stickyOffsets,n=e.flattenColumns,a=Da(fi,"prefixCls"),i=n.length-1,o=n[i],s=d.useMemo(function(){return{stickyOffsets:r,flattenColumns:n,scrollColumnIndex:o!=null&&o.scrollbar?i:null}},[o,n,i,r]);return d.createElement(BU.Provider,{value:s},d.createElement("tfoot",{className:"".concat(a,"-summary")},t))}const ay=lm(XEe);var zU=WS;function YEe(e){return null}function QEe(e){return null}function HU(e,t,r,n,a,i,o){var s=i(t,o);e.push({record:t,indent:r,index:o,rowKey:s});var l=a==null?void 0:a.has(s);if(t&&Array.isArray(t[n])&&l)for(var c=0;c1?I-1:0),D=1;D5&&arguments[5]!==void 0?arguments[5]:[],s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,l=e.record,c=e.prefixCls,u=e.columnsKey,f=e.fixedInfoList,m=e.expandIconColumnIndex,h=e.nestExpandable,v=e.indentSize,p=e.expandIcon,g=e.expanded,y=e.hasNestChildren,x=e.onTriggerExpand,b=e.expandable,S=e.expandedKeys,w=u[r],E=f[r],C;r===(m||0)&&h&&(C=d.createElement(d.Fragment,null,d.createElement("span",{style:{paddingLeft:"".concat(v*n,"px")},className:"".concat(c,"-row-indent indent-level-").concat(n)}),p({prefixCls:c,expanded:g,expandable:y,record:l,onExpand:x})));var O=((i=t.onCell)===null||i===void 0?void 0:i.call(t,l,a))||{};if(s){var _=O.rowSpan,T=_===void 0?1:_;if(b&&T&&r=1)),style:ae(ae({},r),b==null?void 0:b.style)}),g.map(function(I,N){var D=I.render,k=I.dataIndex,R=I.className,A=GU(v,I,N,c,a,s,h==null?void 0:h.offset),j=A.key,F=A.fixedInfo,M=A.appendCellNode,V=A.additionalCellProps;return d.createElement(cm,Te({className:R,ellipsis:I.ellipsis,align:I.align,scope:I.rowScope,component:I.rowScope?m:f,prefixCls:p,key:j,record:n,index:a,renderIndex:i,dataIndex:k,render:D,shouldCellUpdate:I.shouldCellUpdate},F,{appendNode:M,additionalProps:V}))})),_;if(w&&(E.current||S)){var T=x(n,a,c+1,S);_=d.createElement(UU,{expanded:S,className:ce("".concat(p,"-expanded-row"),"".concat(p,"-expanded-row-level-").concat(c+1),C),prefixCls:p,component:u,cellComponent:f,colSpan:h?h.colSpan:g.length,stickyOffset:h==null?void 0:h.sticky,isEmpty:!1},T)}return d.createElement(d.Fragment,null,O,_)}const t$e=lm(e$e);function r$e(e){var t=e.columnKey,r=e.onColumnResize,n=e.prefixCls,a=e.title,i=d.useRef();return Gt(function(){i.current&&r(t,i.current.offsetWidth)},[]),d.createElement(Aa,{data:t},d.createElement("th",{ref:i,className:"".concat(n,"-measure-cell")},d.createElement("div",{className:"".concat(n,"-measure-cell-content")},a||" ")))}function n$e(e){var t=e.prefixCls,r=e.columnsKey,n=e.onColumnResize,a=e.columns,i=d.useRef(null),o=Da(fi,["measureRowRender"]),s=o.measureRowRender,l=d.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),ref:i,tabIndex:-1},d.createElement(Aa.Collection,{onBatchResize:function(u){q0(i.current)&&u.forEach(function(f){var m=f.data,h=f.size;n(m,h.offsetWidth)})}},r.map(function(c){var u=a.find(function(h){return h.key===c}),f=u==null?void 0:u.title,m=d.isValidElement(f)?d.cloneElement(f,{ref:null}):f;return d.createElement(r$e,{prefixCls:t,key:c,columnKey:c,onColumnResize:n,title:m})})));return s?s(l):l}function a$e(e){var t=e.data,r=e.measureColumnWidth,n=Da(fi,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),a=n.prefixCls,i=n.getComponent,o=n.onColumnResize,s=n.flattenColumns,l=n.getRowKey,c=n.expandedKeys,u=n.childrenColumnName,f=n.emptyNode,m=n.expandedRowOffset,h=m===void 0?0:m,v=n.colWidths,p=WU(t,u,c,l),g=d.useMemo(function(){return p.map(function(_){return _.rowKey})},[p]),y=d.useRef({renderWithProps:!1}),x=d.useMemo(function(){for(var _=s.length-h,T=0,I=0;I=0;c-=1){var u=t[c],f=r&&r[c],m=void 0,h=void 0;if(f&&(m=f[kh],i==="auto"&&(h=f.minWidth)),u||h||m||l){var v=m||{};v.columnType;var p=Rt(v,l$e);o.unshift(d.createElement("col",Te({key:c,style:{width:u,minWidth:h}},p))),l=!0}}return o.length>0?d.createElement("colgroup",null,o):null}var c$e=["className","noData","columns","flattenColumns","colWidths","colGroup","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","scrollX","tableLayout","onScroll","children"];function u$e(e,t){return d.useMemo(function(){for(var r=[],n=0;n1?"colgroup":"col":null,ellipsis:g.ellipsis,align:g.align,component:o,prefixCls:u,key:h[p]},y,{additionalProps:x,rowType:"header"}))}))};function m$e(e){var t=[];function r(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[l]=t[l]||[];var c=s,u=o.filter(Boolean).map(function(f){var m={key:f.key,className:f.className||"",children:f.title,column:f,colStart:c},h=1,v=f.children;return v&&v.length>0&&(h=r(v,c,l+1).reduce(function(p,g){return p+g},0),m.hasSubColumns=!0),"colSpan"in f&&(h=f.colSpan),"rowSpan"in f&&(m.rowSpan=f.rowSpan),m.colSpan=h,m.colEnd=m.colStart+h-1,t[l].push(m),c+=h,h});return u}r(e,0);for(var n=t.length,a=function(s){t[s].forEach(function(l){!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=n-s)})},i=0;i1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function p$e(e,t,r){return d.useMemo(function(){if(t&&t>0){var n=0,a=0;e.forEach(function(m){var h=ej(t,m.width);h?n+=h:a+=1});var i=Math.max(t,r),o=Math.max(i-n,a),s=a,l=o/a,c=0,u=e.map(function(m){var h=ae({},m),v=ej(t,h.width);if(v)h.width=v;else{var p=Math.floor(l);h.width=s===1?o:p,o-=p,s-=1}return c+=h.width,h});if(c0?ae(ae({},t),{},{children:XU(r)}):t})}function nO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(r){return r&&bt(r)==="object"}).reduce(function(r,n,a){var i=n.fixed,o=i===!0?"left":i,s="".concat(t,"-").concat(a),l=n.children;return l&&l.length>0?[].concat(De(r),De(nO(l,s).map(function(c){var u;return ae(ae({},c),{},{fixed:(u=c.fixed)!==null&&u!==void 0?u:o})}))):[].concat(De(r),[ae(ae({key:s},n),{},{fixed:o})])},[])}function y$e(e){return e.map(function(t){var r=t.fixed,n=Rt(t,g$e),a=r;return r==="left"?a="right":r==="right"&&(a="left"),ae({fixed:a},n)})}function x$e(e,t){var r=e.prefixCls,n=e.columns,a=e.children,i=e.expandable,o=e.expandedKeys,s=e.columnTitle,l=e.getRowKey,c=e.onTriggerExpand,u=e.expandIcon,f=e.rowExpandable,m=e.expandIconColumnIndex,h=e.expandedRowOffset,v=h===void 0?0:h,p=e.direction,g=e.expandRowByClick,y=e.columnWidth,x=e.fixed,b=e.scrollWidth,S=e.clientWidth,w=d.useMemo(function(){var k=n||aN(a)||[];return XU(k.slice())},[n,a]),E=d.useMemo(function(){if(i){var k=w.slice();if(!k.includes(uc)){var R=m||0,A=R===0&&x==="right"?w.length:R;A>=0&&k.splice(A,0,uc)}var j=k.indexOf(uc);k=k.filter(function(K,L){return K!==uc||L===j});var F=w[j],M;x?M=x:M=F?F.fixed:null;var V=ee(ee(ee(ee(ee(ee({},kh,{className:"".concat(r,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",M),"className","".concat(r,"-row-expand-icon-cell")),"width",y),"render",function(L,B,W){var H=l(B,W),U=o.has(H),X=f?f(B):!0,Y=u({prefixCls:r,expanded:U,expandable:X,record:B,onExpand:c});return g?d.createElement("span",{onClick:function(Q){return Q.stopPropagation()}},Y):Y});return k.map(function(K,L){var B=K===uc?V:K;return L=0;R-=1){var A=O[R].fixed;if(A==="left"||A===!0){k=R;break}}if(k>=0)for(var j=0;j<=k;j+=1){var F=O[j].fixed;if(F!=="left"&&F!==!0)return!0}var M=O.findIndex(function(L){var B=L.fixed;return B==="right"});if(M>=0)for(var V=M;V=j-s})})}})},D=function(R){x(function(A){return ae(ae({},A),{},{scrollLeft:f?R/f*m:0})})};return d.useImperativeHandle(r,function(){return{setScrollLeft:D,checkScrollBarVisible:N}}),d.useEffect(function(){var k=jD(document.body,"mouseup",_,!1),R=jD(document.body,"mousemove",I,!1);return N(),function(){k.remove(),R.remove()}},[h,E]),d.useEffect(function(){if(i.current){for(var k=[],R=uv(i.current);R;)k.push(R),R=R.parentElement;return k.forEach(function(A){return A.addEventListener("scroll",N,!1)}),window.addEventListener("resize",N,!1),window.addEventListener("scroll",N,!1),l.addEventListener("scroll",N,!1),function(){k.forEach(function(A){return A.removeEventListener("scroll",N)}),window.removeEventListener("resize",N),window.removeEventListener("scroll",N),l.removeEventListener("scroll",N)}}},[l]),d.useEffect(function(){y.isHiddenScrollBar||x(function(k){var R=i.current;return R?ae(ae({},k),{},{scrollLeft:R.scrollLeft/R.scrollWidth*R.clientWidth}):k})},[y.isHiddenScrollBar]),f<=m||!h||y.isHiddenScrollBar?null:d.createElement("div",{style:{height:qM(),width:m,bottom:s},className:"".concat(u,"-sticky-scroll")},d.createElement("div",{onMouseDown:T,ref:v,className:ce("".concat(u,"-sticky-scroll-bar"),ee({},"".concat(u,"-sticky-scroll-bar-active"),E)),style:{width:"".concat(h,"px"),transform:"translate3d(".concat(y.scrollLeft,"px, 0, 0)")}}))};const T$e=d.forwardRef(O$e);var YU="rc-table",P$e=[],I$e={};function N$e(){return"No Data"}function k$e(e,t){var r=ae({rowKey:"key",prefixCls:YU,emptyText:N$e},e),n=r.prefixCls,a=r.className,i=r.rowClassName,o=r.style,s=r.data,l=r.rowKey,c=r.scroll,u=r.tableLayout,f=r.direction,m=r.title,h=r.footer,v=r.summary,p=r.caption,g=r.id,y=r.showHeader,x=r.components,b=r.emptyText,S=r.onRow,w=r.onHeaderRow,E=r.measureRowRender,C=r.onScroll,O=r.internalHooks,_=r.transformColumns,T=r.internalRefs,I=r.tailor,N=r.getContainerWidth,D=r.sticky,k=r.rowHoverable,R=k===void 0?!0:k,A=s||P$e,j=!!A.length,F=O===Iv,M=d.useCallback(function(dt,$t){return yi(x,dt)||$t},[x]),V=d.useMemo(function(){return typeof l=="function"?l:function(dt){var $t=dt&&dt[l];return $t}},[l]),K=M(["body"]),L=E$e(),B=me(L,3),W=B[0],H=B[1],U=B[2],X=b$e(r,A,V),Y=me(X,6),G=Y[0],Q=Y[1],J=Y[2],z=Y[3],fe=Y[4],te=Y[5],re=c==null?void 0:c.x,q=d.useState(0),ne=me(q,2),he=ne[0],xe=ne[1],ye=x$e(ae(ae(ae({},r),G),{},{expandable:!!G.expandedRowRender,columnTitle:G.columnTitle,expandedKeys:J,getRowKey:V,onTriggerExpand:te,expandIcon:z,expandIconColumnIndex:G.expandIconColumnIndex,direction:f,scrollWidth:F&&I&&typeof re=="number"?re:null,clientWidth:he}),F?_:null),pe=me(ye,4),be=pe[0],_e=pe[1],$e=pe[2],Be=pe[3],Fe=$e??re,nt=d.useMemo(function(){return{columns:be,flattenColumns:_e}},[be,_e]),qe=d.useRef(),Ge=d.useRef(),Le=d.useRef(),Ne=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:qe.current,scrollTo:function($t){var tr;if(Le.current instanceof HTMLElement){var Sr=$t.index,nn=$t.top,Nn=$t.key;if(LEe(nn)){var hi;(hi=Le.current)===null||hi===void 0||hi.scrollTo({top:nn})}else{var Ti,Pi=Nn??V(A[Sr]);(Ti=Le.current.querySelector('[data-row-key="'.concat(Pi,'"]')))===null||Ti===void 0||Ti.scrollIntoView()}}else(tr=Le.current)!==null&&tr!==void 0&&tr.scrollTo&&Le.current.scrollTo($t)}}});var we=d.useRef(),je=d.useState(!1),Oe=me(je,2),Me=Oe[0],ge=Oe[1],Se=d.useState(!1),Re=me(Se,2),We=Re[0],at=Re[1],yt=d.useState(new Map),tt=me(yt,2),it=tt[0],ft=tt[1],lt=HS(_e),mt=lt.map(function(dt){return it.get(dt)}),Mt=d.useMemo(function(){return mt},[mt.join("_")]),Ft=_$e(Mt,_e,f),ht=c&&rO(c.y),St=c&&rO(Fe)||!!G.fixed,xt=St&&_e.some(function(dt){var $t=dt.fixed;return $t}),rt=d.useRef(),Ye=$$e(D,n),Ze=Ye.isSticky,ut=Ye.offsetHeader,Z=Ye.offsetSummary,ue=Ye.offsetScroll,le=Ye.stickyClassName,ie=Ye.container,oe=d.useMemo(function(){return v==null?void 0:v(A)},[v,A]),de=(ht||Ze)&&d.isValidElement(oe)&&oe.type===WS&&oe.props.fixed,Ce,Ae,Ee;ht&&(Ae={overflowY:j?"scroll":"auto",maxHeight:c.y}),St&&(Ce={overflowX:"auto"},ht||(Ae={overflowY:"hidden"}),Ee={width:Fe===!0?"auto":Fe,minWidth:"100%"});var Ie=d.useCallback(function(dt,$t){ft(function(tr){if(tr.get(dt)!==$t){var Sr=new Map(tr);return Sr.set(dt,$t),Sr}return tr})},[]),Pe=C$e(null),Xe=me(Pe,2),ke=Xe[0],ze=Xe[1];function He(dt,$t){$t&&(typeof $t=="function"?$t(dt):$t.scrollLeft!==dt&&($t.scrollLeft=dt,$t.scrollLeft!==dt&&setTimeout(function(){$t.scrollLeft=dt},0)))}var Ve=qt(function(dt){var $t=dt.currentTarget,tr=dt.scrollLeft,Sr=f==="rtl",nn=typeof tr=="number"?tr:$t.scrollLeft,Nn=$t||I$e;if(!ze()||ze()===Nn){var hi;ke(Nn),He(nn,Ge.current),He(nn,Le.current),He(nn,we.current),He(nn,(hi=rt.current)===null||hi===void 0?void 0:hi.setScrollLeft)}var Ti=$t||Ge.current;if(Ti){var Pi=F&&I&&typeof Fe=="number"?Fe:Ti.scrollWidth,As=Ti.clientWidth;if(Pi===As){ge(!1),at(!1);return}Sr?(ge(-nn0)):(ge(nn>0),at(nn1?g-k:0,A=ae(ae(ae({},O),c),{},{flex:"0 0 ".concat(k,"px"),width:"".concat(k,"px"),marginRight:R,pointerEvents:"auto"}),j=d.useMemo(function(){return f?N<=1:T===0||N===0||N>1},[N,T,f]);j?A.visibility="hidden":f&&(A.height=m==null?void 0:m(N));var F=j?function(){return null}:h,M={};return(N===0||T===0)&&(M.rowSpan=1,M.colSpan=1),d.createElement(cm,Te({className:ce(p,u),ellipsis:r.ellipsis,align:r.align,scope:r.rowScope,component:o,prefixCls:t.prefixCls,key:S,record:l,index:i,renderIndex:s,dataIndex:v,render:F,shouldCellUpdate:r.shouldCellUpdate},w,{appendNode:E,additionalProps:ae(ae({},C),{},{style:A},M)}))}var D$e=["data","index","className","rowKey","style","extra","getHeight"],j$e=d.forwardRef(function(e,t){var r=e.data,n=e.index,a=e.className,i=e.rowKey,o=e.style,s=e.extra,l=e.getHeight,c=Rt(e,D$e),u=r.record,f=r.indent,m=r.index,h=Da(fi,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),v=h.scrollX,p=h.flattenColumns,g=h.prefixCls,y=h.fixColumn,x=h.componentWidth,b=Da(iN,["getComponent"]),S=b.getComponent,w=VU(u,i,n,f),E=S(["body","row"],"div"),C=S(["body","cell"],"div"),O=w.rowSupportExpand,_=w.expanded,T=w.rowProps,I=w.expandedRowRender,N=w.expandedRowClassName,D;if(O&&_){var k=I(u,n,f+1,_),R=KU(N,u,n,f),A={};y&&(A={style:ee({},"--virtual-width","".concat(x,"px"))});var j="".concat(g,"-expanded-row-cell");D=d.createElement(E,{className:ce("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(f+1),R)},d.createElement(cm,{component:C,prefixCls:g,className:ce(j,ee({},"".concat(j,"-fixed"),y)),additionalProps:A},k))}var F=ae(ae({},o),{},{width:v});s&&(F.position="absolute",F.pointerEvents="none");var M=d.createElement(E,Te({},T,c,{"data-row-key":i,ref:O?null:t,className:ce(a,"".concat(g,"-row"),T==null?void 0:T.className,ee({},"".concat(g,"-row-extra"),s)),style:ae(ae({},F),T==null?void 0:T.style)}),p.map(function(V,K){return d.createElement(M$e,{key:K,component:C,rowInfo:w,column:V,colIndex:K,indent:f,index:n,renderIndex:m,record:u,inverse:s,getHeight:l})}));return O?d.createElement("div",{ref:t},M,D):M}),aj=lm(j$e),F$e=d.forwardRef(function(e,t){var r=e.data,n=e.onScroll,a=Da(fi,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),i=a.flattenColumns,o=a.onColumnResize,s=a.getRowKey,l=a.expandedKeys,c=a.prefixCls,u=a.childrenColumnName,f=a.scrollX,m=a.direction,h=Da(iN),v=h.sticky,p=h.scrollY,g=h.listItemHeight,y=h.getComponent,x=h.onScroll,b=d.useRef(),S=WU(r,u,l,s),w=d.useMemo(function(){var D=0;return i.map(function(k){var R=k.width,A=k.minWidth,j=k.key,F=Math.max(R||0,A||0);return D+=F,[j,F,D]})},[i]),E=d.useMemo(function(){return w.map(function(D){return D[2]})},[w]);d.useEffect(function(){w.forEach(function(D){var k=me(D,2),R=k[0],A=k[1];o(R,A)})},[w]),d.useImperativeHandle(t,function(){var D,k={scrollTo:function(A){var j;(j=b.current)===null||j===void 0||j.scrollTo(A)},nativeElement:(D=b.current)===null||D===void 0?void 0:D.nativeElement};return Object.defineProperty(k,"scrollLeft",{get:function(){var A;return((A=b.current)===null||A===void 0?void 0:A.getScrollInfo().x)||0},set:function(A){var j;(j=b.current)===null||j===void 0||j.scrollTo({left:A})}}),Object.defineProperty(k,"scrollTop",{get:function(){var A;return((A=b.current)===null||A===void 0?void 0:A.getScrollInfo().y)||0},set:function(A){var j;(j=b.current)===null||j===void 0||j.scrollTo({top:A})}}),k});var C=function(k,R){var A,j=(A=S[R])===null||A===void 0?void 0:A.record,F=k.onCell;if(F){var M,V=F(j,R);return(M=V==null?void 0:V.rowSpan)!==null&&M!==void 0?M:1}return 1},O=function(k){var R=k.start,A=k.end,j=k.getSize,F=k.offsetY;if(A<0)return null;for(var M=i.filter(function(J){return C(J,R)===0}),V=R,K=function(z){if(M=M.filter(function(fe){return C(fe,z)===0}),!M.length)return V=z,1},L=R;L>=0&&!K(L);L-=1);for(var B=i.filter(function(J){return C(J,A)!==1}),W=A,H=function(z){if(B=B.filter(function(fe){return C(fe,z)!==1}),!B.length)return W=Math.max(z-1,A),1},U=A;U1})&&X.push(z)},G=V;G<=W;G+=1)Y(G);var Q=X.map(function(J){var z=S[J],fe=s(z.record,J),te=function(ne){var he=J+ne-1,xe=s(S[he].record,he),ye=j(fe,xe);return ye.bottom-ye.top},re=j(fe);return d.createElement(aj,{key:J,data:z,rowKey:fe,index:J,style:{top:-F+re.top},extra:!0,getHeight:te})});return Q},_=d.useMemo(function(){return{columnsOffset:E}},[E]),T="".concat(c,"-tbody"),I=y(["body","wrapper"]),N={};return v&&(N.position="sticky",N.bottom=0,bt(v)==="object"&&v.offsetScroll&&(N.bottom=v.offsetScroll)),d.createElement(ZU.Provider,{value:_},d.createElement(wS,{fullHeight:!1,ref:b,prefixCls:"".concat(T,"-virtual"),styles:{horizontalScrollBar:N},className:T,height:p,itemHeight:g||24,data:S,itemKey:function(k){return s(k.record)},component:I,scrollWidth:f,direction:m,onVirtualScroll:function(k){var R,A=k.x;n({currentTarget:(R=b.current)===null||R===void 0?void 0:R.nativeElement,scrollLeft:A})},onScroll:x,extraRender:O},function(D,k,R){var A=s(D.record,k);return d.createElement(aj,{data:D,rowKey:A,index:k,style:R.style})}))}),L$e=lm(F$e),B$e=function(t,r){var n=r.ref,a=r.onScroll;return d.createElement(L$e,{ref:n,data:t,onScroll:a})};function z$e(e,t){var r=e.data,n=e.columns,a=e.scroll,i=e.sticky,o=e.prefixCls,s=o===void 0?YU:o,l=e.className,c=e.listItemHeight,u=e.components,f=e.onScroll,m=a||{},h=m.x,v=m.y;typeof h!="number"&&(h=1),typeof v!="number"&&(v=500);var p=qt(function(x,b){return yi(u,x)||b}),g=qt(f),y=d.useMemo(function(){return{sticky:i,scrollY:v,listItemHeight:c,getComponent:p,onScroll:g}},[i,v,c,p,g]);return d.createElement(iN.Provider,{value:y},d.createElement(um,Te({},e,{className:ce(l,"".concat(s,"-virtual")),scroll:ae(ae({},a),{},{x:h}),components:ae(ae({},u),{},{body:r!=null&&r.length?B$e:void 0}),columns:n,internalHooks:Iv,tailor:!0,ref:t})))}var H$e=d.forwardRef(z$e);function JU(e){return FU(H$e,e)}JU();const W$e=e=>null,V$e=W$e,U$e=e=>null,K$e=U$e;var oN=d.createContext(null),G$e=d.createContext({}),q$e=function(t){for(var r=t.prefixCls,n=t.level,a=t.isStart,i=t.isEnd,o="".concat(r,"-indent-unit"),s=[],l=0;l=0&&r.splice(n,1),r}function fl(e,t){var r=(e||[]).slice();return r.indexOf(t)===-1&&r.push(t),r}function sN(e){return e.split("-")}function Z$e(e,t){var r=[],n=ki(t,e);function a(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(o){var s=o.key,l=o.children;r.push(s),a(l)})}return a(n.children),r}function J$e(e){if(e.parent){var t=sN(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function e_e(e){var t=sN(e.pos);return Number(t[t.length-1])===0}function sj(e,t,r,n,a,i,o,s,l,c){var u,f=e.clientX,m=e.clientY,h=e.target.getBoundingClientRect(),v=h.top,p=h.height,g=(c==="rtl"?-1:1)*(((a==null?void 0:a.x)||0)-f),y=(g-12)/n,x=l.filter(function(A){var j;return(j=s[A])===null||j===void 0||(j=j.children)===null||j===void 0?void 0:j.length}),b=ki(s,r.eventKey);if(m-1.5?i({dragNode:D,dropNode:k,dropPosition:1})?T=1:R=!1:i({dragNode:D,dropNode:k,dropPosition:0})?T=0:i({dragNode:D,dropNode:k,dropPosition:1})?T=1:R=!1:i({dragNode:D,dropNode:k,dropPosition:1})?T=1:R=!1,{dropPosition:T,dropLevelOffset:I,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:_,dropContainerKey:T===0?null:((u=b.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:R}}function lj(e,t){if(e){var r=t.multiple;return r?e.slice():e.length?[e[0]]:e}}function z2(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(bt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Br(!1,"`checkedKeys` is not an array or an object"),null;return t}function aO(e,t){var r=new Set;function n(a){if(!r.has(a)){var i=ki(t,a);if(i){r.add(a);var o=i.parent,s=i.node;s.disabled||o&&n(o.key)}}}return(e||[]).forEach(function(a){n(a)}),De(r)}const oc={},iO="SELECT_ALL",oO="SELECT_INVERT",sO="SELECT_NONE",cj=[],eK=(e,t,r=[])=>((t||[]).forEach(n=>{r.push(n),n&&typeof n=="object"&&e in n&&eK(e,n[e],r)}),r),t_e=(e,t)=>{const{preserveSelectedRowKeys:r,selectedRowKeys:n,defaultSelectedRowKeys:a,getCheckboxProps:i,getTitleCheckboxProps:o,onChange:s,onSelect:l,onSelectAll:c,onSelectInvert:u,onSelectNone:f,onSelectMultiple:m,columnWidth:h,type:v,selections:p,fixed:g,renderCell:y,hideSelectAll:x,checkStrictly:b=!0}=t||{},{prefixCls:S,data:w,pageData:E,getRecordByKey:C,getRowKey:O,expandType:_,childrenColumnName:T,locale:I,getPopupContainer:N}=e,D=lu(),[k,R]=Dle(z=>z),[A,j]=br(n||a||cj,{value:n}),F=d.useRef(new Map),M=d.useCallback(z=>{if(r){const fe=new Map;z.forEach(te=>{let re=C(te);!re&&F.current.has(te)&&(re=F.current.get(te)),fe.set(te,re)}),F.current=fe}},[C,r]);d.useEffect(()=>{M(A)},[A]);const V=d.useMemo(()=>eK(T,E),[T,E]),{keyEntities:K}=d.useMemo(()=>{if(b)return{keyEntities:null};let z=w;if(r){const fe=new Set(V.map((re,q)=>O(re,q))),te=Array.from(F.current).reduce((re,[q,ne])=>fe.has(q)?re:re.concat(ne),[]);z=[].concat(De(z),De(te))}return LI(z,{externalGetKey:O,childrenPropName:T})},[w,O,b,T,r,V]),L=d.useMemo(()=>{const z=new Map;return V.forEach((fe,te)=>{const re=O(fe,te),q=(i?i(fe):null)||{};z.set(re,q)}),z},[V,O,i]),B=d.useCallback(z=>{const fe=O(z);let te;return L.has(fe)?te=L.get(O(z)):te=i?i(z):void 0,!!(te!=null&&te.disabled)},[L,O]),[W,H]=d.useMemo(()=>{if(b)return[A||[],[]];const{checkedKeys:z,halfCheckedKeys:fe}=Jf(A,!0,K,B);return[z||[],fe]},[A,b,K,B]),U=d.useMemo(()=>{const z=v==="radio"?W.slice(0,1):W;return new Set(z)},[W,v]),X=d.useMemo(()=>v==="radio"?new Set:new Set(H),[H,v]);d.useEffect(()=>{t||j(cj)},[!!t]);const Y=d.useCallback((z,fe)=>{let te,re;M(z),r?(te=z,re=z.map(q=>F.current.get(q))):(te=[],re=[],z.forEach(q=>{const ne=C(q);ne!==void 0&&(te.push(q),re.push(ne))})),j(te),s==null||s(te,re,{type:fe})},[j,C,s,r]),G=d.useCallback((z,fe,te,re)=>{if(l){const q=te.map(ne=>C(ne));l(C(z),fe,q,re)}Y(te,"single")},[l,C,Y]),Q=d.useMemo(()=>!p||x?null:(p===!0?[iO,oO,sO]:p).map(fe=>fe===iO?{key:"all",text:I.selectionAll,onSelect(){Y(w.map((te,re)=>O(te,re)).filter(te=>{const re=L.get(te);return!(re!=null&&re.disabled)||U.has(te)}),"all")}}:fe===oO?{key:"invert",text:I.selectInvert,onSelect(){const te=new Set(U);E.forEach((q,ne)=>{const he=O(q,ne),xe=L.get(he);xe!=null&&xe.disabled||(te.has(he)?te.delete(he):te.add(he))});const re=Array.from(te);u&&(D.deprecated(!1,"onSelectInvert","onChange"),u(re)),Y(re,"invert")}}:fe===sO?{key:"none",text:I.selectNone,onSelect(){f==null||f(),Y(Array.from(U).filter(te=>{const re=L.get(te);return re==null?void 0:re.disabled}),"none")}}:fe).map(fe=>Object.assign(Object.assign({},fe),{onSelect:(...te)=>{var re,q;(q=fe.onSelect)===null||q===void 0||(re=q).call.apply(re,[fe].concat(te)),R(null)}})),[p,U,E,O,u,Y]);return[d.useCallback(z=>{var fe;if(!t)return z.filter(Ne=>Ne!==oc);let te=De(z);const re=new Set(U),q=V.map(O).filter(Ne=>!L.get(Ne).disabled),ne=q.every(Ne=>re.has(Ne)),he=q.some(Ne=>re.has(Ne)),xe=()=>{const Ne=[];ne?q.forEach(je=>{re.delete(je),Ne.push(je)}):q.forEach(je=>{re.has(je)||(re.add(je),Ne.push(je))});const we=Array.from(re);c==null||c(!ne,we.map(je=>C(je)),Ne.map(je=>C(je))),Y(we,"all"),R(null)};let ye,pe;if(v!=="radio"){let Ne;if(Q){const We={getPopupContainer:N,items:Q.map((at,yt)=>{const{key:tt,text:it,onSelect:ft}=at;return{key:tt??yt,onClick:()=>{ft==null||ft(q)},label:it}})};Ne=d.createElement("div",{className:`${S}-selection-extra`},d.createElement(XI,{menu:We,getPopupContainer:N},d.createElement("span",null,d.createElement(cI,null))))}const we=V.map((We,at)=>{const yt=O(We,at),tt=L.get(yt)||{};return Object.assign({checked:re.has(yt)},tt)}).filter(({disabled:We})=>We),je=!!we.length&&we.length===V.length,Oe=je&&we.every(({checked:We})=>We),Me=je&&we.some(({checked:We})=>We),ge=(o==null?void 0:o())||{},{onChange:Se,disabled:Re}=ge;pe=d.createElement(Sp,Object.assign({"aria-label":Ne?"Custom selection":"Select all"},ge,{checked:je?Oe:!!V.length&&ne,indeterminate:je?!Oe&&Me:!ne&&he,onChange:We=>{xe(),Se==null||Se(We)},disabled:Re??(V.length===0||je),skipGroup:!0})),ye=!x&&d.createElement("div",{className:`${S}-selection`},pe,Ne)}let be;v==="radio"?be=(Ne,we,je)=>{const Oe=O(we,je),Me=re.has(Oe),ge=L.get(Oe);return{node:d.createElement(Gs,Object.assign({},ge,{checked:Me,onClick:Se=>{var Re;Se.stopPropagation(),(Re=ge==null?void 0:ge.onClick)===null||Re===void 0||Re.call(ge,Se)},onChange:Se=>{var Re;re.has(Oe)||G(Oe,!0,[Oe],Se.nativeEvent),(Re=ge==null?void 0:ge.onChange)===null||Re===void 0||Re.call(ge,Se)}})),checked:Me}}:be=(Ne,we,je)=>{var Oe;const Me=O(we,je),ge=re.has(Me),Se=X.has(Me),Re=L.get(Me);let We;return _==="nest"?We=Se:We=(Oe=Re==null?void 0:Re.indeterminate)!==null&&Oe!==void 0?Oe:Se,{node:d.createElement(Sp,Object.assign({},Re,{indeterminate:We,checked:ge,skipGroup:!0,onClick:at=>{var yt;at.stopPropagation(),(yt=Re==null?void 0:Re.onClick)===null||yt===void 0||yt.call(Re,at)},onChange:at=>{var yt;const{nativeEvent:tt}=at,{shiftKey:it}=tt,ft=q.indexOf(Me),lt=W.some(mt=>q.includes(mt));if(it&&b&<){const mt=k(ft,q,re),Mt=Array.from(re);m==null||m(!ge,Mt.map(Ft=>C(Ft)),mt.map(Ft=>C(Ft))),Y(Mt,"multiple")}else{const mt=W;if(b){const Mt=ge?Bs(mt,Me):fl(mt,Me);G(Me,!ge,Mt,tt)}else{const Mt=Jf([].concat(De(mt),[Me]),!0,K,B),{checkedKeys:Ft,halfCheckedKeys:ht}=Mt;let St=Ft;if(ge){const xt=new Set(Ft);xt.delete(Me),St=Jf(Array.from(xt),{checked:!1,halfCheckedKeys:ht},K,B).checkedKeys}G(Me,!ge,St,tt)}}R(ge?null:ft),(yt=Re==null?void 0:Re.onChange)===null||yt===void 0||yt.call(Re,at)}})),checked:ge}};const _e=(Ne,we,je)=>{const{node:Oe,checked:Me}=be(Ne,we,je);return y?y(Me,we,je,Oe):Oe};if(!te.includes(oc))if(te.findIndex(Ne=>{var we;return((we=Ne[kh])===null||we===void 0?void 0:we.columnType)==="EXPAND_COLUMN"})===0){const[Ne,...we]=te;te=[Ne,oc].concat(De(we))}else te=[oc].concat(De(te));const $e=te.indexOf(oc);te=te.filter((Ne,we)=>Ne!==oc||we===$e);const Be=te[$e-1],Fe=te[$e+1];let nt=g;nt===void 0&&((Fe==null?void 0:Fe.fixed)!==void 0?nt=Fe.fixed:(Be==null?void 0:Be.fixed)!==void 0&&(nt=Be.fixed)),nt&&Be&&((fe=Be[kh])===null||fe===void 0?void 0:fe.columnType)==="EXPAND_COLUMN"&&Be.fixed===void 0&&(Be.fixed=nt);const qe=ce(`${S}-selection-col`,{[`${S}-selection-col-with-dropdown`]:p&&v==="checkbox"}),Ge=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(pe):t.columnTitle:ye,Le={fixed:nt,width:h,className:`${S}-selection-column`,title:Ge(),render:_e,onCell:t.onCell,align:t.align,[kh]:{className:qe}};return te.map(Ne=>Ne===oc?Le:Ne)},[O,V,t,W,U,X,h,Q,_,L,m,G,B]),U]};function r_e(e){return t=>{const{prefixCls:r,onExpand:n,record:a,expanded:i,expandable:o}=t,s=`${r}-row-expand-icon`;return d.createElement("button",{type:"button",onClick:l=>{n(a,l),l.stopPropagation()},className:ce(s,{[`${s}-spaced`]:!o,[`${s}-expanded`]:o&&i,[`${s}-collapsed`]:o&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}}function n_e(e){return(r,n)=>{const a=r.querySelector(`.${e}-container`);let i=n;if(a){const o=getComputedStyle(a),s=Number.parseInt(o.borderLeftWidth,10),l=Number.parseInt(o.borderRightWidth,10);i=n-s-l}return i}}const Kc=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function dm(e,t){return t?`${t}-${e}`:`${e}`}const VS=(e,t)=>typeof e=="function"?e(t):e,a_e=(e,t)=>{const r=VS(e,t);return Object.prototype.toString.call(r)==="[object Object]"?"":r};var i_e={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"};const o_e=i_e;var s_e=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:o_e}))},l_e=d.forwardRef(s_e);const c_e=l_e;var u_e=function(t){var r=t.dropPosition,n=t.dropLevelOffset,a=t.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(r){case-1:i.top=0,i.left=-n*a;break;case 1:i.bottom=0,i.left=-n*a;break;case 0:i.bottom=0,i.left=a;break}return ve.createElement("div",{style:i})};function tK(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function d_e(e,t){var r=d.useState(!1),n=me(r,2),a=n[0],i=n[1];Gt(function(){if(a)return e(),function(){t()}},[a]),Gt(function(){return i(!0),function(){i(!1)}},[])}var f_e=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],m_e=d.forwardRef(function(e,t){var r=e.className,n=e.style,a=e.motion,i=e.motionNodes,o=e.motionType,s=e.onMotionStart,l=e.onMotionEnd,c=e.active,u=e.treeNodeRequiredProps,f=Rt(e,f_e),m=d.useState(!0),h=me(m,2),v=h[0],p=h[1],g=d.useContext(oN),y=g.prefixCls,x=i&&o!=="hide";Gt(function(){i&&x!==v&&p(x)},[i]);var b=function(){i&&s()},S=d.useRef(!1),w=function(){i&&!S.current&&(S.current=!0,l())};d_e(b,w);var E=function(O){x===O&&w()};return i?d.createElement(Vi,Te({ref:t,visible:v},a,{motionAppear:o==="show",onVisibleChanged:E}),function(C,O){var _=C.className,T=C.style;return d.createElement("div",{ref:O,className:ce("".concat(y,"-treenode-motion"),_),style:T},i.map(function(I){var N=Object.assign({},(tK(I.data),I.data)),D=I.title,k=I.key,R=I.isStart,A=I.isEnd;delete N.children;var j=Ih(k,u);return d.createElement($p,Te({},N,j,{title:D,active:c,data:I.data,key:k,isStart:R,isEnd:A}))}))}):d.createElement($p,Te({domRef:t,className:r,style:n},f,{active:c}))});function h_e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=e.length,n=t.length;if(Math.abs(r-n)!==1)return{add:!1,key:null};function a(i,o){var s=new Map;i.forEach(function(c){s.set(c,!0)});var l=o.filter(function(c){return!s.has(c)});return l.length===1?l[0]:null}return r ").concat(t);return t}var y_e=d.forwardRef(function(e,t){var r=e.prefixCls,n=e.data;e.selectable,e.checkable;var a=e.expandedKeys,i=e.selectedKeys,o=e.checkedKeys,s=e.loadedKeys,l=e.loadingKeys,c=e.halfCheckedKeys,u=e.keyEntities,f=e.disabled,m=e.dragging,h=e.dragOverNodeKey,v=e.dropPosition,p=e.motion,g=e.height,y=e.itemHeight,x=e.virtual,b=e.scrollWidth,S=e.focusable,w=e.activeItem,E=e.focused,C=e.tabIndex,O=e.onKeyDown,_=e.onFocus,T=e.onBlur,I=e.onActiveChange,N=e.onListChangeStart,D=e.onListChangeEnd,k=Rt(e,p_e),R=d.useRef(null),A=d.useRef(null);d.useImperativeHandle(t,function(){return{scrollTo:function(be){R.current.scrollTo(be)},getIndentWidth:function(){return A.current.offsetWidth}}});var j=d.useState(a),F=me(j,2),M=F[0],V=F[1],K=d.useState(n),L=me(K,2),B=L[0],W=L[1],H=d.useState(n),U=me(H,2),X=U[0],Y=U[1],G=d.useState([]),Q=me(G,2),J=Q[0],z=Q[1],fe=d.useState(null),te=me(fe,2),re=te[0],q=te[1],ne=d.useRef(n);ne.current=n;function he(){var pe=ne.current;W(pe),Y(pe),z([]),q(null),D()}Gt(function(){V(a);var pe=h_e(M,a);if(pe.key!==null)if(pe.add){var be=B.findIndex(function(qe){var Ge=qe.key;return Ge===pe.key}),_e=mj(uj(B,n,pe.key),x,g,y),$e=B.slice();$e.splice(be+1,0,fj),Y($e),z(_e),q("show")}else{var Be=n.findIndex(function(qe){var Ge=qe.key;return Ge===pe.key}),Fe=mj(uj(n,B,pe.key),x,g,y),nt=n.slice();nt.splice(Be+1,0,fj),Y(nt),z(Fe),q("hide")}else B!==n&&(W(n),Y(n))},[a,n]),d.useEffect(function(){m||he()},[m]);var xe=p?X:n,ye={expandedKeys:a,selectedKeys:i,loadedKeys:s,loadingKeys:l,checkedKeys:o,halfCheckedKeys:c,dragOverNodeKey:h,dropPosition:v,keyEntities:u};return d.createElement(d.Fragment,null,E&&w&&d.createElement("span",{style:dj,"aria-live":"assertive"},g_e(w)),d.createElement("div",null,d.createElement("input",{style:dj,disabled:S===!1||f,tabIndex:S!==!1?C:null,onKeyDown:O,onFocus:_,onBlur:T,value:"",onChange:v_e,"aria-label":"for screen reader"})),d.createElement("div",{className:"".concat(r,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},d.createElement("div",{className:"".concat(r,"-indent")},d.createElement("div",{ref:A,className:"".concat(r,"-indent-unit")}))),d.createElement(wS,Te({},k,{data:xe,itemKey:hj,height:g,fullHeight:!1,virtual:x,itemHeight:y,scrollWidth:b,prefixCls:"".concat(r,"-list"),ref:R,role:"tree",onVisibleChange:function(be){be.every(function(_e){return hj(_e)!==yd})&&he()}}),function(pe){var be=pe.pos,_e=Object.assign({},(tK(pe.data),pe.data)),$e=pe.title,Be=pe.key,Fe=pe.isStart,nt=pe.isEnd,qe=Ov(Be,be);delete _e.key,delete _e.children;var Ge=Ih(qe,ye);return d.createElement(m_e,Te({},_e,Ge,{title:$e,active:!!w&&Be===w.key,pos:be,data:pe.data,isStart:Fe,isEnd:nt,motion:p,motionNodes:Be===yd?J:null,motionType:re,onMotionStart:N,onMotionEnd:he,treeNodeRequiredProps:ye,onMouseMove:function(){I(null)}}))}))}),x_e=10,lN=function(e){yo(r,e);var t=Qo(r);function r(){var n;Wr(this,r);for(var a=arguments.length,i=new Array(a),o=0;o2&&arguments[2]!==void 0?arguments[2]:!1,f=n.state,m=f.dragChildrenKeys,h=f.dropPosition,v=f.dropTargetKey,p=f.dropTargetPos,g=f.dropAllowed;if(g){var y=n.props.onDrop;if(n.setState({dragOverNodeKey:null}),n.cleanDragState(),v!==null){var x=ae(ae({},Ih(v,n.getTreeNodeRequiredProps())),{},{active:((c=n.getActiveItem())===null||c===void 0?void 0:c.key)===v,data:ki(n.state.keyEntities,v).node}),b=m.includes(v);Br(!b,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var S=sN(p),w={event:s,node:Qn(x),dragNode:n.dragNodeProps?Qn(n.dragNodeProps):null,dragNodesKeys:[n.dragNodeProps.eventKey].concat(m),dropToGap:h!==0,dropPosition:h+Number(S[S.length-1])};u||y==null||y(w),n.dragNodeProps=null}}}),ee(vt(n),"cleanDragState",function(){var s=n.state.draggingNodeKey;s!==null&&n.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),n.dragStartMousePosition=null,n.currentMouseOverDroppableNodeKey=null}),ee(vt(n),"triggerExpandActionExpand",function(s,l){var c=n.state,u=c.expandedKeys,f=c.flattenNodes,m=l.expanded,h=l.key,v=l.isLeaf;if(!(v||s.shiftKey||s.metaKey||s.ctrlKey)){var p=f.filter(function(y){return y.key===h})[0],g=Qn(ae(ae({},Ih(h,n.getTreeNodeRequiredProps())),{},{data:p.data}));n.setExpandedKeys(m?Bs(u,h):fl(u,h)),n.onNodeExpand(s,g)}}),ee(vt(n),"onNodeClick",function(s,l){var c=n.props,u=c.onClick,f=c.expandAction;f==="click"&&n.triggerExpandActionExpand(s,l),u==null||u(s,l)}),ee(vt(n),"onNodeDoubleClick",function(s,l){var c=n.props,u=c.onDoubleClick,f=c.expandAction;f==="doubleClick"&&n.triggerExpandActionExpand(s,l),u==null||u(s,l)}),ee(vt(n),"onNodeSelect",function(s,l){var c=n.state.selectedKeys,u=n.state,f=u.keyEntities,m=u.fieldNames,h=n.props,v=h.onSelect,p=h.multiple,g=l.selected,y=l[m.key],x=!g;x?p?c=fl(c,y):c=[y]:c=Bs(c,y);var b=c.map(function(S){var w=ki(f,S);return w?w.node:null}).filter(Boolean);n.setUncontrolledState({selectedKeys:c}),v==null||v(c,{event:"select",selected:x,node:l,selectedNodes:b,nativeEvent:s.nativeEvent})}),ee(vt(n),"onNodeCheck",function(s,l,c){var u=n.state,f=u.keyEntities,m=u.checkedKeys,h=u.halfCheckedKeys,v=n.props,p=v.checkStrictly,g=v.onCheck,y=l.key,x,b={event:"check",node:l,checked:c,nativeEvent:s.nativeEvent};if(p){var S=c?fl(m,y):Bs(m,y),w=Bs(h,y);x={checked:S,halfChecked:w},b.checkedNodes=S.map(function(I){return ki(f,I)}).filter(Boolean).map(function(I){return I.node}),n.setUncontrolledState({checkedKeys:S})}else{var E=Jf([].concat(De(m),[y]),!0,f),C=E.checkedKeys,O=E.halfCheckedKeys;if(!c){var _=new Set(C);_.delete(y);var T=Jf(Array.from(_),{checked:!1,halfCheckedKeys:O},f);C=T.checkedKeys,O=T.halfCheckedKeys}x=C,b.checkedNodes=[],b.checkedNodesPositions=[],b.halfCheckedKeys=O,C.forEach(function(I){var N=ki(f,I);if(N){var D=N.node,k=N.pos;b.checkedNodes.push(D),b.checkedNodesPositions.push({node:D,pos:k})}}),n.setUncontrolledState({checkedKeys:C},!1,{halfCheckedKeys:O})}g==null||g(x,b)}),ee(vt(n),"onNodeLoad",function(s){var l,c=s.key,u=n.state.keyEntities,f=ki(u,c);if(!(f!=null&&(l=f.children)!==null&&l!==void 0&&l.length)){var m=new Promise(function(h,v){n.setState(function(p){var g=p.loadedKeys,y=g===void 0?[]:g,x=p.loadingKeys,b=x===void 0?[]:x,S=n.props,w=S.loadData,E=S.onLoad;if(!w||y.includes(c)||b.includes(c))return null;var C=w(s);return C.then(function(){var O=n.state.loadedKeys,_=fl(O,c);E==null||E(_,{event:"load",node:s}),n.setUncontrolledState({loadedKeys:_}),n.setState(function(T){return{loadingKeys:Bs(T.loadingKeys,c)}}),h()}).catch(function(O){if(n.setState(function(T){return{loadingKeys:Bs(T.loadingKeys,c)}}),n.loadingRetryTimes[c]=(n.loadingRetryTimes[c]||0)+1,n.loadingRetryTimes[c]>=x_e){var _=n.state.loadedKeys;Br(!1,"Retry for `loadData` many times but still failed. No more retry."),n.setUncontrolledState({loadedKeys:fl(_,c)}),h()}v(O)}),{loadingKeys:fl(b,c)}})});return m.catch(function(){}),m}}),ee(vt(n),"onNodeMouseEnter",function(s,l){var c=n.props.onMouseEnter;c==null||c({event:s,node:l})}),ee(vt(n),"onNodeMouseLeave",function(s,l){var c=n.props.onMouseLeave;c==null||c({event:s,node:l})}),ee(vt(n),"onNodeContextMenu",function(s,l){var c=n.props.onRightClick;c&&(s.preventDefault(),c({event:s,node:l}))}),ee(vt(n),"onFocus",function(){var s=n.props.onFocus;n.setState({focused:!0});for(var l=arguments.length,c=new Array(l),u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!n.destroyed){var u=!1,f=!0,m={};Object.keys(s).forEach(function(h){if(n.props.hasOwnProperty(h)){f=!1;return}u=!0,m[h]=s[h]}),u&&(!l||f)&&n.setState(ae(ae({},m),c))}}),ee(vt(n),"scrollTo",function(s){n.listRef.current.scrollTo(s)}),n}return Vr(r,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var a=this.props,i=a.activeKey,o=a.itemScrollOffset,s=o===void 0?0:o;i!==void 0&&i!==this.state.activeKey&&(this.setState({activeKey:i}),i!==null&&this.scrollTo({key:i,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var a=this.state,i=a.focused,o=a.flattenNodes,s=a.keyEntities,l=a.draggingNodeKey,c=a.activeKey,u=a.dropLevelOffset,f=a.dropContainerKey,m=a.dropTargetKey,h=a.dropPosition,v=a.dragOverNodeKey,p=a.indent,g=this.props,y=g.prefixCls,x=g.className,b=g.style,S=g.showLine,w=g.focusable,E=g.tabIndex,C=E===void 0?0:E,O=g.selectable,_=g.showIcon,T=g.icon,I=g.switcherIcon,N=g.draggable,D=g.checkable,k=g.checkStrictly,R=g.disabled,A=g.motion,j=g.loadData,F=g.filterTreeNode,M=g.height,V=g.itemHeight,K=g.scrollWidth,L=g.virtual,B=g.titleRender,W=g.dropIndicatorRender,H=g.onContextMenu,U=g.onScroll,X=g.direction,Y=g.rootClassName,G=g.rootStyle,Q=Dn(this.props,{aria:!0,data:!0}),J;N&&(bt(N)==="object"?J=N:typeof N=="function"?J={nodeDraggable:N}:J={});var z={prefixCls:y,selectable:O,showIcon:_,icon:T,switcherIcon:I,draggable:J,draggingNodeKey:l,checkable:D,checkStrictly:k,disabled:R,keyEntities:s,dropLevelOffset:u,dropContainerKey:f,dropTargetKey:m,dropPosition:h,dragOverNodeKey:v,indent:p,direction:X,dropIndicatorRender:W,loadData:j,filterTreeNode:F,titleRender:B,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return d.createElement(oN.Provider,{value:z},d.createElement("div",{className:ce(y,x,Y,ee(ee(ee({},"".concat(y,"-show-line"),S),"".concat(y,"-focused"),i),"".concat(y,"-active-focused"),c!==null)),style:G},d.createElement(y_e,Te({ref:this.listRef,prefixCls:y,style:b,data:o,disabled:R,selectable:O,checkable:!!D,motion:A,dragging:l!==null,height:M,itemHeight:V,virtual:L,focusable:w,focused:i,tabIndex:C,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:H,onScroll:U,scrollWidth:K},this.getTreeNodeRequiredProps(),Q))))}}],[{key:"getDerivedStateFromProps",value:function(a,i){var o=i.prevProps,s={prevProps:a};function l(C){return!o&&a.hasOwnProperty(C)||o&&o[C]!==a[C]}var c,u=i.fieldNames;if(l("fieldNames")&&(u=S0(a.fieldNames),s.fieldNames=u),l("treeData")?c=a.treeData:l("children")&&(Br(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=qV(a.children)),c){s.treeData=c;var f=LI(c,{fieldNames:u});s.keyEntities=ae(ee({},yd,rK),f.keyEntities)}var m=s.keyEntities||i.keyEntities;if(l("expandedKeys")||o&&l("autoExpandParent"))s.expandedKeys=a.autoExpandParent||!o&&a.defaultExpandParent?aO(a.expandedKeys,m):a.expandedKeys;else if(!o&&a.defaultExpandAll){var h=ae({},m);delete h[yd];var v=[];Object.keys(h).forEach(function(C){var O=h[C];O.children&&O.children.length&&v.push(O.key)}),s.expandedKeys=v}else!o&&a.defaultExpandedKeys&&(s.expandedKeys=a.autoExpandParent||a.defaultExpandParent?aO(a.defaultExpandedKeys,m):a.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,c||s.expandedKeys){var p=N2(c||i.treeData,s.expandedKeys||i.expandedKeys,u);s.flattenNodes=p}if(a.selectable&&(l("selectedKeys")?s.selectedKeys=lj(a.selectedKeys,a):!o&&a.defaultSelectedKeys&&(s.selectedKeys=lj(a.defaultSelectedKeys,a))),a.checkable){var g;if(l("checkedKeys")?g=z2(a.checkedKeys)||{}:!o&&a.defaultCheckedKeys?g=z2(a.defaultCheckedKeys)||{}:c&&(g=z2(a.checkedKeys)||{checkedKeys:i.checkedKeys,halfCheckedKeys:i.halfCheckedKeys}),g){var y=g,x=y.checkedKeys,b=x===void 0?[]:x,S=y.halfCheckedKeys,w=S===void 0?[]:S;if(!a.checkStrictly){var E=Jf(b,!0,m);b=E.checkedKeys,w=E.halfCheckedKeys}s.checkedKeys=b,s.halfCheckedKeys=w}}return l("loadedKeys")&&(s.loadedKeys=a.loadedKeys),s}}]),r}(d.Component);ee(lN,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:u_e,allowDrop:function(){return!0},expandAction:!1});ee(lN,"TreeNode",$p);var b_e={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"};const S_e=b_e;var w_e=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:S_e}))},C_e=d.forwardRef(w_e);const nK=C_e;var E_e={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"};const $_e=E_e;var __e=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:$_e}))},O_e=d.forwardRef(__e);const T_e=O_e;var P_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};const I_e=P_e;var N_e=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:I_e}))},k_e=d.forwardRef(N_e);const R_e=k_e;var A_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};const M_e=A_e;var D_e=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:M_e}))},j_e=d.forwardRef(D_e);const F_e=j_e,L_e=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:r,directoryNodeSelectedColor:n,motionDurationMid:a,borderRadius:i,controlItemBgHover:o})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${a}`,content:'""',borderRadius:i},"&:hover:before":{background:o}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:r,borderRadius:i,[`${e}-switcher, ${e}-draggable-icon`]:{color:n},[`${e}-node-content-wrapper`]:{color:n,background:"transparent","&, &:hover":{color:n},"&:before, &:hover:before":{background:r}}}}}),B_e=new fr("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),z_e=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),H_e=(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:`${se(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),W_e=(e,t)=>{const{treeCls:r,treeNodeCls:n,treeNodePadding:a,titleHeight:i,indentSize:o,nodeSelectedBg:s,nodeHoverBg:l,colorTextQuaternary:c,controlItemBgActiveDisabled:u}=t;return{[r]:Object.assign(Object.assign({},ur(t)),{"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${r}-rtl ${r}-switcher_close ${r}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${r}-active-focused)`]:nl(t),[`${r}-list-holder-inner`]:{alignItems:"flex-start"},[`&${r}-block-node`]:{[`${r}-list-holder-inner`]:{alignItems:"stretch",[`${r}-node-content-wrapper`]:{flex:"auto"},[`${n}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:B_e,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[n]:{display:"flex",alignItems:"flex-start",marginBottom:a,lineHeight:se(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:a},[`&-disabled ${r}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${r}-checkbox-disabled + ${r}-node-selected,&${n}-disabled${n}-selected ${r}-node-content-wrapper`]:{backgroundColor:u},[`${r}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${n}-disabled)`]:{[`${r}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${r}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${n}-disabled).filter-node ${r}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${r}-draggable-icon`]:{flexShrink:0,width:i,textAlign:"center",visibility:"visible",color:c},[`&${n}-disabled ${r}-draggable-icon`]:{visibility:"hidden"}}},[`${r}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:o}},[`${r}-draggable-icon`]:{visibility:"hidden"},[`${r}-switcher, ${r}-checkbox`]:{marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${r}-switcher`]:Object.assign(Object.assign({},z_e(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${r}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${r}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${r}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},H_e(e,t)),{"&:hover":{backgroundColor:l},[`&${r}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${r}-iconEle`]:{display:"inline-block",width:i,height:i,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${r}-unselectable ${r}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${r}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${r}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${n}-leaf-last ${r}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${se(t.calc(i).div(2).equal())} !important`}})}},V_e=(e,t,r=!0)=>{const n=`.${e}`,a=`${n}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),o=Yt(t,{treeCls:n,treeNodeCls:a,treeNodePadding:i});return[W_e(e,o),r&&L_e(o)].filter(Boolean)},U_e=e=>{const{controlHeightSM:t,controlItemBgHover:r,controlItemBgActive:n}=e,a=t;return{titleHeight:a,indentSize:a,nodeHoverBg:r,nodeHoverColor:e.colorText,nodeSelectedBg:n,nodeSelectedColor:e.colorText}},K_e=e=>{const{colorTextLightSolid:t,colorPrimary:r}=e;return Object.assign(Object.assign({},U_e(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:r})},G_e=or("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:YV(`${t}-checkbox`,e)},V_e(t,e),iS(e)],K_e),pj=4;function q_e(e){const{dropPosition:t,dropLevelOffset:r,prefixCls:n,indent:a,direction:i="ltr"}=e,o=i==="ltr"?"left":"right",s=i==="ltr"?"right":"left",l={[o]:-r*a+pj,[s]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[o]=a+pj;break}return ve.createElement("div",{style:l,className:`${n}-drop-indicator`})}var X_e={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:"filled"};const Y_e=X_e;var Q_e=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:Y_e}))},Z_e=d.forwardRef(Q_e);const J_e=Z_e;var eOe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};const tOe=eOe;var rOe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:tOe}))},nOe=d.forwardRef(rOe);const aOe=nOe;var iOe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};const oOe=iOe;var sOe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:oOe}))},lOe=d.forwardRef(sOe);const cOe=lOe,uOe=e=>{var t,r;const{prefixCls:n,switcherIcon:a,treeNodeProps:i,showLine:o,switcherLoadingIcon:s}=e,{isLeaf:l,expanded:c,loading:u}=i;if(u)return d.isValidElement(s)?s:d.createElement(Wc,{className:`${n}-switcher-loading-icon`});let f;if(o&&typeof o=="object"&&(f=o.showLeafIcon),l){if(!o)return null;if(typeof f!="boolean"&&f){const v=typeof f=="function"?f(i):f,p=`${n}-switcher-line-custom-icon`;return d.isValidElement(v)?pa(v,{className:ce((t=v.props)===null||t===void 0?void 0:t.className,p)}):v}return f?d.createElement(nK,{className:`${n}-switcher-line-icon`}):d.createElement("span",{className:`${n}-switcher-leaf-line`})}const m=`${n}-switcher-icon`,h=typeof a=="function"?a(i):a;return d.isValidElement(h)?pa(h,{className:ce((r=h.props)===null||r===void 0?void 0:r.className,m)}):h!==void 0?h:o?c?d.createElement(aOe,{className:`${n}-switcher-line-icon`}):d.createElement(cOe,{className:`${n}-switcher-line-icon`}):d.createElement(J_e,{className:m})},dOe=uOe,fOe=ve.forwardRef((e,t)=>{var r;const{getPrefixCls:n,direction:a,virtual:i,tree:o}=ve.useContext(Nt),{prefixCls:s,className:l,showIcon:c=!1,showLine:u,switcherIcon:f,switcherLoadingIcon:m,blockNode:h=!1,children:v,checkable:p=!1,selectable:g=!0,draggable:y,disabled:x,motion:b,style:S}=e,w=n("tree",s),E=n(),C=ve.useContext(Wi),O=x??C,_=b??Object.assign(Object.assign({},vp(E)),{motionAppear:!1}),T=Object.assign(Object.assign({},e),{checkable:p,selectable:g,showIcon:c,motion:_,blockNode:h,disabled:O,showLine:!!u,dropIndicatorRender:q_e}),[I,N,D]=G_e(w),[,k]=Ga(),R=k.paddingXS/2+(((r=k.Tree)===null||r===void 0?void 0:r.titleHeight)||k.controlHeightSM),A=ve.useMemo(()=>{if(!y)return!1;let F={};switch(typeof y){case"function":F.nodeDraggable=y;break;case"object":F=Object.assign({},y);break}return F.icon!==!1&&(F.icon=F.icon||ve.createElement(F_e,null)),F},[y]),j=F=>ve.createElement(dOe,{prefixCls:w,switcherIcon:f,switcherLoadingIcon:m,treeNodeProps:F,showLine:u});return I(ve.createElement(lN,Object.assign({itemHeight:R,ref:t,virtual:i},T,{style:Object.assign(Object.assign({},o==null?void 0:o.style),S),prefixCls:w,className:ce({[`${w}-icon-hide`]:!c,[`${w}-block-node`]:h,[`${w}-unselectable`]:!g,[`${w}-rtl`]:a==="rtl",[`${w}-disabled`]:O},o==null?void 0:o.className,l,N,D),direction:a,checkable:p&&ve.createElement("span",{className:`${w}-checkbox-inner`}),selectable:g,switcherIcon:j,draggable:A}),v))}),aK=fOe,vj=0,H2=1,gj=2;function cN(e,t,r){const{key:n,children:a}=r;function i(o){const s=o[n],l=o[a];t(s,o)!==!1&&cN(l||[],t,r)}e.forEach(i)}function mOe({treeData:e,expandedKeys:t,startKey:r,endKey:n,fieldNames:a}){const i=[];let o=vj;if(r&&r===n)return[r];if(!r||!n)return[];function s(l){return l===r||l===n}return cN(e,l=>{if(o===gj)return!1;if(s(l)){if(i.push(l),o===vj)o=H2;else if(o===H2)return o=gj,!1}else o===H2&&i.push(l);return t.includes(l)},S0(a)),i}function W2(e,t,r){const n=De(t),a=[];return cN(e,(i,o)=>{const s=n.indexOf(i);return s!==-1&&(a.push(o),n.splice(s,1)),!!n.length},S0(r)),a}var yj=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var{defaultExpandAll:r,defaultExpandParent:n,defaultExpandedKeys:a}=e,i=yj(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const o=d.useRef(null),s=d.useRef(null),l=()=>{const{keyEntities:O}=LI(xj(i),{fieldNames:i.fieldNames});let _;return r?_=Object.keys(O):n?_=aO(i.expandedKeys||a||[],O):_=i.expandedKeys||a||[],_},[c,u]=d.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[f,m]=d.useState(()=>l());d.useEffect(()=>{"selectedKeys"in i&&u(i.selectedKeys)},[i.selectedKeys]),d.useEffect(()=>{"expandedKeys"in i&&m(i.expandedKeys)},[i.expandedKeys]);const h=(O,_)=>{var T;return"expandedKeys"in i||m(O),(T=i.onExpand)===null||T===void 0?void 0:T.call(i,O,_)},v=(O,_)=>{var T;const{multiple:I,fieldNames:N}=i,{node:D,nativeEvent:k}=_,{key:R=""}=D,A=xj(i),j=Object.assign(Object.assign({},_),{selected:!0}),F=(k==null?void 0:k.ctrlKey)||(k==null?void 0:k.metaKey),M=k==null?void 0:k.shiftKey;let V;I&&F?(V=O,o.current=R,s.current=V,j.selectedNodes=W2(A,V,N)):I&&M?(V=Array.from(new Set([].concat(De(s.current||[]),De(mOe({treeData:A,expandedKeys:f,startKey:R,endKey:o.current,fieldNames:N}))))),j.selectedNodes=W2(A,V,N)):(V=[R],o.current=R,s.current=V,j.selectedNodes=W2(A,V,N)),(T=i.onSelect)===null||T===void 0||T.call(i,V,j),"selectedKeys"in i||u(V)},{getPrefixCls:p,direction:g}=d.useContext(Nt),{prefixCls:y,className:x,showIcon:b=!0,expandAction:S="click"}=i,w=yj(i,["prefixCls","className","showIcon","expandAction"]),E=p("tree",y),C=ce(`${E}-directory`,{[`${E}-directory-rtl`]:g==="rtl"},x);return d.createElement(aK,Object.assign({icon:hOe,ref:t,blockNode:!0},w,{showIcon:b,expandAction:S,prefixCls:E,className:C,expandedKeys:f,selectedKeys:c,onSelect:v,onExpand:h}))},vOe=d.forwardRef(pOe),gOe=vOe,uN=aK;uN.DirectoryTree=gOe;uN.TreeNode=$p;const yOe=uN,xOe=e=>{const{value:t,filterSearch:r,tablePrefixCls:n,locale:a,onChange:i}=e;return r?d.createElement("div",{className:`${n}-filter-dropdown-search`},d.createElement(Tv,{prefix:d.createElement(uI,null),placeholder:a.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${n}-filter-dropdown-search-input`})):null},bj=xOe,bOe=e=>{const{keyCode:t}=e;t===Qe.ENTER&&e.stopPropagation()},SOe=d.forwardRef((e,t)=>d.createElement("div",{className:e.className,onClick:r=>r.stopPropagation(),onKeyDown:bOe,ref:t},e.children)),wOe=SOe;function e0(e){let t=[];return(e||[]).forEach(({value:r,children:n})=>{t.push(r),n&&(t=[].concat(De(t),De(e0(n))))}),t}function COe(e){return e.some(({children:t})=>t)}function iK(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function oK({filters:e,prefixCls:t,filteredKeys:r,filterMultiple:n,searchValue:a,filterSearch:i}){return e.map((o,s)=>{const l=String(o.value);if(o.children)return{key:l||s,label:o.text,popupClassName:`${t}-dropdown-submenu`,children:oK({filters:o.children,prefixCls:t,filteredKeys:r,filterMultiple:n,searchValue:a,filterSearch:i})};const c=n?Sp:Gs,u={key:o.value!==void 0?l:s,label:d.createElement(d.Fragment,null,d.createElement(c,{checked:r.includes(l)}),d.createElement("span",null,o.text))};return a.trim()?typeof i=="function"?i(a,o)?u:null:iK(a,o.text)?u:null:u})}function V2(e){return e||[]}const EOe=e=>{var t,r,n,a;const{tablePrefixCls:i,prefixCls:o,column:s,dropdownPrefixCls:l,columnKey:c,filterOnClose:u,filterMultiple:f,filterMode:m="menu",filterSearch:h=!1,filterState:v,triggerFilter:p,locale:g,children:y,getPopupContainer:x,rootClassName:b}=e,{filterResetToDefaultFilteredValue:S,defaultFilteredValue:w,filterDropdownProps:E={},filterDropdownOpen:C,filterDropdownVisible:O,onFilterDropdownVisibleChange:_,onFilterDropdownOpenChange:T}=s,[I,N]=d.useState(!1),D=!!(v&&(!((t=v.filteredKeys)===null||t===void 0)&&t.length||v.forceFiltered)),k=pe=>{var be;N(pe),(be=E.onOpenChange)===null||be===void 0||be.call(E,pe),T==null||T(pe),_==null||_(pe)},R=(a=(n=(r=E.open)!==null&&r!==void 0?r:C)!==null&&n!==void 0?n:O)!==null&&a!==void 0?a:I,A=v==null?void 0:v.filteredKeys,[j,F]=Ble(V2(A)),M=({selectedKeys:pe})=>{F(pe)},V=(pe,{node:be,checked:_e})=>{M(f?{selectedKeys:pe}:{selectedKeys:_e&&be.key?[be.key]:[]})};d.useEffect(()=>{I&&M({selectedKeys:V2(A)})},[A]);const[K,L]=d.useState([]),B=pe=>{L(pe)},[W,H]=d.useState(""),U=pe=>{const{value:be}=pe.target;H(be)};d.useEffect(()=>{I||H("")},[I]);const X=pe=>{const be=pe!=null&&pe.length?pe:null;if(be===null&&(!v||!v.filteredKeys)||tl(be,v==null?void 0:v.filteredKeys,!0))return null;p({column:s,key:c,filteredKeys:be})},Y=()=>{k(!1),X(j())},G=({confirm:pe,closeDropdown:be}={confirm:!1,closeDropdown:!1})=>{pe&&X([]),be&&k(!1),H(""),F(S?(w||[]).map(_e=>String(_e)):[])},Q=({closeDropdown:pe}={closeDropdown:!0})=>{pe&&k(!1),X(j())},J=(pe,be)=>{be.source==="trigger"&&(pe&&A!==void 0&&F(V2(A)),k(pe),!pe&&!s.filterDropdown&&u&&Y())},z=ce({[`${l}-menu-without-submenu`]:!COe(s.filters||[])}),fe=pe=>{if(pe.target.checked){const be=e0(s==null?void 0:s.filters).map(_e=>String(_e));F(be)}else F([])},te=({filters:pe})=>(pe||[]).map((be,_e)=>{const $e=String(be.value),Be={title:be.text,key:be.value!==void 0?$e:String(_e)};return be.children&&(Be.children=te({filters:be.children})),Be}),re=pe=>{var be;return Object.assign(Object.assign({},pe),{text:pe.title,value:pe.key,children:((be=pe.children)===null||be===void 0?void 0:be.map(_e=>re(_e)))||[]})};let q;const{direction:ne,renderEmpty:he}=d.useContext(Nt);if(typeof s.filterDropdown=="function")q=s.filterDropdown({prefixCls:`${l}-custom`,setSelectedKeys:pe=>M({selectedKeys:pe}),selectedKeys:j(),confirm:Q,clearFilters:G,filters:s.filters,visible:R,close:()=>{k(!1)}});else if(s.filterDropdown)q=s.filterDropdown;else{const pe=j()||[],be=()=>{var $e,Be;const Fe=($e=he==null?void 0:he("Table.filter"))!==null&&$e!==void 0?$e:d.createElement(ku,{image:ku.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((s.filters||[]).length===0)return Fe;if(m==="tree")return d.createElement(d.Fragment,null,d.createElement(bj,{filterSearch:h,value:W,onChange:U,tablePrefixCls:i,locale:g}),d.createElement("div",{className:`${i}-filter-dropdown-tree`},f?d.createElement(Sp,{checked:pe.length===e0(s.filters).length,indeterminate:pe.length>0&&pe.lengthtypeof h=="function"?h(W,re(Ge)):iK(W,Ge.title):void 0})));const nt=oK({filters:s.filters||[],filterSearch:h,prefixCls:o,filteredKeys:j(),filterMultiple:f,searchValue:W}),qe=nt.every(Ge=>Ge===null);return d.createElement(d.Fragment,null,d.createElement(bj,{filterSearch:h,value:W,onChange:U,tablePrefixCls:i,locale:g}),qe?Fe:d.createElement(wI,{selectable:!0,multiple:f,prefixCls:`${l}-menu`,className:z,onSelect:M,onDeselect:M,selectedKeys:pe,getPopupContainer:x,openKeys:K,onOpenChange:B,items:nt}))},_e=()=>S?tl((w||[]).map($e=>String($e)),pe,!0):pe.length===0;q=d.createElement(d.Fragment,null,be(),d.createElement("div",{className:`${o}-dropdown-btns`},d.createElement(kt,{type:"link",size:"small",disabled:_e(),onClick:()=>G()},g.filterReset),d.createElement(kt,{type:"primary",size:"small",onClick:Y},g.filterConfirm)))}s.filterDropdown&&(q=d.createElement(jW,{selectable:void 0},q)),q=d.createElement(wOe,{className:`${o}-dropdown`},q);const ye=e1({trigger:["click"],placement:ne==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let pe;return typeof s.filterIcon=="function"?pe=s.filterIcon(D):s.filterIcon?pe=s.filterIcon:pe=d.createElement(c_e,null),d.createElement("span",{role:"button",tabIndex:-1,className:ce(`${o}-trigger`,{active:D}),onClick:be=>{be.stopPropagation()}},pe)})(),getPopupContainer:x},Object.assign(Object.assign({},E),{rootClassName:ce(b,E.rootClassName),open:R,onOpenChange:J,popupRender:()=>typeof(E==null?void 0:E.dropdownRender)=="function"?E.dropdownRender(q):q}));return d.createElement("div",{className:`${o}-column`},d.createElement("span",{className:`${i}-column-title`},y),d.createElement(XI,Object.assign({},ye)))},cO=(e,t,r)=>{let n=[];return(e||[]).forEach((a,i)=>{var o;const s=dm(i,r),l=a.filterDropdown!==void 0;if(a.filters||l||"onFilter"in a)if("filteredValue"in a){let c=a.filteredValue;l||(c=(o=c==null?void 0:c.map(String))!==null&&o!==void 0?o:c),n.push({column:a,key:Kc(a,s),filteredKeys:c,forceFiltered:a.filtered})}else n.push({column:a,key:Kc(a,s),filteredKeys:t&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(n=[].concat(De(n),De(cO(a.children,t,s))))}),n};function sK(e,t,r,n,a,i,o,s,l){return r.map((c,u)=>{const f=dm(u,s),{filterOnClose:m=!0,filterMultiple:h=!0,filterMode:v,filterSearch:p}=c;let g=c;if(g.filters||g.filterDropdown){const y=Kc(g,f),x=n.find(({key:b})=>y===b);g=Object.assign(Object.assign({},g),{title:b=>d.createElement(EOe,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:g,columnKey:y,filterState:x,filterOnClose:m,filterMultiple:h,filterMode:v,filterSearch:p,triggerFilter:i,locale:a,getPopupContainer:o,rootClassName:l},VS(c.title,b))})}return"children"in g&&(g=Object.assign(Object.assign({},g),{children:sK(e,t,g.children,n,a,i,o,f,l)})),g})}const Sj=e=>{const t={};return e.forEach(({key:r,filteredKeys:n,column:a})=>{const i=r,{filters:o,filterDropdown:s}=a;if(s)t[i]=n||null;else if(Array.isArray(n)){const l=e0(o);t[i]=l.filter(c=>n.includes(String(c)))}else t[i]=null}),t},uO=(e,t,r)=>t.reduce((a,i)=>{const{column:{onFilter:o,filters:s},filteredKeys:l}=i;return o&&l&&l.length?a.map(c=>Object.assign({},c)).filter(c=>l.some(u=>{const f=e0(s),m=f.findIndex(v=>String(v)===String(u)),h=m!==-1?f[m]:u;return c[r]&&(c[r]=uO(c[r],t,r)),o(h,c)})):a},e),lK=e=>e.flatMap(t=>"children"in t?[t].concat(De(lK(t.children||[]))):[t]),$Oe=e=>{const{prefixCls:t,dropdownPrefixCls:r,mergedColumns:n,onFilterChange:a,getPopupContainer:i,locale:o,rootClassName:s}=e;lu();const l=d.useMemo(()=>lK(n||[]),[n]),[c,u]=d.useState(()=>cO(l,!0)),f=d.useMemo(()=>{const p=cO(l,!1);if(p.length===0)return p;let g=!0;if(p.forEach(({filteredKeys:y})=>{y!==void 0&&(g=!1)}),g){const y=(l||[]).map((x,b)=>Kc(x,dm(b)));return c.filter(({key:x})=>y.includes(x)).map(x=>{const b=l[y.indexOf(x.key)];return Object.assign(Object.assign({},x),{column:Object.assign(Object.assign({},x.column),b),forceFiltered:b.filtered})})}return p},[l,c]),m=d.useMemo(()=>Sj(f),[f]),h=p=>{const g=f.filter(({key:y})=>y!==p.key);g.push(p),u(g),a(Sj(g),g)};return[p=>sK(t,r,p,f,o,h,i,void 0,s),f,m]},_Oe=$Oe,OOe=(e,t,r)=>{const n=d.useRef({});function a(i){var o;if(!n.current||n.current.data!==e||n.current.childrenColumnName!==t||n.current.getRowKey!==r){let c=function(u){u.forEach((f,m)=>{const h=r(f,m);l.set(h,f),f&&typeof f=="object"&&t in f&&c(f[t]||[])})};var s=c;const l=new Map;c(e),n.current={data:e,childrenColumnName:t,kvMap:l,getRowKey:r}}return(o=n.current.kvMap)===null||o===void 0?void 0:o.get(i)}return[a]},TOe=OOe;var POe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const i=e[a];typeof i!="function"&&(r[a]=i)}),r}function NOe(e,t,r){const n=r&&typeof r=="object"?r:{},{total:a=0}=n,i=POe(n,["total"]),[o,s]=d.useState(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:cK})),l=e1(o,i,{total:a>0?a:e}),c=Math.ceil((a||e)/l.pageSize);l.current>c&&(l.current=c||1);const u=(m,h)=>{s({current:m??1,pageSize:h||l.pageSize})},f=(m,h)=>{var v;r&&((v=r.onChange)===null||v===void 0||v.call(r,m,h)),u(m,h),t(m,h||(l==null?void 0:l.pageSize))};return r===!1?[{},()=>{}]:[Object.assign(Object.assign({},l),{onChange:f}),u]}var kOe={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"};const ROe=kOe;var AOe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:ROe}))},MOe=d.forwardRef(AOe);const DOe=MOe;var jOe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};const FOe=jOe;var LOe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:FOe}))},BOe=d.forwardRef(LOe);const zOe=BOe,fx="ascend",U2="descend",h1=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,wj=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,HOe=(e,t)=>t?e[e.indexOf(t)+1]:e[0],dO=(e,t,r)=>{let n=[];const a=(i,o)=>{n.push({column:i,key:Kc(i,o),multiplePriority:h1(i),sortOrder:i.sortOrder})};return(e||[]).forEach((i,o)=>{const s=dm(o,r);i.children?("sortOrder"in i&&a(i,s),n=[].concat(De(n),De(dO(i.children,t,s)))):i.sorter&&("sortOrder"in i?a(i,s):t&&i.defaultSortOrder&&n.push({column:i,key:Kc(i,s),multiplePriority:h1(i),sortOrder:i.defaultSortOrder}))}),n},uK=(e,t,r,n,a,i,o,s)=>(t||[]).map((c,u)=>{const f=dm(u,s);let m=c;if(m.sorter){const h=m.sortDirections||a,v=m.showSorterTooltip===void 0?o:m.showSorterTooltip,p=Kc(m,f),g=r.find(({key:_})=>_===p),y=g?g.sortOrder:null,x=HOe(h,y);let b;if(c.sortIcon)b=c.sortIcon({sortOrder:y});else{const _=h.includes(fx)&&d.createElement(zOe,{className:ce(`${e}-column-sorter-up`,{active:y===fx})}),T=h.includes(U2)&&d.createElement(DOe,{className:ce(`${e}-column-sorter-down`,{active:y===U2})});b=d.createElement("span",{className:ce(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(_&&T)})},d.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},_,T))}const{cancelSort:S,triggerAsc:w,triggerDesc:E}=i||{};let C=S;x===U2?C=E:x===fx&&(C=w);const O=typeof v=="object"?Object.assign({title:C},v):{title:C};m=Object.assign(Object.assign({},m),{className:ce(m.className,{[`${e}-column-sort`]:y}),title:_=>{const T=`${e}-column-sorters`,I=d.createElement("span",{className:`${e}-column-title`},VS(c.title,_)),N=d.createElement("div",{className:T},I,b);return v?typeof v!="boolean"&&(v==null?void 0:v.target)==="sorter-icon"?d.createElement("div",{className:ce(T,`${T}-tooltip-target-sorter`)},I,d.createElement(Os,Object.assign({},O),b)):d.createElement(Os,Object.assign({},O),N):N},onHeaderCell:_=>{var T;const I=((T=c.onHeaderCell)===null||T===void 0?void 0:T.call(c,_))||{},N=I.onClick,D=I.onKeyDown;I.onClick=A=>{n({column:c,key:p,sortOrder:x,multiplePriority:h1(c)}),N==null||N(A)},I.onKeyDown=A=>{A.keyCode===Qe.ENTER&&(n({column:c,key:p,sortOrder:x,multiplePriority:h1(c)}),D==null||D(A))};const k=a_e(c.title,{}),R=k==null?void 0:k.toString();return y&&(I["aria-sort"]=y==="ascend"?"ascending":"descending"),I["aria-label"]=R||"",I.className=ce(I.className,`${e}-column-has-sorters`),I.tabIndex=0,c.ellipsis&&(I.title=(k??"").toString()),I}})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:uK(e,m.children,r,n,a,i,o,f)})),m}),Cj=e=>{const{column:t,sortOrder:r}=e;return{column:t,order:r,field:t.dataIndex,columnKey:t.key}},Ej=e=>{const t=e.filter(({sortOrder:r})=>r).map(Cj);if(t.length===0&&e.length){const r=e.length-1;return Object.assign(Object.assign({},Cj(e[r])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},fO=(e,t,r)=>{const n=t.slice().sort((o,s)=>s.multiplePriority-o.multiplePriority),a=e.slice(),i=n.filter(({column:{sorter:o},sortOrder:s})=>wj(o)&&s);return i.length?a.sort((o,s)=>{for(let l=0;l{const s=o[r];return s?Object.assign(Object.assign({},o),{[r]:fO(s,t,r)}):o}):a},WOe=e=>{const{prefixCls:t,mergedColumns:r,sortDirections:n,tableLocale:a,showSorterTooltip:i,onSorterChange:o}=e,[s,l]=d.useState(()=>dO(r,!0)),c=(p,g)=>{const y=[];return p.forEach((x,b)=>{const S=dm(b,g);if(y.push(Kc(x,S)),Array.isArray(x.children)){const w=c(x.children,S);y.push.apply(y,De(w))}}),y},u=d.useMemo(()=>{let p=!0;const g=dO(r,!1);if(!g.length){const S=c(r);return s.filter(({key:w})=>S.includes(w))}const y=[];function x(S){p?y.push(S):y.push(Object.assign(Object.assign({},S),{sortOrder:null}))}let b=null;return g.forEach(S=>{b===null?(x(S),S.sortOrder&&(S.multiplePriority===!1?p=!1:b=!0)):(b&&S.multiplePriority!==!1||(p=!1),x(S))}),y},[r,s]),f=d.useMemo(()=>{var p,g;const y=u.map(({column:x,sortOrder:b})=>({column:x,order:b}));return{sortColumns:y,sortColumn:(p=y[0])===null||p===void 0?void 0:p.column,sortOrder:(g=y[0])===null||g===void 0?void 0:g.order}},[u]),m=p=>{let g;p.multiplePriority===!1||!u.length||u[0].multiplePriority===!1?g=[p]:g=[].concat(De(u.filter(({key:y})=>y!==p.key)),[p]),l(g),o(Ej(g),g)};return[p=>uK(t,p,u,m,n,a,i),u,f,()=>Ej(u)]},VOe=WOe,dK=(e,t)=>e.map(n=>{const a=Object.assign({},n);return a.title=VS(n.title,t),"children"in a&&(a.children=dK(a.children,t)),a}),UOe=e=>[d.useCallback(r=>dK(r,e),[e])],KOe=UOe,GOe=QU((e,t)=>{const{_renderTimes:r}=e,{_renderTimes:n}=t;return r!==n}),qOe=GOe,XOe=JU((e,t)=>{const{_renderTimes:r}=e,{_renderTimes:n}=t;return r!==n}),YOe=XOe,QOe=e=>{const{componentCls:t,lineWidth:r,lineType:n,tableBorderColor:a,tableHeaderBg:i,tablePaddingVertical:o,tablePaddingHorizontal:s,calc:l}=e,c=`${se(r)} ${n} ${a}`,u=(f,m,h)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${se(l(m).mul(-1).equal())} + ${se(l(l(h).add(r)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[` + > ${t}-content, + > ${t}-header, + > ${t}-body, + > ${t}-summary + `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${se(l(o).mul(-1).equal())} ${se(l(l(s).add(r)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:r,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` + > tr${t}-expanded-row, + > tr${t}-placeholder + `]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:c,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${se(r)} 0 ${se(r)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},ZOe=QOe,JOe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Uo),{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"}})}}},eTe=JOe,tTe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},rTe=tTe,nTe=e=>{const{componentCls:t,antCls:r,motionDurationSlow:n,lineWidth:a,paddingXS:i,lineType:o,tableBorderColor:s,tableExpandIconBg:l,tableExpandColumnWidth:c,borderRadius:u,tablePaddingVertical:f,tablePaddingHorizontal:m,tableExpandedRowBg:h,paddingXXS:v,expandIconMarginTop:p,expandIconSize:g,expandIconHalfInner:y,expandIconScale:x,calc:b}=e,S=`${se(a)} ${o} ${s}`,w=b(v).sub(a).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},DP(e)),{position:"relative",float:"left",width:g,height:g,color:"inherit",lineHeight:se(g),background:l,border:S,borderRadius:u,transform:`scale(${x})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${n} ease-out`,content:'""'},"&::before":{top:y,insetInlineEnd:w,insetInlineStart:w,height:a},"&::after":{top:w,bottom:w,insetInlineStart:y,width:a,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:p,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:h}},[`${r}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${se(b(f).mul(-1).equal())} ${se(b(m).mul(-1).equal())}`,padding:`${se(f)} ${se(m)}`}}}},aTe=nTe,iTe=e=>{const{componentCls:t,antCls:r,iconCls:n,tableFilterDropdownWidth:a,tableFilterDropdownSearchWidth:i,paddingXXS:o,paddingXS:s,colorText:l,lineWidth:c,lineType:u,tableBorderColor:f,headerIconColor:m,fontSizeSM:h,tablePaddingHorizontal:v,borderRadius:p,motionDurationSlow:g,colorIcon:y,colorPrimary:x,tableHeaderFilterActiveBg:b,colorTextDisabled:S,tableFilterDropdownBg:w,tableFilterDropdownHeight:E,controlItemBgHover:C,controlItemBgActive:O,boxShadowSecondary:_,filterDropdownMenuBg:T,calc:I}=e,N=`${r}-dropdown`,D=`${t}-filter-dropdown`,k=`${r}-tree`,R=`${se(c)} ${u} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:I(o).mul(-1).equal(),marginInline:`${se(o)} ${se(I(v).div(2).mul(-1).equal())}`,padding:`0 ${se(o)}`,color:m,fontSize:h,borderRadius:p,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:y,background:b},"&.active":{color:x}}}},{[`${r}-dropdown`]:{[D]:Object.assign(Object.assign({},ur(e)),{minWidth:a,backgroundColor:w,borderRadius:p,boxShadow:_,overflow:"hidden",[`${N}-menu`]:{maxHeight:E,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:T,"&:empty::after":{display:"block",padding:`${se(s)} 0`,color:S,fontSize:h,textAlign:"center",content:'"Not Found"'}},[`${D}-tree`]:{paddingBlock:`${se(s)} 0`,paddingInline:s,[k]:{padding:0},[`${k}-treenode ${k}-node-content-wrapper:hover`]:{backgroundColor:C},[`${k}-treenode-checkbox-checked ${k}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:O}}},[`${D}-search`]:{padding:s,borderBottom:R,"&-input":{input:{minWidth:i},[n]:{color:S}}},[`${D}-checkall`]:{width:"100%",marginBottom:o,marginInlineStart:o},[`${D}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${se(I(s).sub(c).equal())} ${se(s)}`,overflow:"hidden",borderTop:R}})}},{[`${r}-dropdown ${D}, ${D}-submenu`]:{[`${r}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},oTe=iTe,sTe=e=>{const{componentCls:t,lineWidth:r,colorSplit:n,motionDurationSlow:a,zIndexTableFixed:i,tableBg:o,zIndexTableSticky:s,calc:l}=e,c=n;return{[`${t}-wrapper`]:{[` + ${t}-cell-fix-left, + ${t}-cell-fix-right + `]:{position:"sticky !important",zIndex:i,background:o},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:l(r).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${a}`,content:'""',pointerEvents:"none",willChange:"transform"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{position:"absolute",top:0,bottom:l(r).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:l(s).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after + `]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${c}`},[` + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{boxShadow:`inset -10px 0 8px -8px ${c}`}},[`${t}-fixed-column-gapped`]:{[` + ${t}-cell-fix-left-first::after, + ${t}-cell-fix-left-last::after, + ${t}-cell-fix-right-first::after, + ${t}-cell-fix-right-last::after + `]:{boxShadow:"none"}}}}},lTe=sTe,cTe=e=>{const{componentCls:t,antCls:r,margin:n}=e;return{[`${t}-wrapper ${t}-pagination${r}-pagination`]:{margin:`${se(n)} 0`}}},uTe=cTe,dTe=e=>{const{componentCls:t,tableRadius:r}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${se(r)} ${se(r)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:r,borderStartEndRadius:r,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:r},"> *:last-child":{borderStartEndRadius:r}}},"&-footer":{borderRadius:`0 0 ${se(r)} ${se(r)}`}}}}},fTe=dTe,mTe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},hTe=mTe,pTe=e=>{const{componentCls:t,antCls:r,iconCls:n,fontSizeIcon:a,padding:i,paddingXS:o,headerIconColor:s,headerIconHoverColor:l,tableSelectionColumnWidth:c,tableSelectedRowBg:u,tableSelectedRowHoverBg:f,tableRowHoverBg:m,tablePaddingHorizontal:h,calc:v}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:v(c).add(a).add(v(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:v(c).add(v(o).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:v(c).add(a).add(v(i).div(4)).add(v(o).mul(2)).equal()}},[` + table tr th${t}-selection-column, + table tr td${t}-selection-column, + ${t}-selection-column + `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${r}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:v(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:se(v(h).div(4).equal()),[n]:{color:s,fontSize:a,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},vTe=pTe,gTe=e=>{const{componentCls:t,tableExpandColumnWidth:r,calc:n}=e,a=(i,o,s,l)=>({[`${t}${t}-${i}`]:{fontSize:l,[` + ${t}-title, + ${t}-footer, + ${t}-cell, + ${t}-thead > tr > th, + ${t}-tbody > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{padding:`${se(o)} ${se(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:se(n(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${se(n(o).mul(-1).equal())} ${se(n(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:se(n(o).mul(-1).equal()),marginInline:`${se(n(r).sub(s).equal())} ${se(n(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:se(n(s).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},a("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),a("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},yTe=gTe,xTe=e=>{const{componentCls:t,marginXXS:r,fontSizeIcon:n,headerIconColor:a,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` + &${t}-cell-fix-left:hover, + &${t}-cell-fix-right:hover + `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:r,color:a,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:n,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},bTe=xTe,STe=e=>{const{componentCls:t,opacityLoading:r,tableScrollThumbBg:n,tableScrollThumbBgHover:a,tableScrollThumbSize:i,tableScrollBg:o,zIndexTableSticky:s,stickyScrollBarBorderRadius:l,lineWidth:c,lineType:u,tableBorderColor:f}=e,m=`${se(c)} ${u} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${se(i)} !important`,zIndex:s,display:"flex",alignItems:"center",background:o,borderTop:m,opacity:r,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:n,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:a}}}}}}},wTe=STe,CTe=e=>{const{componentCls:t,lineWidth:r,tableBorderColor:n,calc:a}=e,i=`${se(r)} ${e.lineType} ${n}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${se(a(r).mul(-1).equal())} 0 ${n}`}}}},$j=CTe,ETe=e=>{const{componentCls:t,motionDurationMid:r,lineWidth:n,lineType:a,tableBorderColor:i,calc:o}=e,s=`${se(n)} ${a} ${i}`,l=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[` + & > ${t}-row, + & > div:not(${t}-row) > ${t}-row + `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${r}`},[`${t}-expanded-row`]:{[`${l}${l}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${se(n)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:o(n).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},$Te=ETe,_Te=e=>{const{componentCls:t,fontWeightStrong:r,tablePaddingVertical:n,tablePaddingHorizontal:a,tableExpandColumnWidth:i,lineWidth:o,lineType:s,tableBorderColor:l,tableFontSize:c,tableBg:u,tableRadius:f,tableHeaderTextColor:m,motionDurationMid:h,tableHeaderBg:v,tableHeaderCellSplitColor:p,tableFooterTextColor:g,tableFooterBg:y,calc:x}=e,b=`${se(o)} ${s} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},rl()),{[t]:Object.assign(Object.assign({},ur(e)),{fontSize:c,background:u,borderRadius:`${se(f)} ${se(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${se(f)} ${se(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` + ${t}-cell, + ${t}-thead > tr > th, + ${t}-tbody > tr > th, + ${t}-tbody > tr > td, + tfoot > tr > th, + tfoot > tr > td + `]:{position:"relative",padding:`${se(n)} ${se(a)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${se(n)} ${se(a)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:m,fontWeight:r,textAlign:"start",background:v,borderBottom:b,transition:`background ${h} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:p,transform:"translateY(-50%)",transition:`background-color ${h}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${h}, border-color ${h}`,borderBottom:b,[` + > ${t}-wrapper:only-child, + > ${t}-expanded-row-fixed > ${t}-wrapper:only-child + `]:{[t]:{marginBlock:se(x(n).mul(-1).equal()),marginInline:`${se(x(i).sub(a).equal())} + ${se(x(a).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:r,textAlign:"start",background:v,borderBottom:b,transition:`background ${h} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${se(n)} ${se(a)}`,color:g,background:y}})}},OTe=e=>{const{colorFillAlter:t,colorBgContainer:r,colorTextHeading:n,colorFillSecondary:a,colorFillContent:i,controlItemBgActive:o,controlItemBgActiveHover:s,padding:l,paddingSM:c,paddingXS:u,colorBorderSecondary:f,borderRadiusLG:m,controlHeight:h,colorTextPlaceholder:v,fontSize:p,fontSizeSM:g,lineHeight:y,lineWidth:x,colorIcon:b,colorIconHover:S,opacityLoading:w,controlInteractiveSize:E}=e,C=new lr(a).onBackground(r).toHexString(),O=new lr(i).onBackground(r).toHexString(),_=new lr(t).onBackground(r).toHexString(),T=new lr(b),I=new lr(S),N=E/2-x,D=N*2+x*3;return{headerBg:_,headerColor:n,headerSortActiveBg:C,headerSortHoverBg:O,bodySortBg:_,rowHoverBg:_,rowSelectedBg:o,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:f,headerBorderRadius:m,footerBg:_,footerColor:n,cellFontSize:p,cellFontSizeMD:p,cellFontSizeSM:p,headerSplitColor:f,fixedHeaderSortActiveBg:C,headerFilterHoverBg:i,filterDropdownMenuBg:r,filterDropdownBg:r,expandIconBg:r,selectionColumnWidth:h,stickyScrollBarBg:v,stickyScrollBarBorderRadius:100,expandIconMarginTop:(p*y-x*3)/2-Math.ceil((g*1.4-x*3)/2),headerIconColor:T.clone().setA(T.a*w).toRgbString(),headerIconHoverColor:I.clone().setA(I.a*w).toRgbString(),expandIconHalfInner:N,expandIconSize:D,expandIconScale:E/D}},_j=2,TTe=or("Table",e=>{const{colorTextHeading:t,colorSplit:r,colorBgContainer:n,controlInteractiveSize:a,headerBg:i,headerColor:o,headerSortActiveBg:s,headerSortHoverBg:l,bodySortBg:c,rowHoverBg:u,rowSelectedBg:f,rowSelectedHoverBg:m,rowExpandedBg:h,cellPaddingBlock:v,cellPaddingInline:p,cellPaddingBlockMD:g,cellPaddingInlineMD:y,cellPaddingBlockSM:x,cellPaddingInlineSM:b,borderColor:S,footerBg:w,footerColor:E,headerBorderRadius:C,cellFontSize:O,cellFontSizeMD:_,cellFontSizeSM:T,headerSplitColor:I,fixedHeaderSortActiveBg:N,headerFilterHoverBg:D,filterDropdownBg:k,expandIconBg:R,selectionColumnWidth:A,stickyScrollBarBg:j,calc:F}=e,M=Yt(e,{tableFontSize:O,tableBg:n,tableRadius:C,tablePaddingVertical:v,tablePaddingHorizontal:p,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:y,tablePaddingVerticalSmall:x,tablePaddingHorizontalSmall:b,tableBorderColor:S,tableHeaderTextColor:o,tableHeaderBg:i,tableFooterTextColor:E,tableFooterBg:w,tableHeaderCellSplitColor:I,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:N,tableHeaderFilterActiveBg:D,tableFilterDropdownBg:k,tableRowHoverBg:u,tableSelectedRowBg:f,tableSelectedRowHoverBg:m,zIndexTableFixed:_j,zIndexTableSticky:F(_j).add(1).equal({unit:!1}),tableFontSizeMiddle:_,tableFontSizeSmall:T,tableSelectionColumnWidth:A,tableExpandIconBg:R,tableExpandColumnWidth:F(a).add(F(e.padding).mul(2)).equal(),tableExpandedRowBg:h,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:j,tableScrollThumbBgHover:t,tableScrollBg:r});return[_Te(M),uTe(M),$j(M),bTe(M),oTe(M),ZOe(M),fTe(M),aTe(M),$j(M),rTe(M),vTe(M),lTe(M),wTe(M),eTe(M),yTe(M),hTe(M),$Te(M)]},OTe,{unitless:{expandIconScale:!0}}),Oj=[],PTe=(e,t)=>{var r,n;const{prefixCls:a,className:i,rootClassName:o,style:s,size:l,bordered:c,dropdownPrefixCls:u,dataSource:f,pagination:m,rowSelection:h,rowKey:v="key",rowClassName:p,columns:g,children:y,childrenColumnName:x,onChange:b,getPopupContainer:S,loading:w,expandIcon:E,expandable:C,expandedRowRender:O,expandIconColumnIndex:_,indentSize:T,scroll:I,sortDirections:N,locale:D,showSorterTooltip:k={target:"full-header"},virtual:R}=e;lu();const A=d.useMemo(()=>g||aN(y),[g,y]),j=d.useMemo(()=>A.some(ie=>ie.responsive),[A]),F=wv(j),M=d.useMemo(()=>{const ie=new Set(Object.keys(F).filter(oe=>F[oe]));return A.filter(oe=>!oe.responsive||oe.responsive.some(de=>ie.has(de)))},[A,F]),V=Er(e,["className","style","columns"]),{locale:K=Vo,direction:L,table:B,renderEmpty:W,getPrefixCls:H,getPopupContainer:U}=d.useContext(Nt),X=ba(l),Y=Object.assign(Object.assign({},K.Table),D),G=f||Oj,Q=H("table",a),J=H("dropdown",u),[,z]=Ga(),fe=gn(Q),[te,re,q]=TTe(Q,fe),ne=Object.assign(Object.assign({childrenColumnName:x,expandIconColumnIndex:_},C),{expandIcon:(r=C==null?void 0:C.expandIcon)!==null&&r!==void 0?r:(n=B==null?void 0:B.expandable)===null||n===void 0?void 0:n.expandIcon}),{childrenColumnName:he="children"}=ne,xe=d.useMemo(()=>G.some(ie=>ie==null?void 0:ie[he])?"nest":O||C!=null&&C.expandedRowRender?"row":null,[G]),ye={body:d.useRef(null)},pe=n_e(Q),be=d.useRef(null),_e=d.useRef(null);Lle(t,()=>Object.assign(Object.assign({},_e.current),{nativeElement:be.current}));const $e=d.useMemo(()=>typeof v=="function"?v:ie=>ie==null?void 0:ie[v],[v]),[Be]=TOe(G,he,$e),Fe={},nt=(ie,oe,de=!1)=>{var Ce,Ae,Ee,Ie;const Pe=Object.assign(Object.assign({},Fe),ie);de&&((Ce=Fe.resetPagination)===null||Ce===void 0||Ce.call(Fe),!((Ae=Pe.pagination)===null||Ae===void 0)&&Ae.current&&(Pe.pagination.current=1),m&&((Ee=m.onChange)===null||Ee===void 0||Ee.call(m,1,(Ie=Pe.pagination)===null||Ie===void 0?void 0:Ie.pageSize))),I&&I.scrollToFirstRowOnChange!==!1&&ye.body.current&&gle(0,{getContainer:()=>ye.body.current}),b==null||b(Pe.pagination,Pe.filters,Pe.sorter,{currentDataSource:uO(fO(G,Pe.sorterStates,he),Pe.filterStates,he),action:oe})},qe=(ie,oe)=>{nt({sorter:ie,sorterStates:oe},"sort",!1)},[Ge,Le,Ne,we]=VOe({prefixCls:Q,mergedColumns:M,onSorterChange:qe,sortDirections:N||["ascend","descend"],tableLocale:Y,showSorterTooltip:k}),je=d.useMemo(()=>fO(G,Le,he),[G,Le]);Fe.sorter=we(),Fe.sorterStates=Le;const Oe=(ie,oe)=>{nt({filters:ie,filterStates:oe},"filter",!0)},[Me,ge,Se]=_Oe({prefixCls:Q,locale:Y,dropdownPrefixCls:J,mergedColumns:M,onFilterChange:Oe,getPopupContainer:S||U,rootClassName:ce(o,fe)}),Re=uO(je,ge,he);Fe.filters=Se,Fe.filterStates=ge;const We=d.useMemo(()=>{const ie={};return Object.keys(Se).forEach(oe=>{Se[oe]!==null&&(ie[oe]=Se[oe])}),Object.assign(Object.assign({},Ne),{filters:ie})},[Ne,Se]),[at]=KOe(We),yt=(ie,oe)=>{nt({pagination:Object.assign(Object.assign({},Fe.pagination),{current:ie,pageSize:oe})},"paginate")},[tt,it]=NOe(Re.length,yt,m);Fe.pagination=m===!1?{}:IOe(tt,m),Fe.resetPagination=it;const ft=d.useMemo(()=>{if(m===!1||!tt.pageSize)return Re;const{current:ie=1,total:oe,pageSize:de=cK}=tt;return Re.lengthde?Re.slice((ie-1)*de,ie*de):Re:Re.slice((ie-1)*de,ie*de)},[!!m,Re,tt==null?void 0:tt.current,tt==null?void 0:tt.pageSize,tt==null?void 0:tt.total]),[lt,mt]=t_e({prefixCls:Q,data:Re,pageData:ft,getRowKey:$e,getRecordByKey:Be,expandType:xe,childrenColumnName:he,locale:Y,getPopupContainer:S||U},h),Mt=(ie,oe,de)=>{let Ce;return typeof p=="function"?Ce=ce(p(ie,oe,de)):Ce=ce(p),ce({[`${Q}-row-selected`]:mt.has($e(ie,oe))},Ce)};ne.__PARENT_RENDER_ICON__=ne.expandIcon,ne.expandIcon=ne.expandIcon||E||r_e(Y),xe==="nest"&&ne.expandIconColumnIndex===void 0?ne.expandIconColumnIndex=h?1:0:ne.expandIconColumnIndex>0&&h&&(ne.expandIconColumnIndex-=1),typeof ne.indentSize!="number"&&(ne.indentSize=typeof T=="number"?T:15);const Ft=d.useCallback(ie=>at(lt(Me(Ge(ie)))),[Ge,Me,lt]),ht=()=>{if(m===!1||!(tt!=null&&tt.total))return{};const ie=()=>tt.size||(X==="small"||X==="middle"?"small":void 0),oe=Ve=>{const et=Ve==="left"?"start":Ve==="right"?"end":Ve;return d.createElement(o2e,Object.assign({},tt,{align:tt.align||et,className:ce(`${Q}-pagination`,tt.className),size:ie()}))},de=L==="rtl"?"left":"right",Ce=tt.position;if(Ce===null||!Array.isArray(Ce))return{bottom:oe(de)};const Ae=Ce.find(Ve=>typeof Ve=="string"&&Ve.toLowerCase().includes("top")),Ee=Ce.find(Ve=>typeof Ve=="string"&&Ve.toLowerCase().includes("bottom")),Ie=Ce.every(Ve=>`${Ve}`=="none"),Pe=Ae?Ae.toLowerCase().replace("top",""):"",Xe=Ee?Ee.toLowerCase().replace("bottom",""):"",ke=!Ae&&!Ee&&!Ie,ze=()=>Pe?oe(Pe):void 0,He=()=>{if(Xe)return oe(Xe);if(ke)return oe(de)};return{top:ze(),bottom:He()}},St=d.useMemo(()=>typeof w=="boolean"?{spinning:w}:typeof w=="object"&&w!==null?Object.assign({spinning:!0},w):void 0,[w]),xt=ce(q,fe,`${Q}-wrapper`,B==null?void 0:B.className,{[`${Q}-wrapper-rtl`]:L==="rtl"},i,o,re),rt=Object.assign(Object.assign({},B==null?void 0:B.style),s),Ye=d.useMemo(()=>St!=null&&St.spinning&&G===Oj?null:typeof(D==null?void 0:D.emptyText)<"u"?D.emptyText:(W==null?void 0:W("Table"))||d.createElement(UH,{componentName:"Table"}),[St==null?void 0:St.spinning,G,D==null?void 0:D.emptyText,W]),Ze=R?YOe:qOe,ut={},Z=d.useMemo(()=>{const{fontSize:ie,lineHeight:oe,lineWidth:de,padding:Ce,paddingXS:Ae,paddingSM:Ee}=z,Ie=Math.floor(ie*oe);switch(X){case"middle":return Ee*2+Ie+de;case"small":return Ae*2+Ie+de;default:return Ce*2+Ie+de}},[z,X]);R&&(ut.listItemHeight=Z);const{top:ue,bottom:le}=ht();return te(d.createElement("div",{ref:be,className:xt,style:rt},d.createElement(JI,Object.assign({spinning:!1},St),ue,d.createElement(Ze,Object.assign({},ut,V,{ref:_e,columns:M,direction:L,expandable:ne,prefixCls:Q,className:ce({[`${Q}-middle`]:X==="middle",[`${Q}-small`]:X==="small",[`${Q}-bordered`]:c,[`${Q}-empty`]:G.length===0},q,fe,re),data:ft,rowKey:$e,rowClassName:Mt,emptyText:Ye,internalHooks:Iv,internalRefs:ye,transformColumns:Ft,getContainerWidth:pe,measureRowRender:ie=>d.createElement(Dd,{getPopupContainer:oe=>oe},ie)})),le)))},ITe=d.forwardRef(PTe),NTe=(e,t)=>{const r=d.useRef(0);return r.current+=1,d.createElement(ITe,Object.assign({},e,{ref:t,_renderTimes:r.current}))},Ul=d.forwardRef(NTe);Ul.SELECTION_COLUMN=oc;Ul.EXPAND_COLUMN=uc;Ul.SELECTION_ALL=iO;Ul.SELECTION_INVERT=oO;Ul.SELECTION_NONE=sO;Ul.Column=V$e;Ul.ColumnGroup=K$e;Ul.Summary=zU;const oi=Ul,kTe=e=>{const{paddingXXS:t,lineWidth:r,tagPaddingHorizontal:n,componentCls:a,calc:i}=e,o=i(n).sub(r).equal(),s=i(t).sub(r).equal();return{[a]:Object.assign(Object.assign({},ur(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-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(${a}-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:o}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},dN=e=>{const{lineWidth:t,fontSizeIcon:r,calc:n}=e,a=e.fontSizeSM;return Yt(e,{tagFontSize:a,tagLineHeight:se(n(e.lineHeightSM).mul(a).equal()),tagIconSize:n(r).sub(n(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},fN=e=>({defaultBg:new lr(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),fK=or("Tag",e=>{const t=dN(e);return kTe(t)},fN);var RTe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:r,style:n,className:a,checked:i,children:o,icon:s,onChange:l,onClick:c}=e,u=RTe(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:f,tag:m}=d.useContext(Nt),h=b=>{l==null||l(!i),c==null||c(b)},v=f("tag",r),[p,g,y]=fK(v),x=ce(v,`${v}-checkable`,{[`${v}-checkable-checked`]:i},m==null?void 0:m.className,a,g,y);return p(d.createElement("span",Object.assign({},u,{ref:t,style:Object.assign(Object.assign({},n),m==null?void 0:m.style),className:x,onClick:h}),s,d.createElement("span",null,o)))}),MTe=ATe,DTe=e=>c9(e,(t,{textColor:r,lightBorderColor:n,lightColor:a,darkColor:i})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:a,borderColor:n,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),jTe=U0(["Tag","preset"],e=>{const t=dN(e);return DTe(t)},fN);function FTe(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const iy=(e,t,r)=>{const n=FTe(r);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${r}`],background:e[`color${n}Bg`],borderColor:e[`color${n}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},LTe=U0(["Tag","status"],e=>{const t=dN(e);return[iy(t,"success","Success"),iy(t,"processing","Info"),iy(t,"error","Error"),iy(t,"warning","Warning")]},fN);var BTe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:r,className:n,rootClassName:a,style:i,children:o,icon:s,color:l,onClose:c,bordered:u=!0,visible:f}=e,m=BTe(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:h,direction:v,tag:p}=d.useContext(Nt),[g,y]=d.useState(!0),x=Er(m,["closeIcon","closable"]);d.useEffect(()=>{f!==void 0&&y(f)},[f]);const b=cW(l),S=xpe(l),w=b||S,E=Object.assign(Object.assign({backgroundColor:l&&!w?l:void 0},p==null?void 0:p.style),i),C=h("tag",r),[O,_,T]=fK(C),I=ce(C,p==null?void 0:p.className,{[`${C}-${l}`]:w,[`${C}-has-color`]:l&&!w,[`${C}-hidden`]:!g,[`${C}-rtl`]:v==="rtl",[`${C}-borderless`]:!u},n,a,_,T),N=F=>{F.stopPropagation(),c==null||c(F),!F.defaultPrevented&&y(!1)},[,D]=R9(t1(e),t1(p),{closable:!1,closeIconRender:F=>{const M=d.createElement("span",{className:`${C}-close-icon`,onClick:N},F);return zP(F,M,V=>({onClick:K=>{var L;(L=V==null?void 0:V.onClick)===null||L===void 0||L.call(V,K),N(K)},className:ce(V==null?void 0:V.className,`${C}-close-icon`)}))}}),k=typeof m.onClick=="function"||o&&o.type==="a",R=s||null,A=R?d.createElement(d.Fragment,null,R,o&&d.createElement("span",null,o)):o,j=d.createElement("span",Object.assign({},x,{ref:t,className:I,style:E}),A,D,b&&d.createElement(jTe,{key:"preset",prefixCls:C}),S&&d.createElement(LTe,{key:"status",prefixCls:C}));return O(k?d.createElement(nS,{component:"Tag"},j):j)}),mK=zTe;mK.CheckableTag=MTe;const mn=mK;var HTe={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"};const WTe=HTe;var VTe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:WTe}))},UTe=d.forwardRef(VTe);const fu=UTe;var KTe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};const GTe=KTe;var qTe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:GTe}))},XTe=d.forwardRef(qTe);const Gc=XTe;var YTe={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"};const QTe=YTe;var ZTe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:QTe}))},JTe=d.forwardRef(ZTe);const ePe=JTe,tPe=(e,t,r,n)=>{const{titleMarginBottom:a,fontWeightStrong:i}=n;return{marginBottom:a,color:r,fontWeight:i,fontSize:e,lineHeight:t}},rPe=e=>{const t=[1,2,3,4,5],r={};return t.forEach(n=>{r[` + h${n}&, + div&-h${n}, + div&-h${n} > textarea, + h${n} + `]=tPe(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),r},nPe=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},DP(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},aPe=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Qx[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),iPe=e=>{const{componentCls:t,paddingSM:r}=e,n=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(n).div(-2).add(1).equal(),marginBottom:e.calc(n).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},oPe=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),sPe=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),lPe=e=>{const{componentCls:t,titleMarginTop:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},rPe(e)),{[` + & + h1${t}, + & + h2${t}, + & + h3${t}, + & + h4${t}, + & + h5${t} + `]:{marginTop:r},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:r}}}),aPe(e)),nPe(e)),{[` + ${t}-expand, + ${t}-collapse, + ${t}-edit, + ${t}-copy + `]:Object.assign(Object.assign({},DP(e)),{marginInlineStart:e.marginXXS})}),iPe(e)),oPe(e)),sPe()),{"&-rtl":{direction:"rtl"}})}},cPe=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),hK=or("Typography",lPe,cPe),uPe=e=>{const{prefixCls:t,"aria-label":r,className:n,style:a,direction:i,maxLength:o,autoSize:s=!0,value:l,onSave:c,onCancel:u,onEnd:f,component:m,enterIcon:h=d.createElement(ePe,null)}=e,v=d.useRef(null),p=d.useRef(!1),g=d.useRef(null),[y,x]=d.useState(l);d.useEffect(()=>{x(l)},[l]),d.useEffect(()=>{var k;if(!((k=v.current)===null||k===void 0)&&k.resizableTextArea){const{textArea:R}=v.current.resizableTextArea;R.focus();const{length:A}=R.value;R.setSelectionRange(A,A)}},[]);const b=({target:k})=>{x(k.value.replace(/[\n\r]/g,""))},S=()=>{p.current=!0},w=()=>{p.current=!1},E=({keyCode:k})=>{p.current||(g.current=k)},C=()=>{c(y.trim())},O=({keyCode:k,ctrlKey:R,altKey:A,metaKey:j,shiftKey:F})=>{g.current!==k||p.current||R||A||j||F||(k===Qe.ENTER?(C(),f==null||f()):k===Qe.ESC&&u())},_=()=>{C()},[T,I,N]=hK(t),D=ce(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl",[`${t}-${m}`]:!!m},n,I,N);return T(d.createElement("div",{className:D,style:a},d.createElement(CU,{ref:v,maxLength:o,value:y,onChange:b,onKeyDown:E,onKeyUp:O,onCompositionStart:S,onCompositionEnd:w,onBlur:_,"aria-label":r,rows:1,autoSize:s}),h!==null?pa(h,{className:`${t}-edit-content-confirm`}):null))},dPe=uPe;var fPe=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=Tj[t.format]||Tj.default;window.clipboardData.setData(f,e)}else u.clipboardData.clearData(),u.clipboardData.setData(t.format,e);t.onCopy&&(u.preventDefault(),t.onCopy(u.clipboardData))}),document.body.appendChild(s),i.selectNodeContents(s),o.addRange(i);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(u){r&&console.error("unable to copy using execCommand: ",u),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(f){r&&console.error("unable to copy using clipboardData: ",f),r&&console.error("falling back to prompt"),n=pPe("message"in t?t.message:hPe),window.prompt(n,e)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(i):o.removeAllRanges()),s&&document.body.removeChild(s),a()}return l}var gPe=vPe;const yPe=sa(gPe);var xPe=globalThis&&globalThis.__awaiter||function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(u){try{c(n.next(u))}catch(f){o(f)}}function l(u){try{c(n.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):a(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};const bPe=({copyConfig:e,children:t})=>{const[r,n]=d.useState(!1),[a,i]=d.useState(!1),o=d.useRef(null),s=()=>{o.current&&clearTimeout(o.current)},l={};e.format&&(l.format=e.format),d.useEffect(()=>s,[]);const c=qt(u=>xPe(void 0,void 0,void 0,function*(){var f;u==null||u.preventDefault(),u==null||u.stopPropagation(),i(!0);try{const m=typeof e.text=="function"?yield e.text():e.text;yPe(m||S2e(t,!0).join("")||"",l),i(!1),n(!0),s(),o.current=setTimeout(()=>{n(!1)},3e3),(f=e.onCopy)===null||f===void 0||f.call(e,u)}catch(m){throw i(!1),m}}));return{copied:r,copyLoading:a,onClick:c}},SPe=bPe;function K2(e,t){return d.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const wPe=e=>{const t=d.useRef(void 0);return d.useEffect(()=>{t.current=e}),t.current},CPe=wPe,EPe=(e,t,r)=>d.useMemo(()=>e===!0?{title:t??r}:d.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??r},e):{title:e},[e,t,r]),$Pe=EPe;var _Pe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:r,component:n="article",className:a,rootClassName:i,setContentRef:o,children:s,direction:l,style:c}=e,u=_Pe(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:m,className:h,style:v}=Fn("typography"),p=l??m,g=o?xa(t,o):t,y=f("typography",r),[x,b,S]=hK(y),w=ce(y,h,{[`${y}-rtl`]:p==="rtl"},a,i,b,S),E=Object.assign(Object.assign({},v),c);return x(d.createElement(n,Object.assign({className:w,style:E,ref:g},u),s))}),pK=OPe;var TPe={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"};const PPe=TPe;var IPe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:PPe}))},NPe=d.forwardRef(IPe);const kPe=NPe;function Pj(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function G2(e,t,r){return e===!0||e===void 0?t:e||r&&t}function RPe(e){const t=document.createElement("em");e.appendChild(t);const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return e.removeChild(t),r.left>n.left||n.right>r.right||r.top>n.top||n.bottom>r.bottom}const mN=e=>["string","number"].includes(typeof e),APe=({prefixCls:e,copied:t,locale:r,iconOnly:n,tooltips:a,icon:i,tabIndex:o,onCopy:s,loading:l})=>{const c=Pj(a),u=Pj(i),{copied:f,copy:m}=r??{},h=t?f:m,v=G2(c[t?1:0],h),p=typeof v=="string"?v:h;return d.createElement(Os,{title:v},d.createElement("button",{type:"button",className:ce(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:n}),onClick:s,"aria-label":p,tabIndex:o},t?G2(u[1],d.createElement(lI,null),!0):G2(u[0],l?d.createElement(Wc,null):d.createElement(kPe,null),!0)))},MPe=APe,oy=d.forwardRef(({style:e,children:t},r)=>{const n=d.useRef(null);return d.useImperativeHandle(r,()=>({isExceed:()=>{const a=n.current;return a.scrollHeight>a.clientHeight},getHeight:()=>n.current.clientHeight})),d.createElement("span",{"aria-hidden":!0,ref:n,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),DPe=e=>e.reduce((t,r)=>t+(mN(r)?String(r).length:1),0);function Ij(e,t){let r=0;const n=[];for(let a=0;at){const c=t-r;return n.push(String(i).slice(0,c)),n}n.push(i),r=l}return e}const q2=0,X2=1,Y2=2,Q2=3,Nj=4,sy={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function jPe(e){const{enableMeasure:t,width:r,text:n,children:a,rows:i,expanded:o,miscDeps:s,onEllipsis:l}=e,c=d.useMemo(()=>ha(n),[n]),u=d.useMemo(()=>DPe(c),[n]),f=d.useMemo(()=>a(c,!1),[n]),[m,h]=d.useState(null),v=d.useRef(null),p=d.useRef(null),g=d.useRef(null),y=d.useRef(null),x=d.useRef(null),[b,S]=d.useState(!1),[w,E]=d.useState(q2),[C,O]=d.useState(0),[_,T]=d.useState(null);Gt(()=>{E(t&&r&&u?X2:q2)},[r,n,i,t,c]),Gt(()=>{var k,R,A,j;if(w===X2){E(Y2);const F=p.current&&getComputedStyle(p.current).whiteSpace;T(F)}else if(w===Y2){const F=!!(!((k=g.current)===null||k===void 0)&&k.isExceed());E(F?Q2:Nj),h(F?[0,u]:null),S(F);const M=((R=g.current)===null||R===void 0?void 0:R.getHeight())||0,V=i===1?0:((A=y.current)===null||A===void 0?void 0:A.getHeight())||0,K=((j=x.current)===null||j===void 0?void 0:j.getHeight())||0,L=Math.max(M,V+K);O(L+1),l(F)}},[w]);const I=m?Math.ceil((m[0]+m[1])/2):0;Gt(()=>{var k;const[R,A]=m||[0,0];if(R!==A){const F=(((k=v.current)===null||k===void 0?void 0:k.getHeight())||0)>C;let M=I;A-R===1&&(M=F?R:A),h(F?[R,M]:[M,A])}},[m,I]);const N=d.useMemo(()=>{if(!t)return a(c,!1);if(w!==Q2||!m||m[0]!==m[1]){const k=a(c,!1);return[Nj,q2].includes(w)?k:d.createElement("span",{style:Object.assign(Object.assign({},sy),{WebkitLineClamp:i})},k)}return a(o?c:Ij(c,m[0]),b)},[o,w,m,c].concat(De(s))),D={width:r,margin:0,padding:0,whiteSpace:_==="nowrap"?"normal":"inherit"};return d.createElement(d.Fragment,null,N,w===Y2&&d.createElement(d.Fragment,null,d.createElement(oy,{style:Object.assign(Object.assign(Object.assign({},D),sy),{WebkitLineClamp:i}),ref:g},f),d.createElement(oy,{style:Object.assign(Object.assign(Object.assign({},D),sy),{WebkitLineClamp:i-1}),ref:y},f),d.createElement(oy,{style:Object.assign(Object.assign(Object.assign({},D),sy),{WebkitLineClamp:1}),ref:x},a([],!0))),w===Q2&&m&&m[0]!==m[1]&&d.createElement(oy,{style:Object.assign(Object.assign({},D),{top:400}),ref:v},a(Ij(c,I),!0)),w===X2&&d.createElement("span",{style:{whiteSpace:"inherit"},ref:p}))}const FPe=({enableEllipsis:e,isEllipsis:t,children:r,tooltipProps:n})=>!(n!=null&&n.title)||!e?r:d.createElement(Os,Object.assign({open:t?void 0:!1},n),r),LPe=FPe;var BPe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var r;const{prefixCls:n,className:a,style:i,type:o,disabled:s,children:l,ellipsis:c,editable:u,copyable:f,component:m,title:h}=e,v=BPe(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:p,direction:g}=d.useContext(Nt),[y]=Hi("Text"),x=d.useRef(null),b=d.useRef(null),S=p("typography",n),w=Er(v,kj),[E,C]=K2(u),[O,_]=br(!1,{value:C.editing}),{triggerType:T=["icon"]}=C,I=ge=>{var Se;ge&&((Se=C.onStart)===null||Se===void 0||Se.call(C)),_(ge)},N=CPe(O);Gt(()=>{var ge;!O&&N&&((ge=b.current)===null||ge===void 0||ge.focus())},[O]);const D=ge=>{ge==null||ge.preventDefault(),I(!0)},k=ge=>{var Se;(Se=C.onChange)===null||Se===void 0||Se.call(C,ge),I(!1)},R=()=>{var ge;(ge=C.onCancel)===null||ge===void 0||ge.call(C),I(!1)},[A,j]=K2(f),{copied:F,copyLoading:M,onClick:V}=SPe({copyConfig:j,children:l}),[K,L]=d.useState(!1),[B,W]=d.useState(!1),[H,U]=d.useState(!1),[X,Y]=d.useState(!1),[G,Q]=d.useState(!0),[J,z]=K2(c,{expandable:!1,symbol:ge=>ge?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[fe,te]=br(z.defaultExpanded||!1,{value:z.expanded}),re=J&&(!fe||z.expandable==="collapsible"),{rows:q=1}=z,ne=d.useMemo(()=>re&&(z.suffix!==void 0||z.onEllipsis||z.expandable||E||A),[re,z,E,A]);Gt(()=>{J&&!ne&&(L(M_("webkitLineClamp")),W(M_("textOverflow")))},[ne,J]);const[he,xe]=d.useState(re),ye=d.useMemo(()=>ne?!1:q===1?B:K,[ne,B,K]);Gt(()=>{xe(ye&&re)},[ye,re]);const pe=re&&(he?X:H),be=re&&q===1&&he,_e=re&&q>1&&he,$e=(ge,Se)=>{var Re;te(Se.expanded),(Re=z.onExpand)===null||Re===void 0||Re.call(z,ge,Se)},[Be,Fe]=d.useState(0),nt=({offsetWidth:ge})=>{Fe(ge)},qe=ge=>{var Se;U(ge),H!==ge&&((Se=z.onEllipsis)===null||Se===void 0||Se.call(z,ge))};d.useEffect(()=>{const ge=x.current;if(J&&he&&ge){const Se=RPe(ge);X!==Se&&Y(Se)}},[J,he,l,_e,G,Be]),d.useEffect(()=>{const ge=x.current;if(typeof IntersectionObserver>"u"||!ge||!he||!re)return;const Se=new IntersectionObserver(()=>{Q(!!ge.offsetParent)});return Se.observe(ge),()=>{Se.disconnect()}},[he,re]);const Ge=$Pe(z.tooltip,C.text,l),Le=d.useMemo(()=>{if(!(!J||he))return[C.text,l,h,Ge.title].find(mN)},[J,he,h,Ge.title,pe]);if(O)return d.createElement(dPe,{value:(r=C.text)!==null&&r!==void 0?r:typeof l=="string"?l:"",onSave:k,onCancel:R,onEnd:C.onEnd,prefixCls:S,className:a,style:i,direction:g,component:m,maxLength:C.maxLength,autoSize:C.autoSize,enterIcon:C.enterIcon});const Ne=()=>{const{expandable:ge,symbol:Se}=z;return ge?d.createElement("button",{type:"button",key:"expand",className:`${S}-${fe?"collapse":"expand"}`,onClick:Re=>$e(Re,{expanded:!fe}),"aria-label":fe?y.collapse:y==null?void 0:y.expand},typeof Se=="function"?Se(fe):Se):null},we=()=>{if(!E)return;const{icon:ge,tooltip:Se,tabIndex:Re}=C,We=ha(Se)[0]||(y==null?void 0:y.edit),at=typeof We=="string"?We:"";return T.includes("icon")?d.createElement(Os,{key:"edit",title:Se===!1?"":We},d.createElement("button",{type:"button",ref:b,className:`${S}-edit`,onClick:D,"aria-label":at,tabIndex:Re},ge||d.createElement(Gc,{role:"button"}))):null},je=()=>A?d.createElement(MPe,Object.assign({key:"copy"},j,{prefixCls:S,copied:F,locale:y,onCopy:V,loading:M,iconOnly:l==null})):null,Oe=ge=>[ge&&Ne(),we(),je()],Me=ge=>[ge&&!fe&&d.createElement("span",{"aria-hidden":!0,key:"ellipsis"},HPe),z.suffix,Oe(ge)];return d.createElement(Aa,{onResize:nt,disabled:!re},ge=>d.createElement(LPe,{tooltipProps:Ge,enableEllipsis:re,isEllipsis:pe},d.createElement(pK,Object.assign({className:ce({[`${S}-${o}`]:o,[`${S}-disabled`]:s,[`${S}-ellipsis`]:J,[`${S}-ellipsis-single-line`]:be,[`${S}-ellipsis-multiple-line`]:_e},a),prefixCls:n,style:Object.assign(Object.assign({},i),{WebkitLineClamp:_e?q:void 0}),component:m,ref:xa(ge,x,t),direction:g,onClick:T.includes("text")?D:void 0,"aria-label":Le==null?void 0:Le.toString(),title:h},w),d.createElement(jPe,{enableMeasure:re&&!he,text:l,rows:q,width:Be,onEllipsis:qe,expanded:fe,miscDeps:[F,fe,M,E,A,y].concat(De(kj.map(Se=>e[Se])))},(Se,Re)=>zPe(e,d.createElement(d.Fragment,null,Se.length>0&&Re&&!fe&&Le?d.createElement("span",{key:"show-content","aria-hidden":!0},Se):Se,Me(Re)))))))}),US=WPe;var VPe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{ellipsis:r,rel:n,children:a,navigate:i}=e,o=VPe(e,["ellipsis","rel","children","navigate"]),s=Object.assign(Object.assign({},o),{rel:n===void 0&&o.target==="_blank"?"noopener noreferrer":n});return d.createElement(US,Object.assign({},s,{ref:t,ellipsis:!!r,component:"a"}),a)}),KPe=UPe;var GPe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{children:r}=e,n=GPe(e,["children"]);return d.createElement(US,Object.assign({ref:t},n,{component:"div"}),r)}),XPe=qPe;var YPe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{ellipsis:r,children:n}=e,a=YPe(e,["ellipsis","children"]),i=d.useMemo(()=>r&&typeof r=="object"?Er(r,["expandable","rows"]):r,[r]);return d.createElement(US,Object.assign({ref:t},a,{ellipsis:i,component:"span"}),n)},ZPe=d.forwardRef(QPe);var JPe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{level:r=1,children:n}=e,a=JPe(e,["level","children"]),i=eIe.includes(r)?`h${r}`:"h1";return d.createElement(US,Object.assign({ref:t},a,{component:i}),n)}),rIe=tIe,Nv=pK;Nv.Text=ZPe;Nv.Link=KPe;Nv.Title=rIe;Nv.Paragraph=XPe;const kv=Nv,Z2=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",a=e.type||"",i=a.replace(/\/.*$/,"");return r.some(function(o){var s=o.trim();if(/^\*(\/\*)?$/.test(o))return!0;if(s.charAt(0)==="."){var l=n.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(f){return l.endsWith(f)})}return/\/\*$/.test(s)?i===s.replace(/\/.*$/,""):a===s?!0:/^\w+$/.test(s)?(Br(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function nIe(e,t){var r="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),n=new Error(r);return n.status=t.status,n.method=e.method,n.url=e.action,n}function Rj(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function Aj(e){var 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)});var r=new FormData;e.data&&Object.keys(e.data).forEach(function(a){var i=e.data[a];if(Array.isArray(i)){i.forEach(function(o){r.append("".concat(a,"[]"),o)});return}r.append(a,i)}),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(nIe(e,t),Rj(t)):e.onSuccess(Rj(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var n=e.headers||{};return n["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach(function(a){n[a]!==null&&t.setRequestHeader(a,n[a])}),t.send(r),{abort:function(){t.abort()}}}var aIe=function(){var e=xi(Or().mark(function t(r,n){var a,i,o,s,l,c,u,f;return Or().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:c=function(){return c=xi(Or().mark(function p(g){return Or().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.abrupt("return",new Promise(function(b){g.file(function(S){n(S)?(g.fullPath&&!S.webkitRelativePath&&(Object.defineProperties(S,{webkitRelativePath:{writable:!0}}),S.webkitRelativePath=g.fullPath.replace(/^\//,""),Object.defineProperties(S,{webkitRelativePath:{writable:!1}})),b(S)):b(null)})}));case 1:case"end":return x.stop()}},p)})),c.apply(this,arguments)},l=function(p){return c.apply(this,arguments)},s=function(){return s=xi(Or().mark(function p(g){var y,x,b,S,w;return Or().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:y=g.createReader(),x=[];case 2:return C.next=5,new Promise(function(O){y.readEntries(O,function(){return O([])})});case 5:if(b=C.sent,S=b.length,S){C.next=9;break}return C.abrupt("break",12);case 9:for(w=0;w0||p.some(function(S){return S.kind==="file"}))&&(u==null||u()),!v){b.next=11;break}return b.next=7,aIe(Array.prototype.slice.call(p),function(S){return Z2(S,n.props.accept)});case 7:g=b.sent,n.uploadFiles(g),b.next=14;break;case 11:y=De(g).filter(function(S){return Z2(S,h)}),m===!1&&(y=g.slice(0,1)),n.uploadFiles(y);case 14:case"end":return b.stop()}},l)}));return function(l,c){return s.apply(this,arguments)}}()),ee(vt(n),"onFilePaste",function(){var s=xi(Or().mark(function l(c){var u,f;return Or().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(u=n.props.pastable,u){h.next=3;break}return h.abrupt("return");case 3:if(c.type!=="paste"){h.next=6;break}return f=c.clipboardData,h.abrupt("return",n.onDataTransferFiles(f,function(){c.preventDefault()}));case 6:case"end":return h.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),ee(vt(n),"onFileDragOver",function(s){s.preventDefault()}),ee(vt(n),"onFileDrop",function(){var s=xi(Or().mark(function l(c){var u;return Or().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(c.preventDefault(),c.type!=="drop"){m.next=4;break}return u=c.dataTransfer,m.abrupt("return",n.onDataTransferFiles(u));case 4:case"end":return m.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),ee(vt(n),"uploadFiles",function(s){var l=De(s),c=l.map(function(u){return u.uid=J2(),n.processFile(u,l)});Promise.all(c).then(function(u){var f=n.props.onBatchStart;f==null||f(u.map(function(m){var h=m.origin,v=m.parsedFile;return{file:h,parsedFile:v}})),u.filter(function(m){return m.parsedFile!==null}).forEach(function(m){n.post(m)})})}),ee(vt(n),"processFile",function(){var s=xi(Or().mark(function l(c,u){var f,m,h,v,p,g,y,x,b;return Or().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(f=n.props.beforeUpload,m=c,!f){w.next=14;break}return w.prev=3,w.next=6,f(c,u);case 6:m=w.sent,w.next=12;break;case 9:w.prev=9,w.t0=w.catch(3),m=!1;case 12:if(m!==!1){w.next=14;break}return w.abrupt("return",{origin:c,parsedFile:null,action:null,data:null});case 14:if(h=n.props.action,typeof h!="function"){w.next=21;break}return w.next=18,h(c);case 18:v=w.sent,w.next=22;break;case 21:v=h;case 22:if(p=n.props.data,typeof p!="function"){w.next=29;break}return w.next=26,p(c);case 26:g=w.sent,w.next=30;break;case 29:g=p;case 30:return y=(bt(m)==="object"||typeof m=="string")&&m?m:c,y instanceof File?x=y:x=new File([y],c.name,{type:c.type}),b=x,b.uid=c.uid,w.abrupt("return",{origin:c,data:g,parsedFile:b,action:v});case 35:case"end":return w.stop()}},l,null,[[3,9]])}));return function(l,c){return s.apply(this,arguments)}}()),ee(vt(n),"saveFileInput",function(s){n.fileInput=s}),n}return Vr(r,[{key:"componentDidMount",value:function(){this._isMounted=!0;var a=this.props.pastable;a&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(a){var i=this.props.pastable;i&&!a.pastable?document.addEventListener("paste",this.onFilePaste):!i&&a.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(a){var i=this,o=a.data,s=a.origin,l=a.action,c=a.parsedFile;if(this._isMounted){var u=this.props,f=u.onStart,m=u.customRequest,h=u.name,v=u.headers,p=u.withCredentials,g=u.method,y=s.uid,x=m||Aj,b={action:l,filename:h,data:o,file:c,headers:v,withCredentials:p,method:g||"post",onProgress:function(w){var E=i.props.onProgress;E==null||E(w,c)},onSuccess:function(w,E){var C=i.props.onSuccess;C==null||C(w,c,E),delete i.reqs[y]},onError:function(w,E){var C=i.props.onError;C==null||C(w,E,c),delete i.reqs[y]}};f(s),this.reqs[y]=x(b,{defaultRequest:Aj})}}},{key:"reset",value:function(){this.setState({uid:J2()})}},{key:"abort",value:function(a){var i=this.reqs;if(a){var o=a.uid?a.uid:a;i[o]&&i[o].abort&&i[o].abort(),delete i[o]}else Object.keys(i).forEach(function(s){i[s]&&i[s].abort&&i[s].abort(),delete i[s]})}},{key:"render",value:function(){var a=this.props,i=a.component,o=a.prefixCls,s=a.className,l=a.classNames,c=l===void 0?{}:l,u=a.disabled,f=a.id,m=a.name,h=a.style,v=a.styles,p=v===void 0?{}:v,g=a.multiple,y=a.accept,x=a.capture,b=a.children,S=a.directory,w=a.folder,E=a.openFileDialogOnClick,C=a.onMouseEnter,O=a.onMouseLeave,_=a.hasControlInside,T=Rt(a,sIe),I=ce(ee(ee(ee({},o,!0),"".concat(o,"-disabled"),u),s,s)),N=S||w?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},D=u?{}:{onClick:E?this.onClick:function(){},onKeyDown:E?this.onKeyDown:function(){},onMouseEnter:C,onMouseLeave:O,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:_?void 0:"0"};return ve.createElement(i,Te({},D,{className:I,role:_?void 0:"button",style:h}),ve.createElement("input",Te({},Dn(T,{aria:!0,data:!0}),{id:f,name:m,disabled:u,type:"file",ref:this.saveFileInput,onClick:function(R){return R.stopPropagation()},key:this.state.uid,style:ae({display:"none"},p.input),className:c.input,accept:y},N,{multiple:g,onChange:this.onChange},x!=null?{capture:x}:{})),b)}}]),r}(d.Component);function eE(){}var mO=function(e){yo(r,e);var t=Qo(r);function r(){var n;Wr(this,r);for(var a=arguments.length,i=new Array(a),o=0;o{const{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${se(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${se(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` + &:not(${t}-disabled):hover, + &-hover:not(${t}-disabled) + `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${se(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${r}, + p${t}-text, + p${t}-hint + `]:{color:e.colorTextDisabled}}}}}},uIe=cIe,dIe=e=>{const{componentCls:t,iconCls:r,fontSize:n,lineHeight:a,calc:i}=e,o=`${t}-list-item`,s=`${o}-actions`,l=`${o}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},rl()),{lineHeight:e.lineHeight,[o]:{position:"relative",height:i(e.lineHeight).mul(n).equal(),marginTop:e.marginXS,fontSize:n,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${o}-name`]:Object.assign(Object.assign({},Uo),{padding:`0 ${se(e.paddingXS)}`,lineHeight:a,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` + ${l}:focus-visible, + &.picture ${l} + `]:{opacity:1}},[`${t}-icon ${r}`]:{color:e.colorIcon,fontSize:n},[`${o}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(n).add(e.paddingXS).equal(),fontSize:n,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${o}:hover ${l}`]:{opacity:1},[`${o}-error`]:{color:e.colorError,[`${o}-name, ${t}-icon ${r}`]:{color:e.colorError},[s]:{[`${r}, ${r}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},fIe=dIe,mIe=e=>{const{componentCls:t}=e,r=new fr("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),n=new fr("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),a=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${a}-appear, ${a}-enter, ${a}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${a}-appear, ${a}-enter`]:{animationName:r},[`${a}-leave`]:{animationName:n}}},{[`${t}-wrapper`]:U9(e)},r,n]},hIe=mIe,pIe=e=>{const{componentCls:t,iconCls:r,uploadThumbnailSize:n,uploadProgressOffset:a,calc:i}=e,o=`${t}-list`,s=`${o}-item`;return{[`${t}-wrapper`]:{[` + ${o}${o}-picture, + ${o}${o}-picture-card, + ${o}${o}-picture-circle + `]:{[s]:{position:"relative",height:i(n).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${se(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},Uo),{width:n,height:n,lineHeight:se(i(n).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[r]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:a,width:`calc(100% - ${se(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(n).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${r}`]:{[`svg path[fill='${y0[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${y0.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:a}}},[`${o}${o}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},vIe=e=>{const{componentCls:t,iconCls:r,fontSizeLG:n,colorTextLightSolid:a,calc:i}=e,o=`${t}-list`,s=`${o}-item`,l=e.uploadPicCardSize;return{[` + ${t}-wrapper${t}-picture-card-wrapper, + ${t}-wrapper${t}-picture-circle-wrapper + `]:Object.assign(Object.assign({},rl()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${se(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${o}${o}-picture-card, ${o}${o}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${o}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${se(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${se(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` + ${r}-eye, + ${r}-download, + ${r}-delete + `]:{zIndex:10,width:n,margin:`0 ${se(e.marginXXS)}`,fontSize:n,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${se(i(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${se(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},gIe=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},yIe=gIe,xIe=e=>{const{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},ur(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}},bIe=e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55}),SIe=or("Upload",e=>{const{fontSizeHeading3:t,fontHeight:r,lineWidth:n,pictureCardSize:a,calc:i}=e,o=Yt(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(r).div(2)).add(n).equal(),uploadPicCardSize:a});return[xIe(o),uIe(o),pIe(o),vIe(o),fIe(o),hIe(o),yIe(o),iS(o)]},bIe);var wIe={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:r}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"};const CIe=wIe;var EIe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:CIe}))},$Ie=d.forwardRef(EIe);const _Ie=$Ie;var OIe={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"};const TIe=OIe;var PIe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:TIe}))},IIe=d.forwardRef(PIe);const NIe=IIe;var kIe={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:r}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:r}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:r}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"};const RIe=kIe;var AIe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:RIe}))},MIe=d.forwardRef(AIe);const DIe=MIe;function ly(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function cy(e,t){const r=De(t),n=r.findIndex(({uid:a})=>a===e.uid);return n===-1?r.push(e):r[n]=e,r}function tE(e,t){const r=e.uid!==void 0?"uid":"name";return t.filter(n=>n[r]===e[r])[0]}function jIe(e,t){const r=e.uid!==void 0?"uid":"name",n=t.filter(a=>a[r]!==e[r]);return n.length===t.length?null:n}const FIe=(e="")=>{const t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},vK=e=>e.indexOf("image/")===0,LIe=e=>{if(e.type&&!e.thumbUrl)return vK(e.type);const t=e.thumbUrl||e.url||"",r=FIe(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r)?!0:!(/^data:/.test(t)||r)},rc=200;function BIe(e){return new Promise(t=>{if(!e.type||!vK(e.type)){t("");return}const r=document.createElement("canvas");r.width=rc,r.height=rc,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${rc}px; height: ${rc}px; z-index: 9999; display: none;`,document.body.appendChild(r);const n=r.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:i,height:o}=a;let s=rc,l=rc,c=0,u=0;i>o?(l=o*(rc/i),u=-(l-s)/2):(s=i*(rc/o),c=-(s-l)/2),n.drawImage(a,c,u,s,l);const f=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(a.src),t(f)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(a.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}var zIe={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"};const HIe=zIe;var WIe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:HIe}))},VIe=d.forwardRef(WIe);const hN=VIe,UIe=d.forwardRef(({prefixCls:e,className:t,style:r,locale:n,listType:a,file:i,items:o,progress:s,iconRender:l,actionIconRender:c,itemRender:u,isImgUrl:f,showPreviewIcon:m,showRemoveIcon:h,showDownloadIcon:v,previewIcon:p,removeIcon:g,downloadIcon:y,extra:x,onPreview:b,onDownload:S,onClose:w},E)=>{var C,O;const{status:_}=i,[T,I]=d.useState(_);d.useEffect(()=>{_!=="removed"&&I(_)},[_]);const[N,D]=d.useState(!1);d.useEffect(()=>{const z=setTimeout(()=>{D(!0)},300);return()=>{clearTimeout(z)}},[]);const k=l(i);let R=d.createElement("div",{className:`${e}-icon`},k);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(T==="uploading"||!i.thumbUrl&&!i.url){const z=ce(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:T!=="uploading"});R=d.createElement("div",{className:z},k)}else{const z=f!=null&&f(i)?d.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):k,fe=ce(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:f&&!f(i)});R=d.createElement("a",{className:fe,onClick:te=>b(i,te),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},z)}const A=ce(`${e}-list-item`,`${e}-list-item-${T}`),j=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,F=(typeof h=="function"?h(i):h)?c((typeof g=="function"?g(i):g)||d.createElement(fu,null),()=>w(i),e,n.removeFile,!0):null,M=(typeof v=="function"?v(i):v)&&T==="done"?c((typeof y=="function"?y(i):y)||d.createElement(hN,null),()=>S(i),e,n.downloadFile):null,V=a!=="picture-card"&&a!=="picture-circle"&&d.createElement("span",{key:"download-delete",className:ce(`${e}-list-item-actions`,{picture:a==="picture"})},M,F),K=typeof x=="function"?x(i):x,L=K&&d.createElement("span",{className:`${e}-list-item-extra`},K),B=ce(`${e}-list-item-name`),W=i.url?d.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:B,title:i.name},j,{href:i.url,onClick:z=>b(i,z)}),i.name,L):d.createElement("span",{key:"view",className:B,onClick:z=>b(i,z),title:i.name},i.name,L),H=(typeof m=="function"?m(i):m)&&(i.url||i.thumbUrl)?d.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:z=>b(i,z),title:n.previewFile},typeof p=="function"?p(i):p||d.createElement(Pv,null)):null,U=(a==="picture-card"||a==="picture-circle")&&T!=="uploading"&&d.createElement("span",{className:`${e}-list-item-actions`},H,T==="done"&&M,F),{getPrefixCls:X}=d.useContext(Nt),Y=X(),G=d.createElement("div",{className:A},R,W,V,U,N&&d.createElement(Vi,{motionName:`${Y}-fade`,visible:T==="uploading",motionDeadline:2e3},({className:z})=>{const fe="percent"in i?d.createElement(Sc,Object.assign({type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]},s)):null;return d.createElement("div",{className:ce(`${e}-list-item-progress`,z)},fe)})),Q=i.response&&typeof i.response=="string"?i.response:((C=i.error)===null||C===void 0?void 0:C.statusText)||((O=i.error)===null||O===void 0?void 0:O.message)||n.uploadError,J=T==="error"?d.createElement(Os,{title:Q,getPopupContainer:z=>z.parentNode},G):G;return d.createElement("div",{className:ce(`${e}-list-item-container`,t),style:r,ref:E},u?u(J,i,o,{download:S.bind(null,i),preview:b.bind(null,i),remove:w.bind(null,i)}):J)}),KIe=UIe,GIe=(e,t)=>{const{listType:r="text",previewFile:n=BIe,onPreview:a,onDownload:i,onRemove:o,locale:s,iconRender:l,isImageUrl:c=LIe,prefixCls:u,items:f=[],showPreviewIcon:m=!0,showRemoveIcon:h=!0,showDownloadIcon:v=!1,removeIcon:p,previewIcon:g,downloadIcon:y,extra:x,progress:b={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:w=!0,itemRender:E,disabled:C}=e,[,O]=HP(),[_,T]=d.useState(!1),I=["picture-card","picture-circle"].includes(r);d.useEffect(()=>{r.startsWith("picture")&&(f||[]).forEach(B=>{!(B.originFileObj instanceof File||B.originFileObj instanceof Blob)||B.thumbUrl!==void 0||(B.thumbUrl="",n==null||n(B.originFileObj).then(W=>{B.thumbUrl=W||"",O()}))})},[r,f,n]),d.useEffect(()=>{T(!0)},[]);const N=(B,W)=>{if(a)return W==null||W.preventDefault(),a(B)},D=B=>{typeof i=="function"?i(B):B.url&&window.open(B.url)},k=B=>{o==null||o(B)},R=B=>{if(l)return l(B,r);const W=B.status==="uploading";if(r.startsWith("picture")){const H=r==="picture"?d.createElement(Wc,null):s.uploading,U=c!=null&&c(B)?d.createElement(DIe,null):d.createElement(_Ie,null);return W?H:U}return W?d.createElement(Wc,null):d.createElement(NIe,null)},A=(B,W,H,U,X)=>{const Y={type:"text",size:"small",title:U,onClick:G=>{var Q,J;W(),d.isValidElement(B)&&((J=(Q=B.props).onClick)===null||J===void 0||J.call(Q,G))},className:`${H}-list-item-action`,disabled:X?C:!1};return d.isValidElement(B)?d.createElement(kt,Object.assign({},Y,{icon:pa(B,Object.assign(Object.assign({},B.props),{onClick:()=>{}}))})):d.createElement(kt,Object.assign({},Y),d.createElement("span",null,B))};d.useImperativeHandle(t,()=>({handlePreview:N,handleDownload:D}));const{getPrefixCls:j}=d.useContext(Nt),F=j("upload",u),M=j(),V=ce(`${F}-list`,`${F}-list-${r}`),K=d.useMemo(()=>Er(vp(M),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[M]),L=Object.assign(Object.assign({},I?{}:K),{motionDeadline:2e3,motionName:`${F}-${I?"animate-inline":"animate"}`,keys:De(f.map(B=>({key:B.uid,file:B}))),motionAppear:_});return d.createElement("div",{className:V},d.createElement(FP,Object.assign({},L,{component:!1}),({key:B,file:W,className:H,style:U})=>d.createElement(KIe,{key:B,locale:s,prefixCls:F,className:H,style:U,file:W,items:f,progress:b,listType:r,isImgUrl:c,showPreviewIcon:m,showRemoveIcon:h,showDownloadIcon:v,removeIcon:p,previewIcon:g,downloadIcon:y,extra:x,iconRender:R,actionIconRender:A,itemRender:E,onPreview:N,onDownload:D,onClose:k})),S&&d.createElement(Vi,Object.assign({},L,{visible:w,forceRender:!0}),({className:B,style:W})=>pa(S,H=>({className:ce(H.className,B),style:Object.assign(Object.assign(Object.assign({},W),{pointerEvents:B?"none":void 0}),H.style)}))))},qIe=d.forwardRef(GIe),XIe=qIe;var YIe=globalThis&&globalThis.__awaiter||function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(u){try{c(n.next(u))}catch(f){o(f)}}function l(u){try{c(n.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):a(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};const uh=`__LIST_IGNORE_${Date.now()}__`,QIe=(e,t)=>{const r=Fn("upload"),{fileList:n,defaultFileList:a,onRemove:i,showUploadList:o=!0,listType:s="text",onPreview:l,onDownload:c,onChange:u,onDrop:f,previewFile:m,disabled:h,locale:v,iconRender:p,isImageUrl:g,progress:y,prefixCls:x,className:b,type:S="select",children:w,style:E,itemRender:C,maxCount:O,data:_={},multiple:T=!1,hasControlInside:I=!0,action:N="",accept:D="",supportServerRender:k=!0,rootClassName:R}=e,A=d.useContext(Wi),j=h??A,F=e.customRequest||r.customRequest,[M,V]=br(a||[],{value:n,postState:ge=>ge??[]}),[K,L]=d.useState("drop"),B=d.useRef(null),W=d.useRef(null);d.useMemo(()=>{const ge=Date.now();(n||[]).forEach((Se,Re)=>{!Se.uid&&!Object.isFrozen(Se)&&(Se.uid=`__AUTO__${ge}_${Re}__`)})},[n]);const H=(ge,Se,Re)=>{let We=De(Se),at=!1;O===1?We=We.slice(-1):O&&(at=We.length>O,We=We.slice(0,O)),wi.flushSync(()=>{V(We)});const yt={file:ge,fileList:We};Re&&(yt.event=Re),(!at||ge.status==="removed"||We.some(tt=>tt.uid===ge.uid))&&wi.flushSync(()=>{u==null||u(yt)})},U=(ge,Se)=>YIe(void 0,void 0,void 0,function*(){const{beforeUpload:Re,transformFile:We}=e;let at=ge;if(Re){const yt=yield Re(ge,Se);if(yt===!1)return!1;if(delete ge[uh],yt===uh)return Object.defineProperty(ge,uh,{value:!0,configurable:!0}),!1;typeof yt=="object"&&yt&&(at=yt)}return We&&(at=yield We(at)),at}),X=ge=>{const Se=ge.filter(at=>!at.file[uh]);if(!Se.length)return;const Re=Se.map(at=>ly(at.file));let We=De(M);Re.forEach(at=>{We=cy(at,We)}),Re.forEach((at,yt)=>{let tt=at;if(Se[yt].parsedFile)at.status="uploading";else{const{originFileObj:it}=at;let ft;try{ft=new File([it],it.name,{type:it.type})}catch{ft=new Blob([it],{type:it.type}),ft.name=it.name,ft.lastModifiedDate=new Date,ft.lastModified=new Date().getTime()}ft.uid=at.uid,tt=ft}H(tt,We)})},Y=(ge,Se,Re)=>{try{typeof ge=="string"&&(ge=JSON.parse(ge))}catch{}if(!tE(Se,M))return;const We=ly(Se);We.status="done",We.percent=100,We.response=ge,We.xhr=Re;const at=cy(We,M);H(We,at)},G=(ge,Se)=>{if(!tE(Se,M))return;const Re=ly(Se);Re.status="uploading",Re.percent=ge.percent;const We=cy(Re,M);H(Re,We,ge)},Q=(ge,Se,Re)=>{if(!tE(Re,M))return;const We=ly(Re);We.error=ge,We.response=Se,We.status="error";const at=cy(We,M);H(We,at)},J=ge=>{let Se;Promise.resolve(typeof i=="function"?i(ge):i).then(Re=>{var We;if(Re===!1)return;const at=jIe(ge,M);at&&(Se=Object.assign(Object.assign({},ge),{status:"removed"}),M==null||M.forEach(yt=>{const tt=Se.uid!==void 0?"uid":"name";yt[tt]===Se[tt]&&!Object.isFrozen(yt)&&(yt.status="removed")}),(We=B.current)===null||We===void 0||We.abort(Se),H(Se,at))})},z=ge=>{L(ge.type),ge.type==="drop"&&(f==null||f(ge))};d.useImperativeHandle(t,()=>({onBatchStart:X,onSuccess:Y,onProgress:G,onError:Q,fileList:M,upload:B.current,nativeElement:W.current}));const{getPrefixCls:fe,direction:te,upload:re}=d.useContext(Nt),q=fe("upload",x),ne=Object.assign(Object.assign({onBatchStart:X,onError:Q,onProgress:G,onSuccess:Y},e),{customRequest:F,data:_,multiple:T,action:N,accept:D,supportServerRender:k,prefixCls:q,disabled:j,beforeUpload:U,onChange:void 0,hasControlInside:I});delete ne.className,delete ne.style,(!w||j)&&delete ne.id;const he=`${q}-wrapper`,[xe,ye,pe]=SIe(q,he),[be]=Hi("Upload",Vo.Upload),{showRemoveIcon:_e,showPreviewIcon:$e,showDownloadIcon:Be,removeIcon:Fe,previewIcon:nt,downloadIcon:qe,extra:Ge}=typeof o=="boolean"?{}:o,Le=typeof _e>"u"?!j:_e,Ne=(ge,Se)=>o?d.createElement(XIe,{prefixCls:q,listType:s,items:M,previewFile:m,onPreview:l,onDownload:c,onRemove:J,showRemoveIcon:Le,showPreviewIcon:$e,showDownloadIcon:Be,removeIcon:Fe,previewIcon:nt,downloadIcon:qe,iconRender:p,extra:Ge,locale:Object.assign(Object.assign({},be),v),isImageUrl:g,progress:y,appendAction:ge,appendActionVisible:Se,itemRender:C,disabled:j}):ge,we=ce(he,b,R,ye,pe,re==null?void 0:re.className,{[`${q}-rtl`]:te==="rtl",[`${q}-picture-card-wrapper`]:s==="picture-card",[`${q}-picture-circle-wrapper`]:s==="picture-circle"}),je=Object.assign(Object.assign({},re==null?void 0:re.style),E);if(S==="drag"){const ge=ce(ye,q,`${q}-drag`,{[`${q}-drag-uploading`]:M.some(Se=>Se.status==="uploading"),[`${q}-drag-hover`]:K==="dragover",[`${q}-disabled`]:j,[`${q}-rtl`]:te==="rtl"});return xe(d.createElement("span",{className:we,ref:W},d.createElement("div",{className:ge,style:je,onDrop:z,onDragOver:z,onDragLeave:z},d.createElement(mO,Object.assign({},ne,{ref:B,className:`${q}-btn`}),d.createElement("div",{className:`${q}-drag-container`},w))),Ne()))}const Oe=ce(q,`${q}-select`,{[`${q}-disabled`]:j,[`${q}-hidden`]:!w}),Me=d.createElement("div",{className:Oe,style:je},d.createElement(mO,Object.assign({},ne,{ref:B})));return xe(s==="picture-card"||s==="picture-circle"?d.createElement("span",{className:we,ref:W},Ne(Me,!!w)):d.createElement("span",{className:we,ref:W},Me,Ne()))},ZIe=d.forwardRef(QIe),gK=ZIe;var JIe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{style:r,height:n,hasControlInside:a=!1,children:i}=e,o=JIe(e,["style","height","hasControlInside","children"]),s=Object.assign(Object.assign({},r),{height:n});return d.createElement(gK,Object.assign({ref:t,hasControlInside:a},o,{style:s,type:"drag"}),i)}),tNe=eNe,pN=gK;pN.Dragger=tNe;pN.LIST_IGNORE=uh;const vN=pN;var KS={},yK={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(yK);var GS=yK.exports,qS={};Object.defineProperty(qS,"__esModule",{value:!0});qS.default=void 0;var rNe={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};qS.default=rNe;var XS={},Rv={},YS={},xK={exports:{}},bK={exports:{}},SK={exports:{}},wK={exports:{}};(function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(wK);var CK=wK.exports,EK={exports:{}};(function(e){var t=CK.default;function r(n,a){if(t(n)!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,a||"default");if(t(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(EK);var nNe=EK.exports;(function(e){var t=CK.default,r=nNe;function n(a){var i=r(a,"string");return t(i)=="symbol"?i:i+""}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(SK);var aNe=SK.exports;(function(e){var t=aNe;function r(n,a,i){return(a=t(a))in n?Object.defineProperty(n,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[a]=i,n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(bK);var iNe=bK.exports;(function(e){var t=iNe;function r(a,i){var o=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);i&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable})),o.push.apply(o,s)}return o}function n(a){for(var i=1;i{const[t,r]=d.useState(()=>{const i=localStorage.getItem("survey_user");return i?JSON.parse(i):null}),n=i=>{r(i),i?localStorage.setItem("survey_user",JSON.stringify(i)):localStorage.removeItem("survey_user")},a=()=>{n(null)};return P.jsx(OK.Provider,{value:{user:t,setUser:n,clearUser:a},children:e})},Mv=()=>{const e=d.useContext(OK);if(!e)throw new Error("useUser必须在UserProvider内使用");return e},TK=d.createContext(void 0),ENe=({children:e})=>{const[t,r]=d.useState(()=>{const o=localStorage.getItem("survey_admin");return o?JSON.parse(o):null}),n=o=>{r(o),o?localStorage.setItem("survey_admin",JSON.stringify(o)):localStorage.removeItem("survey_admin")},a=()=>{n(null)},i=!!t;return P.jsx(TK.Provider,{value:{admin:t,setAdmin:n,clearAdmin:a,isAuthenticated:i},children:e})},gN=()=>{const e=d.useContext(TK);if(!e)throw new Error("useAdmin必须在AdminProvider内使用");return e},PK=d.createContext(void 0),$Ne=({children:e})=>{const[t,r]=d.useState([]),[n,a]=d.useState(0),[i,o]=d.useState({}),s=(c,u)=>{o(f=>({...f,[c]:u}))},l=()=>{r([]),a(0),o({})};return P.jsx(PK.Provider,{value:{questions:t,setQuestions:r,currentQuestionIndex:n,setCurrentQuestionIndex:a,answers:i,setAnswer:s,setAnswers:o,clearQuiz:l},children:e})},_Ne=()=>{const e=d.useContext(PK);if(!e)throw new Error("useQuiz必须在QuizProvider内使用");return e};function IK(e,t){return function(){return e.apply(t,arguments)}}const{toString:ONe}=Object.prototype,{getPrototypeOf:yN}=Object,{iterator:JS,toStringTag:NK}=Symbol,ew=(e=>t=>{const r=ONe.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ks=e=>(e=e.toLowerCase(),t=>ew(t)===e),tw=e=>t=>typeof t===e,{isArray:fm}=Array,w0=tw("undefined");function Dv(e){return e!==null&&!w0(e)&&e.constructor!==null&&!w0(e.constructor)&&Bi(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const kK=ks("ArrayBuffer");function TNe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&kK(e.buffer),t}const PNe=tw("string"),Bi=tw("function"),RK=tw("number"),jv=e=>e!==null&&typeof e=="object",INe=e=>e===!0||e===!1,mx=e=>{if(ew(e)!=="object")return!1;const t=yN(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(NK in e)&&!(JS in e)},NNe=e=>{if(!jv(e)||Dv(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},kNe=ks("Date"),RNe=ks("File"),ANe=ks("Blob"),MNe=ks("FileList"),DNe=e=>jv(e)&&Bi(e.pipe),jNe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Bi(e.append)&&((t=ew(e))==="formdata"||t==="object"&&Bi(e.toString)&&e.toString()==="[object FormData]"))},FNe=ks("URLSearchParams"),[LNe,BNe,zNe,HNe]=["ReadableStream","Request","Response","Headers"].map(ks),WNe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fv(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),fm(e))for(n=0,a=e.length;n0;)if(a=r[n],t===a.toLowerCase())return a;return null}const Hu=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),MK=e=>!w0(e)&&e!==Hu;function hO(){const{caseless:e,skipUndefined:t}=MK(this)&&this||{},r={},n=(a,i)=>{const o=e&&AK(r,i)||i;mx(r[o])&&mx(a)?r[o]=hO(r[o],a):mx(a)?r[o]=hO({},a):fm(a)?r[o]=a.slice():(!t||!w0(a))&&(r[o]=a)};for(let a=0,i=arguments.length;a(Fv(t,(a,i)=>{r&&Bi(a)?e[i]=IK(a,r):e[i]=a},{allOwnKeys:n}),e),UNe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),KNe=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},GNe=(e,t,r,n)=>{let a,i,o;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!n||n(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=r!==!1&&yN(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},qNe=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},XNe=e=>{if(!e)return null;if(fm(e))return e;let t=e.length;if(!RK(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},YNe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&yN(Uint8Array)),QNe=(e,t)=>{const n=(e&&e[JS]).call(e);let a;for(;(a=n.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},ZNe=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},JNe=ks("HTMLFormElement"),eke=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),Dj=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),tke=ks("RegExp"),DK=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};Fv(r,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(n[i]=o||a)}),Object.defineProperties(e,n)},rke=e=>{DK(e,(t,r)=>{if(Bi(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Bi(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},nke=(e,t)=>{const r={},n=a=>{a.forEach(i=>{r[i]=!0})};return fm(e)?n(e):n(String(e).split(t)),r},ake=()=>{},ike=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function oke(e){return!!(e&&Bi(e.append)&&e[NK]==="FormData"&&e[JS])}const ske=e=>{const t=new Array(10),r=(n,a)=>{if(jv(n)){if(t.indexOf(n)>=0)return;if(Dv(n))return n;if(!("toJSON"in n)){t[a]=n;const i=fm(n)?[]:{};return Fv(n,(o,s)=>{const l=r(o,a+1);!w0(l)&&(i[s]=l)}),t[a]=void 0,i}}return n};return r(e,0)},lke=ks("AsyncFunction"),cke=e=>e&&(jv(e)||Bi(e))&&Bi(e.then)&&Bi(e.catch),jK=((e,t)=>e?setImmediate:t?((r,n)=>(Hu.addEventListener("message",({source:a,data:i})=>{a===Hu&&i===r&&n.length&&n.shift()()},!1),a=>{n.push(a),Hu.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Bi(Hu.postMessage)),uke=typeof queueMicrotask<"u"?queueMicrotask.bind(Hu):typeof process<"u"&&process.nextTick||jK,dke=e=>e!=null&&Bi(e[JS]),Ke={isArray:fm,isArrayBuffer:kK,isBuffer:Dv,isFormData:jNe,isArrayBufferView:TNe,isString:PNe,isNumber:RK,isBoolean:INe,isObject:jv,isPlainObject:mx,isEmptyObject:NNe,isReadableStream:LNe,isRequest:BNe,isResponse:zNe,isHeaders:HNe,isUndefined:w0,isDate:kNe,isFile:RNe,isBlob:ANe,isRegExp:tke,isFunction:Bi,isStream:DNe,isURLSearchParams:FNe,isTypedArray:YNe,isFileList:MNe,forEach:Fv,merge:hO,extend:VNe,trim:WNe,stripBOM:UNe,inherits:KNe,toFlatObject:GNe,kindOf:ew,kindOfTest:ks,endsWith:qNe,toArray:XNe,forEachEntry:QNe,matchAll:ZNe,isHTMLForm:JNe,hasOwnProperty:Dj,hasOwnProp:Dj,reduceDescriptors:DK,freezeMethods:rke,toObjectSet:nke,toCamelCase:eke,noop:ake,toFiniteNumber:ike,findKey:AK,global:Hu,isContextDefined:MK,isSpecCompliantForm:oke,toJSONObject:ske,isAsyncFn:lke,isThenable:cke,setImmediate:jK,asap:uke,isIterable:dke};function ar(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}Ke.inherits(ar,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ke.toJSONObject(this.config),code:this.code,status:this.status}}});const FK=ar.prototype,LK={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{LK[e]={value:e}});Object.defineProperties(ar,LK);Object.defineProperty(FK,"isAxiosError",{value:!0});ar.from=(e,t,r,n,a,i)=>{const o=Object.create(FK);Ke.toFlatObject(e,o,function(u){return u!==Error.prototype},c=>c!=="isAxiosError");const s=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return ar.call(o,s,l,r,n,a),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",i&&Object.assign(o,i),o};const fke=null;function pO(e){return Ke.isPlainObject(e)||Ke.isArray(e)}function BK(e){return Ke.endsWith(e,"[]")?e.slice(0,-2):e}function jj(e,t,r){return e?e.concat(t).map(function(a,i){return a=BK(a),!r&&i?"["+a+"]":a}).join(r?".":""):t}function mke(e){return Ke.isArray(e)&&!e.some(pO)}const hke=Ke.toFlatObject(Ke,{},null,function(t){return/^is[A-Z]/.test(t)});function rw(e,t,r){if(!Ke.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Ke.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,g){return!Ke.isUndefined(g[p])});const n=r.metaTokens,a=r.visitor||u,i=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&Ke.isSpecCompliantForm(t);if(!Ke.isFunction(a))throw new TypeError("visitor must be a function");function c(v){if(v===null)return"";if(Ke.isDate(v))return v.toISOString();if(Ke.isBoolean(v))return v.toString();if(!l&&Ke.isBlob(v))throw new ar("Blob is not supported. Use a Buffer instead.");return Ke.isArrayBuffer(v)||Ke.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function u(v,p,g){let y=v;if(v&&!g&&typeof v=="object"){if(Ke.endsWith(p,"{}"))p=n?p:p.slice(0,-2),v=JSON.stringify(v);else if(Ke.isArray(v)&&mke(v)||(Ke.isFileList(v)||Ke.endsWith(p,"[]"))&&(y=Ke.toArray(v)))return p=BK(p),y.forEach(function(b,S){!(Ke.isUndefined(b)||b===null)&&t.append(o===!0?jj([p],S,i):o===null?p:p+"[]",c(b))}),!1}return pO(v)?!0:(t.append(jj(g,p,i),c(v)),!1)}const f=[],m=Object.assign(hke,{defaultVisitor:u,convertValue:c,isVisitable:pO});function h(v,p){if(!Ke.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(v),Ke.forEach(v,function(y,x){(!(Ke.isUndefined(y)||y===null)&&a.call(t,y,Ke.isString(x)?x.trim():x,p,m))===!0&&h(y,p?p.concat(x):[x])}),f.pop()}}if(!Ke.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Fj(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function xN(e,t){this._pairs=[],e&&rw(e,this,t)}const zK=xN.prototype;zK.append=function(t,r){this._pairs.push([t,r])};zK.toString=function(t){const r=t?function(n){return t.call(this,n,Fj)}:Fj;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function pke(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function HK(e,t,r){if(!t)return e;const n=r&&r.encode||pke;Ke.isFunction(r)&&(r={serialize:r});const a=r&&r.serialize;let i;if(a?i=a(t,r):i=Ke.isURLSearchParams(t)?t.toString():new xN(t,r).toString(n),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class vke{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ke.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Lj=vke,WK={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gke=typeof URLSearchParams<"u"?URLSearchParams:xN,yke=typeof FormData<"u"?FormData:null,xke=typeof Blob<"u"?Blob:null,bke={isBrowser:!0,classes:{URLSearchParams:gke,FormData:yke,Blob:xke},protocols:["http","https","file","blob","url","data"]},bN=typeof window<"u"&&typeof document<"u",vO=typeof navigator=="object"&&navigator||void 0,Ske=bN&&(!vO||["ReactNative","NativeScript","NS"].indexOf(vO.product)<0),wke=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Cke=bN&&window.location.href||"http://localhost",Eke=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:bN,hasStandardBrowserEnv:Ske,hasStandardBrowserWebWorkerEnv:wke,navigator:vO,origin:Cke},Symbol.toStringTag,{value:"Module"})),ni={...Eke,...bke};function $ke(e,t){return rw(e,new ni.classes.URLSearchParams,{visitor:function(r,n,a,i){return ni.isNode&&Ke.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function _ke(e){return Ke.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Oke(e){const t={},r=Object.keys(e);let n;const a=r.length;let i;for(n=0;n=r.length;return o=!o&&Ke.isArray(a)?a.length:o,l?(Ke.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!s):((!a[o]||!Ke.isObject(a[o]))&&(a[o]=[]),t(r,n,a[o],i)&&Ke.isArray(a[o])&&(a[o]=Oke(a[o])),!s)}if(Ke.isFormData(e)&&Ke.isFunction(e.entries)){const r={};return Ke.forEachEntry(e,(n,a)=>{t(_ke(n),a,r,0)}),r}return null}function Tke(e,t,r){if(Ke.isString(e))try{return(t||JSON.parse)(e),Ke.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const SN={transitional:WK,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,i=Ke.isObject(t);if(i&&Ke.isHTMLForm(t)&&(t=new FormData(t)),Ke.isFormData(t))return a?JSON.stringify(VK(t)):t;if(Ke.isArrayBuffer(t)||Ke.isBuffer(t)||Ke.isStream(t)||Ke.isFile(t)||Ke.isBlob(t)||Ke.isReadableStream(t))return t;if(Ke.isArrayBufferView(t))return t.buffer;if(Ke.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return $ke(t,this.formSerializer).toString();if((s=Ke.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return rw(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||a?(r.setContentType("application/json",!1),Tke(t)):t}],transformResponse:[function(t){const r=this.transitional||SN.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(Ke.isResponse(t)||Ke.isReadableStream(t))return t;if(t&&Ke.isString(t)&&(n&&!this.responseType||a)){const o=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t,this.parseReviver)}catch(s){if(o)throw s.name==="SyntaxError"?ar.from(s,ar.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ni.classes.FormData,Blob:ni.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ke.forEach(["delete","get","head","post","put","patch"],e=>{SN.headers[e]={}});const wN=SN,Pke=Ke.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ike=e=>{const t={};let r,n,a;return e&&e.split(` +`).forEach(function(o){a=o.indexOf(":"),r=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!r||t[r]&&Pke[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Bj=Symbol("internals");function Wm(e){return e&&String(e).trim().toLowerCase()}function hx(e){return e===!1||e==null?e:Ke.isArray(e)?e.map(hx):String(e)}function Nke(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const kke=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function rE(e,t,r,n,a){if(Ke.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!Ke.isString(t)){if(Ke.isString(n))return t.indexOf(n)!==-1;if(Ke.isRegExp(n))return n.test(t)}}function Rke(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Ake(e,t){const r=Ke.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(a,i,o){return this[n].call(this,t,a,i,o)},configurable:!0})})}class nw{constructor(t){t&&this.set(t)}set(t,r,n){const a=this;function i(s,l,c){const u=Wm(l);if(!u)throw new Error("header name must be a non-empty string");const f=Ke.findKey(a,u);(!f||a[f]===void 0||c===!0||c===void 0&&a[f]!==!1)&&(a[f||l]=hx(s))}const o=(s,l)=>Ke.forEach(s,(c,u)=>i(c,u,l));if(Ke.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(Ke.isString(t)&&(t=t.trim())&&!kke(t))o(Ike(t),r);else if(Ke.isObject(t)&&Ke.isIterable(t)){let s={},l,c;for(const u of t){if(!Ke.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[c=u[0]]=(l=s[c])?Ke.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}o(s,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=Wm(t),t){const n=Ke.findKey(this,t);if(n){const a=this[n];if(!r)return a;if(r===!0)return Nke(a);if(Ke.isFunction(r))return r.call(this,a,n);if(Ke.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Wm(t),t){const n=Ke.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||rE(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let a=!1;function i(o){if(o=Wm(o),o){const s=Ke.findKey(n,o);s&&(!r||rE(n,n[s],s,r))&&(delete n[s],a=!0)}}return Ke.isArray(t)?t.forEach(i):i(t),a}clear(t){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const i=r[n];(!t||rE(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const r=this,n={};return Ke.forEach(this,(a,i)=>{const o=Ke.findKey(n,i);if(o){r[o]=hx(a),delete r[i];return}const s=t?Rke(i):String(i).trim();s!==i&&delete r[i],r[s]=hx(a),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return Ke.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&Ke.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` +`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[Bj]=this[Bj]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=Wm(o);n[s]||(Ake(a,o),n[s]=!0)}return Ke.isArray(t)?t.forEach(i):i(t),this}}nw.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ke.reduceDescriptors(nw.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});Ke.freezeMethods(nw);const Ss=nw;function nE(e,t){const r=this||wN,n=t||r,a=Ss.from(n.headers);let i=n.data;return Ke.forEach(e,function(s){i=s.call(r,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function UK(e){return!!(e&&e.__CANCEL__)}function mm(e,t,r){ar.call(this,e??"canceled",ar.ERR_CANCELED,t,r),this.name="CanceledError"}Ke.inherits(mm,ar,{__CANCEL__:!0});function KK(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ar("Request failed with status code "+r.status,[ar.ERR_BAD_REQUEST,ar.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Mke(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Dke(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=n[i];o||(o=c),r[a]=l,n[a]=c;let f=i,m=0;for(;f!==a;)m+=r[f++],f=f%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),c-o{r=u,a=null,i&&(clearTimeout(i),i=null),e(...c)};return[(...c)=>{const u=Date.now(),f=u-r;f>=n?o(c,u):(a=c,i||(i=setTimeout(()=>{i=null,o(a)},n-f)))},()=>a&&o(a)]}const p1=(e,t,r=3)=>{let n=0;const a=Dke(50,250);return jke(i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,l=o-n,c=a(l),u=o<=s;n=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-o)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},r)},zj=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Hj=e=>(...t)=>Ke.asap(()=>e(...t)),Fke=ni.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ni.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ni.origin),ni.navigator&&/(msie|trident)/i.test(ni.navigator.userAgent)):()=>!0,Lke=ni.hasStandardBrowserEnv?{write(e,t,r,n,a,i,o){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];Ke.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),Ke.isString(n)&&s.push(`path=${n}`),Ke.isString(a)&&s.push(`domain=${a}`),i===!0&&s.push("secure"),Ke.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Bke(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function zke(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function GK(e,t,r){let n=!Bke(t);return e&&(n||r==!1)?zke(e,t):t}const Wj=e=>e instanceof Ss?{...e}:e;function xd(e,t){t=t||{};const r={};function n(c,u,f,m){return Ke.isPlainObject(c)&&Ke.isPlainObject(u)?Ke.merge.call({caseless:m},c,u):Ke.isPlainObject(u)?Ke.merge({},u):Ke.isArray(u)?u.slice():u}function a(c,u,f,m){if(Ke.isUndefined(u)){if(!Ke.isUndefined(c))return n(void 0,c,f,m)}else return n(c,u,f,m)}function i(c,u){if(!Ke.isUndefined(u))return n(void 0,u)}function o(c,u){if(Ke.isUndefined(u)){if(!Ke.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function s(c,u,f){if(f in t)return n(c,u);if(f in e)return n(void 0,c)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,u,f)=>a(Wj(c),Wj(u),f,!0)};return Ke.forEach(Object.keys({...e,...t}),function(u){const f=l[u]||a,m=f(e[u],t[u],u);Ke.isUndefined(m)&&f!==s||(r[u]=m)}),r}const qK=e=>{const t=xd({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:i,headers:o,auth:s}=t;if(t.headers=o=Ss.from(o),t.url=HK(GK(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),Ke.isFormData(r)){if(ni.hasStandardBrowserEnv||ni.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(Ke.isFunction(r.getHeaders)){const l=r.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([u,f])=>{c.includes(u.toLowerCase())&&o.set(u,f)})}}if(ni.hasStandardBrowserEnv&&(n&&Ke.isFunction(n)&&(n=n(t)),n||n!==!1&&Fke(t.url))){const l=a&&i&&Lke.read(i);l&&o.set(a,l)}return t},Hke=typeof XMLHttpRequest<"u",Wke=Hke&&function(e){return new Promise(function(r,n){const a=qK(e);let i=a.data;const o=Ss.from(a.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=a,u,f,m,h,v;function p(){h&&h(),v&&v(),a.cancelToken&&a.cancelToken.unsubscribe(u),a.signal&&a.signal.removeEventListener("abort",u)}let g=new XMLHttpRequest;g.open(a.method.toUpperCase(),a.url,!0),g.timeout=a.timeout;function y(){if(!g)return;const b=Ss.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:b,config:e,request:g};KK(function(C){r(C),p()},function(C){n(C),p()},w),g=null}"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(y)},g.onabort=function(){g&&(n(new ar("Request aborted",ar.ECONNABORTED,e,g)),g=null)},g.onerror=function(S){const w=S&&S.message?S.message:"Network Error",E=new ar(w,ar.ERR_NETWORK,e,g);E.event=S||null,n(E),g=null},g.ontimeout=function(){let S=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const w=a.transitional||WK;a.timeoutErrorMessage&&(S=a.timeoutErrorMessage),n(new ar(S,w.clarifyTimeoutError?ar.ETIMEDOUT:ar.ECONNABORTED,e,g)),g=null},i===void 0&&o.setContentType(null),"setRequestHeader"in g&&Ke.forEach(o.toJSON(),function(S,w){g.setRequestHeader(w,S)}),Ke.isUndefined(a.withCredentials)||(g.withCredentials=!!a.withCredentials),s&&s!=="json"&&(g.responseType=a.responseType),c&&([m,v]=p1(c,!0),g.addEventListener("progress",m)),l&&g.upload&&([f,h]=p1(l),g.upload.addEventListener("progress",f),g.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(u=b=>{g&&(n(!b||b.type?new mm(null,e,g):b),g.abort(),g=null)},a.cancelToken&&a.cancelToken.subscribe(u),a.signal&&(a.signal.aborted?u():a.signal.addEventListener("abort",u)));const x=Mke(a.url);if(x&&ni.protocols.indexOf(x)===-1){n(new ar("Unsupported protocol "+x+":",ar.ERR_BAD_REQUEST,e));return}g.send(i||null)})},Vke=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,a;const i=function(c){if(!a){a=!0,s();const u=c instanceof Error?c:this.reason;n.abort(u instanceof ar?u:new mm(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,i(new ar(`timeout ${t} of ms exceeded`,ar.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=n;return l.unsubscribe=()=>Ke.asap(s),l}},Uke=Vke,Kke=function*(e,t){let r=e.byteLength;if(!t||r{const a=Gke(e,t);let i=0,o,s=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await a.next();if(c){s(),l.close();return}let f=u.byteLength;if(r){let m=i+=f;r(m)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),a.return()}},{highWaterMark:2})},Uj=64*1024,{isFunction:uy}=Ke,Xke=(({Request:e,Response:t})=>({Request:e,Response:t}))(Ke.global),{ReadableStream:Kj,TextEncoder:Gj}=Ke.global,qj=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Yke=e=>{e=Ke.merge.call({skipUndefined:!0},Xke,e);const{fetch:t,Request:r,Response:n}=e,a=t?uy(t):typeof fetch=="function",i=uy(r),o=uy(n);if(!a)return!1;const s=a&&uy(Kj),l=a&&(typeof Gj=="function"?(v=>p=>v.encode(p))(new Gj):async v=>new Uint8Array(await new r(v).arrayBuffer())),c=i&&s&&qj(()=>{let v=!1;const p=new r(ni.origin,{body:new Kj,method:"POST",get duplex(){return v=!0,"half"}}).headers.has("Content-Type");return v&&!p}),u=o&&s&&qj(()=>Ke.isReadableStream(new n("").body)),f={stream:u&&(v=>v.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!f[v]&&(f[v]=(p,g)=>{let y=p&&p[v];if(y)return y.call(p);throw new ar(`Response type '${v}' is not supported`,ar.ERR_NOT_SUPPORT,g)})});const m=async v=>{if(v==null)return 0;if(Ke.isBlob(v))return v.size;if(Ke.isSpecCompliantForm(v))return(await new r(ni.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(Ke.isArrayBufferView(v)||Ke.isArrayBuffer(v))return v.byteLength;if(Ke.isURLSearchParams(v)&&(v=v+""),Ke.isString(v))return(await l(v)).byteLength},h=async(v,p)=>{const g=Ke.toFiniteNumber(v.getContentLength());return g??m(p)};return async v=>{let{url:p,method:g,data:y,signal:x,cancelToken:b,timeout:S,onDownloadProgress:w,onUploadProgress:E,responseType:C,headers:O,withCredentials:_="same-origin",fetchOptions:T}=qK(v),I=t||fetch;C=C?(C+"").toLowerCase():"text";let N=Uke([x,b&&b.toAbortSignal()],S),D=null;const k=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let R;try{if(E&&c&&g!=="get"&&g!=="head"&&(R=await h(O,y))!==0){let K=new r(p,{method:"POST",body:y,duplex:"half"}),L;if(Ke.isFormData(y)&&(L=K.headers.get("content-type"))&&O.setContentType(L),K.body){const[B,W]=zj(R,p1(Hj(E)));y=Vj(K.body,Uj,B,W)}}Ke.isString(_)||(_=_?"include":"omit");const A=i&&"credentials"in r.prototype,j={...T,signal:N,method:g.toUpperCase(),headers:O.normalize().toJSON(),body:y,duplex:"half",credentials:A?_:void 0};D=i&&new r(p,j);let F=await(i?I(D,T):I(p,j));const M=u&&(C==="stream"||C==="response");if(u&&(w||M&&k)){const K={};["status","statusText","headers"].forEach(H=>{K[H]=F[H]});const L=Ke.toFiniteNumber(F.headers.get("content-length")),[B,W]=w&&zj(L,p1(Hj(w),!0))||[];F=new n(Vj(F.body,Uj,B,()=>{W&&W(),k&&k()}),K)}C=C||"text";let V=await f[Ke.findKey(f,C)||"text"](F,v);return!M&&k&&k(),await new Promise((K,L)=>{KK(K,L,{data:V,headers:Ss.from(F.headers),status:F.status,statusText:F.statusText,config:v,request:D})})}catch(A){throw k&&k(),A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)?Object.assign(new ar("Network Error",ar.ERR_NETWORK,v,D),{cause:A.cause||A}):ar.from(A,A&&A.code,v,D)}}},Qke=new Map,XK=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:a}=t,i=[n,a,r];let o=i.length,s=o,l,c,u=Qke;for(;s--;)l=i[s],c=u.get(l),c===void 0&&u.set(l,c=s?new Map:Yke(t)),u=c;return c};XK();const CN={http:fke,xhr:Wke,fetch:{get:XK}};Ke.forEach(CN,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Xj=e=>`- ${e}`,Zke=e=>Ke.isFunction(e)||e===null||e===!1;function Jke(e,t){e=Ke.isArray(e)?e:[e];const{length:r}=e;let n,a;const i={};for(let o=0;o`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=r?o.length>1?`since : +`+o.map(Xj).join(` +`):" "+Xj(o[0]):"as no adapter specified";throw new ar("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return a}const YK={getAdapter:Jke,adapters:CN};function aE(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new mm(null,e)}function Yj(e){return aE(e),e.headers=Ss.from(e.headers),e.data=nE.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),YK.getAdapter(e.adapter||wN.adapter,e)(e).then(function(n){return aE(e),n.data=nE.call(e,e.transformResponse,n),n.headers=Ss.from(n.headers),n},function(n){return UK(n)||(aE(e),n&&n.response&&(n.response.data=nE.call(e,e.transformResponse,n.response),n.response.headers=Ss.from(n.response.headers))),Promise.reject(n)})}const QK="1.13.2",aw={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{aw[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Qj={};aw.transitional=function(t,r,n){function a(i,o){return"[Axios v"+QK+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,s)=>{if(t===!1)throw new ar(a(o," has been removed"+(r?" in "+r:"")),ar.ERR_DEPRECATED);return r&&!Qj[o]&&(Qj[o]=!0,console.warn(a(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,o,s):!0}};aw.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function eRe(e,t,r){if(typeof e!="object")throw new ar("options must be an object",ar.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const i=n[a],o=t[i];if(o){const s=e[i],l=s===void 0||o(s,i,e);if(l!==!0)throw new ar("option "+i+" must be "+l,ar.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ar("Unknown option "+i,ar.ERR_BAD_OPTION)}}const px={assertOptions:eRe,validators:aw},Ds=px.validators;class v1{constructor(t){this.defaults=t||{},this.interceptors={request:new Lj,response:new Lj}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=` +`+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=xd(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:i}=r;n!==void 0&&px.assertOptions(n,{silentJSONParsing:Ds.transitional(Ds.boolean),forcedJSONParsing:Ds.transitional(Ds.boolean),clarifyTimeoutError:Ds.transitional(Ds.boolean)},!1),a!=null&&(Ke.isFunction(a)?r.paramsSerializer={serialize:a}:px.assertOptions(a,{encode:Ds.function,serialize:Ds.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),px.assertOptions(r,{baseUrl:Ds.spelling("baseURL"),withXsrfToken:Ds.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=i&&Ke.merge(i.common,i[r.method]);i&&Ke.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),r.headers=Ss.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const c=[];this.interceptors.response.forEach(function(p){c.push(p.fulfilled,p.rejected)});let u,f=0,m;if(!l){const v=[Yj.bind(this),void 0];for(v.unshift(...s),v.push(...c),m=v.length,u=Promise.resolve(r);f{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](a);n._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{n.subscribe(s),i=s}).then(a);return o.cancel=function(){n.unsubscribe(i)},o},t(function(i,o,s){n.reason||(n.reason=new mm(i,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new EN(function(a){t=a}),cancel:t}}}const tRe=EN;function rRe(e){return function(r){return e.apply(null,r)}}function nRe(e){return Ke.isObject(e)&&e.isAxiosError===!0}const gO={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(gO).forEach(([e,t])=>{gO[t]=e});const aRe=gO;function ZK(e){const t=new vx(e),r=IK(vx.prototype.request,t);return Ke.extend(r,vx.prototype,t,{allOwnKeys:!0}),Ke.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return ZK(xd(e,a))},r}const ia=ZK(wN);ia.Axios=vx;ia.CanceledError=mm;ia.CancelToken=tRe;ia.isCancel=UK;ia.VERSION=QK;ia.toFormData=rw;ia.AxiosError=ar;ia.Cancel=ia.CanceledError;ia.all=function(t){return Promise.all(t)};ia.spread=rRe;ia.isAxiosError=nRe;ia.mergeConfig=xd;ia.AxiosHeaders=Ss;ia.formToJSON=e=>VK(Ke.isHTMLForm(e)?new FormData(e):e);ia.getAdapter=YK.getAdapter;ia.HttpStatusCode=aRe;ia.default=ia;const iRe=ia,oRe="/api",At=iRe.create({baseURL:oRe,timeout:3e4,headers:{"Content-Type":"application/json"}});At.interceptors.request.use(e=>{if(typeof window<"u"){const t=localStorage.getItem("survey_admin");if(t){const{token:r}=JSON.parse(t);e.headers.Authorization=`Bearer ${r}`}}return e},e=>Promise.reject(e));At.interceptors.response.use(e=>{if(e.config.responseType==="blob")return e.data;const{data:t}=e;if(t.success)return t;throw new Error(t.message||"请求失败")},e=>{var t;return((t=e.response)==null?void 0:t.status)===401&&typeof window<"u"&&(localStorage.removeItem("survey_admin"),window.location.href="/admin/login"),Promise.reject(e)});const Zj={createUser:e=>At.post("/users",e),getUser:e=>At.get(`/users/${e}`),validateUserInfo:e=>At.post("/users/validate",e),getUsersByName:e=>At.get(`/users/name/${e}`)},sc={getQuestions:e=>At.get("/questions",{params:e}),getQuestion:e=>At.get(`/questions/${e}`),createQuestion:e=>At.post("/questions",e),updateQuestion:(e,t)=>At.put(`/questions/${e}`,t),deleteQuestion:e=>At.delete(`/questions/${e}`),importQuestions:e=>{const t=new FormData;return t.append("file",e),At.post("/questions/import",t,{headers:{"Content-Type":"multipart/form-data"}})},importQuestionsFromText:e=>At.post("/questions/import-text",e),exportQuestions:e=>At.get("/questions/export",{params:e,responseType:"blob",headers:{"Content-Type":"application/json"}})},bd={generateQuiz:(e,t,r)=>At.post("/quiz/generate",{userId:e,subjectId:t,taskId:r}),submitQuiz:e=>At.post("/quiz/submit",e),getUserRecords:(e,t)=>At.get(`/quiz/records/${e}`,{params:t}),getRecordDetail:e=>At.get(`/quiz/records/detail/${e}`),getAllRecords:e=>At.get("/quiz/records",{params:e})},sRe={getSubjects:()=>At.get("/exam-subjects")},lRe={getTasks:()=>At.get("/exam-tasks"),getUserTasks:e=>At.get(`/exam-tasks/user/${e}`)},qs={login:e=>At.post("/admin/login",e),getQuizConfig:()=>At.get("/admin/config"),updateQuizConfig:e=>At.put("/admin/config",e),getStatistics:()=>At.get("/admin/statistics"),getActiveTasksStats:()=>At.get("/admin/active-tasks"),getDashboardOverview:()=>At.get("/admin/dashboard/overview"),getHistoryTaskStats:e=>At.get("/admin/tasks/history-stats",{params:e}),getUpcomingTaskStats:e=>At.get("/admin/tasks/upcoming-stats",{params:e}),getAllTaskStats:e=>At.get("/admin/tasks/all-stats",{params:e}),getUserStats:()=>At.get("/admin/statistics/users"),getSubjectStats:()=>At.get("/admin/statistics/subjects"),getTaskStats:()=>At.get("/admin/statistics/tasks"),updatePassword:e=>At.put("/admin/password",e)},Wu={getAll:()=>At.get("/admin/user-groups"),create:e=>At.post("/admin/user-groups",e),update:(e,t)=>At.put(`/admin/user-groups/${e}`,t),delete:e=>At.delete(`/admin/user-groups/${e}`),getMembers:e=>At.get(`/admin/user-groups/${e}/members`)},cRe=e=>!e||e.trim().length===0?{valid:!1,message:"请输入姓名"}:e.length<2||e.length>20?{valid:!1,message:"姓名长度必须在2-20个字符之间"}:/^[\u4e00-\u9fa5a-zA-Z\s]+$/.test(e)?{valid:!0,message:""}:{valid:!1,message:"姓名只能包含中文、英文和空格"},uRe=e=>!e||e.trim().length===0?{valid:!1,message:"请输入手机号"}:/^1[3-9]\d{9}$/.test(e)?{valid:!0,message:""}:{valid:!1,message:"请输入正确的中国手机号"},dRe=(e,t)=>{const r=cRe(e),n=uRe(t);return{valid:r.valid&&n.valid,nameError:r.message,phoneError:n.message}},fRe=e=>/([zZ]|[+-]\d{2}:?\d{2})$/.test(e.trim()),mRe=e=>{const t=e.trim();if(fRe(t))return t;if(/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}(:\d{2})?$/.test(t)){const r=t.replace(" ","T");return r.length===16?`${r}:00Z`:`${r}Z`}return/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d{1,3})?)?$/.test(t)?`${t}Z`:/^\d{4}-\d{2}-\d{2}$/.test(t)?`${t}T00:00:00Z`:t},hs=e=>{if(!e)return null;const t=mRe(String(e)),r=new Date(t);return Number.isNaN(r.getTime())?null:r},si=(e,t)=>{const r=hs(e);return r?t!=null&&t.dateOnly?r.toLocaleDateString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit"}):r.toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",...t!=null&&t.includeSeconds?{second:"2-digit"}:null}):e},Ou=e=>si(e,{dateOnly:!0}),g1={single:"单选题",multiple:"多选题",judgment:"判断题",text:"文字描述题"},hRe={single:"blue",multiple:"green",judgment:"orange",text:"purple"},iw="/assets/主要LOGO-b9927500.svg",{Header:pRe,Content:vRe,Footer:gRe}=Rl,{Title:yRe}=kv,xRe=()=>{const e=Xo(),{setUser:t}=Mv(),[r]=Ht.useForm(),[n,a]=d.useState(!1),[i,o]=d.useState([]),[s,l]=d.useState(!1);d.useEffect(()=>{const h=JSON.parse(localStorage.getItem("loginHistory")||"[]");o(h.map(v=>({value:v.name,label:v.name,phone:v.phone})))},[]);const c=(h,v)=>{const g=JSON.parse(localStorage.getItem("loginHistory")||"[]").filter(x=>x.name!==h);g.unshift({name:h,phone:v});const y=g.slice(0,5);localStorage.setItem("loginHistory",JSON.stringify(y)),o(y.map(x=>({value:x.name,label:x.name,phone:x.phone})))},u=(h,v)=>{v.phone&&r.setFieldsValue({phone:v.phone})},f=async h=>{if(!h)return;const v=i.find(p=>p.value===h);if(v&&v.phone){r.setFieldsValue({phone:v.phone});return}try{l(!0);const p=await Zj.getUsersByName(h);if(p.success&&p.data&&p.data.length>0){const g=p.data[0];g&&g.phone&&(r.setFieldsValue({phone:g.phone}),c(h,g.phone))}}catch(p){console.error("查询用户失败:",p)}finally{l(!1)}},m=async h=>{try{a(!0);const v=dRe(h.name,h.phone);if(!v.valid){ct.error(v.nameError||v.phoneError);return}const p=await Zj.validateUserInfo(h);p.success&&(t(p.data),c(h.name,h.phone),ct.success("登录成功,请选择考试科目"),setTimeout(()=>{e("/subjects")},1e3))}catch(v){ct.error(v.message||"登录失败")}finally{a(!1)}};return P.jsxs(Rl,{className:"min-h-screen bg-gray-50",children:[P.jsx(pRe,{className:"bg-white shadow-sm flex items-center px-4 h-12 sticky top-0 z-10",children:P.jsx("img",{src:iw,alt:"主要LOGO",style:{width:"120px",height:"48px"}})}),P.jsx(vRe,{className:"flex items-center justify-center p-2 bg-gradient-to-br from-mars-50 to-white",children:P.jsx("div",{className:"w-full max-w-md",children:P.jsxs(_r,{className:"shadow-xl border-t-4 border-t-mars-500 p-2",children:[P.jsxs("div",{className:"text-center mb-3",children:[P.jsx(yRe,{level:2,className:"text-mars-600 !mb-0.5 !text-lg",children:"宝来威考试平台"}),P.jsx("p",{className:"text-gray-500 text-xs",children:"请填写您的基本信息开始答题"})]}),P.jsxs(Ht,{form:r,layout:"vertical",onFinish:m,autoComplete:"off",children:[P.jsx(Ht.Item,{label:"姓名",name:"name",rules:[{required:!0,message:"请输入姓名"},{min:2,max:20,message:"姓名长度必须在2-20个字符之间"},{pattern:/^[\u4e00-\u9fa5a-zA-Z\s]+$/,message:"姓名只能包含中文、英文和空格"}],className:"mb-2",children:P.jsx(Zhe,{options:i,onSelect:u,onChange:f,placeholder:"请输入您的姓名",filterOption:(h,v)=>v.value.toUpperCase().indexOf(h.toUpperCase())!==-1})}),P.jsx(Ht.Item,{label:"手机号",name:"phone",rules:[{required:!0,message:"请输入手机号"},{pattern:/^1[3-9]\d{9}$/,message:"请输入正确的中国手机号"}],className:"mb-2",children:P.jsx(Na,{placeholder:"请输入11位手机号",maxLength:11})}),P.jsx(Ht.Item,{label:"登录密码",name:"password",rules:[{required:!0,message:"请输入登录密码"}],className:"mb-2",children:P.jsx(Na.Password,{placeholder:"请输入登录密码",autoComplete:"new-password",visibilityToggle:!0})}),P.jsx(Ht.Item,{className:"mb-2 mt-3",children:P.jsx(kt,{type:"primary",htmlType:"submit",loading:n,block:!0,className:"bg-mars-500 hover:!bg-mars-600 border-none shadow-md h-9 text-sm font-medium",children:"开始答题"})})]}),P.jsx("div",{className:"mt-3 text-center",children:P.jsx("a",{href:"/admin/login",className:"text-mars-600 hover:text-mars-800 text-xs transition-colors",children:"管理员登录"})})]})})}),P.jsx(gRe,{className:"bg-white border-t border-gray-100 py-1.5 px-2 flex flex-col md:flex-row justify-center items-center text-gray-400 text-xs",children:P.jsxs("div",{className:"mb-2 md:mb-0 whitespace-nowrap",children:["© ",new Date().getFullYear()," Boonlive OA System. All Rights Reserved."]})})]})},bRe=e=>{const t=e.minDistancePx??60,r=e.maxDurationMs??600,n=e.minHorizontalDominanceRatio??1.2;if(!Number.isFinite(e.startX)||!Number.isFinite(e.startY)||!Number.isFinite(e.endX)||!Number.isFinite(e.endY)||!Number.isFinite(e.elapsedMs)||e.elapsedMs<0||e.elapsedMs>r)return null;const a=e.endX-e.startX,i=e.endY-e.startY,o=Math.abs(a),s=Math.abs(i);return oP.jsxs(Rl,{className:"min-h-screen bg-gray-50",children:[P.jsx(SRe,{className:"bg-white shadow-sm flex items-center px-6 h-16 sticky top-0 z-10",children:P.jsx("img",{src:iw,alt:"主要LOGO",style:{width:"180px",height:"72px"}})}),P.jsx(wRe,{className:"flex flex-col",children:P.jsx("div",{className:"flex-1 p-4 md:p-8 bg-gradient-to-br from-mars-50/30 to-white",children:e})}),P.jsx(CRe,{className:"bg-white border-t border-gray-100 py-3 px-2 flex flex-col md:flex-row justify-center items-center text-gray-400 text-sm",children:P.jsxs("div",{className:"md:mb-0 whitespace-nowrap",children:["© ",new Date().getFullYear()," Boonlive OA System. All Rights Reserved."]})})]});var ERe={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"};const $Re=ERe;var _Re=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:$Re}))},ORe=d.forwardRef(_Re);const TRe=ORe;var PRe={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"};const IRe=PRe;var NRe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:IRe}))},kRe=d.forwardRef(NRe);const RRe=kRe;var ARe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z"}}]},name:"bar-chart",theme:"outlined"};const MRe=ARe;var DRe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:MRe}))},jRe=d.forwardRef(DRe);const FRe=jRe;var LRe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"};const BRe=LRe;var zRe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:BRe}))},HRe=d.forwardRef(zRe);const wc=HRe;var WRe={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"};const VRe=WRe;var URe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:VRe}))},KRe=d.forwardRef(URe);const GRe=KRe;var qRe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"};const XRe=qRe;var YRe=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:XRe}))},QRe=d.forwardRef(YRe);const JK=QRe;var ZRe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"};const JRe=ZRe;var e4e=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:JRe}))},t4e=d.forwardRef(e4e);const r4e=t4e;var n4e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"};const a4e=n4e;var i4e=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:a4e}))},o4e=d.forwardRef(i4e);const eG=o4e;var s4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.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 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"};const l4e=s4e;var c4e=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:l4e}))},u4e=d.forwardRef(c4e);const d4e=u4e;var f4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"};const m4e=f4e;var h4e=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:m4e}))},p4e=d.forwardRef(h4e);const v4e=p4e;var g4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"};const y4e=g4e;var x4e=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:y4e}))},b4e=d.forwardRef(x4e);const S4e=b4e;var w4e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64L128 192v384c0 212.1 171.9 384 384 384s384-171.9 384-384V192L512 64zm312 512c0 172.3-139.7 312-312 312S200 748.3 200 576V246l312-110 312 110v330z"}},{tag:"path",attrs:{d:"M378.4 475.1a35.91 35.91 0 00-50.9 0 35.91 35.91 0 000 50.9l129.4 129.4 2.1 2.1a33.98 33.98 0 0048.1 0L730.6 434a33.98 33.98 0 000-48.1l-2.8-2.8a33.98 33.98 0 00-48.1 0L483 579.7 378.4 475.1z"}}]},name:"safety",theme:"outlined"};const C4e=w4e;var E4e=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:C4e}))},$4e=d.forwardRef(E4e);const _4e=$4e;var O4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M824.2 699.9a301.55 301.55 0 00-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 01612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 008-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 01612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z"}}]},name:"team",theme:"outlined"};const T4e=O4e;var P4e=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:T4e}))},I4e=d.forwardRef(P4e);const $N=I4e;var N4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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:"upload",theme:"outlined"};const k4e=N4e;var R4e=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:k4e}))},A4e=d.forwardRef(R4e);const tG=A4e;var M4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};const D4e=M4e;var j4e=function(t,r){return d.createElement(Wt,Te({},t,{ref:r,icon:D4e}))},F4e=d.forwardRef(j4e);const L4e=F4e,B4e=({current:e,total:t,timeLeft:r,onGiveUp:n,taskName:a})=>{Xo();const i=o=>{const s=Math.floor(o/60),l=o%60;return`${s.toString().padStart(2,"0")}:${l.toString().padStart(2,"0")}`};return P.jsxs("div",{className:"bg-[#00897B] text-white px-2 h-10 flex items-center justify-between shadow-md sticky top-0 z-30",children:[P.jsxs("div",{className:"flex items-center gap-1",onClick:n,children:[P.jsx(vd,{className:"text-sm"}),P.jsx("span",{className:"text-xs",children:"返回"})]}),P.jsx("div",{className:"flex items-center gap-1 bg-[#00796B] px-1.5 py-0.5 rounded-full text-xs",children:P.jsx("span",{children:a||"监控中"})}),P.jsxs("div",{className:"flex items-center gap-1 text-xs font-medium tabular-nums",children:[P.jsx(Nh,{}),P.jsx("span",{children:r!==null?i(r):"--:--"})]})]})},z4e=({current:e,total:t})=>{const r=Math.round(e/t*100);return P.jsx("div",{className:"bg-white px-2 py-1.5 border-b border-gray-100",children:P.jsxs("div",{className:"flex items-center gap-2",children:[P.jsxs("span",{className:"text-gray-500 text-xs",children:[P.jsx("span",{className:"text-gray-900 text-sm font-medium",children:e}),"/",t]}),P.jsx(Sc,{percent:r,showInfo:!1,strokeColor:"#00897B",trailColor:"#E0F2F1",size:"small",className:"m-0 flex-1"})]})})},{TextArea:H4e}=Na,W4e=({type:e,options:t,value:r,onChange:n,disabled:a})=>{const i=c=>String.fromCharCode(65+c),o=c=>Array.isArray(r)?r.includes(c):r===c,s=c=>{if(!a)if(e==="multiple"){const u=Array.isArray(r)?r:[],f=u.includes(c)?u.filter(m=>m!==c):[...u,c];n(f)}else n(c)};if(e==="text")return P.jsx("div",{className:"mt-3",children:P.jsx(H4e,{rows:4,value:r||"",onChange:c=>n(c.target.value),placeholder:"请输入您的答案...",disabled:a,className:"rounded-lg border-gray-300 focus:border-[#00897B] focus:ring-[#00897B] text-xs p-2"})});const l=()=>e==="judgment"?["正确","错误"].map((c,u)=>({label:c,value:c,key:u})):(t||[]).map((c,u)=>({label:c,value:c,key:u}));return P.jsx("div",{className:"space-y-1.5 mt-2",children:l().map((c,u)=>{const f=o(c.value);return P.jsxs("div",{onClick:()=>s(c.value),className:` + relative flex items-center p-1.5 rounded-xl border-2 transition-all duration-200 active:scale-[0.99] cursor-pointer + ${f?"border-[#00897B] bg-[#E0F2F1]":"border-transparent bg-white shadow-sm hover:border-gray-200"} + `,children:[P.jsx("div",{className:` + flex-shrink-0 w-5 h-5 rounded-full flex items-center justify-center text-xs font-medium border mr-1.5 transition-colors + ${f?"bg-[#00897B] border-[#00897B] text-white":"bg-white border-gray-300 text-gray-500"} + `,children:e==="judgment"?u===0?"对":"错":i(u)}),P.jsx("div",{className:`text-xs leading-tight select-none ${f?"text-[#00695C] font-medium":"text-gray-700"}`,children:c.label})]},c.key)})})},V4e=({current:e,total:t,onPrev:r,onNext:n,onSubmit:a,onOpenSheet:i,answeredCount:o})=>{const s=e===0,l=e===t-1;return P.jsx("div",{className:"fixed bottom-0 left-0 right-0 bg-white border-t border-gray-100 px-2 py-2 safe-area-bottom z-30 shadow-[0_-2px_10px_rgba(0,0,0,0.05)]",children:P.jsxs("div",{className:"max-w-md mx-auto flex items-center justify-between",children:[P.jsx(kt,{type:"text",icon:P.jsx(vd,{}),onClick:r,disabled:s,className:`flex items-center text-gray-600 hover:text-[#00897B] text-sm ${s?"opacity-30":""}`,children:"上一题"}),P.jsxs("div",{onClick:i,className:"flex flex-col items-center justify-center -mt-5 bg-white rounded-full h-14 w-14 shadow-lg border border-gray-100 cursor-pointer active:scale-95 transition-transform",children:[P.jsx(TRe,{className:"text-base text-[#00897B] mb-0.5"}),P.jsxs("span",{className:"text-[12px] text-gray-500",children:[o,"/",t]})]}),l?P.jsxs(kt,{type:"text",onClick:a,className:"flex items-center text-[#00897B] font-medium hover:bg-teal-50 text-sm",children:["提交 ",P.jsx(md,{})]}):P.jsxs(kt,{type:"text",onClick:n,className:"flex items-center text-gray-600 hover:text-[#00897B] text-sm",children:["下一题 ",P.jsx(md,{})]})]})})},U4e=()=>{const e=Xo(),t=H0(),{user:r}=Mv(),{questions:n,setQuestions:a,currentQuestionIndex:i,setCurrentQuestionIndex:o,answers:s,setAnswer:l,setAnswers:c,clearQuiz:u}=_Ne(),[f,m]=d.useState(!1),[h,v]=d.useState(!1),[p,g]=d.useState(!1),[y,x]=d.useState(null),[b,S]=d.useState(null),[w,E]=d.useState(""),[C,O]=d.useState(""),[_,T]=d.useState(""),I=d.useRef(0),N=d.useRef(null),[D,k]=d.useState("next"),[R,A]=d.useState(!1),j=d.useRef(null),F=d.useRef(null);d.useEffect(()=>{const te=F.current;te&&te.focus()},[i]),d.useEffect(()=>{const te=re=>{var pe;if(re.defaultPrevented)return;const q=document.activeElement,ne=((q==null?void 0:q.tagName)||"").toLowerCase(),he=ne==="input"?((q==null?void 0:q.type)||"").toLowerCase():"",xe=ne==="input"?he===""||he==="text"||he==="search"||he==="tel"||he==="url"||he==="email"||he==="password"||he==="number":!1;if(!(ne==="textarea"||(q==null?void 0:q.getAttribute("role"))==="textbox"||q!=null&&q.classList.contains("ant-input")||(pe=q==null?void 0:q.closest)!=null&&pe.call(q,".ant-input")||xe||q!=null&&q.isContentEditable)){if(re.key==="ArrowLeft"){re.preventDefault(),W();return}if(re.key==="ArrowRight"){re.preventDefault(),B();return}re.key==="Escape"&&p&&(re.preventDefault(),g(!1))}};return window.addEventListener("keydown",te),()=>window.removeEventListener("keydown",te)},[p,i,n.length]),d.useEffect(()=>{if(!r){ct.warning("请先填写个人信息"),e("/");return}const te=t.state;if(u(),te!=null&&te.questions){const q=te.subjectId||"",ne=te.taskId||"",he=te.taskName||"",xe=te.timeLimit||60;a(te.questions),c({}),o(0),S(xe),x(xe*60),E(q),O(ne),T(he);const ye=Jj(r.id,q,ne);eF(r.id,ye),dy(ye,{questions:te.questions,answers:{},currentQuestionIndex:0,timeLeftSeconds:xe*60,timeLimitMinutes:xe,subjectId:q,taskId:ne});return}const re=q4e(r.id);if(re){a(re.questions),c(re.answers),o(re.currentQuestionIndex),S(re.timeLimitMinutes),x(re.timeLeftSeconds),E(re.subjectId),O(re.taskId);return}M()},[r,e,t]),d.useEffect(()=>{if(y===null||y<=0)return;const te=setInterval(()=>{x(re=>re===null||re<=1?(clearInterval(te),V(),0):re-1)},1e3);return()=>clearInterval(te)},[y]);const M=async()=>{try{m(!0);const te=await bd.generateQuiz(r.id);a(te.data.questions),o(0),c({}),S(60),x(60*60),E(""),O("");const re=Jj(r.id,"","");eF(r.id,re),dy(re,{questions:te.data.questions,answers:{},currentQuestionIndex:0,timeLeftSeconds:60*60,timeLimitMinutes:60,subjectId:"",taskId:""})}catch(te){ct.error(te.message||"生成试卷失败")}finally{m(!1)}},V=()=>{ct.warning("考试时间已到,将自动提交答案"),setTimeout(()=>{X(!0)},1e3)},K=te=>{switch(te){case"single":return"bg-orange-100 text-orange-800 border-orange-200";case"multiple":return"bg-blue-100 text-blue-800 border-blue-200";case"judgment":return"bg-purple-100 text-purple-800 border-purple-200";case"text":return"bg-green-100 text-green-800 border-green-200";default:return"bg-gray-100 text-gray-800 border-gray-200"}},L=(te,re)=>{l(te,re)};d.useEffect(()=>{if(r&&n.length&&y!==null)return N.current!==null&&window.clearTimeout(N.current),N.current=window.setTimeout(()=>{const te=y1(r.id);te&&(dy(te,{questions:n,answers:s,currentQuestionIndex:i,timeLeftSeconds:y,timeLimitMinutes:b||60,subjectId:w,taskId:C}),N.current=null)},300),()=>{N.current!==null&&(window.clearTimeout(N.current),N.current=null)}},[r,n,s,i,w,C,y,b]),d.useEffect(()=>{if(!r||!n.length||y===null)return;const te=Date.now();if(te-I.current<5e3)return;I.current=te;const re=y1(r.id);re&&dy(re,{questions:n,answers:s,currentQuestionIndex:i,timeLeftSeconds:y,timeLimitMinutes:b||60,subjectId:w,taskId:C})},[r,n.length,y]);const B=()=>{i{i>0&&(k("prev"),o(i-1))},H=te=>{te<0||te>=n.length||te!==i&&(k(te>i?"next":"prev"),o(te))},U=()=>{const te=n.findIndex(re=>Number(re.score)>0&&!s[re.id]);te!==-1&&H(te),g(!1)},X=async(te=!1)=>{try{if(v(!0),!te){const xe=n.filter(ye=>Number(ye.score)>0&&!s[ye.id]);if(xe.length>0){ct.warning(`还有 ${xe.length} 道题未作答`);return}}const re=n.map(xe=>{const ye=s[xe.id]??"",pe=G(xe,ye);return{questionId:xe.id,userAnswer:ye,score:pe?xe.score:0,isCorrect:pe}}),q=await bd.submitQuiz({userId:r.id,subjectId:w||void 0,taskId:C||void 0,answers:re}),ne=(q==null?void 0:q.data)??q,he=ne==null?void 0:ne.recordId;if(!he)throw new Error("提交成功但未返回记录ID");ct.success("答题提交成功!"),tF(r.id),e(`/result/${he}`)}catch(re){ct.error(re.message||"提交失败")}finally{v(!1)}},Y=()=>{r&&Ci.confirm({title:"确认弃考?",content:"弃考将清空本次答题进度与计时信息,且不计入考试次数。",okText:"确认弃考",cancelText:"继续答题",okButtonProps:{danger:!0},onOk:()=>{tF(r.id),u(),e("/tasks")}})},G=(te,re)=>{if(Number(te.score)===0)return!0;if(!re)return!1;if(te.type==="multiple"){const q=Array.isArray(te.answer)?te.answer:[te.answer],ne=Array.isArray(re)?re:[re];return q.length===ne.length&&q.every(he=>ne.includes(he))}else return re===te.answer},Q=d.useMemo(()=>n.reduce((te,re)=>s[re.id]||Number(re.score)===0?te+1:te,0),[n,s]);if(d.useEffect(()=>{if(!n.length)return;A(!1);const te=requestAnimationFrame(()=>A(!0));return()=>cancelAnimationFrame(te)},[i,n.length]),f||!n.length)return P.jsx(Fc,{children:P.jsx("div",{className:"flex items-center justify-center h-full min-h-[500px]",children:P.jsxs("div",{className:"text-center",children:[P.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-mars-600 mx-auto mb-4"}),P.jsx("p",{className:"text-gray-700",children:"正在生成试卷..."})]})})});const J=n[i],z=te=>{if(te.touches.length!==1)return;const re=te.target;if(re!=null&&re.closest('textarea,input,[role="textbox"],.ant-input,.ant-checkbox-wrapper,.ant-radio-wrapper'))return;const q=te.touches[0];j.current={x:q.clientX,y:q.clientY,time:Date.now()}},fe=te=>{const re=j.current;if(j.current=null,!re)return;const q=te.changedTouches[0];if(!q)return;const ne=bRe({startX:re.x,startY:re.y,endX:q.clientX,endY:q.clientY,elapsedMs:Date.now()-re.time});if(ne==="left"){B();return}ne==="right"&&W()};return P.jsxs("div",{className:"min-h-screen bg-gray-50 flex flex-col",children:[P.jsx(B4e,{current:i+1,total:n.length,timeLeft:y,onGiveUp:Y,taskName:_}),P.jsx(z4e,{current:i+1,total:n.length}),P.jsx("div",{className:"flex-1 overflow-y-auto pb-24 safe-area-bottom",children:P.jsx("div",{className:"max-w-md mx-auto px-4",children:P.jsx("div",{onTouchStart:z,onTouchEnd:fe,className:` + transition-all duration-300 ease-out + ${R?"opacity-100 translate-x-0":D==="next"?"opacity-0 translate-x-4":"opacity-0 -translate-x-4"} + `,children:P.jsxs("div",{className:"bg-white rounded-xl shadow-sm border border-gray-100 p-2 min-h-[280px]",children:[P.jsxs("div",{className:"mb-2",children:[P.jsx("span",{className:`inline-block px-1 py-0.5 rounded-md text-xs font-medium border ${K(J.type)}`,children:g1[J.type]}),J.category&&P.jsx("span",{className:"ml-2 inline-block px-1 py-0.5 bg-gray-50 text-gray-600 text-xs rounded border border-gray-100",children:J.category})]}),P.jsx("h2",{ref:F,tabIndex:-1,className:"text-sm font-medium text-gray-900 leading-tight mb-3 outline-none",children:J.content}),P.jsx(W4e,{type:J.type,options:J.options,value:s[J.id],onChange:te=>L(J.id,te)})]})})})}),P.jsx(V4e,{current:i,total:n.length,onPrev:W,onNext:B,onSubmit:()=>X(),onOpenSheet:()=>g(!0),answeredCount:Q}),P.jsxs(Ci,{title:"答题卡",open:p,onCancel:()=>g(!1),footer:null,centered:!0,width:340,destroyOnClose:!0,children:[P.jsxs("div",{className:"flex items-center justify-between mb-3",children:[P.jsxs("div",{className:"text-xs text-gray-700",children:["已答 ",P.jsx("span",{className:"text-[#00897B] font-medium",children:Q})," / ",n.length]}),P.jsx(kt,{type:"primary",onClick:U,className:"bg-[#00897B] hover:bg-[#00796B] text-xs h-7 px-3",children:"回到当前题"})]}),P.jsx("div",{className:"grid grid-cols-5 gap-2",children:n.map((te,re)=>{const q=re===i,ne=!!s[te.id];let he="h-9 w-9 rounded-full flex items-center justify-center text-xs font-medium border transition-colors ";return q?he+="border-[#00897B] bg-[#E0F2F1] text-[#00695C]":ne?he+="border-[#00897B] bg-[#00897B] text-white":he+="border-gray-200 text-gray-600 bg-white hover:border-[#00897B]",P.jsx("button",{type:"button",className:he,onClick:()=>{g(!1),H(re)},"aria-label":`跳转到第 ${re+1} 题`,children:re+1},te.id)})})]})]})},_N="quiz_progress_active_v1:",K4e="quiz_progress_v1:",Jj=(e,t,r)=>{const n=r?`task:${r}`:`subject:${t||"none"}`;return`${K4e}${e}:${n}`},eF=(e,t)=>{localStorage.setItem(`${_N}${e}`,t)},G4e=e=>{localStorage.removeItem(`${_N}${e}`)},y1=e=>localStorage.getItem(`${_N}${e}`)||"",dy=(e,t)=>{const r={...t,savedAt:new Date().toISOString()};localStorage.setItem(e,JSON.stringify(r))},q4e=e=>{const t=y1(e);if(!t)return null;const r=localStorage.getItem(t);if(!r)return null;try{const n=JSON.parse(r);return!n||!Array.isArray(n.questions)||!n.answers||typeof n.answers!="object"||typeof n.currentQuestionIndex!="number"||typeof n.timeLeftSeconds!="number"||typeof n.timeLimitMinutes!="number"||typeof n.subjectId!="string"||typeof n.taskId!="string"?null:n}catch{return null}},tF=e=>{const t=y1(e);t&&localStorage.removeItem(t),G4e(e)},{Item:hf}=GI,X4e=({status:e})=>{const t=e==="优秀"?"text-green-500":e==="合格"?"text-blue-500":"text-red-500",r=()=>e==="优秀"?P.jsx("path",{d:"M12 3.6l2.63 5.33 5.89.86-4.26 4.15 1.01 5.86L12 17.69 6.73 19.8l1.01-5.86-4.26-4.15 5.89-.86L12 3.6z",fill:"currentColor",stroke:"none",className:"text-yellow-500"}):e==="合格"?P.jsx("path",{d:"M7.5 12.2l3 3L16.8 9"}):P.jsxs(P.Fragment,{children:[P.jsx("path",{d:"M12 7v6"}),P.jsx("path",{d:"M12 16.8h.01"})]});return P.jsxs("svg",{viewBox:"0 0 24 24",width:"32",height:"32",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:t,children:[P.jsx("circle",{cx:"12",cy:"12",r:"10"}),r()]})},Y4e=()=>{const{id:e}=gne(),t=Xo();Mv();const[r,n]=d.useState(null),[a,i]=d.useState([]),[o,s]=d.useState(!0);d.useEffect(()=>{if(!e){ct.error("无效的记录ID"),t("/");return}l()},[e,t]);const l=async()=>{try{s(!0);const g=await bd.getRecordDetail(e),y=(g==null?void 0:g.data)??g;n((y==null?void 0:y.record)??null),i(Array.isArray(y==null?void 0:y.answers)?y.answers:[])}catch(g){ct.error(g.message||"获取答题结果失败"),n(null),i([])}finally{s(!1)}},c=()=>{t("/tasks")},u=g=>{switch(g){case"single":return"bg-blue-100 text-blue-800";case"multiple":return"bg-purple-100 text-purple-800";case"judgment":return"bg-orange-100 text-orange-800";case"text":return"bg-green-100 text-green-800";default:return"bg-gray-100 text-gray-800"}},f=g=>{if(!g)return[];if(Array.isArray(g))return g;try{const y=JSON.parse(g);return Array.isArray(y)?y:[g]}catch{return[g]}},m=g=>{const y=f(g.userAnswer),x=f(g.correctAnswer),b=new Set(x);return g.questionType==="multiple"?P.jsx("span",{className:"font-medium",children:y.map((S,w)=>{const E=!b.has(S);return P.jsxs("span",{className:E?"text-red-600":"text-gray-800",children:[w>0&&", ",S]},w)})}):P.jsx("span",{className:g.isCorrect?"text-green-600 font-medium":"text-red-600 font-medium",children:Array.isArray(g.userAnswer)?g.userAnswer.join(", "):g.userAnswer})},h=g=>{const y=f(g.userAnswer),x=f(g.correctAnswer),b=new Set(y);return g.questionType==="multiple"?P.jsx("span",{className:"font-medium",children:x.map((S,w)=>{const E=!b.has(S);return P.jsxs("span",{className:E?"text-red-600":"text-green-600",children:[w>0&&", ",S]},w)})}):P.jsx("span",{className:"text-green-600 font-medium",children:Array.isArray(g.correctAnswer)?g.correctAnswer.join(", "):g.correctAnswer||"未知"})};if(o)return P.jsx(Fc,{children:P.jsx("div",{className:"flex justify-center items-center h-full min-h-[400px]",children:P.jsxs("div",{className:"text-center",children:[P.jsx("div",{className:"animate-spin rounded-full h-10 w-10 border-b-2 border-mars-600 mx-auto mb-3"}),P.jsx("p",{className:"text-gray-600 text-sm",children:"正在加载答题结果..."})]})})});if(!r)return P.jsx(Fc,{children:P.jsx("div",{className:"flex justify-center items-center h-full min-h-[400px]",children:P.jsxs("div",{className:"text-center",children:[P.jsx("p",{className:"text-gray-600 mb-4 text-sm",children:"答题记录不存在"}),P.jsx(kt,{type:"primary",onClick:c,className:"bg-mars-500 hover:bg-mars-600 text-sm",children:"返回首页"})]})})});const v=(r.correctCount/r.totalCount*100).toFixed(1),p=g=>{switch(g){case"不及格":return"bg-red-100 text-red-800 border-red-200";case"合格":return"bg-blue-100 text-blue-800 border-blue-200";case"优秀":return"bg-green-100 text-green-800 border-green-200";default:return"bg-gray-100 text-gray-800 border-gray-200"}};return P.jsx(Fc,{children:P.jsxs("div",{className:"max-w-md mx-auto px-4",children:[P.jsx(_r,{className:"shadow-lg mb-6 rounded-xl border-t-4 border-t-mars-500",bodyStyle:{padding:"12px"},children:P.jsxs("div",{className:"flex items-start gap-3",children:[P.jsx("div",{className:"flex-shrink-0 mt-0.5",children:P.jsx(X4e,{status:r.status})}),P.jsxs("div",{className:"flex-1 min-w-0",children:[P.jsxs("div",{className:"text-sm font-semibold text-gray-800 mb-0.5",children:["答题完成!您的得分是 ",r.totalScore," 分"]}),P.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[P.jsx("span",{className:`px-2 py-0.5 rounded text-xs font-medium border ${p(r.status)}`,children:r.status}),P.jsxs("span",{className:"text-xs text-gray-600",children:["正确率 ",v,"% (",r.correctCount,"/",r.totalCount,")"]})]}),P.jsx(kt,{type:"primary",onClick:c,className:"bg-mars-500 hover:bg-mars-600 border-none px-4 h-7 text-xs",children:"返回答题记录"})]})]})}),P.jsxs(_r,{className:"shadow-lg mb-6 rounded-xl",bodyStyle:{padding:"12px"},children:[P.jsx("h3",{className:"text-sm font-semibold mb-2 text-gray-800 border-l-4 border-mars-500 pl-3",children:"答题信息"}),P.jsxs(GI,{bordered:!0,column:1,size:"small",className:"text-xs",children:[P.jsx(hf,{label:"答题时间",children:si(r.createdAt)}),P.jsxs(hf,{label:"总题数",children:[r.totalCount," 题"]}),P.jsxs(hf,{label:"正确数",children:[r.correctCount," 题"]}),P.jsxs(hf,{label:"总得分",children:[r.totalScore," 分"]}),P.jsxs(hf,{label:"得分占比",children:[r.scorePercentage.toFixed(1),"%"]}),P.jsx(hf,{label:"考试状态",children:r.status})]})]}),P.jsxs(_r,{className:"shadow-lg rounded-xl",children:[P.jsx("h3",{className:"text-base font-semibold mb-3 text-gray-800 border-l-4 border-mars-500 pl-3",children:"答案详情"}),P.jsx("div",{className:"space-y-3",children:a.map((g,y)=>P.jsxs("div",{className:`p-3 rounded-lg border ${g.isCorrect?"border-green-200 bg-green-50/50":"border-red-200 bg-red-50/50"}`,children:[P.jsxs("div",{className:"flex justify-between items-start mb-1.5",children:[P.jsxs("div",{className:"flex items-center gap-1.5",children:[P.jsxs("span",{className:"font-medium text-gray-800 text-sm",children:["第 ",y+1," 题"]}),P.jsx("span",{className:`${u(g.questionType||"")} px-1.5 py-0.5 rounded text-xs`,children:g.questionType==="single"?"单选题":g.questionType==="multiple"?"多选题":g.questionType==="judgment"?"判断题":"简答题"})]}),P.jsx("span",{className:`px-1.5 py-0.5 rounded text-xs ${g.isCorrect?"bg-green-100 text-green-800":"bg-red-100 text-red-800"}`,children:g.isCorrect?"正确":"错误"})]}),P.jsxs("div",{className:"mb-1.5",children:[P.jsx("span",{className:"text-gray-600 text-xs",children:"题目:"}),P.jsx("span",{className:"text-gray-800 font-medium text-sm",children:g.questionContent||"题目内容加载失败"})]}),P.jsxs("div",{className:"mb-1.5",children:[P.jsx("span",{className:"text-gray-600 text-xs",children:"您的答案:"}),m(g)]}),!g.isCorrect&&P.jsxs("div",{className:"mb-1.5",children:[P.jsx("span",{className:"text-gray-600 text-xs",children:"正确答案:"}),h(g)]}),String(g.questionAnalysis??"").trim()?P.jsxs("div",{className:"mb-1.5",children:[P.jsx("span",{className:"text-gray-600 text-xs",children:"解析:"}),P.jsx("span",{className:"text-gray-800 whitespace-pre-wrap text-sm",children:g.questionAnalysis})]}):null,P.jsx("div",{className:"mb-1 pt-1.5 border-t border-gray-100 mt-1.5",children:P.jsxs("span",{className:"text-gray-500 text-xs",children:["本题分值:",g.questionScore||0," 分,你的得分:",P.jsx("span",{className:"font-medium text-gray-800",children:g.score})," 分"]})})]},g.id))})]})]})})},{Title:fy,Text:Kn}=kv,Q4e=()=>{const[e,t]=d.useState([]),[r,n]=d.useState([]),[a,i]=d.useState(!0),o=Xo(),{user:s}=Mv();d.useEffect(()=>{if(!(s!=null&&s.id)){ct.warning("请先填写个人信息"),o("/");return}l()},[s==null?void 0:s.id,o]);const l=async()=>{try{if(i(!0),!(s!=null&&s.id))return;const[p,g]=await Promise.all([sRe.getSubjects(),lRe.getUserTasks(s.id)]);t(p.data),n(g.data)}catch{ct.error("获取数据失败")}finally{i(!1)}},c=p=>{var w,E;const g=Date.now(),y=((w=hs(p.startAt))==null?void 0:w.getTime())??NaN,x=((E=hs(p.endAt))==null?void 0:E.getTime())??NaN,b=Number(p.usedAttempts)||0,S=Number(p.maxAttempts)||3;return!Number.isFinite(y)||!Number.isFinite(x)?"completed":gx||b>=S?"completed":"ongoing"},u=p=>r.filter(g=>c(g)===p),f=p=>Number.isFinite(p)?p>=80?"优秀":p>=60?"合格":"不及格":"不及格",m=p=>p==="优秀"?"green":p==="合格"?"blue":"red",h=(p,g)=>{if((Number(p.usedAttempts)||0)<=0||typeof p.bestScore!="number")return null;const x=Number((g==null?void 0:g.totalScore)??p.totalScore)||0,b=x>0?p.bestScore/x*100:NaN,S=f(b);return P.jsxs(mn,{color:m(S),className:"text-xs",children:["历史最高:",S]})},v=async p=>{if(!p){ct.warning("请选择考试任务");return}const g=r.find(S=>S.id===p),y=Number(g==null?void 0:g.usedAttempts)||0,x=Number(g==null?void 0:g.maxAttempts)||3,b=x-y;if(y>=x){ct.error("考试次数已用尽");return}Ci.confirm({title:"确认开始考试",content:`是否现在开始考试,你还有${b}次重试机会`,okText:"确认",cancelText:"取消",onOk:async()=>{try{const S=await bd.generateQuiz((s==null?void 0:s.id)||"",void 0,p),{questions:w,totalScore:E,timeLimit:C}=S.data;o("/quiz",{state:{questions:w,totalScore:E,timeLimit:C,taskId:p,taskName:(g==null?void 0:g.name)||""}})}catch(S){ct.error(S.message||"生成试卷失败")}}})};return a?P.jsx(Fc,{children:P.jsx("div",{className:"flex justify-center items-center h-full min-h-[500px]",children:P.jsx(JI,{size:"large"})})}):P.jsx(Fc,{children:P.jsxs("div",{className:"container mx-auto px-4 max-w-md",children:[P.jsx("div",{className:"grid grid-cols-1 gap-4",children:P.jsxs("div",{children:[P.jsxs("div",{className:"flex items-center mb-3 border-b border-gray-200 pb-1",children:[P.jsx(wc,{className:"text-lg mr-2 text-mars-400"}),P.jsxs("div",{children:[P.jsx(fy,{level:4,className:"!mb-0 !text-gray-700 !text-base",children:"我的考试任务"}),s&&P.jsxs(Kn,{className:"text-sm text-gray-500",children:["欢迎,",s.name]})]}),P.jsx(kt,{type:"default",size:"small",icon:P.jsx(eN,{}),className:"ml-auto",onClick:l,children:"刷新"})]}),P.jsxs("div",{className:"space-y-4",children:[P.jsxs("div",{children:[P.jsxs("div",{className:"flex items-center mb-2",children:[P.jsx("span",{className:"inline-block w-2 h-2 bg-green-500 rounded-full mr-2"}),P.jsx(Kn,{className:"text-sm font-medium text-gray-700",children:"进行中"}),P.jsx(mn,{color:"green",className:"ml-2 text-xs",children:u("ongoing").length})]}),P.jsxs("div",{className:"space-y-2",children:[u("ongoing").map(p=>{const g=e.find(b=>b.id===p.subjectId),y=Number(p.usedAttempts)||0,x=Number(p.maxAttempts)||3;return P.jsx(kt,{type:"default",block:!0,className:"h-auto py-3 px-4 text-left border-l-4 border-l-green-500 hover:border-l-green-600 hover:shadow-md transition-all duration-300",onClick:()=>v(p.id),children:P.jsx("div",{className:"flex justify-between items-center w-full",children:P.jsxs("div",{className:"flex-1",children:[P.jsxs("div",{className:"flex items-center mb-1",children:[P.jsx(fy,{level:5,className:"mb-0 text-gray-800 !text-sm",children:p.name}),g&&P.jsxs("div",{className:"flex items-center ml-auto",children:[P.jsx("span",{className:"mr-1 text-gray-400 text-xs",children:"(时长:"}),P.jsxs(Kn,{className:"text-gray-600 text-xs",children:[g.timeLimitMinutes,"分钟)"]})]})]}),P.jsxs("div",{className:"flex justify-between items-center mb-2",children:[P.jsxs("div",{className:"flex items-center",children:[P.jsx(wc,{className:"mr-1 text-gray-400 text-xs"}),P.jsx(Kn,{className:"text-gray-600 text-xs",children:(g==null?void 0:g.name)||"未知科目"})]}),P.jsxs("div",{children:[P.jsxs(mn,{color:"green",className:"text-xs",children:[y,"/",x]}),h(p,g)]})]}),P.jsxs("div",{className:"flex justify-between items-center mb-2",children:[P.jsxs("div",{className:"flex items-center",children:[P.jsx(Nh,{className:"mr-1 text-gray-400 text-xs"}),P.jsxs(Kn,{className:"text-gray-600 text-xs",children:[Ou(p.startAt)," - ",Ou(p.endAt)]})]}),P.jsx("div",{className:"text-green-600",children:P.jsx(Kn,{className:"text-xs px-2 py-1 rounded border border-green-200 bg-green-50",children:"点击开始考试"})})]})]})})},p.id)}),u("ongoing").length===0&&P.jsx("div",{className:"text-center py-4 bg-gray-50 border-dashed border-2 border-gray-200 rounded",children:P.jsx(Kn,{type:"secondary",className:"text-sm",children:"暂无进行中的任务"})})]})]}),P.jsxs("div",{children:[P.jsxs("div",{className:"flex items-center mb-2",children:[P.jsx("span",{className:"inline-block w-2 h-2 bg-gray-400 rounded-full mr-2"}),P.jsx(Kn,{className:"text-sm font-medium text-gray-700",children:"已完成"}),P.jsx(mn,{color:"default",className:"ml-2 text-xs",children:u("completed").length})]}),P.jsxs("div",{className:"space-y-2",children:[u("completed").map(p=>{var C;const g=e.find(O=>O.id===p.subjectId),y=Number(p.usedAttempts)||0,x=Number(p.maxAttempts)||3,b=y>=x,S=((C=hs(p.endAt))==null?void 0:C.getTime())??NaN,w=Number.isFinite(S)?S!E&&v(p.id),children:P.jsx("div",{className:"flex justify-between items-center w-full",children:P.jsxs("div",{className:"flex-1",children:[P.jsxs("div",{className:"flex justify-between items-center mb-1",children:[P.jsx(fy,{level:5,className:"mb-0 text-gray-800 !text-sm",children:p.name}),g&&P.jsxs("div",{className:"flex items-center ml-auto",children:[P.jsx("span",{className:"mr-1 text-gray-400 text-xs",children:"(时长:"}),P.jsxs(Kn,{className:"text-gray-600 text-xs",children:[g.timeLimitMinutes,"分钟)"]})]})]}),P.jsxs("div",{className:"flex justify-between items-center mb-2",children:[P.jsxs("div",{className:"flex items-center",children:[P.jsx(wc,{className:"mr-1 text-gray-400 text-xs"}),P.jsx(Kn,{className:"text-gray-600 text-xs",children:(g==null?void 0:g.name)||"未知科目"})]}),P.jsxs("div",{children:[P.jsxs(mn,{color:b?"red":"default",className:"text-xs",children:[y,"/",x]}),h(p,g)]})]}),P.jsxs("div",{className:"flex justify-between items-center mb-2",children:[P.jsxs("div",{className:"flex items-center",children:[P.jsx(Nh,{className:"mr-1 text-gray-400 text-xs"}),P.jsxs(Kn,{className:"text-gray-600 text-xs",children:[Ou(p.startAt)," - ",Ou(p.endAt)]})]}),b?P.jsx("div",{className:"text-red-600",children:P.jsx(Kn,{className:"text-xs px-2 py-1 rounded border border-red-200 bg-red-50",children:"次数用尽"})}):P.jsx("div",{className:"text-gray-400",children:P.jsx(Kn,{className:"text-xs px-2 py-1 rounded border border-gray-200 bg-gray-50",children:"已结束"})})]})]})})},p.id)}),u("completed").length===0&&P.jsx("div",{className:"text-center py-4 bg-gray-50 border-dashed border-2 border-gray-200 rounded",children:P.jsx(Kn,{type:"secondary",className:"text-sm",children:"暂无已完成的任务"})})]})]}),P.jsxs("div",{children:[P.jsxs("div",{className:"flex items-center mb-2",children:[P.jsx("span",{className:"inline-block w-2 h-2 bg-blue-400 rounded-full mr-2"}),P.jsx(Kn,{className:"text-sm font-medium text-gray-700",children:"未开始"}),P.jsx(mn,{color:"blue",className:"ml-2 text-xs",children:u("notStarted").length})]}),P.jsxs("div",{className:"space-y-2",children:[u("notStarted").map(p=>{const g=e.find(b=>b.id===p.subjectId),y=Number(p.usedAttempts)||0,x=Number(p.maxAttempts)||3;return P.jsx(kt,{type:"default",block:!0,disabled:!0,className:"h-auto py-3 px-4 text-left border-l-4 border-l-blue-400 opacity-75 cursor-not-allowed",children:P.jsx("div",{className:"flex justify-between items-center w-full",children:P.jsxs("div",{className:"flex-1",children:[P.jsxs("div",{className:"flex justify-between items-center mb-1",children:[P.jsx(fy,{level:5,className:"mb-0 text-gray-800 !text-sm",children:p.name}),g&&P.jsxs("div",{className:"flex items-center ml-auto",children:[P.jsx("span",{className:"mr-1 text-gray-400 text-xs",children:"(时长:"}),P.jsxs(Kn,{className:"text-gray-600 text-xs",children:[g.timeLimitMinutes,"分钟)"]})]})]}),P.jsxs("div",{className:"flex justify-between items-center mb-2",children:[P.jsxs("div",{className:"flex items-center",children:[P.jsx(wc,{className:"mr-1 text-gray-400 text-xs"}),P.jsx(Kn,{className:"text-gray-600 text-xs",children:(g==null?void 0:g.name)||"未知科目"})]}),P.jsxs("div",{children:[P.jsxs(mn,{color:"blue",className:"text-xs",children:[y,"/",x]}),h(p,g)]})]}),P.jsxs("div",{className:"flex justify-between items-center mb-2",children:[P.jsxs("div",{className:"flex items-center",children:[P.jsx(Nh,{className:"mr-1 text-gray-400 text-xs"}),P.jsxs(Kn,{className:"text-gray-600 text-xs",children:[Ou(p.startAt)," - ",Ou(p.endAt)]})]}),P.jsx("div",{className:"text-blue-600",children:P.jsx(Kn,{className:"text-xs px-2 py-1 rounded border border-blue-200 bg-blue-50",children:"未开始"})})]})]})})},p.id)}),u("notStarted").length===0&&P.jsx("div",{className:"text-center py-4 bg-gray-50 border-dashed border-2 border-gray-200 rounded",children:P.jsx(Kn,{type:"secondary",className:"text-sm",children:"暂无未开始的任务"})})]})]})]})]})}),P.jsx("div",{className:"mt-6 text-center",children:P.jsx(kt,{type:"default",size:"large",className:"px-4 h-10 text-sm hover:border-mars-500 hover:text-mars-500",onClick:()=>o("/tasks"),children:"查看我的答题记录"})})]})})},{Title:Ort,Text:Vm}=kv,Z4e=()=>{const[e,t]=d.useState([]),[r,n]=d.useState(!0),a=Xo(),{user:i}=Mv();d.useEffect(()=>{i&&o()},[i]);const o=async()=>{try{if(n(!0),!(i!=null&&i.id))return;const u=await bd.getUserRecords(i.id);t(u.data)}catch{ct.error("获取答题记录失败")}finally{n(!1)}},s=u=>{a(`/result/${u}`)},l=u=>{switch(u){case"不及格":return"red";case"合格":return"blue";case"优秀":return"green";default:return"default"}},c=[{title:"操作",key:"action",width:80,render:u=>P.jsx(kt,{type:"link",size:"small",icon:P.jsx(Pv,{}),onClick:()=>s(u.id),style:{fontSize:"12px",padding:0},children:"查看结果"})},{title:"任务名称",dataIndex:"taskName",key:"taskName",width:100,render:u=>P.jsx(Vm,{strong:!0,style:{fontSize:"12px"},children:u||"-"})},{title:"考试科目",dataIndex:"subjectName",key:"subjectName",width:90,render:u=>P.jsxs($n,{size:4,children:[P.jsx(wc,{style:{fontSize:"12px"},className:"text-mars-600"}),P.jsx(Vm,{style:{fontSize:"12px"},children:u||"-"})]})},{title:"得分",dataIndex:"totalScore",key:"totalScore",width:60,render:u=>P.jsxs(Vm,{strong:!0,style:{fontSize:"12px"},children:[u,"分"]})},{title:"状态",dataIndex:"status",key:"status",width:60,render:u=>P.jsx(mn,{color:l(u),style:{fontSize:"11px"},children:u})},{title:"正确题数",key:"correctCount",width:80,render:u=>P.jsxs(Vm,{style:{fontSize:"12px"},children:[u.correctCount,"/",u.totalCount]})},{title:"答题时间",dataIndex:"createdAt",key:"createdAt",width:110,render:u=>P.jsxs($n,{size:4,children:[P.jsx(FS,{style:{fontSize:"11px"},className:"text-gray-500"}),P.jsx(Vm,{type:"secondary",style:{fontSize:"11px"},children:si(u)})]})}];return r?P.jsx(Fc,{children:P.jsx("div",{className:"flex justify-center items-center h-full min-h-[500px]",children:P.jsx(JI,{size:"large"})})}):P.jsx(Fc,{children:P.jsxs("div",{className:"container mx-auto px-2 max-w-md",children:[P.jsx(oi,{columns:c,dataSource:e,rowKey:"id",size:"small",pagination:{pageSize:5,showSizeChanger:!1,showTotal:u=>`共 ${u} 条`,size:"small"},locale:{emptyText:"暂无答题记录"},scroll:{x:"max-content"},className:"mobile-table",style:{fontSize:"12px"},rowClassName:()=>"mobile-table-row"}),P.jsx("div",{className:"mt-4 text-center",children:P.jsx(kt,{type:"default",size:"large",onClick:()=>a("/subjects"),icon:P.jsx(wc,{}),className:"px-6 h-10 text-sm hover:border-mars-500 hover:text-mars-500",children:"返回任务选择"})})]})})},{Header:J4e,Content:eAe,Footer:tAe}=Rl,rG="admin_login_records",rAe=5,yO=()=>{try{const e=localStorage.getItem(rG);return e?JSON.parse(e):[]}catch(e){return console.error("获取登录记录失败:",e),[]}},nAe=e=>{try{const r=yO().filter(a=>a.username!==e.username),n=[e,...r].slice(0,rAe);localStorage.setItem(rG,JSON.stringify(n))}catch(t){console.error("保存登录记录失败:",t)}},aAe=()=>{const e=Xo(),{setAdmin:t}=gN(),[r,n]=d.useState(!1),[a]=Ht.useForm(),[i,o]=d.useState([]);d.useEffect(()=>{o(yO())},[]);const s=async c=>{try{n(!0);const u=await qs.login(c);u.success&&(nAe({username:c.username,timestamp:Date.now()}),o(yO()),t({username:c.username,token:u.data.token}),ct.success("登录成功"),e("/admin/dashboard"))}catch(u){ct.error(u.message||"登录失败")}finally{n(!1)}},l=c=>{a.setFieldsValue({username:c.username,password:""})};return P.jsxs(Rl,{className:"min-h-screen bg-gray-50",children:[P.jsx(J4e,{className:"bg-white shadow-sm flex items-center px-4 h-12 sticky top-0 z-10",children:P.jsx("img",{src:iw,alt:"主要LOGO",style:{width:"120px",height:"48px"}})}),P.jsx(eAe,{className:"flex items-center justify-center p-2 bg-gradient-to-br from-mars-50 to-white",children:P.jsx("div",{className:"w-full max-w-md",children:P.jsxs(_r,{className:"shadow-xl border-t-4 border-t-mars-500 p-2",children:[P.jsxs("div",{className:"text-center mb-3",children:[P.jsx("h1",{className:"text-2xl font-bold text-mars-600 mb-2",children:"管理员登录"}),P.jsx("p",{className:"text-gray-600 text-xs",children:"请输入管理员账号密码"})]}),P.jsxs(Ht,{layout:"vertical",onFinish:s,autoComplete:"off",form:a,children:[i.length>0&&P.jsx(Ht.Item,{label:"最近登录",className:"mb-2",children:P.jsx(ea,{placeholder:"选择最近登录记录",className:"w-full",style:{height:"auto"},onSelect:c=>{const u=i.find(f=>`${f.username}-${f.timestamp}`===c);u&&l(u)},options:i.map(c=>({value:`${c.username}-${c.timestamp}`,label:P.jsxs("div",{className:"flex flex-col p-1",style:{minHeight:"40px",justifyContent:"center"},children:[P.jsx("span",{className:"font-medium block text-xs",children:c.username}),P.jsx("span",{className:"text-xs text-gray-500 block",children:new Date(c.timestamp).toLocaleString()})]})}))})}),P.jsx(Ht.Item,{label:"用户名",name:"username",rules:[{required:!0,message:"请输入用户名"},{min:3,message:"用户名至少3个字符"}],className:"mb-2",children:P.jsx(Na,{placeholder:"请输入用户名",autoComplete:"username"})}),P.jsx(Ht.Item,{label:"密码",name:"password",rules:[{required:!0,message:"请输入密码"},{min:6,message:"密码至少6个字符"}],className:"mb-2",children:P.jsx(Na.Password,{placeholder:"请输入密码",autoComplete:"new-password",allowClear:!0})}),P.jsx(Ht.Item,{className:"mb-0 mt-3",children:P.jsx(kt,{type:"primary",htmlType:"submit",loading:r,block:!0,className:"bg-mars-500 hover:!bg-mars-600 border-none shadow-md h-9 text-sm font-medium",children:"登录"})})]}),P.jsx("div",{className:"mt-3 text-center",children:P.jsx("a",{href:"/",className:"text-mars-600 hover:text-mars-800 text-xs transition-colors",children:"返回用户端"})})]})})}),P.jsx(tAe,{className:"bg-white border-t border-gray-100 py-1.5 px-2 flex flex-col md:flex-row justify-center items-center text-gray-400 text-xs",children:P.jsxs("div",{className:"mb-2 md:mb-0 whitespace-nowrap",children:["© ",new Date().getFullYear()," Boonlive OA System. All Rights Reserved."]})})]})};function nG(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t{var{children:r,width:n,height:a,viewBox:i,className:o,style:s,title:l,desc:c}=e,u=cAe(e,lAe),f=i||{width:n,height:a,x:0,y:0},m=jn("recharts-surface",o);return d.createElement("svg",bO({},Ko(u),{className:m,width:n,height:a,style:s,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),d.createElement("title",null,l),d.createElement("desc",null,c),r)}),dAe=["children","className"];function SO(){return SO=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:r,className:n}=e,a=fAe(e,dAe),i=jn("recharts-layer",n);return d.createElement("g",SO({className:i},Ko(a),{ref:t}),r)}),oG=d.createContext(null),hAe=()=>d.useContext(oG);function Gr(e){return function(){return e}}const sG=Math.cos,x1=Math.sin,Rs=Math.sqrt,b1=Math.PI,ow=2*b1,wO=Math.PI,CO=2*wO,Tu=1e-6,pAe=CO-Tu;function lG(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return lG;const r=10**t;return function(n){this._+=n[0];for(let a=1,i=n.length;aTu)if(!(Math.abs(f*l-c*u)>Tu)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,v=a-s,p=l*l+c*c,g=h*h+v*v,y=Math.sqrt(p),x=Math.sqrt(m),b=i*Math.tan((wO-Math.acos((p+m-g)/(2*y*x)))/2),S=b/x,w=b/y;Math.abs(S-1)>Tu&&this._append`L${t+S*u},${r+S*f}`,this._append`A${i},${i},0,0,${+(f*h>u*v)},${this._x1=t+w*l},${this._y1=r+w*c}`}}arc(t,r,n,a,i,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(a),l=n*Math.sin(a),c=t+s,u=r+l,f=1^o,m=o?a-i:i-a;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Tu||Math.abs(this._y1-u)>Tu)&&this._append`L${c},${u}`,n&&(m<0&&(m=m%CO+CO),m>pAe?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=c},${this._y1=u}`:m>Tu&&this._append`A${n},${n},0,${+(m>=wO)},${f},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+a}h${-n}Z`}toString(){return this._}}function PN(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new gAe(t)}function IN(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function cG(e){this._context=e}cG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function sw(e){return new cG(e)}function uG(e){return e[0]}function dG(e){return e[1]}function fG(e,t){var r=Gr(!0),n=null,a=sw,i=null,o=PN(s);e=typeof e=="function"?e:e===void 0?uG:Gr(e),t=typeof t=="function"?t:t===void 0?dG:Gr(t);function s(l){var c,u=(l=IN(l)).length,f,m=!1,h;for(n==null&&(i=a(h=o())),c=0;c<=u;++c)!(c=h;--v)s.point(b[v],S[v]);s.lineEnd(),s.areaEnd()}y&&(b[m]=+e(g,m,f),S[m]=+t(g,m,f),s.point(n?+n(g,m,f):b[m],r?+r(g,m,f):S[m]))}if(x)return s=null,x+""||null}function u(){return fG().defined(a).curve(o).context(i)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:Gr(+f),n=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Gr(+f),c):e},c.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Gr(+f),c):n},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:Gr(+f),r=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Gr(+f),c):t},c.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Gr(+f),c):r},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(r)},c.lineX1=function(){return u().x(n).y(t)},c.defined=function(f){return arguments.length?(a=typeof f=="function"?f:Gr(!!f),c):a},c.curve=function(f){return arguments.length?(o=f,i!=null&&(s=o(i)),c):o},c.context=function(f){return arguments.length?(f==null?i=s=null:s=o(i=f),c):i},c}class mG{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function yAe(e){return new mG(e,!0)}function xAe(e){return new mG(e,!1)}const NN={draw(e,t){const r=Rs(t/b1);e.moveTo(r,0),e.arc(0,0,r,0,ow)}},bAe={draw(e,t){const r=Rs(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},hG=Rs(1/3),SAe=hG*2,wAe={draw(e,t){const r=Rs(t/SAe),n=r*hG;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},CAe={draw(e,t){const r=Rs(t),n=-r/2;e.rect(n,n,r,r)}},EAe=.8908130915292852,pG=x1(b1/10)/x1(7*b1/10),$Ae=x1(ow/10)*pG,_Ae=-sG(ow/10)*pG,OAe={draw(e,t){const r=Rs(t*EAe),n=$Ae*r,a=_Ae*r;e.moveTo(0,-r),e.lineTo(n,a);for(let i=1;i<5;++i){const o=ow*i/5,s=sG(o),l=x1(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*a,l*n+s*a)}e.closePath()}},iE=Rs(3),TAe={draw(e,t){const r=-Rs(t/(iE*3));e.moveTo(0,r*2),e.lineTo(-iE*r,-r),e.lineTo(iE*r,-r),e.closePath()}},wo=-.5,Co=Rs(3)/2,EO=1/Rs(12),PAe=(EO/2+1)*3,IAe={draw(e,t){const r=Rs(t/PAe),n=r/2,a=r*EO,i=n,o=r*EO+r,s=-i,l=o;e.moveTo(n,a),e.lineTo(i,o),e.lineTo(s,l),e.lineTo(wo*n-Co*a,Co*n+wo*a),e.lineTo(wo*i-Co*o,Co*i+wo*o),e.lineTo(wo*s-Co*l,Co*s+wo*l),e.lineTo(wo*n+Co*a,wo*a-Co*n),e.lineTo(wo*i+Co*o,wo*o-Co*i),e.lineTo(wo*s+Co*l,wo*l-Co*s),e.closePath()}};function NAe(e,t){let r=null,n=PN(a);e=typeof e=="function"?e:Gr(e||NN),t=typeof t=="function"?t:Gr(t===void 0?64:+t);function a(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:Gr(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:Gr(+i),a):t},a.context=function(i){return arguments.length?(r=i??null,a):r},a}function S1(){}function w1(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function vG(e){this._context=e}vG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:w1(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:w1(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function kAe(e){return new vG(e)}function gG(e){this._context=e}gG.prototype={areaStart:S1,areaEnd:S1,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:w1(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function RAe(e){return new gG(e)}function yG(e){this._context=e}yG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:w1(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function AAe(e){return new yG(e)}function xG(e){this._context=e}xG.prototype={areaStart:S1,areaEnd:S1,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function MAe(e){return new xG(e)}function rF(e){return e<0?-1:1}function nF(e,t,r){var n=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(n||a<0&&-0),o=(r-e._y1)/(a||n<0&&-0),s=(i*a+o*n)/(n+a);return(rF(i)+rF(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function aF(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function oE(e,t,r){var n=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-n)/3;e._context.bezierCurveTo(n+s,a+s*t,i-s,o-s*r,i,o)}function C1(e){this._context=e}C1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:oE(this,this._t0,aF(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,oE(this,aF(this,r=nF(this,e,t)),r);break;default:oE(this,this._t0,r=nF(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function bG(e){this._context=new SG(e)}(bG.prototype=Object.create(C1.prototype)).point=function(e,t){C1.prototype.point.call(this,t,e)};function SG(e){this._context=e}SG.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,a,i){this._context.bezierCurveTo(t,e,n,r,i,a)}};function DAe(e){return new C1(e)}function jAe(e){return new bG(e)}function wG(e){this._context=e}wG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=iF(e),a=iF(t),i=0,o=1;o=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[r-1]=(e[r]+a[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function LAe(e){return new lw(e,.5)}function BAe(e){return new lw(e,0)}function zAe(e){return new lw(e,1)}function Sd(e,t){if((o=e.length)>1)for(var r=1,n,a,i=e[t[0]],o,s=i.length;r=0;)r[t]=t;return r}function HAe(e,t){return e[t]}function WAe(e){const t=[];return t.key=e,t}function VAe(){var e=Gr([]),t=$O,r=Sd,n=HAe;function a(i){var o=Array.from(e.apply(this,arguments),WAe),s,l=o.length,c=-1,u;for(const f of i)for(s=0,++c;s0){for(var r,n,a=0,i=e[0].length,o;a0){for(var r=0,n=e[t[0]],a,i=n.length;r0)||!((i=(a=e[t[0]]).length)>0))){for(var r=0,n=1,a,i,o;n1&&arguments[1]!==void 0?arguments[1]:XAe,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function Sn(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n{var s=r[o-1];return typeof s=="string"?a+s+i:s!==void 0?a+Cc(s)+i:a+i},"")}var Mi=e=>e===0?0:e>0?1:-1,Al=e=>typeof e=="number"&&e!=+e,Ml=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,er=e=>(typeof e=="number"||e instanceof Number)&&!Al(e),Dl=e=>er(e)||typeof e=="string",YAe=0,Op=e=>{var t=++YAe;return"".concat(e||"").concat(t)},so=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!er(t)&&typeof t!="string")return n;var i;if(Ml(t)){if(r==null)return n;var o=t.indexOf("%");i=r*parseFloat(t.slice(0,o))/100}else i=+t;return Al(i)&&(i=n),a&&r!=null&&i>r&&(i=r),i},$G=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;nn&&(typeof t=="function"?t(n):_p(n,t))===r)}var fo=e=>e===null||typeof e>"u",Lv=e=>fo(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function ZAe(e){return e!=null}function Bv(){}var JAe=["type","size","sizeType"];function _O(){return _O=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t="symbol".concat(Lv(e));return _G[t]||NN},sMe=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*iMe;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},lMe=(e,t)=>{_G["symbol".concat(Lv(e))]=t},RN=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,a=nMe(e,JAe),i=sF(sF({},a),{},{type:t,size:r,sizeType:n}),o="circle";typeof t=="string"&&(o=t);var s=()=>{var m=oMe(o),h=NAe().type(m).size(sMe(r,n,o)),v=h();if(v!==null)return v},{className:l,cx:c,cy:u}=i,f=Ko(i);return er(c)&&er(u)&&er(r)?d.createElement("path",_O({},f,{className:jn("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(u,")"),d:s()})):null};RN.registerSymbol=lMe;var OG=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,cMe=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(d.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(a=>{ON(a)&&(n[a]=t||(i=>r[a](r,i)))}),n},uMe=(e,t,r)=>n=>(e(t,r,n),null),TG=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(a=>{var i=e[a];ON(a)&&typeof i=="function"&&(n||(n={}),n[a]=uMe(i,t,r))}),n};function lF(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function dMe(e){for(var t=1;t(o[s]===void 0&&n[s]!==void 0&&(o[s]=n[s]),o),r);return i}function E1(){return E1=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var m=u.formatter||a,h=jn({"recharts-legend-item":!0,["legend-item-".concat(f)]:!0,inactive:u.inactive});if(u.type==="none")return null;var v=u.inactive?i:u.color,p=m?m(u.value,u,f):u.value;return d.createElement("li",E1({className:h,style:l,key:"legend-item-".concat(f)},TG(e,u,f)),d.createElement(TN,{width:r,height:r,viewBox:s,style:c,"aria-label":"".concat(p," legend icon")},d.createElement(bMe,{data:u,iconType:o,inactiveColor:i})),d.createElement("span",{className:"recharts-legend-item-text",style:{color:v}},p))})}var wMe=e=>{var t=Zo(e,xMe),{payload:r,layout:n,align:a}=t;if(!r||!r.length)return null;var i={padding:0,margin:0,textAlign:n==="horizontal"?a:"left"};return d.createElement("ul",{className:"recharts-default-legend",style:i},d.createElement(SMe,E1({},t,{payload:r})))},PG={},IG={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){const a=new Map;for(let i=0;i=0}e.isLength=t})(kG);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=kG;function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r})(fw);var RG={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t})(RG);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fw,r=RG;function n(a){return r.isObjectLike(a)&&t.isArrayLike(a)}e.isArrayLikeObject=n})(NG);var AG={},MG={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cw;function r(n){return function(a){return t.get(a,n)}}e.property=r})(MG);var DG={},MN={},jG={},DN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r!==null&&(typeof r=="object"||typeof r=="function")}e.isObject=t})(DN);var jN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null||typeof r!="object"&&typeof r!="function"}e.isPrimitive=t})(jN);var FN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return r===n||Number.isNaN(r)&&Number.isNaN(n)}e.eq=t})(FN);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=DN,r=jN,n=FN;function a(u,f,m){return typeof m!="function"?a(u,f,()=>{}):i(u,f,function h(v,p,g,y,x,b){const S=m(v,p,g,y,x,b);return S!==void 0?!!S:i(v,p,h,b)},new Map)}function i(u,f,m,h){if(f===u)return!0;switch(typeof f){case"object":return o(u,f,m,h);case"function":return Object.keys(f).length>0?i(u,{...f},m,h):n.eq(u,f);default:return t.isObject(u)?typeof f=="string"?f==="":!0:n.eq(u,f)}}function o(u,f,m,h){if(f==null)return!0;if(Array.isArray(f))return l(u,f,m,h);if(f instanceof Map)return s(u,f,m,h);if(f instanceof Set)return c(u,f,m,h);const v=Object.keys(f);if(u==null||r.isPrimitive(u))return v.length===0;if(v.length===0)return!0;if(h!=null&&h.has(f))return h.get(f)===u;h==null||h.set(f,u);try{for(let p=0;p{})}e.isMatch=r})(MN);var FG={},LN={},LG={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))}e.getSymbols=t})(LG);var BN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}e.getTag=t})(BN);var zN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",r="[object String]",n="[object Number]",a="[object Boolean]",i="[object Arguments]",o="[object Symbol]",s="[object Date]",l="[object Map]",c="[object Set]",u="[object Array]",f="[object Function]",m="[object ArrayBuffer]",h="[object Object]",v="[object Error]",p="[object DataView]",g="[object Uint8Array]",y="[object Uint8ClampedArray]",x="[object Uint16Array]",b="[object Uint32Array]",S="[object BigUint64Array]",w="[object Int8Array]",E="[object Int16Array]",C="[object Int32Array]",O="[object BigInt64Array]",_="[object Float32Array]",T="[object Float64Array]";e.argumentsTag=i,e.arrayBufferTag=m,e.arrayTag=u,e.bigInt64ArrayTag=O,e.bigUint64ArrayTag=S,e.booleanTag=a,e.dataViewTag=p,e.dateTag=s,e.errorTag=v,e.float32ArrayTag=_,e.float64ArrayTag=T,e.functionTag=f,e.int16ArrayTag=E,e.int32ArrayTag=C,e.int8ArrayTag=w,e.mapTag=l,e.numberTag=n,e.objectTag=h,e.regexpTag=t,e.setTag=c,e.stringTag=r,e.symbolTag=o,e.uint16ArrayTag=x,e.uint32ArrayTag=b,e.uint8ArrayTag=g,e.uint8ClampedArrayTag=y})(zN);var BG={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t})(BG);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=LG,r=BN,n=zN,a=jN,i=BG;function o(u,f){return s(u,void 0,u,new Map,f)}function s(u,f,m,h=new Map,v=void 0){const p=v==null?void 0:v(u,f,m,h);if(p!==void 0)return p;if(a.isPrimitive(u))return u;if(h.has(u))return h.get(u);if(Array.isArray(u)){const g=new Array(u.length);h.set(u,g);for(let y=0;yt.isMatch(i,a)}e.matches=n})(DG);var zG={},HG={},WG={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=LN,r=zN;function n(a,i){return t.cloneDeepWith(a,(o,s,l,c)=>{const u=i==null?void 0:i(o,s,l,c);if(u!==void 0)return u;if(typeof a=="object")switch(Object.prototype.toString.call(a)){case r.numberTag:case r.stringTag:case r.booleanTag:{const f=new a.constructor(a==null?void 0:a.valueOf());return t.copyProperties(f,a),f}case r.argumentsTag:{const f={};return t.copyProperties(f,a),f.length=a.length,f[Symbol.iterator]=a[Symbol.iterator],f}default:return}})}e.cloneDeepWith=n})(WG);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=WG;function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r})(HG);var VG={},HN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function r(n,a=Number.MAX_SAFE_INTEGER){switch(typeof n){case"number":return Number.isInteger(n)&&n>=0&&n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?NMe:IMe;YG.useSyncExternalStore=E0.useSyncExternalStore!==void 0?E0.useSyncExternalStore:kMe;XG.exports=YG;var RMe=XG.exports;/** + * @license React + * use-sync-external-store-shim/with-selector.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var mw=d,AMe=RMe;function MMe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var DMe=typeof Object.is=="function"?Object.is:MMe,jMe=AMe.useSyncExternalStore,FMe=mw.useRef,LMe=mw.useEffect,BMe=mw.useMemo,zMe=mw.useDebugValue;qG.useSyncExternalStoreWithSelector=function(e,t,r,n,a){var i=FMe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=BMe(function(){function l(h){if(!c){if(c=!0,u=h,h=n(h),a!==void 0&&o.hasValue){var v=o.value;if(a(v,h))return f=v}return f=h}if(v=f,DMe(u,h))return v;var p=n(h);return a!==void 0&&a(v,p)?(u=h,v):(u=h,f=p)}var c=!1,u,f,m=r===void 0?null:r;return[function(){return l(t())},m===null?void 0:function(){return l(m())}]},[t,r,n,a]);var s=jMe(e,i[0],i[1]);return LMe(function(){o.hasValue=!0,o.value=s},[s]),zMe(s),s};GG.exports=qG;var HMe=GG.exports,WN=d.createContext(null),WMe=e=>e,Ln=()=>{var e=d.useContext(WN);return e?e.store.dispatch:WMe},gx=()=>{},VMe=()=>gx,UMe=(e,t)=>e===t;function rr(e){var t=d.useContext(WN);return HMe.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:VMe,t?t.store.getState:gx,t?t.store.getState:gx,t?e:gx,UMe)}function KMe(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function GMe(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function qMe(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var dF=e=>Array.isArray(e)?e:[e];function XMe(e){const t=Array.isArray(e[0])?e[0]:e;return qMe(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function YMe(e,t){const r=[],{length:n}=e;for(let a=0;a{r=hy(),o.resetResultsCount()},o.resultsCount=()=>i,o.resetResultsCount=()=>{i=0},o}function e3e(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...a)=>{let i=0,o=0,s,l={},c=a.pop();typeof c=="object"&&(l=c,c=a.pop()),KMe(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...r,...l},{memoize:f,memoizeOptions:m=[],argsMemoize:h=QG,argsMemoizeOptions:v=[],devModeChecks:p={}}=u,g=dF(m),y=dF(v),x=XMe(a),b=f(function(){return i++,c.apply(null,arguments)},...g),S=h(function(){o++;const E=YMe(x,arguments);return s=b.apply(null,E),s},...y);return Object.assign(S,{resultFunc:c,memoizedResultFunc:b,dependencies:x,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>s,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:f,argsMemoize:h})};return Object.assign(n,{withTypes:()=>n}),n}var Ue=e3e(QG),t3e=Object.assign((e,t=Ue)=>{GMe(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(i=>e[i]);return t(n,(...i)=>i.reduce((o,s,l)=>(o[r[l]]=s,o),{}))},{withTypes:()=>t3e}),ZG={},JG={},eq={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"?1:n===null?2:n===void 0?3:n!==n?4:0}const r=(n,a,i)=>{if(n!==a){const o=t(n),s=t(a);if(o===s&&o===0){if(na)return i==="desc"?-1:1}return i==="desc"?s-o:o-s}return 0};e.compareValues=r})(eq);var tq={},VN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(VN);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=VN,r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(i,o){return Array.isArray(i)?!1:typeof i=="number"||typeof i=="boolean"||i==null||t.isSymbol(i)?!0:typeof i=="string"&&(n.test(i)||!r.test(i))||o!=null&&Object.hasOwn(o,i)}e.isKey=a})(tq);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=eq,r=tq,n=dw;function a(i,o,s,l){if(i==null)return[];s=l?void 0:s,Array.isArray(i)||(i=Object.values(i)),Array.isArray(o)||(o=o==null?[null]:[o]),o.length===0&&(o=[null]),Array.isArray(s)||(s=s==null?[]:[s]),s=s.map(h=>String(h));const c=(h,v)=>{let p=h;for(let g=0;gv==null||h==null?v:typeof h=="object"&&"key"in h?Object.hasOwn(v,h.key)?v[h.key]:c(v,h.path):typeof h=="function"?h(v):Array.isArray(h)?c(v,h):typeof v=="object"?v[h]:v,f=o.map(h=>(Array.isArray(h)&&h.length===1&&(h=h[0]),h==null||typeof h=="function"||Array.isArray(h)||r.isKey(h)?h:{key:h,path:n.toPath(h)}));return i.map(h=>({original:h,criteria:f.map(v=>u(v,h))})).slice().sort((h,v)=>{for(let p=0;ph.original)}e.orderBy=a})(JG);var rq={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const a=[],i=Math.floor(n),o=(s,l)=>{for(let c=0;c1&&n.isIterateeCall(i,o[0],o[1])?o=[]:s>2&&n.isIterateeCall(o[0],o[1],o[2])&&(o=[o[0]]),t.orderBy(i,r.flatten(o),["asc"])}e.sortBy=a})(ZG);var r3e=ZG.sortBy;const hw=sa(r3e);var nq=e=>e.legend.settings,n3e=e=>e.legend.size,a3e=e=>e.legend.payload,i3e=Ue([a3e,nq],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?hw(n,r):n});function o3e(){return rr(i3e)}var py=1;function aq(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=d.useState({height:0,left:0,top:0,width:0}),n=d.useCallback(a=>{if(a!=null){var i=a.getBoundingClientRect(),o={height:i.height,left:i.left,top:i.top,width:i.width};(Math.abs(o.height-t.height)>py||Math.abs(o.left-t.left)>py||Math.abs(o.top-t.top)>py||Math.abs(o.width-t.width)>py)&&r({height:o.height,left:o.left,top:o.top,width:o.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function Ba(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var s3e=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")(),mF=s3e,lE=()=>Math.random().toString(36).substring(7).split("").join("."),l3e={INIT:`@@redux/INIT${lE()}`,REPLACE:`@@redux/REPLACE${lE()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${lE()}`},$1=l3e;function KN(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function iq(e,t,r){if(typeof e!="function")throw new Error(Ba(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ba(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ba(1));return r(iq)(e,t)}let n=e,a=t,i=new Map,o=i,s=0,l=!1;function c(){o===i&&(o=new Map,i.forEach((g,y)=>{o.set(y,g)}))}function u(){if(l)throw new Error(Ba(3));return a}function f(g){if(typeof g!="function")throw new Error(Ba(4));if(l)throw new Error(Ba(5));let y=!0;c();const x=s++;return o.set(x,g),function(){if(y){if(l)throw new Error(Ba(6));y=!1,c(),o.delete(x),i=null}}}function m(g){if(!KN(g))throw new Error(Ba(7));if(typeof g.type>"u")throw new Error(Ba(8));if(typeof g.type!="string")throw new Error(Ba(17));if(l)throw new Error(Ba(9));try{l=!0,a=n(a,g)}finally{l=!1}return(i=o).forEach(x=>{x()}),g}function h(g){if(typeof g!="function")throw new Error(Ba(10));n=g,m({type:$1.REPLACE})}function v(){const g=f;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(Ba(11));function x(){const S=y;S.next&&S.next(u())}return x(),{unsubscribe:g(x)}},[mF](){return this}}}return m({type:$1.INIT}),{dispatch:m,subscribe:f,getState:u,replaceReducer:h,[mF]:v}}function c3e(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:$1.INIT})>"u")throw new Error(Ba(12));if(typeof r(void 0,{type:$1.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ba(13))})}function oq(e){const t=Object.keys(e),r={};for(let i=0;i"u")throw s&&s.type,new Error(Ba(14));c[f]=v,l=l||v!==h}return l=l||n.length!==Object.keys(o).length,l?c:o}}function _1(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function u3e(...e){return t=>(r,n)=>{const a=t(r,n);let i=()=>{throw new Error(Ba(15))};const o={getState:a.getState,dispatch:(l,...c)=>i(l,...c)},s=e.map(l=>l(o));return i=_1(...s)(a.dispatch),{...a,dispatch:i}}}function sq(e){return KN(e)&&"type"in e&&typeof e.type=="string"}var lq=Symbol.for("immer-nothing"),hF=Symbol.for("immer-draftable"),Ei=Symbol.for("immer-state");function ds(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ao=Object,$0=ao.getPrototypeOf,O1="constructor",pw="prototype",OO="configurable",T1="enumerable",yx="writable",Tp="value",jl=e=>!!e&&!!e[Ei];function Ps(e){var t;return e?cq(e)||vw(e)||!!e[hF]||!!((t=e[O1])!=null&&t[hF])||gw(e)||yw(e):!1}var d3e=ao[pw][O1].toString(),pF=new WeakMap;function cq(e){if(!e||!GN(e))return!1;const t=$0(e);if(t===null||t===ao[pw])return!0;const r=ao.hasOwnProperty.call(t,O1)&&t[O1];if(r===Object)return!0;if(!Sf(r))return!1;let n=pF.get(r);return n===void 0&&(n=Function.toString.call(r),pF.set(r,n)),n===d3e}function zv(e,t,r=!0){Hv(e)===0?(r?Reflect.ownKeys(e):ao.keys(e)).forEach(a=>{t(a,e[a],e)}):e.forEach((n,a)=>t(a,n,e))}function Hv(e){const t=e[Ei];return t?t.type_:vw(e)?1:gw(e)?2:yw(e)?3:0}var vF=(e,t,r=Hv(e))=>r===2?e.has(t):ao[pw].hasOwnProperty.call(e,t),TO=(e,t,r=Hv(e))=>r===2?e.get(t):e[t],P1=(e,t,r,n=Hv(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function f3e(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var vw=Array.isArray,gw=e=>e instanceof Map,yw=e=>e instanceof Set,GN=e=>typeof e=="object",Sf=e=>typeof e=="function",cE=e=>typeof e=="boolean",pl=e=>e.copy_||e.base_,qN=e=>e.modified_?e.copy_:e.base_;function PO(e,t){if(gw(e))return new Map(e);if(yw(e))return new Set(e);if(vw(e))return Array[pw].slice.call(e);const r=cq(e);if(t===!0||t==="class_only"&&!r){const n=ao.getOwnPropertyDescriptors(e);delete n[Ei];let a=Reflect.ownKeys(n);for(let i=0;i1&&ao.defineProperties(e,{set:vy,add:vy,clear:vy,delete:vy}),ao.freeze(e),t&&zv(e,(r,n)=>{XN(n,!0)},!1)),e}function m3e(){ds(2)}var vy={[Tp]:m3e};function xw(e){return e===null||!GN(e)?!0:ao.isFrozen(e)}var I1="MapSet",IO="Patches",uq={};function _0(e){const t=uq[e];return t||ds(0,e),t}var h3e=e=>!!uq[e],Pp,dq=()=>Pp,p3e=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:h3e(I1)?_0(I1):void 0});function gF(e,t){t&&(e.patchPlugin_=_0(IO),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function NO(e){kO(e),e.drafts_.forEach(v3e),e.drafts_=null}function kO(e){e===Pp&&(Pp=e.parent_)}var yF=e=>Pp=p3e(Pp,e);function v3e(e){const t=e[Ei];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function xF(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[Ei].modified_&&(NO(t),ds(4)),Ps(e)&&(e=bF(t,e));const{patchPlugin_:a}=t;a&&a.generateReplacementPatches_(r[Ei].base_,e,t)}else e=bF(t,r);return g3e(t,e,!0),NO(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==lq?e:void 0}function bF(e,t){if(xw(t))return t;const r=t[Ei];if(!r)return YN(t,e.handledSet_,e);if(!bw(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);hq(r,e)}return r.copy_}function g3e(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&XN(t,r)}function fq(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var bw=(e,t)=>e.scope_===t,y3e=[];function mq(e,t,r,n){const a=pl(e),i=e.type_;if(n!==void 0&&TO(a,n,i)===t){P1(a,n,r,i);return}if(!e.draftLocations_){const s=e.draftLocations_=new Map;zv(a,(l,c)=>{if(jl(c)){const u=s.get(c)||[];u.push(l),s.set(c,u)}})}const o=e.draftLocations_.get(t)??y3e;for(const s of o)P1(a,s,r,i)}function x3e(e,t,r){e.callbacks_.push(function(a){var s;const i=t;if(!i||!bw(i,a))return;(s=a.mapSetPlugin_)==null||s.fixSetContents(i);const o=qN(i);mq(e,i.draft_??i,o,r),hq(i,a)})}function hq(e,t){var n;if(e.modified_&&!e.finalized_&&(e.type_===3||(((n=e.assigned_)==null?void 0:n.size)??0)>0)){const{patchPlugin_:a}=t;if(a){const i=a.getPath(e);i&&a.generatePatches_(e,i,t)}fq(e)}}function b3e(e,t,r){const{scope_:n}=e;if(jl(r)){const a=r[Ei];bw(a,n)&&a.callbacks_.push(function(){xx(e);const o=qN(a);mq(e,r,o,t)})}else Ps(r)&&e.callbacks_.push(function(){const i=pl(e);TO(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&YN(TO(e.copy_,t,e.type_),n.handledSet_,n)})}function YN(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||jl(e)||t.has(e)||!Ps(e)||xw(e)||(t.add(e),zv(e,(n,a)=>{if(jl(a)){const i=a[Ei];if(bw(i,r)){const o=qN(i);P1(e,n,o,e.type_),fq(i)}}else Ps(a)&&YN(a,t,r)})),e}function S3e(e,t){const r=vw(e),n={type_:r?1:0,scope_:t?t.scope_:dq(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let a=n,i=QN;r&&(a=[n],i=Ip);const{revoke:o,proxy:s}=Proxy.revocable(a,i);return n.draft_=s,n.revoke_=o,[s,n]}var QN={get(e,t){if(t===Ei)return e;const r=pl(e);if(!vF(r,t,e.type_))return w3e(e,r,t);const n=r[t];if(e.finalized_||!Ps(n))return n;if(n===uE(e.base_,t)){xx(e);const a=e.type_===1?+t:t,i=AO(e.scope_,n,e,a);return e.copy_[a]=i}return n},has(e,t){return t in pl(e)},ownKeys(e){return Reflect.ownKeys(pl(e))},set(e,t,r){const n=pq(pl(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const a=uE(pl(e),t),i=a==null?void 0:a[Ei];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(f3e(r,a)&&(r!==void 0||vF(e.base_,t,e.type_)))return!0;xx(e),RO(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),b3e(e,t,r)),!0},deleteProperty(e,t){return xx(e),uE(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),RO(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=pl(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[yx]:!0,[OO]:e.type_!==1||t!=="length",[T1]:n[T1],[Tp]:r[t]}},defineProperty(){ds(11)},getPrototypeOf(e){return $0(e.base_)},setPrototypeOf(){ds(12)}},Ip={};zv(QN,(e,t)=>{Ip[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}});Ip.deleteProperty=function(e,t){return Ip.set.call(this,e,t,void 0)};Ip.set=function(e,t,r){return QN.set.call(this,e[0],t,r,e[0])};function uE(e,t){const r=e[Ei];return(r?pl(r):e)[t]}function w3e(e,t,r){var a;const n=pq(t,r);return n?Tp in n?n[Tp]:(a=n.get)==null?void 0:a.call(e.draft_):void 0}function pq(e,t){if(!(t in e))return;let r=$0(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=$0(r)}}function RO(e){e.modified_||(e.modified_=!0,e.parent_&&RO(e.parent_))}function xx(e){e.copy_||(e.assigned_=new Map,e.copy_=PO(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var C3e=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,n,a)=>{if(Sf(r)&&!Sf(n)){const o=n;n=r;const s=this;return function(c=o,...u){return s.produce(c,f=>n.call(this,f,...u))}}Sf(n)||ds(6),a!==void 0&&!Sf(a)&&ds(7);let i;if(Ps(r)){const o=yF(this),s=AO(o,r,void 0);let l=!0;try{i=n(s),l=!1}finally{l?NO(o):kO(o)}return gF(o,a),xF(i,o)}else if(!r||!GN(r)){if(i=n(r),i===void 0&&(i=r),i===lq&&(i=void 0),this.autoFreeze_&&XN(i,!0),a){const o=[],s=[];_0(IO).generateReplacementPatches_(r,i,{patches_:o,inversePatches_:s}),a(o,s)}return i}else ds(1,r)},this.produceWithPatches=(r,n)=>{if(Sf(r))return(s,...l)=>this.produceWithPatches(s,c=>r(c,...l));let a,i;return[this.produce(r,n,(s,l)=>{a=s,i=l}),a,i]},cE(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),cE(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),cE(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Ps(t)||ds(8),jl(t)&&(t=ws(t));const r=yF(this),n=AO(r,t,void 0);return n[Ei].isManual_=!0,kO(r),n}finishDraft(t,r){const n=t&&t[Ei];(!n||!n.isManual_)&&ds(9);const{scope_:a}=n;return gF(a,r),xF(void 0,a)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,r){let n;for(n=r.length-1;n>=0;n--){const i=r[n];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}n>-1&&(r=r.slice(n+1));const a=_0(IO).applyPatches_;return jl(t)?a(t,r):this.produce(t,i=>a(i,r))}};function AO(e,t,r,n){const[a,i]=gw(t)?_0(I1).proxyMap_(t,r):yw(t)?_0(I1).proxySet_(t,r):S3e(t,r);return((r==null?void 0:r.scope_)??dq()).drafts_.push(a),i.callbacks_=(r==null?void 0:r.callbacks_)??[],i.key_=n,r&&n!==void 0?x3e(r,i,n):i.callbacks_.push(function(l){var u;(u=l.mapSetPlugin_)==null||u.fixSetContents(i);const{patchPlugin_:c}=l;i.modified_&&c&&c.generatePatches_(i,[],l)}),a}function ws(e){return jl(e)||ds(10,e),vq(e)}function vq(e){if(!Ps(e)||xw(e))return e;const t=e[Ei];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=PO(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=PO(e,!0);return zv(r,(a,i)=>{P1(r,a,vq(i))},n),t&&(t.finalized_=!1),r}var E3e=new C3e,gq=E3e.produce;function yq(e){return({dispatch:r,getState:n})=>a=>i=>typeof i=="function"?i(r,n,e):a(i)}var $3e=yq(),_3e=yq,O3e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?_1:_1.apply(null,arguments)};function Go(e,t){function r(...n){if(t){let a=t(...n);if(!a)throw new Error(lo(0));return{type:e,payload:a.payload,..."meta"in a&&{meta:a.meta},..."error"in a&&{error:a.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>sq(n)&&n.type===e,r}var xq=class dh extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,dh.prototype)}static get[Symbol.species](){return dh}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new dh(...t[0].concat(this)):new dh(...t.concat(this))}};function SF(e){return Ps(e)?gq(e,()=>{}):e}function gy(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function T3e(e){return typeof e=="boolean"}var P3e=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:a=!0,actionCreatorCheck:i=!0}=t??{};let o=new xq;return r&&(T3e(r)?o.push($3e):o.push(_3e(r.extraArgument))),o},bq="RTK_autoBatch",sn=()=>e=>({payload:e,meta:{[bq]:!0}}),wF=e=>t=>{setTimeout(t,e)},Sq=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let a=!0,i=!1,o=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:wF(10):e.type==="callback"?e.queueNotification:wF(e.timeout),c=()=>{o=!1,i&&(i=!1,s.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){const f=()=>a&&u(),m=n.subscribe(f);return s.add(u),()=>{m(),s.delete(u)}},dispatch(u){var f;try{return a=!((f=u==null?void 0:u.meta)!=null&&f[bq]),i=!a,i&&(o||(o=!0,l(c))),n.dispatch(u)}finally{a=!0}}})},I3e=e=>function(r){const{autoBatch:n=!0}=r??{};let a=new xq(e);return n&&a.push(Sq(typeof n=="object"?n:void 0)),a};function N3e(e){const t=P3e(),{reducer:r=void 0,middleware:n,devTools:a=!0,duplicateMiddlewareCheck:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let l;if(typeof r=="function")l=r;else if(KN(r))l=oq(r);else throw new Error(lo(1));let c;typeof n=="function"?c=n(t):c=t();let u=_1;a&&(u=O3e({trace:!1,...typeof a=="object"&&a}));const f=u3e(...c),m=I3e(f);let h=typeof s=="function"?s(m):m();const v=u(...h);return iq(l,o,v)}function wq(e){const t={},r=[];let n;const a={addCase(i,o){const s=typeof i=="string"?i:i.type;if(!s)throw new Error(lo(28));if(s in t)throw new Error(lo(29));return t[s]=o,a},addAsyncThunk(i,o){return o.pending&&(t[i.pending.type]=o.pending),o.rejected&&(t[i.rejected.type]=o.rejected),o.fulfilled&&(t[i.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:i.settled,reducer:o.settled}),a},addMatcher(i,o){return r.push({matcher:i,reducer:o}),a},addDefaultCase(i){return n=i,a}};return e(a),[t,r,n]}function k3e(e){return typeof e=="function"}function R3e(e,t){let[r,n,a]=wq(t),i;if(k3e(e))i=()=>SF(e());else{const s=SF(e);i=()=>s}function o(s=i(),l){let c=[r[l.type],...n.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[a]),c.reduce((u,f)=>{if(f)if(jl(u)){const h=f(u,l);return h===void 0?u:h}else{if(Ps(u))return gq(u,m=>f(m,l));{const m=f(u,l);if(m===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return u},s)}return o.getInitialState=i,o}var A3e="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",M3e=(e=21)=>{let t="",r=e;for(;r--;)t+=A3e[Math.random()*64|0];return t},D3e=Symbol.for("rtk-slice-createasyncthunk");function j3e(e,t){return`${e}/${t}`}function F3e({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[D3e];return function(a){const{name:i,reducerPath:o=i}=a;if(!i)throw new Error(lo(11));typeof process<"u";const s=(typeof a.reducers=="function"?a.reducers(B3e()):a.reducers)||{},l=Object.keys(s),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(S,w){const E=typeof S=="string"?S:S.type;if(!E)throw new Error(lo(12));if(E in c.sliceCaseReducersByType)throw new Error(lo(13));return c.sliceCaseReducersByType[E]=w,u},addMatcher(S,w){return c.sliceMatchers.push({matcher:S,reducer:w}),u},exposeAction(S,w){return c.actionCreators[S]=w,u},exposeCaseReducer(S,w){return c.sliceCaseReducersByName[S]=w,u}};l.forEach(S=>{const w=s[S],E={reducerName:S,type:j3e(i,S),createNotation:typeof a.reducers=="function"};H3e(w)?V3e(E,w,u,t):z3e(E,w,u)});function f(){const[S={},w=[],E=void 0]=typeof a.extraReducers=="function"?wq(a.extraReducers):[a.extraReducers],C={...S,...c.sliceCaseReducersByType};return R3e(a.initialState,O=>{for(let _ in C)O.addCase(_,C[_]);for(let _ of c.sliceMatchers)O.addMatcher(_.matcher,_.reducer);for(let _ of w)O.addMatcher(_.matcher,_.reducer);E&&O.addDefaultCase(E)})}const m=S=>S,h=new Map,v=new WeakMap;let p;function g(S,w){return p||(p=f()),p(S,w)}function y(){return p||(p=f()),p.getInitialState()}function x(S,w=!1){function E(O){let _=O[S];return typeof _>"u"&&w&&(_=gy(v,E,y)),_}function C(O=m){const _=gy(h,w,()=>new WeakMap);return gy(_,O,()=>{const T={};for(const[I,N]of Object.entries(a.selectors??{}))T[I]=L3e(N,O,()=>gy(v,O,y),w);return T})}return{reducerPath:S,getSelectors:C,get selectors(){return C(E)},selectSlice:E}}const b={name:i,reducer:g,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:y,...x(o),injectInto(S,{reducerPath:w,...E}={}){const C=w??o;return S.inject({reducerPath:C,reducer:g},E),{...b,...x(C,!0)}}};return b}}function L3e(e,t,r,n){function a(i,...o){let s=t(i);return typeof s>"u"&&n&&(s=r()),e(s,...o)}return a.unwrapped=e,a}var Ui=F3e();function B3e(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function z3e({type:e,reducerName:t,createNotation:r},n,a){let i,o;if("reducer"in n){if(r&&!W3e(n))throw new Error(lo(17));i=n.reducer,o=n.prepare}else i=n;a.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,o?Go(e,o):Go(e))}function H3e(e){return e._reducerDefinitionType==="asyncThunk"}function W3e(e){return e._reducerDefinitionType==="reducerWithPrepare"}function V3e({type:e,reducerName:t},r,n,a){if(!a)throw new Error(lo(18));const{payloadCreator:i,fulfilled:o,pending:s,rejected:l,settled:c,options:u}=r,f=a(e,i,u);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),s&&n.addCase(f.pending,s),l&&n.addCase(f.rejected,l),c&&n.addMatcher(f.settled,c),n.exposeCaseReducer(t,{fulfilled:o||yy,pending:s||yy,rejected:l||yy,settled:c||yy})}function yy(){}var U3e="task",Cq="listener",Eq="completed",ZN="cancelled",K3e=`task-${ZN}`,G3e=`task-${Eq}`,MO=`${Cq}-${ZN}`,q3e=`${Cq}-${Eq}`,Sw=class{constructor(e){bC(this,"name","TaskAbortError");bC(this,"message");this.code=e,this.message=`${U3e} ${ZN} (reason: ${e})`}},JN=(e,t)=>{if(typeof e!="function")throw new TypeError(lo(32))},N1=()=>{},$q=(e,t=N1)=>(e.catch(t),e),_q=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Ju=e=>{if(e.aborted)throw new Sw(e.reason)};function Oq(e,t){let r=N1;return new Promise((n,a)=>{const i=()=>a(new Sw(e.reason));if(e.aborted){i();return}r=_q(e,i),t.finally(()=>r()).then(n,a)}).finally(()=>{r=N1})}var X3e=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Sw?"cancelled":"rejected",error:r}}finally{t==null||t()}},k1=e=>t=>$q(Oq(e,t).then(r=>(Ju(e),r))),Tq=e=>{const t=k1(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:t0}=Object,CF={},ww="listenerMiddleware",Y3e=(e,t)=>{const r=n=>_q(e,()=>n.abort(e.reason));return(n,a)=>{JN(n);const i=new AbortController;r(i);const o=X3e(async()=>{Ju(e),Ju(i.signal);const s=await n({pause:k1(i.signal),delay:Tq(i.signal),signal:i.signal});return Ju(i.signal),s},()=>i.abort(G3e));return a!=null&&a.autoJoin&&t.push(o.catch(N1)),{result:k1(e)(o),cancel(){i.abort(K3e)}}}},Q3e=(e,t)=>{const r=async(n,a)=>{Ju(t);let i=()=>{};const s=[new Promise((l,c)=>{let u=e({predicate:n,effect:(f,m)=>{m.unsubscribe(),l([f,m.getState(),m.getOriginalState()])}});i=()=>{u(),c()}})];a!=null&&s.push(new Promise(l=>setTimeout(l,a,null)));try{const l=await Oq(t,Promise.race(s));return Ju(t),l}finally{i()}};return(n,a)=>$q(r(n,a))},Pq=e=>{let{type:t,actionCreator:r,matcher:n,predicate:a,effect:i}=e;if(t)a=Go(t).match;else if(r)t=r.type,a=r.match;else if(n)a=n;else if(!a)throw new Error(lo(21));return JN(i),{predicate:a,type:t,effect:i}},Iq=t0(e=>{const{type:t,predicate:r,effect:n}=Pq(e);return{id:M3e(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(lo(22))}}},{withTypes:()=>Iq}),EF=(e,t)=>{const{type:r,effect:n,predicate:a}=Pq(t);return Array.from(e.values()).find(i=>(typeof r=="string"?i.type===r:i.predicate===a)&&i.effect===n)},DO=e=>{e.pending.forEach(t=>{t.abort(MO)})},Z3e=(e,t)=>()=>{for(const r of t.keys())DO(r);e.clear()},$F=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},Nq=t0(Go(`${ww}/add`),{withTypes:()=>Nq}),J3e=Go(`${ww}/removeAll`),kq=t0(Go(`${ww}/remove`),{withTypes:()=>kq}),eDe=(...e)=>{console.error(`${ww}/error`,...e)},Wv=(e={})=>{const t=new Map,r=new Map,n=h=>{const v=r.get(h)??0;r.set(h,v+1)},a=h=>{const v=r.get(h)??1;v===1?r.delete(h):r.set(h,v-1)},{extra:i,onError:o=eDe}=e;JN(o);const s=h=>(h.unsubscribe=()=>t.delete(h.id),t.set(h.id,h),v=>{h.unsubscribe(),v!=null&&v.cancelActive&&DO(h)}),l=h=>{const v=EF(t,h)??Iq(h);return s(v)};t0(l,{withTypes:()=>l});const c=h=>{const v=EF(t,h);return v&&(v.unsubscribe(),h.cancelActive&&DO(v)),!!v};t0(c,{withTypes:()=>c});const u=async(h,v,p,g)=>{const y=new AbortController,x=Q3e(l,y.signal),b=[];try{h.pending.add(y),n(h),await Promise.resolve(h.effect(v,t0({},p,{getOriginalState:g,condition:(S,w)=>x(S,w).then(Boolean),take:x,delay:Tq(y.signal),pause:k1(y.signal),extra:i,signal:y.signal,fork:Y3e(y.signal,b),unsubscribe:h.unsubscribe,subscribe:()=>{t.set(h.id,h)},cancelActiveListeners:()=>{h.pending.forEach((S,w,E)=>{S!==y&&(S.abort(MO),E.delete(S))})},cancel:()=>{y.abort(MO),h.pending.delete(y)},throwIfCancelled:()=>{Ju(y.signal)}})))}catch(S){S instanceof Sw||$F(o,S,{raisedBy:"effect"})}finally{await Promise.all(b),y.abort(q3e),a(h),h.pending.delete(y)}},f=Z3e(t,r);return{middleware:h=>v=>p=>{if(!sq(p))return v(p);if(Nq.match(p))return l(p.payload);if(J3e.match(p)){f();return}if(kq.match(p))return c(p.payload);let g=h.getState();const y=()=>{if(g===CF)throw new Error(lo(23));return g};let x;try{if(x=v(p),t.size>0){const b=h.getState(),S=Array.from(t.values());for(const w of S){let E=!1;try{E=w.predicate(p,b,g)}catch(C){E=!1,$F(o,C,{raisedBy:"predicate"})}E&&u(w,p,h,y)}}}finally{g=CF}return x},startListening:l,stopListening:c,clearListeners:f}};function lo(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var tDe={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},Rq=Ui({name:"chartLayout",initialState:tDe,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,a,i;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(a=t.payload.bottom)!==null&&a!==void 0?a:0,e.margin.left=(i=t.payload.left)!==null&&i!==void 0?i:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:rDe,setLayout:nDe,setChartSize:aDe,setScale:iDe}=Rq.actions,oDe=Rq.reducer;function Aq(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function oa(e){return Number.isFinite(e)}function Xc(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function _F(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Lf(e){for(var t=1;t{if(t&&r){var{width:n,height:a}=r,{align:i,verticalAlign:o,layout:s}=t;if((s==="vertical"||s==="horizontal"&&o==="middle")&&i!=="center"&&er(e[i]))return Lf(Lf({},e),{},{[i]:e[i]+(n||0)});if((s==="horizontal"||s==="vertical"&&i==="center")&&o!=="middle"&&er(e[o]))return Lf(Lf({},e),{},{[o]:e[o]+(a||0)})}return e},Ud=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",OF=1e-4,dDe=e=>{var t=e.domain();if(!(!t||t.length<=2)){var r=t.length,n=e.range(),a=Math.min(n[0],n[1])-OF,i=Math.max(n[0],n[1])+OF,o=e(t[0]),s=e(t[r-1]);(oi||si)&&e.domain([t[0],t[r-1]])}},fDe=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var a=0;a=0?(c[0]=i,c[1]=i+m,i=u):(c[0]=o,c[1]=o+m,o=u)}}}},mDe=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var a=0;a=0?(l[0]=i,l[1]=i+c,i=l[1]):(l[0]=0,l[1]=0)}}}},hDe={sign:fDe,expand:UAe,none:Sd,silhouette:KAe,wiggle:GAe,positive:mDe},pDe=(e,t,r)=>{var n,a=(n=hDe[r])!==null&&n!==void 0?n:Sd,i=VAe().keys(t).value((s,l)=>Number(_n(s,l,0))).order($O).offset(a),o=i(e);return o.forEach((s,l)=>{s.forEach((c,u)=>{var f=_n(e[u],t[l],0);Array.isArray(f)&&f.length===2&&er(f[0])&&er(f[1])&&(c[0]=f[0],c[1]=f[1])})}),o},vDe=e=>{var t=e.flat(2).filter(er);return[Math.min(...t),Math.max(...t)]},gDe=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],yDe=(e,t,r)=>{if(e!=null)return gDe(Object.keys(e).reduce((n,a)=>{var i=e[a];if(!i)return n;var{stackedData:o}=i,s=o.reduce((l,c)=>{var u=Aq(c,t,r),f=vDe(u);return!oa(f[0])||!oa(f[1])?l:[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(s[0],n[0]),Math.max(s[1],n[1])]},[1/0,-1/0]))},TF=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,PF=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,IF=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var a=hw(t,u=>u.coordinate),i=1/0,o=1,s=a.length;o{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},bDe=(e,t)=>t==="centric"?e.angle:e.radius,Kl=e=>e.layout.width,Gl=e=>e.layout.height,SDe=e=>e.layout.scale,Dq=e=>e.layout.margin,Cw=Ue(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Ew=Ue(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),jq="data-recharts-item-index",Fq="data-recharts-item-id",Vv=60;function kF(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function xy(e){for(var t=1;te.brush.height;function _De(e){var t=Ew(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var a=typeof n.width=="number"?n.width:Vv;return r+a}return r},0)}function ODe(e){var t=Ew(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var a=typeof n.width=="number"?n.width:Vv;return r+a}return r},0)}function TDe(e){var t=Cw(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function PDe(e){var t=Cw(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var ja=Ue([Kl,Gl,Dq,$De,_De,ODe,TDe,PDe,nq,n3e],(e,t,r,n,a,i,o,s,l,c)=>{var u={left:(r.left||0)+a,right:(r.right||0)+i},f={top:(r.top||0)+o,bottom:(r.bottom||0)+s},m=xy(xy({},f),u),h=m.bottom;m.bottom+=n,m=uDe(m,l,c);var v=e-m.left-m.right,p=t-m.top-m.bottom;return xy(xy({brushBottom:h},m),{},{width:Math.max(v,0),height:Math.max(p,0)})}),IDe=Ue(ja,e=>({x:e.left,y:e.top,width:e.width,height:e.height}));Ue(Kl,Gl,(e,t)=>({x:0,y:0,width:e,height:t}));var NDe=d.createContext(null),mu=()=>d.useContext(NDe)!=null,$w=e=>e.brush,_w=Ue([$w,ja,Dq],(e,t,r)=>({height:e.height,x:er(e.x)?e.x:t.left,y:er(e.y)?e.y:t.top+t.height+t.brushBottom-((r==null?void 0:r.bottom)||0),width:er(e.width)?e.width:t.width})),Lq={},Bq={},zq={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n,{signal:a,edges:i}={}){let o,s=null;const l=i!=null&&i.includes("leading"),c=i==null||i.includes("trailing"),u=()=>{s!==null&&(r.apply(o,s),o=void 0,s=null)},f=()=>{c&&u(),p()};let m=null;const h=()=>{m!=null&&clearTimeout(m),m=setTimeout(()=>{m=null,f()},n)},v=()=>{m!==null&&(clearTimeout(m),m=null)},p=()=>{v(),o=void 0,s=null},g=()=>{u()},y=function(...x){if(a!=null&&a.aborted)return;o=this,s=x;const b=m==null;h(),l&&b&&u()};return y.schedule=h,y.cancel=p,y.flush=g,a==null||a.addEventListener("abort",p,{once:!0}),y}e.debounce=t})(zq);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=zq;function r(n,a=0,i={}){typeof i!="object"&&(i={});const{leading:o=!1,trailing:s=!0,maxWait:l}=i,c=Array(2);o&&(c[0]="leading"),s&&(c[1]="trailing");let u,f=null;const m=t.debounce(function(...p){u=n.apply(this,p),f=null},a,{edges:c}),h=function(...p){return l!=null&&(f===null&&(f=Date.now()),Date.now()-f>=l)?(u=n.apply(this,p),f=Date.now(),m.cancel(),m.schedule(),u):(m.apply(this,p),u)},v=()=>(m.flush(),u);return h.cancel=m.cancel,h.flush=v,h}e.debounce=r})(Bq);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Bq;function r(n,a=0,i={}){const{leading:o=!0,trailing:s=!0}=i;return t.debounce(n,a,{leading:o,maxWait:a,trailing:s})}e.throttle=r})(Lq);var kDe=Lq.throttle;const RDe=sa(kDe);var RF=function(t,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;ia[o++]))}},Hq=(e,t,r)=>{var{width:n="100%",height:a="100%",aspect:i,maxHeight:o}=r,s=Ml(n)?e:Number(n),l=Ml(a)?t:Number(a);return i&&i>0&&(s?l=s/i:l&&(s=l*i),o&&l!=null&&l>o&&(l=o)),{calculatedWidth:s,calculatedHeight:l}},ADe={width:0,height:0,overflow:"visible"},MDe={width:0,overflowX:"visible"},DDe={height:0,overflowY:"visible"},jDe={},FDe=e=>{var{width:t,height:r}=e,n=Ml(t),a=Ml(r);return n&&a?ADe:n?MDe:a?DDe:jDe};function LDe(e){var{width:t,height:r,aspect:n}=e,a=t,i=r;return a===void 0&&i===void 0?(a="100%",i="100%"):a===void 0?a=n&&n>0?void 0:"100%":i===void 0&&(i=n&&n>0?void 0:"100%"),{width:a,height:i}}function jO(){return jO=Object.assign?Object.assign.bind():function(e){for(var t=1;t({width:r,height:n}),[r,n]);return WDe(a)?d.createElement(Wq.Provider,{value:a},t):null}var ek=()=>d.useContext(Wq),VDe=d.forwardRef((e,t)=>{var{aspect:r,initialDimension:n={width:-1,height:-1},width:a,height:i,minWidth:o=0,minHeight:s,maxHeight:l,children:c,debounce:u=0,id:f,className:m,onResize:h,style:v={}}=e,p=d.useRef(null),g=d.useRef();g.current=h,d.useImperativeHandle(t,()=>p.current);var[y,x]=d.useState({containerWidth:n.width,containerHeight:n.height}),b=d.useCallback((O,_)=>{x(T=>{var I=Math.round(O),N=Math.round(_);return T.containerWidth===I&&T.containerHeight===N?T:{containerWidth:I,containerHeight:N}})},[]);d.useEffect(()=>{if(p.current==null||typeof ResizeObserver>"u")return Bv;var O=N=>{var D,{width:k,height:R}=N[0].contentRect;b(k,R),(D=g.current)===null||D===void 0||D.call(g,k,R)};u>0&&(O=RDe(O,u,{trailing:!0,leading:!1}));var _=new ResizeObserver(O),{width:T,height:I}=p.current.getBoundingClientRect();return b(T,I),_.observe(p.current),()=>{_.disconnect()}},[b,u]);var{containerWidth:S,containerHeight:w}=y;RF(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:E,calculatedHeight:C}=Hq(S,w,{width:a,height:i,aspect:r,maxHeight:l});return RF(E!=null&&E>0||C!=null&&C>0,`The width(%s) and height(%s) of chart should be greater than 0, + please check the style of container, or the props width(%s) and height(%s), + or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the + height and width.`,E,C,a,i,o,s,r),d.createElement("div",{id:f?"".concat(f):void 0,className:jn("recharts-responsive-container",m),style:MF(MF({},v),{},{width:a,height:i,minWidth:o,minHeight:s,maxHeight:l}),ref:p},d.createElement("div",{style:FDe({width:a,height:i})},d.createElement(Vq,{width:E,height:C},c)))}),Uq=d.forwardRef((e,t)=>{var r=ek();if(Xc(r.width)&&Xc(r.height))return e.children;var{width:n,height:a}=LDe({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:i,calculatedHeight:o}=Hq(void 0,void 0,{width:n,height:a,aspect:e.aspect,maxHeight:e.maxHeight});return er(i)&&er(o)?d.createElement(Vq,{width:i,height:o},e.children):d.createElement(VDe,jO({},e,{width:n,height:a,ref:t}))});function Kq(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var Ow=()=>{var e,t=mu(),r=rr(IDe),n=rr(_w),a=(e=rr($w))===null||e===void 0?void 0:e.padding;return!t||!n||!a?r:{width:n.width-a.left-a.right,height:n.height-a.top-a.bottom,x:a.left,y:a.top}},UDe={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},KDe=()=>{var e;return(e=rr(ja))!==null&&e!==void 0?e:UDe},Gq=()=>rr(Kl),qq=()=>rr(Gl),GDe=()=>rr(e=>e.layout.margin),Xr=e=>e.layout.layoutType,Tw=()=>rr(Xr),qDe=()=>{var e=Tw();return e!==void 0},Pw=e=>{var t=Ln(),r=mu(),{width:n,height:a}=e,i=ek(),o=n,s=a;return i&&(o=i.width>0?i.width:n,s=i.height>0?i.height:a),d.useEffect(()=>{!r&&Xc(o)&&Xc(s)&&t(aDe({width:o,height:s}))},[t,r,o,s]),null},Xq=Symbol.for("immer-nothing"),DF=Symbol.for("immer-draftable"),mo=Symbol.for("immer-state");function fs(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Np=Object.getPrototypeOf;function O0(e){return!!e&&!!e[mo]}function wd(e){var t;return e?Yq(e)||Array.isArray(e)||!!e[DF]||!!((t=e.constructor)!=null&&t[DF])||Uv(e)||Nw(e):!1}var XDe=Object.prototype.constructor.toString(),jF=new WeakMap;function Yq(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if(typeof r!="function")return!1;let n=jF.get(r);return n===void 0&&(n=Function.toString.call(r),jF.set(r,n)),n===XDe}function R1(e,t,r=!0){Iw(e)===0?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(a=>{t(a,e[a],e)}):e.forEach((n,a)=>t(a,n,e))}function Iw(e){const t=e[mo];return t?t.type_:Array.isArray(e)?1:Uv(e)?2:Nw(e)?3:0}function FO(e,t){return Iw(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Qq(e,t,r){const n=Iw(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function YDe(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Uv(e){return e instanceof Map}function Nw(e){return e instanceof Set}function Pu(e){return e.copy_||e.base_}function LO(e,t){if(Uv(e))return new Map(e);if(Nw(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=Yq(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[mo];let a=Reflect.ownKeys(n);for(let i=0;i1&&Object.defineProperties(e,{set:by,add:by,clear:by,delete:by}),Object.freeze(e),t&&Object.values(e).forEach(r=>tk(r,!0))),e}function QDe(){fs(2)}var by={value:QDe};function kw(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var ZDe={};function Cd(e){const t=ZDe[e];return t||fs(0,e),t}var kp;function Zq(){return kp}function JDe(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function FF(e,t){t&&(Cd("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function BO(e){zO(e),e.drafts_.forEach(eje),e.drafts_=null}function zO(e){e===kp&&(kp=e.parent_)}function LF(e){return kp=JDe(kp,e)}function eje(e){const t=e[mo];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function BF(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[mo].modified_&&(BO(t),fs(4)),wd(e)&&(e=A1(t,e),t.parent_||M1(t,e)),t.patches_&&Cd("Patches").generateReplacementPatches_(r[mo].base_,e,t.patches_,t.inversePatches_)):e=A1(t,r,[]),BO(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Xq?e:void 0}function A1(e,t,r){if(kw(t))return t;const n=e.immer_.shouldUseStrictIteration(),a=t[mo];if(!a)return R1(t,(i,o)=>zF(e,a,t,i,o,r),n),t;if(a.scope_!==e)return t;if(!a.modified_)return M1(e,a.base_,!0),a.base_;if(!a.finalized_){a.finalized_=!0,a.scope_.unfinalizedDrafts_--;const i=a.copy_;let o=i,s=!1;a.type_===3&&(o=new Set(i),i.clear(),s=!0),R1(o,(l,c)=>zF(e,a,i,l,c,r,s),n),M1(e,i,!1),r&&e.patches_&&Cd("Patches").generatePatches_(a,r,e.patches_,e.inversePatches_)}return a.copy_}function zF(e,t,r,n,a,i,o){if(a==null||typeof a!="object"&&!o)return;const s=kw(a);if(!(s&&!o)){if(O0(a)){const l=i&&t&&t.type_!==3&&!FO(t.assigned_,n)?i.concat(n):void 0,c=A1(e,a,l);if(Qq(r,n,c),O0(c))e.canAutoFreeze_=!1;else return}else o&&r.add(a);if(wd(a)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===a&&s)return;A1(e,a),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(Uv(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&M1(e,a)}}}function M1(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&tk(t,r)}function tje(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Zq(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=n,i=rk;r&&(a=[n],i=Rp);const{revoke:o,proxy:s}=Proxy.revocable(a,i);return n.draft_=s,n.revoke_=o,s}var rk={get(e,t){if(t===mo)return e;const r=Pu(e);if(!FO(r,t))return rje(e,r,t);const n=r[t];return e.finalized_||!wd(n)?n:n===dE(e.base_,t)?(fE(e),e.copy_[t]=WO(n,e)):n},has(e,t){return t in Pu(e)},ownKeys(e){return Reflect.ownKeys(Pu(e))},set(e,t,r){const n=Jq(Pu(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const a=dE(Pu(e),t),i=a==null?void 0:a[mo];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(YDe(r,a)&&(r!==void 0||FO(e.base_,t)))return!0;fE(e),HO(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return dE(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,fE(e),HO(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Pu(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){fs(11)},getPrototypeOf(e){return Np(e.base_)},setPrototypeOf(){fs(12)}},Rp={};R1(rk,(e,t)=>{Rp[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Rp.deleteProperty=function(e,t){return Rp.set.call(this,e,t,void 0)};Rp.set=function(e,t,r){return rk.set.call(this,e[0],t,r,e[0])};function dE(e,t){const r=e[mo];return(r?Pu(r):e)[t]}function rje(e,t,r){var a;const n=Jq(t,r);return n?"value"in n?n.value:(a=n.get)==null?void 0:a.call(e.draft_):void 0}function Jq(e,t){if(!(t in e))return;let r=Np(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Np(r)}}function HO(e){e.modified_||(e.modified_=!0,e.parent_&&HO(e.parent_))}function fE(e){e.copy_||(e.copy_=LO(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var nje=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const i=r;r=t;const o=this;return function(l=i,...c){return o.produce(l,u=>r.call(this,u,...c))}}typeof r!="function"&&fs(6),n!==void 0&&typeof n!="function"&&fs(7);let a;if(wd(t)){const i=LF(this),o=WO(t,void 0);let s=!0;try{a=r(o),s=!1}finally{s?BO(i):zO(i)}return FF(i,n),BF(a,i)}else if(!t||typeof t!="object"){if(a=r(t),a===void 0&&(a=t),a===Xq&&(a=void 0),this.autoFreeze_&&tk(a,!0),n){const i=[],o=[];Cd("Patches").generateReplacementPatches_(t,a,i,o),n(i,o)}return a}else fs(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...s)=>this.produceWithPatches(o,l=>t(l,...s));let n,a;return[this.produce(t,r,(o,s)=>{n=o,a=s}),n,a]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){wd(e)||fs(8),O0(e)&&(e=aje(e));const t=LF(this),r=WO(e,void 0);return r[mo].isManual_=!0,zO(t),r}finishDraft(e,t){const r=e&&e[mo];(!r||!r.isManual_)&&fs(9);const{scope_:n}=r;return FF(n,t),BF(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const a=t[r];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}r>-1&&(t=t.slice(r+1));const n=Cd("Patches").applyPatches_;return O0(e)?n(e,t):this.produce(e,a=>n(a,t))}};function WO(e,t){const r=Uv(e)?Cd("MapSet").proxyMap_(e,t):Nw(e)?Cd("MapSet").proxySet_(e,t):tje(e,t);return(t?t.scope_:Zq()).drafts_.push(r),r}function aje(e){return O0(e)||fs(10,e),eX(e)}function eX(e){if(!wd(e)||kw(e))return e;const t=e[mo];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=LO(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=LO(e,!0);return R1(r,(a,i)=>{Qq(r,a,eX(i))},n),t&&(t.finalized_=!1),r}var ije=new nje;ije.produce;var oje={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},tX=Ui({name:"legend",initialState:oje,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:sn()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,a=ws(e).payload.indexOf(r);a>-1&&(e.payload[a]=n)},prepare:sn()},removeLegendPayload:{reducer(e,t){var r=ws(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:sn()}}}),{setLegendSize:HF,setLegendSettings:sje,addLegendPayload:lje,replaceLegendPayload:cje,removeLegendPayload:uje}=tX.actions,dje=tX.reducer,fje=["contextPayload"];function VO(){return VO=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t(sje(e))},[t,e]),null}function wje(e){var t=Ln();return d.useEffect(()=>(t(HF(e)),()=>{t(HF({width:0,height:0}))}),[t,e]),null}function Cje(e,t,r,n){return e==="vertical"&&er(t)?{height:t}:e==="horizontal"?{width:r||n}:null}var Eje={align:"center",iconSize:14,itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function rX(e){var t=Zo(e,Eje),r=o3e(),n=hAe(),a=GDe(),{width:i,height:o,wrapperStyle:s,portal:l}=t,[c,u]=aq([r]),f=Gq(),m=qq();if(f==null||m==null)return null;var h=f-((a==null?void 0:a.left)||0)-((a==null?void 0:a.right)||0),v=Cje(t.layout,o,i,h),p=l?s:T0(T0({position:"absolute",width:(v==null?void 0:v.width)||i||"auto",height:(v==null?void 0:v.height)||o||"auto"},bje(s,t,a,f,m,c)),s),g=l??n;if(g==null||r==null)return null;var y=d.createElement("div",{className:"recharts-legend-wrapper",style:p,ref:u},d.createElement(Sje,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!l&&d.createElement(wje,{width:c.width,height:c.height}),d.createElement(xje,VO({},t,v,{margin:a,chartWidth:f,chartHeight:m,contextPayload:r})));return wi.createPortal(y,g)}rX.displayName="Legend";function UO(){return UO=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{separator:t=" : ",contentStyle:r={},itemStyle:n={},labelStyle:a={},payload:i,formatter:o,itemSorter:s,wrapperClassName:l,labelClassName:c,label:u,labelFormatter:f,accessibilityLayer:m=!1}=e,h=()=>{if(i&&i.length){var w={padding:0,margin:0},E=(s?hw(i,s):i).map((C,O)=>{if(C.type==="none")return null;var _=C.formatter||o||Tje,{value:T,name:I}=C,N=T,D=I;if(_){var k=_(T,I,C,O,i);if(Array.isArray(k))[N,D]=k;else if(k!=null)N=k;else return null}var R=mE({display:"block",paddingTop:4,paddingBottom:4,color:C.color||"#000"},n);return d.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(O),style:R},Dl(D)?d.createElement("span",{className:"recharts-tooltip-item-name"},D):null,Dl(D)?d.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,d.createElement("span",{className:"recharts-tooltip-item-value"},N),d.createElement("span",{className:"recharts-tooltip-item-unit"},C.unit||""))});return d.createElement("ul",{className:"recharts-tooltip-item-list",style:w},E)}return null},v=mE({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},r),p=mE({margin:0},a),g=!fo(u),y=g?u:"",x=jn("recharts-default-tooltip",l),b=jn("recharts-tooltip-label",c);g&&f&&i!==void 0&&i!==null&&(y=f(u,i));var S=m?{role:"status","aria-live":"assertive"}:{};return d.createElement("div",UO({className:x,style:v},S),d.createElement("p",{className:b,style:p},d.isValidElement(y)?y:"".concat(y)),h())},Um="recharts-tooltip-wrapper",Ije={visibility:"hidden"};function Nje(e){var{coordinate:t,translateX:r,translateY:n}=e;return jn(Um,{["".concat(Um,"-right")]:er(r)&&t&&er(t.x)&&r>=t.x,["".concat(Um,"-left")]:er(r)&&t&&er(t.x)&&r=t.y,["".concat(Um,"-top")]:er(n)&&t&&er(t.y)&&n0?a:0),f=r[n]+a;if(t[n])return o[n]?u:f;var m=l[n];if(m==null)return 0;if(o[n]){var h=u,v=m;return hg?Math.max(u,m):Math.max(f,m)}function kje(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Rje(e){var{allowEscapeViewBox:t,coordinate:r,offsetTopLeft:n,position:a,reverseDirection:i,tooltipBox:o,useTranslate3d:s,viewBox:l}=e,c,u,f;return o.height>0&&o.width>0&&r?(u=UF({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),f=UF({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),c=kje({translateX:u,translateY:f,useTranslate3d:s})):c=Ije,{cssProperties:c,cssClasses:Nje({translateX:u,translateY:f,coordinate:r})}}function KF(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Sy(e){for(var t=1;t{if(t.key==="Escape"){var r,n,a,i;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(r=(n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==null&&r!==void 0?r:0,y:(a=(i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==null&&a!==void 0?a:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,r;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((r=this.props.coordinate)===null||r===void 0?void 0:r.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:r,animationDuration:n,animationEasing:a,children:i,coordinate:o,hasPayload:s,isAnimationActive:l,offset:c,position:u,reverseDirection:f,useTranslate3d:m,viewBox:h,wrapperStyle:v,lastBoundingBox:p,innerRef:g,hasPortalFromProps:y}=this.props,{cssClasses:x,cssProperties:b}=Rje({allowEscapeViewBox:r,coordinate:o,offsetTopLeft:c,position:u,reverseDirection:f,tooltipBox:{height:p.height,width:p.width},useTranslate3d:m,viewBox:h}),S=y?{}:Sy(Sy({transition:l&&t?"transform ".concat(n,"ms ").concat(a):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&s?"visible":"hidden",position:"absolute",top:0,left:0}),w=Sy(Sy({},S),{},{visibility:!this.state.dismissed&&t&&s?"visible":"hidden"},v);return d.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:x,style:w,ref:g},i)}}var nX=()=>{var e;return(e=rr(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function GO(){return GO=Object.assign?Object.assign.bind():function(e){for(var t=1;toa(e.x)&&oa(e.y),YF=e=>e.base!=null&&D1(e.base)&&D1(e),Km=e=>e.x,Gm=e=>e.y,Bje=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(Lv(e));return(r==="curveMonotone"||r==="curveBump")&&t?XF["".concat(r).concat(t==="vertical"?"Y":"X")]:XF[r]||sw},zje=e=>{var{type:t="linear",points:r=[],baseLine:n,layout:a,connectNulls:i=!1}=e,o=Bje(t,a),s=i?r.filter(D1):r,l;if(Array.isArray(n)){var c=r.map((h,v)=>qF(qF({},h),{},{base:n[v]}));a==="vertical"?l=my().y(Gm).x1(Km).x0(h=>h.base.x):l=my().x(Km).y1(Gm).y0(h=>h.base.y);var u=l.defined(YF).curve(o),f=i?c.filter(YF):c;return u(f)}a==="vertical"&&er(n)?l=my().y(Gm).x1(Km).x0(n):er(n)?l=my().x(Km).y1(Gm).y0(n):l=fG().x(Km).y(Gm);var m=l.defined(D1).curve(o);return m(s)},nk=e=>{var{className:t,points:r,path:n,pathRef:a}=e,i=Tw();if((!r||!r.length)&&!n)return null;var o={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||i,connectNulls:e.connectNulls},s=r&&r.length?zje(o):n;return d.createElement("path",GO({},C0(e),cMe(e),{className:jn("recharts-curve",t),d:s===null?void 0:s,ref:a}))},Hje=["x","y","top","left","width","height","className"];function qO(){return qO=Object.assign?Object.assign.bind():function(e){for(var t=1;t"M".concat(e,",").concat(a,"v").concat(n,"M").concat(i,",").concat(t,"h").concat(r),Yje=e=>{var{x:t=0,y:r=0,top:n=0,left:a=0,width:i=0,height:o=0,className:s}=e,l=Gje(e,Hje),c=Wje({x:t,y:r,top:n,left:a,width:i,height:o},l);return!er(t)||!er(r)||!er(i)||!er(o)||!er(n)||!er(a)?null:d.createElement("path",qO({},Ko(c),{className:jn("recharts-cross",s),d:Xje(t,r,i,o,n,a)}))};function Qje(e,t,r,n){var a=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-a,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function ZF(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function JF(e){for(var t=1;te.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),aX=(e,t,r)=>e.map(n=>"".concat(tFe(n)," ").concat(t,"ms ").concat(r)).join(","),rFe=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(a=>n.includes(a))),Ap=(e,t)=>Object.keys(t).reduce((r,n)=>JF(JF({},r),{},{[n]:e(n,t[n])}),{});function e6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ua(e){for(var t=1;te+(t-e)*r,XO=e=>{var{from:t,to:r}=e;return t!==r},iX=(e,t,r)=>{var n=Ap((a,i)=>{if(XO(i)){var[o,s]=e(i.from,i.to,i.velocity);return ua(ua({},i),{},{from:o,velocity:s})}return i},t);return r<1?Ap((a,i)=>XO(i)&&n[a]!=null?ua(ua({},i),{},{velocity:j1(i.velocity,n[a].velocity,r),from:j1(i.from,n[a].from,r)}):i,t):iX(e,n,r-1)};function oFe(e,t,r,n,a,i){var o,s=n.reduce((m,h)=>ua(ua({},m),{},{[h]:{from:e[h],velocity:0,to:t[h]}}),{}),l=()=>Ap((m,h)=>h.from,s),c=()=>!Object.values(s).filter(XO).length,u=null,f=m=>{o||(o=m);var h=m-o,v=h/r.dt;s=iX(r,s,v),a(ua(ua(ua({},e),t),l())),o=m,c()||(u=i.setTimeout(f))};return()=>(u=i.setTimeout(f),()=>{var m;(m=u)===null||m===void 0||m()})}function sFe(e,t,r,n,a,i,o){var s=null,l=a.reduce((f,m)=>{var h=e[m],v=t[m];return h==null||v==null?f:ua(ua({},f),{},{[m]:[h,v]})},{}),c,u=f=>{c||(c=f);var m=(f-c)/n,h=Ap((p,g)=>j1(...g,r(m)),l);if(i(ua(ua(ua({},e),t),h)),m<1)s=o.setTimeout(u);else{var v=Ap((p,g)=>j1(...g,r(1)),l);i(ua(ua(ua({},e),t),v))}};return()=>(s=o.setTimeout(u),()=>{var f;(f=s)===null||f===void 0||f()})}const lFe=(e,t,r,n,a,i)=>{var o=rFe(e,t);return r==null?()=>(a(ua(ua({},e),t)),()=>{}):r.isStepper===!0?oFe(e,t,r,o,a,i):sFe(e,t,r,n,o,a,i)};var F1=1e-4,oX=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],sX=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),t6=(e,t)=>r=>{var n=oX(e,t);return sX(n,r)},cFe=(e,t)=>r=>{var n=oX(e,t),a=[...n.map((i,o)=>i*o).slice(1),0];return sX(a,r)},uFe=e=>{var t,r=e.split("(");if(r.length!==2||r[0]!=="cubic-bezier")return null;var n=(t=r[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(n==null||n.length!==4)return null;var a=n.map(i=>parseFloat(i));return[a[0],a[1],a[2],a[3]]},dFe=function(){for(var t=arguments.length,r=new Array(t),n=0;n{var a=t6(e,r),i=t6(t,n),o=cFe(e,r),s=c=>c>1?1:c<0?0:c,l=c=>{for(var u=c>1?1:c,f=u,m=0;m<8;++m){var h=a(f)-u,v=o(f);if(Math.abs(h-u)0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:a=17}=t,i=(o,s,l)=>{var c=-(o-s)*r,u=l*n,f=l+(c-u)*a/1e3,m=l*a/1e3+o;return Math.abs(m-s){if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return r6(e);case"spring":return mFe();default:if(e.split("(")[0]==="cubic-bezier")return r6(e)}return typeof e=="function"?e:null};function pFe(e){var t,r=()=>null,n=!1,a=null,i=o=>{if(!n){if(Array.isArray(o)){if(!o.length)return;var s=o,[l,...c]=s;if(typeof l=="number"){a=e.setTimeout(i.bind(null,c),l);return}i(l),a=e.setTimeout(i.bind(null,c));return}typeof o=="string"&&(t=o,r(t)),typeof o=="object"&&(t=o,r(t)),typeof o=="function"&&o()}};return{stop:()=>{n=!0},start:o=>{n=!1,a&&(a(),a=null),i(o)},subscribe:o=>(r=o,()=>{r=()=>null}),getTimeoutController:()=>e}}class vFe{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),a=null,i=o=>{o-n>=r?t(o):typeof requestAnimationFrame=="function"&&(a=requestAnimationFrame(i))};return a=requestAnimationFrame(i),()=>{a!=null&&cancelAnimationFrame(a)}}}function gFe(){return pFe(new vFe)}var yFe=d.createContext(gFe);function xFe(e,t){var r=d.useContext(yFe);return d.useMemo(()=>t??r(e),[e,t,r])}var bFe=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),ak={devToolsEnabled:!0,isSsr:bFe()},SFe={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},n6={t:0},hE={t:1};function ik(e){var t=Zo(e,SFe),{isActive:r,canBegin:n,duration:a,easing:i,begin:o,onAnimationEnd:s,onAnimationStart:l,children:c}=t,u=r==="auto"?!ak.isSsr:r,f=xFe(t.animationId,t.animationManager),[m,h]=d.useState(u?n6:hE),v=d.useRef(null);return d.useEffect(()=>{u||h(hE)},[u]),d.useEffect(()=>{if(!u||!n)return Bv;var p=lFe(n6,hE,hFe(i),a,h,f.getTimeoutController()),g=()=>{v.current=p()};return f.start([l,o,g,a,s]),()=>{f.stop(),v.current&&v.current(),s()}},[u,n,a,i,o,l,s,f]),c(m.t)}function ok(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=d.useRef(Op(t)),n=d.useRef(e);return n.current!==e&&(r.current=Op(t),n.current=e),r.current}var wFe=["radius"],CFe=["radius"],a6,i6,o6,s6,l6,c6,u6,d6,f6,m6;function h6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function p6(e){for(var t=1;t{var i=Cc(r),o=Cc(n),s=Math.min(Math.abs(i)/2,Math.abs(o)/2),l=o>=0?1:-1,c=i>=0?1:-1,u=o>=0&&i>=0||o<0&&i<0?1:0,f;if(s>0&&a instanceof Array){for(var m=[0,0,0,0],h=0,v=4;hs?s:a[h];f=Sn(a6||(a6=js(["M",",",""])),e,t+l*m[0]),m[0]>0&&(f+=Sn(i6||(i6=js(["A ",",",",0,0,",",",",",""])),m[0],m[0],u,e+c*m[0],t)),f+=Sn(o6||(o6=js(["L ",",",""])),e+r-c*m[1],t),m[1]>0&&(f+=Sn(s6||(s6=js(["A ",",",",0,0,",`, + `,",",""])),m[1],m[1],u,e+r,t+l*m[1])),f+=Sn(l6||(l6=js(["L ",",",""])),e+r,t+n-l*m[2]),m[2]>0&&(f+=Sn(c6||(c6=js(["A ",",",",0,0,",`, + `,",",""])),m[2],m[2],u,e+r-c*m[2],t+n)),f+=Sn(u6||(u6=js(["L ",",",""])),e+c*m[3],t+n),m[3]>0&&(f+=Sn(d6||(d6=js(["A ",",",",0,0,",`, + `,",",""])),m[3],m[3],u,e,t+n-l*m[3])),f+="Z"}else if(s>0&&a===+a&&a>0){var p=Math.min(s,a);f=Sn(f6||(f6=js(["M ",",",` + A `,",",",0,0,",",",",",` + L `,",",` + A `,",",",0,0,",",",",",` + L `,",",` + A `,",",",0,0,",",",",",` + L `,",",` + A `,",",",0,0,",",",","," Z"])),e,t+l*p,p,p,u,e+c*p,t,e+r-c*p,t,p,p,u,e+r,t+l*p,e+r,t+n-l*p,p,p,u,e+r-c*p,t+n,e+c*p,t+n,p,p,u,e,t+n-l*p)}else f=Sn(m6||(m6=js(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return f},y6={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},lX=e=>{var t=Zo(e,y6),r=d.useRef(null),[n,a]=d.useState(-1);d.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var A=r.current.getTotalLength();A&&a(A)}catch{}},[]);var{x:i,y:o,width:s,height:l,radius:c,className:u}=t,{animationEasing:f,animationDuration:m,animationBegin:h,isAnimationActive:v,isUpdateAnimationActive:p}=t,g=d.useRef(s),y=d.useRef(l),x=d.useRef(i),b=d.useRef(o),S=d.useMemo(()=>({x:i,y:o,width:s,height:l,radius:c}),[i,o,s,l,c]),w=ok(S,"rectangle-");if(i!==+i||o!==+o||s!==+s||l!==+l||s===0||l===0)return null;var E=jn("recharts-rectangle",u);if(!p){var C=Ko(t),O=v6(C,wFe);return d.createElement("path",L1({},O,{x:Cc(i),y:Cc(o),width:Cc(s),height:Cc(l),radius:typeof c=="number"?c:void 0,className:E,d:g6(i,o,s,l,c)}))}var _=g.current,T=y.current,I=x.current,N=b.current,D="0px ".concat(n===-1?1:n,"px"),k="".concat(n,"px 0px"),R=aX(["strokeDasharray"],m,typeof f=="string"?f:y6.animationEasing);return d.createElement(ik,{animationId:w,key:w,canBegin:n>0,duration:m,easing:f,isActive:p,begin:h},A=>{var j=us(_,s,A),F=us(T,l,A),M=us(I,i,A),V=us(N,o,A);r.current&&(g.current=j,y.current=F,x.current=M,b.current=V);var K;v?A>0?K={transition:R,strokeDasharray:k}:K={strokeDasharray:D}:K={strokeDasharray:k};var L=Ko(t),B=v6(L,CFe);return d.createElement("path",L1({},B,{radius:typeof c=="number"?c:void 0,className:E,d:g6(M,V,j,F,c),ref:r,style:p6(p6({},K),t.style)}))})};function x6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function b6(e){for(var t=1;te*180/Math.PI,ra=(e,t,r,n)=>({x:e+Math.cos(-B1*n)*r,y:t+Math.sin(-B1*n)*r}),cX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},kFe=(e,t)=>{var{x:r,y:n}=e,{x:a,y:i}=t;return Math.sqrt((r-a)**2+(n-i)**2)},RFe=(e,t)=>{var{x:r,y:n}=e,{cx:a,cy:i}=t,o=kFe({x:r,y:n},{x:a,y:i});if(o<=0)return{radius:o,angle:0};var s=(r-a)/o,l=Math.acos(s);return n>i&&(l=2*Math.PI-l),{radius:o,angle:NFe(l),angleInRadian:l}},AFe=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),a=Math.floor(r/360),i=Math.min(n,a);return{startAngle:t-i*360,endAngle:r-i*360}},MFe=(e,t)=>{var{startAngle:r,endAngle:n}=t,a=Math.floor(r/360),i=Math.floor(n/360),o=Math.min(a,i);return e+o*360},DFe=(e,t)=>{var{chartX:r,chartY:n}=e,{radius:a,angle:i}=RFe({x:r,y:n},t),{innerRadius:o,outerRadius:s}=t;if(as||a===0)return null;var{startAngle:l,endAngle:c}=AFe(t),u=i,f;if(l<=c){for(;u>c;)u-=360;for(;u=l&&u<=c}else{for(;u>l;)u-=360;for(;u=c&&u<=l}return f?b6(b6({},t),{},{radius:a,angle:MFe(u,t)}):null};function uX(e){var{cx:t,cy:r,radius:n,startAngle:a,endAngle:i}=e,o=ra(t,r,n,a),s=ra(t,r,n,i);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:a,endAngle:i}}var S6,w6,C6,E6,$6,_6,O6;function YO(){return YO=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var r=Mi(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},wy=e=>{var{cx:t,cy:r,radius:n,angle:a,sign:i,isExternal:o,cornerRadius:s,cornerIsExternal:l}=e,c=s*(o?1:-1)+n,u=Math.asin(s/c)/B1,f=l?a:a+i*u,m=ra(t,r,c,f),h=ra(t,r,n,f),v=l?a-i*u:a,p=ra(t,r,c*Math.cos(u*B1),v);return{center:m,circleTangency:h,lineTangency:p,theta:u}},dX=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:a,startAngle:i,endAngle:o}=e,s=jFe(i,o),l=i+s,c=ra(t,r,a,i),u=ra(t,r,a,l),f=Sn(S6||(S6=Vu(["M ",",",` + A `,",",`,0, + `,",",`, + `,",",` + `])),c.x,c.y,a,a,+(Math.abs(s)>180),+(i>l),u.x,u.y);if(n>0){var m=ra(t,r,n,i),h=ra(t,r,n,l);f+=Sn(w6||(w6=Vu(["L ",",",` + A `,",",`,0, + `,",",`, + `,","," Z"])),h.x,h.y,n,n,+(Math.abs(s)>180),+(i<=l),m.x,m.y)}else f+=Sn(C6||(C6=Vu(["L ",","," Z"])),t,r);return f},FFe=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:a,cornerRadius:i,forceCornerRadius:o,cornerIsExternal:s,startAngle:l,endAngle:c}=e,u=Mi(c-l),{circleTangency:f,lineTangency:m,theta:h}=wy({cx:t,cy:r,radius:a,angle:l,sign:u,cornerRadius:i,cornerIsExternal:s}),{circleTangency:v,lineTangency:p,theta:g}=wy({cx:t,cy:r,radius:a,angle:c,sign:-u,cornerRadius:i,cornerIsExternal:s}),y=s?Math.abs(l-c):Math.abs(l-c)-h-g;if(y<0)return o?Sn(E6||(E6=Vu(["M ",",",` + a`,",",",0,0,1,",`,0 + a`,",",",0,0,1,",`,0 + `])),m.x,m.y,i,i,i*2,i,i,-i*2):dX({cx:t,cy:r,innerRadius:n,outerRadius:a,startAngle:l,endAngle:c});var x=Sn($6||($6=Vu(["M ",",",` + A`,",",",0,0,",",",",",` + A`,",",",0,",",",",",",",` + A`,",",",0,0,",",",",",` + `])),m.x,m.y,i,i,+(u<0),f.x,f.y,a,a,+(y>180),+(u<0),v.x,v.y,i,i,+(u<0),p.x,p.y);if(n>0){var{circleTangency:b,lineTangency:S,theta:w}=wy({cx:t,cy:r,radius:n,angle:l,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),{circleTangency:E,lineTangency:C,theta:O}=wy({cx:t,cy:r,radius:n,angle:c,sign:-u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),_=s?Math.abs(l-c):Math.abs(l-c)-w-O;if(_<0&&i===0)return"".concat(x,"L").concat(t,",").concat(r,"Z");x+=Sn(_6||(_6=Vu(["L",",",` + A`,",",",0,0,",",",",",` + A`,",",",0,",",",",",",",` + A`,",",",0,0,",",",",","Z"])),C.x,C.y,i,i,+(u<0),E.x,E.y,n,n,+(_>180),+(u>0),b.x,b.y,i,i,+(u<0),S.x,S.y)}else x+=Sn(O6||(O6=Vu(["L",",","Z"])),t,r);return x},LFe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},fX=e=>{var t=Zo(e,LFe),{cx:r,cy:n,innerRadius:a,outerRadius:i,cornerRadius:o,forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u,className:f}=t;if(i0&&Math.abs(c-u)<360?p=FFe({cx:r,cy:n,innerRadius:a,outerRadius:i,cornerRadius:Math.min(v,h/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u}):p=dX({cx:r,cy:n,innerRadius:a,outerRadius:i,startAngle:c,endAngle:u}),d.createElement("path",YO({},Ko(t),{className:m,d:p}))};function BFe(e,t,r){if(e==="horizontal")return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if(e==="vertical")return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(OG(t)){if(e==="centric"){var{cx:n,cy:a,innerRadius:i,outerRadius:o,angle:s}=t,l=ra(n,a,i,s),c=ra(n,a,o,s);return[{x:l.x,y:l.y},{x:c.x,y:c.y}]}return uX(t)}}var mX={},hX={},pX={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=VN;function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r})(pX);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=pX;function r(n){return n?(n=t.toNumber(n),n===1/0||n===-1/0?(n<0?-1:1)*Number.MAX_VALUE:n===n?n:0):n===0?n:0}e.toFinite=r})(hX);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=UN,r=hX;function n(a,i,o){o&&typeof o!="number"&&t.isIterateeCall(a,i,o)&&(i=o=void 0),a=r.toFinite(a),i===void 0?(i=a,a=0):i=r.toFinite(i),o=o===void 0?at?1:e>=t?0:NaN}function HFe(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function sk(e){let t,r,n;e.length!==2?(t=Lc,r=(s,l)=>Lc(e(s),l),n=(s,l)=>e(s)-l):(t=e===Lc||e===HFe?e:WFe,r=e,n=e);function a(s,l,c=0,u=s.length){if(c>>1;r(s[f],l)<0?c=f+1:u=f}while(c>>1;r(s[f],l)<=0?c=f+1:u=f}while(cc&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:a,center:o,right:i}}function WFe(){return 0}function gX(e){return e===null?NaN:+e}function*VFe(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)(n=t(n,++r,e))!=null&&(n=+n)>=n&&(yield n)}}const UFe=sk(Lc),KFe=UFe.right;sk(gX).center;const Kv=KFe;class T6 extends Map{constructor(t,r=XFe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,a]of t)this.set(n,a)}get(t){return super.get(P6(this,t))}has(t){return super.has(P6(this,t))}set(t,r){return super.set(GFe(this,t),r)}delete(t){return super.delete(qFe(this,t))}}function P6({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function GFe({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function qFe({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function XFe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function YFe(e=Lc){if(e===Lc)return yX;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function yX(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const QFe=Math.sqrt(50),ZFe=Math.sqrt(10),JFe=Math.sqrt(2);function z1(e,t,r){const n=(t-e)/Math.max(0,r),a=Math.floor(Math.log10(n)),i=n/Math.pow(10,a),o=i>=QFe?10:i>=ZFe?5:i>=JFe?2:1;let s,l,c;return a<0?(c=Math.pow(10,-a)/o,s=Math.round(e*c),l=Math.round(t*c),s/ct&&--l,c=-c):(c=Math.pow(10,a)*o,s=Math.round(e/c),l=Math.round(t/c),s*ct&&--l),l0))return[];if(e===t)return[e];const n=t=a))return[];const s=i-a+1,l=new Array(s);if(n)if(o<0)for(let c=0;c=n)&&(r=n);else{let n=-1;for(let a of e)(a=t(a,++n,e))!=null&&(r=a)&&(r=a)}return r}function N6(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let a of e)(a=t(a,++n,e))!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}return r}function xX(e,t,r=0,n=1/0,a){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(a=a===void 0?yX:YFe(a);n>r;){if(n-r>600){const l=n-r+1,c=t-r+1,u=Math.log(l),f=.5*Math.exp(2*u/3),m=.5*Math.sqrt(u*f*(l-f)/l)*(c-l/2<0?-1:1),h=Math.max(r,Math.floor(t-c*f/l+m)),v=Math.min(n,Math.floor(t+(l-c)*f/l+m));xX(e,t,h,v,a)}const i=e[t];let o=r,s=n;for(qm(e,r,t),a(e[n],i)>0&&qm(e,r,n);o0;)--s}a(e[r],i)===0?qm(e,r,s):(++s,qm(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function qm(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function e6e(e,t,r){if(e=Float64Array.from(VFe(e,r)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return N6(e);if(t>=1)return I6(e);var n,a=(n-1)*t,i=Math.floor(a),o=I6(xX(e,i).subarray(0,i+1)),s=N6(e.subarray(i+1));return o+(s-o)*(a-i)}}function t6e(e,t,r=gX){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,a=(n-1)*t,i=Math.floor(a),o=+r(e[i],i,e),s=+r(e[i+1],i+1,e);return o+(s-o)*(a-i)}}function r6e(e,t,r){e=+e,t=+t,r=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+r;for(var n=-1,a=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(a);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Cy(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Cy(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=i6e.exec(e))?new Di(t[1],t[2],t[3],1):(t=o6e.exec(e))?new Di(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=s6e.exec(e))?Cy(t[1],t[2],t[3],t[4]):(t=l6e.exec(e))?Cy(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=c6e.exec(e))?F6(t[1],t[2]/100,t[3]/100,1):(t=u6e.exec(e))?F6(t[1],t[2]/100,t[3]/100,t[4]):k6.hasOwnProperty(e)?M6(k6[e]):e==="transparent"?new Di(NaN,NaN,NaN,0):null}function M6(e){return new Di(e>>16&255,e>>8&255,e&255,1)}function Cy(e,t,r,n){return n<=0&&(e=t=r=NaN),new Di(e,t,r,n)}function m6e(e){return e instanceof Gv||(e=jp(e)),e?(e=e.rgb(),new Di(e.r,e.g,e.b,e.opacity)):new Di}function tT(e,t,r,n){return arguments.length===1?m6e(e):new Di(e,t,r,n??1)}function Di(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}uk(Di,tT,SX(Gv,{brighter(e){return e=e==null?H1:Math.pow(H1,e),new Di(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Mp:Math.pow(Mp,e),new Di(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Di(ed(this.r),ed(this.g),ed(this.b),W1(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:D6,formatHex:D6,formatHex8:h6e,formatRgb:j6,toString:j6}));function D6(){return`#${Uu(this.r)}${Uu(this.g)}${Uu(this.b)}`}function h6e(){return`#${Uu(this.r)}${Uu(this.g)}${Uu(this.b)}${Uu((isNaN(this.opacity)?1:this.opacity)*255)}`}function j6(){const e=W1(this.opacity);return`${e===1?"rgb(":"rgba("}${ed(this.r)}, ${ed(this.g)}, ${ed(this.b)}${e===1?")":`, ${e})`}`}function W1(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ed(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Uu(e){return e=ed(e),(e<16?"0":"")+e.toString(16)}function F6(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ms(e,t,r,n)}function wX(e){if(e instanceof ms)return new ms(e.h,e.s,e.l,e.opacity);if(e instanceof Gv||(e=jp(e)),!e)return new ms;if(e instanceof ms)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=NaN,s=i-a,l=(i+a)/2;return s?(t===i?o=(r-n)/s+(r0&&l<1?0:o,new ms(o,s,l,e.opacity)}function p6e(e,t,r,n){return arguments.length===1?wX(e):new ms(e,t,r,n??1)}function ms(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}uk(ms,p6e,SX(Gv,{brighter(e){return e=e==null?H1:Math.pow(H1,e),new ms(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Mp:Math.pow(Mp,e),new ms(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,a=2*r-n;return new Di(pE(e>=240?e-240:e+120,a,n),pE(e,a,n),pE(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new ms(L6(this.h),Ey(this.s),Ey(this.l),W1(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=W1(this.opacity);return`${e===1?"hsl(":"hsla("}${L6(this.h)}, ${Ey(this.s)*100}%, ${Ey(this.l)*100}%${e===1?")":`, ${e})`}`}}));function L6(e){return e=(e||0)%360,e<0?e+360:e}function Ey(e){return Math.max(0,Math.min(1,e||0))}function pE(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const dk=e=>()=>e;function v6e(e,t){return function(r){return e+r*t}}function g6e(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function y6e(e){return(e=+e)==1?CX:function(t,r){return r-t?g6e(t,r,e):dk(isNaN(t)?r:t)}}function CX(e,t){var r=t-e;return r?v6e(e,r):dk(isNaN(e)?t:e)}const B6=function e(t){var r=y6e(t);function n(a,i){var o=r((a=tT(a)).r,(i=tT(i)).r),s=r(a.g,i.g),l=r(a.b,i.b),c=CX(a.opacity,i.opacity);return function(u){return a.r=o(u),a.g=s(u),a.b=l(u),a.opacity=c(u),a+""}}return n.gamma=e,n}(1);function x6e(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),a;return function(i){for(a=0;ar&&(i=t.slice(r,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,l.push({i:o,x:V1(n,a)})),r=vE.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function I6e(e,t,r){var n=e[0],a=e[1],i=t[0],o=t[1];return a2?N6e:I6e,l=c=null,f}function f(m){return m==null||isNaN(m=+m)?i:(l||(l=s(e.map(n),t,r)))(n(o(m)))}return f.invert=function(m){return o(a((c||(c=s(t,e.map(n),V1)))(m)))},f.domain=function(m){return arguments.length?(e=Array.from(m,U1),u()):e.slice()},f.range=function(m){return arguments.length?(t=Array.from(m),u()):t.slice()},f.rangeRound=function(m){return t=Array.from(m),r=fk,u()},f.clamp=function(m){return arguments.length?(o=m?!0:bi,u()):o!==bi},f.interpolate=function(m){return arguments.length?(r=m,u()):r},f.unknown=function(m){return arguments.length?(i=m,f):i},function(m,h){return n=m,a=h,u()}}function mk(){return Rw()(bi,bi)}function k6e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function K1(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function P0(e){return e=K1(Math.abs(e)),e?e[1]:NaN}function R6e(e,t){return function(r,n){for(var a=r.length,i=[],o=0,s=e[0],l=0;a>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),i.push(r.substring(a-=s,a+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function A6e(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var M6e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Fp(e){if(!(t=M6e.exec(e)))throw new Error("invalid format: "+e);var t;return new hk({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Fp.prototype=hk.prototype;function hk(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}hk.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function D6e(e){e:for(var t=e.length,r=1,n=-1,a;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(a+1):e}var EX;function j6e(e,t){var r=K1(e,t);if(!r)return e+"";var n=r[0],a=r[1],i=a-(EX=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=n.length;return i===o?n:i>o?n+new Array(i-o+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+K1(e,Math.max(0,t+i-1))[0]}function H6(e,t){var r=K1(e,t);if(!r)return e+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const W6={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:k6e,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>H6(e*100,t),r:H6,s:j6e,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function V6(e){return e}var U6=Array.prototype.map,K6=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function F6e(e){var t=e.grouping===void 0||e.thousands===void 0?V6:R6e(U6.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?V6:A6e(U6.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(f){f=Fp(f);var m=f.fill,h=f.align,v=f.sign,p=f.symbol,g=f.zero,y=f.width,x=f.comma,b=f.precision,S=f.trim,w=f.type;w==="n"?(x=!0,w="g"):W6[w]||(b===void 0&&(b=12),S=!0,w="g"),(g||m==="0"&&h==="=")&&(g=!0,m="0",h="=");var E=p==="$"?r:p==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",C=p==="$"?n:/[%p]/.test(w)?o:"",O=W6[w],_=/[defgprs%]/.test(w);b=b===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function T(I){var N=E,D=C,k,R,A;if(w==="c")D=O(I)+D,I="";else{I=+I;var j=I<0||1/I<0;if(I=isNaN(I)?l:O(Math.abs(I),b),S&&(I=D6e(I)),j&&+I==0&&v!=="+"&&(j=!1),N=(j?v==="("?v:s:v==="-"||v==="("?"":v)+N,D=(w==="s"?K6[8+EX/3]:"")+D+(j&&v==="("?")":""),_){for(k=-1,R=I.length;++kA||A>57){D=(A===46?a+I.slice(k+1):I.slice(k))+D,I=I.slice(0,k);break}}}x&&!g&&(I=t(I,1/0));var F=N.length+I.length+D.length,M=F>1)+N+I+D+M.slice(F);break;default:I=M+N+I+D;break}return i(I)}return T.toString=function(){return f+""},T}function u(f,m){var h=c((f=Fp(f),f.type="f",f)),v=Math.max(-8,Math.min(8,Math.floor(P0(m)/3)))*3,p=Math.pow(10,-v),g=K6[8+v/3];return function(y){return h(p*y)+g}}return{format:c,formatPrefix:u}}var $y,pk,$X;L6e({thousands:",",grouping:[3],currency:["$",""]});function L6e(e){return $y=F6e(e),pk=$y.format,$X=$y.formatPrefix,$y}function B6e(e){return Math.max(0,-P0(Math.abs(e)))}function z6e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(P0(t)/3)))*3-P0(Math.abs(e)))}function H6e(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,P0(t)-P0(e))+1}function _X(e,t,r,n){var a=JO(e,t,r),i;switch(n=Fp(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=z6e(a,o))&&(n.precision=i),$X(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=H6e(a,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=B6e(a))&&(n.precision=i-(n.type==="%")*2);break}}return pk(n)}function hu(e){var t=e.domain;return e.ticks=function(r){var n=t();return QO(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var a=t();return _X(a[0],a[a.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),a=0,i=n.length-1,o=n[a],s=n[i],l,c,u=10;for(s0;){if(c=ZO(o,s,r),c===l)return n[a]=o,n[i]=s,t(n);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function OX(){var e=mk();return e.copy=function(){return qv(e,OX())},Jo.apply(e,arguments),hu(e)}function TX(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,U1),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return TX(e).unknown(t)},e=arguments.length?Array.from(e,U1):[0,1],hu(r)}function PX(e,t){e=e.slice();var r=0,n=e.length-1,a=e[r],i=e[n],o;return iMath.pow(e,t)}function G6e(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function X6(e){return(t,r)=>-e(-t,r)}function vk(e){const t=e(G6,q6),r=t.domain;let n=10,a,i;function o(){return a=G6e(n),i=K6e(n),r()[0]<0?(a=X6(a),i=X6(i),e(W6e,V6e)):e(G6,q6),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let c=l[0],u=l[l.length-1];const f=u0){for(;m<=h;++m)for(v=1;vu)break;y.push(p)}}else for(;m<=h;++m)for(v=n-1;v>=1;--v)if(p=m>0?v/i(-m):v*i(m),!(pu)break;y.push(p)}y.length*2{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Fp(l)).precision==null&&(l.trim=!0),l=pk(l)),s===1/0)return l;const c=Math.max(1,n*s/t.ticks().length);return u=>{let f=u/i(Math.round(a(u)));return f*nr(PX(r(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function IX(){const e=vk(Rw()).domain([1,10]);return e.copy=()=>qv(e,IX()).base(e.base()),Jo.apply(e,arguments),e}function Y6(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Q6(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function gk(e){var t=1,r=e(Y6(t),Q6(t));return r.constant=function(n){return arguments.length?e(Y6(t=+n),Q6(t)):t},hu(r)}function NX(){var e=gk(Rw());return e.copy=function(){return qv(e,NX()).constant(e.constant())},Jo.apply(e,arguments)}function Z6(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function q6e(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function X6e(e){return e<0?-e*e:e*e}function yk(e){var t=e(bi,bi),r=1;function n(){return r===1?e(bi,bi):r===.5?e(q6e,X6e):e(Z6(r),Z6(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},hu(t)}function xk(){var e=yk(Rw());return e.copy=function(){return qv(e,xk()).exponent(e.exponent())},Jo.apply(e,arguments),e}function Y6e(){return xk.apply(null,arguments).exponent(.5)}function J6(e){return Math.sign(e)*e*e}function Q6e(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function kX(){var e=mk(),t=[0,1],r=!1,n;function a(i){var o=Q6e(e(i));return isNaN(o)?n:r?Math.round(o):o}return a.invert=function(i){return e.invert(J6(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,U1)).map(J6)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(r=!!i,a):r},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return kX(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Jo.apply(a,arguments),hu(a)}function RX(){var e=[],t=[],r=[],n;function a(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o0?r[s-1]:e[0],s=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(l){return arguments.length&&(i=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return AX().domain([e,t]).range(a).unknown(i)},Jo.apply(hu(o),arguments)}function MX(){var e=[.5],t=[0,1],r,n=1;function a(i){return i!=null&&i<=i?t[Kv(e,i,0,n)]:r}return a.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return MX().domain(e).range(t).unknown(r)},Jo.apply(a,arguments)}const gE=new Date,yE=new Date;function Sa(e,t,r,n){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),s=a.ceil(i);return i-o(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const l=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i0))return l;let c;do l.push(c=new Date(+i)),t(i,s),e(i);while(cSa(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),r&&(a.count=(i,o)=>(gE.setTime(+i),yE.setTime(+o),e(gE),e(yE),Math.floor(r(gE,yE))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(n?o=>n(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const G1=Sa(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);G1.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Sa(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):G1);G1.range;const xl=1e3,jo=xl*60,bl=jo*60,Fl=bl*24,bk=Fl*7,e8=Fl*30,xE=Fl*365,Ku=Sa(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*xl)},(e,t)=>(t-e)/xl,e=>e.getUTCSeconds());Ku.range;const Sk=Sa(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*xl)},(e,t)=>{e.setTime(+e+t*jo)},(e,t)=>(t-e)/jo,e=>e.getMinutes());Sk.range;const wk=Sa(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*jo)},(e,t)=>(t-e)/jo,e=>e.getUTCMinutes());wk.range;const Ck=Sa(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*xl-e.getMinutes()*jo)},(e,t)=>{e.setTime(+e+t*bl)},(e,t)=>(t-e)/bl,e=>e.getHours());Ck.range;const Ek=Sa(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*bl)},(e,t)=>(t-e)/bl,e=>e.getUTCHours());Ek.range;const Xv=Sa(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*jo)/Fl,e=>e.getDate()-1);Xv.range;const Aw=Sa(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Fl,e=>e.getUTCDate()-1);Aw.range;const DX=Sa(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Fl,e=>Math.floor(e/Fl));DX.range;function Kd(e){return Sa(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*jo)/bk)}const Mw=Kd(0),q1=Kd(1),Z6e=Kd(2),J6e=Kd(3),I0=Kd(4),e8e=Kd(5),t8e=Kd(6);Mw.range;q1.range;Z6e.range;J6e.range;I0.range;e8e.range;t8e.range;function Gd(e){return Sa(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/bk)}const Dw=Gd(0),X1=Gd(1),r8e=Gd(2),n8e=Gd(3),N0=Gd(4),a8e=Gd(5),i8e=Gd(6);Dw.range;X1.range;r8e.range;n8e.range;N0.range;a8e.range;i8e.range;const $k=Sa(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());$k.range;const _k=Sa(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());_k.range;const Ll=Sa(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Ll.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Sa(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Ll.range;const Bl=Sa(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Bl.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Sa(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Bl.range;function jX(e,t,r,n,a,i){const o=[[Ku,1,xl],[Ku,5,5*xl],[Ku,15,15*xl],[Ku,30,30*xl],[i,1,jo],[i,5,5*jo],[i,15,15*jo],[i,30,30*jo],[a,1,bl],[a,3,3*bl],[a,6,6*bl],[a,12,12*bl],[n,1,Fl],[n,2,2*Fl],[r,1,bk],[t,1,e8],[t,3,3*e8],[e,1,xE]];function s(c,u,f){const m=ug).right(o,m);if(h===o.length)return e.every(JO(c/xE,u/xE,f));if(h===0)return G1.every(Math.max(JO(c,u,f),1));const[v,p]=o[m/o[h-1][2]53)return null;"w"in z||(z.w=1),"Z"in z?(te=SE(Xm(z.y,0,1)),re=te.getUTCDay(),te=re>4||re===0?X1.ceil(te):X1(te),te=Aw.offset(te,(z.V-1)*7),z.y=te.getUTCFullYear(),z.m=te.getUTCMonth(),z.d=te.getUTCDate()+(z.w+6)%7):(te=bE(Xm(z.y,0,1)),re=te.getDay(),te=re>4||re===0?q1.ceil(te):q1(te),te=Xv.offset(te,(z.V-1)*7),z.y=te.getFullYear(),z.m=te.getMonth(),z.d=te.getDate()+(z.w+6)%7)}else("W"in z||"U"in z)&&("w"in z||(z.w="u"in z?z.u%7:"W"in z?1:0),re="Z"in z?SE(Xm(z.y,0,1)).getUTCDay():bE(Xm(z.y,0,1)).getDay(),z.m=0,z.d="W"in z?(z.w+6)%7+z.W*7-(re+5)%7:z.w+z.U*7-(re+6)%7);return"Z"in z?(z.H+=z.Z/100|0,z.M+=z.Z%100,SE(z)):bE(z)}}function O(G,Q,J,z){for(var fe=0,te=Q.length,re=J.length,q,ne;fe=re)return-1;if(q=Q.charCodeAt(fe++),q===37){if(q=Q.charAt(fe++),ne=w[q in t8?Q.charAt(fe++):q],!ne||(z=ne(G,J,z))<0)return-1}else if(q!=J.charCodeAt(z++))return-1}return z}function _(G,Q,J){var z=c.exec(Q.slice(J));return z?(G.p=u.get(z[0].toLowerCase()),J+z[0].length):-1}function T(G,Q,J){var z=h.exec(Q.slice(J));return z?(G.w=v.get(z[0].toLowerCase()),J+z[0].length):-1}function I(G,Q,J){var z=f.exec(Q.slice(J));return z?(G.w=m.get(z[0].toLowerCase()),J+z[0].length):-1}function N(G,Q,J){var z=y.exec(Q.slice(J));return z?(G.m=x.get(z[0].toLowerCase()),J+z[0].length):-1}function D(G,Q,J){var z=p.exec(Q.slice(J));return z?(G.m=g.get(z[0].toLowerCase()),J+z[0].length):-1}function k(G,Q,J){return O(G,t,Q,J)}function R(G,Q,J){return O(G,r,Q,J)}function A(G,Q,J){return O(G,n,Q,J)}function j(G){return o[G.getDay()]}function F(G){return i[G.getDay()]}function M(G){return l[G.getMonth()]}function V(G){return s[G.getMonth()]}function K(G){return a[+(G.getHours()>=12)]}function L(G){return 1+~~(G.getMonth()/3)}function B(G){return o[G.getUTCDay()]}function W(G){return i[G.getUTCDay()]}function H(G){return l[G.getUTCMonth()]}function U(G){return s[G.getUTCMonth()]}function X(G){return a[+(G.getUTCHours()>=12)]}function Y(G){return 1+~~(G.getUTCMonth()/3)}return{format:function(G){var Q=E(G+="",b);return Q.toString=function(){return G},Q},parse:function(G){var Q=C(G+="",!1);return Q.toString=function(){return G},Q},utcFormat:function(G){var Q=E(G+="",S);return Q.toString=function(){return G},Q},utcParse:function(G){var Q=C(G+="",!0);return Q.toString=function(){return G},Q}}}var t8={"-":"",_:" ",0:"0"},Fa=/^\s*\d+/,d8e=/^%/,f8e=/[\\^$*+?|[\]().{}]/g;function Tr(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i[t.toLowerCase(),r]))}function h8e(e,t,r){var n=Fa.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function p8e(e,t,r){var n=Fa.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function v8e(e,t,r){var n=Fa.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function g8e(e,t,r){var n=Fa.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function y8e(e,t,r){var n=Fa.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function r8(e,t,r){var n=Fa.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function n8(e,t,r){var n=Fa.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function x8e(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function b8e(e,t,r){var n=Fa.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function S8e(e,t,r){var n=Fa.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function a8(e,t,r){var n=Fa.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function w8e(e,t,r){var n=Fa.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function i8(e,t,r){var n=Fa.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function C8e(e,t,r){var n=Fa.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function E8e(e,t,r){var n=Fa.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function $8e(e,t,r){var n=Fa.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function _8e(e,t,r){var n=Fa.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function O8e(e,t,r){var n=d8e.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function T8e(e,t,r){var n=Fa.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function P8e(e,t,r){var n=Fa.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function o8(e,t){return Tr(e.getDate(),t,2)}function I8e(e,t){return Tr(e.getHours(),t,2)}function N8e(e,t){return Tr(e.getHours()%12||12,t,2)}function k8e(e,t){return Tr(1+Xv.count(Ll(e),e),t,3)}function FX(e,t){return Tr(e.getMilliseconds(),t,3)}function R8e(e,t){return FX(e,t)+"000"}function A8e(e,t){return Tr(e.getMonth()+1,t,2)}function M8e(e,t){return Tr(e.getMinutes(),t,2)}function D8e(e,t){return Tr(e.getSeconds(),t,2)}function j8e(e){var t=e.getDay();return t===0?7:t}function F8e(e,t){return Tr(Mw.count(Ll(e)-1,e),t,2)}function LX(e){var t=e.getDay();return t>=4||t===0?I0(e):I0.ceil(e)}function L8e(e,t){return e=LX(e),Tr(I0.count(Ll(e),e)+(Ll(e).getDay()===4),t,2)}function B8e(e){return e.getDay()}function z8e(e,t){return Tr(q1.count(Ll(e)-1,e),t,2)}function H8e(e,t){return Tr(e.getFullYear()%100,t,2)}function W8e(e,t){return e=LX(e),Tr(e.getFullYear()%100,t,2)}function V8e(e,t){return Tr(e.getFullYear()%1e4,t,4)}function U8e(e,t){var r=e.getDay();return e=r>=4||r===0?I0(e):I0.ceil(e),Tr(e.getFullYear()%1e4,t,4)}function K8e(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Tr(t/60|0,"0",2)+Tr(t%60,"0",2)}function s8(e,t){return Tr(e.getUTCDate(),t,2)}function G8e(e,t){return Tr(e.getUTCHours(),t,2)}function q8e(e,t){return Tr(e.getUTCHours()%12||12,t,2)}function X8e(e,t){return Tr(1+Aw.count(Bl(e),e),t,3)}function BX(e,t){return Tr(e.getUTCMilliseconds(),t,3)}function Y8e(e,t){return BX(e,t)+"000"}function Q8e(e,t){return Tr(e.getUTCMonth()+1,t,2)}function Z8e(e,t){return Tr(e.getUTCMinutes(),t,2)}function J8e(e,t){return Tr(e.getUTCSeconds(),t,2)}function e5e(e){var t=e.getUTCDay();return t===0?7:t}function t5e(e,t){return Tr(Dw.count(Bl(e)-1,e),t,2)}function zX(e){var t=e.getUTCDay();return t>=4||t===0?N0(e):N0.ceil(e)}function r5e(e,t){return e=zX(e),Tr(N0.count(Bl(e),e)+(Bl(e).getUTCDay()===4),t,2)}function n5e(e){return e.getUTCDay()}function a5e(e,t){return Tr(X1.count(Bl(e)-1,e),t,2)}function i5e(e,t){return Tr(e.getUTCFullYear()%100,t,2)}function o5e(e,t){return e=zX(e),Tr(e.getUTCFullYear()%100,t,2)}function s5e(e,t){return Tr(e.getUTCFullYear()%1e4,t,4)}function l5e(e,t){var r=e.getUTCDay();return e=r>=4||r===0?N0(e):N0.ceil(e),Tr(e.getUTCFullYear()%1e4,t,4)}function c5e(){return"+0000"}function l8(){return"%"}function c8(e){return+e}function u8(e){return Math.floor(+e/1e3)}var pf,HX,WX;u5e({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function u5e(e){return pf=u8e(e),HX=pf.format,pf.parse,WX=pf.utcFormat,pf.utcParse,pf}function d5e(e){return new Date(e)}function f5e(e){return e instanceof Date?+e:+new Date(+e)}function Ok(e,t,r,n,a,i,o,s,l,c){var u=mk(),f=u.invert,m=u.domain,h=c(".%L"),v=c(":%S"),p=c("%I:%M"),g=c("%I %p"),y=c("%a %d"),x=c("%b %d"),b=c("%B"),S=c("%Y");function w(E){return(l(E)t(a/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,i)=>e6e(e,i/n))},r.copy=function(){return GX(t).domain(e)},ql.apply(r,arguments)}function Fw(){var e=0,t=.5,r=1,n=1,a,i,o,s,l,c=bi,u,f=!1,m;function h(p){return isNaN(p=+p)?m:(p=.5+((p=+u(p))-i)*(n*pe.chartData,Ik=Ue([vu],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),QX=(e,t,r,n)=>n?Ik(e):vu(e);function Yc(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(oa(t)&&oa(r))return!0}return!1}function d8(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function ZX(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,a,i;if(oa(r))a=r;else if(typeof r=="function")return;if(oa(n))i=n;else if(typeof n=="function")return;var o=[a,i];if(Yc(o))return o}}function g5e(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(Yc(n))return d8(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[a,i]=e,o,s;if(a==="auto")t!=null&&(o=Math.min(...t));else if(er(a))o=a;else if(typeof a=="function")try{t!=null&&(o=a(t==null?void 0:t[0]))}catch{}else if(typeof a=="string"&&TF.test(a)){var l=TF.exec(a);if(l==null||l[1]==null||t==null)o=void 0;else{var c=+l[1];o=t[0]-c}}else o=t==null?void 0:t[0];if(i==="auto")t!=null&&(s=Math.max(...t));else if(er(i))s=i;else if(typeof i=="function")try{t!=null&&(s=i(t==null?void 0:t[1]))}catch{}else if(typeof i=="string"&&PF.test(i)){var u=PF.exec(i);if(u==null||u[1]==null||t==null)s=void 0;else{var f=+u[1];s=t[1]+f}}else s=t==null?void 0:t[1];var m=[o,s];if(Yc(m))return t==null?m:d8(m,t,r)}}}var pm=1e9,y5e={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},kk,cn=!0,qo="[DecimalError] ",td=qo+"Invalid argument: ",Nk=qo+"Exponent out of range: ",vm=Math.floor,Iu=Math.pow,x5e=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ji,_a=1e7,Zr=7,JX=9007199254740991,Y1=vm(JX/Zr),jt={};jt.absoluteValue=jt.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};jt.comparedTo=jt.cmp=function(e){var t,r,n,a,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(n=i.d.length,a=e.d.length,t=0,r=ne.d[t]^i.s<0?1:-1;return n===a?0:n>a^i.s<0?1:-1};jt.decimalPlaces=jt.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Zr;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};jt.dividedBy=jt.div=function(e){return El(this,new this.constructor(e))};jt.dividedToIntegerBy=jt.idiv=function(e){var t=this,r=t.constructor;return zr(El(t,new r(e),0,1),r.precision)};jt.equals=jt.eq=function(e){return!this.cmp(e)};jt.exponent=function(){return aa(this)};jt.greaterThan=jt.gt=function(e){return this.cmp(e)>0};jt.greaterThanOrEqualTo=jt.gte=function(e){return this.cmp(e)>=0};jt.isInteger=jt.isint=function(){return this.e>this.d.length-2};jt.isNegative=jt.isneg=function(){return this.s<0};jt.isPositive=jt.ispos=function(){return this.s>0};jt.isZero=function(){return this.s===0};jt.lessThan=jt.lt=function(e){return this.cmp(e)<0};jt.lessThanOrEqualTo=jt.lte=function(e){return this.cmp(e)<1};jt.logarithm=jt.log=function(e){var t,r=this,n=r.constructor,a=n.precision,i=a+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Ji))throw Error(qo+"NaN");if(r.s<1)throw Error(qo+(r.s?"NaN":"-Infinity"));return r.eq(Ji)?new n(0):(cn=!1,t=El(Lp(r,i),Lp(e,i),i),cn=!0,zr(t,a))};jt.minus=jt.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?rY(t,e):eY(t,(e.s=-e.s,e))};jt.modulo=jt.mod=function(e){var t,r=this,n=r.constructor,a=n.precision;if(e=new n(e),!e.s)throw Error(qo+"NaN");return r.s?(cn=!1,t=El(r,e,0,1).times(e),cn=!0,r.minus(t)):zr(new n(r),a)};jt.naturalExponential=jt.exp=function(){return tY(this)};jt.naturalLogarithm=jt.ln=function(){return Lp(this)};jt.negated=jt.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};jt.plus=jt.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?eY(t,e):rY(t,(e.s=-e.s,e))};jt.precision=jt.sd=function(e){var t,r,n,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(td+e);if(t=aa(a)+1,n=a.d.length-1,r=n*Zr+1,n=a.d[n],n){for(;n%10==0;n/=10)r--;for(n=a.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};jt.squareRoot=jt.sqrt=function(){var e,t,r,n,a,i,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(qo+"NaN")}for(e=aa(s),cn=!1,a=Math.sqrt(+s),a==0||a==1/0?(t=Xs(s.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=vm((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(a.toString()),r=l.precision,a=o=r+3;;)if(i=n,n=i.plus(El(s,i,o+2)).times(.5),Xs(i.d).slice(0,o)===(t=Xs(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(zr(i,r+1,0),i.times(i).eq(s)){n=i;break}}else if(t!="9999")break;o+=4}return cn=!0,zr(n,r)};jt.times=jt.mul=function(e){var t,r,n,a,i,o,s,l,c,u=this,f=u.constructor,m=u.d,h=(e=new f(e)).d;if(!u.s||!e.s)return new f(0);for(e.s*=u.s,r=u.e+e.e,l=m.length,c=h.length,l=0;){for(t=0,a=l+n;a>n;)s=i[a]+h[n]*m[a-n-1]+t,i[a--]=s%_a|0,t=s/_a|0;i[a]=(i[a]+t)%_a|0}for(;!i[--o];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,cn?zr(e,f.precision):e};jt.toDecimalPlaces=jt.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(sl(e,0,pm),t===void 0?t=n.rounding:sl(t,0,8),zr(r,e+aa(r)+1,t))};jt.toExponential=function(e,t){var r,n=this,a=n.constructor;return e===void 0?r=Ed(n,!0):(sl(e,0,pm),t===void 0?t=a.rounding:sl(t,0,8),n=zr(new a(n),e+1,t),r=Ed(n,!0,e+1)),r};jt.toFixed=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?Ed(a):(sl(e,0,pm),t===void 0?t=i.rounding:sl(t,0,8),n=zr(new i(a),e+aa(a)+1,t),r=Ed(n.abs(),!1,e+aa(n)+1),a.isneg()&&!a.isZero()?"-"+r:r)};jt.toInteger=jt.toint=function(){var e=this,t=e.constructor;return zr(new t(e),aa(e)+1,t.rounding)};jt.toNumber=function(){return+this};jt.toPower=jt.pow=function(e){var t,r,n,a,i,o,s=this,l=s.constructor,c=12,u=+(e=new l(e));if(!e.s)return new l(Ji);if(s=new l(s),!s.s){if(e.s<1)throw Error(qo+"Infinity");return s}if(s.eq(Ji))return s;if(n=l.precision,e.eq(Ji))return zr(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,i=s.s,o){if((r=u<0?-u:u)<=JX){for(a=new l(Ji),t=Math.ceil(n/Zr+4),cn=!1;r%2&&(a=a.times(s),m8(a.d,t)),r=vm(r/2),r!==0;)s=s.times(s),m8(s.d,t);return cn=!0,e.s<0?new l(Ji).div(a):zr(a,n)}}else if(i<0)throw Error(qo+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,cn=!1,a=e.times(Lp(s,n+c)),cn=!0,a=tY(a),a.s=i,a};jt.toPrecision=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?(r=aa(a),n=Ed(a,r<=i.toExpNeg||r>=i.toExpPos)):(sl(e,1,pm),t===void 0?t=i.rounding:sl(t,0,8),a=zr(new i(a),e,t),r=aa(a),n=Ed(a,e<=r||r<=i.toExpNeg,e)),n};jt.toSignificantDigits=jt.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(sl(e,1,pm),t===void 0?t=n.rounding:sl(t,0,8)),zr(new n(r),e,t)};jt.toString=jt.valueOf=jt.val=jt.toJSON=jt[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=aa(e),r=e.constructor;return Ed(e,t<=r.toExpNeg||t>=r.toExpPos)};function eY(e,t){var r,n,a,i,o,s,l,c,u=e.constructor,f=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),cn?zr(t,f):t;if(l=e.d,c=t.d,o=e.e,a=t.e,l=l.slice(),i=o-a,i){for(i<0?(n=l,i=-i,s=c.length):(n=c,a=o,s=l.length),o=Math.ceil(f/Zr),s=o>s?o+1:s+1,i>s&&(i=s,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(s=l.length,i=c.length,s-i<0&&(i=s,n=c,c=l,l=n),r=0;i;)r=(l[--i]=l[i]+c[i]+r)/_a|0,l[i]%=_a;for(r&&(l.unshift(r),++a),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=a,cn?zr(t,f):t}function sl(e,t,r){if(e!==~~e||er)throw Error(td+e)}function Xs(e){var t,r,n,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;to?1:-1;else for(s=l=0;sa[s]?1:-1;break}return l}function r(n,a,i){for(var o=0;i--;)n[i]-=o,o=n[i]1;)n.shift()}return function(n,a,i,o){var s,l,c,u,f,m,h,v,p,g,y,x,b,S,w,E,C,O,_=n.constructor,T=n.s==a.s?1:-1,I=n.d,N=a.d;if(!n.s)return new _(n);if(!a.s)throw Error(qo+"Division by zero");for(l=n.e-a.e,C=N.length,w=I.length,h=new _(T),v=h.d=[],c=0;N[c]==(I[c]||0);)++c;if(N[c]>(I[c]||0)&&--l,i==null?x=i=_.precision:o?x=i+(aa(n)-aa(a))+1:x=i,x<0)return new _(0);if(x=x/Zr+2|0,c=0,C==1)for(u=0,N=N[0],x++;(c1&&(N=e(N,u),I=e(I,u),C=N.length,w=I.length),S=C,p=I.slice(0,C),g=p.length;g=_a/2&&++E;do u=0,s=t(N,p,C,g),s<0?(y=p[0],C!=g&&(y=y*_a+(p[1]||0)),u=y/E|0,u>1?(u>=_a&&(u=_a-1),f=e(N,u),m=f.length,g=p.length,s=t(f,p,m,g),s==1&&(u--,r(f,C16)throw Error(Nk+aa(e));if(!e.s)return new u(Ji);for(t==null?(cn=!1,s=f):s=t,o=new u(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(Iu(2,c))/Math.LN10*2+5|0,s+=n,r=a=i=new u(Ji),u.precision=s;;){if(a=zr(a.times(e),s),r=r.times(++l),o=i.plus(El(a,r,s)),Xs(o.d).slice(0,s)===Xs(i.d).slice(0,s)){for(;c--;)i=zr(i.times(i),s);return u.precision=f,t==null?(cn=!0,zr(i,f)):i}i=o}}function aa(e){for(var t=e.e*Zr,r=e.d[0];r>=10;r/=10)t++;return t}function wE(e,t,r){if(t>e.LN10.sd())throw cn=!0,r&&(e.precision=r),Error(qo+"LN10 precision limit exceeded");return zr(new e(e.LN10),t)}function dc(e){for(var t="";e--;)t+="0";return t}function Lp(e,t){var r,n,a,i,o,s,l,c,u,f=1,m=10,h=e,v=h.d,p=h.constructor,g=p.precision;if(h.s<1)throw Error(qo+(h.s?"NaN":"-Infinity"));if(h.eq(Ji))return new p(0);if(t==null?(cn=!1,c=g):c=t,h.eq(10))return t==null&&(cn=!0),wE(p,c);if(c+=m,p.precision=c,r=Xs(v),n=r.charAt(0),i=aa(h),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=Xs(h.d),n=r.charAt(0),f++;i=aa(h),n>1?(h=new p("0."+r),i++):h=new p(n+"."+r.slice(1))}else return l=wE(p,c+2,g).times(i+""),h=Lp(new p(n+"."+r.slice(1)),c-m).plus(l),p.precision=g,t==null?(cn=!0,zr(h,g)):h;for(s=o=h=El(h.minus(Ji),h.plus(Ji),c),u=zr(h.times(h),c),a=3;;){if(o=zr(o.times(u),c),l=s.plus(El(o,new p(a),c)),Xs(l.d).slice(0,c)===Xs(s.d).slice(0,c))return s=s.times(2),i!==0&&(s=s.plus(wE(p,c+2,g).times(i+""))),s=El(s,new p(f),c),p.precision=g,t==null?(cn=!0,zr(s,g)):s;s=l,a+=2}}function f8(e,t){var r,n,a;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(n,a),t){if(a-=n,r=r-n-1,e.e=vm(r/Zr),e.d=[],n=(r+1)%Zr,r<0&&(n+=Zr),nY1||e.e<-Y1))throw Error(Nk+r)}else e.s=0,e.e=0,e.d=[0];return e}function zr(e,t,r){var n,a,i,o,s,l,c,u,f=e.d;for(o=1,i=f[0];i>=10;i/=10)o++;if(n=t-o,n<0)n+=Zr,a=t,c=f[u=0];else{if(u=Math.ceil((n+1)/Zr),i=f.length,u>=i)return e;for(c=i=f[u],o=1;i>=10;i/=10)o++;n%=Zr,a=n-Zr+o}if(r!==void 0&&(i=Iu(10,o-a-1),s=c/i%10|0,l=t<0||f[u+1]!==void 0||c%i,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?a>0?c/Iu(10,o-a):0:f[u-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(i=aa(e),f.length=1,t=t-i-1,f[0]=Iu(10,(Zr-t%Zr)%Zr),e.e=vm(-t/Zr)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=u,i=1,u--):(f.length=u+1,i=Iu(10,Zr-n),f[u]=a>0?(c/Iu(10,o-a)%Iu(10,a)|0)*i:0),l)for(;;)if(u==0){(f[0]+=i)==_a&&(f[0]=1,++e.e);break}else{if(f[u]+=i,f[u]!=_a)break;f[u--]=0,i=1}for(n=f.length;f[--n]===0;)f.pop();if(cn&&(e.e>Y1||e.e<-Y1))throw Error(Nk+aa(e));return e}function rY(e,t){var r,n,a,i,o,s,l,c,u,f,m=e.constructor,h=m.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new m(e),cn?zr(t,h):t;if(l=e.d,f=t.d,n=t.e,c=e.e,l=l.slice(),o=c-n,o){for(u=o<0,u?(r=l,o=-o,s=f.length):(r=f,n=c,s=l.length),a=Math.max(Math.ceil(h/Zr),s)+2,o>a&&(o=a,r.length=1),r.reverse(),a=o;a--;)r.push(0);r.reverse()}else{for(a=l.length,s=f.length,u=a0;--a)l[s++]=0;for(a=f.length;a>o;){if(l[--a]0?i=i.charAt(0)+"."+i.slice(1)+dc(n):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+dc(-a-1)+i,r&&(n=r-o)>0&&(i+=dc(n))):a>=o?(i+=dc(a+1-o),r&&(n=r-a-1)>0&&(i=i+"."+dc(n))):((n=a+1)0&&(a+1===o&&(i+="."),i+=dc(n))),e.s<0?"-"+i:i}function m8(e,t){if(e.length>t)return e.length=t,!0}function nY(e){var t,r,n;function a(i){var o=this;if(!(o instanceof a))return new a(i);if(o.constructor=a,i instanceof a){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(td+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return f8(o,i.toString())}else if(typeof i!="string")throw Error(td+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,x5e.test(i))f8(o,i);else throw Error(td+i)}if(a.prototype=jt,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=nY,a.config=a.set=b5e,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(td+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(td+r+": "+n);return this}var kk=nY(y5e);Ji=new kk(1);const Ar=kk;var S5e=e=>e,aY={"@@functional/placeholder":!0},iY=e=>e===aY,h8=e=>function t(){return arguments.length===0||arguments.length===1&&iY(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},oY=(e,t)=>e===1?t:h8(function(){for(var r=arguments.length,n=new Array(r),a=0;ao!==aY).length;return i>=e?t(...n):oY(e-i,h8(function(){for(var o=arguments.length,s=new Array(o),l=0;liY(u)?s.shift():u);return t(...c,...s)}))}),w5e=e=>oY(e.length,e),aT=(e,t)=>{for(var r=[],n=e;nArray.isArray(t)?t.map(e):Object.keys(t).map(r=>t[r]).map(e)),E5e=function(){for(var t=arguments.length,r=new Array(t),n=0;nl(s),i(...arguments))}};function sY(e){var t;return e===0?t=1:t=Math.floor(new Ar(e).abs().log(10).toNumber())+1,t}function lY(e,t,r){for(var n=new Ar(e),a=0,i=[];n.lt(t)&&a<1e5;)i.push(n.toNumber()),n=n.add(r),a++;return i}var cY=e=>{var[t,r]=e,[n,a]=[t,r];return t>r&&([n,a]=[r,t]),[n,a]},uY=(e,t,r)=>{if(e.lte(0))return new Ar(0);var n=sY(e.toNumber()),a=new Ar(10).pow(n),i=e.div(a),o=n!==1?.05:.1,s=new Ar(Math.ceil(i.div(o).toNumber())).add(r).mul(o),l=s.mul(a);return t?new Ar(l.toNumber()):new Ar(Math.ceil(l.toNumber()))},$5e=(e,t,r)=>{var n=new Ar(1),a=new Ar(e);if(!a.isint()&&r){var i=Math.abs(e);i<1?(n=new Ar(10).pow(sY(e)-1),a=new Ar(Math.floor(a.div(n).toNumber())).mul(n)):i>1&&(a=new Ar(Math.floor(e)))}else e===0?a=new Ar(Math.floor((t-1)/2)):r||(a=new Ar(Math.floor(e)));var o=Math.floor((t-1)/2),s=E5e(C5e(l=>a.add(new Ar(l-o).mul(n)).toNumber()),aT);return s(0,t)},dY=function(t,r,n,a){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((r-t)/(n-1)))return{step:new Ar(0),tickMin:new Ar(0),tickMax:new Ar(0)};var o=uY(new Ar(r).sub(t).div(n-1),a,i),s;t<=0&&r>=0?s=new Ar(0):(s=new Ar(t).add(r).div(2),s=s.sub(new Ar(s).mod(o)));var l=Math.ceil(s.sub(t).div(o).toNumber()),c=Math.ceil(new Ar(r).sub(s).div(o).toNumber()),u=l+c+1;return u>n?dY(t,r,n,a,i+1):(u0?c+(n-u):c,l=r>0?l:l+(n-u)),{step:o,tickMin:s.sub(new Ar(l).mul(o)),tickMax:s.add(new Ar(c).mul(o))})},_5e=function(t){var[r,n]=t,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(a,2),[s,l]=cY([r,n]);if(s===-1/0||l===1/0){var c=l===1/0?[s,...aT(0,a-1).map(()=>1/0)]:[...aT(0,a-1).map(()=>-1/0),l];return r>n?c.reverse():c}if(s===l)return $5e(s,a,i);var{step:u,tickMin:f,tickMax:m}=dY(s,l,o,i,0),h=lY(f,m.add(new Ar(.1).mul(u)),u);return r>n?h.reverse():h},O5e=function(t,r){var[n,a]=t,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[o,s]=cY([n,a]);if(o===-1/0||s===1/0)return[n,a];if(o===s)return[o];var l=Math.max(r,2),c=uY(new Ar(s).sub(o).div(l-1),i,0),u=[...lY(new Ar(o),new Ar(s),c),s];return i===!1&&(u=u.map(f=>Math.round(f))),n>a?u.reverse():u},T5e=e=>e.rootProps.barCategoryGap,Yv=e=>e.rootProps.stackOffset,fY=e=>e.rootProps.reverseStackOrder,Rk=e=>e.options.chartName,Ak=e=>e.rootProps.syncId,mY=e=>e.rootProps.syncMethod,Mk=e=>e.options.eventEmitter,io={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},vl={allowDecimals:!1,allowDuplicatedCategory:!0,angleAxisId:0,axisLine:!0,axisLineType:"polygon",cx:0,cy:0,orientation:"outer",reversed:!1,scale:"auto",tick:!0,tickLine:!0,tickSize:8,type:"category",zIndex:io.axis},Qi={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,angle:0,axisLine:!0,includeHidden:!1,hide:!1,label:!1,orientation:"right",radiusAxisId:0,reversed:!1,scale:"auto",stroke:"#ccc",tick:!0,tickCount:5,type:"number",zIndex:io.axis},Lw=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},P5e={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:vl.angleAxisId,includeHidden:!1,name:void 0,reversed:vl.reversed,scale:vl.scale,tick:vl.tick,tickCount:void 0,ticks:void 0,type:vl.type,unit:void 0},I5e={allowDataOverflow:Qi.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Qi.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Qi.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Qi.scale,tick:Qi.tick,tickCount:Qi.tickCount,ticks:void 0,type:Qi.type,unit:void 0},N5e={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:vl.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:vl.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:vl.scale,tick:vl.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},k5e={allowDataOverflow:Qi.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Qi.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Qi.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Qi.scale,tick:Qi.tick,tickCount:Qi.tickCount,ticks:void 0,type:"category",unit:void 0},Dk=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?N5e:P5e,jk=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?k5e:I5e,Bw=e=>e.polarOptions,Fk=Ue([Kl,Gl,ja],cX),hY=Ue([Bw,Fk],(e,t)=>{if(e!=null)return so(e.innerRadius,t,0)}),pY=Ue([Bw,Fk],(e,t)=>{if(e!=null)return so(e.outerRadius,t,t*.8)}),R5e=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},vY=Ue([Bw],R5e);Ue([Dk,vY],Lw);var gY=Ue([Fk,hY,pY],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});Ue([jk,gY],Lw);var yY=Ue([Xr,Bw,hY,pY,Kl,Gl],(e,t,r,n,a,i)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:o,cy:s,startAngle:l,endAngle:c}=t;return{cx:so(o,a,a/2),cy:so(s,i,i/2),innerRadius:r,outerRadius:n,startAngle:l,endAngle:c,clockWise:!1}}}),un=(e,t)=>t,Qv=(e,t,r)=>r;function xY(e){return e==null?void 0:e.id}function bY(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:a,dataKey:i}=r,o=new Map;return e.forEach(s=>{var l,c=(l=s.data)!==null&&l!==void 0?l:n;if(!(c==null||c.length===0)){var u=xY(s);c.forEach((f,m)=>{var h=i==null||a?m:String(_n(f,i,null)),v=_n(f,s.dataKey,0),p;o.has(h)?p=o.get(h):p={},Object.assign(p,{[u]:v}),o.set(h,p)})}}),Array.from(o.values())}function Lk(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var zw=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function Hw(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function A5e(e,t){if(e.length===t.length){for(var r=0;r{var t=Xr(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},gm=e=>e.tooltip.settings.axisId;function p8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Q1(e){for(var t=1;te.cartesianAxis.xAxis[t],gu=(e,t)=>{var r=L5e(e,t);return r??F5e},B5e={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:iT,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:Vv},z5e=(e,t)=>e.cartesianAxis.yAxis[t],yu=(e,t)=>{var r=z5e(e,t);return r??B5e},H5e={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},Bk=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??H5e},yn=(e,t,r)=>{switch(t){case"xAxis":return gu(e,r);case"yAxis":return yu(e,r);case"zAxis":return Bk(e,r);case"angleAxis":return Dk(e,r);case"radiusAxis":return jk(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},W5e=(e,t,r)=>{switch(t){case"xAxis":return gu(e,r);case"yAxis":return yu(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Zv=(e,t,r)=>{switch(t){case"xAxis":return gu(e,r);case"yAxis":return yu(e,r);case"angleAxis":return Dk(e,r);case"radiusAxis":return jk(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},SY=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function zk(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var V5e=e=>e.graphicalItems.cartesianItems,U5e=Ue([un,Qv],zk),Hk=(e,t,r)=>e.filter(r).filter(n=>(t==null?void 0:t.includeHidden)===!0?!0:!n.hide),Jv=Ue([V5e,yn,U5e],Hk,{memoizeOptions:{resultEqualityCheck:Hw}}),wY=Ue([Jv],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(Lk)),CY=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),K5e=Ue([Jv],CY),Wk=e=>e.map(t=>t.data).filter(Boolean).flat(1),G5e=Ue([Jv],Wk,{memoizeOptions:{resultEqualityCheck:Hw}}),Vk=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:a}=t;return e.length>0?e:r.slice(n,a+1)},Uk=Ue([G5e,QX],Vk),Kk=(e,t,r)=>(t==null?void 0:t.dataKey)!=null?e.map(n=>({value:_n(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(a=>({value:_n(a,n)}))):e.map(n=>({value:n})),Ww=Ue([Uk,yn,Jv],Kk);function EY(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function bx(e){if(Dl(e)||e instanceof Date){var t=Number(e);if(oa(t))return t}}function v8(e){if(Array.isArray(e)){var t=[bx(e[0]),bx(e[1])];return Yc(t)?t:void 0}var r=bx(e);if(r!=null)return[r,r]}function zl(e){return e.map(bx).filter(ZAe)}function q5e(e,t,r){return!r||typeof t!="number"||Al(t)?[]:r.length?zl(r.flatMap(n=>{var a=_n(e,n.dataKey),i,o;if(Array.isArray(a)?[i,o]=a:i=o=a,!(!oa(i)||!oa(o)))return[t-i,t+o]})):[]}var Ca=e=>{var t=wa(e),r=gm(e);return Zv(e,t,r)},eg=Ue([Ca],e=>e==null?void 0:e.dataKey),X5e=Ue([wY,QX,Ca],bY),$Y=(e,t,r,n)=>{var a={},i=t.reduce((o,s)=>{if(s.stackId==null)return o;var l=o[s.stackId];return l==null&&(l=[]),l.push(s),o[s.stackId]=l,o},a);return Object.fromEntries(Object.entries(i).map(o=>{var[s,l]=o,c=n?[...l].reverse():l,u=c.map(xY);return[s,{stackedData:pDe(e,u,r),graphicalItems:c}]}))},Y5e=Ue([X5e,wY,Yv,fY],$Y),_Y=(e,t,r,n)=>{var{dataStartIndex:a,dataEndIndex:i}=t;if(n==null&&r!=="zAxis"){var o=yDe(e,a,i);if(!(o!=null&&o[0]===0&&o[1]===0))return o}},Q5e=Ue([yn],e=>e.allowDataOverflow),Gk=e=>{var t;if(e==null||!("domain"in e))return iT;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=zl(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e==null?void 0:e.domain)!==null&&t!==void 0?t:iT},qk=Ue([yn],Gk),Xk=Ue([qk,Q5e],ZX),Z5e=Ue([Y5e,vu,un,Xk],_Y,{memoizeOptions:{resultEqualityCheck:zw}}),Vw=e=>e.errorBars,J5e=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>EY(r,n)),Z1=function(){for(var t=arguments.length,r=new Array(t),n=0;n{var i,o;if(r.length>0&&e.forEach(s=>{r.forEach(l=>{var c,u,f=(c=n[l.id])===null||c===void 0?void 0:c.filter(y=>EY(a,y)),m=_n(s,(u=t.dataKey)!==null&&u!==void 0?u:l.dataKey),h=q5e(s,m,f);if(h.length>=2){var v=Math.min(...h),p=Math.max(...h);(i==null||vo)&&(o=p)}var g=v8(m);g!=null&&(i=i==null?g[0]:Math.min(i,g[0]),o=o==null?g[1]:Math.max(o,g[1]))})}),(t==null?void 0:t.dataKey)!=null&&e.forEach(s=>{var l=v8(_n(s,t.dataKey));l!=null&&(i=i==null?l[0]:Math.min(i,l[0]),o=o==null?l[1]:Math.max(o,l[1]))}),oa(i)&&oa(o))return[i,o]},eLe=Ue([Uk,yn,K5e,Vw,un],Yk,{memoizeOptions:{resultEqualityCheck:zw}});function tLe(e){var{value:t}=e;if(Dl(t)||t instanceof Date)return t}var rLe=(e,t,r)=>{var n=e.map(tLe).filter(a=>a!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&$G(n))?vX(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},OY=e=>e.referenceElements.dots,ym=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),nLe=Ue([OY,un,Qv],ym),TY=e=>e.referenceElements.areas,aLe=Ue([TY,un,Qv],ym),PY=e=>e.referenceElements.lines,iLe=Ue([PY,un,Qv],ym),IY=(e,t)=>{if(e!=null){var r=zl(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},oLe=Ue(nLe,un,IY),NY=(e,t)=>{if(e!=null){var r=zl(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},sLe=Ue([aLe,un],NY);function lLe(e){var t;if(e.x!=null)return zl([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:zl(r)}function cLe(e){var t;if(e.y!=null)return zl([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:zl(r)}var kY=(e,t)=>{if(e!=null){var r=e.flatMap(n=>t==="xAxis"?lLe(n):cLe(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},uLe=Ue([iLe,un],kY),dLe=Ue(oLe,uLe,sLe,(e,t,r)=>Z1(e,r,t)),Qk=(e,t,r,n,a,i,o,s)=>{if(r!=null)return r;var l=o==="vertical"&&s==="xAxis"||o==="horizontal"&&s==="yAxis",c=l?Z1(n,i,a):Z1(i,a);return g5e(t,c,e.allowDataOverflow)},fLe=Ue([yn,qk,Xk,Z5e,eLe,dLe,Xr,un],Qk,{memoizeOptions:{resultEqualityCheck:zw}}),mLe=[0,1],Zk=(e,t,r,n,a,i,o)=>{if(!((e==null||r==null||r.length===0)&&o===void 0)){var{dataKey:s,type:l}=e,c=Ud(t,i);if(c&&s==null){var u;return vX(0,(u=r==null?void 0:r.length)!==null&&u!==void 0?u:0)}return l==="category"?rLe(n,e,c):a==="expand"?mLe:o}},Jk=Ue([yn,Xr,Uk,Ww,Yv,un,fLe],Zk),RY=(e,t,r,n,a)=>{if(e!=null){var{scale:i,type:o}=e;if(i==="auto")return t==="radial"&&a==="radiusAxis"?"band":t==="radial"&&a==="angleAxis"?"linear":o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?"point":o==="category"?"band":"linear";if(typeof i=="string"){var s="scale".concat(Lv(i));return s in fh?s:"point"}}},xm=Ue([yn,Xr,SY,Rk,un],RY);function hLe(e){if(e!=null){if(e in fh)return fh[e]();var t="scale".concat(Lv(e));if(t in fh)return fh[t]()}}function eR(e,t,r,n){if(!(r==null||n==null)){if(typeof e.scale=="function")return e.scale.copy().domain(r).range(n);var a=hLe(t);if(a!=null){var i=a.domain(r).range(n);return dDe(i),i}}}var tR=(e,t,r)=>{var n=Gk(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&Yc(e))return _5e(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&Yc(e))return O5e(e,t.tickCount,t.allowDecimals)}},rR=Ue([Jk,Zv,xm],tR),nR=(e,t,r,n)=>{if(n!=="angleAxis"&&(e==null?void 0:e.type)==="number"&&Yc(t)&&Array.isArray(r)&&r.length>0){var a=t[0],i=r[0],o=t[1],s=r[r.length-1];return[Math.min(a,i),Math.max(o,s)]}return t},pLe=Ue([yn,Jk,rR,un],nR),vLe=Ue(Ww,yn,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(zl(e.map(f=>f.value))).sort((f,m)=>f-m),a=n[0],i=n[n.length-1];if(a==null||i==null)return 1/0;var o=i-a;if(o===0)return 1/0;for(var s=0;sa,(e,t,r,n,a)=>{if(!oa(e))return 0;var i=t==="vertical"?n.height:n.width;if(a==="gap")return e*i/2;if(a==="no-gap"){var o=so(r,e*i),s=e*i/2;return s-o-(s-o)/i*o}return 0}),gLe=(e,t,r)=>{var n=gu(e,t);return n==null||typeof n.padding!="string"?0:AY(e,"xAxis",t,r,n.padding)},yLe=(e,t,r)=>{var n=yu(e,t);return n==null||typeof n.padding!="string"?0:AY(e,"yAxis",t,r,n.padding)},xLe=Ue(gu,gLe,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:a}=e;return typeof a=="string"?{left:t,right:t}:{left:((r=a.left)!==null&&r!==void 0?r:0)+t,right:((n=a.right)!==null&&n!==void 0?n:0)+t}}),bLe=Ue(yu,yLe,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:a}=e;return typeof a=="string"?{top:t,bottom:t}:{top:((r=a.top)!==null&&r!==void 0?r:0)+t,bottom:((n=a.bottom)!==null&&n!==void 0?n:0)+t}}),SLe=Ue([ja,xLe,_w,$w,(e,t,r)=>r],(e,t,r,n,a)=>{var{padding:i}=n;return a?[i.left,r.width-i.right]:[e.left+t.left,e.left+e.width-t.right]}),wLe=Ue([ja,Xr,bLe,_w,$w,(e,t,r)=>r],(e,t,r,n,a,i)=>{var{padding:o}=a;return i?[n.height-o.bottom,o.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),tg=(e,t,r,n)=>{var a;switch(t){case"xAxis":return SLe(e,r,n);case"yAxis":return wLe(e,r,n);case"zAxis":return(a=Bk(e,r))===null||a===void 0?void 0:a.range;case"angleAxis":return vY(e);case"radiusAxis":return gY(e,r);default:return}},MY=Ue([yn,tg],Lw),Uw=Ue([yn,xm,pLe,MY],eR);Ue([Jv,Vw,un],J5e);function DY(e,t){return e.idt.id?1:0}var Kw=(e,t)=>t,Gw=(e,t,r)=>r,CLe=Ue(Cw,Kw,Gw,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(DY)),ELe=Ue(Ew,Kw,Gw,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(DY)),jY=(e,t)=>({width:e.width,height:t.height}),$Le=(e,t)=>{var r=typeof t.width=="number"?t.width:Vv;return{width:r,height:e.height}};Ue(ja,gu,jY);var _Le=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},OLe=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},TLe=Ue(Gl,ja,CLe,Kw,Gw,(e,t,r,n,a)=>{var i={},o;return r.forEach(s=>{var l=jY(t,s);o==null&&(o=_Le(t,n,e));var c=n==="top"&&!a||n==="bottom"&&a;i[s.id]=o-Number(c)*l.height,o+=(c?-1:1)*l.height}),i}),PLe=Ue(Kl,ja,ELe,Kw,Gw,(e,t,r,n,a)=>{var i={},o;return r.forEach(s=>{var l=$Le(t,s);o==null&&(o=OLe(t,n,e));var c=n==="left"&&!a||n==="right"&&a;i[s.id]=o-Number(c)*l.width,o+=(c?-1:1)*l.width}),i}),ILe=(e,t)=>{var r=gu(e,t);if(r!=null)return TLe(e,r.orientation,r.mirror)};Ue([ja,gu,ILe,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var a=r==null?void 0:r[n];return a==null?{x:e.left,y:0}:{x:e.left,y:a}}});var NLe=(e,t)=>{var r=yu(e,t);if(r!=null)return PLe(e,r.orientation,r.mirror)};Ue([ja,yu,NLe,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var a=r==null?void 0:r[n];return a==null?{x:0,y:e.top}:{x:a,y:e.top}}});Ue(ja,yu,(e,t)=>{var r=typeof t.width=="number"?t.width:Vv;return{width:r,height:e.height}});var FY=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:a,type:i,dataKey:o}=r,s=Ud(e,n),l=t.map(c=>c.value);if(o&&s&&i==="category"&&a&&$G(l))return l}},aR=Ue([Xr,Ww,yn,un],FY),LY=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:a,scale:i}=r,o=Ud(e,n);if(o&&(a==="number"||i!=="auto"))return t.map(s=>s.value)}},iR=Ue([Xr,Ww,Zv,un],LY);Ue([Xr,W5e,xm,Uw,aR,iR,tg,rR,un],(e,t,r,n,a,i,o,s,l)=>{if(t!=null){var c=Ud(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:i,duplicateDomain:a,isCategorical:c,niceTicks:s,range:o,realScaleType:r,scale:n}}});var kLe=(e,t,r,n,a,i,o,s,l)=>{if(!(t==null||n==null)){var c=Ud(e,l),{type:u,ticks:f,tickCount:m}=t,h=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,v=u==="category"&&n.bandwidth?n.bandwidth()/h:0;v=l==="angleAxis"&&i!=null&&i.length>=2?Mi(i[0]-i[1])*2*v:v;var p=f||a;if(p){var g=p.map((y,x)=>{var b=o?o.indexOf(y):y;return{index:x,coordinate:n(b)+v,value:y,offset:v}});return g.filter(y=>oa(y.coordinate))}return c&&s?s.map((y,x)=>({coordinate:n(y)+v,value:y,index:x,offset:v})).filter(y=>oa(y.coordinate)):n.ticks?n.ticks(m).map(y=>({coordinate:n(y)+v,value:y,offset:v})):n.domain().map((y,x)=>({coordinate:n(y)+v,value:o?o[y]:y,index:x,offset:v}))}};Ue([Xr,Zv,xm,Uw,rR,tg,aR,iR,un],kLe);var RLe=(e,t,r,n,a,i,o)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var s=Ud(e,o),{tickCount:l}=t,c=0;return c=o==="angleAxis"&&(n==null?void 0:n.length)>=2?Mi(n[0]-n[1])*2*c:c,s&&i?i.map((u,f)=>({coordinate:r(u)+c,value:u,index:f,offset:c})):r.ticks?r.ticks(l).map(u=>({coordinate:r(u)+c,value:u,offset:c})):r.domain().map((u,f)=>({coordinate:r(u)+c,value:a?a[u]:u,index:f,offset:c}))}};Ue([Xr,Zv,Uw,tg,aR,iR,un],RLe);Ue(yn,Uw,(e,t)=>{if(!(e==null||t==null))return Q1(Q1({},e),{},{scale:t})});var ALe=Ue([yn,xm,Jk,MY],eR);Ue((e,t,r)=>Bk(e,r),ALe,(e,t)=>{if(!(e==null||t==null))return Q1(Q1({},e),{},{scale:t})});var MLe=Ue([Xr,Cw,Ew],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),BY=e=>e.options.defaultTooltipEventType,zY=e=>e.options.validateTooltipEventTypes;function HY(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function oR(e,t){var r=BY(e),n=zY(e);return HY(t,r,n)}function DLe(e){return rr(t=>oR(t,e))}var WY=(e,t)=>{var r,n=Number(t);if(!(Al(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},jLe=e=>e.tooltip.settings,hc={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},FLe={itemInteraction:{click:hc,hover:hc},axisInteraction:{click:hc,hover:hc},keyboardInteraction:hc,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},VY=Ui({name:"tooltip",initialState:FLe,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:sn()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,a=ws(e).tooltipItemPayloads.indexOf(r);a>-1&&(e.tooltipItemPayloads[a]=n)},prepare:sn()},removeTooltipEntrySettings:{reducer(e,t){var r=ws(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:sn()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:LLe,replaceTooltipEntrySettings:BLe,removeTooltipEntrySettings:zLe,setTooltipSettingsState:HLe,setActiveMouseOverItemIndex:UY,mouseLeaveItem:WLe,mouseLeaveChart:KY,setActiveClickItemIndex:VLe,setMouseOverAxisIndex:GY,setMouseClickAxisIndex:ULe,setSyncInteraction:oT,setKeyboardInteraction:sT}=VY.actions,KLe=VY.reducer;function g8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function _y(e){for(var t=1;t{if(t==null)return hc;var a=YLe(e,t,r);if(a==null)return hc;if(a.active)return a;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var i=e.settings.active===!0;if(QLe(a)){if(i)return _y(_y({},a),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return _y(_y({},hc),{},{coordinate:a.coordinate})};function ZLe(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}function JLe(e,t){var r=ZLe(e),n=t[0],a=t[1];if(r===void 0)return!1;var i=Math.min(n,a),o=Math.max(n,a);return r>=i&&r<=o}function eBe(e,t,r){if(r==null||t==null)return!0;var n=_n(e,t);return n==null||!Yc(r)?!0:JLe(n,r)}var sR=(e,t,r,n)=>{var a=e==null?void 0:e.index;if(a==null)return null;var i=Number(a);if(!oa(i))return a;var o=0,s=1/0;t.length>0&&(s=t.length-1);var l=Math.max(o,Math.min(i,s)),c=t[l];return c==null||eBe(c,r,n)?String(l):null},XY=(e,t,r,n,a,i,o,s)=>{if(!(i==null||s==null)){var l=o[0],c=l==null?void 0:s(l.positions,i);if(c!=null)return c;var u=a==null?void 0:a[Number(i)];if(u)switch(r){case"horizontal":return{x:u.coordinate,y:(n.top+t)/2};default:return{x:(n.left+e)/2,y:u.coordinate}}}},YY=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var a;if(r==="hover"?a=e.itemInteraction.hover.graphicalItemId:a=e.itemInteraction.click.graphicalItemId,a==null&&n!=null){var i=e.tooltipItemPayloads[0];return i!=null?[i]:[]}return e.tooltipItemPayloads.filter(o=>{var s;return((s=o.settings)===null||s===void 0?void 0:s.graphicalItemId)===a})},rg=e=>e.options.tooltipPayloadSearcher,bm=e=>e.tooltip;function y8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function x8(e){for(var t=1;t{if(!(t==null||i==null)){var{chartData:s,computedData:l,dataStartIndex:c,dataEndIndex:u}=r,f=[];return e.reduce((m,h)=>{var v,{dataDefinedOnItem:p,settings:g}=h,y=aBe(p,s),x=Array.isArray(y)?Aq(y,c,u):y,b=(v=g==null?void 0:g.dataKey)!==null&&v!==void 0?v:n,S=g==null?void 0:g.nameKey,w;if(n&&Array.isArray(x)&&!Array.isArray(x[0])&&o==="axis"?w=QAe(x,n,a):w=i(x,t,l,S),Array.isArray(w))w.forEach(C=>{var O=x8(x8({},g),{},{name:C.name,unit:C.unit,color:void 0,fill:void 0});m.push(NF({tooltipEntrySettings:O,dataKey:C.dataKey,payload:C.payload,value:_n(C.payload,C.dataKey),name:C.name}))});else{var E;m.push(NF({tooltipEntrySettings:g,dataKey:b,payload:w,value:_n(w,b),name:(E=_n(w,S))!==null&&E!==void 0?E:g==null?void 0:g.name}))}return m},f)}},lR=Ue([Ca,Xr,SY,Rk,wa],RY),iBe=Ue([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),oBe=Ue([wa,gm],zk),Sm=Ue([iBe,Ca,oBe],Hk,{memoizeOptions:{resultEqualityCheck:Hw}}),sBe=Ue([Sm],e=>e.filter(Lk)),lBe=Ue([Sm],Wk,{memoizeOptions:{resultEqualityCheck:Hw}}),wm=Ue([lBe,vu],Vk),cBe=Ue([sBe,vu,Ca],bY),cR=Ue([wm,Ca,Sm],Kk),ZY=Ue([Ca],Gk),uBe=Ue([Ca],e=>e.allowDataOverflow),JY=Ue([ZY,uBe],ZX),dBe=Ue([Sm],e=>e.filter(Lk)),fBe=Ue([cBe,dBe,Yv,fY],$Y),mBe=Ue([fBe,vu,wa,JY],_Y),hBe=Ue([Sm],CY),pBe=Ue([wm,Ca,hBe,Vw,wa],Yk,{memoizeOptions:{resultEqualityCheck:zw}}),vBe=Ue([OY,wa,gm],ym),gBe=Ue([vBe,wa],IY),yBe=Ue([TY,wa,gm],ym),xBe=Ue([yBe,wa],NY),bBe=Ue([PY,wa,gm],ym),SBe=Ue([bBe,wa],kY),wBe=Ue([gBe,SBe,xBe],Z1),CBe=Ue([Ca,ZY,JY,mBe,pBe,wBe,Xr,wa],Qk),ng=Ue([Ca,Xr,wm,cR,Yv,wa,CBe],Zk),EBe=Ue([ng,Ca,lR],tR),$Be=Ue([Ca,ng,EBe,wa],nR),eQ=e=>{var t=wa(e),r=gm(e),n=!1;return tg(e,t,r,n)},tQ=Ue([Ca,eQ],Lw),rQ=Ue([Ca,lR,$Be,tQ],eR),_Be=Ue([Xr,cR,Ca,wa],FY),OBe=Ue([Xr,cR,Ca,wa],LY),TBe=(e,t,r,n,a,i,o,s)=>{if(t){var{type:l}=t,c=Ud(e,s);if(n){var u=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,f=l==="category"&&n.bandwidth?n.bandwidth()/u:0;return f=s==="angleAxis"&&a!=null&&(a==null?void 0:a.length)>=2?Mi(a[0]-a[1])*2*f:f,c&&o?o.map((m,h)=>({coordinate:n(m)+f,value:m,index:h,offset:f})):n.domain().map((m,h)=>({coordinate:n(m)+f,value:i?i[m]:m,index:h,offset:f}))}}},Xl=Ue([Xr,Ca,lR,rQ,eQ,_Be,OBe,wa],TBe),uR=Ue([BY,zY,jLe],(e,t,r)=>HY(r.shared,e,t)),nQ=e=>e.tooltip.settings.trigger,dR=e=>e.tooltip.settings.defaultIndex,ag=Ue([bm,uR,nQ,dR],qY),Bp=Ue([ag,wm,eg,ng],sR),aQ=Ue([Xl,Bp],WY),iQ=Ue([ag],e=>{if(e)return e.dataKey}),PBe=Ue([ag],e=>{if(e)return e.graphicalItemId}),oQ=Ue([bm,uR,nQ,dR],YY),IBe=Ue([Kl,Gl,Xr,ja,Xl,dR,oQ,rg],XY),NBe=Ue([ag,IBe],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),kBe=Ue([ag],e=>{var t;return(t=e==null?void 0:e.active)!==null&&t!==void 0?t:!1}),RBe=Ue([oQ,Bp,vu,eg,aQ,rg,uR],QY);Ue([RBe],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function b8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function S8(e){for(var t=1;trr(Ca),FBe=()=>{var e=jBe(),t=rr(Xl),r=rr(rQ);return IF(!e||!r?void 0:S8(S8({},e),{},{scale:r}),t)};function w8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function vf(e){for(var t=1;t{var a=t.find(i=>i&&i.index===r);if(a){if(e==="horizontal")return{x:a.coordinate,y:n.chartY};if(e==="vertical")return{x:n.chartX,y:a.coordinate}}return{x:0,y:0}},WBe=(e,t,r,n)=>{var a=t.find(c=>c&&c.index===r);if(a){if(e==="centric"){var i=a.coordinate,{radius:o}=n;return vf(vf(vf({},n),ra(n.cx,n.cy,o,i)),{},{angle:i,radius:o})}var s=a.coordinate,{angle:l}=n;return vf(vf(vf({},n),ra(n.cx,n.cy,s,l)),{},{angle:l,radius:s})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function VBe(e,t){var{chartX:r,chartY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}var sQ=(e,t,r,n,a)=>{var i,o=(i=t==null?void 0:t.length)!==null&&i!==void 0?i:0;if(o<=1||e==null)return 0;if(n==="angleAxis"&&a!=null&&Math.abs(Math.abs(a[1]-a[0])-360)<=1e-6)for(var s=0;s0?(l=r[s-1])===null||l===void 0?void 0:l.coordinate:(c=r[o-1])===null||c===void 0?void 0:c.coordinate,v=(u=r[s])===null||u===void 0?void 0:u.coordinate,p=s>=o-1?(f=r[0])===null||f===void 0?void 0:f.coordinate:(m=r[s+1])===null||m===void 0?void 0:m.coordinate,g=void 0;if(!(h==null||v==null||p==null))if(Mi(v-h)!==Mi(p-v)){var y=[];if(Mi(p-v)===Mi(a[1]-a[0])){g=p;var x=v+a[1]-a[0];y[0]=Math.min(x,(x+h)/2),y[1]=Math.max(x,(x+h)/2)}else{g=h;var b=p+a[1]-a[0];y[0]=Math.min(v,(b+v)/2),y[1]=Math.max(v,(b+v)/2)}var S=[Math.min(v,(g+v)/2),Math.max(v,(g+v)/2)];if(e>S[0]&&e<=S[1]||e>=y[0]&&e<=y[1]){var w;return(w=r[s])===null||w===void 0?void 0:w.index}}else{var E=Math.min(h,p),C=Math.max(h,p);if(e>(E+v)/2&&e<=(C+v)/2){var O;return(O=r[s])===null||O===void 0?void 0:O.index}}}else if(t)for(var _=0;_(T.coordinate+N.coordinate)/2||_>0&&_(T.coordinate+N.coordinate)/2&&e<=(T.coordinate+I.coordinate)/2)return T.index}}return-1},UBe=()=>rr(Rk),fR=(e,t)=>t,lQ=(e,t,r)=>r,mR=(e,t,r,n)=>n,KBe=Ue(Xl,e=>hw(e,t=>t.coordinate)),hR=Ue([bm,fR,lQ,mR],qY),pR=Ue([hR,wm,eg,ng],sR),GBe=(e,t,r)=>{if(t!=null){var n=bm(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},cQ=Ue([bm,fR,lQ,mR],YY),J1=Ue([Kl,Gl,Xr,ja,Xl,mR,cQ,rg],XY),qBe=Ue([hR,J1],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),uQ=Ue([Xl,pR],WY),XBe=Ue([cQ,pR,vu,eg,uQ,rg,fR],QY),YBe=Ue([hR,pR],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),QBe=(e,t,r,n,a,i,o)=>{if(!(!e||!r||!n||!a)&&VBe(e,o)){var s=xDe(e,t),l=sQ(s,i,a,r,n),c=HBe(t,a,l,e);return{activeIndex:String(l),activeCoordinate:c}}},ZBe=(e,t,r,n,a,i,o)=>{if(!(!e||!n||!a||!i||!r)){var s=DFe(e,r);if(s){var l=bDe(s,t),c=sQ(l,o,i,n,a),u=WBe(t,i,c,s);return{activeIndex:String(c),activeCoordinate:u}}}},JBe=(e,t,r,n,a,i,o,s)=>{if(!(!e||!t||!n||!a||!i))return t==="horizontal"||t==="vertical"?QBe(e,t,n,a,i,o,s):ZBe(e,t,r,n,a,i,o)},eze=Ue(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(t!=null){var n=e[t];if(n!=null)return r?n.panoramaElement:n.element}}),tze=Ue(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(n=>parseInt(n,10)).concat(Object.values(io)),r=Array.from(new Set(t));return r.sort((n,a)=>n-a)},{memoizeOptions:{resultEqualityCheck:A5e}});function C8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function E8(e){for(var t=1;tE8(E8({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),ize)},sze=new Set(Object.values(io));function lze(e){return sze.has(e)}var dQ=Ui({name:"zIndex",initialState:oze,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:sn()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!lze(r)&&delete e.zIndexMap[r])},prepare:sn()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:n,isPanorama:a}=t.payload;e.zIndexMap[r]?a?e.zIndexMap[r].panoramaElement=n:e.zIndexMap[r].element=n:e.zIndexMap[r]={consumers:0,element:a?void 0:n,panoramaElement:a?n:void 0}},prepare:sn()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:sn()}}}),{registerZIndexPortal:cze,unregisterZIndexPortal:uze,registerZIndexPortalElement:dze,unregisterZIndexPortalElement:fze}=dQ.actions,mze=dQ.reducer;function ig(e){var{zIndex:t,children:r}=e,n=qDe(),a=n&&t!==void 0&&t!==0,i=mu(),o=Ln();d.useLayoutEffect(()=>a?(o(cze({zIndex:t})),()=>{o(uze({zIndex:t}))}):Bv,[o,t,a]);var s=rr(l=>eze(l,t,i));return a?s?wi.createPortal(r,s):null:r}function lT(){return lT=Object.assign?Object.assign.bind():function(e){for(var t=1;td.useContext(fQ),mQ={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function a(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function i(l,c,u,f,m){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new a(u,f||l,m),v=r?r+c:c;return l._events[v]?l._events[v].fn?l._events[v]=[l._events[v],h]:l._events[v].push(h):(l._events[v]=h,l._eventsCount++),l}function o(l,c){--l._eventsCount===0?l._events=new n:delete l._events[c]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,f;if(this._eventsCount===0)return c;for(f in u=this._events)t.call(u,f)&&c.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=r?r+c:c,f=this._events[u];if(!f)return[];if(f.fn)return[f.fn];for(var m=0,h=f.length,v=new Array(h);m{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),$ze=hQ.reducer,{createEventEmitter:_ze}=hQ.actions;function Oze(e){return e.tooltip.syncInteraction}var Tze={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},pQ=Ui({name:"chartData",initialState:Tze,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:O8,setDataStartEndIndexes:Pze,setComputedData:Prt}=pQ.actions,Ize=pQ.reducer,Nze=["x","y"];function T8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function gf(e){for(var t=1;tl.rootProps.className);d.useEffect(()=>{if(e==null)return Bv;var l=(c,u,f)=>{if(t!==f&&e===c){if(n==="index"){var m;if(o&&u!==null&&u!==void 0&&(m=u.payload)!==null&&m!==void 0&&m.coordinate&&u.payload.sourceViewBox){var h=u.payload.coordinate,{x:v,y:p}=h,g=Mze(h,Nze),{x:y,y:x,width:b,height:S}=u.payload.sourceViewBox,w=gf(gf({},g),{},{x:o.x+(b?(v-y)/b:0)*o.width,y:o.y+(S?(p-x)/S:0)*o.height});r(gf(gf({},u),{},{payload:gf(gf({},u.payload),{},{coordinate:w})}))}else r(u);return}if(a!=null){var E;if(typeof n=="function"){var C={activeTooltipIndex:u.payload.index==null?void 0:Number(u.payload.index),isTooltipActive:u.payload.active,activeIndex:u.payload.index==null?void 0:Number(u.payload.index),activeLabel:u.payload.label,activeDataKey:u.payload.dataKey,activeCoordinate:u.payload.coordinate},O=n(a,C);E=a[O]}else n==="value"&&(E=a.find(A=>String(A.value)===u.payload.label));var{coordinate:_}=u.payload;if(E==null||u.payload.active===!1||_==null||o==null){r(oT({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:T,y:I}=_,N=Math.min(T,o.x+o.width),D=Math.min(I,o.y+o.height),k={x:i==="horizontal"?E.coordinate:N,y:i==="horizontal"?D:E.coordinate},R=oT({active:u.payload.active,coordinate:k,dataKey:u.payload.dataKey,index:String(E.index),label:u.payload.label,sourceViewBox:u.payload.sourceViewBox,graphicalItemId:u.payload.graphicalItemId});r(R)}}};return zp.on(cT,l),()=>{zp.off(cT,l)}},[s,r,t,e,n,a,i,o])}function Fze(){var e=rr(Ak),t=rr(Mk),r=Ln();d.useEffect(()=>{if(e==null)return Bv;var n=(a,i,o)=>{t!==o&&e===a&&r(Pze(i))};return zp.on(_8,n),()=>{zp.off(_8,n)}},[r,t,e])}function Lze(){var e=Ln();d.useEffect(()=>{e(_ze())},[e]),jze(),Fze()}function Bze(e,t,r,n,a,i){var o=rr(h=>GBe(h,e,t)),s=rr(Mk),l=rr(Ak),c=rr(mY),u=rr(Oze),f=u==null?void 0:u.active,m=Ow();d.useEffect(()=>{if(!f&&l!=null&&s!=null){var h=oT({active:i,coordinate:r,dataKey:o,index:a,label:typeof n=="number"?String(n):n,sourceViewBox:m,graphicalItemId:void 0});zp.emit(cT,l,h,s)}},[f,r,o,a,n,s,l,c,i,m])}function P8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function I8(e){for(var t=1;t{C(HLe({shared:x,trigger:b,axisId:E,active:a,defaultIndex:O}))},[C,x,b,E,a,O]);var _=Ow(),T=nX(),I=DLe(x),{activeIndex:N,isActive:D}=(t=rr(X=>YBe(X,I,b,O)))!==null&&t!==void 0?t:{},k=rr(X=>XBe(X,I,b,O)),R=rr(X=>uQ(X,I,b,O)),A=rr(X=>qBe(X,I,b,O)),j=k,F=bze(),M=(r=a??D)!==null&&r!==void 0?r:!1,[V,K]=aq([j,M]),L=I==="axis"?R:void 0;Bze(I,b,A,L,N,M);var B=w??F;if(B==null||_==null||I==null)return null;var W=j??N8;M||(W=N8),c&&W.length&&(W=KG(W.filter(X=>X.value!=null&&(X.hide!==!0||n.includeHidden)),m,Vze));var H=W.length>0,U=d.createElement(Dje,{allowEscapeViewBox:i,animationDuration:o,animationEasing:s,isAnimationActive:u,active:M,coordinate:A,hasPayload:H,offset:f,position:h,reverseDirection:v,useTranslate3d:p,viewBox:_,wrapperStyle:g,lastBoundingBox:V,innerRef:K,hasPortalFromProps:!!w},Uze(l,I8(I8({},n),{},{payload:W,label:L,active:M,activeIndex:N,coordinate:A,accessibilityLayer:T})));return d.createElement(d.Fragment,null,wi.createPortal(U,B),M&&d.createElement(xze,{cursor:y,tooltipEventType:I,coordinate:A,payload:W,index:N}))}var og=e=>null;og.displayName="Cell";function Gze(e,t,r){return(t=qze(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qze(e){var t=Xze(e,"string");return typeof t=="symbol"?t:t+""}function Xze(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Yze{constructor(t){Gze(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}}function k8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Qze(e){for(var t=1;t{try{var r=document.getElementById(A8);r||(r=document.createElement("span"),r.setAttribute("id",A8),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,r7e,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},D8=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ak.isSsr)return{width:0,height:0};if(!gQ.enableCache)return M8(t,r);var n=n7e(t,r),a=R8.get(n);if(a)return a;var i=M8(t,r);return R8.set(n,i),i},yQ;function a7e(e,t,r){return(t=i7e(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i7e(e){var t=o7e(e,"string");return typeof t=="symbol"?t:t+""}function o7e(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var j8=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,F8=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,s7e=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,l7e=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,c7e={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},u7e=["cm","mm","pt","pc","in","Q","px"];function d7e(e){return u7e.includes(e)}var Bf="NaN";function f7e(e,t){return e*c7e[t]}class Ha{static parse(t){var r,[,n,a]=(r=l7e.exec(t))!==null&&r!==void 0?r:[];return n==null?Ha.NaN:new Ha(parseFloat(n),a??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,Al(t)&&(this.unit=""),r!==""&&!s7e.test(r)&&(this.num=NaN,this.unit=""),d7e(r)&&(this.num=f7e(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new Ha(NaN,""):new Ha(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new Ha(NaN,""):new Ha(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Ha(NaN,""):new Ha(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Ha(NaN,""):new Ha(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Al(this.num)}}yQ=Ha;a7e(Ha,"NaN",new yQ(NaN,""));function xQ(e){if(e==null||e.includes(Bf))return Bf;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,a,i]=(r=j8.exec(t))!==null&&r!==void 0?r:[],o=Ha.parse(n??""),s=Ha.parse(i??""),l=a==="*"?o.multiply(s):o.divide(s);if(l.isNaN())return Bf;t=t.replace(j8,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,u,f,m]=(c=F8.exec(t))!==null&&c!==void 0?c:[],h=Ha.parse(u??""),v=Ha.parse(m??""),p=f==="+"?h.add(v):h.subtract(v);if(p.isNaN())return Bf;t=t.replace(F8,p.toString())}return t}var L8=/\(([^()]*)\)/;function m7e(e){for(var t=e,r;(r=L8.exec(t))!=null;){var[,n]=r;t=t.replace(L8,xQ(n))}return t}function h7e(e){var t=e.replace(/\s+/g,"");return t=m7e(t),t=xQ(t),t}function p7e(e){try{return h7e(e)}catch{return Bf}}function CE(e){var t=p7e(e.slice(5,-1));return t===Bf?"":t}var v7e=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],g7e=["dx","dy","angle","className","breakAll"];function uT(){return uT=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:t,breakAll:r,style:n}=e;try{var a=[];fo(t)||(r?a=t.toString().split(""):a=t.toString().split(bQ));var i=a.map(s=>({word:s,width:D8(s,n).width})),o=r?0:D8(" ",n).width;return{wordsWithComputedWidth:i,spaceWidth:o}}catch{return null}};function x7e(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var wQ=(e,t,r,n)=>e.reduce((a,i)=>{var{word:o,width:s}=i,l=a[a.length-1];if(l&&s!=null&&(t==null||n||l.width+s+re.reduce((t,r)=>t.width>r.width?t:r),b7e="…",z8=(e,t,r,n,a,i,o,s)=>{var l=e.slice(0,t),c=SQ({breakAll:r,style:n,children:l+b7e});if(!c)return[!1,[]];var u=wQ(c.wordsWithComputedWidth,i,o,s),f=u.length>a||CQ(u).width>Number(i);return[f,u]},S7e=(e,t,r,n,a)=>{var{maxLines:i,children:o,style:s,breakAll:l}=e,c=er(i),u=String(o),f=wQ(t,n,r,a);if(!c||a)return f;var m=f.length>i||CQ(f).width>Number(n);if(!m)return f;for(var h=0,v=u.length-1,p=0,g;h<=v&&p<=u.length-1;){var y=Math.floor((h+v)/2),x=y-1,[b,S]=z8(u,x,l,s,i,n,r,a),[w]=z8(u,y,l,s,i,n,r,a);if(!b&&!w&&(h=y+1),b&&w&&(v=y-1),!b&&w){g=S;break}p++}return g||f},H8=e=>{var t=fo(e)?[]:e.toString().split(bQ);return[{words:t,width:void 0}]},w7e=e=>{var{width:t,scaleToFit:r,children:n,style:a,breakAll:i,maxLines:o}=e;if((t||r)&&!ak.isSsr){var s,l,c=SQ({breakAll:i,children:n,style:a});if(c){var{wordsWithComputedWidth:u,spaceWidth:f}=c;s=u,l=f}else return H8(n);return S7e({breakAll:i,children:n,maxLines:o,style:a},s,l,t,!!r)}return H8(n)},EQ="#808080",C7e={angle:0,breakAll:!1,capHeight:"0.71em",fill:EQ,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},vR=d.forwardRef((e,t)=>{var r=Zo(e,C7e),{x:n,y:a,lineHeight:i,capHeight:o,fill:s,scaleToFit:l,textAnchor:c,verticalAnchor:u}=r,f=B8(r,v7e),m=d.useMemo(()=>w7e({breakAll:f.breakAll,children:f.children,maxLines:f.maxLines,scaleToFit:l,style:f.style,width:f.width}),[f.breakAll,f.children,f.maxLines,l,f.style,f.width]),{dx:h,dy:v,angle:p,className:g,breakAll:y}=f,x=B8(f,g7e);if(!Dl(n)||!Dl(a)||m.length===0)return null;var b=Number(n)+(er(h)?h:0),S=Number(a)+(er(v)?v:0);if(!oa(b)||!oa(S))return null;var w;switch(u){case"start":w=CE("calc(".concat(o,")"));break;case"middle":w=CE("calc(".concat((m.length-1)/2," * -").concat(i," + (").concat(o," / 2))"));break;default:w=CE("calc(".concat(m.length-1," * -").concat(i,")"));break}var E=[];if(l){var C=m[0].width,{width:O}=f;E.push("scale(".concat(er(O)&&er(C)?O/C:1,")"))}return p&&E.push("rotate(".concat(p,", ").concat(b,", ").concat(S,")")),E.length&&(x.transform=E.join(" ")),d.createElement("text",uT({},Ko(x),{ref:t,x:b,y:S,className:jn("recharts-text",g),textAnchor:c,fill:s.includes("url")?EQ:s}),m.map((_,T)=>{var I=_.words.join(y?"":" ");return d.createElement("tspan",{x:b,dy:T===0?w:i,key:"".concat(I,"-").concat(T)},I)}))});vR.displayName="Text";var E7e=["labelRef"],$7e=["content"];function W8(e,t){if(e==null)return{};var r,n,a=_7e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{var e=d.useContext(I7e),t=Ow();return e||Kq(t)},k7e=d.createContext(null),R7e=()=>{var e=d.useContext(k7e),t=rr(yY);return e||t},A7e=e=>{var{value:t,formatter:r}=e,n=fo(e.children)?t:e.children;return typeof r=="function"?r(n):n},M7e=e=>e!=null&&typeof e=="function",D7e=(e,t)=>{var r=Mi(t-e),n=Math.min(Math.abs(t-e),360);return r*n},j7e=(e,t,r,n,a)=>{var{offset:i,className:o}=e,{cx:s,cy:l,innerRadius:c,outerRadius:u,startAngle:f,endAngle:m,clockWise:h}=a,v=(c+u)/2,p=D7e(f,m),g=p>=0?1:-1,y,x;switch(t){case"insideStart":y=f+g*i,x=h;break;case"insideEnd":y=m-g*i,x=!h;break;case"end":y=m+g*i,x=h;break;default:throw new Error("Unsupported position ".concat(t))}x=p<=0?x:!x;var b=ra(s,l,v,y),S=ra(s,l,v,y+(x?1:-1)*359),w="M".concat(b.x,",").concat(b.y,` + A`).concat(v,",").concat(v,",0,1,").concat(x?0:1,`, + `).concat(S.x,",").concat(S.y),E=fo(e.id)?Op("recharts-radial-line-"):e.id;return d.createElement("text",eb({},n,{dominantBaseline:"central",className:jn("recharts-radial-bar-label",o)}),d.createElement("defs",null,d.createElement("path",{id:E,d:w})),d.createElement("textPath",{xlinkHref:"#".concat(E)},r))},F7e=(e,t,r)=>{var{cx:n,cy:a,innerRadius:i,outerRadius:o,startAngle:s,endAngle:l}=e,c=(s+l)/2;if(r==="outside"){var{x:u,y:f}=ra(n,a,o+t,c);return{x:u,y:f,textAnchor:u>=n?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:n,y:a,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:n,y:a,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:n,y:a,textAnchor:"middle",verticalAnchor:"end"};var m=(i+o)/2,{x:h,y:v}=ra(n,a,m,c);return{x:h,y:v,textAnchor:"middle",verticalAnchor:"middle"}},dT=e=>"cx"in e&&er(e.cx),L7e=(e,t)=>{var{parentViewBox:r,offset:n,position:a}=e,i;r!=null&&!dT(r)&&(i=r);var{x:o,y:s,upperWidth:l,lowerWidth:c,height:u}=t,f=o,m=o+(l-c)/2,h=(f+m)/2,v=(l+c)/2,p=f+l/2,g=u>=0?1:-1,y=g*n,x=g>0?"end":"start",b=g>0?"start":"end",S=l>=0?1:-1,w=S*n,E=S>0?"end":"start",C=S>0?"start":"end";if(a==="top"){var O={x:f+l/2,y:s-y,textAnchor:"middle",verticalAnchor:x};return qn(qn({},O),i?{height:Math.max(s-i.y,0),width:l}:{})}if(a==="bottom"){var _={x:m+c/2,y:s+u+y,textAnchor:"middle",verticalAnchor:b};return qn(qn({},_),i?{height:Math.max(i.y+i.height-(s+u),0),width:c}:{})}if(a==="left"){var T={x:h-w,y:s+u/2,textAnchor:E,verticalAnchor:"middle"};return qn(qn({},T),i?{width:Math.max(T.x-i.x,0),height:u}:{})}if(a==="right"){var I={x:h+v+w,y:s+u/2,textAnchor:C,verticalAnchor:"middle"};return qn(qn({},I),i?{width:Math.max(i.x+i.width-I.x,0),height:u}:{})}var N=i?{width:v,height:u}:{};return a==="insideLeft"?qn({x:h+w,y:s+u/2,textAnchor:C,verticalAnchor:"middle"},N):a==="insideRight"?qn({x:h+v-w,y:s+u/2,textAnchor:E,verticalAnchor:"middle"},N):a==="insideTop"?qn({x:f+l/2,y:s+y,textAnchor:"middle",verticalAnchor:b},N):a==="insideBottom"?qn({x:m+c/2,y:s+u-y,textAnchor:"middle",verticalAnchor:x},N):a==="insideTopLeft"?qn({x:f+w,y:s+y,textAnchor:C,verticalAnchor:b},N):a==="insideTopRight"?qn({x:f+l-w,y:s+y,textAnchor:E,verticalAnchor:b},N):a==="insideBottomLeft"?qn({x:m+w,y:s+u-y,textAnchor:C,verticalAnchor:x},N):a==="insideBottomRight"?qn({x:m+c-w,y:s+u-y,textAnchor:E,verticalAnchor:x},N):a&&typeof a=="object"&&(er(a.x)||Ml(a.x))&&(er(a.y)||Ml(a.y))?qn({x:o+so(a.x,v),y:s+so(a.y,u),textAnchor:"end",verticalAnchor:"end"},N):qn({x:p,y:s+u/2,textAnchor:"middle",verticalAnchor:"middle"},N)},B7e={angle:0,offset:5,zIndex:io.label,position:"middle",textBreakAll:!1};function gR(e){var t=Zo(e,B7e),{viewBox:r,position:n,value:a,children:i,content:o,className:s="",textBreakAll:l,labelRef:c}=t,u=R7e(),f=N7e(),m=n==="center"?f:u??f,h,v,p;if(r==null?h=m:dT(r)?h=r:h=Kq(r),!h||fo(a)&&fo(i)&&!d.isValidElement(o)&&typeof o!="function")return null;var g=qn(qn({},t),{},{viewBox:h});if(d.isValidElement(o)){var y=W8(g,E7e);return d.cloneElement(o,y)}if(typeof o=="function"){var x=W8(g,$7e);if(v=d.createElement(o,x),d.isValidElement(v))return v}else v=A7e(t);var b=Ko(t);if(dT(h)){if(n==="insideStart"||n==="insideEnd"||n==="end")return j7e(t,n,v,b,h);p=F7e(h,t.offset,t.position)}else p=L7e(t,h);return d.createElement(ig,{zIndex:t.zIndex},d.createElement(vR,eb({ref:c,className:jn("recharts-label",s)},b,p,{textAnchor:x7e(b.textAnchor)?b.textAnchor:p.textAnchor,breakAll:l}),v))}gR.displayName="Label";var $Q={},_Q={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t})(_Q);var OQ={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t})(OQ);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_Q,r=OQ,n=fw;function a(i){if(n.isArrayLike(i))return t.last(r.toArray(i))}e.last=a})($Q);var z7e=$Q.last;const H7e=sa(z7e);var W7e=["valueAccessor"],V7e=["dataKey","clockWise","id","textBreakAll","zIndex"];function tb(){return tb=Object.assign?Object.assign.bind():function(e){for(var t=1;tArray.isArray(e.value)?H7e(e.value):e.value,TQ=d.createContext(void 0);TQ.Provider;var PQ=d.createContext(void 0),G7e=PQ.Provider;function q7e(){return d.useContext(TQ)}function X7e(){return d.useContext(PQ)}function Sx(e){var{valueAccessor:t=K7e}=e,r=U8(e,W7e),{dataKey:n,clockWise:a,id:i,textBreakAll:o,zIndex:s}=r,l=U8(r,V7e),c=q7e(),u=X7e(),f=c||u;return!f||!f.length?null:d.createElement(ig,{zIndex:s??io.label},d.createElement(qc,{className:"recharts-label-list"},f.map((m,h)=>{var v,p=fo(n)?t(m,h):_n(m&&m.payload,n),g=fo(i)?{}:{id:"".concat(i,"-").concat(h)};return d.createElement(gR,tb({key:"label-".concat(h)},Ko(m),l,g,{fill:(v=r.fill)!==null&&v!==void 0?v:m.fill,parentViewBox:m.parentViewBox,value:p,textBreakAll:o,viewBox:m.viewBox,index:h,zIndex:0}))})))}Sx.displayName="LabelList";function Y7e(e){var{label:t}=e;return t?t===!0?d.createElement(Sx,{key:"labelList-implicit"}):d.isValidElement(t)||M7e(t)?d.createElement(Sx,{key:"labelList-implicit",content:t}):typeof t=="object"?d.createElement(Sx,tb({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}var IQ=e=>e.graphicalItems.polarItems,Q7e=Ue([un,Qv],zk),qw=Ue([IQ,yn,Q7e],Hk),Z7e=Ue([qw],Wk),Xw=Ue([Z7e,Ik],Vk),J7e=Ue([Xw,yn,qw],Kk);Ue([Xw,yn,qw],(e,t,r)=>r.length>0?e.flatMap(n=>r.flatMap(a=>{var i,o=_n(n,(i=t.dataKey)!==null&&i!==void 0?i:a.dataKey);return{value:o,errorDomain:[]}})).filter(Boolean):(t==null?void 0:t.dataKey)!=null?e.map(n=>({value:_n(n,t.dataKey),errorDomain:[]})):e.map(n=>({value:n,errorDomain:[]})));var K8=()=>{},e9e=Ue([Xw,yn,qw,Vw,un],Yk),t9e=Ue([yn,qk,Xk,K8,e9e,K8,Xr,un],Qk),NQ=Ue([yn,Xr,Xw,J7e,Yv,un,t9e],Zk),r9e=Ue([NQ,yn,xm],tR);Ue([yn,NQ,r9e,un],nR);var n9e={radiusAxis:{},angleAxis:{}},kQ=Ui({name:"polarAxis",initialState:n9e,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}});kQ.actions;var a9e=kQ.reducer;function G8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function q8(e){for(var t=1;tt,yR=Ue([IQ,l9e],(e,t)=>e.filter(r=>r.type==="pie").find(r=>r.id===t)),c9e=[],xR=(e,t,r)=>(r==null?void 0:r.length)===0?c9e:r,RQ=Ue([Ik,yR,xR],(e,t,r)=>{var{chartData:n}=e;if(t!=null){var a;if((t==null?void 0:t.data)!=null&&t.data.length>0?a=t.data:a=n,(!a||!a.length)&&r!=null&&(a=r.map(i=>q8(q8({},t.presentationProps),i.props))),a!=null)return a}}),u9e=Ue([RQ,yR,xR],(e,t,r)=>{if(!(e==null||t==null))return e.map((n,a)=>{var i,o=_n(n,t.nameKey,t.name),s;return r!=null&&(i=r[a])!==null&&i!==void 0&&(i=i.props)!==null&&i!==void 0&&i.fill?s=r[a].props.fill:typeof n=="object"&&n!=null&&"fill"in n?s=n.fill:s=t.fill,{value:Mq(o,t.dataKey),color:s,payload:n,type:t.legendType}})}),d9e=Ue([RQ,yR,xR,ja],(e,t,r,n)=>{if(!(t==null||e==null))return mHe({offset:n,pieSettings:t,displayedData:e,cells:r})}),AQ={exports:{}},Ur={};/** + * @license React + * react-is.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var bR=Symbol.for("react.transitional.element"),SR=Symbol.for("react.portal"),Yw=Symbol.for("react.fragment"),Qw=Symbol.for("react.strict_mode"),Zw=Symbol.for("react.profiler"),Jw=Symbol.for("react.consumer"),eC=Symbol.for("react.context"),tC=Symbol.for("react.forward_ref"),rC=Symbol.for("react.suspense"),nC=Symbol.for("react.suspense_list"),aC=Symbol.for("react.memo"),iC=Symbol.for("react.lazy"),f9e=Symbol.for("react.view_transition"),m9e=Symbol.for("react.client.reference");function es(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case bR:switch(e=e.type,e){case Yw:case Zw:case Qw:case rC:case nC:case f9e:return e;default:switch(e=e&&e.$$typeof,e){case eC:case tC:case iC:case aC:return e;case Jw:return e;default:return t}}case SR:return t}}}Ur.ContextConsumer=Jw;Ur.ContextProvider=eC;Ur.Element=bR;Ur.ForwardRef=tC;Ur.Fragment=Yw;Ur.Lazy=iC;Ur.Memo=aC;Ur.Portal=SR;Ur.Profiler=Zw;Ur.StrictMode=Qw;Ur.Suspense=rC;Ur.SuspenseList=nC;Ur.isContextConsumer=function(e){return es(e)===Jw};Ur.isContextProvider=function(e){return es(e)===eC};Ur.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===bR};Ur.isForwardRef=function(e){return es(e)===tC};Ur.isFragment=function(e){return es(e)===Yw};Ur.isLazy=function(e){return es(e)===iC};Ur.isMemo=function(e){return es(e)===aC};Ur.isPortal=function(e){return es(e)===SR};Ur.isProfiler=function(e){return es(e)===Zw};Ur.isStrictMode=function(e){return es(e)===Qw};Ur.isSuspense=function(e){return es(e)===rC};Ur.isSuspenseList=function(e){return es(e)===nC};Ur.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Yw||e===Zw||e===Qw||e===rC||e===nC||typeof e=="object"&&e!==null&&(e.$$typeof===iC||e.$$typeof===aC||e.$$typeof===eC||e.$$typeof===Jw||e.$$typeof===tC||e.$$typeof===m9e||e.getModuleId!==void 0)};Ur.typeOf=es;AQ.exports=Ur;var h9e=AQ.exports,X8=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",Y8=null,EE=null,MQ=e=>{if(e===Y8&&Array.isArray(EE))return EE;var t=[];return d.Children.forEach(e,r=>{fo(r)||(h9e.isFragment(r)?t=t.concat(MQ(r.props.children)):t.push(r))}),EE=t,Y8=e,t};function DQ(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(a=>X8(a)):n=[X8(t)],MQ(e).forEach(a=>{var i=_p(a,"type.displayName")||_p(a,"type.name");i&&n.indexOf(i)!==-1&&r.push(a)}),r}var jQ={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){var a;if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){const i=r[Symbol.toStringTag];return i==null||!((a=Object.getOwnPropertyDescriptor(r,Symbol.toStringTag))!=null&&a.writable)?!1:r.toString()===`[object ${i}]`}let n=r;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(r)===n}e.isPlainObject=t})(jQ);var p9e=jQ.isPlainObject;const v9e=sa(p9e);var Q8,Z8,J8,e5,t5;function r5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function n5(e){for(var t=1;t{var i=r-n,o;return o=Sn(Q8||(Q8=Zm(["M ",",",""])),e,t),o+=Sn(Z8||(Z8=Zm(["L ",",",""])),e+r,t),o+=Sn(J8||(J8=Zm(["L ",",",""])),e+r-i/2,t+a),o+=Sn(e5||(e5=Zm(["L ",",",""])),e+r-i/2-n,t+a),o+=Sn(t5||(t5=Zm(["L ",","," Z"])),e,t),o},b9e={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},S9e=e=>{var t=Zo(e,b9e),{x:r,y:n,upperWidth:a,lowerWidth:i,height:o,className:s}=t,{animationEasing:l,animationDuration:c,animationBegin:u,isUpdateAnimationActive:f}=t,m=d.useRef(null),[h,v]=d.useState(-1),p=d.useRef(a),g=d.useRef(i),y=d.useRef(o),x=d.useRef(r),b=d.useRef(n),S=ok(e,"trapezoid-");if(d.useEffect(()=>{if(m.current&&m.current.getTotalLength)try{var k=m.current.getTotalLength();k&&v(k)}catch{}},[]),r!==+r||n!==+n||a!==+a||i!==+i||o!==+o||a===0&&i===0||o===0)return null;var w=jn("recharts-trapezoid",s);if(!f)return d.createElement("g",null,d.createElement("path",rb({},Ko(t),{className:w,d:a5(r,n,a,i,o)})));var E=p.current,C=g.current,O=y.current,_=x.current,T=b.current,I="0px ".concat(h===-1?1:h,"px"),N="".concat(h,"px 0px"),D=aX(["strokeDasharray"],c,l);return d.createElement(ik,{animationId:S,key:S,canBegin:h>0,duration:c,easing:l,isActive:f,begin:u},k=>{var R=us(E,a,k),A=us(C,i,k),j=us(O,o,k),F=us(_,r,k),M=us(T,n,k);m.current&&(p.current=R,g.current=A,y.current=j,x.current=F,b.current=M);var V=k>0?{transition:D,strokeDasharray:N}:{strokeDasharray:I};return d.createElement("path",rb({},Ko(t),{className:w,d:a5(F,M,R,A,j),ref:m,style:n5(n5({},V),t.style)}))})},w9e=["option","shapeType","activeClassName"];function C9e(e,t){if(e==null)return{};var r,n,a=E9e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{var n=Ln();return(a,i)=>o=>{e==null||e(a,i,o),n(UY({activeIndex:String(i),activeDataKey:t,activeCoordinate:a.tooltipPosition,activeGraphicalItemId:r}))}},R9e=e=>{var t=Ln();return(r,n)=>a=>{e==null||e(r,n,a),t(WLe())}},A9e=(e,t,r)=>{var n=Ln();return(a,i)=>o=>{e==null||e(a,i,o),n(VLe({activeIndex:String(i),activeDataKey:t,activeCoordinate:a.tooltipPosition,activeGraphicalItemId:r}))}};function M9e(e){var{tooltipEntrySettings:t}=e,r=Ln(),n=mu(),a=d.useRef(null);return d.useLayoutEffect(()=>{n||(a.current===null?r(LLe(t)):a.current!==t&&r(BLe({prev:a.current,next:t})),a.current=t)},[t,r,n]),d.useLayoutEffect(()=>()=>{a.current&&(r(zLe(a.current)),a.current=null)},[r]),null}function D9e(e){var{legendPayload:t}=e,r=Ln(),n=rr(Xr),a=d.useRef(null);return d.useLayoutEffect(()=>{n!=="centric"&&n!=="radial"||(a.current===null?r(lje(t)):a.current!==t&&r(cje({prev:a.current,next:t})),a.current=t)},[r,n,t]),d.useLayoutEffect(()=>()=>{a.current&&(r(uje(a.current)),a.current=null)},[r]),null}var $E,j9e=()=>{var[e]=d.useState(()=>Op("uid-"));return e},F9e=($E=F0["useId".toString()])!==null&&$E!==void 0?$E:j9e;function L9e(e,t){var r=F9e();return t||(e?"".concat(e,"-").concat(r):r)}var B9e=d.createContext(void 0),z9e=e=>{var{id:t,type:r,children:n}=e,a=L9e("recharts-".concat(r),t);return d.createElement(B9e.Provider,{value:a},n(a))},H9e={cartesianItems:[],polarItems:[]},FQ=Ui({name:"graphicalItems",initialState:H9e,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:sn()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,a=ws(e).cartesianItems.indexOf(r);a>-1&&(e.cartesianItems[a]=n)},prepare:sn()},removeCartesianGraphicalItem:{reducer(e,t){var r=ws(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:sn()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:sn()},removePolarGraphicalItem:{reducer(e,t){var r=ws(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:sn()}}}),{addCartesianGraphicalItem:Irt,replaceCartesianGraphicalItem:Nrt,removeCartesianGraphicalItem:krt,addPolarGraphicalItem:W9e,removePolarGraphicalItem:V9e}=FQ.actions,U9e=FQ.reducer;function K9e(e){var t=Ln();return d.useLayoutEffect(()=>(t(W9e(e)),()=>{t(V9e(e))}),[t,e]),null}var G9e=["key"],q9e=["onMouseEnter","onClick","onMouseLeave"],X9e=["id"],Y9e=["id"];function s5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Cn(e){for(var t=1;tDQ(e.children,og),[e.children]),r=rr(n=>u9e(n,e.id,t));return r==null?null:d.createElement(D9e,{legendPayload:r})}var rHe=d.memo(e=>{var{dataKey:t,nameKey:r,sectors:n,stroke:a,strokeWidth:i,fill:o,name:s,hide:l,tooltipType:c,id:u}=e,f={dataDefinedOnItem:n.map(m=>m.tooltipPayload),positions:n.map(m=>m.tooltipPosition),settings:{stroke:a,strokeWidth:i,fill:o,dataKey:t,nameKey:r,name:Mq(s,t),hide:l,type:c,color:o,unit:"",graphicalItemId:u}};return d.createElement(M9e,{tooltipEntrySettings:f})}),nHe=(e,t)=>e>t?"start":eso(typeof t=="function"?t(e):t,r,r*.8),iHe=(e,t,r)=>{var{top:n,left:a,width:i,height:o}=t,s=cX(i,o),l=a+so(e.cx,i,i/2),c=n+so(e.cy,o,o/2),u=so(e.innerRadius,s,0),f=aHe(r,e.outerRadius,s),m=e.maxRadius||Math.sqrt(i*i+o*o)/2;return{cx:l,cy:c,innerRadius:u,outerRadius:f,maxRadius:m}},oHe=(e,t)=>{var r=Mi(t-e),n=Math.min(Math.abs(t-e),360);return r*n};function sHe(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var lHe=(e,t)=>{if(d.isValidElement(e))return d.cloneElement(e,t);if(typeof e=="function")return e(t);var r=jn("recharts-pie-label-line",typeof e!="boolean"?e.className:""),n=oC(t,G9e);return d.createElement(nk,Qc({},n,{type:"linear",className:r}))},cHe=(e,t,r)=>{if(d.isValidElement(e))return d.cloneElement(e,t);var n=r;if(typeof e=="function"&&(n=e(t),d.isValidElement(n)))return n;var a=jn("recharts-pie-label-text",sHe(e));return d.createElement(vR,Qc({},t,{alignmentBaseline:"middle",className:a}),n)};function uHe(e){var{sectors:t,props:r,showLabels:n}=e,{label:a,labelLine:i,dataKey:o}=r;if(!n||!a||!t)return null;var s=C0(r),l=xO(a),c=xO(i),u=typeof a=="object"&&"offsetRadius"in a&&typeof a.offsetRadius=="number"&&a.offsetRadius||20,f=t.map((m,h)=>{var v=(m.startAngle+m.endAngle)/2,p=ra(m.cx,m.cy,m.outerRadius+u,v),g=Cn(Cn(Cn(Cn({},s),m),{},{stroke:"none"},l),{},{index:h,textAnchor:nHe(p.x,m.cx)},p),y=Cn(Cn(Cn(Cn({},s),m),{},{fill:"none",stroke:m.fill},c),{},{index:h,points:[ra(m.cx,m.cy,m.outerRadius,v),p],key:"line"});return d.createElement(ig,{zIndex:io.label,key:"label-".concat(m.startAngle,"-").concat(m.endAngle,"-").concat(m.midAngle,"-").concat(h)},d.createElement(qc,null,i&&lHe(i,y),cHe(a,g,_n(m,o))))});return d.createElement(qc,{className:"recharts-pie-labels"},f)}function dHe(e){var{sectors:t,props:r,showLabels:n}=e,{label:a}=r;return typeof a=="object"&&a!=null&&"position"in a?d.createElement(Y7e,{label:a}):d.createElement(uHe,{sectors:t,props:r,showLabels:n})}function fHe(e){var{sectors:t,activeShape:r,inactiveShape:n,allOtherPieProps:a,shape:i,id:o}=e,s=rr(Bp),l=rr(iQ),c=rr(PBe),{onMouseEnter:u,onClick:f,onMouseLeave:m}=a,h=oC(a,q9e),v=k9e(u,a.dataKey,o),p=R9e(m),g=A9e(f,a.dataKey,o);return t==null||t.length===0?null:d.createElement(d.Fragment,null,t.map((y,x)=>{if((y==null?void 0:y.startAngle)===0&&(y==null?void 0:y.endAngle)===0&&t.length!==1)return null;var b=c==null||c===o,S=String(x)===s&&(l==null||a.dataKey===l)&&b,w=s?n:null,E=r&&S?r:w,C=Cn(Cn({},y),{},{stroke:y.stroke,tabIndex:-1,[jq]:x,[Fq]:o});return d.createElement(qc,Qc({key:"sector-".concat(y==null?void 0:y.startAngle,"-").concat(y==null?void 0:y.endAngle,"-").concat(y.midAngle,"-").concat(x),tabIndex:-1,className:"recharts-pie-sector"},TG(h,y,x),{onMouseEnter:v(y,x),onMouseLeave:p(y,x),onClick:g(y,x)}),d.createElement(N9e,Qc({option:i??E,index:x,shapeType:"sector",isActive:S},C)))}))}function mHe(e){var t,{pieSettings:r,displayedData:n,cells:a,offset:i}=e,{cornerRadius:o,startAngle:s,endAngle:l,dataKey:c,nameKey:u,tooltipType:f}=r,m=Math.abs(r.minAngle),h=oHe(s,l),v=Math.abs(h),p=n.length<=1?0:(t=r.paddingAngle)!==null&&t!==void 0?t:0,g=n.filter(E=>_n(E,c,0)!==0).length,y=(v>=360?g:g-1)*p,x=v-g*m-y,b=n.reduce((E,C)=>{var O=_n(C,c,0);return E+(er(O)?O:0)},0),S;if(b>0){var w;S=n.map((E,C)=>{var O=_n(E,c,0),_=_n(E,u,C),T=iHe(r,i,E),I=(er(O)?O:0)/b,N,D=Cn(Cn({},E),a&&a[C]&&a[C].props);C?N=w.endAngle+Mi(h)*p*(O!==0?1:0):N=s;var k=N+Mi(h)*((O!==0?m:0)+I*x),R=(N+k)/2,A=(T.innerRadius+T.outerRadius)/2,j=[{name:_,value:O,payload:D,dataKey:c,type:f,graphicalItemId:r.id}],F=ra(T.cx,T.cy,A,R);return w=Cn(Cn(Cn(Cn({},r.presentationProps),{},{percent:I,cornerRadius:typeof o=="string"?parseFloat(o):o,name:_,tooltipPayload:j,midAngle:R,middleRadius:A,tooltipPosition:F},D),T),{},{value:O,dataKey:c,startAngle:N,endAngle:k,payload:D,paddingAngle:Mi(h)*p}),w})}return S}function hHe(e){var{showLabels:t,sectors:r,children:n}=e,a=d.useMemo(()=>!t||!r?[]:r.map(i=>({value:i.value,payload:i.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:i.cx,cy:i.cy,innerRadius:i.innerRadius,outerRadius:i.outerRadius,startAngle:i.startAngle,endAngle:i.endAngle,clockWise:!1},fill:i.fill})),[r,t]);return d.createElement(G7e,{value:t?a:void 0},n)}function pHe(e){var{props:t,previousSectorsRef:r,id:n}=e,{sectors:a,isAnimationActive:i,animationBegin:o,animationDuration:s,animationEasing:l,activeShape:c,inactiveShape:u,onAnimationStart:f,onAnimationEnd:m}=t,h=ok(t,"recharts-pie-"),v=r.current,[p,g]=d.useState(!1),y=d.useCallback(()=>{typeof m=="function"&&m(),g(!1)},[m]),x=d.useCallback(()=>{typeof f=="function"&&f(),g(!0)},[f]);return d.createElement(hHe,{showLabels:!p,sectors:a},d.createElement(ik,{animationId:h,begin:o,duration:s,isActive:i,easing:l,onAnimationStart:x,onAnimationEnd:y,key:h},b=>{var S=[],w=a&&a[0],E=w==null?void 0:w.startAngle;return a==null||a.forEach((C,O)=>{var _=v&&v[O],T=O>0?_p(C,"paddingAngle",0):0;if(_){var I=us(_.endAngle-_.startAngle,C.endAngle-C.startAngle,b),N=Cn(Cn({},C),{},{startAngle:E+T,endAngle:E+I+T});S.push(N),E=N.endAngle}else{var{endAngle:D,startAngle:k}=C,R=us(0,D-k,b),A=Cn(Cn({},C),{},{startAngle:E+T,endAngle:E+R+T});S.push(A),E=A.endAngle}}),r.current=S,d.createElement(qc,null,d.createElement(fHe,{sectors:S,activeShape:c,inactiveShape:u,allOtherPieProps:t,shape:t.shape,id:n}))}),d.createElement(dHe,{showLabels:!p,sectors:a,props:t}),t.children)}var vHe={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:"auto",label:!1,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff",zIndex:io.area};function gHe(e){var{id:t}=e,r=oC(e,X9e),{hide:n,className:a,rootTabIndex:i}=e,o=d.useMemo(()=>DQ(e.children,og),[e.children]),s=rr(u=>d9e(u,t,o)),l=d.useRef(null),c=jn("recharts-pie",a);return n||s==null?(l.current=null,d.createElement(qc,{tabIndex:i,className:c})):d.createElement(ig,{zIndex:e.zIndex},d.createElement(rHe,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:s,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t}),d.createElement(qc,{tabIndex:i,className:c},d.createElement(pHe,{props:Cn(Cn({},r),{},{sectors:s}),previousSectorsRef:l,id:t})))}function wR(e){var t=Zo(e,vHe),{id:r}=t,n=oC(t,Y9e),a=C0(n);return d.createElement(z9e,{id:r,type:"pie"},i=>d.createElement(d.Fragment,null,d.createElement(K9e,{type:"pie",id:i,data:n.data,dataKey:n.dataKey,hide:n.hide,angleAxisId:0,radiusAxisId:0,name:n.name,nameKey:n.nameKey,tooltipType:n.tooltipType,legendType:n.legendType,fill:n.fill,cx:n.cx,cy:n.cy,startAngle:n.startAngle,endAngle:n.endAngle,paddingAngle:n.paddingAngle,minAngle:n.minAngle,innerRadius:n.innerRadius,outerRadius:n.outerRadius,cornerRadius:n.cornerRadius,presentationProps:a,maxRadius:t.maxRadius}),d.createElement(tHe,Qc({},n,{id:i})),d.createElement(gHe,Qc({},n,{id:i}))))}wR.displayName="Pie";function l5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function c5(e){for(var t=1;t({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),EHe=Ue([CHe,Kl,Gl],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}}),$He=()=>rr(EHe),_He=e=>{var{chartData:t}=e,r=Ln(),n=mu();return d.useEffect(()=>n?()=>{}:(r(O8(t)),()=>{r(O8(void 0))}),[t,r,n]),null},u5={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},BQ=Ui({name:"brush",initialState:u5,reducers:{setBrushSettings(e,t){return t.payload==null?u5:t.payload}}});BQ.actions;var OHe=BQ.reducer,THe={dots:[],areas:[],lines:[]},zQ=Ui({name:"referenceElements",initialState:THe,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=ws(e).dots.findIndex(n=>n===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=ws(e).areas.findIndex(n=>n===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=ws(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}});zQ.actions;var PHe=zQ.reducer,IHe=d.createContext(void 0),NHe=e=>{var{children:t}=e,[r]=d.useState("".concat(Op("recharts"),"-clip")),n=$He();if(n==null)return null;var{x:a,y:i,width:o,height:s}=n;return d.createElement(IHe.Provider,{value:r},d.createElement("defs",null,d.createElement("clipPath",{id:r},d.createElement("rect",{x:a,y:i,height:s,width:o}))),t)},kHe={},HQ=Ui({name:"errorBars",initialState:kHe,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:a}=t.payload;e[r]&&(e[r]=e[r].map(i=>i.dataKey===n.dataKey&&i.direction===n.direction?a:i))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(a=>a.dataKey!==n.dataKey||a.direction!==n.direction))}}});HQ.actions;var RHe=HQ.reducer,AHe={};/** + * @license React + * use-sync-external-store-with-selector.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var sg=d;function MHe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var DHe=typeof Object.is=="function"?Object.is:MHe,jHe=sg.useSyncExternalStore,FHe=sg.useRef,LHe=sg.useEffect,BHe=sg.useMemo,zHe=sg.useDebugValue;AHe.useSyncExternalStoreWithSelector=function(e,t,r,n,a){var i=FHe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=BHe(function(){function l(h){if(!c){if(c=!0,u=h,h=n(h),a!==void 0&&o.hasValue){var v=o.value;if(a(v,h))return f=v}return f=h}if(v=f,DHe(u,h))return v;var p=n(h);return a!==void 0&&a(v,p)?(u=h,v):(u=h,f=p)}var c=!1,u,f,m=r===void 0?null:r;return[function(){return l(t())},m===null?void 0:function(){return l(m())}]},[t,r,n,a]);var s=jHe(e,i[0],i[1]);return LHe(function(){o.hasValue=!0,o.value=s},[s]),zHe(s),s};function HHe(e){e()}function WHe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){HHe(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const a=t={callback:r,next:null,prev:t};return a.prev?a.prev.next=a:e=a,function(){!n||e===null||(n=!1,a.next?a.next.prev=a.prev:t=a.prev,a.prev?a.prev.next=a.next:e=a.next)}}}}var d5={notify(){},get:()=>[]};function VHe(e,t){let r,n=d5,a=0,i=!1;function o(p){u();const g=n.subscribe(p);let y=!1;return()=>{y||(y=!0,g(),f())}}function s(){n.notify()}function l(){v.onStateChange&&v.onStateChange()}function c(){return i}function u(){a++,r||(r=t?t.addNestedSub(l):e.subscribe(l),n=WHe())}function f(){a--,r&&a===0&&(r(),r=void 0,n.clear(),n=d5)}function m(){i||(i=!0,u())}function h(){i&&(i=!1,f())}const v={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:m,tryUnsubscribe:h,getListeners:()=>n};return v}var UHe=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",KHe=UHe(),GHe=()=>typeof navigator<"u"&&navigator.product==="ReactNative",qHe=GHe(),XHe=()=>KHe||qHe?d.useLayoutEffect:d.useEffect,YHe=XHe();function f5(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function QHe(e,t){if(f5(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let a=0;a{const l=VHe(a);return{store:a,subscription:l,getServerState:n?()=>n:void 0}},[a,n]),o=d.useMemo(()=>a.getState(),[a]);YHe(()=>{const{subscription:l}=i;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),o!==a.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[i,o]);const s=r||JHe;return d.createElement(s.Provider,{value:i},t)}var tWe=eWe,rWe=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function nWe(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function aWe(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(rWe.has(n)){if(e[n]==null&&t[n]==null)continue;if(!QHe(e[n],t[n]))return!1}else if(!nWe(e[n],t[n]))return!1;return!0}var iWe=(e,t)=>t,CR=Ue([iWe,Xr,yY,wa,tQ,Xl,KBe,ja],JBe),ER=e=>{var t=e.currentTarget.getBoundingClientRect(),r=t.width/e.currentTarget.offsetWidth,n=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/r),chartY:Math.round((e.clientY-t.top)/n)}},WQ=Go("mouseClick"),VQ=Wv();VQ.startListening({actionCreator:WQ,effect:(e,t)=>{var r=e.payload,n=CR(t.getState(),ER(r));(n==null?void 0:n.activeIndex)!=null&&t.dispatch(ULe({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var fT=Go("mouseMove"),UQ=Wv(),Ty=null;UQ.startListening({actionCreator:fT,effect:(e,t)=>{var r=e.payload;Ty!==null&&cancelAnimationFrame(Ty);var n=ER(r);Ty=requestAnimationFrame(()=>{var a=t.getState(),i=oR(a,a.tooltip.settings.shared);if(i==="axis"){var o=CR(a,n);(o==null?void 0:o.activeIndex)!=null?t.dispatch(GY({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate})):t.dispatch(KY())}Ty=null})}});function oWe(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<>":t}var m5={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},KQ=Ui({name:"rootProps",initialState:m5,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:m5.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),sWe=KQ.reducer,{updateOptions:lWe}=KQ.actions,GQ=Ui({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:cWe}=GQ.actions,uWe=GQ.reducer,qQ=Go("keyDown"),XQ=Go("focus"),$R=Wv();$R.startListening({actionCreator:qQ,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:a}=r.tooltip,i=e.payload;if(!(i!=="ArrowRight"&&i!=="ArrowLeft"&&i!=="Enter")){var o=sR(a,wm(r),eg(r),ng(r)),s=o==null?-1:Number(o);if(!(!Number.isFinite(s)||s<0)){var l=Xl(r);if(i==="Enter"){var c=J1(r,"axis","hover",String(a.index));t.dispatch(sT({active:!a.active,activeIndex:a.index,activeCoordinate:c}));return}var u=MLe(r),f=u==="left-to-right"?1:-1,m=i==="ArrowRight"?1:-1,h=s+m*f;if(!(l==null||h>=l.length||h<0)){var v=J1(r,"axis","hover",String(h));t.dispatch(sT({active:!0,activeIndex:h.toString(),activeCoordinate:v}))}}}}}});$R.startListening({actionCreator:XQ,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:a}=r.tooltip;if(!a.active&&a.index==null){var i="0",o=J1(r,"axis","hover",String(i));t.dispatch(sT({active:!0,activeIndex:i,activeCoordinate:o}))}}}});var $o=Go("externalEvent"),YQ=Wv(),TE=new Map;YQ.startListening({actionCreator:$o,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(r!=null){n.persist();var a=n.type,i=TE.get(a);i!==void 0&&cancelAnimationFrame(i);var o=requestAnimationFrame(()=>{try{var s=t.getState(),l={activeCoordinate:NBe(s),activeDataKey:iQ(s),activeIndex:Bp(s),activeLabel:aQ(s),activeTooltipIndex:Bp(s),isTooltipActive:kBe(s)};r(l,n)}finally{TE.delete(a)}});TE.set(a,o)}}});var dWe=Ue([bm],e=>e.tooltipItemPayloads),fWe=Ue([dWe,rg,(e,t)=>t,(e,t,r)=>r],(e,t,r,n)=>{var a=e.find(s=>s.settings.graphicalItemId===n);if(a!=null){var{positions:i}=a;if(i!=null){var o=t(i,r);return o}}}),QQ=Go("touchMove"),ZQ=Wv();ZQ.startListening({actionCreator:QQ,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){var n=t.getState(),a=oR(n,n.tooltip.settings.shared);if(a==="axis"){var i=r.touches[0];if(i==null)return;var o=CR(n,ER({clientX:i.clientX,clientY:i.clientY,currentTarget:r.currentTarget}));(o==null?void 0:o.activeIndex)!=null&&t.dispatch(GY({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate}))}else if(a==="item"){var s,l=r.touches[0];if(document.elementFromPoint==null||l==null)return;var c=document.elementFromPoint(l.clientX,l.clientY);if(!c||!c.getAttribute)return;var u=c.getAttribute(jq),f=(s=c.getAttribute(Fq))!==null&&s!==void 0?s:void 0,m=Sm(n).find(p=>p.id===f);if(u==null||m==null||f==null)return;var{dataKey:h}=m,v=fWe(n,u,f);t.dispatch(UY({activeDataKey:h,activeIndex:u,activeCoordinate:v,activeGraphicalItemId:f}))}}}});var mWe=oq({brush:OHe,cartesianAxis:wHe,chartData:Ize,errorBars:RHe,graphicalItems:U9e,layout:oDe,legend:dje,options:$ze,polarAxis:a9e,polarOptions:uWe,referenceElements:PHe,rootProps:sWe,tooltip:KLe,zIndex:mze}),hWe=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return N3e({reducer:mWe,preloadedState:t,middleware:n=>{var a;return n({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((a="es6")!==null&&a!==void 0?a:"")}).concat([VQ.middleware,UQ.middleware,$R.middleware,YQ.middleware,ZQ.middleware])},enhancers:n=>{var a=n;return typeof n=="function"&&(a=n()),a.concat(Sq({type:"raf"}))},devTools:{serialize:{replacer:oWe},name:"recharts-".concat(r)}})};function pWe(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,a=mu(),i=d.useRef(null);if(a)return r;i.current==null&&(i.current=hWe(t,n));var o=WN;return d.createElement(tWe,{context:o,store:i.current},r)}function vWe(e){var{layout:t,margin:r}=e,n=Ln(),a=mu();return d.useEffect(()=>{a||(n(nDe(t)),n(rDe(r)))},[n,a,t,r]),null}var gWe=d.memo(vWe,aWe);function yWe(e){var t=Ln();return d.useEffect(()=>{t(lWe(e))},[t,e]),null}function h5(e){var{zIndex:t,isPanorama:r}=e,n=d.useRef(null),a=Ln();return d.useLayoutEffect(()=>(n.current&&a(dze({zIndex:t,element:n.current,isPanorama:r})),()=>{a(fze({zIndex:t,isPanorama:r}))}),[a,t,r]),d.createElement("g",{tabIndex:-1,ref:n})}function p5(e){var{children:t,isPanorama:r}=e,n=rr(tze);if(!n||n.length===0)return t;var a=n.filter(o=>o<0),i=n.filter(o=>o>0);return d.createElement(d.Fragment,null,a.map(o=>d.createElement(h5,{key:o,zIndex:o,isPanorama:r})),t,i.map(o=>d.createElement(h5,{key:o,zIndex:o,isPanorama:r})))}var xWe=["children"];function bWe(e,t){if(e==null)return{};var r,n,a=SWe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{var r=Gq(),n=qq(),a=nX();if(!Xc(r)||!Xc(n))return null;var{children:i,otherAttributes:o,title:s,desc:l}=e,c,u;return o!=null&&(typeof o.tabIndex=="number"?c=o.tabIndex:c=a?0:void 0,typeof o.role=="string"?u=o.role:u=a?"application":void 0),d.createElement(TN,ab({},o,{title:s,desc:l,role:u,tabIndex:c,width:r,height:n,style:wWe,ref:t}),i)}),EWe=e=>{var{children:t}=e,r=rr(_w);if(!r)return null;var{width:n,height:a,y:i,x:o}=r;return d.createElement(TN,{width:n,height:a,x:o,y:i},t)},v5=d.forwardRef((e,t)=>{var{children:r}=e,n=bWe(e,xWe),a=mu();return a?d.createElement(EWe,null,d.createElement(p5,{isPanorama:!0},r)):d.createElement(CWe,ab({ref:t},n),d.createElement(p5,{isPanorama:!1},r))});function $We(){var e=Ln(),[t,r]=d.useState(null),n=rr(SDe);return d.useEffect(()=>{if(t!=null){var a=t.getBoundingClientRect(),i=a.width/t.offsetWidth;oa(i)&&i!==n&&e(iDe(i))}},[t,e,n]),r}function g5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function _We(e){for(var t=1;t(Lze(),null);function ib(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var NWe=d.forwardRef((e,t)=>{var r,n,a=d.useRef(null),[i,o]=d.useState({containerWidth:ib((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:ib((n=e.style)===null||n===void 0?void 0:n.height)}),s=d.useCallback((c,u)=>{o(f=>{var m=Math.round(c),h=Math.round(u);return f.containerWidth===m&&f.containerHeight===h?f:{containerWidth:m,containerHeight:h}})},[]),l=d.useCallback(c=>{if(typeof t=="function"&&t(c),c!=null&&typeof ResizeObserver<"u"){var{width:u,height:f}=c.getBoundingClientRect();s(u,f);var m=v=>{var{width:p,height:g}=v[0].contentRect;s(p,g)},h=new ResizeObserver(m);h.observe(c),a.current=h}},[t,s]);return d.useEffect(()=>()=>{var c=a.current;c!=null&&c.disconnect()},[s]),d.createElement(d.Fragment,null,d.createElement(Pw,{width:i.containerWidth,height:i.containerHeight}),d.createElement("div",$d({ref:l},e)))}),kWe=d.forwardRef((e,t)=>{var{width:r,height:n}=e,[a,i]=d.useState({containerWidth:ib(r),containerHeight:ib(n)}),o=d.useCallback((l,c)=>{i(u=>{var f=Math.round(l),m=Math.round(c);return u.containerWidth===f&&u.containerHeight===m?u:{containerWidth:f,containerHeight:m}})},[]),s=d.useCallback(l=>{if(typeof t=="function"&&t(l),l!=null){var{width:c,height:u}=l.getBoundingClientRect();o(c,u)}},[t,o]);return d.createElement(d.Fragment,null,d.createElement(Pw,{width:a.containerWidth,height:a.containerHeight}),d.createElement("div",$d({ref:s},e)))}),RWe=d.forwardRef((e,t)=>{var{width:r,height:n}=e;return d.createElement(d.Fragment,null,d.createElement(Pw,{width:r,height:n}),d.createElement("div",$d({ref:t},e)))}),AWe=d.forwardRef((e,t)=>{var{width:r,height:n}=e;return Ml(r)||Ml(n)?d.createElement(kWe,$d({},e,{ref:t})):d.createElement(RWe,$d({},e,{ref:t}))});function MWe(e){return e===!0?NWe:AWe}var DWe=d.forwardRef((e,t)=>{var{children:r,className:n,height:a,onClick:i,onContextMenu:o,onDoubleClick:s,onMouseDown:l,onMouseEnter:c,onMouseLeave:u,onMouseMove:f,onMouseUp:m,onTouchEnd:h,onTouchMove:v,onTouchStart:p,style:g,width:y,responsive:x,dispatchTouchEvents:b=!0}=e,S=d.useRef(null),w=Ln(),[E,C]=d.useState(null),[O,_]=d.useState(null),T=$We(),I=ek(),N=(I==null?void 0:I.width)>0?I.width:y,D=(I==null?void 0:I.height)>0?I.height:a,k=d.useCallback(G=>{T(G),typeof t=="function"&&t(G),C(G),_(G),G!=null&&(S.current=G)},[T,t,C,_]),R=d.useCallback(G=>{w(WQ(G)),w($o({handler:i,reactEvent:G}))},[w,i]),A=d.useCallback(G=>{w(fT(G)),w($o({handler:c,reactEvent:G}))},[w,c]),j=d.useCallback(G=>{w(KY()),w($o({handler:u,reactEvent:G}))},[w,u]),F=d.useCallback(G=>{w(fT(G)),w($o({handler:f,reactEvent:G}))},[w,f]),M=d.useCallback(()=>{w(XQ())},[w]),V=d.useCallback(G=>{w(qQ(G.key))},[w]),K=d.useCallback(G=>{w($o({handler:o,reactEvent:G}))},[w,o]),L=d.useCallback(G=>{w($o({handler:s,reactEvent:G}))},[w,s]),B=d.useCallback(G=>{w($o({handler:l,reactEvent:G}))},[w,l]),W=d.useCallback(G=>{w($o({handler:m,reactEvent:G}))},[w,m]),H=d.useCallback(G=>{w($o({handler:p,reactEvent:G}))},[w,p]),U=d.useCallback(G=>{b&&w(QQ(G)),w($o({handler:v,reactEvent:G}))},[w,b,v]),X=d.useCallback(G=>{w($o({handler:h,reactEvent:G}))},[w,h]),Y=MWe(x);return d.createElement(fQ.Provider,{value:E},d.createElement(oG.Provider,{value:O},d.createElement(Y,{width:N??(g==null?void 0:g.width),height:D??(g==null?void 0:g.height),className:jn("recharts-wrapper",n),style:_We({position:"relative",cursor:"default",width:N,height:D},g),onClick:R,onContextMenu:K,onDoubleClick:L,onFocus:M,onKeyDown:V,onMouseDown:B,onMouseEnter:A,onMouseLeave:j,onMouseMove:F,onMouseUp:W,onTouchEnd:X,onTouchMove:U,onTouchStart:H,ref:k},d.createElement(IWe,null),r)))}),jWe=["width","height","responsive","children","className","style","compact","title","desc"];function FWe(e,t){if(e==null)return{};var r,n,a=LWe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{var{width:r,height:n,responsive:a,children:i,className:o,style:s,compact:l,title:c,desc:u}=e,f=FWe(e,jWe),m=C0(f);return l?d.createElement(d.Fragment,null,d.createElement(Pw,{width:r,height:n}),d.createElement(v5,{otherAttributes:m,title:c,desc:u},i)):d.createElement(DWe,{className:o,style:s,width:r,height:n,responsive:a??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},d.createElement(v5,{otherAttributes:m,title:c,desc:u,ref:t},d.createElement(NHe,null,i)))});function zWe(e){var t=Ln();return d.useEffect(()=>{t(cWe(e))},[t,e]),null}var HWe=["layout"];function mT(){return mT=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var r=Zo(e,QWe);return d.createElement(KWe,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:YWe,tooltipPayloadSearcher:Cze,categoricalChartProps:r,ref:t})});const ZWe=()=>{var O;const e=Xo(),[t,r]=d.useState(null),[n,a]=d.useState([]),[i,o]=d.useState([]),[s,l]=d.useState({page:1,limit:5,total:0}),[c,u]=d.useState(""),[f,m]=d.useState(null),[h,v]=d.useState(!1);d.useEffect(()=>{g()},[]);const p=(_,T,I)=>{const N={page:_,limit:5};(T==="completed"||T==="ongoing"||T==="notStarted")&&(N.status=T);const D=(I==null?void 0:I[0])??null,k=(I==null?void 0:I[1])??null;return D&&(N.endAtStart=D.startOf("day").toISOString()),k&&(N.endAtEnd=k.endOf("day").toISOString()),N},g=async()=>{try{v(!0);const[_,T,I]=await Promise.all([qs.getDashboardOverview(),x(),qs.getAllTaskStats(p(1,c,f))]);r(_.data),a(T),o(I.data||[]),I.pagination&&l({page:I.pagination.page,limit:I.pagination.limit,total:I.pagination.total})}catch(_){ct.error(_.message||"获取数据失败")}finally{v(!1)}},y=async(_,T={})=>{try{v(!0);const I=T.status??c,N=T.range??f,D=await qs.getAllTaskStats(p(_,I,N));o(D.data||[]),D.pagination&&l({page:D.pagination.page,limit:D.pagination.limit,total:D.pagination.total})}catch(I){ct.error(I.message||"获取考试任务统计失败")}finally{v(!1)}},x=async()=>(await bd.getAllRecords({page:1,limit:10})).data||[],b=((O=t==null?void 0:t.questionCategoryStats)==null?void 0:O.reduce((_,T)=>_+(Number(T.count)||0),0))||0,S=t?Number(t.taskStatusDistribution.completed||0)+Number(t.taskStatusDistribution.ongoing||0)+Number(t.taskStatusDistribution.notStarted||0):0,w=_=>{switch(_){case"不及格":return"red";case"合格":return"blue";case"优秀":return"green";default:return"default"}},E=[{title:"姓名",dataIndex:"userName",key:"userName"},{title:"手机号",dataIndex:"userPhone",key:"userPhone"},{title:"得分",dataIndex:"totalScore",key:"totalScore",render:_=>P.jsxs("span",{className:"font-semibold text-mars-600",children:[_," 分"]})},{title:"状态",dataIndex:"status",key:"status",render:_=>{const T=w(_);return P.jsx("span",{className:`px-2 py-1 rounded text-xs font-medium bg-${T}-100 text-${T}-800`,children:_})}},{title:"正确率",key:"correctRate",render:(_,T)=>{const I=T.totalCount>0?(T.correctCount/T.totalCount*100).toFixed(1):"0.0";return P.jsxs("span",{children:[I,"%"]})}},{title:"考试科目",dataIndex:"subjectName",key:"subjectName",render:_=>_||""},{title:"考试人数",dataIndex:"examCount",key:"examCount",render:_=>_||""},{title:"答题时间",dataIndex:"createdAt",key:"createdAt",render:_=>si(_)}],C=[{title:"状态",dataIndex:"status",key:"status"},{title:"任务名称",dataIndex:"taskName",key:"taskName"},{title:"科目",dataIndex:"subjectName",key:"subjectName"},{title:"指定考试人数",dataIndex:"totalUsers",key:"totalUsers"},{title:"考试进度",key:"progress",render:(_,T)=>{const I=new Date,N=hs(T.startAt)??new Date(T.startAt),k=(hs(T.endAt)??new Date(T.endAt)).getTime()-N.getTime(),R=I.getTime()-N.getTime(),A=k>0?Math.max(0,Math.min(100,Math.round(R/k*100))):0;return P.jsxs("div",{className:"flex items-center",children:[P.jsx("div",{className:"w-32 h-4 bg-gray-200 rounded-full mr-2 overflow-hidden",children:P.jsx("div",{className:"h-full bg-mars-500 rounded-full transition-all duration-300",style:{width:`${A}%`}})}),P.jsxs("span",{className:"font-semibold text-mars-600",children:[A,"%"]})]})}},{title:"考试人数统计",key:"statistics",render:(_,T)=>{const I=T.totalUsers,N=T.completedUsers,D=Math.round(N*(T.passRate/100)),k=Math.round(N*(T.excellentRate/100)),R=I-N,A=N-D,j=D-k,V=[{name:"优秀",value:k,color:"#008C8C"},{name:"合格",value:j,color:"#00A3A3"},{name:"不及格",value:A,color:"#ff4d4f"},{name:"未完成",value:R,color:"#f0f0f0"}].filter(L=>L.value>0),K=I>0?Math.round(N/I*100):0;return P.jsx("div",{className:"w-full h-20",children:P.jsx(Uq,{width:"100%",height:"100%",children:P.jsxs(eZ,{children:[P.jsxs(wR,{data:V,cx:"50%",cy:"50%",innerRadius:25,outerRadius:35,paddingAngle:2,dataKey:"value",children:[V.map((L,B)=>P.jsx(og,{fill:L.color,stroke:"none"},`cell-${B}`)),P.jsx(gR,{value:`${K}%`,position:"center",className:"text-sm font-bold fill-gray-700"})]}),P.jsx(vQ,{formatter:L=>[`${L} 人`,"数量"],contentStyle:{borderRadius:"8px",border:"none",boxShadow:"0 2px 8px rgba(0,0,0,0.15)",fontSize:"12px",padding:"8px"}}),P.jsx(rX,{layout:"vertical",verticalAlign:"middle",align:"right",iconType:"circle",iconSize:8,wrapperStyle:{fontSize:"12px"},formatter:(L,B)=>P.jsxs("span",{className:"text-xs text-gray-600 ml-1",children:[L," ",B.payload.value]})})]})})})}}];return P.jsxs("div",{children:[P.jsxs("div",{className:"flex justify-between items-center mb-6",children:[P.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"管理仪表盘"}),P.jsx(kt,{type:"primary",icon:P.jsx(eN,{}),onClick:g,loading:h,className:"bg-mars-500 hover:bg-mars-600",children:"刷新数据"})]}),P.jsxs(cs,{gutter:16,className:"mb-8",children:[P.jsx(Qr,{span:6,children:P.jsx(_r,{className:"shadow-sm hover:shadow-md transition-shadow cursor-pointer",onClick:()=>e("/admin/users"),styles:{body:{padding:16}},children:P.jsx(Ai,{title:"总用户数",value:(t==null?void 0:t.totalUsers)||0,prefix:P.jsx($N,{className:"text-mars-400"}),valueStyle:{color:"#008C8C"}})})}),P.jsx(Qr,{span:6,children:P.jsx(_r,{className:"shadow-sm hover:shadow-md transition-shadow cursor-pointer",onClick:()=>e("/admin/question-bank"),styles:{body:{padding:16}},children:P.jsx(Ai,{title:"题库统计",value:b,prefix:P.jsx(JK,{className:"text-mars-400"}),valueStyle:{color:"#008C8C"},suffix:"题"})})}),P.jsx(Qr,{span:6,children:P.jsx(_r,{className:"shadow-sm hover:shadow-md transition-shadow cursor-pointer",onClick:()=>e("/admin/subjects"),styles:{body:{padding:16}},children:P.jsx(Ai,{title:"考试科目",value:(t==null?void 0:t.activeSubjectCount)||0,prefix:P.jsx(wc,{className:"text-mars-400"}),valueStyle:{color:"#008C8C"},suffix:"个"})})}),P.jsx(Qr,{span:6,children:P.jsx(_r,{className:"shadow-sm hover:shadow-md transition-shadow cursor-pointer",onClick:()=>e("/admin/exam-tasks"),styles:{body:{padding:16}},children:P.jsx(Ai,{title:"考试任务",value:S,prefix:P.jsx(FS,{className:"text-mars-400"}),valueStyle:{color:"#008C8C"},suffix:"个"})})})]}),P.jsx(_r,{title:"考试任务统计",className:"mb-8 shadow-sm",extra:P.jsxs($n,{children:[P.jsx(ea,{style:{width:140},value:c,onChange:_=>{u(_),y(1,{status:_})},options:[{value:"",label:"全部状态"},{value:"completed",label:"已完成"},{value:"ongoing",label:"进行中"},{value:"notStarted",label:"未开始"}]}),P.jsx(wp.RangePicker,{value:f,placeholder:["结束时间开始","结束时间结束"],format:"YYYY-MM-DD",onChange:_=>{m(_),y(1,{range:_})},allowClear:!0})]}),children:P.jsx(oi,{columns:C,dataSource:i,rowKey:"taskId",loading:h,size:"small",pagination:{current:s.page,pageSize:5,total:s.total,showSizeChanger:!1,onChange:_=>y(_),size:"small"}})}),P.jsx(_r,{title:"最近答题记录",className:"shadow-sm",children:P.jsx(oi,{columns:E,dataSource:n,rowKey:"id",loading:h,pagination:!1,size:"small"})})]})};/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Hp={};Hp.version="0.18.5";var co=1200,_d=1252,JWe=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],_R={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},sC=function(e){JWe.indexOf(e)!=-1&&(_d=_R[0]=e)};function eVe(){sC(1252)}var Fo=function(e){co=e,sC(e)};function lC(){Fo(1200),eVe()}function ob(e){for(var t=[],r=0,n=e.length;r>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r)+(e.charCodeAt(2*r+1)<<8));return t.join("")}function tZ(e){for(var t=[],r=0;r>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return t.join("")}var zf=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return t==255&&r==254?tVe(e.slice(2)):t==254&&r==255?tZ(e.slice(2)):t==65279?e.slice(1):e},mh=function(t){return String.fromCharCode(t)},hT=function(t){return String.fromCharCode(t)},xr;function rVe(e){xr=e,Fo=function(t){co=t,sC(t)},zf=function(t){return t.charCodeAt(0)===255&&t.charCodeAt(1)===254?xr.utils.decode(1200,ob(t.slice(2))):t},mh=function(r){return co===1200?String.fromCharCode(r):xr.utils.decode(co,[r&255,r>>8])[0]},hT=function(r){return xr.utils.decode(_d,[r])[0]},NZ()}var Ec="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Wp(e){for(var t="",r=0,n=0,a=0,i=0,o=0,s=0,l=0,c=0;c>2,n=e.charCodeAt(c++),o=(r&3)<<4|n>>4,a=e.charCodeAt(c++),s=(n&15)<<2|a>>6,l=a&63,isNaN(n)?s=l=64:isNaN(a)&&(l=64),t+=Ec.charAt(i)+Ec.charAt(o)+Ec.charAt(s)+Ec.charAt(l);return t}function ho(e){var t="",r=0,n=0,a=0,i=0,o=0,s=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var c=0;c>4,t+=String.fromCharCode(r),s=Ec.indexOf(e.charAt(c++)),n=(o&15)<<4|s>>2,s!==64&&(t+=String.fromCharCode(n)),l=Ec.indexOf(e.charAt(c++)),a=(s&3)<<6|l,l!==64&&(t+=String.fromCharCode(a));return t}var dr=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),Yl=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,r){return r?new Buffer(t,r):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}();function Zc(e){return dr?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function b5(e){return dr?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var eo=function(t){return dr?Yl(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function lg(e){if(typeof ArrayBuffer>"u")return eo(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n!=e.length;++n)r[n]=e.charCodeAt(n)&255;return t}function xu(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var t=[],r=0;r"u")throw new Error("Unsupported");return new Uint8Array(e)}function OR(e){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return OR(new Uint8Array(e));for(var t=new Array(e.length),r=0;r>6&31,a[r++]=128|o&63;else if(o>=55296&&o<57344){o=(o&1023)+64;var s=e.charCodeAt(++i)&1023;a[r++]=240|o>>8&7,a[r++]=128|o>>2&63,a[r++]=128|s>>6&15|(o&3)<<4,a[r++]=128|s&63}else a[r++]=224|o>>12&15,a[r++]=128|o>>6&63,a[r++]=128|o&63;r>n&&(t.push(a.slice(0,r)),r=0,a=Zc(65535),n=65530)}return t.push(a.slice(0,r)),Ia(t)}var li=/\u0000/g,hh=/[\u0001-\u0006]/g;function n0(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function ps(e,t){var r=""+e;return r.length>=t?r:En("0",t-r.length)+r}function TR(e,t){var r=""+e;return r.length>=t?r:En(" ",t-r.length)+r}function sb(e,t){var r=""+e;return r.length>=t?r:r+En(" ",t-r.length)}function iVe(e,t){var r=""+Math.round(e);return r.length>=t?r:En("0",t-r.length)+r}function oVe(e,t){var r=""+e;return r.length>=t?r:En("0",t-r.length)+r}var S5=Math.pow(2,32);function yf(e,t){if(e>S5||e<-S5)return iVe(e,t);var r=Math.round(e);return oVe(r,t)}function lb(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var w5=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],PE=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function sVe(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var Kt={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},C5={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},lVe={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function cb(e,t,r){for(var n=e<0?-1:1,a=e*n,i=0,o=1,s=0,l=1,c=0,u=0,f=Math.floor(a);ct&&(c>t?(u=l,s=i):(u=c,s=o)),!r)return[0,n*s,u];var m=Math.floor(n*s/u);return[m,n*s-m*u,u]}function $c(e,t,r){if(e>2958465||e<0)return null;var n=e|0,a=Math.floor(86400*(e-n)),i=0,o=[],s={D:n,T:a,u:86400*(e-n)-a,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),t&&t.date1904&&(n+=1462),s.u>.9999&&(s.u=0,++a==86400&&(s.T=a=0,++n,++s.D)),n===60)o=r?[1317,10,29]:[1900,2,29],i=3;else if(n===0)o=r?[1317,8,29]:[1900,1,0],i=6;else{n>60&&--n;var l=new Date(1900,0,1);l.setDate(l.getDate()+n-1),o=[l.getFullYear(),l.getMonth()+1,l.getDate()],i=l.getDay(),n<60&&(i=(i+6)%7),r&&(i=hVe(l,o))}return s.y=o[0],s.m=o[1],s.d=o[2],s.S=a%60,a=Math.floor(a/60),s.M=a%60,a=Math.floor(a/60),s.H=a,s.q=i,s}var rZ=new Date(1899,11,31,0,0,0),cVe=rZ.getTime(),uVe=new Date(1900,2,1,0,0,0);function nZ(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=uVe&&(r+=24*60*60*1e3),(r-(cVe+(e.getTimezoneOffset()-rZ.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function PR(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function dVe(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function fVe(e){var t=e<0?12:11,r=PR(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function mVe(e){var t=PR(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function Vp(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),r;return t>=-4&&t<=-1?r=e.toPrecision(10+t):Math.abs(t)<=9?r=fVe(e):t===10?r=e.toFixed(10).substr(0,12):r=mVe(e),PR(dVe(r.toUpperCase()))}function Od(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):Vp(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return po(14,nZ(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function hVe(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function pVe(e,t,r,n){var a="",i=0,o=0,s=r.y,l,c=0;switch(e){case 98:s=r.y+543;case 121:switch(t.length){case 1:case 2:l=s%100,c=2;break;default:l=s%1e4,c=4;break}break;case 109:switch(t.length){case 1:case 2:l=r.m,c=t.length;break;case 3:return PE[r.m-1][1];case 5:return PE[r.m-1][0];default:return PE[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:l=r.d,c=t.length;break;case 3:return w5[r.q][0];default:return w5[r.q][1]}break;case 104:switch(t.length){case 1:case 2:l=1+(r.H+11)%12,c=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:l=r.H,c=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:l=r.M,c=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return r.u===0&&(t=="s"||t=="ss")?ps(r.S,t.length):(n>=2?o=n===3?1e3:100:o=n===1?10:1,i=Math.round(o*(r.S+r.u)),i>=60*o&&(i=0),t==="s"?i===0?"0":""+i/o:(a=ps(i,2+n),t==="ss"?a.substr(0,2):"."+a.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":l=r.D*24+r.H;break;case"[m]":case"[mm]":l=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":l=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}c=t.length===3?1:2;break;case 101:l=s,c=1;break}var u=c>0?ps(l,c):"";return u}function _c(e){var t=3;if(e.length<=t)return e;for(var r=e.length%t,n=e.substr(0,r);r!=e.length;r+=t)n+=(n.length>0?",":"")+e.substr(r,t);return n}var aZ=/%/g;function vVe(e,t,r){var n=t.replace(aZ,""),a=t.length-n.length;return $l(e,n,r*Math.pow(10,2*a))+En("%",a)}function gVe(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return $l(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function iZ(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+iZ(e,-t);var a=e.indexOf(".");a===-1&&(a=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%a;if(i<0&&(i+=a),r=(t/Math.pow(10,i)).toPrecision(n+1+(a+i)%a),r.indexOf("e")===-1){var o=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+i):r+="E+"+(o-i);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,a)+"."+r.substr(2+a),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,c,u){return l+c+u.substr(0,(a+i)%a)+"."+u.substr(i)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var oZ=/# (\?+)( ?)\/( ?)(\d+)/;function yVe(e,t,r){var n=parseInt(e[4],10),a=Math.round(t*n),i=Math.floor(a/n),o=a-i*n,s=n;return r+(i===0?"":""+i)+" "+(o===0?En(" ",e[1].length+1+e[4].length):TR(o,e[1].length)+e[2]+"/"+e[3]+ps(s,e[4].length))}function xVe(e,t,r){return r+(t===0?"":""+t)+En(" ",e[1].length+2+e[4].length)}var sZ=/^#*0*\.([0#]+)/,lZ=/\).*[0#]/,cZ=/\(###\) ###\\?-####/;function vi(e){for(var t="",r,n=0;n!=e.length;++n)switch(r=e.charCodeAt(n)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function E5(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function $5(e,t){var r=e-Math.floor(e),n=Math.pow(10,t);return t<(""+Math.round(r*n)).length?0:Math.round(r*n)}function bVe(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function SVe(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function _o(e,t,r){if(e.charCodeAt(0)===40&&!t.match(lZ)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?_o("n",n,r):"("+_o("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return gVe(e,t,r);if(t.indexOf("%")!==-1)return vVe(e,t,r);if(t.indexOf("E")!==-1)return iZ(t,r);if(t.charCodeAt(0)===36)return"$"+_o(e,t.substr(t.charAt(1)==" "?2:1),r);var a,i,o,s,l=Math.abs(r),c=r<0?"-":"";if(t.match(/^00+$/))return c+yf(l,t.length);if(t.match(/^[#?]+$/))return a=yf(r,0),a==="0"&&(a=""),a.length>t.length?a:vi(t.substr(0,t.length-a.length))+a;if(i=t.match(oZ))return yVe(i,l,c);if(t.match(/^#+0+$/))return c+yf(l,t.length-t.indexOf("0"));if(i=t.match(sZ))return a=E5(r,i[1].length).replace(/^([^\.]+)$/,"$1."+vi(i[1])).replace(/\.$/,"."+vi(i[1])).replace(/\.(\d*)$/,function(v,p){return"."+p+En("0",vi(i[1]).length-p.length)}),t.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return c+E5(l,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return c+_c(yf(l,0));if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+_o(e,t,-r):_c(""+(Math.floor(r)+bVe(r,i[1].length)))+"."+ps($5(r,i[1].length),i[1].length);if(i=t.match(/^#,#*,#0/))return _o(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=n0(_o(e,t.replace(/[\\-]/g,""),r)),o=0,n0(n0(t.replace(/\\/g,"")).replace(/[0#]/g,function(v){return o=0?zs("n",n,r):"("+zs("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return wVe(e,t,r);if(t.indexOf("%")!==-1)return CVe(e,t,r);if(t.indexOf("E")!==-1)return uZ(t,r);if(t.charCodeAt(0)===36)return"$"+zs(e,t.substr(t.charAt(1)==" "?2:1),r);var a,i,o,s,l=Math.abs(r),c=r<0?"-":"";if(t.match(/^00+$/))return c+ps(l,t.length);if(t.match(/^[#?]+$/))return a=""+r,r===0&&(a=""),a.length>t.length?a:vi(t.substr(0,t.length-a.length))+a;if(i=t.match(oZ))return xVe(i,l,c);if(t.match(/^#+0+$/))return c+ps(l,t.length-t.indexOf("0"));if(i=t.match(sZ))return a=(""+r).replace(/^([^\.]+)$/,"$1."+vi(i[1])).replace(/\.$/,"."+vi(i[1])),a=a.replace(/\.(\d*)$/,function(v,p){return"."+p+En("0",vi(i[1]).length-p.length)}),t.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return c+_c(""+l);if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+zs(e,t,-r):_c(""+r)+"."+En("0",i[1].length);if(i=t.match(/^#,#*,#0/))return zs(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=n0(zs(e,t.replace(/[\\-]/g,""),r)),o=0,n0(n0(t.replace(/\\/g,"")).replace(/[0#]/g,function(v){return o-1||r=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t-1;);break;case" ":++t;break;default:++t;break}return!1}function $Ve(e,t,r,n){for(var a=[],i="",o=0,s="",l="t",c,u,f,m="H";o=12?"P":"A"),p.t="T",m="h",o+=3):e.substr(o,5).toUpperCase()==="AM/PM"?(c!=null&&(p.v=c.H>=12?"PM":"AM"),p.t="T",o+=5,m="h"):e.substr(o,5).toUpperCase()==="上午/下午"?(c!=null&&(p.v=c.H>=12?"下午":"上午"),p.t="T",o+=5,m="h"):(p.t="t",++o),c==null&&p.t==="T")return"";a[a.length]=p,l=s;break;case"[":for(i=s;e.charAt(o++)!=="]"&&o-1&&(i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$",qd(e)||(a[a.length]={t:"t",v:i}));break;case".":if(c!=null){for(i=s;++o-1;)i+=s;a[a.length]={t:"n",v:i};break;case"?":for(i=s;e.charAt(++o)===s;)i+=s;a[a.length]={t:s,v:i},l=s;break;case"*":++o,(e.charAt(o)==" "||e.charAt(o)=="*")&&++o;break;case"(":case")":a[a.length]={t:n===1?"t":s,v:s},++o;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(i=s;o-1;)i+=e.charAt(o);a[a.length]={t:"D",v:i};break;case" ":a[a.length]={t:s,v:s},++o;break;case"$":a[a.length]={t:"t",v:"$"},++o;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(s)===-1)throw new Error("unrecognized character "+s+" in "+e);a[a.length]={t:"t",v:s},++o;break}var g=0,y=0,x;for(o=a.length-1,l="t";o>=0;--o)switch(a[o].t){case"h":case"H":a[o].t=m,l="h",g<1&&(g=1);break;case"s":(x=a[o].v.match(/\.0+$/))&&(y=Math.max(y,x[0].length-1)),g<3&&(g=3);case"d":case"y":case"M":case"e":l=a[o].t;break;case"m":l==="s"&&(a[o].t="M",g<2&&(g=2));break;case"X":break;case"Z":g<1&&a[o].v.match(/[Hh]/)&&(g=1),g<2&&a[o].v.match(/[Mm]/)&&(g=2),g<3&&a[o].v.match(/[Ss]/)&&(g=3)}switch(g){case 0:break;case 1:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M),c.M>=60&&(c.M=0,++c.H);break;case 2:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M);break}var b="",S;for(o=0;o0){b.charCodeAt(0)==40?(E=t<0&&b.charCodeAt(0)===45?-t:t,C=$l("n",b,E)):(E=t<0&&n>1?-t:t,C=$l("n",b,E),E<0&&a[0]&&a[0].t=="t"&&(C=C.substr(1),a[0].v="-"+a[0].v)),S=C.length-1;var O=a.length;for(o=0;o-1){O=o;break}var _=a.length;if(O===a.length&&C.indexOf("E")===-1){for(o=a.length-1;o>=0;--o)a[o]==null||"n?".indexOf(a[o].t)===-1||(S>=a[o].v.length-1?(S-=a[o].v.length,a[o].v=C.substr(S+1,a[o].v.length)):S<0?a[o].v="":(a[o].v=C.substr(0,S+1),S=-1),a[o].t="t",_=o);S>=0&&_=0;--o)if(!(a[o]==null||"n?".indexOf(a[o].t)===-1)){for(u=a[o].v.indexOf(".")>-1&&o===O?a[o].v.indexOf(".")-1:a[o].v.length-1,w=a[o].v.substr(u+1);u>=0;--u)S>=0&&(a[o].v.charAt(u)==="0"||a[o].v.charAt(u)==="#")&&(w=C.charAt(S--)+w);a[o].v=w,a[o].t="t",_=o}for(S>=0&&_-1&&o===O?a[o].v.indexOf(".")+1:0,w=a[o].v.substr(0,u);u-1&&(E=n>1&&t<0&&o>0&&a[o-1].v==="-"?-t:t,a[o].v=$l(a[o].t,a[o].v,E),a[o].t="t");var T="";for(o=0;o!==a.length;++o)a[o]!=null&&(T+=a[o].v);return T}var _5=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function O5(e,t){if(t==null)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0;break}return!1}function _Ve(e,t){var r=EVe(e),n=r.length,a=r[n-1].indexOf("@");if(n<4&&a>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof t!="number")return[4,r.length===4||a>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=a>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=a>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=a>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var i=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,i];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var o=r[0].match(_5),s=r[1].match(_5);return O5(t,o)?[n,r[0]]:O5(t,s)?[n,r[1]]:[n,r[o!=null&&s!=null?2:1]]}return[n,i]}function po(e,t,r){r==null&&(r={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&r.dateNF?n=r.dateNF:n=e;break;case"number":e==14&&r.dateNF?n=r.dateNF:n=(r.table!=null?r.table:Kt)[e],n==null&&(n=r.table&&r.table[C5[e]]||Kt[C5[e]]),n==null&&(n=lVe[e]||"General");break}if(lb(n,0))return Od(t,r);t instanceof Date&&(t=nZ(t,r.date1904));var a=_Ve(n,t);if(lb(a[1]))return Od(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return $Ve(a[1],t,r,a[0])}function el(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(Kt[r]==null){t<0&&(t=r);continue}if(Kt[r]==e){t=r;break}}t<0&&(t=391)}return Kt[t]=e,t}function cg(e){for(var t=0;t!=392;++t)e[t]!==void 0&&el(e[t],t)}function Cm(){Kt=sVe()}var fZ={format:po,load:el,_table:Kt,load_table:cg,parse_date_code:$c,is_date:qd,get_table:function(){return fZ._table=Kt}},OVe={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},mZ=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function TVe(e){var t=typeof e=="number"?Kt[e]:e;return t=t.replace(mZ,"(\\d+)"),new RegExp("^"+t+"$")}function PVe(e,t,r){var n=-1,a=-1,i=-1,o=-1,s=-1,l=-1;(t.match(mZ)||[]).forEach(function(f,m){var h=parseInt(r[m+1],10);switch(f.toLowerCase().charAt(0)){case"y":n=h;break;case"d":i=h;break;case"h":o=h;break;case"s":l=h;break;case"m":o>=0?s=h:a=h;break}}),l>=0&&s==-1&&a>=0&&(s=a,a=-1);var c=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(a>=1?a:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);c.length==7&&(c="0"+c),c.length==8&&(c="20"+c);var u=("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return o==-1&&s==-1&&l==-1?c:n==-1&&a==-1&&i==-1?u:c+"T"+u}var IVe=function(){var e={};e.version="1.2.0";function t(){for(var C=0,O=new Array(256),_=0;_!=256;++_)C=_,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,O[_]=C;return typeof Int32Array<"u"?new Int32Array(O):O}var r=t();function n(C){var O=0,_=0,T=0,I=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(T=0;T!=256;++T)I[T]=C[T];for(T=0;T!=256;++T)for(_=C[T],O=256+T;O<4096;O+=256)_=I[O]=_>>>8^C[_&255];var N=[];for(T=1;T!=16;++T)N[T-1]=typeof Int32Array<"u"?I.subarray(T*256,T*256+256):I.slice(T*256,T*256+256);return N}var a=n(r),i=a[0],o=a[1],s=a[2],l=a[3],c=a[4],u=a[5],f=a[6],m=a[7],h=a[8],v=a[9],p=a[10],g=a[11],y=a[12],x=a[13],b=a[14];function S(C,O){for(var _=O^-1,T=0,I=C.length;T>>8^r[(_^C.charCodeAt(T++))&255];return~_}function w(C,O){for(var _=O^-1,T=C.length-15,I=0;I>8&255]^y[C[I++]^_>>16&255]^g[C[I++]^_>>>24]^p[C[I++]]^v[C[I++]]^h[C[I++]]^m[C[I++]]^f[C[I++]]^u[C[I++]]^c[C[I++]]^l[C[I++]]^s[C[I++]]^o[C[I++]]^i[C[I++]]^r[C[I++]];for(T+=15;I>>8^r[(_^C[I++])&255];return~_}function E(C,O){for(var _=O^-1,T=0,I=C.length,N=0,D=0;T>>8^r[(_^N)&255]:N<2048?(_=_>>>8^r[(_^(192|N>>6&31))&255],_=_>>>8^r[(_^(128|N&63))&255]):N>=55296&&N<57344?(N=(N&1023)+64,D=C.charCodeAt(T++)&1023,_=_>>>8^r[(_^(240|N>>8&7))&255],_=_>>>8^r[(_^(128|N>>2&63))&255],_=_>>>8^r[(_^(128|D>>6&15|(N&3)<<4))&255],_=_>>>8^r[(_^(128|D&63))&255]):(_=_>>>8^r[(_^(224|N>>12&15))&255],_=_>>>8^r[(_^(128|N>>6&63))&255],_=_>>>8^r[(_^(128|N&63))&255]);return~_}return e.table=r,e.bstr=S,e.buf=w,e.str=E,e}(),Vt=function(){var t={};t.version="1.2.1";function r(Z,ue){for(var le=Z.split("/"),ie=ue.split("/"),oe=0,de=0,Ce=Math.min(le.length,ie.length);oe>>1,Z.write_shift(2,le);var ie=ue.getFullYear()-1980;ie=ie<<4|ue.getMonth()+1,ie=ie<<5|ue.getDate(),Z.write_shift(2,ie)}function o(Z){var ue=Z.read_shift(2)&65535,le=Z.read_shift(2)&65535,ie=new Date,oe=le&31;le>>>=5;var de=le&15;le>>>=4,ie.setMilliseconds(0),ie.setFullYear(le+1980),ie.setMonth(de-1),ie.setDate(oe);var Ce=ue&31;ue>>>=5;var Ae=ue&63;return ue>>>=6,ie.setHours(ue),ie.setMinutes(Ae),ie.setSeconds(Ce<<1),ie}function s(Z){Wa(Z,0);for(var ue={},le=0;Z.l<=Z.length-4;){var ie=Z.read_shift(2),oe=Z.read_shift(2),de=Z.l+oe,Ce={};switch(ie){case 21589:le=Z.read_shift(1),le&1&&(Ce.mtime=Z.read_shift(4)),oe>5&&(le&2&&(Ce.atime=Z.read_shift(4)),le&4&&(Ce.ctime=Z.read_shift(4))),Ce.mtime&&(Ce.mt=new Date(Ce.mtime*1e3));break}Z.l=de,ue[ie]=Ce}return ue}var l;function c(){return l||(l={})}function u(Z,ue){if(Z[0]==80&&Z[1]==75)return at(Z,ue);if((Z[0]|32)==109&&(Z[1]|32)==105)return ht(Z,ue);if(Z.length<512)throw new Error("CFB file size "+Z.length+" < 512");var le=3,ie=512,oe=0,de=0,Ce=0,Ae=0,Ee=0,Ie=[],Pe=Z.slice(0,512);Wa(Pe,0);var Xe=f(Pe);switch(le=Xe[0],le){case 3:ie=512;break;case 4:ie=4096;break;case 0:if(Xe[1]==0)return at(Z,ue);default:throw new Error("Major Version: Expected 3 or 4 saw "+le)}ie!==512&&(Pe=Z.slice(0,ie),Wa(Pe,28));var ke=Z.slice(0,ie);m(Pe,le);var ze=Pe.read_shift(4,"i");if(le===3&&ze!==0)throw new Error("# Directory Sectors: Expected 0 saw "+ze);Pe.l+=4,Ce=Pe.read_shift(4,"i"),Pe.l+=4,Pe.chk("00100000","Mini Stream Cutoff Size: "),Ae=Pe.read_shift(4,"i"),oe=Pe.read_shift(4,"i"),Ee=Pe.read_shift(4,"i"),de=Pe.read_shift(4,"i");for(var He=-1,Ve=0;Ve<109&&(He=Pe.read_shift(4,"i"),!(He<0));++Ve)Ie[Ve]=He;var et=h(Z,ie);g(Ee,de,et,ie,Ie);var ot=x(et,Ce,Ie,ie);ot[Ce].name="!Directory",oe>0&&Ae!==D&&(ot[Ae].name="!MiniFAT"),ot[Ie[0]].name="!FAT",ot.fat_addrs=Ie,ot.ssz=ie;var wt={},Lt=[],pt=[],Ot=[];b(Ce,ot,et,Lt,oe,wt,pt,Ae),v(pt,Ot,Lt),Lt.shift();var zt={FileIndex:pt,FullPaths:Ot};return ue&&ue.raw&&(zt.raw={header:ke,sectors:et}),zt}function f(Z){if(Z[Z.l]==80&&Z[Z.l+1]==75)return[0,0];Z.chk(k,"Header Signature: "),Z.l+=16;var ue=Z.read_shift(2,"u");return[Z.read_shift(2,"u"),ue]}function m(Z,ue){var le=9;switch(Z.l+=2,le=Z.read_shift(2)){case 9:if(ue!=3)throw new Error("Sector Shift: Expected 9 saw "+le);break;case 12:if(ue!=4)throw new Error("Sector Shift: Expected 12 saw "+le);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+le)}Z.chk("0600","Mini Sector Shift: "),Z.chk("000000000000","Reserved: ")}function h(Z,ue){for(var le=Math.ceil(Z.length/ue)-1,ie=[],oe=1;oe0&&Ce>=0;)de.push(ue.slice(Ce*N,Ce*N+N)),oe-=N,Ce=Au(le,Ce*4);return de.length===0?Je(0):Ia(de).slice(0,Z.size)}function g(Z,ue,le,ie,oe){var de=D;if(Z===D){if(ue!==0)throw new Error("DIFAT chain shorter than expected")}else if(Z!==-1){var Ce=le[Z],Ae=(ie>>>2)-1;if(!Ce)return;for(var Ee=0;Ee=0;){oe[Ee]=!0,de[de.length]=Ee,Ce.push(Z[Ee]);var Pe=le[Math.floor(Ee*4/ie)];if(Ie=Ee*4&Ae,ie<4+Ie)throw new Error("FAT boundary crossed: "+Ee+" 4 "+ie);if(!Z[Pe])break;Ee=Au(Z[Pe],Ie)}return{nodes:de,data:L5([Ce])}}function x(Z,ue,le,ie){var oe=Z.length,de=[],Ce=[],Ae=[],Ee=[],Ie=ie-1,Pe=0,Xe=0,ke=0,ze=0;for(Pe=0;Pe=oe&&(ke-=oe),!Ce[ke]){Ee=[];var He=[];for(Xe=ke;Xe>=0;){He[Xe]=!0,Ce[Xe]=!0,Ae[Ae.length]=Xe,Ee.push(Z[Xe]);var Ve=le[Math.floor(Xe*4/ie)];if(ze=Xe*4&Ie,ie<4+ze)throw new Error("FAT boundary crossed: "+Xe+" 4 "+ie);if(!Z[Ve]||(Xe=Au(Z[Ve],ze),He[Xe]))break}de[ke]={nodes:Ae,data:L5([Ee])}}return de}function b(Z,ue,le,ie,oe,de,Ce,Ae){for(var Ee=0,Ie=ie.length?2:0,Pe=ue[Z].data,Xe=0,ke=0,ze;Xe0&&Ee!==D&&(ue[Ee].name="!StreamData")):Ve.size>=4096?(Ve.storage="fat",ue[Ve.start]===void 0&&(ue[Ve.start]=y(le,Ve.start,ue.fat_addrs,ue.ssz)),ue[Ve.start].name=Ve.name,Ve.content=ue[Ve.start].data.slice(0,Ve.size)):(Ve.storage="minifat",Ve.size<0?Ve.size=0:Ee!==D&&Ve.start!==D&&ue[Ee]&&(Ve.content=p(Ve,ue[Ee].data,(ue[Ae]||{}).data))),Ve.content&&Wa(Ve.content,0),de[ze]=Ve,Ce.push(Ve)}}function S(Z,ue){return new Date((Pa(Z,ue+4)/1e7*Math.pow(2,32)+Pa(Z,ue)/1e7-11644473600)*1e3)}function w(Z,ue){return c(),u(l.readFileSync(Z),ue)}function E(Z,ue){var le=ue&&ue.type;switch(le||dr&&Buffer.isBuffer(Z)&&(le="buffer"),le||"base64"){case"file":return w(Z,ue);case"base64":return u(eo(ho(Z)),ue);case"binary":return u(eo(Z),ue)}return u(Z,ue)}function C(Z,ue){var le=ue||{},ie=le.root||"Root Entry";if(Z.FullPaths||(Z.FullPaths=[]),Z.FileIndex||(Z.FileIndex=[]),Z.FullPaths.length!==Z.FileIndex.length)throw new Error("inconsistent CFB structure");Z.FullPaths.length===0&&(Z.FullPaths[0]=ie+"/",Z.FileIndex[0]={name:ie,type:5}),le.CLSID&&(Z.FileIndex[0].clsid=le.CLSID),O(Z)}function O(Z){var ue="Sh33tJ5";if(!Vt.find(Z,"/"+ue)){var le=Je(4);le[0]=55,le[1]=le[3]=50,le[2]=54,Z.FileIndex.push({name:ue,type:2,content:le,size:4,L:69,R:69,C:69}),Z.FullPaths.push(Z.FullPaths[0]+ue),_(Z)}}function _(Z,ue){C(Z);for(var le=!1,ie=!1,oe=Z.FullPaths.length-1;oe>=0;--oe){var de=Z.FileIndex[oe];switch(de.type){case 0:ie?le=!0:(Z.FileIndex.pop(),Z.FullPaths.pop());break;case 1:case 2:case 5:ie=!0,isNaN(de.R*de.L*de.C)&&(le=!0),de.R>-1&&de.L>-1&&de.R==de.L&&(le=!0);break;default:le=!0;break}}if(!(!le&&!ue)){var Ce=new Date(1987,1,19),Ae=0,Ee=Object.create?Object.create(null):{},Ie=[];for(oe=0;oe1?1:-1,Xe.size=0,Xe.type=5;else if(ke.slice(-1)=="/"){for(Ae=oe+1;Ae=Ie.length?-1:Ae,Ae=oe+1;Ae=Ie.length?-1:Ae,Xe.type=1}else n(Z.FullPaths[oe+1]||"")==n(ke)&&(Xe.R=oe+1),Xe.type=2}}}function T(Z,ue){var le=ue||{};if(le.fileType=="mad")return St(Z,le);switch(_(Z),le.fileType){case"zip":return tt(Z,le)}var ie=function(ze){for(var He=0,Ve=0,et=0;et0&&(wt<4096?He+=wt+63>>6:Ve+=wt+511>>9)}}for(var Lt=ze.FullPaths.length+3>>2,pt=He+7>>3,Ot=He+127>>7,zt=pt+Ve+Lt+Ot,pr=zt+127>>7,Ir=pr<=109?0:Math.ceil((pr-109)/127);zt+pr+Ir+127>>7>pr;)Ir=++pr<=109?0:Math.ceil((pr-109)/127);var Pr=[1,Ir,pr,Ot,Lt,Ve,He,0];return ze.FileIndex[0].size=He<<6,Pr[7]=(ze.FileIndex[0].start=Pr[0]+Pr[1]+Pr[2]+Pr[3]+Pr[4]+Pr[5])+(Pr[6]+7>>3),Pr}(Z),oe=Je(ie[7]<<9),de=0,Ce=0;{for(de=0;de<8;++de)oe.write_shift(1,R[de]);for(de=0;de<8;++de)oe.write_shift(2,0);for(oe.write_shift(2,62),oe.write_shift(2,3),oe.write_shift(2,65534),oe.write_shift(2,9),oe.write_shift(2,6),de=0;de<3;++de)oe.write_shift(2,0);for(oe.write_shift(4,0),oe.write_shift(4,ie[2]),oe.write_shift(4,ie[0]+ie[1]+ie[2]+ie[3]-1),oe.write_shift(4,0),oe.write_shift(4,4096),oe.write_shift(4,ie[3]?ie[0]+ie[1]+ie[2]-1:D),oe.write_shift(4,ie[3]),oe.write_shift(-4,ie[1]?ie[0]-1:D),oe.write_shift(4,ie[1]),de=0;de<109;++de)oe.write_shift(-4,de>9)));for(Ae(ie[6]+7>>3);oe.l&511;)oe.write_shift(-4,j.ENDOFCHAIN);for(Ce=de=0,Ee=0;Ee=4096)&&(Pe.start=Ce,Ae(Ie+63>>6)));for(;oe.l&511;)oe.write_shift(-4,j.ENDOFCHAIN);for(de=0;de=4096)if(oe.l=Pe.start+1<<9,dr&&Buffer.isBuffer(Pe.content))Pe.content.copy(oe,oe.l,0,Pe.size),oe.l+=Pe.size+511&-512;else{for(Ee=0;Ee0&&Pe.size<4096)if(dr&&Buffer.isBuffer(Pe.content))Pe.content.copy(oe,oe.l,0,Pe.size),oe.l+=Pe.size+63&-64;else{for(Ee=0;Ee>16|ue>>8|ue)&255}for(var G=typeof Uint8Array<"u",Q=G?new Uint8Array(256):[],J=0;J<256;++J)Q[J]=Y(J);function z(Z,ue){var le=Q[Z&255];return ue<=8?le>>>8-ue:(le=le<<8|Q[Z>>8&255],ue<=16?le>>>16-ue:(le=le<<8|Q[Z>>16&255],le>>>24-ue))}function fe(Z,ue){var le=ue&7,ie=ue>>>3;return(Z[ie]|(le<=6?0:Z[ie+1]<<8))>>>le&3}function te(Z,ue){var le=ue&7,ie=ue>>>3;return(Z[ie]|(le<=5?0:Z[ie+1]<<8))>>>le&7}function re(Z,ue){var le=ue&7,ie=ue>>>3;return(Z[ie]|(le<=4?0:Z[ie+1]<<8))>>>le&15}function q(Z,ue){var le=ue&7,ie=ue>>>3;return(Z[ie]|(le<=3?0:Z[ie+1]<<8))>>>le&31}function ne(Z,ue){var le=ue&7,ie=ue>>>3;return(Z[ie]|(le<=1?0:Z[ie+1]<<8))>>>le&127}function he(Z,ue,le){var ie=ue&7,oe=ue>>>3,de=(1<>>ie;return le<8-ie||(Ce|=Z[oe+1]<<8-ie,le<16-ie)||(Ce|=Z[oe+2]<<16-ie,le<24-ie)||(Ce|=Z[oe+3]<<24-ie),Ce&de}function xe(Z,ue,le){var ie=ue&7,oe=ue>>>3;return ie<=5?Z[oe]|=(le&7)<>8-ie),ue+3}function ye(Z,ue,le){var ie=ue&7,oe=ue>>>3;return le=(le&1)<>>3;return le<<=ie,Z[oe]|=le&255,le>>>=8,Z[oe+1]=le,ue+8}function be(Z,ue,le){var ie=ue&7,oe=ue>>>3;return le<<=ie,Z[oe]|=le&255,le>>>=8,Z[oe+1]=le&255,Z[oe+2]=le>>>8,ue+16}function _e(Z,ue){var le=Z.length,ie=2*le>ue?2*le:ue+5,oe=0;if(le>=ue)return Z;if(dr){var de=b5(ie);if(Z.copy)Z.copy(de);else for(;oe>ie-Xe,Ce=(1<=0;--Ce)ue[Ae|Ce<0;)Ee[Ee.l++]=Ae[Ie++]}return Ee.l}function Ce(Ae,Ee){for(var Ie=0,Pe=0,Xe=G?new Uint16Array(32768):[];Pe0;)Ee[Ee.l++]=Ae[Pe++];Ie=Ee.l*8;continue}Ie=xe(Ee,Ie,+(Pe+ke==Ae.length)+2);for(var ze=0;ke-- >0;){var He=Ae[Pe];ze=(ze<<5^He)&32767;var Ve=-1,et=0;if((Ve=Xe[ze])&&(Ve|=Pe&-32768,Ve>Pe&&(Ve-=32768),Ve2){He=oe[et],He<=22?Ie=pe(Ee,Ie,Q[He+1]>>1)-1:(pe(Ee,Ie,3),Ie+=5,pe(Ee,Ie,Q[He-23]>>5),Ie+=3);var ot=He<8?0:He-4>>2;ot>0&&(be(Ee,Ie,et-U[He]),Ie+=ot),He=ue[Pe-Ve],Ie=pe(Ee,Ie,Q[He]>>3),Ie-=3;var wt=He<4?0:He-2>>1;wt>0&&(be(Ee,Ie,Pe-Ve-X[He]),Ie+=wt);for(var Lt=0;Lt>8-He;for(var Ve=(1<<7-He)-1;Ve>=0;--Ve)je[ze|Ve<>>=3){case 16:for(de=3+fe(Z,ue),ue+=2,ze=et[et.length-1];de-- >0;)et.push(ze);break;case 17:for(de=3+te(Z,ue),ue+=3;de-- >0;)et.push(0);break;case 18:for(de=11+ne(Z,ue),ue+=7;de-- >0;)et.push(0);break;default:et.push(ze),Ee>>0,Ae=0,Ee=0;!(ie&1);){if(ie=te(Z,le),le+=3,ie>>>1)ie>>1==1?(Ae=9,Ee=5):(le=ge(Z,le),Ae=Oe,Ee=Me);else{le&7&&(le+=8-(le&7));var Ie=Z[le>>>3]|Z[(le>>>3)+1]<<8;if(le+=32,Ie>0)for(!ue&&Ce0;)oe[de++]=Z[le>>>3],le+=8;continue}for(;;){!ue&&Ce>>1==1?Fe[Pe]:Ne[Pe];if(le+=Xe&15,Xe>>>=4,!(Xe>>>8&255))oe[de++]=Xe;else{if(Xe==256)break;Xe-=257;var ke=Xe<8?0:Xe-4>>2;ke>5&&(ke=0);var ze=de+U[Xe];ke>0&&(ze+=he(Z,le,ke),le+=ke),Pe=he(Z,le,Ee),Xe=ie>>>1==1?nt[Pe]:we[Pe],le+=Xe&15,Xe>>>=4;var He=Xe<4?0:Xe-2>>1,Ve=X[Xe];for(He>0&&(Ve+=he(Z,le,He),le+=He),!ue&&Ce>>3]:[oe.slice(0,de),le+7>>>3]}function Re(Z,ue){var le=Z.slice(Z.l||0),ie=Se(le,ue);return Z.l+=ie[1],ie[0]}function We(Z,ue){if(Z)typeof console<"u"&&console.error(ue);else throw new Error(ue)}function at(Z,ue){var le=Z;Wa(le,0);var ie=[],oe=[],de={FileIndex:ie,FullPaths:oe};C(de,{root:ue.root});for(var Ce=le.length-4;(le[Ce]!=80||le[Ce+1]!=75||le[Ce+2]!=5||le[Ce+3]!=6)&&Ce>=0;)--Ce;le.l=Ce+4,le.l+=4;var Ae=le.read_shift(2);le.l+=6;var Ee=le.read_shift(4);for(le.l=Ee,Ce=0;Ce0&&(le=le.slice(0,le.length-1),le=le.slice(0,le.lastIndexOf("/")+1),de.slice(0,le.length)!=le););var Ce=(ie[1]||"").match(/boundary="(.*?)"/);if(!Ce)throw new Error("MAD cannot find boundary");var Ae="--"+(Ce[1]||""),Ee=[],Ie=[],Pe={FileIndex:Ee,FullPaths:Ie};C(Pe);var Xe,ke=0;for(oe=0;oe=32&&ze<128&&++Xe;var Ve=Xe>=ke*4/5;oe.push(ie),oe.push("Content-Location: "+(le.root||"file:///C:/SheetJS/")+Ce),oe.push("Content-Transfer-Encoding: "+(Ve?"quoted-printable":"base64")),oe.push("Content-Type: "+ft(Ae,Ce)),oe.push(""),oe.push(Ve?mt(Pe):lt(Pe))}return oe.push(ie+`--\r +`),oe.join(`\r +`)}function xt(Z){var ue={};return C(ue,Z),ue}function rt(Z,ue,le,ie){var oe=ie&&ie.unsafe;oe||C(Z);var de=!oe&&Vt.find(Z,ue);if(!de){var Ce=Z.FullPaths[0];ue.slice(0,Ce.length)==Ce?Ce=ue:(Ce.slice(-1)!="/"&&(Ce+="/"),Ce=(Ce+ue).replace("//","/")),de={name:a(ue),type:2},Z.FileIndex.push(de),Z.FullPaths.push(Ce),oe||Vt.utils.cfb_gc(Z)}return de.content=le,de.size=le?le.length:0,ie&&(ie.CLSID&&(de.clsid=ie.CLSID),ie.mt&&(de.mt=ie.mt),ie.ct&&(de.ct=ie.ct)),de}function Ye(Z,ue){C(Z);var le=Vt.find(Z,ue);if(le){for(var ie=0;ie3&&(n=!0),a[i].slice(a[i].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+a[i].slice(a[i].length-1));case"D":r*=24;case"H":r*=60;case"M":if(n)r*=60;else throw new Error("Unsupported ISO Duration Field: M")}t+=r*parseInt(a[i],10)}return t}var I5=new Date("2017-02-19T19:06:09.000Z"),pZ=isNaN(I5.getFullYear())?new Date("2/19/17"):I5,jVe=pZ.getFullYear()==2017;function rn(e,t){var r=new Date(e);if(jVe)return t>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):t<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(pZ.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var a=e.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+a[0],+a[1]-1,+a[2],+a[3]||0,+a[4]||0,+a[5]||0);return e.indexOf("Z")>-1&&(i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3)),i}function Td(e,t){if(dr&&Buffer.isBuffer(e)){if(t){if(e[0]==255&&e[1]==254)return Ys(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return Ys(tZ(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(t){if(e[0]==255&&e[1]==254)return Ys(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return Ys(new TextDecoder("utf-16be").decode(e.slice(2)))}var r={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(i){return r[i]||i})}catch{}for(var n=[],a=0;a!=e.length;++a)n.push(String.fromCharCode(e[a]));return n.join("")}function Hr(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=Hr(e[r]));return t}function En(e,t){for(var r="";r.length3&&FVe.indexOf(o)==-1)return r}else if(o.match(/[a-z]/))return r;return n<0||n>8099?r:(a>0||i>1)&&n!=101?t:e.match(/[^-0-9:,\/\\]/)?r:t}var LVe=function(){var e="abacaba".split(/(:?b)/i).length==5;return function(r,n,a){if(e||typeof n=="string")return r.split(n);for(var i=r.split(n),o=[i[0]],s=1;s\r +`,zVe=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,k5=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,HVe=/<[^>]*>/g,mi=Bn.match(k5)?k5:HVe,WVe=/<\w*:/,VVe=/<(\/?)\w+:/;function Zt(e,t,r){for(var n={},a=0,i=0;a!==e.length&&!((i=e.charCodeAt(a))===32||i===10||i===13);++a);if(t||(n[0]=e.slice(0,a)),a===e.length)return n;var o=e.match(zVe),s=0,l="",c=0,u="",f="",m=1;if(o)for(c=0;c!=o.length;++c){for(f=o[c],i=0;i!=f.length&&f.charCodeAt(i)!==61;++i);for(u=f.slice(0,i).trim();f.charCodeAt(i+1)==32;)++i;for(m=(a=f.charCodeAt(i+1))==34||a==39?1:0,l=f.slice(i+1+m,f.length-m),s=0;s!=u.length&&u.charCodeAt(s)!==58;++s);if(s===u.length)u.indexOf("_")>0&&(u=u.slice(0,u.indexOf("_"))),n[u]=l,r||(n[u.toLowerCase()]=l);else{var h=(s===5&&u.slice(0,5)==="xmlns"?"xmlns":"")+u.slice(s+1);if(n[h]&&u.slice(s-3,s)=="ext")continue;n[h]=l,r||(n[h.toLowerCase()]=l)}}return n}function ul(e){return e.replace(VVe,"<$1")}var bZ={""":'"',"'":"'",">":">","<":"<","&":"&"},kR=cC(bZ),Cr=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig,t=/_x([\da-fA-F]{4})_/ig;return function r(n){var a=n+"",i=a.indexOf("-1?16:10))||s}).replace(t,function(s,l){return String.fromCharCode(parseInt(l,16))});var o=a.indexOf("]]>");return r(a.slice(0,i))+a.slice(i+9,o)+r(a.slice(o+3))}}(),RR=/[&<>'"]/g,UVe=/[\u0000-\u0008\u000b-\u001f]/g;function Mr(e){var t=e+"";return t.replace(RR,function(r){return kR[r]}).replace(UVe,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function R5(e){return Mr(e).replace(/ /g,"_x0020_")}var SZ=/[\u0000-\u001f]/g;function AR(e){var t=e+"";return t.replace(RR,function(r){return kR[r]}).replace(/\n/g,"
").replace(SZ,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function KVe(e){var t=e+"";return t.replace(RR,function(r){return kR[r]}).replace(SZ,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}var A5=function(){var e=/&#(\d+);/g;function t(r,n){return String.fromCharCode(parseInt(n,10))}return function(n){return n.replace(e,t)}}();function GVe(e){return e.replace(/(\r\n|[\r\n])/g," ")}function Jr(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function IE(e){for(var t="",r=0,n=0,a=0,i=0,o=0,s=0;r191&&n<224){o=(n&31)<<6,o|=a&63,t+=String.fromCharCode(o);continue}if(i=e.charCodeAt(r++),n<240){t+=String.fromCharCode((n&15)<<12|(a&63)<<6|i&63);continue}o=e.charCodeAt(r++),s=((n&7)<<18|(a&63)<<12|(i&63)<<6|o&63)-65536,t+=String.fromCharCode(55296+(s>>>10&1023)),t+=String.fromCharCode(56320+(s&1023))}return t}function M5(e){var t=Zc(2*e.length),r,n,a=1,i=0,o=0,s;for(n=0;n>>10&1023),r=56320+(r&1023)),o!==0&&(t[i++]=o&255,t[i++]=o>>>8,o=0),t[i++]=r%256,t[i++]=r>>>8;return t.slice(0,i).toString("ucs2")}function D5(e){return Yl(e,"binary").toString("utf8")}var Py="foo bar baz☃🍣",Lr=dr&&(D5(Py)==IE(Py)&&D5||M5(Py)==IE(Py)&&M5)||IE,Ys=dr?function(e){return Yl(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,a=0;r>6))),t.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,a=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(a>>18&7))),t.push(String.fromCharCode(144+(a>>12&63))),t.push(String.fromCharCode(128+(a>>6&63))),t.push(String.fromCharCode(128+(a&63)));break;default:t.push(String.fromCharCode(224+(n>>12))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(n&63)))}return t.join("")},Up=function(){var e={};return function(r,n){var a=r+"|"+(n||"");return e[a]?e[a]:e[a]=new RegExp("<(?:\\w+:)?"+r+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)",n||"")}}(),wZ=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(r){for(var n=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+/g,` +`).replace(/<[^>]*>/g,""),a=0;a([\\s\\S]*?)","g")}}(),XVe=/<\/?(?:vt:)?variant>/g,YVe=/<(?:vt:)([^>]*)>([\s\S]*)"+t+""}function Kp(e){return Pn(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function Ct(e,t,r){return"<"+e+(r!=null?Kp(r):"")+(t!=null?(t.match(CZ)?' xml:space="preserve"':"")+">"+t+""}function pT(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function QVe(e,t){switch(typeof e){case"string":var r=Ct("vt:lpwstr",Mr(e));return t&&(r=r.replace(/"/g,"_x0022_")),r;case"number":return Ct((e|0)==e?"vt:i4":"vt:r8",Mr(String(e)));case"boolean":return Ct("vt:bool",e?"true":"false")}if(e instanceof Date)return Ct("vt:filetime",pT(e));throw new Error("Unable to serialize "+e)}function MR(e){if(dr&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e=="string")return e;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return Lr(xu(OR(e)));throw new Error("Bad input format: expected Buffer or string")}var Gp=/<(\/?)([^\s?>:\/]+)(?:[\s?:\/][^>]*)?>/mg,da={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Xd=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Zi={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function ZVe(e,t){for(var r=1-2*(e[t+7]>>>7),n=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),a=e[t+6]&15,i=5;i>=0;--i)a=a*256+e[t+i];return n==2047?a==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,a+=Math.pow(2,52)),r*Math.pow(2,n-52)*a)}function JVe(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,a=0,i=0,o=n?-t:t;isFinite(o)?o==0?a=i=0:(a=Math.floor(Math.log(o)/Math.LN2),i=o*Math.pow(2,52-a),a<=-1023&&(!isFinite(i)||i>4|n}var F5=function(e){for(var t=[],r=10240,n=0;n0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:Yl(t)})):F5(e)}:F5,B5=function(e,t,r){for(var n=[],a=t;a0?Em(e,t+4,t+4+r-1):""},DR=$Z,_Z=function(e,t){var r=Pa(e,t);return r>0?Em(e,t+4,t+4+r-1):""},jR=_Z,OZ=function(e,t){var r=2*Pa(e,t);return r>0?Em(e,t+4,t+4+r-1):""},FR=OZ,TZ=function(t,r){var n=Pa(t,r);return n>0?fC(t,r+4,r+4+n):""},LR=TZ,PZ=function(e,t){var r=Pa(e,t);return r>0?Em(e,t+4,t+4+r):""},BR=PZ,IZ=function(e,t){return ZVe(e,t)},db=IZ,zR=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};dr&&(DR=function(t,r){if(!Buffer.isBuffer(t))return $Z(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},jR=function(t,r){if(!Buffer.isBuffer(t))return _Z(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},FR=function(t,r){if(!Buffer.isBuffer(t))return OZ(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},LR=function(t,r){if(!Buffer.isBuffer(t))return TZ(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},BR=function(t,r){if(!Buffer.isBuffer(t))return PZ(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},db=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):IZ(t,r)},zR=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});function NZ(){fC=function(e,t,r){return xr.utils.decode(1200,e.slice(t,r)).replace(li,"")},Em=function(e,t,r){return xr.utils.decode(65001,e.slice(t,r))},DR=function(e,t){var r=Pa(e,t);return r>0?xr.utils.decode(_d,e.slice(t+4,t+4+r-1)):""},jR=function(e,t){var r=Pa(e,t);return r>0?xr.utils.decode(co,e.slice(t+4,t+4+r-1)):""},FR=function(e,t){var r=2*Pa(e,t);return r>0?xr.utils.decode(1200,e.slice(t+4,t+4+r-1)):""},LR=function(e,t){var r=Pa(e,t);return r>0?xr.utils.decode(1200,e.slice(t+4,t+4+r)):""},BR=function(e,t){var r=Pa(e,t);return r>0?xr.utils.decode(65001,e.slice(t+4,t+4+r)):""}}typeof xr<"u"&&NZ();var wf=function(e,t){return e[t]},Sl=function(e,t){return e[t+1]*256+e[t]},eUe=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},Pa=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Au=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},tUe=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Rh(e,t){var r="",n,a,i=[],o,s,l,c;switch(t){case"dbcs":if(c=this.l,dr&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(l=0;l0?Au:tUe)(this,this.l),this.l+=4,n):(a=Pa(this,this.l),this.l+=4,a);case 8:case-8:if(t==="f")return e==8?a=db(this,this.l):a=db([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,a;e=8;case 16:r=EZ(this,this.l,e);break}}return this.l+=e,r}var rUe=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},nUe=function(e,t,r){e[r]=t&255,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},aUe=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function iUe(e,t,r){var n=0,a=0;if(r==="dbcs"){for(a=0;a!=t.length;++a)aUe(this,t.charCodeAt(a),this.l+2*a);n=2*t.length}else if(r==="sbcs"){if(typeof xr<"u"&&_d==874)for(a=0;a!=t.length;++a){var i=xr.utils.encode(_d,t.charAt(a));this[this.l+a]=i[0]}else for(t=t.replace(/[^\x00-\x7F]/g,"_"),a=0;a!=t.length;++a)this[this.l+a]=t.charCodeAt(a)&255;n=t.length}else if(r==="hex"){for(;a>8}for(;this.l>>=8,this[this.l+1]=t&255;break;case 3:n=3,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255,t>>>=8,this[this.l+2]=t&255;break;case 4:n=4,rUe(this,t,this.l);break;case 8:if(n=8,r==="f"){JVe(this,t,this.l);break}case 16:break;case-4:n=4,nUe(this,t,this.l);break}return this.l+=n,this}function kZ(e,t){var r=EZ(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function Wa(e,t){e.l=t,e.read_shift=Rh,e.chk=kZ,e.write_shift=iUe}function di(e,t){e.l+=t}function Je(e){var t=Zc(e);return Wa(t,0),t}function Ql(e,t,r){if(e){var n,a,i;Wa(e,e.l||0);for(var o=e.length,s=0,l=0;e.ln.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&e.push(n),n=null)},i=function(c){return n&&c=128?1:0)+1,n>=128&&++i,n>=16384&&++i,n>=2097152&&++i;var o=e.next(i);a<=127?o.write_shift(1,a):(o.write_shift(1,(a&127)+128),o.write_shift(1,a>>7));for(var s=0;s!=4;++s)if(n>=128)o.write_shift(1,(n&127)+128),n>>=7;else{o.write_shift(1,n);break}n>0&&zR(r)&&e.push(r)}}function Ah(e,t,r){var n=Hr(e);if(t.s?(n.cRel&&(n.c+=t.s.c),n.rRel&&(n.r+=t.s.r)):(n.cRel&&(n.c+=t.c),n.rRel&&(n.r+=t.r)),!r||r.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function W5(e,t,r){var n=Hr(e);return n.s=Ah(n.s,t.s,r),n.e=Ah(n.e,t.s,r),n}function Mh(e,t){if(e.cRel&&e.c<0)for(e=Hr(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=Hr(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=Xt(e);return!e.cRel&&e.cRel!=null&&(r=lUe(r)),!e.rRel&&e.rRel!=null&&(r=oUe(r)),r}function NE(e,t){return e.s.r==0&&!e.s.rRel&&e.e.r==(t.biff>=12?1048575:t.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+tn(e.s.c)+":"+(e.e.cRel?"":"$")+tn(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+On(e.s.r)+":"+(e.e.rRel?"":"$")+On(e.e.r):Mh(e.s,t.biff)+":"+Mh(e.e,t.biff)}function HR(e){return parseInt(sUe(e),10)-1}function On(e){return""+(e+1)}function oUe(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function sUe(e){return e.replace(/\$(\d+)$/,"$1")}function WR(e){for(var t=cUe(e),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function tn(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function lUe(e){return e.replace(/^([A-Z])/,"$$$1")}function cUe(e){return e.replace(/^\$([A-Z])/,"$1")}function uUe(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function hn(e){for(var t=0,r=0,n=0;n=48&&a<=57?t=10*t+(a-48):a>=65&&a<=90&&(r=26*r+(a-64))}return{c:r-1,r:t-1}}function Xt(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function $i(e){var t=e.indexOf(":");return t==-1?{s:hn(e),e:hn(e)}:{s:hn(e.slice(0,t)),e:hn(e.slice(t+1))}}function ir(e,t){return typeof t>"u"||typeof t=="number"?ir(e.s,e.e):(typeof e!="string"&&(e=Xt(e)),typeof t!="string"&&(t=Xt(t)),e==t?e:e+":"+t)}function yr(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,a=0,i=e.length;for(r=0;n26);++n)r=26*r+a;for(t.s.c=--r,r=0;n9);++n)r=10*r+a;if(t.s.r=--r,n===i||a!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=i&&!((a=e.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(t.e.c=--r,r=0;n!=i&&!((a=e.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;return t.e.r=--r,t}function V5(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=po(e.z,r?ya(t):t)}catch{}try{return e.w=po((e.XF||{}).numFmtId||(r?14:0),r?ya(t):t)}catch{return""+t}}function ll(e,t,r){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),e.t=="e"?Zl[e.v]||e.v:t==null?V5(e,e.v):V5(e,t))}function bu(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function RZ(e,t,r){var n=r||{},a=e?Array.isArray(e):n.dense,i=e||(a?[]:{}),o=0,s=0;if(i&&n.origin!=null){if(typeof n.origin=="number")o=n.origin;else{var l=typeof n.origin=="string"?hn(n.origin):n.origin;o=l.r,s=l.c}i["!ref"]||(i["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var u=yr(i["!ref"]);c.s.c=u.s.c,c.s.r=u.s.r,c.e.c=Math.max(c.e.c,u.e.c),c.e.r=Math.max(c.e.r,u.e.r),o==-1&&(c.e.r=o=u.e.r+1)}for(var f=0;f!=t.length;++f)if(t[f]){if(!Array.isArray(t[f]))throw new Error("aoa_to_sheet expects an array of arrays");for(var m=0;m!=t[f].length;++m)if(!(typeof t[f][m]>"u")){var h={v:t[f][m]},v=o+f,p=s+m;if(c.s.r>v&&(c.s.r=v),c.s.c>p&&(c.s.c=p),c.e.r0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}function fUe(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function mUe(e,t){return t||(t=Je(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0),t}function VR(e,t){var r=e.l,n=e.read_shift(1),a=ci(e),i=[],o={t:a,h:a};if(n&1){for(var s=e.read_shift(4),l=0;l!=s;++l)i.push(fUe(e));o.r=i}else o.r=[{ich:0,ifnt:0}];return e.l=r+t,o}function hUe(e,t){var r=!1;return t==null&&(r=!0,t=Je(15+4*e.t.length)),t.write_shift(1,0),ka(e.t,t),r?t.slice(0,t.l):t}var pUe=VR;function vUe(e,t){var r=!1;return t==null&&(r=!0,t=Je(23+4*e.t.length)),t.write_shift(1,1),ka(e.t,t),t.write_shift(4,1),mUe({ich:0,ifnt:0},t),r?t.slice(0,t.l):t}function ts(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:r}}function Yd(e,t){return t==null&&(t=Je(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function Qd(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function Zd(e,t){return t==null&&(t=Je(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var gUe=ci,AZ=ka;function UR(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function fb(e,t){var r=!1;return t==null&&(r=!0,t=Je(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}var yUe=ci,vT=UR,KR=fb;function GR(e){var t=e.slice(e.l,e.l+4),r=t[0]&1,n=t[0]&2;e.l+=4;var a=n===0?db([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):Au(t,0)>>2;return r?a/100:a}function MZ(e,t){t==null&&(t=Je(4));var r=0,n=0,a=e*100;if(e==(e|0)&&e>=-(1<<29)&&e<1<<29?n=1:a==(a|0)&&a>=-(1<<29)&&a<1<<29&&(n=1,r=1),n)t.write_shift(-4,((r?a:e)<<2)+(r+2));else throw new Error("unsupported RkNumber "+e)}function DZ(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}function xUe(e,t){return t||(t=Je(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t}var Jd=DZ,_m=xUe;function ai(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Pd(e,t){return(t||Je(8)).write_shift(8,e,"f")}function bUe(e){var t={},r=e.read_shift(1),n=r>>>1,a=e.read_shift(1),i=e.read_shift(2,"i"),o=e.read_shift(1),s=e.read_shift(1),l=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=a;var c=rd[a];c&&(t.rgb=Xp(c));break;case 2:t.rgb=Xp([o,s,l]);break;case 3:t.theme=a;break}return i!=0&&(t.tint=i>0?i/32767:i/32768),t}function mb(e,t){if(t||(t=Je(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;e.index!=null?(t.write_shift(1,2),t.write_shift(1,e.index)):e.theme!=null?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t.write_shift(2,r),!e.rgb||e.theme!=null)t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);else{var n=e.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),t.write_shift(1,parseInt(n.slice(0,2),16)),t.write_shift(1,parseInt(n.slice(2,4),16)),t.write_shift(1,parseInt(n.slice(4,6),16)),t.write_shift(1,255)}return t}function SUe(e){var t=e.read_shift(1);e.l++;var r={fBold:t&1,fItalic:t&2,fUnderline:t&4,fStrikeout:t&8,fOutline:t&16,fShadow:t&32,fCondense:t&64,fExtend:t&128};return r}function wUe(e,t){t||(t=Je(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return t.write_shift(1,r),t.write_shift(1,0),t}function jZ(e,t){var r={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"},n=e.read_shift(4);switch(n){case 0:return"";case 4294967295:case 4294967294:return r[e.read_shift(4)]||""}if(n>400)throw new Error("Unsupported Clipboard: "+n.toString(16));return e.l-=4,e.read_shift(0,t==1?"lpstr":"lpwstr")}function CUe(e){return jZ(e,1)}function EUe(e){return jZ(e,2)}var qR=2,Ii=3,Iy=11,U5=12,hb=19,Ny=64,$Ue=65,_Ue=71,OUe=4108,TUe=4126,Oa=80,FZ=81,PUe=[Oa,FZ],gT={1:{n:"CodePage",t:qR},2:{n:"Category",t:Oa},3:{n:"PresentationFormat",t:Oa},4:{n:"ByteCount",t:Ii},5:{n:"LineCount",t:Ii},6:{n:"ParagraphCount",t:Ii},7:{n:"SlideCount",t:Ii},8:{n:"NoteCount",t:Ii},9:{n:"HiddenCount",t:Ii},10:{n:"MultimediaClipCount",t:Ii},11:{n:"ScaleCrop",t:Iy},12:{n:"HeadingPairs",t:OUe},13:{n:"TitlesOfParts",t:TUe},14:{n:"Manager",t:Oa},15:{n:"Company",t:Oa},16:{n:"LinksUpToDate",t:Iy},17:{n:"CharacterCount",t:Ii},19:{n:"SharedDoc",t:Iy},22:{n:"HyperlinksChanged",t:Iy},23:{n:"AppVersion",t:Ii,p:"version"},24:{n:"DigSig",t:$Ue},26:{n:"ContentType",t:Oa},27:{n:"ContentStatus",t:Oa},28:{n:"Language",t:Oa},29:{n:"Version",t:Oa},255:{},2147483648:{n:"Locale",t:hb},2147483651:{n:"Behavior",t:hb},1919054434:{}},yT={1:{n:"CodePage",t:qR},2:{n:"Title",t:Oa},3:{n:"Subject",t:Oa},4:{n:"Author",t:Oa},5:{n:"Keywords",t:Oa},6:{n:"Comments",t:Oa},7:{n:"Template",t:Oa},8:{n:"LastAuthor",t:Oa},9:{n:"RevNumber",t:Oa},10:{n:"EditTime",t:Ny},11:{n:"LastPrinted",t:Ny},12:{n:"CreatedDate",t:Ny},13:{n:"ModifiedDate",t:Ny},14:{n:"PageCount",t:Ii},15:{n:"WordCount",t:Ii},16:{n:"CharCount",t:Ii},17:{n:"Thumbnail",t:_Ue},18:{n:"Application",t:Oa},19:{n:"DocSecurity",t:Ii},255:{},2147483648:{n:"Locale",t:hb},2147483651:{n:"Behavior",t:hb},1919054434:{}},K5={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},IUe=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function NUe(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var kUe=NUe([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),rd=Hr(kUe),Zl={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},LZ={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},xT={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},ky={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function XR(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function RUe(e){var t=XR();if(!e||!e.match)return t;var r={};if((e.match(mi)||[]).forEach(function(n){var a=Zt(n);switch(a[0].replace(WVe,"<")){case"0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=r,delete t.calcchains,t}function BZ(e,t){var r=AVe(xT),n=[],a;n[n.length]=Bn,n[n.length]=Ct("Types",null,{xmlns:da.CT,"xmlns:xsd":da.xsd,"xmlns:xsi":da.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(l){return Ct("Default",null,{Extension:l[0],ContentType:l[1]})}));var i=function(l){e[l]&&e[l].length>0&&(a=e[l][0],n[n.length]=Ct("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:ky[l][t.bookType]||ky[l].xlsx}))},o=function(l){(e[l]||[]).forEach(function(c){n[n.length]=Ct("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:ky[l][t.bookType]||ky[l].xlsx})})},s=function(l){(e[l]||[]).forEach(function(c){n[n.length]=Ct("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:r[l][0]})})};return i("workbooks"),o("sheets"),o("charts"),s("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(s),s("vba"),s("comments"),s("threadedcomments"),s("drawings"),o("metadata"),s("people"),n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var hr={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function qp(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function Dh(e,t){var r={"!id":{}};if(!e)return r;t.charAt(0)!=="/"&&(t="/"+t);var n={};return(e.match(mi)||[]).forEach(function(a){var i=Zt(a);if(i[0]==="2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function Rr(e,t,r,n,a,i){if(a||(a={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,a.Id="rId"+t,a.Type=n,a.Target=r,i?a.TargetMode=i:[hr.HLINK,hr.XPATH,hr.XMISS].indexOf(a.Type)>-1&&(a.TargetMode="External"),e["!id"][a.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][a.Id]=a,e[("/"+a.Target).replace("//","/")]=a,t}var AUe="application/vnd.oasis.opendocument.spreadsheet";function MUe(e,t){for(var r=MR(e),n,a;n=Gp.exec(r);)switch(n[3]){case"manifest":break;case"file-entry":if(a=Zt(n[0],!1),a.path=="/"&&a.type!==AUe)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(t&&t.WTF)throw n}}function DUe(e){var t=[Bn];t.push(` +`),t.push(` +`);for(var r=0;r +`);return t.push(""),t.join("")}function G5(e,t,r){return[' +`,' +`,` +`].join("")}function jUe(e,t){return[' +`,' +`,` +`].join("")}function FUe(e){var t=[Bn];t.push(` +`);for(var r=0;r!=e.length;++r)t.push(G5(e[r][0],e[r][1])),t.push(jUe("",e[r][0]));return t.push(G5("","Document","pkg")),t.push(""),t.join("")}function zZ(){return'SheetJS '+Hp.version+""}var Bo=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],LUe=function(){for(var e=new Array(Bo.length),t=0;t]*>([\\s\\S]*?)")}return e}();function HZ(e){var t={};e=Lr(e);for(var r=0;r0&&(t[n[1]]=Cr(a[1])),n[2]==="date"&&t[n[1]]&&(t[n[1]]=rn(t[n[1]]))}return t}function kE(e,t,r,n,a){a[e]!=null||t==null||t===""||(a[e]=t,t=Mr(t),n[n.length]=r?Ct(e,t,r):Va(e,t))}function WZ(e,t){var r=t||{},n=[Bn,Ct("cp:coreProperties",null,{"xmlns:cp":da.CORE_PROPS,"xmlns:dc":da.dc,"xmlns:dcterms":da.dcterms,"xmlns:dcmitype":da.dcmitype,"xmlns:xsi":da.xsi})],a={};if(!e&&!r.Props)return n.join("");e&&(e.CreatedDate!=null&&kE("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:pT(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a),e.ModifiedDate!=null&&kE("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:pT(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a));for(var i=0;i!=Bo.length;++i){var o=Bo[i],s=r.Props&&r.Props[o[1]]!=null?r.Props[o[1]]:e?e[o[1]]:null;s===!0?s="1":s===!1?s="0":typeof s=="number"&&(s=String(s)),s!=null&&kE(o[0],s,null,n,a)}return n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var nd=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],VZ=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function UZ(e,t,r,n){var a=[];if(typeof e=="string")a=j5(e,n);else for(var i=0;i0)for(var c=0;c!==a.length;c+=2){switch(l=+a[c+1].v,a[c].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":r.Worksheets=l,r.SheetNames=o.slice(s,s+l);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":r.NamedRanges=l,r.DefinedNames=o.slice(s,s+l);break;case"Charts":case"Diagramme":r.Chartsheets=l,r.ChartNames=o.slice(s,s+l);break}s+=l}}function BUe(e,t,r){var n={};return t||(t={}),e=Lr(e),nd.forEach(function(a){var i=(e.match(Up(a[0]))||[])[1];switch(a[2]){case"string":i&&(t[a[1]]=Cr(i));break;case"bool":t[a[1]]=i==="true";break;case"raw":var o=e.match(new RegExp("<"+a[0]+"[^>]*>([\\s\\S]*?)"));o&&o.length>0&&(n[a[1]]=o[1]);break}}),n.HeadingPairs&&n.TitlesOfParts&&UZ(n.HeadingPairs,n.TitlesOfParts,t,r),t}function KZ(e){var t=[],r=Ct;return e||(e={}),e.Application="SheetJS",t[t.length]=Bn,t[t.length]=Ct("Properties",null,{xmlns:da.EXT_PROPS,"xmlns:vt":da.vt}),nd.forEach(function(n){if(e[n[1]]!==void 0){var a;switch(n[2]){case"string":a=Mr(String(e[n[1]]));break;case"bool":a=e[n[1]]?"true":"false";break}a!==void 0&&(t[t.length]=r(n[0],a))}}),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","Worksheets")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map(function(n){return""+Mr(n)+""}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}var zUe=/<[^>]+>[^<]*/g;function HUe(e,t){var r={},n="",a=e.match(zUe);if(a)for(var i=0;i!=a.length;++i){var o=a[i],s=Zt(o);switch(s[0]){case"":n=null;break;default:if(o.indexOf(""),c=l[0].slice(4),u=l[1];switch(c){case"lpstr":case"bstr":case"lpwstr":r[n]=Cr(u);break;case"bool":r[n]=Jr(u);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":r[n]=parseInt(u,10);break;case"r4":case"r8":case"decimal":r[n]=parseFloat(u);break;case"filetime":case"date":r[n]=rn(u);break;case"cy":case"error":r[n]=Cr(u);break;default:if(c.slice(-1)=="/")break;t.WTF&&typeof console<"u"&&console.warn("Unexpected",o,c,l)}}else if(o.slice(0,2)!=="2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}var bT={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"},RE;function WUe(e,t,r){RE||(RE=cC(bT)),t=RE[t]||t,e[t]=r}function VUe(e,t){var r=[];return Pn(bT).map(function(n){for(var a=0;a'+a.join("")+""}function YR(e){var t=e.read_shift(4),r=e.read_shift(4);return new Date((r/1e7*Math.pow(2,32)+t/1e7-11644473600)*1e3).toISOString().replace(/\.000/,"")}function KUe(e){var t=typeof e=="string"?new Date(Date.parse(e)):e,r=t.getTime()/1e3+11644473600,n=r%Math.pow(2,32),a=(r-n)/Math.pow(2,32);n*=1e7,a*=1e7;var i=n/Math.pow(2,32)|0;i>0&&(n=n%Math.pow(2,32),a+=i);var o=Je(8);return o.write_shift(4,n),o.write_shift(4,a),o}function qZ(e,t,r){var n=e.l,a=e.read_shift(0,"lpstr-cp");if(r)for(;e.l-n&3;)++e.l;return a}function XZ(e,t,r){var n=e.read_shift(0,"lpwstr");return r&&(e.l+=4-(n.length+1&3)&3),n}function YZ(e,t,r){return t===31?XZ(e):qZ(e,t,r)}function ST(e,t,r){return YZ(e,t,r===!1?0:4)}function GUe(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return YZ(e,t,0)}function qUe(e){for(var t=e.read_shift(4),r=[],n=0;n!=t;++n){var a=e.l;r[n]=e.read_shift(0,"lpwstr").replace(li,""),e.l-a&2&&(e.l+=2)}return r}function XUe(e){for(var t=e.read_shift(4),r=[],n=0;n!=t;++n)r[n]=e.read_shift(0,"lpstr-cp").replace(li,"");return r}function YUe(e){var t=e.l,r=pb(e,FZ);e[e.l]==0&&e[e.l+1]==0&&e.l-t&2&&(e.l+=2);var n=pb(e,Ii);return[r,n]}function QUe(e){for(var t=e.read_shift(4),r=[],n=0;n>2+1<<2),n}function QZ(e){var t=e.read_shift(4),r=e.slice(e.l,e.l+t);return e.l+=t,(t&3)>0&&(e.l+=4-(t&3)&3),r}function ZUe(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}function pb(e,t,r){var n=e.read_shift(2),a,i=r||{};if(e.l+=2,t!==U5&&n!==t&&PUe.indexOf(t)===-1&&!((t&65534)==4126&&(n&65534)==4126))throw new Error("Expected type "+t+" saw "+n);switch(t===U5?n:t){case 2:return a=e.read_shift(2,"i"),i.raw||(e.l+=2),a;case 3:return a=e.read_shift(4,"i"),a;case 11:return e.read_shift(4)!==0;case 19:return a=e.read_shift(4),a;case 30:return qZ(e,n,4).replace(li,"");case 31:return XZ(e);case 64:return YR(e);case 65:return QZ(e);case 71:return ZUe(e);case 80:return ST(e,n,!i.raw).replace(li,"");case 81:return GUe(e,n).replace(li,"");case 4108:return QUe(e);case 4126:case 4127:return n==4127?qUe(e):XUe(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+n)}}function X5(e,t){var r=Je(4),n=Je(4);switch(r.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,t);break;case 5:n=Je(8),n.write_shift(8,t,"f");break;case 11:n.write_shift(4,t?1:0);break;case 64:n=KUe(t);break;case 31:case 80:for(n=Je(4+2*(t.length+1)+(t.length%2?0:2)),n.write_shift(4,t.length+1),n.write_shift(0,t,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return Ia([r,n])}function Y5(e,t){var r=e.l,n=e.read_shift(4),a=e.read_shift(4),i=[],o=0,s=0,l=-1,c={};for(o=0;o!=a;++o){var u=e.read_shift(4),f=e.read_shift(4);i[o]=[u,f+r]}i.sort(function(x,b){return x[1]-b[1]});var m={};for(o=0;o!=a;++o){if(e.l!==i[o][1]){var h=!0;if(o>0&&t)switch(t[i[o-1][0]].t){case 2:e.l+2===i[o][1]&&(e.l+=2,h=!1);break;case 80:e.l<=i[o][1]&&(e.l=i[o][1],h=!1);break;case 4108:e.l<=i[o][1]&&(e.l=i[o][1],h=!1);break}if((!t||o==0)&&e.l<=i[o][1]&&(h=!1,e.l=i[o][1]),h)throw new Error("Read Error: Expected address "+i[o][1]+" at "+e.l+" :"+o)}if(t){var v=t[i[o][0]];if(m[v.n]=pb(e,v.t,{raw:!0}),v.p==="version"&&(m[v.n]=String(m[v.n]>>16)+"."+("0000"+String(m[v.n]&65535)).slice(-4)),v.n=="CodePage")switch(m[v.n]){case 0:m[v.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:Fo(s=m[v.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+m[v.n])}}else if(i[o][0]===1){if(s=m.CodePage=pb(e,qR),Fo(s),l!==-1){var p=e.l;e.l=i[l][1],c=q5(e,s),e.l=p}}else if(i[o][0]===0){if(s===0){l=o,e.l=i[o+1][1];continue}c=q5(e,s)}else{var g=c[i[o][0]],y;switch(e[e.l]){case 65:e.l+=4,y=QZ(e);break;case 30:e.l+=4,y=ST(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 31:e.l+=4,y=ST(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,y=e.read_shift(4,"i");break;case 19:e.l+=4,y=e.read_shift(4);break;case 5:e.l+=4,y=e.read_shift(8,"f");break;case 11:e.l+=4,y=Rn(e,4);break;case 64:e.l+=4,y=rn(YR(e));break;default:throw new Error("unparsed value: "+e[e.l])}m[g]=y}}return e.l=r+n,m}var ZZ=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function JUe(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function Q5(e,t,r){var n=Je(8),a=[],i=[],o=8,s=0,l=Je(8),c=Je(8);if(l.write_shift(4,2),l.write_shift(4,1200),c.write_shift(4,1),i.push(l),a.push(c),o+=8+l.length,!t){c=Je(8),c.write_shift(4,0),a.unshift(c);var u=[Je(4)];for(u[0].write_shift(4,e.length),s=0;s-1||VZ.indexOf(e[s][0])>-1)&&e[s][1]!=null){var m=e[s][1],h=0;if(t){h=+t[e[s][0]];var v=r[h];if(v.p=="version"&&typeof m=="string"){var p=m.split(".");m=(+p[0]<<16)+(+p[1]||0)}l=X5(v.t,m)}else{var g=JUe(m);g==-1&&(g=31,m=String(m)),l=X5(g,m)}i.push(l),c=Je(8),c.write_shift(4,t?h:2+s),a.push(c),o+=8+l.length}var y=8*(i.length+1);for(s=0;s=12?2:1),a="sbcs-cont",i=co;if(r&&r.biff>=8&&(co=1200),!r||r.biff==8){var o=e.read_shift(1);o&&(a="dbcs-cont")}else r.biff==12&&(a="wstr");r.biff>=2&&r.biff<=5&&(a="cpstr");var s=n?e.read_shift(n,a):"";return co=i,s}function nKe(e){var t=co;co=1200;var r=e.read_shift(2),n=e.read_shift(1),a=n&4,i=n&8,o=1+(n&1),s=0,l,c={};i&&(s=e.read_shift(2)),a&&(l=e.read_shift(4));var u=o==2?"dbcs-cont":"sbcs-cont",f=r===0?"":e.read_shift(r,u);return i&&(e.l+=4*s),a&&(e.l+=l),c.t=f,i||(c.raw=""+c.t+"",c.r=c.t),co=t,c}function aKe(e){var t=e.t||"",r=Je(3+0);r.write_shift(2,t.length),r.write_shift(1,1);var n=Je(2*t.length);n.write_shift(2*t.length,t,"utf16le");var a=[r,n];return Ia(a)}function Id(e,t,r){var n;if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}var a=e.read_shift(1);return a===0?n=e.read_shift(t,"sbcs-cont"):n=e.read_shift(t,"dbcs-cont"),n}function fg(e,t,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):Id(e,n,r)}function ef(e,t,r){if(r.biff>5)return fg(e,t,r);var n=e.read_shift(1);return n===0?(e.l++,""):e.read_shift(n,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function tJ(e,t,r){return r||(r=Je(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function iKe(e){var t=e.read_shift(1);e.l++;var r=e.read_shift(2);return e.l+=2,[t,r]}function oKe(e){var t=e.read_shift(4),r=e.l,n=!1;t>24&&(e.l+=t-24,e.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(n=!0),e.l=r);var a=e.read_shift((n?t-24:t)>>1,"utf16le").replace(li,"");return n&&(e.l+=24),a}function sKe(e){for(var t=e.read_shift(2),r="";t-- >0;)r+="../";var n=e.read_shift(0,"lpstr-ansi");if(e.l+=2,e.read_shift(2)!=57005)throw new Error("Bad FileMoniker");var a=e.read_shift(4);if(a===0)return r+n.replace(/\\/g,"/");var i=e.read_shift(4);if(e.read_shift(2)!=3)throw new Error("Bad FileMoniker");var o=e.read_shift(i>>1,"utf16le").replace(li,"");return r+o}function lKe(e,t){var r=e.read_shift(16);switch(r){case"e0c9ea79f9bace118c8200aa004ba90b":return oKe(e);case"0303000000000000c000000000000046":return sKe(e);default:throw new Error("Unsupported Moniker "+r)}}function Ry(e){var t=e.read_shift(4),r=t>0?e.read_shift(t,"utf16le").replace(li,""):"";return r}function eL(e,t){t||(t=Je(6+e.length*2)),t.write_shift(4,1+e.length);for(var r=0;r-1?31:23;switch(n.charAt(0)){case"#":i=28;break;case".":i&=-3;break}t.write_shift(4,2),t.write_shift(4,i);var o=[8,6815827,6619237,4849780,83];for(r=0;r-1?n.slice(0,a):n;for(t.write_shift(4,2*(s.length+1)),r=0;r-1?n.slice(a+1):"",t)}else{for(o="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r8?4:2,a=e.read_shift(n),i=e.read_shift(n,"i"),o=e.read_shift(n,"i");return[a,i,o]}function aJ(e){var t=e.read_shift(2),r=GR(e);return[t,r]}function hKe(e,t,r){e.l+=4,t-=4;var n=e.l+t,a=dg(e,t,r),i=e.read_shift(2);if(n-=e.l,i!==n)throw new Error("Malformed AddinUdf: padding = "+n+" != "+i);return e.l+=i,a}function mC(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),a=e.read_shift(2);return{s:{c:n,r:t},e:{c:a,r}}}function iJ(e,t){return t||(t=Je(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function oJ(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(1),a=e.read_shift(1);return{s:{c:n,r:t},e:{c:a,r}}}var pKe=oJ;function sJ(e){e.l+=4;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2);return e.l+=12,[r,t,n]}function vKe(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t}function gKe(e){var t={};return e.l+=4,e.cf=e.read_shift(2),t}function Ya(e){e.l+=2,e.l+=e.read_shift(2)}var yKe={0:Ya,4:Ya,5:Ya,6:Ya,7:gKe,8:Ya,9:Ya,10:Ya,11:Ya,12:Ya,13:vKe,14:Ya,15:Ya,16:Ya,17:Ya,18:Ya,19:Ya,20:Ya,21:sJ};function xKe(e,t){for(var r=e.l+t,n=[];e.l=2&&(r.dt=e.read_shift(2),e.l-=2),r.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+r.BIFFVer)}return e.read_shift(t),r}function QR(e,t,r){var n=1536,a=16;switch(r.bookType){case"biff8":break;case"biff5":n=1280,a=8;break;case"biff4":n=4,a=6;break;case"biff3":n=3,a=6;break;case"biff2":n=2,a=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var i=Je(a);return i.write_shift(2,n),i.write_shift(2,t),a>4&&i.write_shift(2,29282),a>6&&i.write_shift(2,1997),a>8&&(i.write_shift(2,49161),i.write_shift(2,1),i.write_shift(2,1798),i.write_shift(2,0)),i}function bKe(e,t){return t===0||e.read_shift(2),1200}function SKe(e,t,r){if(r.enc)return e.l+=t,"";var n=e.l,a=ef(e,0,r);return e.read_shift(t+n-e.l),a}function wKe(e,t){var r=!t||t.biff==8,n=Je(r?112:54);for(n.write_shift(t.biff==8?2:1,7),r&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(r?0:536870912));n.l=8?2:1,n=Je(8+r*e.name.length);n.write_shift(4,e.pos),n.write_shift(1,e.hs||0),n.write_shift(1,e.dt),n.write_shift(1,e.name.length),t.biff>=8&&n.write_shift(1,1),n.write_shift(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var a=n.slice(0,n.l);return a.l=n.l,a}function _Ke(e,t){for(var r=e.l+t,n=e.read_shift(4),a=e.read_shift(4),i=[],o=0;o!=a&&e.l>15),a&=32767);var i={Unsynced:n&1,DyZero:(n&2)>>1,ExAsc:(n&4)>>2,ExDsc:(n&8)>>3};return[i,a]}function kKe(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),a=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2),s=e.read_shift(2),l=e.read_shift(2),c=e.read_shift(2);return{Pos:[t,r],Dim:[n,a],Flags:i,CurTab:o,FirstTab:s,Selected:l,TabRatio:c}}function RKe(){var e=Je(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function AKe(e,t,r){if(r&&r.biff>=2&&r.biff<5)return{};var n=e.read_shift(2);return{RTL:n&64}}function MKe(e){var t=Je(18),r=1718;return e&&e.RTL&&(r|=64),t.write_shift(2,r),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}function DKe(){}function jKe(e,t,r){var n={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(r&&r.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10;break}return n.name=dg(e,0,r),n}function FKe(e,t){var r=e.name||"Arial",n=t&&t.biff==5,a=n?15+r.length:16+2*r.length,i=Je(a);return i.write_shift(2,(e.sz||12)*20),i.write_shift(4,0),i.write_shift(2,400),i.write_shift(4,0),i.write_shift(2,0),i.write_shift(1,r.length),n||i.write_shift(1,1),i.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le"),i}function LKe(e){var t=dl(e);return t.isst=e.read_shift(4),t}function BKe(e,t,r,n){var a=Je(10);return Nd(e,t,n,a),a.write_shift(4,r),a}function zKe(e,t,r){r.biffguess&&r.biff==2&&(r.biff=5);var n=e.l+t,a=dl(e);r.biff==2&&e.l++;var i=fg(e,n-e.l,r);return a.val=i,a}function HKe(e,t,r,n,a){var i=!a||a.biff==8,o=Je(6+2+ +i+(1+i)*r.length);return Nd(e,t,n,o),o.write_shift(2,r.length),i&&o.write_shift(1,1),o.write_shift((1+i)*r.length,r,i?"utf16le":"sbcs"),o}function WKe(e,t,r){var n=e.read_shift(2),a=ef(e,0,r);return[n,a]}function VKe(e,t,r,n){var a=r&&r.biff==5;n||(n=Je(a?3+t.length:5+2*t.length)),n.write_shift(2,e),n.write_shift(a?1:2,t.length),a||n.write_shift(1,1),n.write_shift((a?1:2)*t.length,t,a?"sbcs":"utf16le");var i=n.length>n.l?n.slice(0,n.l):n;return i.l==null&&(i.l=i.length),i}var UKe=ef;function rL(e,t,r){var n=e.l+t,a=r.biff==8||!r.biff?4:2,i=e.read_shift(a),o=e.read_shift(a),s=e.read_shift(2),l=e.read_shift(2);return e.l=n,{s:{r:i,c:s},e:{r:o,c:l}}}function KKe(e,t){var r=t.biff==8||!t.biff?4:2,n=Je(2*r+6);return n.write_shift(r,e.s.r),n.write_shift(r,e.e.r+1),n.write_shift(2,e.s.c),n.write_shift(2,e.e.c+1),n.write_shift(2,0),n}function GKe(e){var t=e.read_shift(2),r=e.read_shift(2),n=aJ(e);return{r:t,c:r,ixfe:n[0],rknum:n[1]}}function qKe(e,t){for(var r=e.l+t-2,n=e.read_shift(2),a=e.read_shift(2),i=[];e.l>26],n.cellStyles&&(a.alc=i&7,a.fWrap=i>>3&1,a.alcV=i>>4&7,a.fJustLast=i>>7&1,a.trot=i>>8&255,a.cIndent=i>>16&15,a.fShrinkToFit=i>>20&1,a.iReadOrder=i>>22&2,a.fAtrNum=i>>26&1,a.fAtrFnt=i>>27&1,a.fAtrAlc=i>>28&1,a.fAtrBdr=i>>29&1,a.fAtrPat=i>>30&1,a.fAtrProt=i>>31&1,a.dgLeft=o&15,a.dgRight=o>>4&15,a.dgTop=o>>8&15,a.dgBottom=o>>12&15,a.icvLeft=o>>16&127,a.icvRight=o>>23&127,a.grbitDiag=o>>30&3,a.icvTop=s&127,a.icvBottom=s>>7&127,a.icvDiag=s>>14&127,a.dgDiag=s>>21&15,a.icvFore=l&127,a.icvBack=l>>7&127,a.fsxButton=l>>14&1),a}function QKe(e,t,r){var n={};return n.ifnt=e.read_shift(2),n.numFmtId=e.read_shift(2),n.flags=e.read_shift(2),n.fStyle=n.flags>>2&1,t-=6,n.data=YKe(e,t,n.fStyle,r),n}function nL(e,t,r,n){var a=r&&r.biff==5;n||(n=Je(a?16:20)),n.write_shift(2,0),e.style?(n.write_shift(2,e.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,e.numFmtId||0),n.write_shift(2,t<<4));var i=0;return e.numFmtId>0&&a&&(i|=1024),n.write_shift(4,i),n.write_shift(4,0),a||n.write_shift(4,0),n.write_shift(2,0),n}function ZKe(e){e.l+=4;var t=[e.read_shift(2),e.read_shift(2)];if(t[0]!==0&&t[0]--,t[1]!==0&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}function JKe(e){var t=Je(8);return t.write_shift(4,0),t.write_shift(2,e[0]?e[0]+1:0),t.write_shift(2,e[1]?e[1]+1:0),t}function aL(e,t,r){var n=dl(e);(r.biff==2||t==9)&&++e.l;var a=rKe(e);return n.val=a,n.t=a===!0||a===!1?"b":"e",n}function eGe(e,t,r,n,a,i){var o=Je(8);return Nd(e,t,n,o),eJ(r,i,o),o}function tGe(e,t,r){r.biffguess&&r.biff==2&&(r.biff=5);var n=dl(e),a=ai(e);return n.val=a,n}function rGe(e,t,r,n){var a=Je(14);return Nd(e,t,n,a),Pd(r,a),a}var iL=fKe;function nGe(e,t,r){var n=e.l+t,a=e.read_shift(2),i=e.read_shift(2);if(r.sbcch=i,i==1025||i==14849)return[i,a];if(i<1||i>255)throw new Error("Unexpected SupBook type: "+i);for(var o=Id(e,i),s=[];n>e.l;)s.push(fg(e));return[i,a,o,s]}function oL(e,t,r){var n=e.read_shift(2),a,i={fBuiltIn:n&1,fWantAdvise:n>>>1&1,fWantPict:n>>>2&1,fOle:n>>>3&1,fOleLink:n>>>4&1,cf:n>>>5&1023,fIcon:n>>>15&1};return r.sbcch===14849&&(a=hKe(e,t-2,r)),i.body=a||e.read_shift(t-2),typeof a=="string"&&(i.Name=a),i}var aGe=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function sL(e,t,r){var n=e.l+t,a=e.read_shift(2),i=e.read_shift(1),o=e.read_shift(1),s=e.read_shift(r&&r.biff==2?1:2),l=0;(!r||r.biff>=5)&&(r.biff!=5&&(e.l+=2),l=e.read_shift(2),r.biff==5&&(e.l+=2),e.l+=4);var c=Id(e,o,r);a&32&&(c=aGe[c.charCodeAt(0)]);var u=n-e.l;r&&r.biff==2&&--u;var f=n==e.l||s===0||!(u>0)?[]:xQe(e,u,r,s);return{chKey:i,Name:c,itab:l,rgce:f}}function lJ(e,t,r){if(r.biff<8)return iGe(e,t,r);for(var n=[],a=e.l+t,i=e.read_shift(r.biff>8?4:2);i--!==0;)n.push(mKe(e,r.biff>8?12:6,r));if(e.l!=a)throw new Error("Bad ExternSheet: "+e.l+" != "+a);return n}function iGe(e,t,r){e[e.l+1]==3&&e[e.l]++;var n=dg(e,t,r);return n.charCodeAt(0)==3?n.slice(1):n}function oGe(e,t,r){if(r.biff<8){e.l+=t;return}var n=e.read_shift(2),a=e.read_shift(2),i=Id(e,n,r),o=Id(e,a,r);return[i,o]}function sGe(e,t,r){var n=oJ(e);e.l++;var a=e.read_shift(1);return t-=8,[bQe(e,t,r),a,n]}function lL(e,t,r){var n=pKe(e);switch(r.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[n,gQe(e,t,r)]}function lGe(e){var t=e.read_shift(4)!==0,r=e.read_shift(4)!==0,n=e.read_shift(4);return[t,r,n]}function cGe(e,t,r){if(!(r.biff<8)){var n=e.read_shift(2),a=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2),s=ef(e,0,r);return r.biff<8&&e.read_shift(1),[{r:n,c:a},s,o,i]}}function uGe(e,t,r){return cGe(e,t,r)}function dGe(e,t){for(var r=[],n=e.read_shift(2);n--;)r.push(mC(e));return r}function fGe(e){var t=Je(2+e.length*8);t.write_shift(2,e.length);for(var r=0;r=(u?s:2*s))break}if(a.length!==s&&a.length!==s*2)throw new Error("cchText: "+s+" != "+a.length);return e.l=n+t,{t:a}}catch{return e.l=n+t,{t:a}}}function gGe(e,t){var r=mC(e);e.l+=16;var n=cKe(e,t-24);return[r,n]}function yGe(e){var t=Je(24),r=hn(e[0]);t.write_shift(2,r.r),t.write_shift(2,r.r),t.write_shift(2,r.c),t.write_shift(2,r.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),a=0;a<16;++a)t.write_shift(1,parseInt(n[a],16));return Ia([t,uKe(e[1])])}function xGe(e,t){e.read_shift(2);var r=mC(e),n=e.read_shift((t-10)/2,"dbcs-cont");return n=n.replace(li,""),[r,n]}function bGe(e){var t=e[1].Tooltip,r=Je(10+2*(t.length+1));r.write_shift(2,2048);var n=hn(e[0]);r.write_shift(2,n.r),r.write_shift(2,n.r),r.write_shift(2,n.c),r.write_shift(2,n.c);for(var a=0;a0;)r.push(nJ(e));return r}function EGe(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(nJ(e));return r}function $Ge(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t}function cJ(e,t,r){if(!r.cellStyles)return di(e,t);var n=r&&r.biff>=12?4:2,a=e.read_shift(n),i=e.read_shift(n),o=e.read_shift(n),s=e.read_shift(n),l=e.read_shift(2);n==2&&(e.l+=2);var c={s:a,e:i,w:o,ixfe:s,flags:l};return(r.biff>=5||!r.biff)&&(c.level=l>>8&7),c}function _Ge(e,t){var r=Je(12);r.write_shift(2,t),r.write_shift(2,t),r.write_shift(2,e.width*256),r.write_shift(2,0);var n=0;return e.hidden&&(n|=1),r.write_shift(1,n),n=e.level||0,r.write_shift(1,n),r.write_shift(2,0),r}function OGe(e,t){var r={};return t<32||(e.l+=16,r.header=ai(e),r.footer=ai(e),e.l+=2),r}function TGe(e,t,r){var n={area:!1};if(r.biff!=5)return e.l+=t,n;var a=e.read_shift(1);return e.l+=3,a&16&&(n.area=!0),n}function PGe(e){for(var t=Je(2*e),r=0;r1048576&&(p=1e6),f!=2&&(g=u.read_shift(2));var y=u.read_shift(2),x=l.codepage||1252;f!=2&&(u.l+=16,u.read_shift(1),u[u.l]!==0&&(x=e[u[u.l]]),u.l+=1,u.l+=2),v&&(u.l+=36);for(var b=[],S={},w=Math.min(u.length,f==2?521:g-10-(h?264:0)),E=v?32:11;u.l0;){if(u[u.l]===42){u.l+=y;continue}for(++u.l,c[++C]=[],O=0,O=0;O!=b.length;++O){var _=u.slice(u.l,u.l+b[O].len);u.l+=b[O].len,Wa(_,0);var T=xr.utils.decode(x,_);switch(b[O].type){case"C":T.trim().length&&(c[C][O]=T.replace(/\s+$/,""));break;case"D":T.length===8?c[C][O]=new Date(+T.slice(0,4),+T.slice(4,6)-1,+T.slice(6,8)):c[C][O]=T;break;case"F":c[C][O]=parseFloat(T.trim());break;case"+":case"I":c[C][O]=v?_.read_shift(-4,"i")^2147483648:_.read_shift(4,"i");break;case"L":switch(T.trim().toUpperCase()){case"Y":case"T":c[C][O]=!0;break;case"N":case"F":c[C][O]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+T+"|")}break;case"M":if(!m)throw new Error("DBF Unexpected MEMO for type "+f.toString(16));c[C][O]="##MEMO##"+(v?parseInt(T.trim(),10):_.read_shift(4));break;case"N":T=T.replace(/\u0000/g,"").trim(),T&&T!="."&&(c[C][O]=+T||0);break;case"@":c[C][O]=new Date(_.read_shift(-8,"f")-621356832e5);break;case"T":c[C][O]=new Date((_.read_shift(4)-2440588)*864e5+_.read_shift(4));break;case"Y":c[C][O]=_.read_shift(4,"i")/1e4+_.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":c[C][O]=-_.read_shift(-8,"f");break;case"B":if(h&&b[O].len==8){c[C][O]=_.read_shift(8,"f");break}case"G":case"P":_.l+=b[O].len;break;case"0":if(b[O].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+b[O].type)}}}if(f!=2&&u.l=0&&Fo(+c.codepage),c.type=="string")throw new Error("Cannot write DBF to JS string");var u=zi(),f=yb(s,{header:1,raw:!0,cellDates:!0}),m=f[0],h=f.slice(1),v=s["!cols"]||[],p=0,g=0,y=0,x=1;for(p=0;p250&&(_=250),O=((v[p]||{}).DBF||{}).type,O=="C"&&v[p].DBF.len>_&&(_=v[p].DBF.len),C=="B"&&O=="N"&&(C="N",E[p]=v[p].DBF.dec,_=v[p].DBF.len),w[p]=C=="C"||O=="N"?_:i[C]||0,x+=w[p],S[p]=C}var I=u.next(32);for(I.write_shift(4,318902576),I.write_shift(4,h.length),I.write_shift(2,296+32*y),I.write_shift(2,x),p=0;p<4;++p)I.write_shift(4,0);for(I.write_shift(4,0|(+t[_d]||3)<<8),p=0,g=0;p":190,"?":191,"{":223},t=new RegExp("\x1BN("+Pn(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(m,h){var v=e[h];return typeof v=="number"?hT(v):v},n=function(m,h,v){var p=h.charCodeAt(0)-32<<4|v.charCodeAt(0)-48;return p==59?m:hT(p)};e["|"]=254;function a(m,h){switch(h.type){case"base64":return i(ho(m),h);case"binary":return i(m,h);case"buffer":return i(dr&&Buffer.isBuffer(m)?m.toString("binary"):xu(m),h);case"array":return i(Td(m),h)}throw new Error("Unrecognized type "+h.type)}function i(m,h){var v=m.split(/[\n\r]+/),p=-1,g=-1,y=0,x=0,b=[],S=[],w=null,E={},C=[],O=[],_=[],T=0,I;for(+h.codepage>=0&&Fo(+h.codepage);y!==v.length;++y){T=0;var N=v[y].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),D=N.replace(/;;/g,"\0").split(";").map(function(H){return H.replace(/\u0000/g,";")}),k=D[0],R;if(N.length>0)switch(k){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":D[1].charAt(0)=="P"&&S.push(N.slice(3).replace(/;;/g,";"));break;case"C":var A=!1,j=!1,F=!1,M=!1,V=-1,K=-1;for(x=1;x-1&&b[V][K];if(!B||!B[1])throw new Error("SYLK shared formula cannot find base");b[p][g][1]=TJ(B[1],{r:p-V,c:g-K})}break;case"F":var W=0;for(x=1;x0?(C[p].hpt=T,C[p].hpx=A0(T)):T===0&&(C[p].hidden=!0);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+N)}W<1&&(w=null);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+N)}}return C.length>0&&(E["!rows"]=C),O.length>0&&(E["!cols"]=O),h&&h.sheetRows&&(b=b.slice(0,h.sheetRows)),[b,E]}function o(m,h){var v=a(m,h),p=v[0],g=v[1],y=$m(p,h);return Pn(g).forEach(function(x){y[x]=g[x]}),y}function s(m,h){return bu(o(m,h),h)}function l(m,h,v,p){var g="C;Y"+(v+1)+";X"+(p+1)+";K";switch(m.t){case"n":g+=m.v||0,m.f&&!m.F&&(g+=";E"+n4(m.f,{r:v,c:p}));break;case"b":g+=m.v?"TRUE":"FALSE";break;case"e":g+=m.w||m.v;break;case"d":g+='"'+(m.w||m.v)+'"';break;case"s":g+='"'+m.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return g}function c(m,h){h.forEach(function(v,p){var g="F;W"+(p+1)+" "+(p+1)+" ";v.hidden?g+="0":(typeof v.width=="number"&&!v.wpx&&(v.wpx=Yp(v.width)),typeof v.wpx=="number"&&!v.wch&&(v.wch=Qp(v.wpx)),typeof v.wch=="number"&&(g+=Math.round(v.wch))),g.charAt(g.length-1)!=" "&&m.push(g)})}function u(m,h){h.forEach(function(v,p){var g="F;";v.hidden?g+="M0;":v.hpt?g+="M"+20*v.hpt+";":v.hpx&&(g+="M"+20*Zp(v.hpx)+";"),g.length>2&&m.push(g+"R"+(p+1))})}function f(m,h){var v=["ID;PWXL;N;E"],p=[],g=yr(m["!ref"]),y,x=Array.isArray(m),b=`\r +`;v.push("P;PGeneral"),v.push("F;P0;DG0G8;M255"),m["!cols"]&&c(v,m["!cols"]),m["!rows"]&&u(v,m["!rows"]),v.push("B;Y"+(g.e.r-g.s.r+1)+";X"+(g.e.c-g.s.c+1)+";D"+[g.s.c,g.s.r,g.e.c,g.e.r].join(" "));for(var S=g.s.r;S<=g.e.r;++S)for(var w=g.s.c;w<=g.e.c;++w){var E=Xt({r:S,c:w});y=x?(m[S]||[])[w]:m[E],!(!y||y.v==null&&(!y.f||y.F))&&p.push(l(y,m,S,w))}return v.join(b)+b+p.join(b)+b+"E"+b}return{to_workbook:s,to_sheet:o,from_sheet:f}}(),dJ=function(){function e(i,o){switch(o.type){case"base64":return t(ho(i),o);case"binary":return t(i,o);case"buffer":return t(dr&&Buffer.isBuffer(i)?i.toString("binary"):xu(i),o);case"array":return t(Td(i),o)}throw new Error("Unrecognized type "+o.type)}function t(i,o){for(var s=i.split(` +`),l=-1,c=-1,u=0,f=[];u!==s.length;++u){if(s[u].trim()==="BOT"){f[++l]=[],c=0;continue}if(!(l<0)){var m=s[u].trim().split(","),h=m[0],v=m[1];++u;for(var p=s[u]||"";(p.match(/["]/g)||[]).length&1&&u=0&&v[p].length===0;)--p;for(var g=10,y=0,x=0;x<=p;++x)y=v[x].indexOf(" "),y==-1?y=v[x].length:y++,g=Math.max(g,y);for(x=0;x<=p;++x){h[x]=[];var b=0;for(e(v[x].slice(0,g).trim(),h,x,b,m),b=1;b<=(v[x].length-g)/10+1;++b)e(v[x].slice(g+(b-1)*10,g+b*10).trim(),h,x,b,m)}return m.sheetRows&&(h=h.slice(0,m.sheetRows)),h}var r={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function a(u){for(var f={},m=!1,h=0,v=0;h0&&T(),v["!ref"]=ir(p),v}function o(u,f){return!(f&&f.PRN)||f.FS||u.slice(0,4)=="sep="||u.indexOf(" ")>=0||u.indexOf(",")>=0||u.indexOf(";")>=0?i(u,f):$m(t(u,f),f)}function s(u,f){var m="",h=f.type=="string"?[0,0,0,0]:f4(u,f);switch(f.type){case"base64":m=ho(u);break;case"binary":m=u;break;case"buffer":f.codepage==65001?m=u.toString("utf8"):f.codepage&&typeof xr<"u"?m=xr.utils.decode(f.codepage,u):m=dr&&Buffer.isBuffer(u)?u.toString("binary"):xu(u);break;case"array":m=Td(u);break;case"string":m=u;break;default:throw new Error("Unrecognized type "+f.type)}return h[0]==239&&h[1]==187&&h[2]==191?m=Lr(m.slice(3)):f.type!="string"&&f.type!="buffer"&&f.codepage==65001?m=Lr(m):f.type=="binary"&&typeof xr<"u"&&f.codepage&&(m=xr.utils.decode(f.codepage,xr.utils.encode(28591,m))),m.slice(0,19)=="socialcalc:version:"?fJ.to_sheet(f.type=="string"?m:Lr(m),f):o(m,f)}function l(u,f){return bu(s(u,f),f)}function c(u){for(var f=[],m=yr(u["!ref"]),h,v=Array.isArray(u),p=m.s.r;p<=m.e.r;++p){for(var g=[],y=m.s.c;y<=m.e.c;++y){var x=Xt({r:p,c:y});if(h=v?(u[p]||[])[y]:u[x],!h||h.v==null){g.push(" ");continue}for(var b=(h.w||(ll(h),h.w)||"").slice(0,10);b.length<10;)b+=" ";g.push(b+(y===0?" ":""))}f.push(g.join(""))}return f.join(` +`)}return{to_workbook:l,to_sheet:s,from_sheet:c}}();function WGe(e,t){var r=t||{},n=!!r.WTF;r.WTF=!0;try{var a=uJ.to_workbook(e,r);return r.WTF=n,a}catch(i){if(r.WTF=n,!i.message.match(/SYLK bad record ID/)&&n)throw i;return R0.to_workbook(e,t)}}var ad=function(){function e(L,B,W){if(L){Wa(L,L.l||0);for(var H=W.Enum||V;L.l=16&&L[14]==5&&L[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(L[2]==2)W.Enum=V,e(L,function(ne,he,xe){switch(xe){case 0:W.vers=ne,ne>=4096&&(W.qpro=!0);break;case 6:z=ne;break;case 204:ne&&(X=ne);break;case 222:X=ne;break;case 15:case 51:W.qpro||(ne[1].v=ne[1].v.slice(1));case 13:case 14:case 16:xe==14&&(ne[2]&112)==112&&(ne[2]&15)>1&&(ne[2]&15)<15&&(ne[1].z=W.dateNF||Kt[14],W.cellDates&&(ne[1].t="d",ne[1].v=dC(ne[1].v))),W.qpro&&ne[3]>Y&&(H["!ref"]=ir(z),G[U]=H,Q.push(U),H=W.dense?[]:{},z={s:{r:0,c:0},e:{r:0,c:0}},Y=ne[3],U=X||"Sheet"+(Y+1),X="");var ye=W.dense?(H[ne[0].r]||[])[ne[0].c]:H[Xt(ne[0])];if(ye){ye.t=ne[1].t,ye.v=ne[1].v,ne[1].z!=null&&(ye.z=ne[1].z),ne[1].f!=null&&(ye.f=ne[1].f);break}W.dense?(H[ne[0].r]||(H[ne[0].r]=[]),H[ne[0].r][ne[0].c]=ne[1]):H[Xt(ne[0])]=ne[1];break}},W);else if(L[2]==26||L[2]==14)W.Enum=K,L[2]==14&&(W.qpro=!0,L.l=0),e(L,function(ne,he,xe){switch(xe){case 204:U=ne;break;case 22:ne[1].v=ne[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(ne[3]>Y&&(H["!ref"]=ir(z),G[U]=H,Q.push(U),H=W.dense?[]:{},z={s:{r:0,c:0},e:{r:0,c:0}},Y=ne[3],U="Sheet"+(Y+1)),fe>0&&ne[0].r>=fe)break;W.dense?(H[ne[0].r]||(H[ne[0].r]=[]),H[ne[0].r][ne[0].c]=ne[1]):H[Xt(ne[0])]=ne[1],z.e.c=0&&Fo(+W.codepage),W.type=="string")throw new Error("Cannot write WK1 to JS string");var H=zi(),U=yr(L["!ref"]),X=Array.isArray(L),Y=[];Et(H,0,i(1030)),Et(H,6,l(U));for(var G=Math.min(U.e.r,8191),Q=U.s.r;Q<=G;++Q)for(var J=On(Q),z=U.s.c;z<=U.e.c;++z){Q===U.s.r&&(Y[z]=tn(z));var fe=Y[z]+J,te=X?(L[Q]||[])[z]:L[fe];if(!(!te||te.t=="z"))if(te.t=="n")(te.v|0)==te.v&&te.v>=-32768&&te.v<=32767?Et(H,13,h(Q,z,te.v)):Et(H,14,p(Q,z,te.v));else{var re=ll(te);Et(H,15,f(Q,z,re.slice(0,239)))}}return Et(H,1),H.end()}function a(L,B){var W=B||{};if(+W.codepage>=0&&Fo(+W.codepage),W.type=="string")throw new Error("Cannot write WK3 to JS string");var H=zi();Et(H,0,o(L));for(var U=0,X=0;U8191&&(W=8191),B.write_shift(2,W),B.write_shift(1,U),B.write_shift(1,H),B.write_shift(2,0),B.write_shift(2,0),B.write_shift(1,1),B.write_shift(1,2),B.write_shift(4,0),B.write_shift(4,0),B}function s(L,B,W){var H={s:{c:0,r:0},e:{c:0,r:0}};return B==8&&W.qpro?(H.s.c=L.read_shift(1),L.l++,H.s.r=L.read_shift(2),H.e.c=L.read_shift(1),L.l++,H.e.r=L.read_shift(2),H):(H.s.c=L.read_shift(2),H.s.r=L.read_shift(2),B==12&&W.qpro&&(L.l+=2),H.e.c=L.read_shift(2),H.e.r=L.read_shift(2),B==12&&W.qpro&&(L.l+=2),H.s.c==65535&&(H.s.c=H.e.c=H.s.r=H.e.r=0),H)}function l(L){var B=Je(8);return B.write_shift(2,L.s.c),B.write_shift(2,L.s.r),B.write_shift(2,L.e.c),B.write_shift(2,L.e.r),B}function c(L,B,W){var H=[{c:0,r:0},{t:"n",v:0},0,0];return W.qpro&&W.vers!=20768?(H[0].c=L.read_shift(1),H[3]=L.read_shift(1),H[0].r=L.read_shift(2),L.l+=2):(H[2]=L.read_shift(1),H[0].c=L.read_shift(2),H[0].r=L.read_shift(2)),H}function u(L,B,W){var H=L.l+B,U=c(L,B,W);if(U[1].t="s",W.vers==20768){L.l++;var X=L.read_shift(1);return U[1].v=L.read_shift(X,"utf8"),U}return W.qpro&&L.l++,U[1].v=L.read_shift(H-L.l,"cstr"),U}function f(L,B,W){var H=Je(7+W.length);H.write_shift(1,255),H.write_shift(2,B),H.write_shift(2,L),H.write_shift(1,39);for(var U=0;U=128?95:X)}return H.write_shift(1,0),H}function m(L,B,W){var H=c(L,B,W);return H[1].v=L.read_shift(2,"i"),H}function h(L,B,W){var H=Je(7);return H.write_shift(1,255),H.write_shift(2,B),H.write_shift(2,L),H.write_shift(2,W,"i"),H}function v(L,B,W){var H=c(L,B,W);return H[1].v=L.read_shift(8,"f"),H}function p(L,B,W){var H=Je(13);return H.write_shift(1,255),H.write_shift(2,B),H.write_shift(2,L),H.write_shift(8,W,"f"),H}function g(L,B,W){var H=L.l+B,U=c(L,B,W);if(U[1].v=L.read_shift(8,"f"),W.qpro)L.l=H;else{var X=L.read_shift(2);S(L.slice(L.l,L.l+X),U),L.l+=X}return U}function y(L,B,W){var H=B&32768;return B&=-32769,B=(H?L:0)+(B>=8192?B-16384:B),(H?"":"$")+(W?tn(B):On(B))}var x={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},b=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function S(L,B){Wa(L,0);for(var W=[],H=0,U="",X="",Y="",G="";L.lW.length){console.error("WK1 bad formula parse 0x"+Q.toString(16)+":|"+W.join("|")+"|");return}var te=W.slice(-H);W.length-=H,W.push(x[Q][0]+"("+te.join(",")+")")}else return Q<=7?console.error("WK1 invalid opcode "+Q.toString(16)):Q<=24?console.error("WK1 unsupported op "+Q.toString(16)):Q<=30?console.error("WK1 invalid opcode "+Q.toString(16)):Q<=115?console.error("WK1 unsupported function opcode "+Q.toString(16)):console.error("WK1 unrecognized opcode "+Q.toString(16))}}W.length==1?B[1].f=""+W[0]:console.error("WK1 bad formula parse |"+W.join("|")+"|")}function w(L){var B=[{c:0,r:0},{t:"n",v:0},0];return B[0].r=L.read_shift(2),B[3]=L[L.l++],B[0].c=L[L.l++],B}function E(L,B){var W=w(L);return W[1].t="s",W[1].v=L.read_shift(B-4,"cstr"),W}function C(L,B,W,H){var U=Je(6+H.length);U.write_shift(2,L),U.write_shift(1,W),U.write_shift(1,B),U.write_shift(1,39);for(var X=0;X=128?95:Y)}return U.write_shift(1,0),U}function O(L,B){var W=w(L);W[1].v=L.read_shift(2);var H=W[1].v>>1;if(W[1].v&1)switch(H&7){case 0:H=(H>>3)*5e3;break;case 1:H=(H>>3)*500;break;case 2:H=(H>>3)/20;break;case 3:H=(H>>3)/200;break;case 4:H=(H>>3)/2e3;break;case 5:H=(H>>3)/2e4;break;case 6:H=(H>>3)/16;break;case 7:H=(H>>3)/64;break}return W[1].v=H,W}function _(L,B){var W=w(L),H=L.read_shift(4),U=L.read_shift(4),X=L.read_shift(2);if(X==65535)return H===0&&U===3221225472?(W[1].t="e",W[1].v=15):H===0&&U===3489660928?(W[1].t="e",W[1].v=42):W[1].v=0,W;var Y=X&32768;return X=(X&32767)-16446,W[1].v=(1-Y*2)*(U*Math.pow(2,X+32)+H*Math.pow(2,X)),W}function T(L,B,W,H){var U=Je(14);if(U.write_shift(2,L),U.write_shift(1,W),U.write_shift(1,B),H==0)return U.write_shift(4,0),U.write_shift(4,0),U.write_shift(2,65535),U;var X=0,Y=0,G=0,Q=0;return H<0&&(X=1,H=-H),Y=Math.log2(H)|0,H/=Math.pow(2,Y-31),Q=H>>>0,Q&2147483648||(H/=2,++Y,Q=H>>>0),H-=Q,Q|=2147483648,Q>>>=0,H*=Math.pow(2,32),G=H>>>0,U.write_shift(4,G),U.write_shift(4,Q),Y+=16383+(X?32768:0),U.write_shift(2,Y),U}function I(L,B){var W=_(L);return L.l+=B-14,W}function N(L,B){var W=w(L),H=L.read_shift(4);return W[1].v=H>>6,W}function D(L,B){var W=w(L),H=L.read_shift(8,"f");return W[1].v=H,W}function k(L,B){var W=D(L);return L.l+=B-10,W}function R(L,B){return L[L.l+B-1]==0?L.read_shift(B,"cstr"):""}function A(L,B){var W=L[L.l++];W>B-1&&(W=B-1);for(var H="";H.length127?95:U}return W[W.l++]=0,W}var V={0:{n:"BOF",f:Yn},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:s},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:m},14:{n:"NUMBER",f:v},15:{n:"LABEL",f:u},16:{n:"FORMULA",f:g},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:u},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:R},222:{n:"SHEETNAMELP",f:A},65535:{n:""}},K={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:E},23:{n:"NUMBER17",f:_},24:{n:"NUMBER18",f:O},25:{n:"FORMULA19",f:I},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:F},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:N},38:{n:"??"},39:{n:"NUMBER27",f:D},40:{n:"FORMULA28",f:k},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:R},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:j},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:a,to_workbook:t}}();function VGe(e){var t={},r=e.match(mi),n=0,a=!1;if(r)for(;n!=r.length;++n){var i=Zt(r[n]);switch(i[0].replace(/\w*:/g,"")){case"":case"":t.shadow=1;break;case"":break;case"":case"":t.outline=1;break;case"":break;case"":case"":t.strike=1;break;case"":break;case"":case"":t.u=1;break;case"":break;case"":case"":t.b=1;break;case"":break;case"":case"":t.i=1;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":a=!1;break;default:if(i[0].charCodeAt(1)!==47&&!a)throw new Error("Unrecognized rich format "+i[0])}}return t}var UGe=function(){var e=Up("t"),t=Up("rPr");function r(i){var o=i.match(e);if(!o)return{t:"s",v:""};var s={t:"s",v:Cr(o[1])},l=i.match(t);return l&&(s.s=VGe(l[1])),s}var n=/<(?:\w+:)?r>/g,a=/<\/(?:\w+:)?r>/;return function(o){return o.replace(n,"").split(a).map(r).filter(function(s){return s.v})}}(),KGe=function(){var t=/(\r\n|\n)/g;function r(a,i,o){var s=[];a.u&&s.push("text-decoration: underline;"),a.uval&&s.push("text-underline-style:"+a.uval+";"),a.sz&&s.push("font-size:"+a.sz+"pt;"),a.outline&&s.push("text-effect: outline;"),a.shadow&&s.push("text-shadow: auto;"),i.push(''),a.b&&(i.push(""),o.push("")),a.i&&(i.push(""),o.push("")),a.strike&&(i.push(""),o.push(""));var l=a.valign||"";return l=="superscript"||l=="super"?l="sup":l=="subscript"&&(l="sub"),l!=""&&(i.push("<"+l+">"),o.push("")),o.push(""),a}function n(a){var i=[[],a.v,[]];return a.v?(a.s&&r(a.s,i[0],i[2]),i[0].join("")+i[1].replace(t,"
")+i[2].join("")):""}return function(i){return i.map(n).join("")}}(),GGe=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,qGe=/<(?:\w+:)?r>/,XGe=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function ZR(e,t){var r=t?t.cellHTML:!0,n={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(n.t=Cr(Lr(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),n.r=Lr(e),r&&(n.h=AR(n.t))):e.match(qGe)&&(n.r=Lr(e),n.t=Cr(Lr((e.replace(XGe,"").match(GGe)||[]).join("").replace(mi,""))),r&&(n.h=KGe(UGe(n.r)))),n):{t:""}}var YGe=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,QGe=/<(?:\w+:)?(?:si|sstItem)>/g,ZGe=/<\/(?:\w+:)?(?:si|sstItem)>/;function JGe(e,t){var r=[],n="";if(!e)return r;var a=e.match(YGe);if(a){n=a[2].replace(QGe,"").split(ZGe);for(var i=0;i!=n.length;++i){var o=ZR(n[i].trim(),t);o!=null&&(r[r.length]=o)}a=Zt(a[1]),r.Count=a.count,r.Unique=a.uniqueCount}return r}var eqe=/^\s|\s$|[\t\n\r]/;function mJ(e,t){if(!t.bookSST)return"";var r=[Bn];r[r.length]=Ct("sst",null,{xmlns:Xd[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var a=e[n],i="";a.r?i+=a.r:(i+=""),i+="",r[r.length]=i}return r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function tqe(e){return[e.read_shift(4),e.read_shift(4)]}function rqe(e,t){var r=[],n=!1;return Ql(e,function(i,o,s){switch(s){case 159:r.Count=i[0],r.Unique=i[1];break;case 19:r.push(i);break;case 160:return!0;case 35:n=!0;break;case 36:n=!1;break;default:if(o.T,!n||t.WTF)throw new Error("Unexpected record 0x"+s.toString(16))}}),r}function nqe(e,t){return t||(t=Je(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var aqe=hUe;function iqe(e){var t=zi();st(t,159,nqe(e));for(var r=0;r=4&&(e.l+=t-4),r}function oqe(e){var t={};return t.id=e.read_shift(0,"lpp4"),t.R=_l(e,4),t.U=_l(e,4),t.W=_l(e,4),t}function sqe(e){for(var t=e.read_shift(4),r=e.l+t-4,n={},a=e.read_shift(4),i=[];a-- >0;)i.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(n.name=e.read_shift(0,"lpp4"),n.comps=i,e.l!=r)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+r);return n}function lqe(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(sqe(e));return t}function cqe(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(e.read_shift(0,"lpp4"));return t}function uqe(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=_l(e,4),t.U=_l(e,4),t.W=_l(e,4),t}function dqe(e){var t=uqe(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),e.read_shift(4)!=4)throw new Error("Bad !Primary record");return t}function pJ(e,t){var r=e.l+t,n={};n.Flags=e.read_shift(4)&63,e.l+=4,n.AlgID=e.read_shift(4);var a=!1;switch(n.AlgID){case 26126:case 26127:case 26128:a=n.Flags==36;break;case 26625:a=n.Flags==4;break;case 0:a=n.Flags==16||n.Flags==4||n.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+n.AlgID}if(!a)throw new Error("Encryption Flags/AlgID mismatch");return n.AlgIDHash=e.read_shift(4),n.KeySize=e.read_shift(4),n.ProviderType=e.read_shift(4),e.l+=8,n.CSPName=e.read_shift(r-e.l>>1,"utf16le"),e.l=r,n}function vJ(e,t){var r={},n=e.l+t;return e.l+=4,r.Salt=e.slice(e.l,e.l+16),e.l+=16,r.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),r.VerifierHash=e.slice(e.l,n),e.l=n,r}function fqe(e){var t=_l(e);switch(t.Minor){case 2:return[t.Minor,mqe(e)];case 3:return[t.Minor,hqe()];case 4:return[t.Minor,pqe(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}function mqe(e){var t=e.read_shift(4);if((t&63)!=36)throw new Error("EncryptionInfo mismatch");var r=e.read_shift(4),n=pJ(e,r),a=vJ(e,e.length-e.l);return{t:"Std",h:n,v:a}}function hqe(){throw new Error("File is password-protected: ECMA-376 Extensible")}function pqe(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var r=e.read_shift(e.length-e.l,"utf8"),n={};return r.replace(mi,function(i){var o=Zt(i);switch(ul(o[0])){case"":break;case"":case"":break;case"":break;case"4||n.Major<2)throw new Error("unrecognized major version code: "+n.Major);r.Flags=e.read_shift(4),t-=4;var a=e.read_shift(4);return t-=4,r.EncryptionHeader=pJ(e,a),t-=a,r.EncryptionVerifier=vJ(e,t),r}function gqe(e){var t={},r=t.EncryptionVersionInfo=_l(e,4);if(r.Major!=1||r.Minor!=1)throw"unrecognized version code "+r.Major+" : "+r.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}function JR(e){var t=0,r,n=hJ(e),a=n.length+1,i,o,s,l,c;for(r=Zc(a),r[0]=n.length,i=1;i!=a;++i)r[i]=n[i-1];for(i=a-1;i>=0;--i)o=r[i],s=t&16384?1:0,l=t<<1&32767,c=s|l,t=c^o;return t^52811}var gJ=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],r=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],n=function(o){return(o/2|o*128)&255},a=function(o,s){return n(o^s)},i=function(o){for(var s=t[o.length-1],l=104,c=o.length-1;c>=0;--c)for(var u=o[c],f=0;f!=7;++f)u&64&&(s^=r[l]),u*=2,--l;return s};return function(o){for(var s=hJ(o),l=i(s),c=s.length,u=Zc(16),f=0;f!=16;++f)u[f]=0;var m,h,v;for((c&1)===1&&(m=l>>8,u[c]=a(e[0],m),--c,m=l&255,h=s[s.length-1],u[c]=a(h,m));c>0;)--c,m=l>>8,u[c]=a(s[c],m),--c,m=l&255,u[c]=a(s[c],m);for(c=15,v=15-s.length;v>0;)m=l>>8,u[c]=a(e[v],m),--c,--v,m=l&255,u[c]=a(s[c],m),--c,--v;return u}}(),yqe=function(e,t,r,n,a){a||(a=t),n||(n=gJ(e));var i,o;for(i=0;i!=t.length;++i)o=t[i],o^=n[r],o=(o>>5|o<<3)&255,a[i]=o,++r;return[a,r,n]},xqe=function(e){var t=0,r=gJ(e);return function(n){var a=yqe("",n,t,r);return t=a[1],a[0]}};function bqe(e,t,r,n){var a={key:Yn(e),verificationBytes:Yn(e)};return r.password&&(a.verifier=JR(r.password)),n.valid=a.verificationBytes===a.verifier,n.valid&&(n.insitu=xqe(r.password)),a}function Sqe(e,t,r){var n=r||{};return n.Info=e.read_shift(2),e.l-=2,n.Info===1?n.Data=gqe(e):n.Data=vqe(e,t),n}function wqe(e,t,r){var n={Type:r.biff>=8?e.read_shift(2):0};return n.Type?Sqe(e,t-2,n):bqe(e,r.biff>=8?t:t-2,r,n),n}var yJ=function(){function e(a,i){switch(i.type){case"base64":return t(ho(a),i);case"binary":return t(a,i);case"buffer":return t(dr&&Buffer.isBuffer(a)?a.toString("binary"):xu(a),i);case"array":return t(Td(a),i)}throw new Error("Unrecognized type "+i.type)}function t(a,i){var o=i||{},s=o.dense?[]:{},l=a.match(/\\trowd.*?\\row\b/g);if(!l.length)throw new Error("RTF missing table");var c={s:{c:0,r:0},e:{c:0,r:l.length-1}};return l.forEach(function(u,f){Array.isArray(s)&&(s[f]=[]);for(var m=/\\\w+\b/g,h=0,v,p=-1;v=m.exec(u);){switch(v[0]){case"\\cell":var g=u.slice(h,m.lastIndex-v[0].length);if(g[0]==" "&&(g=g.slice(1)),++p,g.length){var y={v:g,t:"s"};Array.isArray(s)?s[f][p]=y:s[Xt({r:f,c:p})]=y}break}h=m.lastIndex}p>c.e.c&&(c.e.c=p)}),s["!ref"]=ir(c),s}function r(a,i){return bu(e(a,i),i)}function n(a){for(var i=["{\\rtf1\\ansi"],o=yr(a["!ref"]),s,l=Array.isArray(a),c=o.s.r;c<=o.e.r;++c){i.push("\\trowd\\trautofit1");for(var u=o.s.c;u<=o.e.c;++u)i.push("\\cellx"+(u+1));for(i.push("\\pard\\intbl"),u=o.s.c;u<=o.e.c;++u){var f=Xt({r:c,c:u});s=l?(a[c]||[])[u]:a[f],!(!s||s.v==null&&(!s.f||s.F))&&(i.push(" "+(s.w||(ll(s),s.w))),i.push("\\cell"))}i.push("\\pard\\intbl\\row")}return i.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:n}}();function Cqe(e){var t=e.slice(e[0]==="#"?1:0).slice(0,6);return[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}function Xp(e){for(var t=0,r=1;t!=3;++t)r=r*256+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}function Eqe(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.max(t,r,n),i=Math.min(t,r,n),o=a-i;if(o===0)return[0,0,t];var s=0,l=0,c=a+i;switch(l=o/(c>1?2-c:c),a){case t:s=((r-n)/o+6)%6;break;case r:s=(n-t)/o+2;break;case n:s=(t-r)/o+4;break}return[s/6,l,c/2]}function $qe(e){var t=e[0],r=e[1],n=e[2],a=r*2*(n<.5?n:1-n),i=n-a/2,o=[i,i,i],s=6*t,l;if(r!==0)switch(s|0){case 0:case 6:l=a*s,o[0]+=a,o[1]+=l;break;case 1:l=a*(2-s),o[0]+=l,o[1]+=a;break;case 2:l=a*(s-2),o[1]+=a,o[2]+=l;break;case 3:l=a*(4-s),o[1]+=l,o[2]+=a;break;case 4:l=a*(s-4),o[2]+=a,o[0]+=l;break;case 5:l=a*(6-s),o[2]+=l,o[0]+=a;break}for(var c=0;c!=3;++c)o[c]=Math.round(o[c]*255);return o}function vb(e,t){if(t===0)return e;var r=Eqe(Cqe(e));return t<0?r[2]=r[2]*(1+t):r[2]=1-(1-r[2])*(1-t),Xp($qe(r))}var xJ=6,_qe=15,Oqe=1,ri=xJ;function Yp(e){return Math.floor((e+Math.round(128/ri)/256)*ri)}function Qp(e){return Math.floor((e-5)/ri*100+.5)/100}function gb(e){return Math.round((e*ri+5)/ri*256)/256}function AE(e){return gb(Qp(Yp(e)))}function e4(e){var t=Math.abs(e-AE(e)),r=ri;if(t>.005)for(ri=Oqe;ri<_qe;++ri)Math.abs(e-AE(e))<=t&&(t=Math.abs(e-AE(e)),r=ri);ri=r}function Jc(e){e.width?(e.wpx=Yp(e.width),e.wch=Qp(e.wpx),e.MDW=ri):e.wpx?(e.wch=Qp(e.wpx),e.width=gb(e.wch),e.MDW=ri):typeof e.wch=="number"&&(e.width=gb(e.wch),e.wpx=Yp(e.width),e.MDW=ri),e.customWidth&&delete e.customWidth}var Tqe=96,bJ=Tqe;function Zp(e){return e*96/bJ}function A0(e){return e*bJ/96}var Pqe={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"};function Iqe(e,t,r,n){t.Borders=[];var a={},i=!1;(e[0].match(mi)||[]).forEach(function(o){var s=Zt(o);switch(ul(s[0])){case"":case"":break;case"":case"":a={},s.diagonalUp&&(a.diagonalUp=Jr(s.diagonalUp)),s.diagonalDown&&(a.diagonalDown=Jr(s.diagonalDown)),t.Borders.push(a);break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":break;case"":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+s[0]+" in borders")}})}function Nqe(e,t,r,n){t.Fills=[];var a={},i=!1;(e[0].match(mi)||[]).forEach(function(o){var s=Zt(o);switch(ul(s[0])){case"":case"":break;case"":case"":a={},t.Fills.push(a);break;case"":break;case"":break;case"":t.Fills.push(a),a={};break;case"":s.patternType&&(a.patternType=s.patternType);break;case"":case"":break;case"":case"":break;case"":case"":break;case"":break;case"":break;case"":break;case"":break;case"":case"":break;case"":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+s[0]+" in fills")}})}function kqe(e,t,r,n){t.Fonts=[];var a={},i=!1;(e[0].match(mi)||[]).forEach(function(o){var s=Zt(o);switch(ul(s[0])){case"":case"":break;case"":break;case"":case"":t.Fonts.push(a),a={};break;case"":case"":break;case"":a.bold=1;break;case"":a.italic=1;break;case"":a.underline=1;break;case"":a.strike=1;break;case"":a.outline=1;break;case"":a.shadow=1;break;case"":a.condense=1;break;case"":a.extend=1;break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":i=!1;break;case"":case"":break;case"":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+s[0]+" in fonts")}})}function Rqe(e,t,r){t.NumberFmt=[];for(var n=Pn(Kt),a=0;a":case"":case"":break;case"0){if(l>392){for(l=392;l>60&&t.NumberFmt[l]!=null;--l);t.NumberFmt[l]=s}el(s,l)}}break;case"":break;default:if(r.WTF)throw new Error("unrecognized "+o[0]+" in numFmts")}}}function Aqe(e){var t=[""];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)e[n]!=null&&(t[t.length]=Ct("numFmt",null,{numFmtId:n,formatCode:Mr(e[n])}))}),t.length===1?"":(t[t.length]="",t[0]=Ct("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}var My=["numFmtId","fillId","fontId","borderId","xfId"],Dy=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function Mqe(e,t,r){t.CellXf=[];var n,a=!1;(e[0].match(mi)||[]).forEach(function(i){var o=Zt(i),s=0;switch(ul(o[0])){case"":case"":case"":break;case"":for(n=o,delete n[0],s=0;s392){for(s=392;s>60;--s)if(t.NumberFmt[n.numFmtId]==t.NumberFmt[s]){n.numFmtId=s;break}}t.CellXf.push(n);break;case"":break;case"":var l={};o.vertical&&(l.vertical=o.vertical),o.horizontal&&(l.horizontal=o.horizontal),o.textRotation!=null&&(l.textRotation=o.textRotation),o.indent&&(l.indent=o.indent),o.wrapText&&(l.wrapText=Jr(o.wrapText)),n.alignment=l;break;case"":break;case"":case"":break;case"":a=!1;break;case"":case"":break;case"":a=!1;break;default:if(r&&r.WTF&&!a)throw new Error("unrecognized "+o[0]+" in cellXfs")}})}function Dqe(e){var t=[];return t[t.length]=Ct("cellXfs",null),e.forEach(function(r){t[t.length]=Ct("xf",null,r)}),t[t.length]="",t.length===2?"":(t[0]=Ct("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}var jqe=function(){var t=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,r=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,n=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,a=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,i=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(s,l,c){var u={};if(!s)return u;s=s.replace(//mg,"").replace(//gm,"");var f;return(f=s.match(t))&&Rqe(f,u,c),(f=s.match(a))&&kqe(f,u,l,c),(f=s.match(n))&&Nqe(f,u,l,c),(f=s.match(i))&&Iqe(f,u,l,c),(f=s.match(r))&&Mqe(f,u,c),u}}();function SJ(e,t){var r=[Bn,Ct("styleSheet",null,{xmlns:Xd[0],"xmlns:vt":da.vt})],n;return e.SSF&&(n=Aqe(e.SSF))!=null&&(r[r.length]=n),r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',(n=Dqe(t.cellXfs))&&(r[r.length]=n),r[r.length]='',r[r.length]='',r[r.length]='',r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function Fqe(e,t){var r=e.read_shift(2),n=ci(e);return[r,n]}function Lqe(e,t,r){r||(r=Je(6+4*t.length)),r.write_shift(2,e),ka(t,r);var n=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),n}function Bqe(e,t,r){var n={};n.sz=e.read_shift(2)/20;var a=SUe(e);a.fItalic&&(n.italic=1),a.fCondense&&(n.condense=1),a.fExtend&&(n.extend=1),a.fShadow&&(n.shadow=1),a.fOutline&&(n.outline=1),a.fStrikeout&&(n.strike=1);var i=e.read_shift(2);switch(i===700&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var o=e.read_shift(1);o!=0&&(n.underline=o);var s=e.read_shift(1);s>0&&(n.family=s);var l=e.read_shift(1);switch(l>0&&(n.charset=l),e.l++,n.color=bUe(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=ci(e),n}function zqe(e,t){t||(t=Je(25+4*32)),t.write_shift(2,e.sz*20),wUe(e,t),t.write_shift(2,e.bold?700:400);var r=0;e.vertAlign=="superscript"?r=1:e.vertAlign=="subscript"&&(r=2),t.write_shift(2,r),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),mb(e.color,t);var n=0;return e.scheme=="major"&&(n=1),e.scheme=="minor"&&(n=2),t.write_shift(1,n),ka(e.name,t),t.length>t.l?t.slice(0,t.l):t}var Hqe=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],ME,Wqe=di;function cL(e,t){t||(t=Je(4*3+8*7+16*1)),ME||(ME=cC(Hqe));var r=ME[e.patternType];r==null&&(r=40),t.write_shift(4,r);var n=0;if(r!=40)for(mb({auto:1},t),mb({auto:1},t);n<12;++n)t.write_shift(4,0);else{for(;n<4;++n)t.write_shift(4,0);for(;n<12;++n)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function Vqe(e,t){var r=e.l+t,n=e.read_shift(2),a=e.read_shift(2);return e.l=r,{ixfe:n,numFmtId:a}}function wJ(e,t,r){r||(r=Je(16)),r.write_shift(2,t||0),r.write_shift(2,e.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var n=0;return r.write_shift(1,n),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function Jm(e,t){return t||(t=Je(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var Uqe=di;function Kqe(e,t){return t||(t=Je(51)),t.write_shift(1,0),Jm(null,t),Jm(null,t),Jm(null,t),Jm(null,t),Jm(null,t),t.length>t.l?t.slice(0,t.l):t}function Gqe(e,t){return t||(t=Je(12+4*10)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,+e.builtinId),t.write_shift(1,0),fb(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function qqe(e,t,r){var n=Je(2052);return n.write_shift(4,e),fb(t,n),fb(r,n),n.length>n.l?n.slice(0,n.l):n}function Xqe(e,t,r){var n={};n.NumberFmt=[];for(var a in Kt)n.NumberFmt[a]=Kt[a];n.CellXf=[],n.Fonts=[];var i=[],o=!1;return Ql(e,function(l,c,u){switch(u){case 44:n.NumberFmt[l[0]]=l[1],el(l[1],l[0]);break;case 43:n.Fonts.push(l),l.color.theme!=null&&t&&t.themeElements&&t.themeElements.clrScheme&&(l.color.rgb=vb(t.themeElements.clrScheme[l.color.theme].rgb,l.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:i[i.length-1]==617&&n.CellXf.push(l);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:i.push(u),o=!0;break;case 38:i.pop(),o=!1;break;default:if(c.T>0)i.push(u);else if(c.T<0)i.pop();else if(!o||r.WTF&&i[i.length-1]!=37)throw new Error("Unexpected record 0x"+u.toString(16))}}),n}function Yqe(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&++r}),r!=0&&(st(e,615,Es(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&st(e,44,Lqe(a,t[a]))}),st(e,616))}}function Qqe(e){var t=1;st(e,611,Es(t)),st(e,43,zqe({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),st(e,612)}function Zqe(e){var t=2;st(e,603,Es(t)),st(e,45,cL({patternType:"none"})),st(e,45,cL({patternType:"gray125"})),st(e,604)}function Jqe(e){var t=1;st(e,613,Es(t)),st(e,46,Kqe()),st(e,614)}function eXe(e){var t=1;st(e,626,Es(t)),st(e,47,wJ({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),st(e,627)}function tXe(e,t){st(e,617,Es(t.length)),t.forEach(function(r){st(e,47,wJ(r,0))}),st(e,618)}function rXe(e){var t=1;st(e,619,Es(t)),st(e,48,Gqe({xfId:0,builtinId:0,name:"Normal"})),st(e,620)}function nXe(e){var t=0;st(e,505,Es(t)),st(e,506)}function aXe(e){var t=0;st(e,508,qqe(t,"TableStyleMedium9","PivotStyleMedium4")),st(e,509)}function iXe(e,t){var r=zi();return st(r,278),Yqe(r,e.SSF),Qqe(r),Zqe(r),Jqe(r),eXe(r),tXe(r,t.cellXfs),rXe(r),nXe(r),aXe(r),st(r,279),r.end()}var oXe=["","","","","","","","","","","",""];function sXe(e,t,r){t.themeElements.clrScheme=[];var n={};(e[0].match(mi)||[]).forEach(function(a){var i=Zt(a);switch(i[0]){case"":break;case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":i[0].charAt(1)==="/"?(t.themeElements.clrScheme[oXe.indexOf(i[0])]=n,n={}):n.name=i[0].slice(3,i[0].length-1);break;default:if(r&&r.WTF)throw new Error("Unrecognized "+i[0]+" in clrScheme")}})}function lXe(){}function cXe(){}var uXe=/]*)>[\s\S]*<\/a:clrScheme>/,dXe=/]*)>[\s\S]*<\/a:fontScheme>/,fXe=/]*)>[\s\S]*<\/a:fmtScheme>/;function mXe(e,t,r){t.themeElements={};var n;[["clrScheme",uXe,sXe],["fontScheme",dXe,lXe],["fmtScheme",fXe,cXe]].forEach(function(a){if(!(n=e.match(a[1])))throw new Error(a[0]+" not found in themeElements");a[2](n,t,r)})}var hXe=/]*)>[\s\S]*<\/a:themeElements>/;function CJ(e,t){(!e||e.length===0)&&(e=t4());var r,n={};if(!(r=e.match(hXe)))throw new Error("themeElements not found in theme");return mXe(r[0],n,t),n.raw=e,n}function t4(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[Bn];return r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r.join("")}function pXe(e,t,r){var n=e.l+t,a=e.read_shift(4);if(a!==124226){if(!r.cellStyles){e.l=n;return}var i=e.slice(e.l);e.l=n;var o;try{o=xZ(i,{type:"array"})}catch{return}var s=to(o,"theme/theme/theme1.xml",!0);if(s)return CJ(s,r)}}function vXe(e){return e.read_shift(4)}function gXe(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:e.l+=4;break;case 1:t.xclrValue=yXe(e,4);break;case 2:t.xclrValue=rJ(e);break;case 3:t.xclrValue=vXe(e);break;case 4:e.l+=4;break}return e.l+=8,t}function yXe(e,t){return di(e,t)}function xXe(e,t){return di(e,t)}function bXe(e){var t=e.read_shift(2),r=e.read_shift(2)-4,n=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:n[1]=gXe(e);break;case 6:n[1]=xXe(e,r);break;case 14:case 15:n[1]=e.read_shift(r===1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+r)}return n}function SXe(e,t){var r=e.l+t;e.l+=2;var n=e.read_shift(2);e.l+=2;for(var a=e.read_shift(2),i=[];a-- >0;)i.push(bXe(e,r-e.l));return{ixfe:n,ext:i}}function wXe(e,t){t.forEach(function(r){switch(r[0]){}})}function CXe(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:ci(e)}}function EXe(e){var t=Je(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),ka(e.name,t),t.slice(0,t.l)}function $Xe(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function _Xe(e){var t=Je(4+8*e.length);t.write_shift(4,e.length);for(var r=0;r":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":i=2;break;case"":i=2;break;case"":case"":case"":break;case"":a=!1;break;case" + + + + + + + + + + + + + + + + + +`),e.join("")}function RXe(e){var t=[];if(!e)return t;var r=1;return(e.match(mi)||[]).forEach(function(n){var a=Zt(n);switch(a[0]){case"":case"":break;case"]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][r].Target}var Hf=1024;function $J(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),a=[Ct("xml",null,{"xmlns:v":Zi.v,"xmlns:o":Zi.o,"xmlns:x":Zi.x,"xmlns:mv":Zi.mv}).replace(/\/>/,">"),Ct("o:shapelayout",Ct("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),Ct("v:shapetype",[Ct("v:stroke",null,{joinstyle:"miter"}),Ct("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];Hf",c,Ct("v:shadow",null,u),Ct("v:path",null,{"o:connecttype":"none"}),'
','',"","",Va("x:Anchor",[o.c+1,0,o.r+1,0,o.c+3,20,o.r+5,20].join(",")),Va("x:AutoFill","False"),Va("x:Row",String(o.r)),Va("x:Column",String(o.c)),i[1].hidden?"":"","",""])}),a.push(""),a.join("")}function uL(e,t,r,n){var a=Array.isArray(e),i;t.forEach(function(o){var s=hn(o.ref);if(a?(e[s.r]||(e[s.r]=[]),i=e[s.r][s.c]):i=e[o.ref],!i){i={t:"z"},a?e[s.r][s.c]=i:e[o.ref]=i;var l=yr(e["!ref"]||"BDWGO1000001:A1");l.s.r>s.r&&(l.s.r=s.r),l.e.rs.c&&(l.s.c=s.c),l.e.c=0;--f){if(!r&&i.c[f].T)return;r&&!i.c[f].T&&i.c.splice(f,1)}if(r&&n){for(f=0;f/))return[];var r=[],n=[],a=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);a&&a[1]&&a[1].split(/<\/\w*:?author>/).forEach(function(o){if(!(o===""||o.trim()==="")){var s=o.match(/<(?:\w+:)?author[^>]*>(.*)/);s&&r.push(s[1])}});var i=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return i&&i[1]&&i[1].split(/<\/\w*:?comment>/).forEach(function(o){if(!(o===""||o.trim()==="")){var s=o.match(/<(?:\w+:)?comment[^>]*>/);if(s){var l=Zt(s[0]),c={author:l.authorId&&r[l.authorId]||"sheetjsghost",ref:l.ref,guid:l.guid},u=hn(l.ref);if(!(t.sheetRows&&t.sheetRows<=u.r)){var f=o.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),m=!!f&&!!f[1]&&ZR(f[1])||{r:"",t:"",h:""};c.r=m.r,m.r==""&&(m.t=m.h=""),c.t=(m.t||"").replace(/\r\n/g,` +`).replace(/\r/g,` +`),t.cellHTML&&(c.h=m.h),n.push(c)}}}}),n}function _J(e){var t=[Bn,Ct("comments",null,{xmlns:Xd[0]})],r=[];return t.push(""),e.forEach(function(n){n[1].forEach(function(a){var i=Mr(a.a);r.indexOf(i)==-1&&(r.push(i),t.push(""+i+"")),a.T&&a.ID&&r.indexOf("tc="+a.ID)==-1&&(r.push("tc="+a.ID),t.push("tc="+a.ID+""))})}),r.length==0&&(r.push("SheetJ5"),t.push("SheetJ5")),t.push(""),t.push(""),e.forEach(function(n){var a=0,i=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?a=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(l){l.a&&(a=r.indexOf(Mr(l.a))),i.push(l.t||"")}),t.push(''),i.length<=1)t.push(Va("t",Mr(i[0]||"")));else{for(var o=`Comment: + `+i[0]+` +`,s=1;s")}),t.push(""),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function LXe(e,t){var r=[],n=!1,a={},i=0;return e.replace(mi,function(s,l){var c=Zt(s);switch(ul(c[0])){case"":break;case"":a.t!=null&&r.push(a);break;case"":case"":a.t=e.slice(i,l).replace(/\r\n/g,` +`).replace(/\r/g,` +`);break;case"":n=!0;break;case"":n=!1;break;case"":case"
":case"":break;case"":n=!1;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+c[0]+" in threaded comments")}return s}),r}function BXe(e,t,r){var n=[Bn,Ct("ThreadedComments",null,{xmlns:da.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(a){var i="";(a[1]||[]).forEach(function(o,s){if(!o.T){delete o.ID;return}o.a&&t.indexOf(o.a)==-1&&t.push(o.a);var l={ref:a[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};s==0?i=l.id:l.parentId=i,o.ID=l.id,o.a&&(l.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(o.a)).slice(-12)+"}"),n.push(Ct("threadedComment",Va("text",o.t||""),l))})}),n.push(""),n.join("")}function zXe(e,t){var r=[],n=!1;return e.replace(mi,function(i){var o=Zt(i);switch(ul(o[0])){case"":break;case"":break;case"":case"":case"":break;case"":n=!1;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+o[0]+" in threaded comments")}return i}),r}function HXe(e){var t=[Bn,Ct("personList",null,{xmlns:da.TCMNT,"xmlns:x":Xd[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,n){t.push(Ct("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push(""),t.join("")}function WXe(e){var t={};t.iauthor=e.read_shift(4);var r=Jd(e);return t.rfx=r.s,t.ref=Xt(r.s),e.l+=16,t}function VXe(e,t){return t==null&&(t=Je(36)),t.write_shift(4,e[1].iauthor),_m(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var UXe=ci;function KXe(e){return ka(e.slice(0,54))}function GXe(e,t){var r=[],n=[],a={},i=!1;return Ql(e,function(s,l,c){switch(c){case 632:n.push(s);break;case 635:a=s;break;case 637:a.t=s.t,a.h=s.h,a.r=s.r;break;case 636:if(a.author=n[a.iauthor],delete a.iauthor,t.sheetRows&&a.rfx&&t.sheetRows<=a.rfx.r)break;a.t||(a.t=""),delete a.rfx,r.push(a);break;case 3072:break;case 35:i=!0;break;case 36:i=!1;break;case 37:break;case 38:break;default:if(!l.T){if(!i||t.WTF)throw new Error("Unexpected record 0x"+c.toString(16))}}}),r}function qXe(e){var t=zi(),r=[];return st(t,628),st(t,630),e.forEach(function(n){n[1].forEach(function(a){r.indexOf(a.a)>-1||(r.push(a.a.slice(0,54)),st(t,632,KXe(a.a)))})}),st(t,631),st(t,633),e.forEach(function(n){n[1].forEach(function(a){a.iauthor=r.indexOf(a.a);var i={s:hn(n[0]),e:hn(n[0])};st(t,635,VXe([i,a])),a.t&&a.t.length>0&&st(t,637,vUe(a)),st(t,636),delete a.iauthor})}),st(t,634),st(t,629),t.end()}var XXe="application/vnd.ms-office.vbaProject";function YXe(e){var t=Vt.utils.cfb_new({root:"R"});return e.FullPaths.forEach(function(r,n){if(!(r.slice(-1)==="/"||!r.match(/_VBA_PROJECT_CUR/))){var a=r.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");Vt.utils.cfb_add(t,a,e.FileIndex[n].content)}}),Vt.write(t)}function QXe(e,t){t.FullPaths.forEach(function(r,n){if(n!=0){var a=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");a.slice(-1)!=="/"&&Vt.utils.cfb_add(e,a,t.FileIndex[n].content)}})}var OJ=["xlsb","xlsm","xlam","biff8","xla"];function ZXe(){return{"!type":"dialog"}}function JXe(){return{"!type":"dialog"}}function eYe(){return{"!type":"macro"}}function tYe(){return{"!type":"macro"}}var i0=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(n,a,i,o){var s=!1,l=!1;i.length==0?l=!0:i.charAt(0)=="["&&(l=!0,i=i.slice(1,-1)),o.length==0?s=!0:o.charAt(0)=="["&&(s=!0,o=o.slice(1,-1));var c=i.length>0?parseInt(i,10)|0:0,u=o.length>0?parseInt(o,10)|0:0;return s?u+=t.c:--u,l?c+=t.r:--c,a+(s?"":"$")+tn(u)+(l?"":"$")+On(c)}return function(a,i){return t=i,a.replace(e,r)}}(),r4=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,n4=function(){return function(t,r){return t.replace(r4,function(n,a,i,o,s,l){var c=WR(o)-(i?0:r.c),u=HR(l)-(s?0:r.r),f=u==0?"":s?u+1:"["+u+"]",m=c==0?"":i?c+1:"["+c+"]";return a+"R"+f+"C"+m})}}();function TJ(e,t){return e.replace(r4,function(r,n,a,i,o,s){return n+(a=="$"?a+i:tn(WR(i)+t.c))+(o=="$"?o+s:On(HR(s)+t.r))})}function rYe(e,t,r){var n=$i(t),a=n.s,i=hn(r),o={r:i.r-a.r,c:i.c-a.c};return TJ(e,o)}function nYe(e){return e.length!=1}function dL(e){return e.replace(/_xlfn\./g,"")}function Gn(e){e.l+=1}function eu(e,t){var r=e.read_shift(t==1?1:2);return[r&16383,r>>14&1,r>>15&1]}function PJ(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return IJ(e);r.biff==12&&(n=4)}var a=e.read_shift(n),i=e.read_shift(n),o=eu(e,2),s=eu(e,2);return{s:{r:a,c:o[0],cRel:o[1],rRel:o[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function IJ(e){var t=eu(e,2),r=eu(e,2),n=e.read_shift(1),a=e.read_shift(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:a,cRel:r[1],rRel:r[2]}}}function aYe(e,t,r){if(r.biff<8)return IJ(e);var n=e.read_shift(r.biff==12?4:2),a=e.read_shift(r.biff==12?4:2),i=eu(e,2),o=eu(e,2);return{s:{r:n,c:i[0],cRel:i[1],rRel:i[2]},e:{r:a,c:o[0],cRel:o[1],rRel:o[2]}}}function NJ(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return iYe(e);var n=e.read_shift(r&&r.biff==12?4:2),a=eu(e,2);return{r:n,c:a[0],cRel:a[1],rRel:a[2]}}function iYe(e){var t=eu(e,2),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function oYe(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function sYe(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return lYe(e);var a=e.read_shift(n>=12?4:2),i=e.read_shift(2),o=(i&16384)>>14,s=(i&32768)>>15;if(i&=16383,s==1)for(;a>524287;)a-=1048576;if(o==1)for(;i>8191;)i=i-16384;return{r:a,c:i,cRel:o,rRel:s}}function lYe(e){var t=e.read_shift(2),r=e.read_shift(1),n=(t&32768)>>15,a=(t&16384)>>14;return t&=16383,n==1&&t>=8192&&(t=t-16384),a==1&&r>=128&&(r=r-256),{r:t,c:r,cRel:a,rRel:n}}function cYe(e,t,r){var n=(e[e.l++]&96)>>5,a=PJ(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,a]}function uYe(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2,"i"),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12;break}var o=PJ(e,i,r);return[n,a,o]}function dYe(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}function fYe(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12;break}return e.l+=i,[n,a]}function mYe(e,t,r){var n=(e[e.l++]&96)>>5,a=aYe(e,t-1,r);return[n,a]}function hYe(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function fL(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function pYe(e,t,r){e.l+=2;for(var n=e.read_shift(r&&r.biff==2?1:2),a=[],i=0;i<=n;++i)a.push(e.read_shift(r&&r.biff==2?1:2));return a}function vYe(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function gYe(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function yYe(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function xYe(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function kJ(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function bYe(e){return e.read_shift(2),kJ(e)}function SYe(e){return e.read_shift(2),kJ(e)}function wYe(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=NJ(e,0,r);return[n,a]}function CYe(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=sYe(e,0,r);return[n,a]}function EYe(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=e.read_shift(2);r&&r.biff==5&&(e.l+=12);var i=NJ(e,0,r);return[n,a,i]}function $Ye(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=e.read_shift(r&&r.biff<=3?1:2);return[TQe[a],MJ[a],n]}function _Ye(e,t,r){var n=e[e.l++],a=e.read_shift(1),i=r&&r.biff<=3?[n==88?-1:0,e.read_shift(1)]:OYe(e);return[a,(i[0]===0?MJ:OQe)[i[1]]]}function OYe(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function TYe(e,t,r){e.l+=r&&r.biff==2?3:4}function PYe(e,t,r){if(e.l++,r&&r.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function IYe(e){return e.l++,Zl[e.read_shift(1)]}function NYe(e){return e.l++,e.read_shift(2)}function kYe(e){return e.l++,e.read_shift(1)!==0}function RYe(e){return e.l++,ai(e)}function AYe(e,t,r){return e.l++,dg(e,t-1,r)}function MYe(e,t){var r=[e.read_shift(1)];if(t==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=Rn(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=Zl[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=ai(e);break;case 2:r[1]=ef(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function DYe(e,t,r){for(var n=e.read_shift(r.biff==12?4:2),a=[],i=0;i!=n;++i)a.push((r.biff==12?Jd:mC)(e));return a}function jYe(e,t,r){var n=0,a=0;r.biff==12?(n=e.read_shift(4),a=e.read_shift(4)):(a=1+e.read_shift(1),n=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,--a==0&&(a=256));for(var i=0,o=[];i!=n&&(o[i]=[]);++i)for(var s=0;s!=a;++s)o[i][s]=MYe(e,r.biff);return o}function FYe(e,t,r){var n=e.read_shift(1)>>>5&3,a=!r||r.biff>=8?4:2,i=e.read_shift(a);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[n,0,i]}function LYe(e,t,r){if(r.biff==5)return BYe(e);var n=e.read_shift(1)>>>5&3,a=e.read_shift(2),i=e.read_shift(4);return[n,a,i]}function BYe(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[t,r,n]}function zYe(e,t,r){var n=e.read_shift(1)>>>5&3;e.l+=r&&r.biff==2?3:4;var a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function HYe(e,t,r){var n=e.read_shift(1)>>>5&3,a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function WYe(e,t,r){var n=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,r.biff==12&&(e.l+=2),[n]}function VYe(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2),i=4;if(r)switch(r.biff){case 5:i=15;break;case 12:i=6;break}return e.l+=i,[n,a]}var UYe=di,KYe=di,GYe=di;function mg(e,t,r){return e.l+=2,[oYe(e)]}function a4(e){return e.l+=6,[]}var qYe=mg,XYe=a4,YYe=a4,QYe=mg;function RJ(e){return e.l+=2,[Yn(e),e.read_shift(2)&1]}var ZYe=mg,JYe=RJ,eQe=a4,tQe=mg,rQe=mg,nQe=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function aQe(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),a=e.read_shift(2),i=e.read_shift(2),o=nQe[r>>2&31];return{ixti:t,coltype:r&3,rt:o,idx:n,c:a,C:i}}function iQe(e){return e.l+=2,[e.read_shift(4)]}function oQe(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function sQe(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function lQe(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function cQe(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function uQe(e){return e.l+=4,[0,0]}var mL={1:{n:"PtgExp",f:PYe},2:{n:"PtgTbl",f:GYe},3:{n:"PtgAdd",f:Gn},4:{n:"PtgSub",f:Gn},5:{n:"PtgMul",f:Gn},6:{n:"PtgDiv",f:Gn},7:{n:"PtgPower",f:Gn},8:{n:"PtgConcat",f:Gn},9:{n:"PtgLt",f:Gn},10:{n:"PtgLe",f:Gn},11:{n:"PtgEq",f:Gn},12:{n:"PtgGe",f:Gn},13:{n:"PtgGt",f:Gn},14:{n:"PtgNe",f:Gn},15:{n:"PtgIsect",f:Gn},16:{n:"PtgUnion",f:Gn},17:{n:"PtgRange",f:Gn},18:{n:"PtgUplus",f:Gn},19:{n:"PtgUminus",f:Gn},20:{n:"PtgPercent",f:Gn},21:{n:"PtgParen",f:Gn},22:{n:"PtgMissArg",f:Gn},23:{n:"PtgStr",f:AYe},26:{n:"PtgSheet",f:oQe},27:{n:"PtgEndSheet",f:sQe},28:{n:"PtgErr",f:IYe},29:{n:"PtgBool",f:kYe},30:{n:"PtgInt",f:NYe},31:{n:"PtgNum",f:RYe},32:{n:"PtgArray",f:hYe},33:{n:"PtgFunc",f:$Ye},34:{n:"PtgFuncVar",f:_Ye},35:{n:"PtgName",f:FYe},36:{n:"PtgRef",f:wYe},37:{n:"PtgArea",f:cYe},38:{n:"PtgMemArea",f:zYe},39:{n:"PtgMemErr",f:UYe},40:{n:"PtgMemNoMem",f:KYe},41:{n:"PtgMemFunc",f:HYe},42:{n:"PtgRefErr",f:WYe},43:{n:"PtgAreaErr",f:dYe},44:{n:"PtgRefN",f:CYe},45:{n:"PtgAreaN",f:mYe},46:{n:"PtgMemAreaN",f:lQe},47:{n:"PtgMemNoMemN",f:cQe},57:{n:"PtgNameX",f:LYe},58:{n:"PtgRef3d",f:EYe},59:{n:"PtgArea3d",f:uYe},60:{n:"PtgRefErr3d",f:VYe},61:{n:"PtgAreaErr3d",f:fYe},255:{}},dQe={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},fQe={1:{n:"PtgElfLel",f:RJ},2:{n:"PtgElfRw",f:tQe},3:{n:"PtgElfCol",f:qYe},6:{n:"PtgElfRwV",f:rQe},7:{n:"PtgElfColV",f:QYe},10:{n:"PtgElfRadical",f:ZYe},11:{n:"PtgElfRadicalS",f:eQe},13:{n:"PtgElfColS",f:XYe},15:{n:"PtgElfColSV",f:YYe},16:{n:"PtgElfRadicalLel",f:JYe},25:{n:"PtgList",f:aQe},29:{n:"PtgSxName",f:iQe},255:{}},mQe={0:{n:"PtgAttrNoop",f:uQe},1:{n:"PtgAttrSemi",f:xYe},2:{n:"PtgAttrIf",f:gYe},4:{n:"PtgAttrChoose",f:pYe},8:{n:"PtgAttrGoto",f:vYe},16:{n:"PtgAttrSum",f:TYe},32:{n:"PtgAttrBaxcel",f:fL},33:{n:"PtgAttrBaxcel",f:fL},64:{n:"PtgAttrSpace",f:bYe},65:{n:"PtgAttrSpaceSemi",f:SYe},128:{n:"PtgAttrIfError",f:yYe},255:{}};function hg(e,t,r,n){if(n.biff<8)return di(e,t);for(var a=e.l+t,i=[],o=0;o!==r.length;++o)switch(r[o][0]){case"PtgArray":r[o][1]=jYe(e,0,n),i.push(r[o][1]);break;case"PtgMemArea":r[o][2]=DYe(e,r[o][1],n),i.push(r[o][2]);break;case"PtgExp":n&&n.biff==12&&(r[o][1][1]=e.read_shift(4),i.push(r[o][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[o][0]}return t=a-e.l,t!==0&&i.push(di(e,t)),i}function pg(e,t,r){for(var n=e.l+t,a,i,o=[];n!=e.l;)t=n-e.l,i=e[e.l],a=mL[i]||mL[dQe[i]],(i===24||i===25)&&(a=(i===24?fQe:mQe)[e[e.l+1]]),!a||!a.f?di(e,t):o.push([a.n,a.f(e,t,r)]);return o}function hQe(e){for(var t=[],r=0;r=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function vQe(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function AJ(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),t==0?"":e.XTI[t-1];if(!n)return"SH33TJSERR1";var a="";if(r.biff>8)switch(e[n[0]][0]){case 357:return a=n[1]==-1?"#REF":e.SheetNames[n[1]],n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 358:return r.SID!=null?e.SheetNames[r.SID]:"SH33TJSSAME"+e[n[0]][0];case 355:default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return a=n[1]==-1?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(i){return i.Name}).join(";;");default:return e[n[0]][0][3]?(a=n[1]==-1?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?a:a+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function hL(e,t,r){var n=AJ(e,t,r);return n=="#REF"?n:vQe(n,r)}function ei(e,t,r,n,a){var i=a&&a.biff||8,o={s:{c:0,r:0},e:{c:0,r:0}},s=[],l,c,u,f=0,m=0,h,v="";if(!e[0]||!e[0][0])return"";for(var p=-1,g="",y=0,x=e[0].length;y=0){switch(e[0][p][1][0]){case 0:g=En(" ",e[0][p][1][1]);break;case 1:g=En("\r",e[0][p][1][1]);break;default:if(g="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0])}c=c+g,p=-1}s.push(c+pQe[b[0]]+l);break;case"PtgIsect":l=s.pop(),c=s.pop(),s.push(c+" "+l);break;case"PtgUnion":l=s.pop(),c=s.pop(),s.push(c+","+l);break;case"PtgRange":l=s.pop(),c=s.pop(),s.push(c+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":u=Ah(b[1][1],o,a),s.push(Mh(u,i));break;case"PtgRefN":u=r?Ah(b[1][1],r,a):b[1][1],s.push(Mh(u,i));break;case"PtgRef3d":f=b[1][1],u=Ah(b[1][2],o,a),v=hL(n,f,a),s.push(v+"!"+Mh(u,i));break;case"PtgFunc":case"PtgFuncVar":var S=b[1][0],w=b[1][1];S||(S=0),S&=127;var E=S==0?[]:s.slice(-S);s.length-=S,w==="User"&&(w=E.shift()),s.push(w+"("+E.join(",")+")");break;case"PtgBool":s.push(b[1]?"TRUE":"FALSE");break;case"PtgInt":s.push(b[1]);break;case"PtgNum":s.push(String(b[1]));break;case"PtgStr":s.push('"'+b[1].replace(/"/g,'""')+'"');break;case"PtgErr":s.push(b[1]);break;case"PtgAreaN":h=W5(b[1][1],r?{s:r}:o,a),s.push(NE(h,a));break;case"PtgArea":h=W5(b[1][1],o,a),s.push(NE(h,a));break;case"PtgArea3d":f=b[1][1],h=b[1][2],v=hL(n,f,a),s.push(v+"!"+NE(h,a));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":m=b[1][2];var C=(n.names||[])[m-1]||(n[0]||[])[m],O=C?C.Name:"SH33TJSNAME"+String(m);O&&O.slice(0,6)=="_xlfn."&&!a.xlfn&&(O=O.slice(6)),s.push(O);break;case"PtgNameX":var _=b[1][1];m=b[1][2];var T;if(a.biff<=5)_<0&&(_=-_),n[_]&&(T=n[_][m]);else{var I="";if(((n[_]||[])[0]||[])[0]==14849||(((n[_]||[])[0]||[])[0]==1025?n[_][m]&&n[_][m].itab>0&&(I=n.SheetNames[n[_][m].itab-1]+"!"):I=n.SheetNames[m-1]+"!"),n[_]&&n[_][m])I+=n[_][m].Name;else if(n[0]&&n[0][m])I+=n[0][m].Name;else{var N=(AJ(n,_,a)||"").split(";;");N[m-1]?I=N[m-1]:I+="SH33TJSERRX"}s.push(I);break}T||(T={Name:"SH33TJSERRY"}),s.push(T.Name);break;case"PtgParen":var D="(",k=")";if(p>=0){switch(g="",e[0][p][1][0]){case 2:D=En(" ",e[0][p][1][1])+D;break;case 3:D=En("\r",e[0][p][1][1])+D;break;case 4:k=En(" ",e[0][p][1][1])+k;break;case 5:k=En("\r",e[0][p][1][1])+k;break;default:if(a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][p][1][0])}p=-1}s.push(D+s.pop()+k);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":u={c:b[1][1],r:b[1][0]};var R={c:r.c,r:r.r};if(n.sharedf[Xt(u)]){var A=n.sharedf[Xt(u)];s.push(ei(A,o,R,n,a))}else{var j=!1;for(l=0;l!=n.arrayf.length;++l)if(c=n.arrayf[l],!(u.cc[0].e.c)&&!(u.rc[0].e.r)){s.push(ei(c[1],o,R,n,a)),j=!0;break}j||s.push(b[1])}break;case"PtgArray":s.push("{"+hQe(b[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":p=y;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":s.push("");break;case"PtgAreaErr":s.push("#REF!");break;case"PtgAreaErr3d":s.push("#REF!");break;case"PtgList":s.push("Table"+b[1].idx+"[#"+b[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(b));default:throw new Error("Unrecognized Formula Token: "+String(b))}var F=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(a.biff!=3&&p>=0&&F.indexOf(e[0][y][0])==-1){b=e[0][p];var M=!0;switch(b[1][0]){case 4:M=!1;case 0:g=En(" ",b[1][1]);break;case 5:M=!1;case 1:g=En("\r",b[1][1]);break;default:if(g="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+b[1][0])}s.push((M?g:"")+s.pop()+(M?"":g)),p=-1}}if(s.length>1&&a.WTF)throw new Error("bad formula stack");return s[0]}function gQe(e,t,r){var n=e.l+t,a=r.biff==2?1:2,i,o=e.read_shift(a);if(o==65535)return[[],di(e,t-2)];var s=pg(e,o,r);return t!==o+a&&(i=hg(e,t-o-a,s,r)),e.l=n,[s,i]}function yQe(e,t,r){var n=e.l+t,a=r.biff==2?1:2,i,o=e.read_shift(a);if(o==65535)return[[],di(e,t-2)];var s=pg(e,o,r);return t!==o+a&&(i=hg(e,t-o-a,s,r)),e.l=n,[s,i]}function xQe(e,t,r,n){var a=e.l+t,i=pg(e,n,r),o;return a!==e.l&&(o=hg(e,a-e.l,i,r)),[i,o]}function bQe(e,t,r){var n=e.l+t,a,i=e.read_shift(2),o=pg(e,i,r);return i==65535?[[],di(e,t-2)]:(t!==i+2&&(a=hg(e,n-i-2,o,r)),[o,a])}function SQe(e){var t;if(Sl(e,e.l+6)!==65535)return[ai(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=e[e.l+2]===1,e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}function wQe(e){if(e==null){var t=Je(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}else if(typeof e=="number")return Pd(e);return Pd(0)}function DE(e,t,r){var n=e.l+t,a=dl(e);r.biff==2&&++e.l;var i=SQe(e),o=e.read_shift(1);r.biff!=2&&(e.read_shift(1),r.biff>=5&&e.read_shift(4));var s=yQe(e,n-e.l,r);return{cell:a,val:i[0],formula:s,shared:o>>3&1,tt:i[1]}}function CQe(e,t,r,n,a){var i=Nd(t,r,a),o=wQe(e.v),s=Je(6),l=33;s.write_shift(2,l),s.write_shift(4,0);for(var c=Je(e.bf.length),u=0;u0?hg(e,i,a,r):null;return[a,o]}var EQe=hC,pC=hC,$Qe=hC,_Qe=hC,OQe={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},MJ={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},TQe={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function pL(e){return e.slice(0,3)=="of:"&&(e=e.slice(3)),e.charCodeAt(0)==61&&(e=e.slice(1),e.charCodeAt(0)==61&&(e=e.slice(1))),e=e.replace(/COM\.MICROSOFT\./g,""),e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(t,r){return r.replace(/\./g,"")}),e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1"),e.replace(/[;~]/g,",").replace(/\|/g,";")}function PQe(e){var t="of:="+e.replace(r4,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function jE(e){var t=e.split(":"),r=t[0].split(".")[0];return[r,t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}function IQe(e){return e.replace(/\./,"!")}var jh={},o0={},Fh=typeof Map<"u";function i4(e,t,r){var n=0,a=e.length;if(r){if(Fh?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var i=Fh?r.get(t):r[t];n-1?(r.width=gb(n),r.customWidth=1):t.width!=null&&(r.width=t.width),t.hidden&&(r.hidden=!0),t.level!=null&&(r.outlineLevel=r.level=t.level),r}function id(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];t=="xlml"&&(r=[1,1,1,1,.5,.5]),e.left==null&&(e.left=r[0]),e.right==null&&(e.right=r[1]),e.top==null&&(e.top=r[2]),e.bottom==null&&(e.bottom=r[3]),e.header==null&&(e.header=r[4]),e.footer==null&&(e.footer=r[5])}}function Su(e,t,r){var n=r.revssf[t.z!=null?t.z:"General"],a=60,i=e.length;if(n==null&&r.ssf){for(;a<392;++a)if(r.ssf[a]==null){el(t.z,a),r.ssf[a]=t.z,r.revssf[t.z]=n=a;break}}for(a=0;a!=i;++a)if(e[a].numFmtId===n)return a;return e[i]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function DJ(e,t,r,n,a,i){try{n.cellNF&&(e.z=Kt[t])}catch(s){if(n.WTF)throw s}if(!(e.t==="z"&&!n.cellStyles)){if(e.t==="d"&&typeof e.v=="string"&&(e.v=rn(e.v)),(!n||n.cellText!==!1)&&e.t!=="z")try{if(Kt[t]==null&&el(OVe[t]||"General",t),e.t==="e")e.w=e.w||Zl[e.v];else if(t===0)if(e.t==="n")(e.v|0)===e.v?e.w=e.v.toString(10):e.w=Vp(e.v);else if(e.t==="d"){var o=ya(e.v);(o|0)===o?e.w=o.toString(10):e.w=Vp(o)}else{if(e.v===void 0)return"";e.w=Od(e.v,o0)}else e.t==="d"?e.w=po(t,ya(e.v),o0):e.w=po(t,e.v,o0)}catch(s){if(n.WTF)throw s}if(n.cellStyles&&r!=null)try{e.s=i.Fills[r],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=vb(a.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),n.WTF&&(e.s.fgColor.raw_rgb=a.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=vb(a.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),n.WTF&&(e.s.bgColor.raw_rgb=a.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(s){if(n.WTF&&i.Fills)throw s}}}function NQe(e,t,r){if(e&&e["!ref"]){var n=yr(e["!ref"]);if(n.e.c=0&&r.s.c>=0&&(e["!ref"]=ir(r))}var RQe=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,AQe=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,MQe=/<(?:\w:)?hyperlink [^>]*>/mg,DQe=/"(\w*:\w*)"/,jQe=/<(?:\w:)?col\b[^>]*[\/]?>/g,FQe=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,LQe=/<(?:\w:)?pageMargins[^>]*\/>/g,jJ=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,BQe=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,zQe=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function HQe(e,t,r,n,a,i,o){if(!e)return e;n||(n={"!id":{}});var s=t.dense?[]:{},l={s:{r:2e6,c:2e6},e:{r:0,c:0}},c="",u="",f=e.match(AQe);f?(c=e.slice(0,f.index),u=e.slice(f.index+f[0].length)):c=u=e;var m=c.match(jJ);m?o4(m[0],s,a,r):(m=c.match(BQe))&&VQe(m[0],m[1]||"",s,a,r);var h=(c.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(h>0){var v=c.slice(h,h+50).match(DQe);v&&kQe(s,v[1])}var p=c.match(zQe);p&&p[1]&&nZe(p[1],a);var g=[];if(t.cellStyles){var y=c.match(jQe);y&&ZQe(g,y)}f&&oZe(f[1],s,t,l,i,o);var x=u.match(FQe);x&&(s["!autofilter"]=eZe(x[0]));var b=[],S=u.match(RQe);if(S)for(h=0;h!=S.length;++h)b[h]=yr(S[h].slice(S[h].indexOf('"')+1));var w=u.match(MQe);w&&XQe(s,w,n);var E=u.match(LQe);if(E&&(s["!margins"]=YQe(Zt(E[0]))),!s["!ref"]&&l.e.c>=l.s.c&&l.e.r>=l.s.r&&(s["!ref"]=ir(l)),t.sheetRows>0&&s["!ref"]){var C=yr(s["!ref"]);t.sheetRows<=+C.e.r&&(C.e.r=t.sheetRows-1,C.e.r>l.e.r&&(C.e.r=l.e.r),C.e.rl.e.c&&(C.e.c=l.e.c),C.e.c0&&(s["!cols"]=g),b.length>0&&(s["!merges"]=b),s}function WQe(e){if(e.length===0)return"";for(var t='',r=0;r!=e.length;++r)t+='';return t+""}function o4(e,t,r,n){var a=Zt(e);r.Sheets[n]||(r.Sheets[n]={}),a.codeName&&(r.Sheets[n].CodeName=Cr(Lr(a.codeName)))}function VQe(e,t,r,n,a){o4(e.slice(0,e.indexOf(">")),r,n,a)}function UQe(e,t,r,n,a){var i=!1,o={},s=null;if(n.bookType!=="xlsx"&&t.vbaraw){var l=t.SheetNames[r];try{t.Workbook&&(l=t.Workbook.Sheets[r].CodeName||l)}catch{}i=!0,o.codeName=Ys(Mr(l))}if(e&&e["!outline"]){var c={summaryBelow:1,summaryRight:1};e["!outline"].above&&(c.summaryBelow=0),e["!outline"].left&&(c.summaryRight=0),s=(s||"")+Ct("outlinePr",null,c)}!i&&!s||(a[a.length]=Ct("sheetPr",s,o))}var KQe=["objects","scenarios","selectLockedCells","selectUnlockedCells"],GQe=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function qQe(e){var t={sheet:1};return KQe.forEach(function(r){e[r]!=null&&e[r]&&(t[r]="1")}),GQe.forEach(function(r){e[r]!=null&&!e[r]&&(t[r]="0")}),e.password&&(t.password=JR(e.password).toString(16).toUpperCase()),Ct("sheetProtection",null,t)}function XQe(e,t,r){for(var n=Array.isArray(e),a=0;a!=t.length;++a){var i=Zt(Lr(t[a]),!0);if(!i.ref)return;var o=((r||{})["!id"]||[])[i.id];o?(i.Target=o.Target,i.location&&(i.Target+="#"+Cr(i.location))):(i.Target="#"+Cr(i.location),o={Target:i.Target,TargetMode:"Internal"}),i.Rel=o,i.tooltip&&(i.Tooltip=i.tooltip,delete i.tooltip);for(var s=yr(i.ref),l=s.s.r;l<=s.e.r;++l)for(var c=s.s.c;c<=s.e.c;++c){var u=Xt({c,r:l});n?(e[l]||(e[l]=[]),e[l][c]||(e[l][c]={t:"z",v:void 0}),e[l][c].l=i):(e[u]||(e[u]={t:"z",v:void 0}),e[u].l=i)}}}function YQe(e){var t={};return["left","right","top","bottom","header","footer"].forEach(function(r){e[r]&&(t[r]=parseFloat(e[r]))}),t}function QQe(e){return id(e),Ct("pageMargins",null,e)}function ZQe(e,t){for(var r=!1,n=0;n!=t.length;++n){var a=Zt(t[n],!0);a.hidden&&(a.hidden=Jr(a.hidden));var i=parseInt(a.min,10)-1,o=parseInt(a.max,10)-1;for(a.outlineLevel&&(a.level=+a.outlineLevel||0),delete a.min,delete a.max,a.width=+a.width,!r&&a.width&&(r=!0,e4(a.width)),Jc(a);i<=o;)e[i++]=Hr(a)}}function JQe(e,t){for(var r=[""],n,a=0;a!=t.length;++a)(n=t[a])&&(r[r.length]=Ct("col",null,vC(a,n)));return r[r.length]="",r.join("")}function eZe(e){var t={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return t}function tZe(e,t,r,n){var a=typeof e.ref=="string"?e.ref:ir(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var i=r.Workbook.Names,o=$i(a);o.s.r==o.e.r&&(o.e.r=$i(t["!ref"]).e.r,a=ir(o));for(var s=0;sa-z][^>]*)?\/?>/;function nZe(e,t){t.Views||(t.Views=[{}]),(e.match(rZe)||[]).forEach(function(r,n){var a=Zt(r);t.Views[n]||(t.Views[n]={}),+a.zoomScale&&(t.Views[n].zoom=+a.zoomScale),Jr(a.rightToLeft)&&(t.Views[n].RTL=!0)})}function aZe(e,t,r,n){var a={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(a.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),Ct("sheetViews",Ct("sheetView",null,a),{})}function iZe(e,t,r,n){if(e.c&&r["!comments"].push([t,e.c]),e.v===void 0&&typeof e.f!="string"||e.t==="z"&&!e.f)return"";var a="",i=e.t,o=e.v;if(e.t!=="z")switch(e.t){case"b":a=e.v?"1":"0";break;case"n":a=""+e.v;break;case"e":a=Zl[e.v];break;case"d":n&&n.cellDates?a=rn(e.v,-1).toISOString():(e=Hr(e),e.t="n",a=""+(e.v=ya(rn(e.v)))),typeof e.z>"u"&&(e.z=Kt[14]);break;default:a=e.v;break}var s=Va("v",Mr(a)),l={r:t},c=Su(n.cellXfs,e,n);switch(c!==0&&(l.s=c),e.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){s=Va("v",""+i4(n.Strings,e.v,n.revStrings)),l.t="s";break}l.t="str";break}if(e.t!=i&&(e.t=i,e.v=o),typeof e.f=="string"&&e.f){var u=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;s=Ct("f",Mr(e.f),u)+(e.v!=null?s:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(l.cm=1),Ct("c",s,l)}var oZe=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,r=/r=["']([^"']*)["']/,n=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,a=/ref=["']([^"']*)["']/,i=Up("v"),o=Up("f");return function(l,c,u,f,m,h){for(var v=0,p="",g=[],y=[],x=0,b=0,S=0,w="",E,C,O=0,_=0,T,I,N=0,D=0,k=Array.isArray(h.CellXf),R,A=[],j=[],F=Array.isArray(c),M=[],V={},K=!1,L=!!u.sheetStubs,B=l.split(t),W=0,H=B.length;W!=H;++W){p=B[W].trim();var U=p.length;if(U!==0){var X=0;e:for(v=0;v":if(p[v-1]!="/"){++v;break e}if(u&&u.cellStyles){if(C=Zt(p.slice(X,v),!0),O=C.r!=null?parseInt(C.r,10):O+1,_=-1,u.sheetRows&&u.sheetRows=v)break;if(C=Zt(p.slice(X,v),!0),O=C.r!=null?parseInt(C.r,10):O+1,_=-1,!(u.sheetRows&&u.sheetRowsO-1&&(f.s.r=O-1),f.e.r":"")+p,y!=null&&y.length===2){for(x=0,w=y[1],b=0;b!=w.length&&!((S=w.charCodeAt(b)-64)<1||S>26);++b)x=26*x+S;--x,_=x}else++_;for(b=0;b!=p.length&&p.charCodeAt(b)!==62;++b);if(++b,C=Zt(p.slice(0,b),!0),C.r||(C.r=Xt({r:O-1,c:_})),w=p.slice(b),E={t:""},(y=w.match(i))!=null&&y[1]!==""&&(E.v=Cr(y[1])),u.cellFormula){if((y=w.match(o))!=null&&y[1]!==""){if(E.f=Cr(Lr(y[1])).replace(/\r\n/g,` +`),u.xlfn||(E.f=dL(E.f)),y[0].indexOf('t="array"')>-1)E.F=(w.match(a)||[])[1],E.F.indexOf(":")>-1&&A.push([yr(E.F),E.F]);else if(y[0].indexOf('t="shared"')>-1){I=Zt(y[0]);var G=Cr(Lr(y[1]));u.xlfn||(G=dL(G)),j[parseInt(I.si,10)]=[I,G,C.r]}}else(y=w.match(/]*\/>/))&&(I=Zt(y[0]),j[I.si]&&(E.f=rYe(j[I.si][1],j[I.si][2],C.r)));var Q=hn(C.r);for(b=0;b=A[b][0].s.r&&Q.r<=A[b][0].e.r&&Q.c>=A[b][0].s.c&&Q.c<=A[b][0].e.c&&(E.F=A[b][1])}if(C.t==null&&E.v===void 0)if(E.f||E.F)E.v=0,E.t="n";else if(L)E.t="z";else continue;else E.t=C.t||"n";switch(f.s.c>_&&(f.s.c=_),f.e.c<_&&(f.e.c=_),E.t){case"n":if(E.v==""||E.v==null){if(!L)continue;E.t="z"}else E.v=parseFloat(E.v);break;case"s":if(typeof E.v>"u"){if(!L)continue;E.t="z"}else T=jh[parseInt(E.v,10)],E.v=T.t,E.r=T.r,u.cellHTML&&(E.h=T.h);break;case"str":E.t="s",E.v=E.v!=null?Lr(E.v):"",u.cellHTML&&(E.h=AR(E.v));break;case"inlineStr":y=w.match(n),E.t="s",y!=null&&(T=ZR(y[1]))?(E.v=T.t,u.cellHTML&&(E.h=T.h)):E.v="";break;case"b":E.v=Jr(E.v);break;case"d":u.cellDates?E.v=rn(E.v,1):(E.v=ya(rn(E.v,1)),E.t="n");break;case"e":(!u||u.cellText!==!1)&&(E.w=E.v),E.v=LZ[E.v];break}if(N=D=0,R=null,k&&C.s!==void 0&&(R=h.CellXf[C.s],R!=null&&(R.numFmtId!=null&&(N=R.numFmtId),u.cellStyles&&R.fillId!=null&&(D=R.fillId))),DJ(E,N,D,u,m,h),u.cellDates&&k&&E.t=="n"&&qd(Kt[N])&&(E.t="d",E.v=dC(E.v)),C.cm&&u.xlmeta){var J=(u.xlmeta.Cell||[])[+C.cm-1];J&&J.type=="XLDAPR"&&(E.D=!0)}if(F){var z=hn(C.r);c[z.r]||(c[z.r]=[]),c[z.r][z.c]=E}else c[C.r]=E}}}}M.length>0&&(c["!rows"]=M)}}();function sZe(e,t,r,n){var a=[],i=[],o=yr(e["!ref"]),s="",l,c="",u=[],f=0,m=0,h=e["!rows"],v=Array.isArray(e),p={r:c},g,y=-1;for(m=o.s.c;m<=o.e.c;++m)u[m]=tn(m);for(f=o.s.r;f<=o.e.r;++f){for(i=[],c=On(f),m=o.s.c;m<=o.e.c;++m){l=u[m]+c;var x=v?(e[f]||[])[m]:e[l];x!==void 0&&(s=iZe(x,l,e,t))!=null&&i.push(s)}(i.length>0||h&&h[f])&&(p={r:c},h&&h[f]&&(g=h[f],g.hidden&&(p.hidden=1),y=-1,g.hpx?y=Zp(g.hpx):g.hpt&&(y=g.hpt),y>-1&&(p.ht=y,p.customHeight=1),g.level&&(p.outlineLevel=g.level)),a[a.length]=Ct("row",i.join(""),p))}if(h)for(;f-1&&(p.ht=y,p.customHeight=1),g.level&&(p.outlineLevel=g.level),a[a.length]=Ct("row","",p));return a.join("")}function FJ(e,t,r,n){var a=[Bn,Ct("worksheet",null,{xmlns:Xd[0],"xmlns:r":da.r})],i=r.SheetNames[e],o=0,s="",l=r.Sheets[i];l==null&&(l={});var c=l["!ref"]||"A1",u=yr(c);if(u.e.c>16383||u.e.r>1048575){if(t.WTF)throw new Error("Range "+c+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575),c=ir(u)}n||(n={}),l["!comments"]=[];var f=[];UQe(l,r,e,t,a),a[a.length]=Ct("dimension",null,{ref:c}),a[a.length]=aZe(l,t,e,r),t.sheetFormat&&(a[a.length]=Ct("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),l["!cols"]!=null&&l["!cols"].length>0&&(a[a.length]=JQe(l,l["!cols"])),a[o=a.length]="",l["!links"]=[],l["!ref"]!=null&&(s=sZe(l,t),s.length>0&&(a[a.length]=s)),a.length>o+1&&(a[a.length]="",a[o]=a[o].replace("/>",">")),l["!protect"]&&(a[a.length]=qQe(l["!protect"])),l["!autofilter"]!=null&&(a[a.length]=tZe(l["!autofilter"],l,r,e)),l["!merges"]!=null&&l["!merges"].length>0&&(a[a.length]=WQe(l["!merges"]));var m=-1,h,v=-1;return l["!links"].length>0&&(a[a.length]="",l["!links"].forEach(function(p){p[1].Target&&(h={ref:p[0]},p[1].Target.charAt(0)!="#"&&(v=Rr(n,-1,Mr(p[1].Target).replace(/#.*$/,""),hr.HLINK),h["r:id"]="rId"+v),(m=p[1].Target.indexOf("#"))>-1&&(h.location=Mr(p[1].Target.slice(m+1))),p[1].Tooltip&&(h.tooltip=Mr(p[1].Tooltip)),a[a.length]=Ct("hyperlink",null,h))}),a[a.length]=""),delete l["!links"],l["!margins"]!=null&&(a[a.length]=QQe(l["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(a[a.length]=Va("ignoredErrors",Ct("ignoredError",null,{numberStoredAsText:1,sqref:c}))),f.length>0&&(v=Rr(n,-1,"../drawings/drawing"+(e+1)+".xml",hr.DRAW),a[a.length]=Ct("drawing",null,{"r:id":"rId"+v}),l["!drawing"]=f),l["!comments"].length>0&&(v=Rr(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",hr.VML),a[a.length]=Ct("legacyDrawing",null,{"r:id":"rId"+v}),l["!legacy"]=v),a.length>1&&(a[a.length]="",a[1]=a[1].replace("/>",">")),a.join("")}function lZe(e,t){var r={},n=e.l+t;r.r=e.read_shift(4),e.l+=4;var a=e.read_shift(2);e.l+=1;var i=e.read_shift(1);return e.l=n,i&7&&(r.level=i&7),i&16&&(r.hidden=!0),i&32&&(r.hpt=a/20),r}function cZe(e,t,r){var n=Je(145),a=(r["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var i=320;a.hpx?i=Zp(a.hpx)*20:a.hpt&&(i=a.hpt*20),n.write_shift(2,i),n.write_shift(1,0);var o=0;a.level&&(o|=a.level),a.hidden&&(o|=16),(a.hpx||a.hpt)&&(o|=32),n.write_shift(1,o),n.write_shift(1,0);var s=0,l=n.l;n.l+=4;for(var c={r:e,c:0},u=0;u<16;++u)if(!(t.s.c>u+1<<10||t.e.cn.l?n.slice(0,n.l):n}function uZe(e,t,r,n){var a=cZe(n,r,t);(a.length>17||(t["!rows"]||[])[n])&&st(e,0,a)}var dZe=Jd,fZe=_m;function mZe(){}function hZe(e,t){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=gUe(e),r}function pZe(e,t,r){r==null&&(r=Je(84+4*e.length));var n=192;t&&(t.above&&(n&=-65),t.left&&(n&=-129)),r.write_shift(1,n);for(var a=1;a<3;++a)r.write_shift(1,0);return mb({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),AZ(e,r),r.slice(0,r.l)}function vZe(e){var t=ts(e);return[t]}function gZe(e,t,r){return r==null&&(r=Je(8)),Yd(t,r)}function yZe(e){var t=Qd(e);return[t]}function xZe(e,t,r){return r==null&&(r=Je(4)),Zd(t,r)}function bZe(e){var t=ts(e),r=e.read_shift(1);return[t,r,"b"]}function SZe(e,t,r){return r==null&&(r=Je(9)),Yd(t,r),r.write_shift(1,e.v?1:0),r}function wZe(e){var t=Qd(e),r=e.read_shift(1);return[t,r,"b"]}function CZe(e,t,r){return r==null&&(r=Je(5)),Zd(t,r),r.write_shift(1,e.v?1:0),r}function EZe(e){var t=ts(e),r=e.read_shift(1);return[t,r,"e"]}function $Ze(e,t,r){return r==null&&(r=Je(9)),Yd(t,r),r.write_shift(1,e.v),r}function _Ze(e){var t=Qd(e),r=e.read_shift(1);return[t,r,"e"]}function OZe(e,t,r){return r==null&&(r=Je(8)),Zd(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function TZe(e){var t=ts(e),r=e.read_shift(4);return[t,r,"s"]}function PZe(e,t,r){return r==null&&(r=Je(12)),Yd(t,r),r.write_shift(4,t.v),r}function IZe(e){var t=Qd(e),r=e.read_shift(4);return[t,r,"s"]}function NZe(e,t,r){return r==null&&(r=Je(8)),Zd(t,r),r.write_shift(4,t.v),r}function kZe(e){var t=ts(e),r=ai(e);return[t,r,"n"]}function RZe(e,t,r){return r==null&&(r=Je(16)),Yd(t,r),Pd(e.v,r),r}function LJ(e){var t=Qd(e),r=ai(e);return[t,r,"n"]}function AZe(e,t,r){return r==null&&(r=Je(12)),Zd(t,r),Pd(e.v,r),r}function MZe(e){var t=ts(e),r=GR(e);return[t,r,"n"]}function DZe(e,t,r){return r==null&&(r=Je(12)),Yd(t,r),MZ(e.v,r),r}function jZe(e){var t=Qd(e),r=GR(e);return[t,r,"n"]}function FZe(e,t,r){return r==null&&(r=Je(8)),Zd(t,r),MZ(e.v,r),r}function LZe(e){var t=ts(e),r=VR(e);return[t,r,"is"]}function BZe(e){var t=ts(e),r=ci(e);return[t,r,"str"]}function zZe(e,t,r){return r==null&&(r=Je(12+4*e.v.length)),Yd(t,r),ka(e.v,r),r.length>r.l?r.slice(0,r.l):r}function HZe(e){var t=Qd(e),r=ci(e);return[t,r,"str"]}function WZe(e,t,r){return r==null&&(r=Je(8+4*e.v.length)),Zd(t,r),ka(e.v,r),r.length>r.l?r.slice(0,r.l):r}function VZe(e,t,r){var n=e.l+t,a=ts(e);a.r=r["!row"];var i=e.read_shift(1),o=[a,i,"b"];if(r.cellFormula){e.l+=2;var s=pC(e,n-e.l,r);o[3]=ei(s,null,a,r.supbooks,r)}else e.l=n;return o}function UZe(e,t,r){var n=e.l+t,a=ts(e);a.r=r["!row"];var i=e.read_shift(1),o=[a,i,"e"];if(r.cellFormula){e.l+=2;var s=pC(e,n-e.l,r);o[3]=ei(s,null,a,r.supbooks,r)}else e.l=n;return o}function KZe(e,t,r){var n=e.l+t,a=ts(e);a.r=r["!row"];var i=ai(e),o=[a,i,"n"];if(r.cellFormula){e.l+=2;var s=pC(e,n-e.l,r);o[3]=ei(s,null,a,r.supbooks,r)}else e.l=n;return o}function GZe(e,t,r){var n=e.l+t,a=ts(e);a.r=r["!row"];var i=ci(e),o=[a,i,"str"];if(r.cellFormula){e.l+=2;var s=pC(e,n-e.l,r);o[3]=ei(s,null,a,r.supbooks,r)}else e.l=n;return o}var qZe=Jd,XZe=_m;function YZe(e,t){return t==null&&(t=Je(4)),t.write_shift(4,e),t}function QZe(e,t){var r=e.l+t,n=Jd(e),a=UR(e),i=ci(e),o=ci(e),s=ci(e);e.l=r;var l={rfx:n,relId:a,loc:i,display:s};return o&&(l.Tooltip=o),l}function ZZe(e,t){var r=Je(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));_m({s:hn(e[0]),e:hn(e[0])},r),KR("rId"+t,r);var n=e[1].Target.indexOf("#"),a=n==-1?"":e[1].Target.slice(n+1);return ka(a||"",r),ka(e[1].Tooltip||"",r),ka("",r),r.slice(0,r.l)}function JZe(){}function eJe(e,t,r){var n=e.l+t,a=DZ(e),i=e.read_shift(1),o=[a];if(o[2]=i,r.cellFormula){var s=EQe(e,n-e.l,r);o[1]=s}else e.l=n;return o}function tJe(e,t,r){var n=e.l+t,a=Jd(e),i=[a];if(r.cellFormula){var o=_Qe(e,n-e.l,r);i[1]=o,e.l=n}else e.l=n;return i}function rJe(e,t,r){r==null&&(r=Je(18));var n=vC(e,t);r.write_shift(-4,e),r.write_shift(-4,e),r.write_shift(4,(n.width||10)*256),r.write_shift(4,0);var a=0;return t.hidden&&(a|=1),typeof n.width=="number"&&(a|=2),t.level&&(a|=t.level<<8),r.write_shift(2,a),r}var BJ=["left","right","top","bottom","header","footer"];function nJe(e){var t={};return BJ.forEach(function(r){t[r]=ai(e)}),t}function aJe(e,t){return t==null&&(t=Je(6*8)),id(e),BJ.forEach(function(r){Pd(e[r],t)}),t}function iJe(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function oJe(e,t,r){r==null&&(r=Je(30));var n=924;return(((t||{}).Views||[])[0]||{}).RTL&&(n|=32),r.write_shift(2,n),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function sJe(e){var t=Je(24);return t.write_shift(4,4),t.write_shift(4,1),_m(e,t),t}function lJe(e,t){return t==null&&(t=Je(16*4+2)),t.write_shift(2,e.password?JR(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(r){r[1]?t.write_shift(4,e[r[0]]!=null&&!e[r[0]]?1:0):t.write_shift(4,e[r[0]]!=null&&e[r[0]]?0:1)}),t}function cJe(){}function uJe(){}function dJe(e,t,r,n,a,i,o){if(!e)return e;var s=t||{};n||(n={"!id":{}});var l=s.dense?[]:{},c,u={s:{r:2e6,c:2e6},e:{r:0,c:0}},f=!1,m=!1,h,v,p,g,y,x,b,S,w,E=[];s.biff=12,s["!row"]=0;var C=0,O=!1,_=[],T={},I=s.supbooks||a.supbooks||[[]];if(I.sharedf=T,I.arrayf=_,I.SheetNames=a.SheetNames||a.Sheets.map(function(F){return F.name}),!s.supbooks&&(s.supbooks=I,a.Names))for(var N=0;N=L[0].s.r&&h.r<=L[0].e.r&&y>=L[0].s.c&&y<=L[0].e.c&&(v.F=ir(L[0]),O=!0)}!O&&M.length>3&&(v.f=M[3])}if(u.s.r>h.r&&(u.s.r=h.r),u.s.c>y&&(u.s.c=y),u.e.rh.r&&(u.s.r=h.r),u.s.c>y&&(u.s.c=y),u.e.r=M.s;)D[M.e--]={width:M.w/256,hidden:!!(M.flags&1),level:M.level},R||(R=!0,e4(M.w/256)),Jc(D[M.e+1]);break;case 161:l["!autofilter"]={ref:ir(M)};break;case 476:l["!margins"]=M;break;case 147:a.Sheets[r]||(a.Sheets[r]={}),M.name&&(a.Sheets[r].CodeName=M.name),(M.above||M.left)&&(l["!outline"]={above:M.above,left:M.left});break;case 137:a.Views||(a.Views=[{}]),a.Views[0]||(a.Views[0]={}),M.RTL&&(a.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:break;case 151:break;case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:f=!0;break;case 36:f=!1;break;case 37:f=!0;break;case 38:f=!1;break;default:if(!V.T){if(!f||s.WTF)throw new Error("Unexpected record 0x"+K.toString(16))}}},s),delete s.supbooks,delete s["!row"],!l["!ref"]&&(u.s.r<2e6||c&&(c.e.r>0||c.e.c>0||c.s.r>0||c.s.c>0))&&(l["!ref"]=ir(c||u)),s.sheetRows&&l["!ref"]){var j=yr(l["!ref"]);s.sheetRows<=+j.e.r&&(j.e.r=s.sheetRows-1,j.e.r>u.e.r&&(j.e.r=u.e.r),j.e.ru.e.c&&(j.e.c=u.e.c),j.e.c0&&(l["!merges"]=E),D.length>0&&(l["!cols"]=D),k.length>0&&(l["!rows"]=k),l}function fJe(e,t,r,n,a,i,o){if(t.v===void 0)return!1;var s="";switch(t.t){case"b":s=t.v?"1":"0";break;case"d":t=Hr(t),t.z=t.z||Kt[14],t.v=ya(rn(t.v)),t.t="n";break;case"n":case"e":s=""+t.v;break;default:s=t.v;break}var l={r,c:n};switch(l.s=Su(a.cellXfs,t,a),t.l&&i["!links"].push([Xt(l),t.l]),t.c&&i["!comments"].push([Xt(l),t.c]),t.t){case"s":case"str":return a.bookSST?(s=i4(a.Strings,t.v,a.revStrings),l.t="s",l.v=s,o?st(e,18,NZe(t,l)):st(e,7,PZe(t,l))):(l.t="str",o?st(e,17,WZe(t,l)):st(e,6,zZe(t,l))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?o?st(e,13,FZe(t,l)):st(e,2,DZe(t,l)):o?st(e,16,AZe(t,l)):st(e,5,RZe(t,l)),!0;case"b":return l.t="b",o?st(e,15,CZe(t,l)):st(e,4,SZe(t,l)),!0;case"e":return l.t="e",o?st(e,14,OZe(t,l)):st(e,3,$Ze(t,l)),!0}return o?st(e,12,xZe(t,l)):st(e,1,gZe(t,l)),!0}function mJe(e,t,r,n){var a=yr(t["!ref"]||"A1"),i,o="",s=[];st(e,145);var l=Array.isArray(t),c=a.e.r;t["!rows"]&&(c=Math.max(a.e.r,t["!rows"].length-1));for(var u=a.s.r;u<=c;++u){o=On(u),uZe(e,t,a,u);var f=!1;if(u<=a.e.r)for(var m=a.s.c;m<=a.e.c;++m){u===a.s.r&&(s[m]=tn(m)),i=s[m]+o;var h=l?(t[u]||[])[m]:t[i];if(!h){f=!1;continue}f=fJe(e,h,u,m,n,t,f)}}st(e,146)}function hJe(e,t){!t||!t["!merges"]||(st(e,177,YZe(t["!merges"].length)),t["!merges"].forEach(function(r){st(e,176,XZe(r))}),st(e,178))}function pJe(e,t){!t||!t["!cols"]||(st(e,390),t["!cols"].forEach(function(r,n){r&&st(e,60,rJe(n,r))}),st(e,391))}function vJe(e,t){!t||!t["!ref"]||(st(e,648),st(e,649,sJe(yr(t["!ref"]))),st(e,650))}function gJe(e,t,r){t["!links"].forEach(function(n){if(n[1].Target){var a=Rr(r,-1,n[1].Target.replace(/#.*$/,""),hr.HLINK);st(e,494,ZZe(n,a))}}),delete t["!links"]}function yJe(e,t,r,n){if(t["!comments"].length>0){var a=Rr(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",hr.VML);st(e,551,KR("rId"+a)),t["!legacy"]=a}}function xJe(e,t,r,n){if(t["!autofilter"]){var a=t["!autofilter"],i=typeof a.ref=="string"?a.ref:ir(a.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var o=r.Workbook.Names,s=$i(i);s.s.r==s.e.r&&(s.e.r=$i(t["!ref"]).e.r,i=ir(s));for(var l=0;l16383||l.e.r>1048575){if(t.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return o["!links"]=[],o["!comments"]=[],st(a,129),(r.vbaraw||o["!outline"])&&st(a,147,pZe(s,o["!outline"])),st(a,148,fZe(l)),bJe(a,o,r.Workbook),pJe(a,o),mJe(a,o,e,t),SJe(a,o),xJe(a,o,r,e),hJe(a,o),gJe(a,o,n),o["!margins"]&&st(a,476,aJe(o["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&vJe(a,o),yJe(a,o,e,n),st(a,130),a.end()}function CJe(e){var t=[],r=e.match(/^/),n;(e.match(/(.*?)<\/c:pt>/mg)||[]).forEach(function(i){var o=i.match(/(.*)<\/c:v><\/c:pt>/);o&&(t[+o[1]]=r?+o[2]:o[2])});var a=Cr((e.match(/([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/(.*?)<\/c:f>/mg)||[]).forEach(function(i){n=i.replace(/<.*?>/g,"")}),[t,a,n]}function EJe(e,t,r,n,a,i){var o=i||{"!type":"chart"};if(!e)return i;var s=0,l=0,c="A",u={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(f){var m=CJe(f);u.s.r=u.s.c=0,u.e.c=s,c=tn(s),m[0].forEach(function(h,v){o[c+On(v)]={t:"n",v:h,z:m[1]},l=v}),u.e.r0&&(o["!ref"]=ir(u)),o}function $Je(e,t,r,n,a){if(!e)return e;n||(n={"!id":{}});var i={"!type":"chart","!drawel":null,"!rel":""},o,s=e.match(jJ);return s&&o4(s[0],i,a,r),(o=e.match(/drawing r:id="(.*?)"/))&&(i["!rel"]=o[1]),n["!id"][i["!rel"]]&&(i["!drawel"]=n["!id"][i["!rel"]]),i}function _Je(e,t){e.l+=10;var r=ci(e);return{name:r}}function OJe(e,t,r,n,a){if(!e)return e;n||(n={"!id":{}});var i={"!type":"chart","!drawel":null,"!rel":""},o=!1;return Ql(e,function(l,c,u){switch(u){case 550:i["!rel"]=l;break;case 651:a.Sheets[r]||(a.Sheets[r]={}),l.name&&(a.Sheets[r].CodeName=l.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:break;case 38:break;default:if(!(c.T>0)){if(!(c.T<0)){if(!o||t.WTF)throw new Error("Unexpected record 0x"+u.toString(16))}}}},t),n["!id"][i["!rel"]]&&(i["!drawel"]=n["!id"][i["!rel"]]),i}var s4=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],TJe=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],PJe=[],IJe=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function vL(e,t){for(var r=0;r!=e.length;++r)for(var n=e[r],a=0;a!=t.length;++a){var i=t[a];if(n[i[0]]==null)n[i[0]]=i[1];else switch(i[2]){case"bool":typeof n[i[0]]=="string"&&(n[i[0]]=Jr(n[i[0]]));break;case"int":typeof n[i[0]]=="string"&&(n[i[0]]=parseInt(n[i[0]],10));break}}}function gL(e,t){for(var r=0;r!=t.length;++r){var n=t[r];if(e[n[0]]==null)e[n[0]]=n[1];else switch(n[2]){case"bool":typeof e[n[0]]=="string"&&(e[n[0]]=Jr(e[n[0]]));break;case"int":typeof e[n[0]]=="string"&&(e[n[0]]=parseInt(e[n[0]],10));break}}}function zJ(e){gL(e.WBProps,s4),gL(e.CalcPr,IJe),vL(e.WBView,TJe),vL(e.Sheets,PJe),o0.date1904=Jr(e.WBProps.date1904)}function NJe(e){return!e.Workbook||!e.Workbook.WBProps?"false":Jr(e.Workbook.WBProps.date1904)?"true":"false"}var kJe="][*?/\\".split("");function HJ(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var r=!0;return kJe.forEach(function(n){if(e.indexOf(n)!=-1){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");r=!1}}),r}function RJe(e,t,r){e.forEach(function(n,a){HJ(n);for(var i=0;i22)throw new Error("Bad Code Name: Worksheet"+o)}})}function WJ(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];RJe(e.SheetNames,t,!!e.vbaraw);for(var r=0;r":break;case"":case"":break;case"":break;case"":s4.forEach(function(f){if(u[f[0]]!=null)switch(f[2]){case"bool":r.WBProps[f[0]]=Jr(u[f[0]]);break;case"int":r.WBProps[f[0]]=parseInt(u[f[0]],10);break;default:r.WBProps[f[0]]=u[f[0]]}}),u.codeName&&(r.WBProps.CodeName=Lr(u.codeName));break;case"":break;case"":break;case"":case"":break;case"":delete u[0],r.WBView.push(u);break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":n=!1;break;case"":i.Ref=Cr(Lr(e.slice(o,c))),r.Names.push(i);break;case"":break;case"":delete u[0],r.CalcPr=u;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":case"":break;case"":n=!1;break;case"":n=!0;break;case"":n=!1;break;case"0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(s4.forEach(function(s){e.Workbook.WBProps[s[0]]!=null&&e.Workbook.WBProps[s[0]]!=s[1]&&(n[s[0]]=e.Workbook.WBProps[s[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),t[t.length]=Ct("workbookPr",null,n);var a=e.Workbook&&e.Workbook.Sheets||[],i=0;if(a&&a[0]&&a[0].Hidden){for(t[t.length]="",i=0;i!=e.SheetNames.length&&!(!a[i]||!a[i].Hidden);++i);i==e.SheetNames.length&&(i=0),t[t.length]='',t[t.length]=""}for(t[t.length]="",i=0;i!=e.SheetNames.length;++i){var o={name:Mr(e.SheetNames[i].slice(0,31))};if(o.sheetId=""+(i+1),o["r:id"]="rId"+(i+1),a[i])switch(a[i].Hidden){case 1:o.state="hidden";break;case 2:o.state="veryHidden";break}t[t.length]=Ct("sheet",null,o)}return t[t.length]="",r&&(t[t.length]="",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(s){var l={name:s.Name};s.Comment&&(l.comment=s.Comment),s.Sheet!=null&&(l.localSheetId=""+s.Sheet),s.Hidden&&(l.hidden="1"),s.Ref&&(t[t.length]=Ct("definedName",Mr(s.Ref),l))}),t[t.length]=""),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function DJe(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=vT(e),r.name=ci(e),r}function jJe(e,t){return t||(t=Je(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),KR(e.strRelID,t),ka(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function FJe(e,t){var r={},n=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var a=t>8?ci(e):"";return a.length>0&&(r.CodeName=a),r.autoCompressPictures=!!(n&65536),r.backupFile=!!(n&64),r.checkCompatibility=!!(n&4096),r.date1904=!!(n&1),r.filterPrivacy=!!(n&8),r.hidePivotFieldList=!!(n&1024),r.promptedSolutions=!!(n&16),r.publishItems=!!(n&2048),r.refreshAllConnections=!!(n&262144),r.saveExternalLinkValues=!!(n&128),r.showBorderUnselectedTables=!!(n&4),r.showInkAnnotation=!!(n&32),r.showObjects=["all","placeholders","none"][n>>13&3],r.showPivotChartFilter=!!(n&32768),r.updateLinks=["userSet","never","always"][n>>8&3],r}function LJe(e,t){t||(t=Je(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),AZ(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function BJe(e,t){var r={};return e.read_shift(4),r.ArchID=e.read_shift(4),e.l+=t-8,r}function zJe(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var a=e.read_shift(4),i=yUe(e),o=$Qe(e,0,r),s=UR(e);e.l=n;var l={Name:i,Ptg:o};return a<268435455&&(l.Sheet=a),s&&(l.Comment=s),l}function HJe(e,t){var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},n=[],a=!1;t||(t={}),t.biff=12;var i=[],o=[[]];return o.SheetNames=[],o.XTI=[],Jp[16]={n:"BrtFRTArchID$",f:BJe},Ql(e,function(l,c,u){switch(u){case 156:o.SheetNames.push(l.name),r.Sheets.push(l);break;case 153:r.WBProps=l;break;case 39:l.Sheet!=null&&(t.SID=l.Sheet),l.Ref=ei(l.Ptg,null,null,o,t),delete t.SID,delete l.Ptg,i.push(l);break;case 1036:break;case 357:case 358:case 355:case 667:o[0].length?o.push([u,l]):o[0]=[u,l],o[o.length-1].XTI=[];break;case 362:o.length===0&&(o[0]=[],o[0].XTI=[]),o[o.length-1].XTI=o[o.length-1].XTI.concat(l),o.XTI=o.XTI.concat(l);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:n.push(u),a=!0;break;case 36:n.pop(),a=!1;break;case 37:n.push(u),a=!0;break;case 38:n.pop(),a=!1;break;case 16:break;default:if(!c.T){if(!a||t.WTF&&n[n.length-1]!=37&&n[n.length-1]!=35)throw new Error("Unexpected record 0x"+u.toString(16))}}},t),zJ(r),r.Names=i,r.supbooks=o,r}function WJe(e,t){st(e,143);for(var r=0;r!=t.SheetNames.length;++r){var n=t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[r]&&t.Workbook.Sheets[r].Hidden||0,a={Hidden:n,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]};st(e,156,jJe(a))}st(e,144)}function VJe(e,t){t||(t=Je(127));for(var r=0;r!=4;++r)t.write_shift(4,0);return ka("SheetJS",t),ka(Hp.version,t),ka(Hp.version,t),ka("7262",t),t.length>t.l?t.slice(0,t.l):t}function UJe(e,t){t||(t=Je(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e);var r=120;return t.write_shift(1,r),t.length>t.l?t.slice(0,t.l):t}function KJe(e,t){if(!(!t.Workbook||!t.Workbook.Sheets)){for(var r=t.Workbook.Sheets,n=0,a=-1,i=-1;na||(st(e,135),st(e,158,UJe(a)),st(e,136))}}function GJe(e,t){var r=zi();return st(r,131),st(r,128,VJe()),st(r,153,LJe(e.Workbook&&e.Workbook.WBProps||null)),KJe(r,e),WJe(r,e),st(r,132),r.end()}function qJe(e,t,r){return t.slice(-4)===".bin"?HJe(e,r):MJe(e,r)}function XJe(e,t,r,n,a,i,o,s){return t.slice(-4)===".bin"?dJe(e,n,r,a,i,o,s):HQe(e,n,r,a,i,o,s)}function YJe(e,t,r,n,a,i,o,s){return t.slice(-4)===".bin"?OJe(e,n,r,a,i):$Je(e,n,r,a,i)}function QJe(e,t,r,n,a,i,o,s){return t.slice(-4)===".bin"?eYe():tYe()}function ZJe(e,t,r,n,a,i,o,s){return t.slice(-4)===".bin"?ZXe():JXe()}function JJe(e,t,r,n){return t.slice(-4)===".bin"?Xqe(e,r,n):jqe(e,r,n)}function eet(e,t,r){return CJ(e,r)}function tet(e,t,r){return t.slice(-4)===".bin"?rqe(e,r):JGe(e,r)}function ret(e,t,r){return t.slice(-4)===".bin"?GXe(e,r):FXe(e,r)}function net(e,t,r){return t.slice(-4)===".bin"?MXe(e):RXe(e)}function aet(e,t,r,n){return r.slice(-4)===".bin"?DXe(e,t,r,n):void 0}function iet(e,t,r){return t.slice(-4)===".bin"?IXe(e,t,r):kXe(e,t,r)}function oet(e,t,r){return(t.slice(-4)===".bin"?GJe:VJ)(e)}function set(e,t,r,n,a){return(t.slice(-4)===".bin"?wJe:FJ)(e,r,n,a)}function cet(e,t,r){return(t.slice(-4)===".bin"?iXe:SJ)(e,r)}function uet(e,t,r){return(t.slice(-4)===".bin"?iqe:mJ)(e,r)}function det(e,t,r){return(t.slice(-4)===".bin"?qXe:_J)(e)}function fet(e){return(e.slice(-4)===".bin"?NXe:EJ)()}var UJ=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,KJ=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function ns(e,t){var r=e.split(/\s+/),n=[];if(t||(n[0]=r[0]),r.length===1)return n;var a=e.match(UJ),i,o,s,l;if(a)for(l=0;l!=a.length;++l)i=a[l].match(KJ),(o=i[1].indexOf(":"))===-1?n[i[1]]=i[2].slice(1,i[2].length-1):(i[1].slice(0,6)==="xmlns:"?s="xmlns"+i[1].slice(6):s=i[1].slice(o+1),n[s]=i[2].slice(1,i[2].length-1));return n}function met(e){var t=e.split(/\s+/),r={};if(t.length===1)return r;var n=e.match(UJ),a,i,o,s;if(n)for(s=0;s!=n.length;++s)a=n[s].match(KJ),(i=a[1].indexOf(":"))===-1?r[a[1]]=a[2].slice(1,a[2].length-1):(a[1].slice(0,6)==="xmlns:"?o="xmlns"+a[1].slice(6):o=a[1].slice(i+1),r[o]=a[2].slice(1,a[2].length-1));return r}var Lh;function het(e,t){var r=Lh[e]||Cr(e);return r==="General"?Od(t):po(r,t)}function pet(e,t,r,n){var a=n;switch((r[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":a=Jr(n);break;case"i2":case"int":a=parseInt(n,10);break;case"r4":case"float":a=parseFloat(n);break;case"date":case"dateTime.tz":a=rn(n);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+r[0])}e[Cr(t)]=a}function vet(e,t,r){if(e.t!=="z"){if(!r||r.cellText!==!1)try{e.t==="e"?e.w=e.w||Zl[e.v]:t==="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=Vp(e.v):e.w=Od(e.v):e.w=het(t||"General",e.v)}catch(i){if(r.WTF)throw i}try{var n=Lh[t]||t||"General";if(r.cellNF&&(e.z=n),r.cellDates&&e.t=="n"&&qd(n)){var a=$c(e.v);a&&(e.t="d",e.v=new Date(a.y,a.m-1,a.d,a.H,a.M,a.S,a.u))}}catch(i){if(r.WTF)throw i}}}function get(e,t,r){if(r.cellStyles&&t.Interior){var n=t.Interior;n.Pattern&&(n.patternType=Pqe[n.Pattern]||n.Pattern)}e[t.ID]=t}function yet(e,t,r,n,a,i,o,s,l,c){var u="General",f=n.StyleID,m={};c=c||{};var h=[],v=0;for(f===void 0&&s&&(f=s.StyleID),f===void 0&&o&&(f=o.StyleID);i[f]!==void 0&&(i[f].nf&&(u=i[f].nf),i[f].Interior&&h.push(i[f].Interior),!!i[f].Parent);)f=i[f].Parent;switch(r.Type){case"Boolean":n.t="b",n.v=Jr(e);break;case"String":n.t="s",n.r=A5(Cr(e)),n.v=e.indexOf("<")>-1?Cr(t||e).replace(/<.*?>/g,""):n.r;break;case"DateTime":e.slice(-1)!="Z"&&(e+="Z"),n.v=(rn(e)-new Date(Date.UTC(1899,11,30)))/(24*60*60*1e3),n.v!==n.v?n.v=Cr(e):n.v<60&&(n.v=n.v-1),(!u||u=="General")&&(u="yyyy-mm-dd");case"Number":n.v===void 0&&(n.v=+e),n.t||(n.t="n");break;case"Error":n.t="e",n.v=LZ[e],c.cellText!==!1&&(n.w=e);break;default:e==""&&t==""?n.t="z":(n.t="s",n.v=A5(t||e));break}if(vet(n,u,c),c.cellFormula!==!1)if(n.Formula){var p=Cr(n.Formula);p.charCodeAt(0)==61&&(p=p.slice(1)),n.f=i0(p,a),delete n.Formula,n.ArrayRange=="RC"?n.F=i0("RC:RC",a):n.ArrayRange&&(n.F=i0(n.ArrayRange,a),l.push([yr(n.F),n.F]))}else for(v=0;v=l[v][0].s.r&&a.r<=l[v][0].e.r&&a.c>=l[v][0].s.c&&a.c<=l[v][0].e.c&&(n.F=l[v][1]);c.cellStyles&&(h.forEach(function(g){!m.patternType&&g.patternType&&(m.patternType=g.patternType)}),n.s=m),n.StyleID!==void 0&&(n.ixfe=n.StyleID)}function xet(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,` +`).replace(/\r/g,` +`),e.v=e.w=e.ixfe=void 0}function FE(e,t){var r=t||{};Cm();var n=zf(MR(e));(r.type=="binary"||r.type=="array"||r.type=="base64")&&(typeof xr<"u"?n=xr.utils.decode(65001,ob(n)):n=Lr(n));var a=n.slice(0,1024).toLowerCase(),i=!1;if(a=a.replace(/".*?"/g,""),(a.indexOf(">")&1023)>Math.min(a.indexOf(",")&1023,a.indexOf(";")&1023)){var o=Hr(r);return o.type="string",R0.to_workbook(n,o)}if(a.indexOf("=0&&(i=!0)}),i)return rtt(n,r);Lh={"General Number":"General","General Date":Kt[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":Kt[15],"Short Date":Kt[14],"Long Time":Kt[19],"Medium Time":Kt[18],"Short Time":Kt[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:Kt[2],Standard:Kt[4],Percent:Kt[10],Scientific:Kt[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var s,l=[],c,u={},f=[],m=r.dense?[]:{},h="",v={},p={},g=ns(''),y=0,x=0,b=0,S={s:{r:2e6,c:2e6},e:{r:0,c:0}},w={},E={},C="",O=0,_=[],T={},I={},N=0,D=[],k=[],R={},A=[],j,F=!1,M=[],V=[],K={},L=0,B=0,W={Sheets:[],WBProps:{date1904:!1}},H={};Gp.lastIndex=0,n=n.replace(//mg,"");for(var U="";s=Gp.exec(n);)switch(s[3]=(U=s[3]).toLowerCase()){case"data":if(U=="data"){if(s[1]==="/"){if((c=l.pop())[0]!==s[3])throw new Error("Bad state: "+c.join("|"))}else s[0].charAt(s[0].length-2)!=="/"&&l.push([s[3],!0]);break}if(l[l.length-1][1])break;s[1]==="/"?yet(n.slice(y,s.index),C,g,l[l.length-1][0]=="comment"?R:v,{c:x,r:b},w,A[x],p,M,r):(C="",g=ns(s[0]),y=s.index+s[0].length);break;case"cell":if(s[1]==="/")if(k.length>0&&(v.c=k),(!r.sheetRows||r.sheetRows>b)&&v.v!==void 0&&(r.dense?(m[b]||(m[b]=[]),m[b][x]=v):m[tn(x)+On(b)]=v),v.HRef&&(v.l={Target:Cr(v.HRef)},v.HRefScreenTip&&(v.l.Tooltip=v.HRefScreenTip),delete v.HRef,delete v.HRefScreenTip),(v.MergeAcross||v.MergeDown)&&(L=x+(parseInt(v.MergeAcross,10)|0),B=b+(parseInt(v.MergeDown,10)|0),_.push({s:{c:x,r:b},e:{c:L,r:B}})),!r.sheetStubs)v.MergeAcross?x=L+1:++x;else if(v.MergeAcross||v.MergeDown){for(var X=x;X<=L;++X)for(var Y=b;Y<=B;++Y)(X>x||Y>b)&&(r.dense?(m[Y]||(m[Y]=[]),m[Y][X]={t:"z"}):m[tn(X)+On(Y)]={t:"z"});x=L+1}else++x;else v=met(s[0]),v.Index&&(x=+v.Index-1),xS.e.c&&(S.e.c=x),s[0].slice(-2)==="/>"&&++x,k=[];break;case"row":s[1]==="/"||s[0].slice(-2)==="/>"?(bS.e.r&&(S.e.r=b),s[0].slice(-2)==="/>"&&(p=ns(s[0]),p.Index&&(b=+p.Index-1)),x=0,++b):(p=ns(s[0]),p.Index&&(b=+p.Index-1),K={},(p.AutoFitHeight=="0"||p.Height)&&(K.hpx=parseInt(p.Height,10),K.hpt=Zp(K.hpx),V[b]=K),p.Hidden=="1"&&(K.hidden=!0,V[b]=K));break;case"worksheet":if(s[1]==="/"){if((c=l.pop())[0]!==s[3])throw new Error("Bad state: "+c.join("|"));f.push(h),S.s.r<=S.e.r&&S.s.c<=S.e.c&&(m["!ref"]=ir(S),r.sheetRows&&r.sheetRows<=S.e.r&&(m["!fullref"]=m["!ref"],S.e.r=r.sheetRows-1,m["!ref"]=ir(S))),_.length&&(m["!merges"]=_),A.length>0&&(m["!cols"]=A),V.length>0&&(m["!rows"]=V),u[h]=m}else S={s:{r:2e6,c:2e6},e:{r:0,c:0}},b=x=0,l.push([s[3],!1]),c=ns(s[0]),h=Cr(c.Name),m=r.dense?[]:{},_=[],M=[],V=[],H={name:h,Hidden:0},W.Sheets.push(H);break;case"table":if(s[1]==="/"){if((c=l.pop())[0]!==s[3])throw new Error("Bad state: "+c.join("|"))}else{if(s[0].slice(-2)=="/>")break;l.push([s[3],!1]),A=[],F=!1}break;case"style":s[1]==="/"?get(w,E,r):E=ns(s[0]);break;case"numberformat":E.nf=Cr(ns(s[0]).Format||"General"),Lh[E.nf]&&(E.nf=Lh[E.nf]);for(var G=0;G!=392&&Kt[G]!=E.nf;++G);if(G==392){for(G=57;G!=392;++G)if(Kt[G]==null){el(E.nf,G);break}}break;case"column":if(l[l.length-1][0]!=="table")break;if(j=ns(s[0]),j.Hidden&&(j.hidden=!0,delete j.Hidden),j.Width&&(j.wpx=parseInt(j.Width,10)),!F&&j.wpx>10){F=!0,ri=xJ;for(var Q=0;Q0&&(fe.Sheet=W.Sheets.length-1),W.Names.push(fe);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if(s[0].slice(-2)==="/>")break;s[1]==="/"?C+=n.slice(O,s.index):O=s.index+s[0].length;break;case"interior":if(!r.cellStyles)break;E.Interior=ns(s[0]);break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if(s[0].slice(-2)==="/>")break;s[1]==="/"?WUe(T,U,n.slice(N,s.index)):N=s.index+s[0].length;break;case"paragraphs":break;case"styles":case"workbook":if(s[1]==="/"){if((c=l.pop())[0]!==s[3])throw new Error("Bad state: "+c.join("|"))}else l.push([s[3],!1]);break;case"comment":if(s[1]==="/"){if((c=l.pop())[0]!==s[3])throw new Error("Bad state: "+c.join("|"));xet(R),k.push(R)}else l.push([s[3],!1]),c=ns(s[0]),R={a:c.Author};break;case"autofilter":if(s[1]==="/"){if((c=l.pop())[0]!==s[3])throw new Error("Bad state: "+c.join("|"))}else if(s[0].charAt(s[0].length-2)!=="/"){var te=ns(s[0]);m["!autofilter"]={ref:i0(te.Range).replace(/\$/g,"")},l.push([s[3],!0])}break;case"name":break;case"datavalidation":if(s[1]==="/"){if((c=l.pop())[0]!==s[3])throw new Error("Bad state: "+c.join("|"))}else s[0].charAt(s[0].length-2)!=="/"&&l.push([s[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if(s[1]==="/"){if((c=l.pop())[0]!==s[3])throw new Error("Bad state: "+c.join("|"))}else s[0].charAt(s[0].length-2)!=="/"&&l.push([s[3],!0]);break;case"null":break;default:if(l.length==0&&s[3]=="document"||l.length==0&&s[3]=="uof")return wL(n,r);var re=!0;switch(l[l.length-1][0]){case"officedocumentsettings":switch(s[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:re=!1}break;case"componentoptions":switch(s[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:re=!1}break;case"excelworkbook":switch(s[3]){case"date1904":W.WBProps.date1904=!0;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:re=!1}break;case"workbookoptions":switch(s[3]){case"owcversion":break;case"height":break;case"width":break;default:re=!1}break;case"worksheetoptions":switch(s[3]){case"visible":if(s[0].slice(-2)!=="/>")if(s[1]==="/")switch(n.slice(N,s.index)){case"SheetHidden":H.Hidden=1;break;case"SheetVeryHidden":H.Hidden=2;break}else N=s.index+s[0].length;break;case"header":m["!margins"]||id(m["!margins"]={},"xlml"),isNaN(+Zt(s[0]).Margin)||(m["!margins"].header=+Zt(s[0]).Margin);break;case"footer":m["!margins"]||id(m["!margins"]={},"xlml"),isNaN(+Zt(s[0]).Margin)||(m["!margins"].footer=+Zt(s[0]).Margin);break;case"pagemargins":var q=Zt(s[0]);m["!margins"]||id(m["!margins"]={},"xlml"),isNaN(+q.Top)||(m["!margins"].top=+q.Top),isNaN(+q.Left)||(m["!margins"].left=+q.Left),isNaN(+q.Right)||(m["!margins"].right=+q.Right),isNaN(+q.Bottom)||(m["!margins"].bottom=+q.Bottom);break;case"displayrighttoleft":W.Views||(W.Views=[]),W.Views[0]||(W.Views[0]={}),W.Views[0].RTL=!0;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows":break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":m["!outline"]||(m["!outline"]={}),m["!outline"].above=!0;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":m["!outline"]||(m["!outline"]={}),m["!outline"].left=!0;break;case"blackandwhite":break;case"donotdisplayzeros":break;case"displaypagebreak":break;case"rowcolheadings":break;case"donotdisplayoutline":break;case"noorientation":break;case"allowusepivottables":break;case"zeroheight":break;case"viewablerange":break;case"selection":break;case"protectcontents":break;default:re=!1}break;case"pivottable":case"pivotcache":switch(s[3]){case"immediateitemsondrop":break;case"showpagemultipleitemlabel":break;case"compactrowindent":break;case"location":break;case"pivotfield":break;case"orientation":break;case"layoutform":break;case"layoutsubtotallocation":break;case"layoutcompactrow":break;case"position":break;case"pivotitem":break;case"datatype":break;case"datafield":break;case"sourcename":break;case"parentfield":break;case"ptlineitems":break;case"ptlineitem":break;case"countofsameitems":break;case"item":break;case"itemtype":break;case"ptsource":break;case"cacheindex":break;case"consolidationreference":break;case"filename":break;case"reference":break;case"nocolumngrand":break;case"norowgrand":break;case"blanklineafteritems":break;case"hidden":break;case"subtotal":break;case"basefield":break;case"mapchilditems":break;case"function":break;case"refreshonfileopen":break;case"printsettitles":break;case"mergelabels":break;case"defaultversion":break;case"refreshname":break;case"refreshdate":break;case"refreshdatecopy":break;case"versionlastrefresh":break;case"versionlastupdate":break;case"versionupdateablemin":break;case"versionrefreshablemin":break;case"calculation":break;default:re=!1}break;case"pagebreaks":switch(s[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:re=!1}break;case"autofilter":switch(s[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:re=!1}break;case"querytable":switch(s[3]){case"id":break;case"autoformatfont":break;case"autoformatpattern":break;case"querysource":break;case"querytype":break;case"enableredirections":break;case"refreshedinxl9":break;case"urlstring":break;case"htmltables":break;case"connection":break;case"commandtext":break;case"refreshinfo":break;case"notitles":break;case"nextid":break;case"columninfo":break;case"overwritecells":break;case"donotpromptforfile":break;case"textwizardsettings":break;case"source":break;case"number":break;case"decimal":break;case"thousandseparator":break;case"trailingminusnumbers":break;case"formatsettings":break;case"fieldtype":break;case"delimiters":break;case"tab":break;case"comma":break;case"autoformatname":break;case"versionlastedit":break;case"versionlastrefresh":break;default:re=!1}break;case"datavalidation":switch(s[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;case"cellrangelist":break;default:re=!1}break;case"sorting":case"conditionalformatting":switch(s[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"cellrangelist":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;default:re=!1}break;case"mapinfo":case"schema":case"data":switch(s[3]){case"map":break;case"entry":break;case"range":break;case"xpath":break;case"field":break;case"xsdtype":break;case"filteron":break;case"aggregate":break;case"elementtype":break;case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":break;case"row":break;default:re=!1}break;case"smarttags":break;default:re=!1;break}if(re||s[3].match(/!\[CDATA/))break;if(!l[l.length-1][1])throw"Unrecognized tag: "+s[3]+"|"+l.join("|");if(l[l.length-1][0]==="customdocumentproperties"){if(s[0].slice(-2)==="/>")break;s[1]==="/"?pet(I,U,D,n.slice(N,s.index)):(D=s,N=s.index+s[0].length);break}if(r.WTF)throw"Unrecognized tag: "+s[3]+"|"+l.join("|")}var ne={};return!r.bookSheets&&!r.bookProps&&(ne.Sheets=u),ne.SheetNames=f,ne.Workbook=W,ne.SSF=Hr(Kt),ne.Props=T,ne.Custprops=I,ne}function CT(e,t){switch(u4(t=t||{}),t.type||"base64"){case"base64":return FE(ho(e),t);case"binary":case"buffer":case"file":return FE(e,t);case"array":return FE(xu(e),t)}}function bet(e,t){var r=[];return e.Props&&r.push(VUe(e.Props,t)),e.Custprops&&r.push(UUe(e.Props,e.Custprops)),r.join("")}function wet(){return""}function Cet(e,t){var r=[''];return t.cellXfs.forEach(function(n,a){var i=[];i.push(Ct("NumberFormat",null,{"ss:Format":Mr(Kt[n.numFmtId])}));var o={"ss:ID":"s"+(21+a)};r.push(Ct("Style",i.join(""),o))}),Ct("Styles",r.join(""))}function GJ(e){return Ct("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+n4(e.Ref,{r:0,c:0})})}function Eet(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],n=0;n"),e["!margins"].header&&a.push(Ct("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&a.push(Ct("Footer",null,{"x:Margin":e["!margins"].footer})),a.push(Ct("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),a.push("")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)a.push(Ct("Visible",n.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&a.push(""),e["!protect"]&&(a.push(Va("ProtectContents","True")),e["!protect"].objects&&a.push(Va("ProtectObjects","True")),e["!protect"].scenarios&&a.push(Va("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?a.push(Va("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&a.push(Va("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(o){e["!protect"][o[0]]&&a.push("<"+o[1]+"/>")})),a.length==0?"":Ct("WorksheetOptions",a.join(""),{xmlns:Zi.x})}function Oet(e){return e.map(function(t){var r=GVe(t.t||""),n=Ct("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return Ct("Comment",n,{"ss:Author":t.a})}).join("")}function Tet(e,t,r,n,a,i,o){if(!e||e.v==null&&e.f==null)return"";var s={};if(e.f&&(s["ss:Formula"]="="+Mr(n4(e.f,o))),e.F&&e.F.slice(0,t.length)==t){var l=hn(e.F.slice(t.length+1));s["ss:ArrayRange"]="RC:R"+(l.r==o.r?"":"["+(l.r-o.r)+"]")+"C"+(l.c==o.c?"":"["+(l.c-o.c)+"]")}if(e.l&&e.l.Target&&(s["ss:HRef"]=Mr(e.l.Target),e.l.Tooltip&&(s["x:HRefScreenTip"]=Mr(e.l.Tooltip))),r["!merges"])for(var c=r["!merges"],u=0;u!=c.length;++u)c[u].s.c!=o.c||c[u].s.r!=o.r||(c[u].e.c>c[u].s.c&&(s["ss:MergeAcross"]=c[u].e.c-c[u].s.c),c[u].e.r>c[u].s.r&&(s["ss:MergeDown"]=c[u].e.r-c[u].s.r));var f="",m="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":f="Number",m=String(e.v);break;case"b":f="Boolean",m=e.v?"1":"0";break;case"e":f="Error",m=Zl[e.v];break;case"d":f="DateTime",m=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||Kt[14]);break;case"s":f="String",m=KVe(e.v||"");break}var h=Su(n.cellXfs,e,n);s["ss:StyleID"]="s"+(21+h),s["ss:Index"]=o.c+1;var v=e.v!=null?m:"",p=e.t=="z"?"":''+v+"";return(e.c||[]).length>0&&(p+=Oet(e.c)),Ct("Cell",p,s)}function Pet(e,t){var r='"}function Iet(e,t,r,n){if(!e["!ref"])return"";var a=yr(e["!ref"]),i=e["!merges"]||[],o=0,s=[];e["!cols"]&&e["!cols"].forEach(function(g,y){Jc(g);var x=!!g.width,b=vC(y,g),S={"ss:Index":y+1};x&&(S["ss:Width"]=Yp(b.width)),g.hidden&&(S["ss:Hidden"]="1"),s.push(Ct("Column",null,S))});for(var l=Array.isArray(e),c=a.s.r;c<=a.e.r;++c){for(var u=[Pet(c,(e["!rows"]||[])[c])],f=a.s.c;f<=a.e.c;++f){var m=!1;for(o=0;o!=i.length;++o)if(!(i[o].s.c>f)&&!(i[o].s.r>c)&&!(i[o].e.c"),u.length>2&&s.push(u.join(""))}return s.join("")}function Net(e,t,r){var n=[],a=r.SheetNames[e],i=r.Sheets[a],o=i?$et(i,t,e,r):"";return o.length>0&&n.push(""+o+""),o=i?Iet(i,t,e,r):"",o.length>0&&n.push(""+o+"
"),n.push(_et(i,t,e,r)),n.join("")}function ket(e,t){t||(t={}),e.SSF||(e.SSF=Hr(Kt)),e.SSF&&(Cm(),cg(e.SSF),t.revssf=uC(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],Su(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(bet(e,t)),r.push(wet()),r.push(""),r.push("");for(var n=0;n40||(r.l-=4,t.Reserved1=r.read_shift(0,"lpstr-ansi"),r.length-r.l<=4)||(n=r.read_shift(4),n!==1907505652)||(t.UnicodeClipboardFormat=EUe(r),n=r.read_shift(4),n==0||n>40))return t;r.l-=4,t.Reserved2=r.read_shift(0,"lpwstr")}var Aet=[60,1084,2066,2165,2175];function Met(e,t,r,n,a){var i=n,o=[],s=r.slice(r.l,r.l+i);if(a&&a.enc&&a.enc.insitu&&s.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:break;case 133:break;default:a.enc.insitu(s)}o.push(s),r.l+=i;for(var l=Sl(r,r.l),c=ET[l],u=0;c!=null&&Aet.indexOf(l)>-1;)i=Sl(r,r.l+2),u=r.l+4,l==2066?u+=4:(l==2165||l==2175)&&(u+=12),s=r.slice(u,r.l+4+i),o.push(s),r.l+=4+i,c=ET[l=Sl(r,r.l)];var f=Ia(o);Wa(f,0);var m=0;f.lens=[];for(var h=0;h1)&&!(we.sheetRows&&Le.r>=we.sheetRows)){if(we.cellStyles&&Ne.XF&&Ne.XF.data&&T(Le,Ne,we),delete Ne.ixfe,delete Ne.XF,f=Le,m=Xt(Le),(!o||!o.s||!o.e)&&(o={s:{r:0,c:0},e:{r:0,c:0}}),Le.ro.e.r&&(o.e.r=Le.r+1),Le.c+1>o.e.c&&(o.e.c=Le.c+1),we.cellFormula&&Ne.f){for(var je=0;jeLe.c||x[je][0].s.r>Le.r)&&!(x[je][0].e.c>8)!==Y)throw new Error("rt mismatch: "+J+"!="+Y);Q.r==12&&(e.l+=10,G-=10)}var z={};if(Y===10?z=Q.f(e,G,N):z=Met(Y,Q,e,G,N),K==0&&[9,521,1033,2057].indexOf(V)===-1)continue;switch(Y){case 34:r.opts.Date1904=C.WBProps.date1904=z;break;case 134:r.opts.WriteProtect=!0;break;case 47:if(N.enc||(e.l=0),N.enc=z,!t.password)throw new Error("File is password-protected");if(z.valid==null)throw new Error("Encryption scheme unsupported");if(!z.valid)throw new Error("Password is incorrect");break;case 92:N.lastuser=z;break;case 66:var fe=Number(z);switch(fe){case 21010:fe=1200;break;case 32768:fe=1e4;break;case 32769:fe=1252;break}Fo(N.codepage=fe),U=!0;break;case 317:N.rrtabid=z;break;case 25:N.winlocked=z;break;case 439:r.opts.RefreshAll=z;break;case 12:r.opts.CalcCount=z;break;case 16:r.opts.CalcDelta=z;break;case 17:r.opts.CalcIter=z;break;case 13:r.opts.CalcMode=z;break;case 14:r.opts.CalcPrecision=z;break;case 95:r.opts.CalcSaveRecalc=z;break;case 15:N.CalcRefMode=z;break;case 2211:r.opts.FullCalc=z;break;case 129:z.fDialog&&(a["!type"]="dialog"),z.fBelow||((a["!outline"]||(a["!outline"]={})).above=!0),z.fRight||((a["!outline"]||(a["!outline"]={})).left=!0);break;case 224:w.push(z);break;case 430:M.push([z]),M[M.length-1].XTI=[];break;case 35:case 547:M[M.length-1].push(z);break;case 24:case 536:H={Name:z.Name,Ref:ei(z.rgce,o,null,M,N)},z.itab>0&&(H.Sheet=z.itab-1),M.names.push(H),M[0]||(M[0]=[],M[0].XTI=[]),M[M.length-1].push(z),z.Name=="_xlnm._FilterDatabase"&&z.itab>0&&z.rgce&&z.rgce[0]&&z.rgce[0][0]&&z.rgce[0][0][0]=="PtgArea3d"&&(W[z.itab-1]={ref:ir(z.rgce[0][0][1][2])});break;case 22:N.ExternCount=z;break;case 23:M.length==0&&(M[0]=[],M[0].XTI=[]),M[M.length-1].XTI=M[M.length-1].XTI.concat(z),M.XTI=M.XTI.concat(z);break;case 2196:if(N.biff<8)break;H!=null&&(H.Comment=z[1]);break;case 18:a["!protect"]=z;break;case 19:z!==0&&N.WTF&&console.error("Password verifier: "+z);break;case 133:i[z.pos]=z,N.snames.push(z.name);break;case 10:{if(--K)break;if(o.e){if(o.e.r>0&&o.e.c>0){if(o.e.r--,o.e.c--,a["!ref"]=ir(o),t.sheetRows&&t.sheetRows<=o.e.r){var te=o.e.r;o.e.r=t.sheetRows-1,a["!fullref"]=a["!ref"],a["!ref"]=ir(o),o.e.r=te}o.e.r++,o.e.c++}k.length>0&&(a["!merges"]=k),R.length>0&&(a["!objects"]=R),A.length>0&&(a["!cols"]=A),j.length>0&&(a["!rows"]=j),C.Sheets.push(O)}c===""?u=a:n[c]=a,a=t.dense?[]:{}}break;case 9:case 521:case 1033:case 2057:{if(N.biff===8&&(N.biff={9:2,521:3,1033:4}[Y]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[z.BIFFVer]||8),N.biffguess=z.BIFFVer==0,z.BIFFVer==0&&z.dt==4096&&(N.biff=5,U=!0,Fo(N.codepage=28591)),N.biff==8&&z.BIFFVer==0&&z.dt==16&&(N.biff=2),K++)break;if(a=t.dense?[]:{},N.biff<8&&!U&&(U=!0,Fo(N.codepage=t.codepage||1252)),N.biff<5||z.BIFFVer==0&&z.dt==4096){c===""&&(c="Sheet1"),o={s:{r:0,c:0},e:{r:0,c:0}};var re={pos:e.l-G,name:c};i[re.pos]=re,N.snames.push(c)}else c=(i[X]||{name:""}).name;z.dt==32&&(a["!type"]="chart"),z.dt==64&&(a["!type"]="macro"),k=[],R=[],N.arrayf=x=[],A=[],j=[],F=!1,O={Hidden:(i[X]||{hs:0}).hs,name:c}}break;case 515:case 3:case 2:a["!type"]=="chart"&&(t.dense?(a[z.r]||[])[z.c]:a[Xt({c:z.c,r:z.r})])&&++z.c,b={ixfe:z.ixfe,XF:w[z.ixfe]||{},v:z.val,t:"n"},L>0&&(b.z=B[b.ixfe>>8&63]),Fs(b,t,r.opts.Date1904),I({c:z.c,r:z.r},b,t);break;case 5:case 517:b={ixfe:z.ixfe,XF:w[z.ixfe],v:z.val,t:z.t},L>0&&(b.z=B[b.ixfe>>8&63]),Fs(b,t,r.opts.Date1904),I({c:z.c,r:z.r},b,t);break;case 638:b={ixfe:z.ixfe,XF:w[z.ixfe],v:z.rknum,t:"n"},L>0&&(b.z=B[b.ixfe>>8&63]),Fs(b,t,r.opts.Date1904),I({c:z.c,r:z.r},b,t);break;case 189:for(var q=z.c;q<=z.C;++q){var ne=z.rkrec[q-z.c][0];b={ixfe:ne,XF:w[ne],v:z.rkrec[q-z.c][1],t:"n"},L>0&&(b.z=B[b.ixfe>>8&63]),Fs(b,t,r.opts.Date1904),I({c:q,r:z.r},b,t)}break;case 6:case 518:case 1030:{if(z.val=="String"){s=z;break}if(b=jy(z.val,z.cell.ixfe,z.tt),b.XF=w[b.ixfe],t.cellFormula){var he=z.formula;if(he&&he[0]&&he[0][0]&&he[0][0][0]=="PtgExp"){var xe=he[0][0][1][0],ye=he[0][0][1][1],pe=Xt({r:xe,c:ye});y[pe]?b.f=""+ei(z.formula,o,z.cell,M,N):b.F=((t.dense?(a[xe]||[])[ye]:a[pe])||{}).F}else b.f=""+ei(z.formula,o,z.cell,M,N)}L>0&&(b.z=B[b.ixfe>>8&63]),Fs(b,t,r.opts.Date1904),I(z.cell,b,t),s=z}break;case 7:case 519:if(s)s.val=z,b=jy(z,s.cell.ixfe,"s"),b.XF=w[b.ixfe],t.cellFormula&&(b.f=""+ei(s.formula,o,s.cell,M,N)),L>0&&(b.z=B[b.ixfe>>8&63]),Fs(b,t,r.opts.Date1904),I(s.cell,b,t),s=null;else throw new Error("String record expects Formula");break;case 33:case 545:{x.push(z);var be=Xt(z[0].s);if(h=t.dense?(a[z[0].s.r]||[])[z[0].s.c]:a[be],t.cellFormula&&h){if(!s||!be||!h)break;h.f=""+ei(z[1],o,z[0],M,N),h.F=ir(z[0])}}break;case 1212:{if(!t.cellFormula)break;if(m){if(!s)break;y[Xt(s.cell)]=z[0],h=t.dense?(a[s.cell.r]||[])[s.cell.c]:a[Xt(s.cell)],(h||{}).f=""+ei(z[0],o,f,M,N)}}break;case 253:b=jy(l[z.isst].t,z.ixfe,"s"),l[z.isst].h&&(b.h=l[z.isst].h),b.XF=w[b.ixfe],L>0&&(b.z=B[b.ixfe>>8&63]),Fs(b,t,r.opts.Date1904),I({c:z.c,r:z.r},b,t);break;case 513:t.sheetStubs&&(b={ixfe:z.ixfe,XF:w[z.ixfe],t:"z"},L>0&&(b.z=B[b.ixfe>>8&63]),Fs(b,t,r.opts.Date1904),I({c:z.c,r:z.r},b,t));break;case 190:if(t.sheetStubs)for(var _e=z.c;_e<=z.C;++_e){var $e=z.ixfe[_e-z.c];b={ixfe:$e,XF:w[$e],t:"z"},L>0&&(b.z=B[b.ixfe>>8&63]),Fs(b,t,r.opts.Date1904),I({c:_e,r:z.r},b,t)}break;case 214:case 516:case 4:b=jy(z.val,z.ixfe,"s"),b.XF=w[b.ixfe],L>0&&(b.z=B[b.ixfe>>8&63]),Fs(b,t,r.opts.Date1904),I({c:z.c,r:z.r},b,t);break;case 0:case 512:K===1&&(o=z);break;case 252:l=z;break;case 1054:if(N.biff==4){B[L++]=z[1];for(var Be=0;Be=163&&el(z[1],L+163)}else el(z[1],z[0]);break;case 30:{B[L++]=z;for(var Fe=0;Fe=163&&el(z,L+163)}break;case 229:k=k.concat(z);break;case 93:R[z.cmo[0]]=N.lastobj=z;break;case 438:N.lastobj.TxO=z;break;case 127:N.lastobj.ImData=z;break;case 440:for(g=z[0].s.r;g<=z[0].e.r;++g)for(p=z[0].s.c;p<=z[0].e.c;++p)h=t.dense?(a[g]||[])[p]:a[Xt({c:p,r:g})],h&&(h.l=z[1]);break;case 2048:for(g=z[0].s.r;g<=z[0].e.r;++g)for(p=z[0].s.c;p<=z[0].e.c;++p)h=t.dense?(a[g]||[])[p]:a[Xt({c:p,r:g})],h&&h.l&&(h.l.Tooltip=z[1]);break;case 28:{if(N.biff<=5&&N.biff>=2)break;h=t.dense?(a[z[0].r]||[])[z[0].c]:a[Xt(z[0])];var nt=R[z[2]];h||(t.dense?(a[z[0].r]||(a[z[0].r]=[]),h=a[z[0].r][z[0].c]={t:"z"}):h=a[Xt(z[0])]={t:"z"},o.e.r=Math.max(o.e.r,z[0].r),o.s.r=Math.min(o.s.r,z[0].r),o.e.c=Math.max(o.e.c,z[0].c),o.s.c=Math.min(o.s.c,z[0].c)),h.c||(h.c=[]),v={a:z[1],t:nt.TxO.t},h.c.push(v)}break;case 2173:wXe(w[z.ixfe],z.ext);break;case 125:{if(!N.cellStyles)break;for(;z.e>=z.s;)A[z.e--]={width:z.w/256,level:z.level||0,hidden:!!(z.flags&1)},F||(F=!0,e4(z.w/256)),Jc(A[z.e+1])}break;case 520:{var qe={};z.level!=null&&(j[z.r]=qe,qe.level=z.level),z.hidden&&(j[z.r]=qe,qe.hidden=!0),z.hpt&&(j[z.r]=qe,qe.hpt=z.hpt,qe.hpx=A0(z.hpt))}break;case 38:case 39:case 40:case 41:a["!margins"]||id(a["!margins"]={}),a["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[Y]]=z;break;case 161:a["!margins"]||id(a["!margins"]={}),a["!margins"].header=z.header,a["!margins"].footer=z.footer;break;case 574:z.RTL&&(C.Views[0].RTL=!0);break;case 146:E=z;break;case 2198:D=z;break;case 140:S=z;break;case 442:c?O.CodeName=z||O.name:C.WBProps.CodeName=z||"ThisWorkbook";break}}else Q||console.error("Missing Info for XLS Record 0x"+Y.toString(16)),e.l+=G}return r.SheetNames=Pn(i).sort(function(Ge,Le){return Number(Ge)-Number(Le)}).map(function(Ge){return i[Ge].name}),t.bookSheets||(r.Sheets=n),!r.SheetNames.length&&u["!ref"]?(r.SheetNames.push("Sheet1"),r.Sheets&&(r.Sheets.Sheet1=u)):r.Preamble=u,r.Sheets&&W.forEach(function(Ge,Le){r.Sheets[r.SheetNames[Le]]["!autofilter"]=Ge}),r.Strings=l,r.SSF=Hr(Kt),N.enc&&(r.Encryption=N.enc),D&&(r.Themes=D),r.Metadata={},S!==void 0&&(r.Metadata.Country=S),M.names.length>0&&(C.Names=M.names),r.Workbook=C,r}var Bh={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function jet(e,t,r){var n=Vt.find(e,"/!DocumentSummaryInformation");if(n&&n.size>0)try{var a=Z5(n,gT,Bh.DSI);for(var i in a)t[i]=a[i]}catch(c){if(r.WTF)throw c}var o=Vt.find(e,"/!SummaryInformation");if(o&&o.size>0)try{var s=Z5(o,yT,Bh.SI);for(var l in s)t[l]==null&&(t[l]=s[l])}catch(c){if(r.WTF)throw c}t.HeadingPairs&&t.TitlesOfParts&&(UZ(t.HeadingPairs,t.TitlesOfParts,t,r),delete t.HeadingPairs,delete t.TitlesOfParts)}function Fet(e,t){var r=[],n=[],a=[],i=0,o,s=T5(gT,"n"),l=T5(yT,"n");if(e.Props)for(o=Pn(e.Props),i=0;i-1||VZ.indexOf(a[i][0])>-1||a[i][1]!=null&&c.push(a[i]);n.length&&Vt.utils.cfb_add(t,"/SummaryInformation",J5(n,Bh.SI,l,yT)),(r.length||c.length)&&Vt.utils.cfb_add(t,"/DocumentSummaryInformation",J5(r,Bh.DSI,s,gT,c.length?c:null,Bh.UDI))}function l4(e,t){t||(t={}),u4(t),lC(),t.codepage&&sC(t.codepage);var r,n;if(e.FullPaths){if(Vt.find(e,"/encryption"))throw new Error("File is password-protected");r=Vt.find(e,"!CompObj"),n=Vt.find(e,"/Workbook")||Vt.find(e,"/Book")}else{switch(t.type){case"base64":e=eo(ho(e));break;case"binary":e=eo(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e));break}Wa(e,0),n={content:e}}var a,i;if(r&&Ret(r),t.bookProps&&!t.bookSheets)a={};else{var o=dr?"buffer":"array";if(n&&n.content)a=Det(n.content,t);else if((i=Vt.find(e,"PerfectOffice_MAIN"))&&i.content)a=ad.to_workbook(i.content,(t.type=o,t));else if((i=Vt.find(e,"NativeContent_MAIN"))&&i.content)a=ad.to_workbook(i.content,(t.type=o,t));else throw(i=Vt.find(e,"MN0"))&&i.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");t.bookVBA&&e.FullPaths&&Vt.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(a.vbaraw=YXe(e))}var s={};return e.FullPaths&&jet(e,s,t),a.Props=a.Custprops=s,t.bookFiles&&(a.cfb=e),a}function Let(e,t){var r=t||{},n=Vt.utils.cfb_new({root:"R"}),a="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":a="/Workbook",r.biff=8;break;case"biff5":a="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return Vt.utils.cfb_add(n,a,qJ(e,r)),r.biff==8&&(e.Props||e.Custprops)&&Fet(e,n),r.biff==8&&e.vbaraw&&QXe(n,Vt.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var Jp={0:{f:lZe},1:{f:vZe},2:{f:MZe},3:{f:EZe},4:{f:bZe},5:{f:kZe},6:{f:BZe},7:{f:TZe},8:{f:GZe},9:{f:KZe},10:{f:VZe},11:{f:UZe},12:{f:yZe},13:{f:jZe},14:{f:_Ze},15:{f:wZe},16:{f:LJ},17:{f:HZe},18:{f:IZe},19:{f:VR},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:zJe},40:{},42:{},43:{f:Bqe},44:{f:Fqe},45:{f:Wqe},46:{f:Uqe},47:{f:Vqe},48:{},49:{f:dUe},50:{},51:{f:$Xe},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:cJ},62:{f:LZe},63:{f:AXe},64:{f:cJe},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:di,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:iJe},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:hZe},148:{f:dZe,p:16},151:{f:JZe},152:{},153:{f:FJe},154:{},155:{},156:{f:DJe},157:{},158:{},159:{T:1,f:tqe},160:{T:-1},161:{T:1,f:Jd},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:qZe},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:CXe},336:{T:-1},337:{f:TXe,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:vT},357:{},358:{},359:{},360:{T:1},361:{},362:{f:lJ},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:eJe},427:{f:tJe},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:nJe},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:mZe},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:QZe},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:vT},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:UXe},633:{T:1},634:{T:-1},635:{T:1,f:WXe},636:{T:-1},637:{f:pUe},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:_Je},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:uJe},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},ET={6:{f:DE},10:{f:nc},12:{f:Yn},13:{f:Yn},14:{f:Rn},15:{f:Rn},16:{f:ai},17:{f:Rn},18:{f:Rn},19:{f:Yn},20:{f:iL},21:{f:iL},23:{f:lJ},24:{f:sL},25:{f:Rn},26:{},27:{},28:{f:uGe},29:{},34:{f:Rn},35:{f:oL},38:{f:ai},39:{f:ai},40:{f:ai},41:{f:ai},42:{f:Rn},43:{f:Rn},47:{f:wqe},49:{f:jKe},51:{f:Yn},60:{},61:{f:kKe},64:{f:Rn},65:{f:DKe},66:{f:Yn},77:{},80:{},81:{},82:{},85:{f:Yn},89:{},90:{},91:{},92:{f:SKe},93:{f:mGe},94:{},95:{f:Rn},96:{},97:{},99:{f:Rn},125:{f:cJ},128:{f:ZKe},129:{f:CKe},130:{f:Yn},131:{f:Rn},132:{f:Rn},133:{f:EKe},134:{},140:{f:SGe},141:{f:Yn},144:{},146:{f:EGe},151:{},152:{},153:{},154:{},155:{},156:{f:Yn},157:{},158:{},160:{f:NGe},161:{f:OGe},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:qKe},190:{f:XKe},193:{f:nc},197:{},198:{},199:{},200:{},201:{},202:{f:Rn},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:Yn},220:{},221:{f:Rn},222:{},224:{f:QKe},225:{f:bKe},226:{f:nc},227:{},229:{f:dGe},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:_Ke},253:{f:LKe},255:{f:TKe},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:JZ},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:Rn},353:{f:nc},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:nGe},431:{f:Rn},432:{},433:{},434:{},437:{},438:{f:vGe},439:{f:Rn},440:{f:gGe},441:{},442:{f:fg},443:{},444:{f:Yn},445:{},446:{},448:{f:nc},449:{f:NKe,r:2},450:{f:nc},512:{f:rL},513:{f:IGe},515:{f:tGe},516:{f:zKe},517:{f:aL},519:{f:kGe},520:{f:PKe},523:{},545:{f:lL},549:{f:tL},566:{},574:{f:AKe},638:{f:GKe},659:{},1048:{},1054:{f:WKe},1084:{},1212:{f:sGe},2048:{f:xGe},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:Ay},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:nc},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:$Ge,r:12},2173:{f:SXe,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:Rn,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:oGe,r:12},2197:{},2198:{f:pXe,r:12},2199:{},2200:{},2201:{},2202:{f:lGe,r:12},2203:{f:nc},2204:{},2205:{},2206:{},2207:{},2211:{f:IKe},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:Yn},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:TGe},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:CGe},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:rL},1:{},2:{f:jGe},3:{f:MGe},4:{f:AGe},5:{f:aL},7:{f:LGe},8:{},9:{f:Ay},11:{},22:{f:Yn},30:{f:UKe},31:{},32:{},33:{f:lL},36:{},37:{f:tL},50:{f:BGe},62:{},52:{},67:{},68:{f:Yn},69:{},86:{},126:{},127:{f:RGe},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:zGe},223:{},234:{},354:{},421:{},518:{f:DE},521:{f:Ay},536:{f:sL},547:{f:oL},561:{},579:{},1030:{f:DE},1033:{f:Ay},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function Et(e,t,r,n){var a=t;if(!isNaN(a)){var i=n||(r||[]).length||0,o=e.next(4);o.write_shift(2,a),o.write_shift(2,i),i>0&&zR(r)&&e.push(r)}}function Bet(e,t,r,n){var a=n||(r||[]).length||0;if(a<=8224)return Et(e,t,r,a);var i=t;if(!isNaN(i)){for(var o=r.parts||[],s=0,l=0,c=0;c+(o[s]||8224)<=8224;)c+=o[s]||8224,s++;var u=e.next(4);for(u.write_shift(2,i),u.write_shift(2,c),e.push(r.slice(l,l+c)),l+=c;l=0&&a<65536?Et(e,2,FGe(r,n,a)):Et(e,3,DGe(r,n,a));return;case"b":case"e":Et(e,5,zet(r,n,t.v,t.t));return;case"s":case"str":Et(e,4,Het(r,n,(t.v||"").slice(0,255)));return}Et(e,1,vg(null,r,n))}function Vet(e,t,r,n){var a=Array.isArray(t),i=yr(t["!ref"]||"A1"),o,s="",l=[];if(i.e.c>255||i.e.r>16383){if(n.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");i.e.c=Math.min(i.e.c,255),i.e.r=Math.min(i.e.c,16383),o=ir(i)}for(var c=i.s.r;c<=i.e.r;++c){s=On(c);for(var u=i.s.c;u<=i.e.c;++u){c===i.s.r&&(l[u]=tn(u)),o=l[u]+s;var f=a?(t[c]||[])[u]:t[o];f&&Wet(e,f,c,u)}}}function Uet(e,t){for(var r=t||{},n=zi(),a=0,i=0;i255||h.e.r>=v){if(t.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV16384");h.e.c=Math.min(h.e.c,255),h.e.r=Math.min(h.e.c,v-1)}Et(n,2057,QR(r,16,t)),Et(n,13,ko(1)),Et(n,12,ko(100)),Et(n,15,gi(!0)),Et(n,17,gi(!1)),Et(n,16,Pd(.001)),Et(n,95,gi(!0)),Et(n,42,gi(!1)),Et(n,43,gi(!1)),Et(n,130,ko(1)),Et(n,128,JKe([0,0])),Et(n,131,gi(!1)),Et(n,132,gi(!1)),c&&Qet(n,i["!cols"]),Et(n,512,KKe(h,t)),c&&(i["!links"]=[]);for(var p=h.s.r;p<=h.e.r;++p){f=On(p);for(var g=h.s.c;g<=h.e.c;++g){p===h.s.r&&(m[g]=tn(g)),u=m[g]+f;var y=l?(i[p]||[])[g]:i[u];y&&(Zet(n,y,p,g,t),c&&y.l&&i["!links"].push([u,y.l]))}}var x=s.CodeName||s.name||a;return c&&Et(n,574,MKe((o.Views||[])[0])),c&&(i["!merges"]||[]).length&&Et(n,229,fGe(i["!merges"])),c&&Yet(n,i),Et(n,442,tJ(x)),c&&qet(n,i),Et(n,10),n.end()}function ett(e,t,r){var n=zi(),a=(e||{}).Workbook||{},i=a.Sheets||[],o=a.WBProps||{},s=r.biff==8,l=r.biff==5;if(Et(n,2057,QR(e,5,r)),r.bookType=="xla"&&Et(n,135),Et(n,225,s?ko(1200):null),Et(n,193,eKe(2)),l&&Et(n,191),l&&Et(n,192),Et(n,226),Et(n,92,wKe("SheetJS",r)),Et(n,66,ko(s?1200:1252)),s&&Et(n,353,ko(0)),s&&Et(n,448),Et(n,317,PGe(e.SheetNames.length)),s&&e.vbaraw&&Et(n,211),s&&e.vbaraw){var c=o.CodeName||"ThisWorkbook";Et(n,442,tJ(c))}Et(n,156,ko(17)),Et(n,25,gi(!1)),Et(n,18,gi(!1)),Et(n,19,ko(0)),s&&Et(n,431,gi(!1)),s&&Et(n,444,ko(0)),Et(n,61,RKe()),Et(n,64,gi(!1)),Et(n,141,ko(0)),Et(n,34,gi(NJe(e)=="true")),Et(n,14,gi(!0)),s&&Et(n,439,gi(!1)),Et(n,218,ko(0)),Ket(n,e,r),Get(n,e.SSF,r),Xet(n,r),s&&Et(n,352,gi(!1));var u=n.end(),f=zi();s&&Et(f,140,wGe()),s&&r.Strings&&Bet(f,252,OKe(r.Strings)),Et(f,10);var m=f.end(),h=zi(),v=0,p=0;for(p=0;p255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255). Data may be lost.")}}var i=t||{};switch(i.biff||2){case 8:case 5:return ttt(e,t);case 4:case 3:case 2:return Uet(e,t)}throw new Error("invalid type "+i.bookType+" for BIFF")}function yL(e,t){var r=t||{},n=r.dense?[]:{};e=e.replace(//g,"");var a=e.match(/");var i=e.match(/<\/table/i),o=a.index,s=i&&i.index||e.length,l=LVe(e.slice(o,s),/(:?]*>)/i,""),c=-1,u=0,f=0,m=0,h={s:{r:1e7,c:1e7},e:{r:0,c:0}},v=[];for(o=0;o/i);for(s=0;s"))>-1;)b=b.slice(S+1);for(var w=0;w")));m=C.colspan?+C.colspan:1,((f=+C.rowspan)>1||m>1)&&v.push({s:{r:c,c:u},e:{r:c+(f||1)-1,c:u+m-1}});var O=C.t||C["data-t"]||"";if(!b.length){u+=m;continue}if(b=wZ(b),h.s.r>c&&(h.s.r=c),h.e.ru&&(h.s.c=u),h.e.cr||a[c].s.c>o)&&!(a[c].e.r1&&(h.rowspan=s),l>1&&(h.colspan=l),n.editable?m=''+m+"":f&&(h["data-t"]=f&&f.t||"z",f.v!=null&&(h["data-v"]=f.v),f.z!=null&&(h["data-z"]=f.z),f.l&&(f.l.Target||"#").charAt(0)!="#"&&(m=''+m+"")),h.id=(n.id||"sjs")+"-"+u,i.push(Ct("td",m,h))}}var v="";return v+i.join("")+""}var YJ='SheetJS Table Export',QJ="";function rtt(e,t){var r=e.match(/[\s\S]*?<\/table>/gi);if(!r||r.length==0)throw new Error("Invalid HTML: could not find
");if(r.length==1)return bu(yL(r[0],t),t);var n=v4();return r.forEach(function(a,i){g4(n,yL(a,t),"Sheet"+(i+1))}),n}function ZJ(e,t,r){var n=[];return n.join("")+""}function JJ(e,t){var r=t||{},n=r.header!=null?r.header:YJ,a=r.footer!=null?r.footer:QJ,i=[n],o=$i(e["!ref"]);r.dense=Array.isArray(e),i.push(ZJ(e,o,r));for(var s=o.s.r;s<=o.e.r;++s)i.push(XJ(e,o,s,r));return i.push("
"+a),i.join("")}function eee(e,t,r){var n=r||{},a=0,i=0;if(n.origin!=null)if(typeof n.origin=="number")a=n.origin;else{var o=typeof n.origin=="string"?hn(n.origin):n.origin;a=o.r,i=o.c}var s=t.getElementsByTagName("tr"),l=Math.min(n.sheetRows||1e7,s.length),c={s:{r:0,c:0},e:{r:a,c:i}};if(e["!ref"]){var u=$i(e["!ref"]);c.s.r=Math.min(c.s.r,u.s.r),c.s.c=Math.min(c.s.c,u.s.c),c.e.r=Math.max(c.e.r,u.e.r),c.e.c=Math.max(c.e.c,u.e.c),a==-1&&(c.e.r=a=u.e.r+1)}var f=[],m=0,h=e["!rows"]||(e["!rows"]=[]),v=0,p=0,g=0,y=0,x=0,b=0;for(e["!cols"]||(e["!cols"]=[]);v1||b>1)&&f.push({s:{r:p+a,c:y+i},e:{r:p+a+(x||1)-1,c:y+i+(b||1)-1}});var T={t:"s",v:C},I=E.getAttribute("data-t")||E.getAttribute("t")||"";C!=null&&(C.length==0?T.t=I||"z":n.raw||C.trim().length==0||I=="s"||(C==="TRUE"?T={t:"b",v:!0}:C==="FALSE"?T={t:"b",v:!1}:isNaN(Cs(C))?isNaN(k0(C).getDate())||(T={t:"d",v:rn(C)},n.cellDates||(T={t:"n",v:ya(T.v)}),T.z=n.dateNF||Kt[14]):T={t:"n",v:Cs(C)})),T.z===void 0&&O!=null&&(T.z=O);var N="",D=E.getElementsByTagName("A");if(D&&D.length)for(var k=0;k=l&&(e["!fullref"]=ir((c.e.r=s.length-v+p-1+a,c))),e}function tee(e,t){var r=t||{},n=r.dense?[]:{};return eee(n,e,t)}function ntt(e,t){return bu(tee(e,t),t)}function xL(e){var t="",r=att(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function att(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}function itt(e){var t=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(//g," ").replace(//g,function(n,a){return Array(parseInt(a,10)+1).join(" ")}).replace(/]*\/>/g," ").replace(//g,` +`),r=Cr(t.replace(/<[^>]*>/g,""));return[r]}var bL={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function ree(e,t){var r=t||{},n=MR(e),a=[],i,o,s={name:""},l="",c=0,u,f,m={},h=[],v=r.dense?[]:{},p,g,y={value:""},x="",b=0,S=[],w=-1,E=-1,C={s:{r:1e6,c:1e7},e:{r:0,c:0}},O=0,_={},T=[],I={},N=0,D=0,k=[],R=1,A=1,j=[],F={Names:[]},M={},V=["",""],K=[],L={},B="",W=0,H=!1,U=!1,X=0;for(Gp.lastIndex=0,n=n.replace(//mg,"").replace(//gm,"");p=Gp.exec(n);)switch(p[3]=p[3].replace(/_.*$/,"")){case"table":case"工作表":p[1]==="/"?(C.e.c>=C.s.c&&C.e.r>=C.s.r?v["!ref"]=ir(C):v["!ref"]="A1:A1",r.sheetRows>0&&r.sheetRows<=C.e.r&&(v["!fullref"]=v["!ref"],C.e.r=r.sheetRows-1,v["!ref"]=ir(C)),T.length&&(v["!merges"]=T),k.length&&(v["!rows"]=k),u.name=u.名称||u.name,typeof JSON<"u"&&JSON.stringify(u),h.push(u.name),m[u.name]=v,U=!1):p[0].charAt(p[0].length-2)!=="/"&&(u=Zt(p[0],!1),w=E=-1,C.s.r=C.s.c=1e7,C.e.r=C.e.c=0,v=r.dense?[]:{},T=[],k=[],U=!0);break;case"table-row-group":p[1]==="/"?--O:++O;break;case"table-row":case"行":if(p[1]==="/"){w+=R,R=1;break}if(f=Zt(p[0],!1),f.行号?w=f.行号-1:w==-1&&(w=0),R=+f["number-rows-repeated"]||1,R<10)for(X=0;X0&&(k[w+X]={level:O});E=-1;break;case"covered-table-cell":p[1]!=="/"&&++E,r.sheetStubs&&(r.dense?(v[w]||(v[w]=[]),v[w][E]={t:"z"}):v[Xt({r:w,c:E})]={t:"z"}),x="",S=[];break;case"table-cell":case"数据":if(p[0].charAt(p[0].length-2)==="/")++E,y=Zt(p[0],!1),A=parseInt(y["number-columns-repeated"]||"1",10),g={t:"z",v:null},y.formula&&r.cellFormula!=!1&&(g.f=pL(Cr(y.formula))),(y.数据类型||y["value-type"])=="string"&&(g.t="s",g.v=Cr(y["string-value"]||""),r.dense?(v[w]||(v[w]=[]),v[w][E]=g):v[Xt({r:w,c:E})]=g),E+=A-1;else if(p[1]!=="/"){++E,x="",b=0,S=[],A=1;var Y=R?w+R-1:w;if(E>C.e.c&&(C.e.c=E),EC.e.r&&(C.e.r=Y),y=Zt(p[0],!1),K=[],L={},g={t:y.数据类型||y["value-type"],v:null},r.cellFormula)if(y.formula&&(y.formula=Cr(y.formula)),y["number-matrix-columns-spanned"]&&y["number-matrix-rows-spanned"]&&(N=parseInt(y["number-matrix-rows-spanned"],10)||0,D=parseInt(y["number-matrix-columns-spanned"],10)||0,I={s:{r:w,c:E},e:{r:w+N-1,c:E+D-1}},g.F=ir(I),j.push([I,g.F])),y.formula)g.f=pL(y.formula);else for(X=0;X=j[X][0].s.r&&w<=j[X][0].e.r&&E>=j[X][0].s.c&&E<=j[X][0].e.c&&(g.F=j[X][1]);switch((y["number-columns-spanned"]||y["number-rows-spanned"])&&(N=parseInt(y["number-rows-spanned"],10)||0,D=parseInt(y["number-columns-spanned"],10)||0,I={s:{r:w,c:E},e:{r:w+N-1,c:E+D-1}},T.push(I)),y["number-columns-repeated"]&&(A=parseInt(y["number-columns-repeated"],10)),g.t){case"boolean":g.t="b",g.v=Jr(y["boolean-value"]);break;case"float":g.t="n",g.v=parseFloat(y.value);break;case"percentage":g.t="n",g.v=parseFloat(y.value);break;case"currency":g.t="n",g.v=parseFloat(y.value);break;case"date":g.t="d",g.v=rn(y["date-value"]),r.cellDates||(g.t="n",g.v=ya(g.v)),g.z="m/d/yy";break;case"time":g.t="n",g.v=DVe(y["time-value"])/86400,r.cellDates&&(g.t="d",g.v=dC(g.v)),g.z="HH:MM:SS";break;case"number":g.t="n",g.v=parseFloat(y.数据数值);break;default:if(g.t==="string"||g.t==="text"||!g.t)g.t="s",y["string-value"]!=null&&(x=Cr(y["string-value"]),S=[]);else throw new Error("Unsupported value type "+g.t)}}else{if(H=!1,g.t==="s"&&(g.v=x||"",S.length&&(g.R=S),H=b==0),M.Target&&(g.l=M),K.length>0&&(g.c=K,K=[]),x&&r.cellText!==!1&&(g.w=x),H&&(g.t="z",delete g.v),(!H||r.sheetStubs)&&!(r.sheetRows&&r.sheetRows<=w))for(var G=0;G0;)v[w+G][E+A]=Hr(g);else for(v[Xt({r:w+G,c:E})]=g;--A>0;)v[Xt({r:w+G,c:E+A})]=Hr(g);C.e.c<=E&&(C.e.c=E)}A=parseInt(y["number-columns-repeated"]||"1",10),E+=A-1,A=0,g={},x="",S=[]}M={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(p[1]==="/"){if((i=a.pop())[0]!==p[3])throw"Bad state: "+i}else p[0].charAt(p[0].length-2)!=="/"&&a.push([p[3],!0]);break;case"annotation":if(p[1]==="/"){if((i=a.pop())[0]!==p[3])throw"Bad state: "+i;L.t=x,S.length&&(L.R=S),L.a=B,K.push(L)}else p[0].charAt(p[0].length-2)!=="/"&&a.push([p[3],!1]);B="",W=0,x="",b=0,S=[];break;case"creator":p[1]==="/"?B=n.slice(W,p.index):W=p.index+p[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if(p[1]==="/"){if((i=a.pop())[0]!==p[3])throw"Bad state: "+i}else p[0].charAt(p[0].length-2)!=="/"&&a.push([p[3],!1]);x="",b=0,S=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(p[1]==="/"){if(_[s.name]=l,(i=a.pop())[0]!==p[3])throw"Bad state: "+i}else p[0].charAt(p[0].length-2)!=="/"&&(l="",s=Zt(p[0],!1),a.push([p[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(a[a.length-1][0]){case"time-style":case"date-style":o=Zt(p[0],!1),l+=bL[p[3]][o.style==="long"?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(a[a.length-1][0]){case"time-style":case"date-style":o=Zt(p[0],!1),l+=bL[p[3]][o.style==="long"?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(p[0].slice(-2)==="/>")break;if(p[1]==="/")switch(a[a.length-1][0]){case"number-style":case"date-style":case"time-style":l+=n.slice(c,p.index);break}else c=p.index+p[0].length;break;case"named-range":o=Zt(p[0],!1),V=jE(o["cell-range-address"]);var Q={Name:o.name,Ref:V[0]+"!"+V[1]};U&&(Q.Sheet=h.length),F.Names.push(Q);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"文本串":if(["master-styles"].indexOf(a[a.length-1][0])>-1)break;if(p[1]==="/"&&(!y||!y["string-value"])){var J=itt(n.slice(b,p.index));x=(x.length>0?x+` +`:"")+J[0]}else Zt(p[0],!1),b=p.index+p[0].length;break;case"s":break;case"database-range":if(p[1]==="/")break;try{V=jE(Zt(p[0])["target-range-address"]),m[V[0]]["!autofilter"]={ref:V[1]}}catch{}break;case"date":break;case"object":break;case"title":case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if(p[1]!=="/"){if(M=Zt(p[0],!1),!M.href)break;M.Target=Cr(M.href),delete M.href,M.Target.charAt(0)=="#"&&M.Target.indexOf(".")>-1?(V=jE(M.Target.slice(1)),M.Target="#"+V[0]+"!"+V[1]):M.Target.match(/^\.\.[\\\/]/)&&(M.Target=M.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(p[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(r.WTF)throw new Error(p)}}var z={Sheets:m,SheetNames:h,Workbook:F};return r.bookSheets&&delete z.Sheets,z}function SL(e,t){t=t||{},Io(e,"META-INF/manifest.xml")&&MUe(Xn(e,"META-INF/manifest.xml"),t);var r=to(e,"content.xml");if(!r)throw new Error("Missing content.xml in ODS / UOF file");var n=ree(Lr(r),t);return Io(e,"meta.xml")&&(n.Props=HZ(Xn(e,"meta.xml"))),n}function wL(e,t){return ree(e,t)}var ott=function(){var e=["",'',"",'',"",'',"",""].join(""),t=""+e+"";return function(){return Bn+t}}(),CL=function(){var e=function(i){return Mr(i).replace(/ +/g,function(o){return''}).replace(/\t/g,"").replace(/\n/g,"").replace(/^ /,"").replace(/ $/,"")},t=` +`,r=` +`,n=function(i,o,s){var l=[];l.push(' +`);var c=0,u=0,f=$i(i["!ref"]||"A1"),m=i["!merges"]||[],h=0,v=Array.isArray(i);if(i["!cols"])for(u=0;u<=f.e.c;++u)l.push(" +`);var p="",g=i["!rows"]||[];for(c=0;c +`);for(;c<=f.e.r;++c){for(p=g[c]?' table:style-name="ro'+g[c].ods+'"':"",l.push(" +`),u=0;uu)&&!(m[h].s.r>c)&&!(m[h].e.c +`)}return l.push(` +`),l.join("")},a=function(i,o){i.push(` +`),i.push(` +`),i.push(` +`),i.push(` / +`),i.push(` +`),i.push(` / +`),i.push(` +`),i.push(` +`);var s=0;o.SheetNames.map(function(c){return o.Sheets[c]}).forEach(function(c){if(c&&c["!cols"]){for(var u=0;u +`),i.push(' +`),i.push(` +`),++s}}});var l=0;o.SheetNames.map(function(c){return o.Sheets[c]}).forEach(function(c){if(c&&c["!rows"]){for(var u=0;u +`),i.push(' +`),i.push(` +`),++l}}}),i.push(` +`),i.push(` +`),i.push(` +`),i.push(` +`),i.push(` +`)};return function(o,s){var l=[Bn],c=Kp({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),u=Kp({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});s.bookType=="fods"?(l.push(" +`),l.push(zZ().replace(/office:document-meta/g,"office:meta"))):l.push(" +`),a(l,o),l.push(` +`),l.push(` +`);for(var f=0;f!=o.SheetNames.length;++f)l.push(n(o.Sheets[o.SheetNames[f]],o,f));return l.push(` +`),l.push(` +`),s.bookType=="fods"?l.push(""):l.push(""),l.join("")}}();function nee(e,t){if(t.bookType=="fods")return CL(e,t);var r=NR(),n="",a=[],i=[];return n="mimetype",sr(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",sr(r,n,CL(e,t)),a.push([n,"text/xml"]),i.push([n,"ContentFile"]),n="styles.xml",sr(r,n,ott(e,t)),a.push([n,"text/xml"]),i.push([n,"StylesFile"]),n="meta.xml",sr(r,n,Bn+zZ()),a.push([n,"text/xml"]),i.push([n,"MetadataFile"]),n="manifest.rdf",sr(r,n,FUe(i)),a.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",sr(r,n,DUe(a)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function kd(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function $T(e){return typeof TextDecoder<"u"?new TextDecoder().decode(e):Lr(xu(e))}function stt(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):eo(Ys(e))}function ltt(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var n=0;n>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>>24}function ctt(e,t){for(var r=(e[t+15]&127)<<7|e[t+14]>>1,n=e[t+14]&1,a=t+13;a>=t;--a)n=n*256+e[a];return(e[t+15]&128?-n:n)*Math.pow(10,r-6176)}function utt(e,t,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,a=r/Math.pow(10,n-6176);e[t+15]|=n>>7,e[t+14]|=(n&127)<<1;for(var i=0;a>=1;++i,a/=256)e[t+i]=a&255;e[t+15]|=r>=0?0:128}function ev(e,t){var r=t?t[0]:0,n=e[r]&127;e:if(e[r++]>=128&&(n|=(e[r]&127)<<7,e[r++]<128||(n|=(e[r]&127)<<14,e[r++]<128)||(n|=(e[r]&127)<<21,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return t&&(t[0]=r),n}function kr(e){var t=new Uint8Array(7);t[0]=e&127;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383||(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)||(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)||(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)||(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103))break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function Tn(e){var t=0,r=e[t]&127;e:if(e[t++]>=128){if(r|=(e[t]&127)<<7,e[t++]<128||(r|=(e[t]&127)<<14,e[t++]<128)||(r|=(e[t]&127)<<21,e[t++]<128))break e;r|=(e[t]&127)<<28}return r}function $r(e){for(var t=[],r=[0];r[0]=128;);s=e.slice(l,r[0])}break;case 5:o=4,s=e.slice(r[0],r[0]+o),r[0]+=o;break;case 1:o=8,s=e.slice(r[0],r[0]+o),r[0]+=o;break;case 2:o=ev(e,r),s=e.slice(r[0],r[0]+o),r[0]+=o;break;case 3:case 4:default:throw new Error("PB Type ".concat(i," for Field ").concat(a," at offset ").concat(n))}var c={data:s,type:i};t[a]==null?t[a]=[c]:t[a].push(c)}return t}function La(e){var t=[];return e.forEach(function(r,n){r.forEach(function(a){a.data&&(t.push(kr(n*8+a.type)),a.type==2&&t.push(kr(a.data.length)),t.push(a.data))})}),tu(t)}function c4(e,t){return(e==null?void 0:e.map(function(r){return t(r.data)}))||[]}function Oo(e){for(var t,r=[],n=[0];n[0]>>0>0),r.push(o)}return r}function xf(e){var t=[];return e.forEach(function(r){var n=[];n[1]=[{data:kr(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:kr(+!!r.merge),type:0}]);var a=[];r.messages.forEach(function(o){a.push(o.data),o.meta[3]=[{type:0,data:kr(o.data.length)}],n[2].push({data:La(o.meta),type:2})});var i=La(n);t.push(kr(i.length)),t.push(i),a.forEach(function(o){return t.push(o)})}),tu(t)}function dtt(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=ev(t,r),a=[];r[0]>2;if(o<60)++o;else{var s=o-59;o=t[r[0]],s>1&&(o|=t[r[0]+1]<<8),s>2&&(o|=t[r[0]+2]<<16),s>3&&(o|=t[r[0]+3]<<24),o>>>=0,o++,r[0]+=s}a.push(t.slice(r[0],r[0]+o)),r[0]+=o;continue}else{var l=0,c=0;if(i==1?(c=(t[r[0]]>>2&7)+4,l=(t[r[0]++]&224)<<3,l|=t[r[0]++]):(c=(t[r[0]++]>>2)+1,i==2?(l=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(l=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),a=[tu(a)],l==0)throw new Error("Invalid offset 0");if(l>a[0].length)throw new Error("Invalid offset beyond length");if(c>=l)for(a.push(a[0].slice(-l)),c-=l;c>=a[a.length-1].length;)a.push(a[a.length-1]),c-=a[a.length-1].length;a.push(a[0].slice(-l,-l+c))}}var u=tu(a);if(u.length!=n)throw new Error("Unexpected length: ".concat(u.length," != ").concat(n));return u}function To(e){for(var t=[],r=0;r>8&255]))):n<=16777216?(o+=4,t.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(o+=5,t.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),t.push(e.slice(r,r+n)),o+=n,a[0]=0,a[1]=o&255,a[2]=o>>8&255,a[3]=o>>16&255,r+=n}return tu(t)}function ftt(e,t,r,n){var a=kd(e),i=a.getUint32(4,!0),o=(n>1?12:8)+EL(i&(n>1?3470:398))*4,s=-1,l=-1,c=NaN,u=new Date(2001,0,1);i&512&&(s=a.getUint32(o,!0),o+=4),o+=EL(i&(n>1?12288:4096))*4,i&16&&(l=a.getUint32(o,!0),o+=4),i&32&&(c=a.getFloat64(o,!0),o+=8),i&64&&(u.setTime(u.getTime()+a.getFloat64(o,!0)*1e3),o+=8);var f;switch(e[2]){case 0:break;case 2:f={t:"n",v:c};break;case 3:f={t:"s",v:t[l]};break;case 5:f={t:"d",v:u};break;case 6:f={t:"b",v:c>0};break;case 7:f={t:"n",v:c/86400};break;case 8:f={t:"e",v:0};break;case 9:if(s>-1)f={t:"s",v:r[s]};else if(l>-1)f={t:"s",v:t[l]};else if(!isNaN(c))f={t:"n",v:c};else throw new Error("Unsupported cell type ".concat(e.slice(0,4)));break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return f}function mtt(e,t,r){var n=kd(e),a=n.getUint32(8,!0),i=12,o=-1,s=-1,l=NaN,c=NaN,u=new Date(2001,0,1);a&1&&(l=ctt(e,i),i+=16),a&2&&(c=n.getFloat64(i,!0),i+=8),a&4&&(u.setTime(u.getTime()+n.getFloat64(i,!0)*1e3),i+=8),a&8&&(s=n.getUint32(i,!0),i+=4),a&16&&(o=n.getUint32(i,!0),i+=4);var f;switch(e[1]){case 0:break;case 2:f={t:"n",v:l};break;case 3:f={t:"s",v:t[s]};break;case 5:f={t:"d",v:u};break;case 6:f={t:"b",v:c>0};break;case 7:f={t:"n",v:c/86400};break;case 8:f={t:"e",v:0};break;case 9:if(o>-1)f={t:"s",v:r[o]};else throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(a&31," : ").concat(e.slice(0,4)));break;case 10:f={t:"n",v:l};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(a&31," : ").concat(e.slice(0,4)))}return f}function LE(e,t){var r=new Uint8Array(32),n=kd(r),a=12,i=0;switch(r[0]=5,e.t){case"n":r[1]=2,utt(r,a,e.v),i|=1,a+=16;break;case"b":r[1]=6,n.setFloat64(a,e.v?1:0,!0),i|=2,a+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[1]=3,n.setUint32(a,t.indexOf(e.v),!0),i|=8,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,i,!0),r.slice(0,a)}function BE(e,t){var r=new Uint8Array(32),n=kd(r),a=12,i=0;switch(r[0]=3,e.t){case"n":r[2]=2,n.setFloat64(a,e.v,!0),i|=32,a+=8;break;case"b":r[2]=6,n.setFloat64(a,e.v?1:0,!0),i|=32,a+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[2]=3,n.setUint32(a,t.indexOf(e.v),!0),i|=16,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,i,!0),r.slice(0,a)}function htt(e,t,r){switch(e[0]){case 0:case 1:case 2:case 3:return ftt(e,t,r,e[0]);case 5:return mtt(e,t,r);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function Ja(e){var t=$r(e);return ev(t[1][0].data)}function $L(e,t){var r=$r(t.data),n=Tn(r[1][0].data),a=r[3],i=[];return(a||[]).forEach(function(o){var s=$r(o.data),l=Tn(s[1][0].data)>>>0;switch(n){case 1:i[l]=$T(s[3][0].data);break;case 8:{var c=e[Ja(s[9][0].data)][0],u=$r(c.data),f=e[Ja(u[1][0].data)][0],m=Tn(f.meta[1][0].data);if(m!=2001)throw new Error("2000 unexpected reference to ".concat(m));var h=$r(f.data);i[l]=h[3].map(function(v){return $T(v.data)}).join("")}break}}),i}function ptt(e,t){var r,n,a,i,o,s,l,c,u,f,m,h,v,p,g=$r(e),y=Tn(g[1][0].data)>>>0,x=Tn(g[2][0].data)>>>0,b=((n=(r=g[8])==null?void 0:r[0])==null?void 0:n.data)&&Tn(g[8][0].data)>0||!1,S,w;if((i=(a=g[7])==null?void 0:a[0])!=null&&i.data&&t!=0)S=(s=(o=g[7])==null?void 0:o[0])==null?void 0:s.data,w=(c=(l=g[6])==null?void 0:l[0])==null?void 0:c.data;else if((f=(u=g[4])==null?void 0:u[0])!=null&&f.data&&t!=1)S=(h=(m=g[4])==null?void 0:m[0])==null?void 0:h.data,w=(p=(v=g[3])==null?void 0:v[0])==null?void 0:p.data;else throw"NUMBERS Tile missing ".concat(t," cell storage");for(var E=b?4:1,C=kd(S),O=[],_=0;_=1&&(I[O[O.length-1][0]]=w.subarray(O[O.length-1][1]*E)),{R:y,cells:I}}function vtt(e,t){var r,n=$r(t.data),a=(r=n==null?void 0:n[7])!=null&&r[0]?Tn(n[7][0].data)>>>0>0?1:0:-1,i=c4(n[5],function(o){return ptt(o,a)});return{nrows:Tn(n[4][0].data)>>>0,data:i.reduce(function(o,s){return o[s.R]||(o[s.R]=[]),s.cells.forEach(function(l,c){if(o[s.R][c])throw new Error("Duplicate cell r=".concat(s.R," c=").concat(c));o[s.R][c]=l}),o},[])}}function gtt(e,t,r){var n,a=$r(t.data),i={s:{r:0,c:0},e:{r:0,c:0}};if(i.e.r=(Tn(a[6][0].data)>>>0)-1,i.e.r<0)throw new Error("Invalid row varint ".concat(a[6][0].data));if(i.e.c=(Tn(a[7][0].data)>>>0)-1,i.e.c<0)throw new Error("Invalid col varint ".concat(a[7][0].data));r["!ref"]=ir(i);var o=$r(a[4][0].data),s=$L(e,e[Ja(o[4][0].data)][0]),l=(n=o[17])!=null&&n[0]?$L(e,e[Ja(o[17][0].data)][0]):[],c=$r(o[3][0].data),u=0;c[1].forEach(function(f){var m=$r(f.data),h=e[Ja(m[2][0].data)][0],v=Tn(h.meta[1][0].data);if(v!=6002)throw new Error("6001 unexpected reference to ".concat(v));var p=vtt(e,h);p.data.forEach(function(g,y){g.forEach(function(x,b){var S=Xt({r:u+y,c:b}),w=htt(x,s,l);w&&(r[S]=w)})}),u+=p.nrows})}function ytt(e,t){var r=$r(t.data),n={"!ref":"A1"},a=e[Ja(r[2][0].data)],i=Tn(a[0].meta[1][0].data);if(i!=6001)throw new Error("6000 unexpected reference to ".concat(i));return gtt(e,a[0],n),n}function xtt(e,t){var r,n=$r(t.data),a={name:(r=n[1])!=null&&r[0]?$T(n[1][0].data):"",sheets:[]},i=c4(n[2],Ja);return i.forEach(function(o){e[o].forEach(function(s){var l=Tn(s.meta[1][0].data);l==6e3&&a.sheets.push(ytt(e,s))})}),a}function btt(e,t){var r=v4(),n=$r(t.data),a=c4(n[1],Ja);if(a.forEach(function(i){e[i].forEach(function(o){var s=Tn(o.meta[1][0].data);if(s==2){var l=xtt(e,o);l.sheets.forEach(function(c,u){g4(r,c,u==0?l.name:l.name+"_"+u,!0)})}})}),r.SheetNames.length==0)throw new Error("Empty NUMBERS file");return r}function zE(e){var t,r,n,a,i={},o=[];if(e.FullPaths.forEach(function(l){if(l.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),e.FileIndex.forEach(function(l){if(l.name.match(/\.iwa$/)){var c;try{c=To(l.content)}catch(f){return console.log("?? "+l.content.length+" "+(f.message||f))}var u;try{u=Oo(c)}catch(f){return console.log("## "+(f.message||f))}u.forEach(function(f){i[f.id]=f.messages,o.push(f.id)})}}),!o.length)throw new Error("File has no messages");var s=((a=(n=(r=(t=i==null?void 0:i[1])==null?void 0:t[0])==null?void 0:r.meta)==null?void 0:n[1])==null?void 0:a[0].data)&&Tn(i[1][0].meta[1][0].data)==1&&i[1][0];if(s||o.forEach(function(l){i[l].forEach(function(c){var u=Tn(c.meta[1][0].data)>>>0;if(u==1)if(!s)s=c;else throw new Error("Document has multiple roots")})}),!s)throw new Error("Cannot find Document root");return btt(i,s)}function Stt(e,t,r){var n,a,i,o;if(!((n=e[6])!=null&&n[0])||!((a=e[7])!=null&&a[0]))throw"Mutation only works on post-BNC storages!";var s=((o=(i=e[8])==null?void 0:i[0])==null?void 0:o.data)&&Tn(e[8][0].data)>0||!1;if(s)throw"Math only works with normal offsets";for(var l=0,c=kd(e[7][0].data),u=0,f=[],m=kd(e[4][0].data),h=0,v=[],p=0;p1&&console.error("The Numbers writer currently writes only the first table");var n=$i(r["!ref"]);n.s.r=n.s.c=0;var a=!1;n.e.c>9&&(a=!0,n.e.c=9),n.e.r>49&&(a=!0,n.e.r=49),a&&console.error("The Numbers writer is currently limited to ".concat(ir(n)));var i=yb(r,{range:n,header:1}),o=["~Sh33tJ5~"];i.forEach(function(B){return B.forEach(function(W){typeof W=="string"&&o.push(W)})});var s={},l=[],c=Vt.read(t.numbers,{type:"base64"});c.FileIndex.map(function(B,W){return[B,c.FullPaths[W]]}).forEach(function(B){var W=B[0],H=B[1];if(W.type==2&&W.name.match(/\.iwa/)){var U=W.content,X=To(U),Y=Oo(X);Y.forEach(function(G){l.push(G.id),s[G.id]={deps:[],location:H,type:Tn(G.messages[0].meta[1][0].data)}})}}),l.sort(function(B,W){return B-W});var u=l.filter(function(B){return B>1}).map(function(B){return[B,kr(B)]});c.FileIndex.map(function(B,W){return[B,c.FullPaths[W]]}).forEach(function(B){var W=B[0];if(B[1],!!W.name.match(/\.iwa/)){var H=Oo(To(W.content));H.forEach(function(U){U.messages.forEach(function(X){u.forEach(function(Y){U.messages.some(function(G){return Tn(G.meta[1][0].data)!=11006&<t(G.data,Y[1])})&&s[Y[0]].deps.push(U.id)})})})}});for(var f=Vt.find(c,s[1].location),m=Oo(To(f.content)),h,v=0;v-1?"sheet":e==hr.CS?"chart":e==hr.DS?"dialog":e==hr.MS?"macro":e&&e.length?e:"sheet"}function Ett(e,t){if(!e)return 0;try{e=t.map(function(n){return n.id||(n.id=n.strRelID),[n.name,e["!id"][n.id].Target,Ctt(e["!id"][n.id].Type)]})}catch{return null}return!e||e.length===0?null:e}function $tt(e,t,r,n,a,i,o,s,l,c,u,f){try{i[n]=Dh(to(e,r,!0),t);var m=Xn(e,t),h;switch(s){case"sheet":h=XJe(m,t,a,l,i[n],c,u,f);break;case"chart":if(h=YJe(m,t,a,l,i[n],c,u,f),!h||!h["!drawel"])break;var v=ph(h["!drawel"].Target,t),p=qp(v),g=jXe(to(e,v,!0),Dh(to(e,p,!0),v)),y=ph(g,v),x=qp(y);h=EJe(to(e,y,!0),y,l,Dh(to(e,x,!0),y),c,h);break;case"macro":h=QJe(m,t,a,l,i[n],c,u,f);break;case"dialog":h=ZJe(m,t,a,l,i[n],c,u,f);break;default:throw new Error("Unrecognized sheet type "+s)}o[n]=h;var b=[];i&&i[n]&&Pn(i[n]).forEach(function(S){var w="";if(i[n][S].Type==hr.CMNT){w=ph(i[n][S].Target,t);var E=ret(Xn(e,w,!0),w,l);if(!E||!E.length)return;uL(h,E,!1)}i[n][S].Type==hr.TCMNT&&(w=ph(i[n][S].Target,t),b=b.concat(LXe(Xn(e,w,!0),l)))}),b&&b.length&&uL(h,b,!0,l.people||[])}catch(S){if(l.WTF)throw S}}function Eo(e){return e.charAt(0)=="/"?e.slice(1):e}function iee(e,t){if(Cm(),t=t||{},u4(t),Io(e,"META-INF/manifest.xml")||Io(e,"objectdata.xml"))return SL(e,t);if(Io(e,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof zE<"u"){if(e.FileIndex)return zE(e);var r=Vt.utils.cfb_new();return N5(e).forEach(function(k){sr(r,k,yZ(e,k))}),zE(r)}throw new Error("Unsupported NUMBERS file")}if(!Io(e,"[Content_Types].xml"))throw Io(e,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):Io(e,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var n=N5(e),a=RUe(to(e,"[Content_Types].xml")),i=!1,o,s;if(a.workbooks.length===0&&(s="xl/workbook.xml",Xn(e,s,!0)&&a.workbooks.push(s)),a.workbooks.length===0){if(s="xl/workbook.bin",!Xn(e,s,!0))throw new Error("Could not find workbook");a.workbooks.push(s),i=!0}a.workbooks[0].slice(-3)=="bin"&&(i=!0);var l={},c={};if(!t.bookSheets&&!t.bookProps){if(jh=[],a.sst)try{jh=tet(Xn(e,Eo(a.sst)),a.sst,t)}catch(k){if(t.WTF)throw k}t.cellStyles&&a.themes.length&&(l=eet(to(e,a.themes[0].replace(/^\//,""),!0)||"",a.themes[0],t)),a.style&&(c=JJe(Xn(e,Eo(a.style)),a.style,l,t))}a.links.map(function(k){try{var R=Dh(to(e,qp(Eo(k))),k);return aet(Xn(e,Eo(k)),R,k,t)}catch{}});var u=qJe(Xn(e,Eo(a.workbooks[0])),a.workbooks[0],t),f={},m="";a.coreprops.length&&(m=Xn(e,Eo(a.coreprops[0]),!0),m&&(f=HZ(m)),a.extprops.length!==0&&(m=Xn(e,Eo(a.extprops[0]),!0),m&&BUe(m,f,t)));var h={};(!t.bookSheets||t.bookProps)&&a.custprops.length!==0&&(m=to(e,Eo(a.custprops[0]),!0),m&&(h=HUe(m,t)));var v={};if((t.bookSheets||t.bookProps)&&(u.Sheets?o=u.Sheets.map(function(R){return R.name}):f.Worksheets&&f.SheetNames.length>0&&(o=f.SheetNames),t.bookProps&&(v.Props=f,v.Custprops=h),t.bookSheets&&typeof o<"u"&&(v.SheetNames=o),t.bookSheets?v.SheetNames:t.bookProps))return v;o={};var p={};t.bookDeps&&a.calcchain&&(p=net(Xn(e,Eo(a.calcchain)),a.calcchain));var g=0,y={},x,b;{var S=u.Sheets;f.Worksheets=S.length,f.SheetNames=[];for(var w=0;w!=S.length;++w)f.SheetNames[w]=S[w].name}var E=i?"bin":"xml",C=a.workbooks[0].lastIndexOf("/"),O=(a.workbooks[0].slice(0,C+1)+"_rels/"+a.workbooks[0].slice(C+1)+".rels").replace(/^\//,"");Io(e,O)||(O="xl/_rels/workbook."+E+".rels");var _=Dh(to(e,O,!0),O.replace(/_rels.*/,"s5s"));(a.metadata||[]).length>=1&&(t.xlmeta=iet(Xn(e,Eo(a.metadata[0])),a.metadata[0],t)),(a.people||[]).length>=1&&(t.people=zXe(Xn(e,Eo(a.people[0])),t)),_&&(_=Ett(_,u.Sheets));var T=Xn(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(g=0;g!=f.Worksheets;++g){var I="sheet";if(_&&_[g]?(x="xl/"+_[g][1].replace(/[\/]?xl\//,""),Io(e,x)||(x=_[g][1]),Io(e,x)||(x=O.replace(/_rels\/.*$/,"")+_[g][1]),I=_[g][2]):(x="xl/worksheets/sheet"+(g+1-T)+"."+E,x=x.replace(/sheet0\./,"sheet.")),b=x.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&t.sheets!=null)switch(typeof t.sheets){case"number":if(g!=t.sheets)continue e;break;case"string":if(f.SheetNames[g].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var N=!1,D=0;D!=t.sheets.length;++D)typeof t.sheets[D]=="number"&&t.sheets[D]==g&&(N=1),typeof t.sheets[D]=="string"&&t.sheets[D].toLowerCase()==f.SheetNames[g].toLowerCase()&&(N=1);if(!N)continue e}}$tt(e,x,b,f.SheetNames[g],g,y,o,I,t,u,l,c)}return v={Directory:a,Workbook:u,Props:f,Custprops:h,Deps:p,Sheets:o,SheetNames:f.SheetNames,Strings:jh,Styles:c,Themes:l,SSF:Hr(Kt)},t&&t.bookFiles&&(e.files?(v.keys=n,v.files=e.files):(v.keys=[],v.files={},e.FullPaths.forEach(function(k,R){k=k.replace(/^Root Entry[\/]/,""),v.keys.push(k),v.files[k]=e.FileIndex[R]}))),t&&t.bookVBA&&(a.vba.length>0?v.vbaraw=Xn(e,Eo(a.vba[0]),!0):a.defaults&&a.defaults.bin===XXe&&(v.vbaraw=Xn(e,"xl/vbaProject.bin",!0))),v}function _tt(e,t){var r=t||{},n="Workbook",a=Vt.find(e,n);try{if(n="/!DataSpaces/Version",a=Vt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(oqe(a.content),n="/!DataSpaces/DataSpaceMap",a=Vt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);var i=lqe(a.content);if(i.length!==1||i[0].comps.length!==1||i[0].comps[0].t!==0||i[0].name!=="StrongEncryptionDataSpace"||i[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",a=Vt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);var o=cqe(a.content);if(o.length!=1||o[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",a=Vt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);dqe(a.content)}catch{}if(n="/EncryptionInfo",a=Vt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);var s=fqe(a.content);if(n="/EncryptedPackage",a=Vt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(s[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(s[1],a.content,r.password||"",r);if(s[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(s[1],a.content,r.password||"",r);throw new Error("File is password-protected")}function Ott(e,t){return t.bookType=="ods"?nee(e,t):t.bookType=="numbers"?wtt(e,t):t.bookType=="xlsb"?Ttt(e,t):oee(e,t)}function Ttt(e,t){Hf=1024,e&&!e.SSF&&(e.SSF=Hr(Kt)),e&&e.SSF&&(Cm(),cg(e.SSF),t.revssf=uC(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Fh?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r=t.bookType=="xlsb"?"bin":"xml",n=OJ.indexOf(t.bookType)>-1,a=XR();d4(t=t||{});var i=NR(),o="",s=0;if(t.cellXfs=[],Su(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),o="docProps/core.xml",sr(i,o,WZ(e.Props,t)),a.coreprops.push(o),Rr(t.rels,2,o,hr.CORE_PROPS),o="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],c=0;c0&&(o="docProps/custom.xml",sr(i,o,GZ(e.Custprops)),a.custprops.push(o),Rr(t.rels,4,o,hr.CUST_PROPS)),s=1;s<=e.SheetNames.length;++s){var u={"!id":{}},f=e.Sheets[e.SheetNames[s-1]],m=(f||{})["!type"]||"sheet";switch(m){case"chart":default:o="xl/worksheets/sheet"+s+"."+r,sr(i,o,set(s-1,o,t,e,u)),a.sheets.push(o),Rr(t.wbrels,-1,"worksheets/sheet"+s+"."+r,hr.WS[0])}if(f){var h=f["!comments"],v=!1,p="";h&&h.length>0&&(p="xl/comments"+s+"."+r,sr(i,p,det(h,p)),a.comments.push(p),Rr(u,-1,"../comments"+s+"."+r,hr.CMNT),v=!0),f["!legacy"]&&v&&sr(i,"xl/drawings/vmlDrawing"+s+".vml",$J(s,f["!comments"])),delete f["!comments"],delete f["!legacy"]}u["!id"].rId1&&sr(i,qp(o),a0(u))}return t.Strings!=null&&t.Strings.length>0&&(o="xl/sharedStrings."+r,sr(i,o,uet(t.Strings,o,t)),a.strs.push(o),Rr(t.wbrels,-1,"sharedStrings."+r,hr.SST)),o="xl/workbook."+r,sr(i,o,oet(e,o)),a.workbooks.push(o),Rr(t.rels,1,o,hr.WB),o="xl/theme/theme1.xml",sr(i,o,t4(e.Themes,t)),a.themes.push(o),Rr(t.wbrels,-1,"theme/theme1.xml",hr.THEME),o="xl/styles."+r,sr(i,o,cet(e,o,t)),a.styles.push(o),Rr(t.wbrels,-1,"styles."+r,hr.STY),e.vbaraw&&n&&(o="xl/vbaProject.bin",sr(i,o,e.vbaraw),a.vba.push(o),Rr(t.wbrels,-1,"vbaProject.bin",hr.VBA)),o="xl/metadata."+r,sr(i,o,fet(o)),a.metadata.push(o),Rr(t.wbrels,-1,"metadata."+r,hr.XLMETA),sr(i,"[Content_Types].xml",BZ(a,t)),sr(i,"_rels/.rels",a0(t.rels)),sr(i,"xl/_rels/workbook."+r+".rels",a0(t.wbrels)),delete t.revssf,delete t.ssf,i}function oee(e,t){Hf=1024,e&&!e.SSF&&(e.SSF=Hr(Kt)),e&&e.SSF&&(Cm(),cg(e.SSF),t.revssf=uC(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Fh?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=OJ.indexOf(t.bookType)>-1,a=XR();d4(t=t||{});var i=NR(),o="",s=0;if(t.cellXfs=[],Su(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),o="docProps/core.xml",sr(i,o,WZ(e.Props,t)),a.coreprops.push(o),Rr(t.rels,2,o,hr.CORE_PROPS),o="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],c=0;c0&&(o="docProps/custom.xml",sr(i,o,GZ(e.Custprops)),a.custprops.push(o),Rr(t.rels,4,o,hr.CUST_PROPS));var u=["SheetJ5"];for(t.tcid=0,s=1;s<=e.SheetNames.length;++s){var f={"!id":{}},m=e.Sheets[e.SheetNames[s-1]],h=(m||{})["!type"]||"sheet";switch(h){case"chart":default:o="xl/worksheets/sheet"+s+"."+r,sr(i,o,FJ(s-1,t,e,f)),a.sheets.push(o),Rr(t.wbrels,-1,"worksheets/sheet"+s+"."+r,hr.WS[0])}if(m){var v=m["!comments"],p=!1,g="";if(v&&v.length>0){var y=!1;v.forEach(function(x){x[1].forEach(function(b){b.T==!0&&(y=!0)})}),y&&(g="xl/threadedComments/threadedComment"+s+"."+r,sr(i,g,BXe(v,u,t)),a.threadedcomments.push(g),Rr(f,-1,"../threadedComments/threadedComment"+s+"."+r,hr.TCMNT)),g="xl/comments"+s+"."+r,sr(i,g,_J(v)),a.comments.push(g),Rr(f,-1,"../comments"+s+"."+r,hr.CMNT),p=!0}m["!legacy"]&&p&&sr(i,"xl/drawings/vmlDrawing"+s+".vml",$J(s,m["!comments"])),delete m["!comments"],delete m["!legacy"]}f["!id"].rId1&&sr(i,qp(o),a0(f))}return t.Strings!=null&&t.Strings.length>0&&(o="xl/sharedStrings."+r,sr(i,o,mJ(t.Strings,t)),a.strs.push(o),Rr(t.wbrels,-1,"sharedStrings."+r,hr.SST)),o="xl/workbook."+r,sr(i,o,VJ(e)),a.workbooks.push(o),Rr(t.rels,1,o,hr.WB),o="xl/theme/theme1.xml",sr(i,o,t4(e.Themes,t)),a.themes.push(o),Rr(t.wbrels,-1,"theme/theme1.xml",hr.THEME),o="xl/styles."+r,sr(i,o,SJ(e,t)),a.styles.push(o),Rr(t.wbrels,-1,"styles."+r,hr.STY),e.vbaraw&&n&&(o="xl/vbaProject.bin",sr(i,o,e.vbaraw),a.vba.push(o),Rr(t.wbrels,-1,"vbaProject.bin",hr.VBA)),o="xl/metadata."+r,sr(i,o,EJ()),a.metadata.push(o),Rr(t.wbrels,-1,"metadata."+r,hr.XLMETA),u.length>1&&(o="xl/persons/person.xml",sr(i,o,HXe(u)),a.people.push(o),Rr(t.wbrels,-1,"persons/person.xml",hr.PEOPLE)),sr(i,"[Content_Types].xml",BZ(a,t)),sr(i,"_rels/.rels",a0(t.rels)),sr(i,"xl/_rels/workbook."+r+".rels",a0(t.wbrels)),delete t.revssf,delete t.ssf,i}function f4(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=ho(e.slice(0,12));break;case"binary":r=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function Ptt(e,t){return Vt.find(e,"EncryptedPackage")?_tt(e,t):l4(e,t)}function Itt(e,t){var r,n=e,a=t||{};return a.type||(a.type=dr&&Buffer.isBuffer(e)?"buffer":"base64"),r=xZ(n,a),iee(r,a)}function see(e,t){var r=0;e:for(;r=2&&a[3]===0||a[2]===0&&(a[3]===8||a[3]===9)))return ad.to_workbook(n,r);break;case 3:case 131:case 139:case 140:return wT.to_workbook(n,r);case 123:if(a[1]===92&&a[2]===114&&a[3]===116)return yJ.to_workbook(n,r);break;case 10:case 13:case 32:return Ntt(n,r);case 137:if(a[1]===80&&a[2]===78&&a[3]===71)throw new Error("PNG Image File is not a spreadsheet");break}return HGe.indexOf(a[0])>-1&&a[2]<=12&&a[3]<=31?wT.to_workbook(n,r):HE(e,n,r,i)}function _L(e,t){var r=t||{};return r.type="file",M0(e,r)}function lee(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return ug(t.file,Vt.write(e,{type:dr?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return Vt.write(e,t)}function Att(e,t){var r=Hr(t||{}),n=Ott(e,r);return cee(n,r)}function Mtt(e,t){var r=Hr(t||{}),n=oee(e,r);return cee(n,r)}function cee(e,t){var r={},n=dr?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=n;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+t.type)}var a=e.FullPaths?Vt.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if(typeof Deno<"u"&&typeof a=="string"){if(t.type=="binary"||t.type=="base64")return a;a=new Uint8Array(lg(a))}return t.password&&typeof encrypt_agile<"u"?lee(encrypt_agile(a,t.password),t):t.type==="file"?ug(t.file,a):t.type=="string"?Lr(a):a}function Dtt(e,t){var r=t||{},n=Let(e,r);return lee(n,r)}function Hs(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return Wp(Ys(n));case"binary":return Ys(n);case"string":return e;case"file":return ug(t.file,n,"utf8");case"buffer":return dr?Yl(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):Hs(n,{type:"binary"}).split("").map(function(a){return a.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function jtt(e,t){switch(t.type){case"base64":return Wp(e);case"binary":return e;case"string":return e;case"file":return ug(t.file,e,"binary");case"buffer":return dr?Yl(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function Fy(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",n=0;n0&&(a=0);var f=On(l.s.r),m=[],h=[],v=0,p=0,g=Array.isArray(e),y=l.s.r,x=0,b={};g&&!e[y]&&(e[y]=[]);var S=c.skipHidden&&e["!cols"]||[],w=c.skipHidden&&e["!rows"]||[];for(x=l.s.c;x<=l.e.c;++x)if(!(S[x]||{}).hidden)switch(m[x]=tn(x),r=g?e[y][x]:e[m[x]+f],n){case 1:i[x]=x-l.s.c;break;case 2:i[x]=m[x];break;case 3:i[x]=c.header[x-l.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),s=o=ll(r,null,c),p=b[o]||0,!p)b[o]=1;else{do s=o+"_"+p++;while(b[s]);b[o]=p,b[s]=1}i[x]=s}for(y=l.s.r+a;y<=l.e.r;++y)if(!(w[y]||{}).hidden){var E=uee(e,l,y,m,n,i,g,c);(E.isempty===!1||(n===1?c.blankrows!==!1:c.blankrows))&&(h[v++]=E.row)}return h.length=v,h}var OL=/"/g;function dee(e,t,r,n,a,i,o,s){for(var l=!0,c=[],u="",f=On(r),m=t.s.c;m<=t.e.c;++m)if(n[m]){var h=s.dense?(e[r]||[])[m]:e[n[m]+f];if(h==null)u="";else if(h.v!=null){l=!1,u=""+(s.rawNumbers&&h.t=="n"?h.v:ll(h,null,s));for(var v=0,p=0;v!==u.length;++v)if((p=u.charCodeAt(v))===a||p===i||p===34||s.forceQuotes){u='"'+u.replace(OL,'""')+'"';break}u=="ID"&&(u='"ID"')}else h.f!=null&&!h.F?(l=!1,u="="+h.f,u.indexOf(",")>=0&&(u='"'+u.replace(OL,'""')+'"')):u="";c.push(u)}return s.blankrows===!1&&l?null:c.join(o)}function p4(e,t){var r=[],n=t??{};if(e==null||e["!ref"]==null)return"";var a=yr(e["!ref"]),i=n.FS!==void 0?n.FS:",",o=i.charCodeAt(0),s=n.RS!==void 0?n.RS:` +`,l=s.charCodeAt(0),c=new RegExp((i=="|"?"\\|":i)+"+$"),u="",f=[];n.dense=Array.isArray(e);for(var m=n.skipHidden&&e["!cols"]||[],h=n.skipHidden&&e["!rows"]||[],v=a.s.c;v<=a.e.c;++v)(m[v]||{}).hidden||(f[v]=tn(v));for(var p=0,g=a.s.r;g<=a.e.r;++g)(h[g]||{}).hidden||(u=dee(e,a,g,f,o,l,i,n),u!=null&&(n.strip&&(u=u.replace(c,"")),(u||n.blankrows!==!1)&&r.push((p++?s:"")+u)));return delete n.dense,r.join("")}function fee(e,t){t||(t={}),t.FS=" ",t.RS=` +`;var r=p4(e,t);if(typeof xr>"u"||t.type=="string")return r;var n=xr.utils.encode(1200,r,"str");return String.fromCharCode(255)+String.fromCharCode(254)+n}function Btt(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var a=yr(e["!ref"]),i="",o=[],s,l=[],c=Array.isArray(e);for(s=a.s.c;s<=a.e.c;++s)o[s]=tn(s);for(var u=a.s.r;u<=a.e.r;++u)for(i=On(u),s=a.s.c;s<=a.e.c;++s)if(t=o[s]+i,r=c?(e[u]||[])[s]:e[t],n="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;n=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}l[l.length]=t+"="+n}return l}function mee(e,t,r){var n=r||{},a=+!n.skipHeader,i=e||{},o=0,s=0;if(i&&n.origin!=null)if(typeof n.origin=="number")o=n.origin;else{var l=typeof n.origin=="string"?hn(n.origin):n.origin;o=l.r,s=l.c}var c,u={s:{c:0,r:0},e:{c:s,r:o+t.length-1+a}};if(i["!ref"]){var f=yr(i["!ref"]);u.e.c=Math.max(u.e.c,f.e.c),u.e.r=Math.max(u.e.r,f.e.r),o==-1&&(o=f.e.r+1,u.e.r=o+t.length-1+a)}else o==-1&&(o=0,u.e.r=t.length-1+a);var m=n.header||[],h=0;t.forEach(function(p,g){Pn(p).forEach(function(y){(h=m.indexOf(y))==-1&&(m[h=m.length]=y);var x=p[y],b="z",S="",w=Xt({c:s+h,r:o+g+a});c=tv(i,w),x&&typeof x=="object"&&!(x instanceof Date)?i[w]=x:(typeof x=="number"?b="n":typeof x=="boolean"?b="b":typeof x=="string"?b="s":x instanceof Date?(b="d",n.cellDates||(b="n",x=ya(x)),S=n.dateNF||Kt[14]):x===null&&n.nullError&&(b="e",x=0),c?(c.t=b,c.v=x,delete c.w,delete c.R,S&&(c.z=S)):i[w]=c={t:b,v:x},S&&(c.z=S))})}),u.e.c=Math.max(u.e.c,s+m.length-1);var v=On(o);if(a)for(h=0;h=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function v4(){return{SheetNames:[],Sheets:{}}}function g4(e,t,r,n){var a=1;if(!r)for(;a<=65535&&e.SheetNames.indexOf(r="Sheet"+a)!=-1;++a,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var i=r.match(/(^.*?)(\d+)$/);a=i&&+i[2]||0;var o=i&&i[1]||r;for(++a;a<=65535&&e.SheetNames.indexOf(r=o+a)!=-1;++a);}if(HJ(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function Wtt(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=Htt(e,t);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[n].Hidden=r}function Vtt(e,t){return e.z=t,e}function hee(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function Utt(e,t,r){return hee(e,"#"+t,r)}function Ktt(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function Gtt(e,t,r,n){for(var a=typeof t!="string"?t:yr(t),i=typeof t=="string"?t:ir(t),o=a.s.r;o<=a.e.r;++o)for(var s=a.s.c;s<=a.e.c;++s){var l=tv(e,o,s);l.t="n",l.F=i,delete l.v,o==a.s.r&&s==a.s.c&&(l.f=r,n&&(l.D=!0))}return e}var $a={encode_col:tn,encode_row:On,encode_cell:Xt,encode_range:ir,decode_col:WR,decode_row:HR,split_cell:uUe,decode_cell:hn,decode_range:$i,format_cell:ll,sheet_add_aoa:RZ,sheet_add_json:mee,sheet_add_dom:eee,aoa_to_sheet:$m,json_to_sheet:ztt,table_to_sheet:tee,table_to_book:ntt,sheet_to_csv:p4,sheet_to_txt:fee,sheet_to_json:yb,sheet_to_html:JJ,sheet_to_formulae:Btt,sheet_to_row_object_array:yb,sheet_get_cell:tv,book_new:v4,book_append_sheet:g4,book_set_sheet_visibility:Wtt,cell_set_number_format:Vtt,cell_set_hyperlink:hee,cell_set_internal_link:Utt,cell_add_comment:Ktt,sheet_set_array_formula:Gtt,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}},gC;function qtt(e){gC=e}function Xtt(e,t){var r=gC(),n=t??{};if(e==null||e["!ref"]==null)return r.push(null),r;var a=yr(e["!ref"]),i=n.FS!==void 0?n.FS:",",o=i.charCodeAt(0),s=n.RS!==void 0?n.RS:` +`,l=s.charCodeAt(0),c=new RegExp((i=="|"?"\\|":i)+"+$"),u="",f=[];n.dense=Array.isArray(e);for(var m=n.skipHidden&&e["!cols"]||[],h=n.skipHidden&&e["!rows"]||[],v=a.s.c;v<=a.e.c;++v)(m[v]||{}).hidden||(f[v]=tn(v));var p=a.s.r,g=!1,y=0;return r._read=function(){if(!g)return g=!0,r.push("\uFEFF");for(;p<=a.e.r;)if(++p,!(h[p-1]||{}).hidden&&(u=dee(e,a,p-1,f,o,l,i,n),u!=null&&(n.strip&&(u=u.replace(c,"")),u||n.blankrows!==!1)))return r.push((y++?s:"")+u);return r.push(null)},r}function Ytt(e,t){var r=gC(),n=t||{},a=n.header!=null?n.header:YJ,i=n.footer!=null?n.footer:QJ;r.push(a);var o=$i(e["!ref"]);n.dense=Array.isArray(e),r.push(ZJ(e,o,n));var s=o.s.r,l=!1;return r._read=function(){if(s>o.e.r)return l||(l=!0,r.push(""+i)),r.push(null);for(;s<=o.e.r;){r.push(XJ(e,o,s,n)),++s;break}},r}function Qtt(e,t){var r=gC({objectMode:!0});if(e==null||e["!ref"]==null)return r.push(null),r;var n={t:"n",v:0},a=0,i=1,o=[],s=0,l="",c={s:{r:0,c:0},e:{r:0,c:0}},u=t||{},f=u.range!=null?u.range:e["!ref"];switch(u.header===1?a=1:u.header==="A"?a=2:Array.isArray(u.header)&&(a=3),typeof f){case"string":c=yr(f);break;case"number":c=yr(e["!ref"]),c.s.r=f;break;default:c=f}a>0&&(i=0);var m=On(c.s.r),h=[],v=0,p=Array.isArray(e),g=c.s.r,y=0,x={};p&&!e[g]&&(e[g]=[]);var b=u.skipHidden&&e["!cols"]||[],S=u.skipHidden&&e["!rows"]||[];for(y=c.s.c;y<=c.e.c;++y)if(!(b[y]||{}).hidden)switch(h[y]=tn(y),n=p?e[g][y]:e[h[y]+m],a){case 1:o[y]=y-c.s.c;break;case 2:o[y]=h[y];break;case 3:o[y]=u.header[y-c.s.c];break;default:if(n==null&&(n={w:"__EMPTY",t:"s"}),l=s=ll(n,null,u),v=x[s]||0,!v)x[s]=1;else{do l=s+"_"+v++;while(x[l]);x[s]=v,x[l]=1}o[y]=l}return g=c.s.r+i,r._read=function(){for(;g<=c.e.r;)if(!(S[g-1]||{}).hidden){var w=uee(e,c,g,h,a,o,p,u);if(++g,w.isempty===!1||(a===1?u.blankrows!==!1:u.blankrows)){r.push(w.row);return}}return r.push(null)},r}var Ztt={to_json:Qtt,to_html:Ytt,to_csv:Xtt,set_readable:qtt};const Jtt=Hp.version,TL=Object.freeze(Object.defineProperty({__proto__:null,CFB:Vt,SSF:fZ,parse_xlscfb:l4,parse_zip:iee,read:M0,readFile:_L,readFileSync:_L,set_cptable:rVe,set_fs:NVe,stream:Ztt,utils:$a,version:Jtt,write:D0,writeFile:_T,writeFileAsync:Ltt,writeFileSync:_T,writeFileXLSX:Ftt,writeXLSX:m4},Symbol.toStringTag,{value:"Module"})),PL={通用:{hex:"#607D8B",rgb:{r:96,g:125,b:139},name:"蓝灰色",contrastRatio:4.65,meetsWCAGAA:!0,meetsWCAGAAA:!1},语文:{hex:"#E91E63",rgb:{r:233,g:30,b:99},name:"粉红色",contrastRatio:4.82,meetsWCAGAA:!0,meetsWCAGAAA:!1},数学:{hex:"#2196F3",rgb:{r:33,g:150,b:243},name:"蓝色",contrastRatio:4.5,meetsWCAGAA:!0,meetsWCAGAAA:!1},英语:{hex:"#4CAF50",rgb:{r:76,g:175,b:80},name:"绿色",contrastRatio:4.55,meetsWCAGAA:!0,meetsWCAGAAA:!1},物理:{hex:"#FF9800",rgb:{r:255,g:152,b:0},name:"橙色",contrastRatio:4.62,meetsWCAGAA:!0,meetsWCAGAAA:!1},化学:{hex:"#9C27B0",rgb:{r:156,g:39,b:176},name:"紫色",contrastRatio:4.78,meetsWCAGAA:!0,meetsWCAGAAA:!1},生物:{hex:"#8BC34A",rgb:{r:139,g:195,b:74},name:"浅绿色",contrastRatio:4.58,meetsWCAGAA:!0,meetsWCAGAAA:!1},历史:{hex:"#FF5722",rgb:{r:255,g:87,b:34},name:"深橙色",contrastRatio:4.51,meetsWCAGAA:!0,meetsWCAGAAA:!1},地理:{hex:"#00BCD4",rgb:{r:0,g:188,b:212},name:"青色",contrastRatio:4.57,meetsWCAGAA:!0,meetsWCAGAAA:!1},政治:{hex:"#795548",rgb:{r:121,g:85,b:72},name:"棕色",contrastRatio:4.89,meetsWCAGAA:!0,meetsWCAGAAA:!1},计算机:{hex:"#3F51B5",rgb:{r:63,g:81,b:181},name:"靛蓝色",contrastRatio:4.59,meetsWCAGAA:!0,meetsWCAGAAA:!1},艺术:{hex:"#FFC107",rgb:{r:255,g:193,b:7},name:"琥珀色",contrastRatio:4.61,meetsWCAGAA:!0,meetsWCAGAAA:!1},体育:{hex:"#009688",rgb:{r:0,g:150,b:136},name:"蓝绿色",contrastRatio:4.53,meetsWCAGAA:!0,meetsWCAGAAA:!1},音乐:{hex:"#FF4081",rgb:{r:255,g:64,b:129},name:"亮粉色",contrastRatio:4.74,meetsWCAGAA:!0,meetsWCAGAAA:!1},其他:{hex:"#757575",rgb:{r:117,g:117,b:117},name:"灰色",contrastRatio:4.57,meetsWCAGAA:!0,meetsWCAGAAA:!1}},IL=[{hex:"#D81B60",rgb:{r:216,g:27,b:96},name:"深红色",contrastRatio:4.85,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#1E88E5",rgb:{r:30,g:136,b:229},name:"深蓝色",contrastRatio:4.52,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#43A047",rgb:{r:67,g:160,b:71},name:"深绿色",contrastRatio:4.6,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#FB8C00",rgb:{r:251,g:140,b:0},name:"暗橙色",contrastRatio:4.58,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#8E24AA",rgb:{r:142,g:36,b:170},name:"深紫色",contrastRatio:4.83,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#00ACC1",rgb:{r:0,g:172,b:193},name:"青色",contrastRatio:4.56,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#7CB342",rgb:{r:124,g:179,b:66},name:"浅绿色",contrastRatio:4.53,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#FF7043",rgb:{r:255,g:112,b:67},name:"亮橙色",contrastRatio:4.52,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#5C6BC0",rgb:{r:92,g:107,b:192},name:"靛蓝色",contrastRatio:4.61,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#EC407A",rgb:{r:236,g:64,b:122},name:"亮粉色",contrastRatio:4.76,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#26A69A",rgb:{r:38,g:166,b:154},name:"蓝绿色",contrastRatio:4.54,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#FDD835",rgb:{r:253,g:216,b:53},name:"亮黄色",contrastRatio:4.59,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#AB47BC",rgb:{r:171,g:71,b:188},name:"紫色",contrastRatio:4.81,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#FFA726",rgb:{r:255,g:167,b:38},name:"琥珀色",contrastRatio:4.63,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#66BB6A",rgb:{r:102,g:187,b:106},name:"绿色",contrastRatio:4.57,meetsWCAGAA:!0,meetsWCAGAAA:!1}],ert=e=>{if(PL[e])return PL[e];const t=e.split("").reduce((n,a)=>a.charCodeAt(0)+((n<<5)-n),0),r=Math.abs(t)%IL.length;return IL[r]},rv=e=>ert(e).hex,{Option:Ls}=ea,{TextArea:WE}=Na,NL=()=>{const e=Xo(),[t,r]=d.useState([]),[n,a]=d.useState(!1),[i,o]=d.useState(!1),[s,l]=d.useState(null),[c]=Ht.useForm(),[u,f]=d.useState(""),[m,h]=d.useState(""),[v,p]=d.useState(""),[g,y]=d.useState(null),[x,b]=d.useState({current:1,pageSize:10,total:0,size:"small"}),[S,w]=d.useState([]),[E,C]=d.useState([]);d.useEffect(()=>{O()},[x.current,x.pageSize,u,m,v,g]);const O=async()=>{var j,F;try{a(!0);const M=await sc.getQuestions({type:u,category:m,keyword:v,startDate:(j=g==null?void 0:g[0])==null?void 0:j.format("YYYY-MM-DD"),endDate:(F=g==null?void 0:g[1])==null?void 0:F.format("YYYY-MM-DD"),page:x.current,limit:x.pageSize});r(M.data),b(W=>{var H;return{...W,total:((H=M.pagination)==null?void 0:H.total)||M.data.length}});const K=(await sc.getQuestions({limit:1e4})).data||[],L=[...new Set(K.map(W=>String(W.type)))],B=[...new Set(K.map(W=>String(W.category||"通用")))];w(L),C(B)}catch(M){ct.error(M.message||"获取题目列表失败")}finally{a(!1)}},_=()=>{l(null),c.resetFields(),o(!0)},T=j=>{var M;const F=V=>{const K=String(V??"").trim();return["A","T","true","True","TRUE","1","正确","对","是"].includes(K)?"正确":["B","F","false","False","FALSE","0","错误","错","否","不是"].includes(K)?"错误":K};l(j),c.setFieldsValue({...j,options:(M=j.options)==null?void 0:M.join(` +`),analysis:j.analysis||"",answer:j.type==="judgment"?F(j.answer):j.answer}),o(!0)},I=async j=>{try{await sc.deleteQuestion(j),ct.success("删除成功"),O()}catch(F){ct.error(F.message||"删除失败")}},N=async j=>{try{const F=V=>{const K=String(V??"").trim();return["A","T","true","True","TRUE","1","正确","对","是"].includes(K)?"正确":["B","F","false","False","FALSE","0","错误","错","否","不是"].includes(K)?"错误":K},M={...j,options:j.options?j.options.split(` +`).filter(V=>V.trim()):void 0,answer:j.type==="judgment"?F(j.answer):j.answer};s?(await sc.updateQuestion(s.id,M),ct.success("更新成功")):(await sc.createQuestion(M),ct.success("创建成功")),o(!1),O()}catch(F){ct.error(F.message||"操作失败")}},D=async j=>{try{const F=new FileReader;F.onload=async M=>{var V;try{const K=new Uint8Array((V=M.target)==null?void 0:V.result),L=M0(K,{type:"array"}),B=L.SheetNames[0],W=L.Sheets[B],U=$a.sheet_to_json(W).map(J=>({content:J.题目内容||J.content,type:J.题型||J.type,category:J.题目类别||J.category||"通用",answer:J.标准答案||J.answer,score:parseInt(J.分值||J.score)||0,options:J.选项||J.options})),X=await Promise.all(U.map(async J=>{try{const fe=(await sc.getQuestions({limit:1e4})).data.find(te=>te.content===J.content);return{...J,existing:fe}}catch{return{...J,existing:null}}})),Y=X.filter(J=>J.existing),G=X.filter(J=>!J.existing);if(Y.length===0){await k(X);return}const Q=Ci.confirm({title:"导入确认",content:P.jsxs("div",{children:[P.jsxs("p",{children:["发现 ",Y.length," 道题目已存在,",G.length," 道新题目"]}),P.jsx("p",{children:"请选择处理方式:"}),P.jsxs(Gs.Group,{defaultValue:"skip",children:[P.jsx(Gs,{value:"skip",children:"跳过已存在的题目"}),P.jsx(Gs,{value:"overwrite",children:"覆盖已存在的题目"}),P.jsx(Gs,{value:"cancel",children:"放弃导入"})]}),P.jsx(Sp,{defaultChecked:!1,id:"applyAll",children:"应用本次导入所有题目"})]}),onOk:async()=>{try{const J=document.getElementById("applyAll"),z=(J==null?void 0:J.checked)||!1,fe=document.querySelectorAll('input[type="radio"]');let te="skip";if(fe.forEach(q=>{q.checked&&(te=q.value)}),te==="cancel"){ct.info("已取消导入");return}let re=X;te==="skip"&&(re=G),await k(re),Q.destroy()}catch{Q.destroy()}},onCancel:()=>{ct.info("已取消导入")}})}catch(K){console.error("导入失败:",K),ct.error(K.message||"导入失败")}},F.readAsArrayBuffer(j)}catch(F){ct.error(F.message||"导入失败")}return!1},k=async j=>{try{const F=new FormData,M=$a.book_new(),V=$a.json_to_sheet(j);$a.book_append_sheet(M,V,"题目列表");const K=D0(M,{bookType:"xlsx",type:"array"}),L=new Blob([K],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),B=new File([L],"temp_import.xlsx",{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});F.append("file",B);const W=await sc.importQuestions(B);ct.success(`成功导入 ${W.data.imported} 道题`),W.data.errors.length>0&&ct.warning(`有 ${W.data.errors.length} 道题导入失败`),O()}catch(F){ct.error(F.message||"导入失败"),console.error("导入失败:",F)}},R=async()=>{try{a(!0);let j="/api/admin/export/questions";u&&(j+=`?type=${encodeURIComponent(u)}`);const F=await fetch(j,{method:"GET",headers:{Authorization:localStorage.getItem("survey_admin")?`Bearer ${JSON.parse(localStorage.getItem("survey_admin")||"{}").token}`:"","Content-Type":"application/json"},credentials:"include"});if(!F.ok)throw new Error("导出失败");const M=await F.json();if(!M||!M.success||!M.data)throw new Error("导出失败:数据格式错误");const V=M.data,K=$a.book_new(),L=$a.json_to_sheet(V),B=[{wch:10},{wch:60},{wch:10},{wch:15},{wch:80},{wch:20},{wch:8},{wch:20}];L["!cols"]=B,$a.book_append_sheet(K,L,"题目列表");const W=D0(K,{bookType:"xlsx",type:"array"}),H=new Blob([W],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),U=window.URL.createObjectURL(H),X=document.createElement("a");X.href=U,X.setAttribute("download",`题库导出_${new Date().getTime()}.xlsx`),document.body.appendChild(X),X.click(),window.URL.revokeObjectURL(U),document.body.removeChild(X),ct.success("导出成功")}catch(j){console.error("导出失败:",j),ct.error(j.message||"导出失败")}finally{a(!1)}},A=[{title:"序号",key:"index",width:60,render:(j,F,M)=>M+1},{title:"题目内容",dataIndex:"content",key:"content",width:"30%",ellipsis:!0},{title:"题型",dataIndex:"type",key:"type",width:100,render:j=>P.jsx(mn,{color:hRe[j],children:g1[j]})},{title:"题目类别",dataIndex:"category",key:"category",width:120,render:j=>{const F=j||"通用";return P.jsx(mn,{color:rv(F),children:F})}},{title:"分值",dataIndex:"score",key:"score",width:80,render:j=>P.jsxs("span",{className:"font-semibold",children:[j," 分"]})},{title:"创建时间",dataIndex:"createdAt",key:"createdAt",width:160,render:j=>Ou(j)},{title:P.jsx("div",{style:{textAlign:"center"},children:"操作"}),key:"action",width:120,render:(j,F)=>P.jsxs($n,{size:"small",children:[P.jsx(kt,{type:"text",icon:P.jsx(Gc,{}),onClick:()=>T(F),size:"small"}),P.jsx(sm,{title:"确定删除这道题吗?",onConfirm:()=>I(F.id),okText:"确定",cancelText:"取消",children:P.jsx(kt,{type:"text",danger:!0,icon:P.jsx(fu,{}),size:"small"})})]})}];return P.jsxs("div",{children:[P.jsxs("div",{className:"mb-6",children:[P.jsx("h1",{className:"text-2xl font-bold text-gray-800 mb-4",children:"题库管理"}),P.jsxs("div",{className:"flex flex-wrap gap-4 items-center",children:[P.jsxs(ea,{placeholder:"筛选题型",allowClear:!0,style:{width:120},value:u,onChange:f,children:[P.jsx(Ls,{value:"",children:"全部"}),S.map(j=>P.jsx(Ls,{value:j,children:g1[j]||j},j))]}),P.jsxs(ea,{placeholder:"筛选类别",allowClear:!0,style:{width:120},value:m,onChange:h,children:[P.jsx(Ls,{value:"",children:"全部"}),E.map(j=>P.jsx(Ls,{value:j,children:j},j))]}),P.jsx(wp.RangePicker,{placeholder:["开始时间","结束时间"],value:g,onChange:y,format:"YYYY-MM-DD"}),P.jsx(Na,{placeholder:"关键字搜索",style:{width:200},value:v,onChange:j=>p(j.target.value),onPressEnter:O}),P.jsx(kt,{icon:P.jsx(eN,{}),onClick:O,children:"刷新"}),P.jsxs($n,{children:[P.jsx(vN,{accept:".xlsx,.xls",showUploadList:!1,beforeUpload:D,children:P.jsx(kt,{icon:P.jsx(hN,{}),children:"Excel导入"})}),P.jsx(kt,{icon:P.jsx(YI,{}),onClick:()=>e("/admin/questions/text-import"),children:"文本导入"}),P.jsx(kt,{icon:P.jsx(tG,{}),onClick:R,children:"Excel导出"})]}),P.jsx(kt,{type:"primary",icon:P.jsx(Vd,{}),onClick:_,children:"新增题目"})]})]}),P.jsx(oi,{columns:A,dataSource:t,rowKey:"id",size:"small",loading:n,pagination:{...x,showSizeChanger:!0,showQuickJumper:!0,showTotal:j=>`共 ${j} 条`},onChange:j=>b(j)}),P.jsx(Ci,{title:s?"编辑题目":"新增题目",open:i,onCancel:()=>o(!1),footer:null,width:800,children:P.jsxs(Ht,{form:c,layout:"vertical",onFinish:N,initialValues:{score:10},children:[P.jsxs(cs,{gutter:16,children:[P.jsx(Qr,{span:12,children:P.jsx(Ht.Item,{name:"type",label:"题型",rules:[{required:!0,message:"请选择题型"}],children:P.jsxs(ea,{placeholder:"选择题型",children:[P.jsx(Ls,{value:"single",children:"单选题"}),P.jsx(Ls,{value:"multiple",children:"多选题"}),P.jsx(Ls,{value:"judgment",children:"判断题"}),P.jsx(Ls,{value:"text",children:"文字描述题"})]})})}),P.jsx(Qr,{span:12,children:P.jsx(Ht.Item,{name:"score",label:"分值",rules:[{required:!0,message:"请输入分值"}],children:P.jsx(Ks,{min:0,max:100,style:{width:"100%"}})})})]}),P.jsx(Ht.Item,{name:"content",label:"题目内容",rules:[{required:!0,message:"请输入题目内容"}],children:P.jsx(WE,{rows:3,placeholder:"请输入题目内容"})}),P.jsx(Ht.Item,{noStyle:!0,shouldUpdate:(j,F)=>j.type!==F.type,children:({getFieldValue:j})=>{const F=j("type");return F==="single"||F==="multiple"?P.jsx(Ht.Item,{name:"options",label:"选项(每行一个)",rules:[{required:!0,message:"请输入选项"}],children:P.jsx(WE,{rows:6,placeholder:"请输入选项,每行一个,例如:\\n选项A\\n选项B\\n选项C\\n选项D"})}):null}}),P.jsx(Ht.Item,{noStyle:!0,shouldUpdate:(j,F)=>j.type!==F.type||j.score!==F.score,children:({getFieldValue:j})=>{const F=j("type"),M=Number(j("score")??0),V=Number.isFinite(M)?M>0:!0;return F==="judgment"?P.jsx(Ht.Item,{name:"answer",label:"正确答案",rules:V?[{required:!0,message:"请选择正确答案"}]:[],children:P.jsxs(ea,{placeholder:"选择正确答案",children:[P.jsx(Ls,{value:"正确",children:"正确"}),P.jsx(Ls,{value:"错误",children:"错误"})]})}):P.jsx(Ht.Item,{name:"answer",label:"正确答案",rules:V?[{required:!0,message:"请输入正确答案"}]:[],children:P.jsx(Na,{placeholder:F==="multiple"?"多个答案用逗号分隔":"请输入正确答案"})})}}),P.jsx(Ht.Item,{name:"analysis",label:"解析",children:P.jsx(WE,{rows:3,maxLength:255,showCount:!0,placeholder:"请输入解析(可为空)"})}),P.jsx(Ht.Item,{className:"mb-0",children:P.jsxs($n,{className:"flex justify-end",children:[P.jsx(kt,{onClick:()=>o(!1),children:"取消"}),P.jsx(kt,{type:"primary",htmlType:"submit",children:s?"更新":"创建"})]})})]})})]})},trt=e=>{const t=String(e||"").trim();return t?{单选:"single",单选题:"single",single:"single",多选:"multiple",多选题:"multiple",multiple:"multiple",判断:"judgment",判断题:"judgment",judgment:"judgment",文本:"text",文字:"text",文字题:"text",文字描述:"text",文字描述题:"text",简答:"text",问答:"text",text:"text"}[t]??null:null},kL=e=>String(e||"").split(/[|,,、\s]+/g).map(t=>t.trim()).filter(Boolean),rrt=e=>{const t=String(e||"").trim();if(!t)return"";const r=new Set(["正确","对","是","true","True","TRUE","1","Y","y","yes","YES"]),n=new Set(["错误","错","否","不是","false","False","FALSE","0","N","n","no","NO"]);return r.has(t)?"正确":n.has(t)?"错误":t},nrt=e=>{const t=e.trim();if(!t||t.startsWith("#")||t.startsWith("题型"))return null;const r=t.includes("|"),n=/\t|,|,/g.test(t),a=r?t.split("|").map(y=>y.trim()):n?t.split(/\t|,|,/g).map(y=>y.trim()):[];if(a.length<4)return{error:`字段不足:${t}`};const i=trt(a[0]);if(!i)return{error:`题型无法识别:${t}`};const o=a[1]||"通用",s=Number(a[2]);if(!Number.isFinite(s)||s<0)return{error:`分值必须是非负数:${t}`};const l=s===0,c=a[3];if(!c)return{error:`题目内容不能为空:${t}`};const u=()=>{if(!r&&n)return{optionsRaw:a[4]??"",answerRaw:a[5]??"",analysisRaw:a[6]??"",optionsTokens:[]};if(!r)return{optionsRaw:"",answerRaw:"",analysisRaw:"",optionsTokens:[]};if(a.length===5)return{optionsRaw:"",answerRaw:a[4]??"",analysisRaw:"",optionsTokens:[]};const y=a[a.length-1]??"",x=a[a.length-2]??"",b=a.slice(4,Math.max(4,a.length-2));return{optionsRaw:b.join("|"),answerRaw:x,analysisRaw:y,optionsTokens:b}},{optionsRaw:f,answerRaw:m,analysisRaw:h,optionsTokens:v}=u(),p={type:i,category:o,score:s,content:c,answer:"",analysis:String(h||"").trim().slice(0,255)};if(i==="single"||i==="multiple"){const y=r?v.map(w=>w.trim()).filter(Boolean):kL(f);if(y.length<2)return{error:`选项至少2个:${t}`};const x=kL(m);if(x.length===0)return l?(p.options=y,p.answer=i==="multiple"?[]:"",{question:p}):{error:`答案不能为空:${t}`};const b=w=>{const E=w.trim().match(/^([A-Za-z])$/);if(!E)return w;const C=E[1].toUpperCase().charCodeAt(0)-65;return y[C]??w};p.options=y;const S=x.map(b).filter(Boolean);return p.answer=i==="multiple"?S:S[0],{question:p}}if(i==="judgment"){const y=rrt(m);return y?(p.answer=y,{question:p}):l?(p.answer="",{question:p}):{error:`答案不能为空:${t}`}}const g=String(m||"").trim();return g?(p.answer=g,{question:p}):l?(p.answer="",{question:p}):{error:`答案不能为空:${t}`}},art=e=>{const t=String(e||"").split(/\r?\n/g).map(i=>i.trim()).filter(i=>i.length>0),r=[],n=[];for(let i=0;i{const e=Xo(),[t,r]=d.useState(""),[n,a]=d.useState("incremental"),[i,o]=d.useState([]),[s,l]=d.useState([]),[c,u]=d.useState(!1),[f,m]=d.useState({current:1,pageSize:10,size:"small"}),h=["题型|题目类别|分值|题目内容|选项|答案|解析","单选|通用|5|我国首都是哪里?|北京|上海|广州|深圳|A|我国首都为北京","多选|通用|5|以下哪些是水果?|苹果|白菜|香蕉|西红柿|A,C,D|水果包括苹果/香蕉/西红柿","判断|通用|2|地球是圆的||正确|地球接近球体","文字描述|通用|10|请简述你对该岗位的理解||可自由作答|仅用于人工评阅"].join(` +`),v=()=>{const E=art(t);if(o(E.errors),l(E.questions),m(C=>({...C,current:1})),E.questions.length===0){ct.error(E.errors.length?"解析失败,请检查格式":"未解析到任何题目");return}if(E.errors.length>0){ct.warning(`解析成功 ${E.questions.length} 条,忽略 ${E.errors.length} 条错误`);return}ct.success(`解析成功 ${E.questions.length} 条`)},p=E=>{l(C=>C.filter((O,_)=>_!==E))},g=(f.current-1)*f.pageSize,y=s.length+i.length,x=s.length,b=i.length,S=async()=>{s.length!==0&&Ci.confirm({title:"确认导入",content:n==="overwrite"?"覆盖式导入将清空现有题库并导入当前列表":"增量导入将按题目内容重复覆盖",okText:"开始导入",cancelText:"取消",onOk:async()=>{var E;u(!0);try{const O=(await sc.importQuestionsFromText({mode:n,questions:s})).data;ct.success(`导入完成:新增${O.inserted},覆盖${O.updated},失败${((E=O.errors)==null?void 0:E.length)??0}`),e("/admin/questions")}catch(C){ct.error(C.message||"导入失败")}finally{u(!1)}}})},w=[{title:"序号",key:"index",width:60,render:(E,C,O)=>g+O+1},{title:"题目内容",dataIndex:"content",key:"content",width:850,ellipsis:!0,onHeaderCell:()=>({className:"qt-text-import-th-content"}),onCell:()=>({className:"qt-text-import-td-content"})},{title:"题型",dataIndex:"type",key:"type",width:100,render:E=>P.jsx(mn,{color:"#008C8C",children:g1[E]})},{title:"题目类别",dataIndex:"category",key:"category",width:120,render:E=>{const C=E||"通用";return P.jsx(mn,{color:rv(C),children:C})}},{title:"分值",dataIndex:"score",key:"score",width:90,render:E=>`${E} 分`},{title:"答案",dataIndex:"answer",key:"answer",width:160,ellipsis:!0,render:E=>Array.isArray(E)?E.join(" | "):E},{title:"解析",dataIndex:"analysis",key:"analysis",width:320,ellipsis:!0,onHeaderCell:()=>({className:"qt-text-import-th-analysis"}),onCell:()=>({className:"qt-text-import-td-analysis"}),render:E=>P.jsxs("span",{children:[P.jsx(mn,{color:"blue",children:"解析"}),E||"无"]})},{title:"操作",key:"action",width:80,render:(E,C,O)=>P.jsx(kt,{type:"text",danger:!0,icon:P.jsx(fu,{}),onClick:()=>p(g+O)})}];return P.jsxs("div",{children:[P.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[P.jsxs($n,{children:[P.jsx(kt,{icon:P.jsx(RRe,{}),onClick:()=>e("/admin/questions"),children:"返回"}),P.jsx(kv.Title,{level:3,style:{margin:0},children:"文本导入题库"})]}),P.jsxs($n,{children:[P.jsxs(Gs.Group,{value:n,onChange:E=>a(E.target.value),children:[P.jsx(Gs.Button,{value:"incremental",children:"增量导入"}),P.jsx(Gs.Button,{value:"overwrite",children:"覆盖式导入"})]}),P.jsx(kt,{type:"primary",icon:P.jsx(eG,{}),disabled:s.length===0,loading:c,onClick:S,children:"一键导入"})]})]}),P.jsx(_r,{className:"shadow-sm mb-4",children:P.jsxs($n,{direction:"vertical",style:{width:"100%"},size:"middle",children:[P.jsxs("div",{className:"flex items-center justify-between",children:[P.jsxs($n,{children:[P.jsx(kt,{icon:P.jsx(YI,{}),onClick:()=>r(h),children:"填充示例"}),P.jsx(kt,{type:"primary",onClick:v,disabled:!t.trim(),children:"解析文本"})]}),P.jsxs($n,{size:"large",children:[P.jsx(Ai,{title:"本次导入题目总数",value:y,valueStyle:{color:"#1677ff",fontWeight:700}}),P.jsx(Ai,{title:"有效题目数量",value:x,valueStyle:{color:"#52c41a",fontWeight:700}}),P.jsx(Ai,{title:"无效题目数量",value:b,valueStyle:{color:b>0?"#ff4d4f":"#8c8c8c",fontWeight:700}})]})]}),P.jsx(irt,{value:t,onChange:E=>r(E.target.value),placeholder:h,rows:12}),i.length>0&&P.jsx(ule,{type:"warning",message:"解析错误(已忽略对应行)",description:P.jsx("div",{style:{maxHeight:160,overflow:"auto"},children:i.map(E=>P.jsx("div",{children:E},E))}),showIcon:!0})]})}),P.jsx(_r,{className:"shadow-sm",children:P.jsx(oi,{columns:w,dataSource:s.map((E,C)=>({...E,key:`${E.content}-${C}`})),pagination:{...f,showSizeChanger:!0},tableLayout:"fixed",scroll:{x:1800},size:"small",onChange:E=>m({current:E.current??1,pageSize:E.pageSize??10,size:"small"})})})]})},srt=()=>{const[e]=Ht.useForm(),[t,r]=d.useState(!1),[n,a]=d.useState(!1),[i,o]=d.useState({singleRatio:40,multipleRatio:30,judgmentRatio:20,textRatio:10,totalScore:100});d.useEffect(()=>{s()},[]);const s=async()=>{try{r(!0);const m=(await qs.getQuizConfig()).data;e.setFieldsValue(m),o(m)}catch(f){ct.error(f.message||"获取配置失败")}finally{r(!1)}},l=async f=>{try{a(!0);const m=f.singleRatio+f.multipleRatio+f.judgmentRatio+f.textRatio;if(console.log("题型比例总和:",m),Math.abs(m-100)>.01){ct.error("题型比例总和必须为100%");return}if(f.totalScore<=0){ct.error("总分必须大于0");return}await qs.updateQuizConfig(f),ct.success("配置更新成功"),o(f)}catch(m){ct.error(m.message||"更新配置失败"),console.error("更新配置失败:",m)}finally{a(!1)}},c=(f,m)=>{o(m)},u=f=>f>=40?"#52c41a":f>=20?"#faad14":"#ff4d4f";return P.jsxs("div",{children:[P.jsxs("div",{className:"mb-6",children:[P.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"抽题配置"}),P.jsx("p",{className:"text-gray-600 mt-2",children:"设置各题型的比例和试卷总分"})]}),P.jsx(_r,{className:"shadow-sm",loading:t,title:P.jsxs("div",{className:"flex items-center justify-between",children:[P.jsx("span",{children:"抽题配置"}),P.jsxs("span",{className:`text-sm ${i.singleRatio+i.multipleRatio+i.judgmentRatio+i.textRatio===100?"text-green-600":"text-red-600"}`,children:["比例总和:",i.singleRatio+i.multipleRatio+i.judgmentRatio+i.textRatio,"%"]})]}),children:P.jsxs(Ht,{form:e,layout:"vertical",onFinish:l,onValuesChange:c,initialValues:{singleRatio:40,multipleRatio:30,judgmentRatio:20,textRatio:10,totalScore:100},children:[P.jsxs(cs,{gutter:24,children:[P.jsx(Qr,{span:12,children:P.jsx(Ht.Item,{label:"单选题比例 (%)",name:"singleRatio",rules:[{required:!0,message:"请输入单选题比例"}],children:P.jsx(Ks,{min:0,max:100,style:{width:"100%"},formatter:f=>`${f}%`,parser:f=>f.replace("%","")})})}),P.jsx(Qr,{span:12,children:P.jsx(Sc,{percent:i.singleRatio,strokeColor:u(i.singleRatio),showInfo:!1})})]}),P.jsxs(cs,{gutter:24,children:[P.jsx(Qr,{span:12,children:P.jsx(Ht.Item,{label:"多选题比例 (%)",name:"multipleRatio",rules:[{required:!0,message:"请输入多选题比例"}],children:P.jsx(Ks,{min:0,max:100,style:{width:"100%"},formatter:f=>`${f}%`,parser:f=>f.replace("%","")})})}),P.jsx(Qr,{span:12,children:P.jsx(Sc,{percent:i.multipleRatio,strokeColor:u(i.multipleRatio),showInfo:!1})})]}),P.jsxs(cs,{gutter:24,children:[P.jsx(Qr,{span:12,children:P.jsx(Ht.Item,{label:"判断题比例 (%)",name:"judgmentRatio",rules:[{required:!0,message:"请输入判断题比例"}],children:P.jsx(Ks,{min:0,max:100,style:{width:"100%"},formatter:f=>`${f}%`,parser:f=>f.replace("%","")})})}),P.jsx(Qr,{span:12,children:P.jsx(Sc,{percent:i.judgmentRatio,strokeColor:u(i.judgmentRatio),showInfo:!1})})]}),P.jsxs(cs,{gutter:24,children:[P.jsx(Qr,{span:12,children:P.jsx(Ht.Item,{label:"文字题比例 (%)",name:"textRatio",rules:[{required:!0,message:"请输入文字题比例"}],children:P.jsx(Ks,{min:0,max:100,style:{width:"100%"},formatter:f=>`${f}%`,parser:f=>f.replace("%","")})})}),P.jsx(Qr,{span:12,children:P.jsx(Sc,{percent:i.textRatio,strokeColor:u(i.textRatio),showInfo:!1})})]}),P.jsxs(cs,{gutter:24,children:[P.jsx(Qr,{span:12,children:P.jsx(Ht.Item,{label:"试卷总分",name:"totalScore",rules:[{required:!0,message:"请输入试卷总分"}],children:P.jsx(Ks,{min:1,max:200,style:{width:"100%"},formatter:f=>`${f}分`,parser:f=>f.replace("分","")})})}),P.jsx(Qr,{span:12,children:P.jsx("div",{className:"h-8 flex items-center text-gray-600",children:"建议设置:100-150分"})})]}),P.jsx(Ht.Item,{className:"mb-0",children:P.jsx(kt,{type:"primary",htmlType:"submit",loading:n,className:"rounded-lg",children:"保存配置"})})]})}),P.jsx(_r,{title:"配置说明",className:"mt-6 shadow-sm",children:P.jsxs("div",{className:"space-y-3 text-gray-600",children:[P.jsx("p",{children:"• 各题型比例总和必须为100%"}),P.jsx("p",{children:"• 系统会根据比例和总分自动计算各题型的题目数量"}),P.jsx("p",{children:"• 建议单选题比例不低于30%,确保试卷的覆盖面"}),P.jsx("p",{children:"• 文字题比例建议不超过20%,避免评分主观性过强"}),P.jsx("p",{children:"• 总分设置建议为100分,便于成绩统计和分析"})]})})]})},{RangePicker:lrt}=wp,{TabPane:Ly}=DS,RL=["#1890ff","#52c41a","#faad14","#f5222d","#722ed1","#13c2c2"],crt=e=>{switch(e){case"不及格":return"red";case"合格":return"blue";case"优秀":return"green";default:return"default"}},urt=()=>{const[e,t]=d.useState(null),[r,n]=d.useState([]),[a,i]=d.useState([]),[o,s]=d.useState([]),[l,c]=d.useState([]),[u,f]=d.useState(!1),[m,h]=d.useState(null),[v,p]=d.useState("overview");d.useState(""),d.useState("");const[g,y]=d.useState([]),[x,b]=d.useState([]);d.useEffect(()=>{S()},[]);const S=async()=>{await Promise.all([w(),E(),C(),O(),_(),T(),I()])},w=async()=>{try{f(!0);const M=await qs.getStatistics();t(M.data)}catch(M){ct.error(M.message||"获取统计数据失败")}finally{f(!1)}},E=async()=>{try{const M=await bd.getAllRecords({page:1,limit:100});n(M.data||[])}catch(M){console.error("获取答题记录失败:",M)}},C=async()=>{try{const M=await qs.getUserStats();i(M.data||[])}catch(M){console.error("获取用户统计失败:",M)}},O=async()=>{try{const M=await qs.getSubjectStats();s(M.data||[])}catch(M){console.error("获取科目统计失败:",M)}},_=async()=>{try{const M=await qs.getTaskStats();c(M.data||[])}catch(M){console.error("获取任务统计失败:",M)}},T=async()=>{try{const M=await At.get("/exam-subjects");y(M.data||[])}catch(M){console.error("获取科目列表失败:",M)}},I=async()=>{try{const M=await At.get("/exam-tasks");b(M.data||[])}catch(M){console.error("获取任务列表失败:",M)}},N=M=>{h(M)},D=()=>{const M=[["姓名","手机号","科目","任务","得分","正确数","总题数","答题时间"],...r.map(B=>[B.userName,B.userPhone,B.subjectName||"",B.taskName||"",B.totalScore,B.correctCount,B.totalCount,si(B.createdAt)])].map(B=>B.join(",")).join(` +`),V=new Blob([M],{type:"text/csv"}),K=window.URL.createObjectURL(V),L=document.createElement("a");L.href=K,L.download=`答题记录_${new Date().toISOString().split("T")[0]}.csv`,L.click(),window.URL.revokeObjectURL(K),ct.success("数据导出成功")},k=[{range:"不及格",count:r.filter(M=>M.status==="不及格").length},{range:"合格",count:r.filter(M=>M.status==="合格").length},{range:"优秀",count:r.filter(M=>M.status==="优秀").length}].filter(M=>M.count>0),R=[{title:"姓名",dataIndex:"userName",key:"userName"},{title:"手机号",dataIndex:"userPhone",key:"userPhone"},{title:"科目",dataIndex:"subjectName",key:"subjectName"},{title:"任务",dataIndex:"taskName",key:"taskName"},{title:"状态",dataIndex:"status",key:"status",render:M=>{const V=crt(M);return P.jsx("span",{className:`px-2 py-1 rounded text-xs font-medium bg-${V}-100 text-${V}-800`,children:M})}},{title:"得分",dataIndex:"totalScore",key:"totalScore",render:M=>P.jsxs("span",{className:"font-semibold text-blue-600",children:[M," 分"]})},{title:"正确率",key:"correctRate",render:M=>{const V=(M.correctCount/M.totalCount*100).toFixed(1);return P.jsxs("span",{children:[V,"%"]})}},{title:"答题时间",dataIndex:"createdAt",key:"createdAt",render:M=>si(M)}],A=[{title:"用户姓名",dataIndex:"userName",key:"userName"},{title:"答题次数",dataIndex:"totalRecords",key:"totalRecords"},{title:"平均分",dataIndex:"averageScore",key:"averageScore",render:M=>`${M.toFixed(1)} 分`},{title:"最高分",dataIndex:"highestScore",key:"highestScore",render:M=>`${M} 分`},{title:"最低分",dataIndex:"lowestScore",key:"lowestScore",render:M=>`${M} 分`}],j=[{title:"科目名称",dataIndex:"subjectName",key:"subjectName"},{title:"答题次数",dataIndex:"totalRecords",key:"totalRecords"},{title:"平均分",dataIndex:"averageScore",key:"averageScore",render:M=>`${M.toFixed(1)} 分`},{title:"平均正确率",dataIndex:"averageCorrectRate",key:"averageCorrectRate",render:M=>`${M.toFixed(1)}%`}],F=[{title:"任务名称",dataIndex:"taskName",key:"taskName"},{title:"答题次数",dataIndex:"totalRecords",key:"totalRecords"},{title:"平均分",dataIndex:"averageScore",key:"averageScore",render:M=>`${M.toFixed(1)} 分`},{title:"完成率",dataIndex:"completionRate",key:"completionRate",render:M=>`${M.toFixed(1)}%`}];return P.jsxs("div",{children:[P.jsxs("div",{className:"flex justify-between items-center mb-6",children:[P.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"数据统计分析"}),P.jsxs("div",{className:"space-x-4",children:[P.jsx(lrt,{onChange:N}),P.jsx(kt,{type:"primary",onClick:D,children:"导出数据"})]})]}),P.jsxs(cs,{gutter:16,className:"mb-8",children:[P.jsx(Qr,{span:6,children:P.jsx(_r,{children:P.jsx(Ai,{title:"总用户数",value:(e==null?void 0:e.totalUsers)||0,valueStyle:{color:"#1890ff"}})})}),P.jsx(Qr,{span:6,children:P.jsx(_r,{children:P.jsx(Ai,{title:"总答题数",value:(e==null?void 0:e.totalRecords)||0,valueStyle:{color:"#52c41a"}})})}),P.jsx(Qr,{span:6,children:P.jsx(_r,{children:P.jsx(Ai,{title:"平均分",value:(e==null?void 0:e.averageScore)||0,precision:1,valueStyle:{color:"#faad14"},suffix:"分"})})}),P.jsx(Qr,{span:6,children:P.jsx(_r,{children:P.jsx(Ai,{title:"活跃率",value:e!=null&&e.totalUsers?(e.totalRecords/e.totalUsers*100).toFixed(1):0,precision:1,valueStyle:{color:"#f5222d"},suffix:"%"})})})]}),P.jsxs(DS,{activeKey:v,onChange:p,children:[P.jsxs(Ly,{tab:"总体概览",children:[P.jsx(cs,{gutter:16,className:"mb-8",children:P.jsx(Qr,{span:24,children:P.jsx(_r,{title:"分数分布",className:"shadow-sm",children:P.jsx(Uq,{width:"100%",height:300,children:P.jsxs(eZ,{children:[P.jsx(wR,{data:k,cx:"50%",cy:"50%",labelLine:!1,label:({name:M,percent:V})=>`${M} ${(V*100).toFixed(0)}%`,outerRadius:80,fill:"#8884d8",dataKey:"count",children:k.map((M,V)=>P.jsx(og,{fill:RL[V%RL.length]},`cell-${V}`))}),P.jsx(vQ,{})]})})})})}),P.jsx(_r,{title:"答题记录明细",className:"shadow-sm",children:P.jsx(oi,{columns:R,dataSource:r,rowKey:"id",size:"small",loading:u,pagination:{pageSize:10,showSizeChanger:!0,showQuickJumper:!0,showTotal:M=>`共 ${M} 条`,size:"small"}})})]},"overview"),P.jsx(Ly,{tab:"用户统计",children:P.jsx(_r,{title:"用户答题统计",className:"shadow-sm",children:P.jsx(oi,{columns:A,dataSource:a,rowKey:"userId",size:"small",pagination:{pageSize:10,showSizeChanger:!0,showQuickJumper:!0,showTotal:M=>`共 ${M} 条`,size:"small"}})})},"users"),P.jsx(Ly,{tab:"科目统计",children:P.jsx(_r,{title:"科目答题统计",className:"shadow-sm",children:P.jsx(oi,{columns:j,dataSource:o,rowKey:"subjectId",size:"small",pagination:{pageSize:10,showSizeChanger:!0,showQuickJumper:!0,showTotal:M=>`共 ${M} 条`,size:"small"}})})},"subjects"),P.jsx(Ly,{tab:"任务统计",children:P.jsx(_r,{title:"考试任务统计",className:"shadow-sm",children:P.jsx(oi,{columns:F,dataSource:l,rowKey:"taskId",size:"small",pagination:{pageSize:10,showSizeChanger:!0,showQuickJumper:!0,showTotal:M=>`共 ${M} 条`,size:"small"}})})},"tasks")]})]})},drt=()=>{const[e,t]=d.useState(!1),r=async()=>{try{t(!0);const[i,o,s,l]=await Promise.all([fetch("/api/admin/export/users").then(f=>f.json()),fetch("/api/admin/export/questions").then(f=>f.json()),fetch("/api/admin/export/records").then(f=>f.json()),fetch("/api/admin/export/answers").then(f=>f.json())]),c=$a.book_new();if(i.success&&i.data){const f=$a.json_to_sheet(i.data);$a.book_append_sheet(c,f,"用户数据")}if(o.success&&o.data){const f=$a.json_to_sheet(o.data);$a.book_append_sheet(c,f,"题库数据")}if(s.success&&s.data){const f=$a.json_to_sheet(s.data);$a.book_append_sheet(c,f,"答题记录")}if(l.success&&l.data){const f=$a.json_to_sheet(l.data);$a.book_append_sheet(c,f,"答题答案")}const u=`问卷系统备份_${new Date().toISOString().split("T")[0]}.xlsx`;_T(c,u),ct.success("数据备份成功")}catch(i){console.error("备份失败:",i),ct.error("数据备份失败")}finally{t(!1)}},n=async i=>{try{const o=new FileReader;o.onload=async s=>{var l;try{const c=new Uint8Array((l=s.target)==null?void 0:l.result),u=M0(c,{type:"array"}),f=u.SheetNames,m={};f.forEach(h=>{const v=u.Sheets[h],p=$a.sheet_to_json(v);h.includes("用户")?m.users=p:h.includes("题库")?m.questions=p:h.includes("记录")?m.records=p:h.includes("答案")&&(m.answers=p)}),Ci.confirm({title:"确认数据恢复",content:P.jsxs("div",{children:[P.jsx("p",{children:"检测到以下数据:"}),P.jsxs("ul",{children:[m.users&&P.jsxs("li",{children:["用户数据:",m.users.length," 条"]}),m.questions&&P.jsxs("li",{children:["题库数据:",m.questions.length," 条"]}),m.records&&P.jsxs("li",{children:["答题记录:",m.records.length," 条"]}),m.answers&&P.jsxs("li",{children:["答题答案:",m.answers.length," 条"]})]}),P.jsx("p",{style:{color:"red",marginTop:16},children:"警告:数据恢复将覆盖现有数据,请确保已备份当前数据!"})]}),onOk:async()=>{await a(m)},width:500})}catch(c){console.error("解析文件失败:",c),ct.error("文件解析失败,请检查文件格式")}},o.readAsArrayBuffer(i)}catch(o){console.error("恢复失败:",o),ct.error("数据恢复失败")}return!1},a=async i=>{try{t(!0);const s=await(await fetch("/api/admin/restore",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${localStorage.getItem("survey_admin")?JSON.parse(localStorage.getItem("survey_admin")).token:""}`},body:JSON.stringify(i)})).json();s.success?ct.success("数据恢复成功"):ct.error(s.message||"数据恢复失败")}catch(o){console.error("恢复失败:",o),ct.error("数据恢复失败")}finally{t(!1)}};return P.jsxs("div",{children:[P.jsx("div",{className:"flex justify-between items-center mb-6",children:P.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"数据备份与恢复"})}),P.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[P.jsx(_r,{title:"数据备份",className:"shadow-sm",children:P.jsxs("div",{className:"space-y-4",children:[P.jsx("p",{className:"text-gray-600",children:"备份所有数据到Excel文件,包括用户信息、题库、答题记录等。"}),P.jsx(kt,{type:"primary",icon:P.jsx(hN,{}),onClick:r,loading:e,size:"large",className:"w-full",children:"立即备份"})]})}),P.jsx(_r,{title:"数据恢复",className:"shadow-sm",children:P.jsxs("div",{className:"space-y-4",children:[P.jsx("p",{className:"text-gray-600",children:"从Excel文件恢复数据,将覆盖现有数据,请谨慎操作。"}),P.jsx(vN,{accept:".xlsx,.xls",showUploadList:!1,beforeUpload:n,children:P.jsx(kt,{icon:P.jsx(tG,{}),loading:e,size:"large",className:"w-full",danger:!0,children:"选择文件恢复"})})]})})]}),P.jsx(_r,{title:"注意事项",className:"mt-6 shadow-sm",children:P.jsxs("div",{className:"space-y-2 text-gray-600",children:[P.jsx("p",{children:"• 建议定期进行数据备份,以防数据丢失"}),P.jsx("p",{children:"• 恢复数据前请确保已备份当前数据"}),P.jsx("p",{children:"• 数据恢复操作不可撤销,请谨慎操作"}),P.jsx("p",{children:"• 备份文件包含所有数据,请妥善保管"}),P.jsx("p",{children:"• 建议在系统空闲时进行数据恢复操作"})]})})]})},frt=()=>{const[e,t]=d.useState([]),[r,n]=d.useState(!1),[a,i]=d.useState(!1),[o,s]=d.useState(null),[l]=Ht.useForm(),c=H0(),u=async()=>{n(!0);try{const y=await At.get("/question-categories");t(y.data)}catch{ct.error("获取题目类别失败")}finally{n(!1)}};d.useEffect(()=>{u()},[c.pathname]);const f=()=>{u()},m=()=>{s(null),l.resetFields(),i(!0)},h=y=>{s(y),l.setFieldsValue({name:y.name}),i(!0)},v=async y=>{try{await At.delete(`/admin/question-categories/${y}`),ct.success("删除成功"),u()}catch{ct.error("删除失败")}},p=async()=>{try{const y=await l.validateFields();o?(await At.put(`/admin/question-categories/${o.id}`,y),ct.success("更新成功")):(await At.post("/admin/question-categories",y),ct.success("创建成功")),i(!1),u()}catch{ct.error("操作失败")}},g=[{title:"类别名称",dataIndex:"name",key:"name",align:"center",width:250,render:y=>P.jsx("div",{className:"flex items-center",children:P.jsx(mn,{color:rv(y),className:"mr-2",children:y})})},{title:P.jsx(Os,{title:"该类别下题目数量(按题目表 category 统计)",children:P.jsx("span",{children:"题库数量"})}),dataIndex:"questionCount",key:"questionCount",align:"center",width:120,className:"qc-question-count-td",sorter:(y,x)=>(y.questionCount??0)-(x.questionCount??0),render:y=>P.jsx("div",{className:"qc-question-count",children:y??0})},{title:"创建时间",align:"center",width:200,dataIndex:"createdAt",key:"createdAt",render:y=>si(y,{includeSeconds:!0})},{title:P.jsx("div",{style:{textAlign:"center"},children:"操作"}),key:"action",align:"center",width:200,render:(y,x)=>P.jsxs($n,{children:[P.jsx(kt,{type:"text",size:"small",icon:P.jsx(Gc,{}),onClick:()=>h(x),children:"编辑"}),P.jsx(sm,{title:"确定删除该类别吗?",onConfirm:()=>v(x.id),okText:"确定",cancelText:"取消",children:P.jsx(kt,{type:"text",size:"small",danger:!0,icon:P.jsx(fu,{}),children:"删除"})})]})}];return P.jsxs("div",{children:[P.jsxs("div",{className:"flex justify-between items-center mb-6",children:[P.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"题目类别管理"}),P.jsxs($n,{children:[P.jsx(kt,{icon:P.jsx(Gc,{spin:r}),onClick:f,children:"刷新类别"}),P.jsx(kt,{type:"primary",icon:P.jsx(Vd,{}),onClick:m,children:"新增类别"})]})]}),P.jsx(oi,{columns:g,dataSource:e,rowKey:"id",size:"small",loading:r,pagination:{pageSize:10,showSizeChanger:!0,showTotal:y=>`共 ${y} 条`}}),P.jsx(Ci,{title:o?"编辑类别":"新增类别",open:a,onOk:p,onCancel:()=>i(!1),children:P.jsx(Ht,{form:l,layout:"vertical",children:P.jsx(Ht.Item,{name:"name",label:"类别名称",rules:[{required:!0,message:"请输入类别名称"}],children:P.jsx(Na,{placeholder:"请输入类别名称"})})})})]})},mrt=()=>{const[e,t]=d.useState([]),[r,n]=d.useState([]),[a,i]=d.useState(!1),[o,s]=d.useState(!1),[l,c]=d.useState(null),[u]=Ht.useForm(),[f,m]=d.useState(!1),[h,v]=d.useState(null),[p,g]=d.useState(!1),[y,x]=d.useState(null),[b,S]=d.useState("count"),[w,E]=d.useState({single:40,multiple:30,judgment:20,text:10}),[C,O]=d.useState({}),_=H=>Object.values(H).reduce((U,X)=>U+X,0),T=H=>{const U=Object.values(H);if(U.length===0||U.some(Y=>typeof Y!="number"||Number.isNaN(Y)||Y<0)||U.some(Y=>Y>100))return!1;const X=U.reduce((Y,G)=>Y+G,0);return Math.abs(X-100)<=.01},I=H=>{const U=Object.entries(H);if(U.length===0)return H;const X={};for(const[J,z]of U)X[J]=Math.max(0,Math.min(100,Math.round((Number(z)||0)*100)/100));const Y=Object.keys(X),G=Y[Y.length-1],Q=Y.slice(0,-1).reduce((J,z)=>J+(X[z]??0),0);return X[G]=Math.max(0,Math.min(100,Math.round((100-Q)*100)/100)),X},N=H=>{const U=Object.entries(H);if(U.length===0)return H;const X=U.reduce((G,[,Q])=>G+Math.max(0,Number(Q)||0),0);if(X<=0)return I(Object.fromEntries(U.map(([G])=>[G,0])));const Y={};for(const[G,Q]of U)Y[G]=Math.round(Math.max(0,Number(Q)||0)/X*100*100)/100;return I(Y)},D=H=>{const U={};for(const[X,Y]of Object.entries(H))U[X]=Math.max(0,Math.round(Number(Y)||0));return U},k=[{key:"single",label:"单选题",color:"#52c41a"},{key:"multiple",label:"多选题",color:"#faad14"},{key:"judgment",label:"判断题",color:"#ff4d4f"},{key:"text",label:"文字题",color:"#1890ff"}],R=async()=>{i(!0);try{const[H,U]=await Promise.all([At.get("/admin/subjects"),At.get("/question-categories")]);t(H.data),n(U.data)}catch{ct.error("获取数据失败")}finally{i(!1)}};d.useEffect(()=>{R()},[]);const A=()=>{var G,Q;if(r.length===0){ct.warning("题目类别加载中,请稍后再试");return}c(null),u.resetFields();const H={single:4,multiple:3,judgment:2,text:1},U=_(H),X=((G=r.find(J=>J.name!=="通用"))==null?void 0:G.name)??((Q=r[0])==null?void 0:Q.name),Y=X?{[X]:U}:{};S("count"),E(H),O(Y),u.setFieldsValue({typeRatios:H,categoryRatios:Y,totalScore:100,timeLimitMinutes:60}),s(!0)},j=H=>{c(H);const U=H.typeRatios||{single:40,multiple:30,judgment:20,text:10},X=H.categoryRatios||{},Y=T(U)&&T(X)?"ratio":"count";S(Y),E(U),O(X),u.setFieldsValue({name:H.name,totalScore:H.totalScore,timeLimitMinutes:H.timeLimitMinutes,typeRatios:U,categoryRatios:X}),s(!0)},F=async H=>{try{await At.delete(`/admin/subjects/${H}`),ct.success("删除成功"),R()}catch{ct.error("删除失败")}},M=async()=>{try{const H=_(w),U=_(C);if(b==="ratio"){if(console.log("题型比重总和(状态):",H),Math.abs(H-100)>.01){ct.error("题型比重总和必须为100%");return}if(console.log("类别比重总和(状态):",U),Math.abs(U-100)>.01){ct.error("题目类别比重总和必须为100%");return}}else{const Y=Object.values(w),G=Object.values(C);if(Y.length===0||G.length===0){ct.error("题型数量与题目类别数量不能为空");return}if(Y.some(Q=>typeof Q!="number"||Number.isNaN(Q)||Q<0||!Number.isInteger(Q))){ct.error("题型数量必须为非负整数");return}if(G.some(Q=>typeof Q!="number"||Number.isNaN(Q)||Q<0||!Number.isInteger(Q))){ct.error("题目类别数量必须为非负整数");return}if(!Y.some(Q=>Q>0)||!G.some(Q=>Q>0)){ct.error("题型数量与题目类别数量至少需要一个大于0的配置");return}if(H!==U){ct.error("题型数量总和必须等于题目类别数量总和");return}}const X=await u.validateFields();X.typeRatios=w,X.categoryRatios=C,console.log("最终提交的表单值:",X),l?(await At.put(`/admin/subjects/${l.id}`,X),ct.success("更新成功")):(await At.post("/admin/subjects",X),ct.success("创建成功")),s(!1),R()}catch(H){ct.error("操作失败"),console.error("操作失败:",H)}},V=H=>{if(H===b)return;let U=w,X=C;H==="count"?(U=D(w),X=D(C)):(U=N(w),X=N(C)),S(H),E(U),O(X),u.setFieldsValue({typeRatios:U,categoryRatios:X})},K=(H,U)=>{const X={...w,[H]:U};E(X),u.setFieldsValue({typeRatios:X})},L=(H,U)=>{const X={...C,[H]:U};console.log("修改类别比重:",H,U,"新的类别比重:",X),console.log("类别比重总和:",Object.values(X).reduce((Y,G)=>Y+G,0)),O(X),u.setFieldsValue({categoryRatios:X})},B=async H=>{try{g(!0),x(H);const U=await At.post("/quiz/generate",{userId:"admin-preview",subjectId:H.id});v(U.data),m(!0)}catch(U){ct.error("生成预览题目失败"),console.error("生成预览题目失败:",U)}finally{g(!1)}},W=[{title:"科目名称",dataIndex:"name",key:"name"},{title:"总分",dataIndex:"totalScore",key:"totalScore",render:H=>`${H} 分`},{title:"答题时间",dataIndex:"timeLimitMinutes",key:"timeLimitMinutes",render:H=>`${H} 分钟`},{title:"题型分布",dataIndex:"typeRatios",key:"typeRatios",render:H=>{const U=T(H||{}),X=_(H||{});return P.jsxs("div",{className:"p-3 bg-white rounded-lg border border-gray-200 shadow-sm",children:[P.jsx("div",{className:"w-full bg-gray-200 rounded-full h-4 flex mb-3 overflow-hidden",children:H&&Object.entries(H).map(([Y,G])=>{const Q=k.find(z=>z.key===Y),J=U?G:X>0?G/X*100:0;return P.jsx("div",{className:"h-full",style:{width:`${J}%`,backgroundColor:(Q==null?void 0:Q.color)||"#1890ff"}},Y)})}),P.jsx("div",{className:"space-y-1",children:H&&Object.entries(H).map(([Y,G])=>{const Q=k.find(z=>z.key===Y),J=U?G:X>0?Math.round(G/X*1e3)/10:0;return P.jsxs("div",{className:"flex items-center text-sm",children:[P.jsx("span",{className:"inline-block w-3 h-3 mr-2 rounded-full",style:{backgroundColor:(Q==null?void 0:Q.color)||"#1890ff"}}),P.jsx("span",{className:"flex-1",children:(Q==null?void 0:Q.label)||Y}),P.jsx("span",{className:"font-medium",children:U?`${G}%`:`${G}题(${J}%)`})]},Y)})})]})}},{title:"题目类别分布",dataIndex:"categoryRatios",key:"categoryRatios",render:H=>{const U=T(H||{}),X=new Set(r.map(Q=>Q.name)),Y=H?Object.entries(H).filter(([Q])=>X.size===0||X.has(Q)):[],G=Y.reduce((Q,[,J])=>Q+(Number(J)||0),0);return P.jsxs("div",{className:"p-3 bg-white rounded-lg border border-gray-200 shadow-sm",children:[P.jsx("div",{className:"w-full bg-gray-200 rounded-full h-4 flex mb-3 overflow-hidden",children:Y.map(([Q,J])=>P.jsx("div",{className:"h-full",style:{width:`${U?J:G>0?J/G*100:0}%`,backgroundColor:rv(Q)}},Q))}),P.jsx("div",{className:"space-y-1",children:Y.map(([Q,J])=>{const z=U?J:G>0?Math.round(J/G*1e3)/10:0;return P.jsxs("div",{className:"flex items-center text-sm",children:[P.jsx("span",{className:"inline-block w-3 h-3 mr-2 rounded-full",style:{backgroundColor:rv(Q)}}),P.jsx("span",{className:"flex-1",children:Q}),P.jsx("span",{className:"font-medium",children:U?`${J}%`:`${J}题(${z}%)`})]},Q)})})]})}},{title:"创建时间",dataIndex:"createdAt",key:"createdAt",render:H=>{const U=hs(H)??new Date(H);return Number.isNaN(U.getTime())?H:P.jsxs("div",{children:[P.jsx("div",{children:U.toLocaleDateString()}),P.jsx("div",{className:"text-sm text-gray-500",children:U.toLocaleTimeString()})]})}},{title:"操作",key:"action",width:100,align:"left",render:(H,U)=>P.jsxs("div",{className:"space-y-2",children:[P.jsx(kt,{type:"text",size:"small",icon:P.jsx(Gc,{}),onClick:()=>j(U),children:"编辑"}),P.jsx(kt,{type:"text",size:"small",icon:P.jsx(Pv,{}),onClick:()=>B(U),children:"浏览考题"}),P.jsx(sm,{title:"确定删除该科目吗?",onConfirm:()=>F(U.id),okText:"确定",cancelText:"取消",children:P.jsx(kt,{type:"text",danger:!0,size:"small",icon:P.jsx(fu,{}),children:"删除"})})]})}];return P.jsxs("div",{children:[P.jsxs("div",{className:"flex justify-between items-center mb-6",children:[P.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"考试科目管理"}),P.jsx(kt,{type:"primary",icon:P.jsx(Vd,{}),onClick:A,children:"新增科目"})]}),P.jsx(oi,{columns:W,dataSource:e,rowKey:"id",size:"small",loading:a,pagination:{pageSize:10,showSizeChanger:!0,showTotal:H=>`共 ${H} 条`,size:"small"}}),P.jsx(Ci,{title:l?"编辑科目":"新增科目",open:o,onOk:M,onCancel:()=>s(!1),width:800,children:P.jsxs(Ht,{form:u,layout:"vertical",children:[P.jsx(Ht.Item,{name:"name",label:"科目名称",rules:[{required:!0,message:"请输入科目名称"}],children:P.jsx(Na,{placeholder:"请输入科目名称"})}),P.jsxs(cs,{gutter:16,children:[P.jsx(Qr,{span:12,children:P.jsx(Ht.Item,{name:"totalScore",label:"试卷总分",rules:[{required:!0,message:"请输入试卷总分"}],children:P.jsx(Ks,{min:1,max:200,placeholder:"请输入总分",style:{width:"100%"}})})}),P.jsx(Qr,{span:12,children:P.jsx(Ht.Item,{name:"timeLimitMinutes",label:"答题时间(分钟)",rules:[{required:!0,message:"请输入答题时间"}],children:P.jsx(Ks,{min:1,max:180,placeholder:"请输入时间",style:{width:"100%"}})})})]}),P.jsx(_r,{size:"small",className:"mb-4",children:P.jsxs("div",{className:"flex items-center justify-between",children:[P.jsx("span",{className:"font-medium",children:"配置模式"}),P.jsx(Gs.Group,{value:b,onChange:H=>V(H.target.value),options:[{label:"比例(%)",value:"ratio"},{label:"数量(题)",value:"count"}],optionType:"button",buttonStyle:"solid"})]})}),P.jsx(_r,{size:"small",title:P.jsxs("div",{className:"flex items-center justify-between",children:[P.jsx("span",{children:b==="ratio"?"题型比重配置":"题型数量配置"}),P.jsxs("span",{className:`text-sm ${b==="ratio"?Math.abs(_(w)-100)<=.01?"text-green-600":"text-red-600":_(w)>0?"text-green-600":"text-red-600"}`,children:["总计:",_(w),b==="ratio"?"%":"题"]})]}),className:"mb-4",children:P.jsx(Ht.Item,{name:"typeRatios",noStyle:!0,children:P.jsx("div",{className:"space-y-4",children:k.map(H=>{const U=w[H.key]||0,X=_(w),Y=b==="ratio"?U:X>0?Math.round(U/X*1e3)/10:0;return P.jsxs("div",{children:[P.jsxs("div",{className:"flex items-center justify-between mb-2",children:[P.jsx("span",{className:"font-medium",children:H.label}),P.jsx("span",{className:"text-blue-600 font-bold",children:b==="ratio"?`${U}%`:`${U}题`})]}),P.jsxs("div",{className:"flex items-center space-x-4",children:[P.jsx(Ks,{min:0,max:b==="ratio"?100:200,precision:b==="ratio"?2:0,value:U,onChange:G=>K(H.key,G||0),style:{width:100}}),P.jsx("div",{style:{flex:1},children:P.jsx(Sc,{percent:Y,strokeColor:H.color,showInfo:!1,size:"small"})})]})]},H.key)})})})}),P.jsx(_r,{size:"small",title:P.jsxs("div",{className:"flex items-center justify-between",children:[P.jsx("span",{children:b==="ratio"?"题目类别比重配置":"题目类别数量配置"}),P.jsxs("span",{className:`text-sm ${b==="ratio"?Math.abs(_(C)-100)<=.01?"text-green-600":"text-red-600":_(C)===_(w)&&_(C)>0?"text-green-600":"text-red-600"}`,children:["总计:",_(C),b==="ratio"?"%":"题"]})]}),children:P.jsx(Ht.Item,{name:"categoryRatios",noStyle:!0,children:P.jsx("div",{className:"space-y-4",children:r.map(H=>{const U=C[H.name]||0,X=_(C),Y=b==="ratio"?U:X>0?Math.round(U/X*1e3)/10:0;return P.jsxs("div",{children:[P.jsxs("div",{className:"flex items-center justify-between mb-2",children:[P.jsx("span",{className:"font-medium",children:H.name}),P.jsx("span",{className:"text-blue-600 font-bold",children:b==="ratio"?`${U}%`:`${U}题`})]}),P.jsxs("div",{className:"flex items-center space-x-4",children:[P.jsx(Ks,{min:0,max:b==="ratio"?100:200,precision:b==="ratio"?2:0,value:U,onChange:G=>L(H.name,G||0),style:{width:100}}),P.jsx("div",{style:{flex:1},children:P.jsx(Sc,{percent:Y,strokeColor:"#1890ff",showInfo:!1,size:"small"})})]})]},H.id)})})})})]})}),P.jsx(Ci,{title:`${(y==null?void 0:y.name)||""} - 随机考题预览`,open:f,onCancel:()=>m(!1),width:900,footer:null,bodyStyle:{maxHeight:"70vh",overflowY:"auto"},children:p?P.jsxs("div",{className:"text-center py-10",children:[P.jsx("div",{className:"ant-spin ant-spin-lg"}),P.jsx("p",{className:"mt-4",children:"正在生成随机考题..."})]}):h?P.jsxs("div",{children:[P.jsx(_r,{size:"small",className:"mb-4",children:P.jsxs("div",{className:"flex justify-between",children:[P.jsxs("div",{children:[P.jsx("span",{className:"font-medium mr-4",children:"总分:"}),P.jsxs("span",{children:[h.totalScore," 分"]})]}),P.jsxs("div",{children:[P.jsx("span",{className:"font-medium mr-4",children:"时间限制:"}),P.jsxs("span",{children:[h.timeLimit," 分钟"]})]}),P.jsxs("div",{children:[P.jsx("span",{className:"font-medium mr-4",children:"题目数量:"}),P.jsxs("span",{children:[h.questions.length," 道"]})]})]})}),P.jsx("div",{className:"space-y-4",children:h.questions.map((H,U)=>P.jsxs(_r,{className:"shadow-sm",children:[P.jsxs("div",{className:"flex justify-between items-start mb-3",children:[P.jsxs("h4",{className:"font-bold",children:["第 ",U+1," 题(",H.score," 分)",P.jsx("span",{className:"ml-2 text-blue-600 font-normal",children:H.type==="single"?"单选题":H.type==="multiple"?"多选题":H.type==="judgment"?"判断题":"文字题"})]}),P.jsx("span",{className:"text-gray-500 text-sm",children:H.category})]}),P.jsx("div",{className:"mb-3",children:H.content}),H.options&&H.options.length>0&&P.jsx("div",{className:"mb-3",children:H.options.map((X,Y)=>P.jsx("div",{className:"mb-2",children:P.jsxs("label",{className:"flex items-center",children:[P.jsx("span",{className:"inline-block w-6 h-6 mr-2 text-center border border-gray-300 rounded",children:String.fromCharCode(65+Y)}),P.jsx("span",{children:X})]})},Y))}),P.jsxs("div",{className:"mt-3",children:[P.jsx("span",{className:"font-medium mr-2",children:"参考答案:"}),P.jsx("span",{className:"text-green-600",children:Array.isArray(H.answer)?H.answer.join(", "):H.type==="judgment"?(()=>{const X=String(H.answer??"").trim();return["A","T","true","True","TRUE","1","正确","对","是"].includes(X)?"正确":["B","F","false","False","FALSE","0","错误","错","否","不是"].includes(X)?"错误":X})():H.answer})]}),P.jsxs("div",{className:"mt-3",children:[P.jsx(mn,{color:"blue",children:"解析"}),P.jsx("span",{className:"text-gray-700 whitespace-pre-wrap",children:H.analysis||""})]})]},H.id))})]}):P.jsx("div",{className:"text-center py-10 text-gray-500",children:"暂无考题数据"})})]})},AL=()=>{const[e,t]=d.useState([]),[r,n]=d.useState([]),[a,i]=d.useState([]),[o,s]=d.useState([]),[l,c]=d.useState(!1),[u,f]=d.useState(!1),[m,h]=d.useState(!1),[v,p]=d.useState(null),[g,y]=d.useState(null),[x]=Ht.useForm(),[b,S]=d.useState({}),w=async()=>{c(!0);try{const[R,A,j,F]=await Promise.all([At.get("/admin/tasks"),At.get("/admin/subjects"),At.get("/admin/users"),Wu.getAll()]);t(R.data),n(A.data),i(j.data),s(F.data)}catch{ct.error("获取数据失败")}finally{c(!1)}};d.useEffect(()=>{w()},[]);const E=Ht.useWatch("userIds",x)||[],C=Ht.useWatch("groupIds",x)||[];d.useEffect(()=>{u&&(async()=>{if(C.length>0){for(const A of C)if(!b[A])try{const F=(await Wu.getMembers(A)).data;S(M=>({...M,[A]:(F||[]).map(V=>V.id)}))}catch(j){console.error(`Failed to fetch members for group ${A}`,j)}}})()},[C,u]);const O=d.useMemo(()=>{const R=new Set(E);return C.forEach(A=>{(b[A]||[]).forEach(F=>R.add(F))}),R.size},[E,C,b]),_=()=>{y(null),x.resetFields(),f(!0)},T=async R=>{y(R);try{let A=[],j=[];if(R.selectionConfig)try{const F=JSON.parse(R.selectionConfig);A=F.userIds||[],j=F.groupIds||[]}catch(F){console.error("Failed to parse selection config",F)}R.selectionConfig||(A=(await At.get(`/admin/tasks/${R.id}/users`)).data),x.setFieldsValue({name:R.name,subjectId:R.subjectId,startAt:Zn(hs(R.startAt)??R.startAt),endAt:Zn(hs(R.endAt)??R.endAt),userIds:A,groupIds:j})}catch{ct.error("获取任务详情失败")}f(!0)},I=async R=>{try{await At.delete(`/admin/tasks/${R}`),ct.success("删除成功"),w()}catch{ct.error("删除失败")}},N=async R=>{try{const A=await At.get(`/admin/tasks/${R}/report`);p(A.data),h(!0)}catch{ct.error("获取报表失败")}},D=async()=>{try{const R=await x.validateFields();if(O===0){ct.warning("请至少选择一位用户或一个用户组");return}const A={...R,startAt:R.startAt.toISOString(),endAt:R.endAt.toISOString()};g?(await At.put(`/admin/tasks/${g.id}`,A),ct.success("更新成功")):(await At.post("/admin/tasks",A),ct.success("创建成功")),f(!1),w()}catch{ct.error("操作失败")}},k=[{title:"任务名称",dataIndex:"name",key:"name",width:210,ellipsis:!0},{title:"考试科目",dataIndex:"subjectName",key:"subjectName",width:180,ellipsis:!0},{title:"开始时间",dataIndex:"startAt",key:"startAt",width:110,render:R=>si(R)},{title:"结束时间",dataIndex:"endAt",key:"endAt",width:110,render:R=>si(R)},{title:"考试进程",dataIndex:["startAt","endAt"],key:"progress",width:160,render:(R,A)=>{const j=Zn(),F=Zn(hs(A.startAt)??A.startAt),M=Zn(hs(A.endAt)??A.endAt);let V=0;if(jM)V=100;else{const K=M.diff(F,"millisecond"),L=j.diff(F,"millisecond");V=Math.round(L/K*100)}return P.jsxs("div",{className:"w-32",children:[P.jsx("div",{className:"flex justify-between text-sm mb-1",children:P.jsxs("span",{children:[V,"%"]})}),P.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2",children:P.jsx("div",{className:"bg-blue-600 h-2 rounded-full transition-all duration-300",style:{width:`${V}%`}})})]})}},{title:"参与人数",dataIndex:"userCount",key:"userCount",width:75,render:R=>`${R} 人`},{title:"已完成人数",dataIndex:"completedUsers",key:"completedUsers",width:75,render:R=>`${R} 人`},{title:"合格率",dataIndex:"passRate",key:"passRate",width:75,render:R=>`${R}%`},{title:"优秀率",dataIndex:"excellentRate",key:"excellentRate",width:75,render:R=>`${R}%`},{title:"创建时间",dataIndex:"createdAt",key:"createdAt",width:110,render:R=>si(R)},{title:P.jsx("div",{style:{textAlign:"center"},children:"操作"}),key:"action",width:230,render:(R,A)=>P.jsxs($n,{size:"small",children:[P.jsx(kt,{type:"text",size:"small",icon:P.jsx(Gc,{}),onClick:()=>T(A),children:"编辑"}),P.jsx(kt,{type:"text",icon:P.jsx(YI,{}),onClick:()=>N(A.id),size:"small",children:"报表"}),P.jsx(sm,{title:"确定删除该任务吗?",onConfirm:()=>I(A.id),okText:"确定",cancelText:"取消",children:P.jsx(kt,{type:"text",danger:!0,icon:P.jsx(fu,{}),size:"small",children:"删除"})})]})}];return P.jsxs("div",{children:[P.jsxs("div",{className:"flex justify-between items-center mb-6",children:[P.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"考试任务管理"}),P.jsx(kt,{type:"primary",icon:P.jsx(Vd,{}),onClick:_,children:"新增任务"})]}),P.jsx(oi,{columns:k,dataSource:e,rowKey:"id",size:"small",loading:l,scroll:{x:1400},pagination:{pageSize:10,showSizeChanger:!0,showTotal:R=>`共 ${R} 条`,size:"small"}}),P.jsx(Ci,{title:g?"编辑任务":"新增任务",open:u,onOk:D,onCancel:()=>f(!1),width:600,children:P.jsxs(Ht,{form:x,layout:"vertical",children:[P.jsx(Ht.Item,{name:"name",label:"任务名称",rules:[{required:!0,message:"请输入任务名称"}],children:P.jsx(Na,{placeholder:"请输入任务名称"})}),P.jsx(Ht.Item,{name:"subjectId",label:"考试科目",rules:[{required:!0,message:"请选择考试科目"}],children:P.jsx(ea,{placeholder:"请选择考试科目",style:{width:"100%"},showSearch:!0,optionFilterProp:"children",dropdownStyle:{maxHeight:300,overflow:"auto"},virtual:!0,children:r.map(R=>P.jsx(ea.Option,{value:R.id,children:R.name},R.id))})}),P.jsx(Ht.Item,{name:"startAt",label:"开始时间",rules:[{required:!0,message:"请选择开始时间"}],children:P.jsx(wp,{showTime:!0,placeholder:"请选择开始时间",style:{width:"100%"}})}),P.jsx(Ht.Item,{name:"endAt",label:"结束时间",rules:[{required:!0,message:"请选择结束时间"}],children:P.jsx(wp,{showTime:!0,placeholder:"请选择结束时间",style:{width:"100%"}})}),P.jsxs("div",{className:"bg-gray-50 p-4 rounded mb-4",children:[P.jsx("h4",{className:"mb-2 font-medium",children:"任务分配对象"}),P.jsx(Ht.Item,{name:"groupIds",label:"按用户组选择",children:P.jsx(ea,{mode:"multiple",placeholder:"请选择用户组",style:{width:"100%"},optionFilterProp:"children",children:o.map(R=>P.jsxs(ea.Option,{value:R.id,children:[R.name," (",R.memberCount,"人)"]},R.id))})}),P.jsx(Ht.Item,{name:"userIds",label:"按单个用户选择",normalize:R=>Array.isArray(R)?[...R].sort((A,j)=>{var V,K;const F=((V=a.find(L=>L.id===A))==null?void 0:V.name)||"",M=((K=a.find(L=>L.id===j))==null?void 0:K.name)||"";return F.localeCompare(M,"zh-CN")}):R,children:P.jsx(ea,{mode:"multiple",placeholder:"请选择用户",style:{width:"100%"},className:"user-select-scrollable",showSearch:!0,optionLabelProp:"label",filterOption:(R,A)=>{const j=R.toLowerCase();return String((A==null?void 0:A.label)??"").toLowerCase().includes(j)},dropdownStyle:{maxHeight:400,overflow:"auto"},virtual:!0,children:a.map(R=>P.jsxs(ea.Option,{value:R.id,label:R.name,children:[R.name," (",R.phone,")"]},R.id))})}),P.jsxs("div",{className:"mt-2 text-right text-gray-500",children:["实际分配人数(去重后):",P.jsx("span",{className:"font-bold text-blue-600",children:O})," 人"]})]})]})}),P.jsx(Ci,{title:"任务报表",open:m,onCancel:()=>h(!1),onOk:()=>h(!1),okText:"关闭",width:800,children:v&&P.jsxs("div",{children:[P.jsxs("div",{className:"mb-4",children:[P.jsx("h3",{className:"text-lg font-bold",children:v.taskName}),P.jsxs("p",{children:["考试科目:",v.subjectName]}),P.jsxs("p",{children:["参与人数:",v.totalUsers," 人"]}),P.jsxs("p",{children:["完成人数:",v.completedUsers," 人"]}),P.jsxs("p",{children:["平均得分:",v.averageScore.toFixed(2)," 分"]}),P.jsxs("p",{children:["最高得分:",v.topScore," 分"]}),P.jsxs("p",{children:["最低得分:",v.lowestScore," 分"]})]}),P.jsx(oi,{columns:[{title:"姓名",dataIndex:"userName",key:"userName"},{title:"手机号",dataIndex:"userPhone",key:"userPhone"},{title:"得分",dataIndex:"score",key:"score",render:R=>R!==null?`${R} 分`:"未答题"},{title:"得分占比",dataIndex:"scorePercentage",key:"scorePercentage",render:R=>R==null||Number.isNaN(Number(R))?"未答题":`${Math.round(Number(R)*10)/10}%`},{title:"完成时间",dataIndex:"completedAt",key:"completedAt",render:R=>R?si(R):"未答题"}],dataSource:v.details,rowKey:"userId",size:"small",pagination:!1})]})})]})},hrt="modulepreload",prt=function(e){return"/"+e},ML={},DL=function(t,r,n){if(!r||r.length===0)return t();const a=document.getElementsByTagName("link");return Promise.all(r.map(i=>{if(i=prt(i),i in ML)return;ML[i]=!0;const o=i.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!n)for(let u=a.length-1;u>=0;u--){const f=a[u];if(f.href===i&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const c=document.createElement("link");if(c.rel=o?"stylesheet":hrt,o||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),o)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})},vrt=()=>{const[e,t]=d.useState([]),[r,n]=d.useState(!1),[a,i]=d.useState(!1),[o,s]=d.useState(null),[l]=Ht.useForm(),c=async()=>{n(!0);try{const p=await Wu.getAll();t(p.data)}catch{ct.error("获取用户组列表失败")}finally{n(!1)}};d.useEffect(()=>{c()},[]);const u=()=>{s(null),l.resetFields(),i(!0)},f=p=>{if(p.isSystem){ct.warning("系统内置用户组无法修改");return}s(p),l.setFieldsValue({name:p.name,description:p.description}),i(!0)},m=async p=>{try{await Wu.delete(p),ct.success("删除成功"),c()}catch(g){ct.error(g.message||"删除失败")}},h=async()=>{try{const p=await l.validateFields();o?(await Wu.update(o.id,p),ct.success("更新成功")):(await Wu.create(p),ct.success("创建成功")),i(!1),c()}catch(p){ct.error(p.message||"操作失败")}},v=[{title:"组名",dataIndex:"name",key:"name",render:(p,g)=>P.jsxs($n,{children:[p,g.isSystem&&P.jsx(mn,{color:"blue",children:"系统内置"})]})},{title:"描述",dataIndex:"description",key:"description"},{title:"成员数",dataIndex:"memberCount",key:"memberCount",render:p=>P.jsxs($n,{children:[P.jsx($N,{}),p,"人"]})},{title:"创建时间",dataIndex:"createdAt",key:"createdAt",render:p=>si(p)},{title:P.jsx("div",{style:{textAlign:"center"},children:"操作"}),key:"action",render:(p,g)=>P.jsxs($n,{children:[P.jsx(kt,{type:"text",icon:P.jsx(Gc,{}),onClick:()=>f(g),disabled:g.isSystem,children:"编辑"}),!g.isSystem&&P.jsx(sm,{title:"确定删除该用户组吗?",description:"删除后,组内成员将自动解除与该组的关联",onConfirm:()=>m(g.id),okText:"确定",cancelText:"取消",children:P.jsx(kt,{type:"text",danger:!0,icon:P.jsx(fu,{}),children:"删除"})})]})}];return P.jsxs("div",{children:[P.jsx("div",{className:"flex justify-end mb-4",children:P.jsx(kt,{type:"primary",icon:P.jsx(Vd,{}),onClick:u,children:"新增用户组"})}),P.jsx(oi,{columns:v,dataSource:e,rowKey:"id",size:"small",loading:r,pagination:{pageSize:10,size:"small"}}),P.jsx(Ci,{title:o?"编辑用户组":"新增用户组",open:a,onOk:h,onCancel:()=>i(!1),okText:"确定",cancelText:"取消",children:P.jsxs(Ht,{form:l,layout:"vertical",children:[P.jsx(Ht.Item,{name:"name",label:"组名",rules:[{required:!0,message:"请输入组名"},{min:2,max:20,message:"组名长度在2-20个字符之间"}],children:P.jsx(Na,{placeholder:"请输入组名"})}),P.jsx(Ht.Item,{name:"description",label:"描述",children:P.jsx(Na.TextArea,{placeholder:"请输入描述",rows:3})})]})})]})},jL=e=>{switch(e){case"不及格":return"red";case"合格":return"blue";case"优秀":return"green";default:return"default"}},grt=()=>{const[e,t]=d.useState([]),[r,n]=d.useState([]),[a,i]=d.useState(!1),[o,s]=d.useState(!1),[l,c]=d.useState(null),[u,f]=d.useState(new Set),[m]=Ht.useForm(),[h,v]=d.useState({current:1,pageSize:10,total:0,size:"small"}),[p,g]=d.useState(""),[y,x]=d.useState(null),[b,S]=d.useState([]),[w,E]=d.useState(!1),[C,O]=d.useState({current:1,pageSize:5,total:0,size:"small"}),[_,T]=d.useState(!1),[I,N]=d.useState(null),[D,k]=d.useState(!1),R=async(q=1,ne=10,he="")=>{var xe;i(!0);try{const ye=new URL("/admin/users",window.location.origin);ye.searchParams.set("page",q.toString()),ye.searchParams.set("limit",ne.toString()),he&&ye.searchParams.set("keyword",he);const pe=await At.get(ye.pathname+ye.search);t(pe.data),v({current:q,pageSize:ne,total:((xe=pe.pagination)==null?void 0:xe.total)||pe.data.length,size:"small"})}catch(ye){ct.error("获取用户列表失败"),console.error("获取用户列表失败:",ye)}finally{i(!1)}},A=async()=>{try{const ne=(await Wu.getAll()).data||[];return n(ne),ne}catch{return console.error("获取用户组失败"),[]}};d.useEffect(()=>{R(),A()},[]);const j=q=>{R(q.current,q.pageSize,p)},F=()=>{R(1,h.pageSize,p)},M=q=>{g(q.target.value)},V=async()=>{const q=await A();c(null),m.resetFields();const ne=q.filter(he=>he.isSystem).map(he=>he.id);ne.length&&m.setFieldsValue({groupIds:ne}),s(!0)},K=async q=>{var ne;await A(),c(q),m.setFieldsValue({name:q.name,phone:q.phone,password:q.password,groupIds:((ne=q.groups)==null?void 0:ne.map(he=>he.id))||[]}),s(!0)},L=async q=>{try{await At.delete("/admin/users",{data:{userId:q}}),ct.success("删除成功"),R(h.current,h.pageSize)}catch(ne){ct.error("删除失败"),console.error("删除用户失败:",ne)}},B=async()=>{var q,ne;try{const he=await m.validateFields();l?(await At.put(`/admin/users/${l.id}`,he),ct.success("更新成功")):(await At.post("/admin/users",he),ct.success("创建成功")),s(!1),R(h.current,h.pageSize,p)}catch(he){let xe=l?"更新失败":"创建失败";(ne=(q=he.response)==null?void 0:q.data)!=null&&ne.message?xe=he.response.data.message:he.message&&(xe=he.message),ct.error(xe),console.error("保存用户失败:",he)}},W=async()=>{try{const ne=(await At.get("/admin/users/export")).data,he=await DL(()=>Promise.resolve().then(()=>TL),void 0),xe=he.utils.json_to_sheet(ne),ye=he.utils.book_new();he.utils.book_append_sheet(ye,xe,"用户列表"),he.writeFile(ye,"用户列表.xlsx"),ct.success("导出成功")}catch(q){ct.error("导出失败"),console.error("导出用户失败:",q)}},H=async q=>{try{const ne=await DL(()=>Promise.resolve().then(()=>TL),void 0),he=await q.arrayBuffer(),xe=ne.read(he),ye=xe.SheetNames[0],pe=xe.Sheets[ye],be=ne.utils.sheet_to_json(pe),_e=new FormData,$e=new Blob([JSON.stringify(be)],{type:"application/json"});_e.append("file",$e,"users.json");const Be=await At.post("/admin/users/import",_e,{headers:{"Content-Type":"multipart/form-data"}});ct.success(`导入成功,共导入 ${Be.data.imported} 条数据`),R()}catch(ne){ct.error("导入失败"),console.error("导入用户失败:",ne)}return!1},U=q=>{const ne=new Set(u);ne.has(q)?ne.delete(q):ne.add(q),f(ne)},X=async(q,ne=1,he=5)=>{var xe;E(!0);try{const ye=await At.get(`/admin/users/${q}/records?page=${ne}&limit=${he}`);S(ye.data),O({current:ne,pageSize:he,total:((xe=ye.pagination)==null?void 0:xe.total)||ye.data.length,size:"small"})}catch(ye){ct.error("获取答题记录失败"),console.error("获取答题记录失败:",ye)}finally{E(!1)}},Y=q=>{y&&X(y.id,q.current,q.pageSize)},G=q=>{x(q),O({...C,current:1}),X(q.id,1,C.pageSize)},Q=async q=>{k(!0);try{const he=(await At.get(`/admin/quiz/records/detail/${q}`)).data;return N(he),he}catch(ne){return ct.error("获取记录详情失败"),console.error("获取记录详情失败:",ne),null}finally{k(!1)}},J=async q=>{await Q(q)&&T(!0)},z=()=>{T(!1),N(null)},fe=[{title:"姓名",dataIndex:"name",key:"name"},{title:"手机号",dataIndex:"phone",key:"phone"},{title:"用户组",dataIndex:"groups",key:"groups",render:q=>P.jsx($n,{size:[0,4],wrap:!0,children:q==null?void 0:q.map(ne=>P.jsx(mn,{color:ne.isSystem?"blue":"default",children:ne.name},ne.id))})},{title:"密码",dataIndex:"password",key:"password",render:(q,ne)=>P.jsxs($n,{children:[P.jsx("span",{children:u.has(ne.id)?q:"••••••"}),P.jsx(kt,{type:"text",icon:u.has(ne.id)?P.jsx(wU,{}):P.jsx(Pv,{}),onClick:()=>U(ne.id),size:"small"})]})},{title:"参加考试次数",dataIndex:"examCount",key:"examCount",render:q=>q||0},{title:"最后一次考试时间",dataIndex:"lastExamTime",key:"lastExamTime",render:q=>q?si(q,{includeSeconds:!0}):"无"},{title:"注册时间",dataIndex:"createdAt",key:"createdAt",render:q=>si(q,{includeSeconds:!0})},{title:P.jsx("div",{style:{textAlign:"center"},children:"操作"}),key:"action",render:(q,ne)=>P.jsxs($n,{children:[P.jsx(kt,{type:"text",icon:P.jsx(Gc,{}),onClick:()=>K(ne),children:"编辑"}),P.jsx(kt,{type:"text",onClick:()=>G(ne),children:"答题记录"}),P.jsx(sm,{title:"确定删除该用户吗?",onConfirm:()=>L(ne.id),okText:"确定",cancelText:"取消",children:P.jsx(kt,{type:"text",danger:!0,icon:P.jsx(fu,{}),children:"删除"})})]})}],te={accept:".xlsx,.xls",showUploadList:!1,beforeUpload:H},re=()=>P.jsxs("div",{children:[P.jsx("div",{className:"mb-6",children:P.jsxs("div",{className:"flex justify-between items-center",children:[P.jsx(Na,{placeholder:"按姓名搜索",value:p,onChange:M,onPressEnter:F,style:{width:200}}),P.jsxs($n,{children:[P.jsx(kt,{icon:P.jsx(r4e,{}),onClick:W,children:"导出"}),P.jsx(vN,{...te,children:P.jsx(kt,{icon:P.jsx(eG,{}),children:"导入"})}),P.jsx(kt,{type:"primary",icon:P.jsx(Vd,{}),onClick:V,children:"新增用户"})]})]})}),P.jsx(oi,{columns:fe,dataSource:e,rowKey:"id",size:"small",loading:a,pagination:h,onChange:j}),y&&P.jsxs("div",{className:"mt-6",children:[P.jsxs("h2",{className:"text-xl font-semibold text-gray-800 mb-4",children:[y.name,"的答题记录",P.jsx(kt,{type:"text",onClick:()=>x(null),className:"ml-4",children:"关闭"})]}),P.jsx(oi,{columns:[{title:"考试科目",dataIndex:"subjectName",key:"subjectName",render:q=>q||"无科目"},{title:"考试任务",dataIndex:"taskName",key:"taskName",render:q=>q||"无任务"},{title:"总分",dataIndex:"totalScore",key:"totalScore",render:q=>q||0},{title:"状态",dataIndex:"status",key:"status",render:q=>{const ne=jL(q);return P.jsx(mn,{color:ne,children:q})}},{title:"得分",dataIndex:"obtainedScore",key:"obtainedScore",render:(q,ne)=>{const he=(q??ne.totalScore)||0,xe=ne.totalScore||0;return P.jsx("span",{className:`font-medium ${he>=xe*.6?"text-green-600":"text-red-600"}`,children:he})}},{title:"得分率",dataIndex:"scoreRate",key:"scoreRate",render:(q,ne)=>`${(typeof ne.scorePercentage=="number"?ne.scorePercentage:0).toFixed(1)}%`},{title:"考试时间",dataIndex:"createdAt",key:"createdAt",render:q=>si(q,{includeSeconds:!0})}],dataSource:b,rowKey:"id",size:"small",loading:w,pagination:C,onChange:Y,scroll:{x:"max-content"},onRow:q=>({onClick:()=>J(q.id),style:{cursor:"pointer"}})})]}),P.jsx(Ci,{title:l?"编辑用户":"新增用户",open:o,onOk:B,onCancel:()=>s(!1),okText:"确定",cancelText:"取消",children:P.jsxs(Ht,{form:m,layout:"vertical",children:[P.jsx(Ht.Item,{name:"name",label:"姓名",rules:[{required:!0,message:"请输入姓名"}],children:P.jsx(Na,{placeholder:"请输入姓名"})}),P.jsx(Ht.Item,{name:"phone",label:"手机号",rules:[{required:!0,message:"请输入手机号"}],children:P.jsx(Na,{placeholder:"请输入手机号"})}),P.jsx(Ht.Item,{name:"password",label:"密码",rules:[{required:!0,message:"请输入密码"}],children:P.jsx(Na.Password,{placeholder:"请输入密码"})}),P.jsx(Ht.Item,{name:"groupIds",label:"所属用户组",children:P.jsx(ea,{mode:"multiple",placeholder:"请选择用户组",optionFilterProp:"children",children:r.map(q=>P.jsx(ea.Option,{value:q.id,disabled:q.isSystem,children:q.name},q.id))})})]})}),P.jsx(Ci,{title:"答题记录详情",open:_,onCancel:z,footer:null,width:"90vw",style:{maxWidth:1100},loading:D,bodyStyle:{maxHeight:"75vh",overflowY:"auto"},children:I&&(()=>{const q=I.record,ne=I.answers||[],he=(q==null?void 0:q.totalScore)??0,xe=typeof(q==null?void 0:q.scorePercentage)=="number"?q.scorePercentage:0,ye=be=>Array.isArray(be)?be.join(", "):String(be??"").trim(),pe=be=>be==="single"?"单选题":be==="multiple"?"多选题":be==="judgment"?"判断题":be==="text"?"文字题":be||"";return P.jsxs("div",{children:[P.jsx(GI,{size:"small",bordered:!0,column:{xs:1,sm:2,md:3},items:[{key:"user",label:"用户",children:(y==null?void 0:y.name)||(q==null?void 0:q.userId)||"-"},{key:"subject",label:"科目",children:(q==null?void 0:q.subjectName)||"无科目"},{key:"task",label:"任务",children:(q==null?void 0:q.taskName)||"无任务"},{key:"totalScore",label:"得分",children:he},{key:"scoreRate",label:"得分率",children:`${xe.toFixed(1)}%`},{key:"status",label:"状态",children:P.jsx(mn,{color:jL(q==null?void 0:q.status),children:(q==null?void 0:q.status)||"-"})},{key:"time",label:"考试时间",span:3,children:q!=null&&q.createdAt?si(q.createdAt,{includeSeconds:!0}):"-"}]}),P.jsx(Q1e,{orientation:"left",style:{marginTop:16},children:"题目详情"}),P.jsxs("div",{className:"space-y-4",children:[ne.map((be,_e)=>{const $e=Number(be.questionScore??0),Be=$e===0,Fe=ye(be.correctAnswer),nt=ye(be.userAnswer),qe=be.questionType!=="text"&&Fe!=="",Ge=String(be.questionAnalysis??"").trim()!=="",Le=!!be.isCorrect;return P.jsxs("div",{className:"p-4 border rounded bg-white",children:[P.jsxs("div",{className:"flex flex-wrap items-center gap-2 justify-between",children:[P.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[P.jsxs("span",{className:"font-medium",children:["第 ",_e+1," 题"]}),P.jsx(mn,{color:"blue",children:pe(be.questionType)}),P.jsxs(mn,{children:[$e," 分"]}),P.jsx(mn,{color:Le?"green":"red",children:Le?"答对":"答错"}),Be?P.jsx(mn,{color:"default",children:"0分题默认正确"}):null]}),P.jsxs("div",{className:"text-sm text-gray-600",children:["得分:",Number(be.score??0)]})]}),P.jsxs("div",{className:"mt-3",children:[P.jsxs(kv.Paragraph,{style:{marginBottom:8},children:[P.jsx("span",{className:"font-medium",children:"题目:"}),P.jsx("span",{className:"whitespace-pre-wrap",children:be.questionContent||""})]}),P.jsxs("div",{className:"grid gap-2",style:{gridTemplateColumns:"repeat(auto-fit, minmax(280px, 1fr))"},children:[P.jsxs("div",{children:[P.jsx("div",{className:"text-sm text-gray-600 mb-1",children:"你的答案"}),P.jsx("div",{className:"whitespace-pre-wrap font-medium",children:nt||"未作答"})]}),P.jsxs("div",{children:[P.jsx("div",{className:"text-sm text-gray-600 mb-1",children:"正确答案"}),P.jsx("div",{className:"whitespace-pre-wrap",children:qe?Fe:be.questionType==="text"?"(文字题无标准答案)":Fe||""})]})]}),Ge?P.jsxs("div",{className:"mt-3",children:[P.jsx("div",{className:"text-sm text-gray-600 mb-1",children:"解析"}),P.jsx("div",{className:"whitespace-pre-wrap",children:String(be.questionAnalysis??"")})]}):null]})]},be.id)}),ne.length===0?P.jsx("div",{className:"text-center py-10 text-gray-500",children:"暂无题目详情"}):null]})]})})()})]});return P.jsxs("div",{children:[P.jsx("h1",{className:"text-2xl font-bold text-gray-800 mb-4",children:"用户管理"}),P.jsx(DS,{defaultActiveKey:"1",items:[{key:"1",label:"用户列表",children:P.jsx(re,{})},{key:"2",label:"用户组管理",children:P.jsx(vrt,{})}]})]})},yrt="/assets/正方形LOGO-c56db41d.svg",{Header:xrt,Sider:brt,Content:Srt,Footer:wrt}=Rl,Crt=({children:e})=>{const t=Xo(),r=H0(),{admin:n,clearAdmin:a}=gN(),[i,o]=d.useState(!1),s=[{key:"/admin/dashboard",icon:P.jsx(GRe,{}),label:"仪表盘"},{key:"/admin/questions",icon:P.jsx(xU,{}),label:"题库管理"},{key:"/admin/categories",icon:P.jsx(_4e,{}),label:"题目类别"},{key:"/admin/subjects",icon:P.jsx(wc,{}),label:"考试科目"},{key:"/admin/tasks",icon:P.jsx(FS,{}),label:"考试任务"},{key:"/admin/users",icon:P.jsx($N,{}),label:"用户管理"},{key:"/admin/statistics",icon:P.jsx(FRe,{}),label:"数据统计"},{key:"/admin/backup",icon:P.jsx(JK,{}),label:"数据备份"}],l=({key:f})=>{t(f)},c=()=>{a(),ct.success("退出登录成功"),t("/admin/login")},u=[{key:"logout",icon:P.jsx(d4e,{}),label:"退出登录",onClick:c}];return P.jsxs(Rl,{style:{minHeight:"100vh"},children:[P.jsxs(brt,{trigger:null,collapsible:!0,collapsed:i,theme:"light",className:"shadow-md z-10 fixed left-0 top-0 h-screen overflow-y-auto",width:240,children:[P.jsx("div",{className:"h-16 flex items-center justify-center border-b border-gray-100",children:i?P.jsx("img",{src:yrt,alt:"正方形LOGO",style:{width:"24px",height:"32px"}}):P.jsx("img",{src:iw,alt:"主要LOGO",style:{width:"180px",height:"72px"}})}),P.jsx(wI,{mode:"inline",selectedKeys:[r.pathname],items:s,onClick:l,style:{borderRight:0},className:"py-4"})]}),P.jsxs(Rl,{className:"bg-gray-50/50 ml-0 transition-all duration-300",style:{marginLeft:i?80:240},children:[P.jsxs(xrt,{className:"bg-white shadow-sm flex justify-between items-center px-6 h-16 sticky top-0 z-10",children:[P.jsx(kt,{type:"text",icon:i?P.jsx(S4e,{}):P.jsx(v4e,{}),onClick:()=>o(!i),className:"text-lg w-10 h-10 flex items-center justify-center"}),P.jsxs("div",{className:"flex items-center gap-4",children:[P.jsxs("span",{className:"text-gray-600 hidden sm:block",children:["欢迎您,",n==null?void 0:n.username]}),P.jsx(XI,{menu:{items:u},placement:"bottomRight",arrow:!0,children:P.jsx(Ape,{icon:P.jsx(L4e,{}),className:"cursor-pointer bg-mars-100 text-mars-600 hover:bg-mars-200 transition-colors"})})]})]}),P.jsx(Srt,{className:"m-6 flex flex-col pb-20",children:e}),P.jsx(wrt,{className:"bg-white text-center py-1.5 px-2 text-gray-400 text-xs flex flex-col md:flex-row justify-center items-center fixed bottom-0 left-0 right-0 shadow-sm",style:{marginLeft:i?80:240,transition:"margin-left 0.3s"},children:P.jsxs("div",{className:"whitespace-nowrap",children:["© ",new Date().getFullYear()," Boonlive OA System. All Rights Reserved."]})})]})]})},Ert=({children:e})=>{const{isAuthenticated:t}=gN();return t?P.jsx(P.Fragment,{children:e}):P.jsx(F$,{to:"/admin/login"})};function $rt(){return P.jsx("div",{className:"min-h-screen bg-gray-50",children:P.jsxs(MA,{children:[P.jsx(bn,{path:"/",element:P.jsx(xRe,{})}),P.jsx(bn,{path:"/subjects",element:P.jsx(Q4e,{})}),P.jsx(bn,{path:"/tasks",element:P.jsx(Z4e,{})}),P.jsx(bn,{path:"/quiz",element:P.jsx(U4e,{})}),P.jsx(bn,{path:"/result/:id",element:P.jsx(Y4e,{})}),P.jsx(bn,{path:"/admin/login",element:P.jsx(aAe,{})}),P.jsx(bn,{path:"/admin/*",element:P.jsx(Ert,{children:P.jsx(Crt,{children:P.jsxs(MA,{children:[P.jsx(bn,{path:"dashboard",element:P.jsx(ZWe,{})}),P.jsx(bn,{path:"questions",element:P.jsx(NL,{})}),P.jsx(bn,{path:"question-bank",element:P.jsx(NL,{})}),P.jsx(bn,{path:"questions/text-import",element:P.jsx(ort,{})}),P.jsx(bn,{path:"categories",element:P.jsx(frt,{})}),P.jsx(bn,{path:"subjects",element:P.jsx(mrt,{})}),P.jsx(bn,{path:"tasks",element:P.jsx(AL,{})}),P.jsx(bn,{path:"exam-tasks",element:P.jsx(AL,{})}),P.jsx(bn,{path:"users",element:P.jsx(grt,{})}),P.jsx(bn,{path:"config",element:P.jsx(srt,{})}),P.jsx(bn,{path:"statistics",element:P.jsx(urt,{})}),P.jsx(bn,{path:"backup",element:P.jsx(drt,{})}),P.jsx(bn,{path:"*",element:P.jsx(F$,{to:"/admin/dashboard"})})]})})})}),P.jsx(bn,{path:"*",element:P.jsx(F$,{to:"/"})})]})})}Zn.locale("zh-cn");VE.createRoot(document.getElementById("root")).render(P.jsx(ve.StrictMode,{children:P.jsx(Mne,{children:P.jsx(Dd,{locale:SNe,theme:{token:{colorPrimary:"#008C8C",colorInfo:"#008C8C",colorLink:"#008C8C",borderRadius:8,fontFamily:"Inter, ui-sans-serif, system-ui, -apple-system, sans-serif"},components:{Button:{controlHeight:40,controlHeightLG:48,borderRadius:8,primaryShadow:"0 2px 0 rgba(0, 140, 140, 0.1)"},Input:{controlHeight:40,controlHeightLG:48,borderRadius:8},Select:{controlHeight:40,controlHeightLG:48,borderRadius:8},Card:{borderRadiusLG:12,boxShadowTertiary:"0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02)"},Layout:{headerBg:"#ffffff",siderBg:"#ffffff"}}},children:P.jsx(CNe,{children:P.jsx(ENe,{children:P.jsx($Ne,{children:P.jsx($rt,{})})})})})})})); diff --git a/deploy_bundle/web/assets/index-46911e80.css b/deploy_bundle/web/assets/index-46911e80.css deleted file mode 100644 index 5ceb206..0000000 --- a/deploy_bundle/web/assets/index-46911e80.css +++ /dev/null @@ -1 +0,0 @@ -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)}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 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}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}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,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}[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}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,-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;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}body{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"cv11","ss01"}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-10{z-index:10}.z-30{z-index:30}.col-span-2{grid-column:span 2 / span 2}.m-0{margin:0}.m-6{margin:1.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.\!mb-0{margin-bottom:0!important}.\!mb-0\.5{margin-bottom:.125rem!important}.-mt-4{margin-top:-1rem}.mb-0{margin-bottom:0}.mb-0\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mt-0\.5{margin-top:.125rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-auto{height:auto}.h-full{height:100%}.h-screen{height:100vh}.min-h-\[280px\]{min-height:280px}.min-h-\[400px\]{min-height:400px}.min-h-\[500px\]{min-height:500px}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-2{width:.5rem}.w-20{width:5rem}.w-3{width:.75rem}.w-32{width:8rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-9{width:2.25rem}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.-translate-x-4{--tw-translate-x: -1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-4{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l-4{border-left-width:4px}.border-t{border-top-width:1px}.border-t-4{border-top-width:4px}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-\[\#00897B\]{--tw-border-opacity: 1;border-color:rgb(0 137 123 / var(--tw-border-opacity, 1))}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-green-200{--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1))}.border-mars-500{--tw-border-opacity: 1;border-color:rgb(0 140 140 / var(--tw-border-opacity, 1))}.border-mars-600{--tw-border-opacity: 1;border-color:rgb(0 102 102 / var(--tw-border-opacity, 1))}.border-orange-200{--tw-border-opacity: 1;border-color:rgb(254 215 170 / var(--tw-border-opacity, 1))}.border-purple-200{--tw-border-opacity: 1;border-color:rgb(233 213 255 / var(--tw-border-opacity, 1))}.border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-l-blue-400{--tw-border-opacity: 1;border-left-color:rgb(96 165 250 / var(--tw-border-opacity, 1))}.border-l-gray-400{--tw-border-opacity: 1;border-left-color:rgb(156 163 175 / var(--tw-border-opacity, 1))}.border-l-green-500{--tw-border-opacity: 1;border-left-color:rgb(34 197 94 / var(--tw-border-opacity, 1))}.border-t-mars-500{--tw-border-opacity: 1;border-top-color:rgb(0 140 140 / var(--tw-border-opacity, 1))}.bg-\[\#00796B\]{--tw-bg-opacity: 1;background-color:rgb(0 121 107 / var(--tw-bg-opacity, 1))}.bg-\[\#00897B\]{--tw-bg-opacity: 1;background-color:rgb(0 137 123 / var(--tw-bg-opacity, 1))}.bg-\[\#E0F2F1\]{--tw-bg-opacity: 1;background-color:rgb(224 242 241 / var(--tw-bg-opacity, 1))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-50\/50{background-color:#f9fafb80}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.bg-green-50\/50{background-color:#f0fdf480}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-mars-100{--tw-bg-opacity: 1;background-color:rgb(204 245 245 / var(--tw-bg-opacity, 1))}.bg-mars-500{--tw-bg-opacity: 1;background-color:rgb(0 140 140 / var(--tw-bg-opacity, 1))}.bg-orange-100{--tw-bg-opacity: 1;background-color:rgb(255 237 213 / var(--tw-bg-opacity, 1))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity, 1))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-red-50\/50{background-color:#fef2f280}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.from-mars-50{--tw-gradient-from: #f0fcfc var(--tw-gradient-from-position);--tw-gradient-to: rgb(240 252 252 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-mars-50\/30{--tw-gradient-from: rgb(240 252 252 / .3) var(--tw-gradient-from-position);--tw-gradient-to: rgb(240 252 252 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-white{--tw-gradient-to: #fff var(--tw-gradient-to-position)}.fill-gray-700{fill:#374151}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pb-20{padding-bottom:5rem}.pb-24{padding-bottom:6rem}.pl-3{padding-left:.75rem}.pt-1\.5{padding-top:.375rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.\!text-base{font-size:1rem!important;line-height:1.5rem!important}.\!text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.\!text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[10px\]{font-size:10px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-tight{line-height:1.25}.\!text-gray-700{--tw-text-opacity: 1 !important;color:rgb(55 65 81 / var(--tw-text-opacity, 1))!important}.text-\[\#00695C\]{--tw-text-opacity: 1;color:rgb(0 105 92 / var(--tw-text-opacity, 1))}.text-\[\#00897B\]{--tw-text-opacity: 1;color:rgb(0 137 123 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.text-mars-400{--tw-text-opacity: 1;color:rgb(0 163 163 / var(--tw-text-opacity, 1))}.text-mars-600{--tw-text-opacity: 1;color:rgb(0 102 102 / var(--tw-text-opacity, 1))}.text-orange-800{--tw-text-opacity: 1;color:rgb(154 52 18 / var(--tw-text-opacity, 1))}.text-purple-800{--tw-text-opacity: 1;color:rgb(107 33 168 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.shadow-\[0_-2px_10px_rgba\(0\,0\,0\,0\.05\)\]{--tw-shadow: 0 -2px 10px rgba(0,0,0,.05);--tw-shadow-colored: 0 -2px 10px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@media (max-width: 768px){.ant-form-item-label{padding-bottom:4px}.ant-table{font-size:13px}}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:#9ca3af}.fade-in{animation:fadeIn .4s cubic-bezier(.16,1,.3,1)}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.container{max-width:1200px;margin:0 auto;padding:0 24px}@media (max-width: 768px){.container{padding:0}}.user-select-scrollable .ant-select-selector{max-height:120px;overflow-y:auto!important}.text-mars{color:#008c8c}.bg-mars{background-color:#008c8c}.qt-text-import-th-content,.qt-text-import-td-content{width:850px!important;min-width:850px!important;max-width:850px!important}.qt-text-import-th-analysis,.qt-text-import-td-analysis{width:320px!important;min-width:320px!important;max-width:320px!important}@media (max-width: 1200px){.qt-text-import-th-content,.qt-text-import-td-content{width:600px!important;min-width:600px!important;max-width:600px!important}.qt-text-import-th-analysis,.qt-text-import-td-analysis{width:260px!important;min-width:260px!important;max-width:260px!important}}@media (max-width: 768px){.qt-text-import-th-content,.qt-text-import-td-content{width:360px!important;min-width:360px!important;max-width:360px!important}.qt-text-import-th-analysis,.qt-text-import-td-analysis{width:220px!important;min-width:220px!important;max-width:220px!important}}@media (max-width: 480px){.qt-text-import-th-content,.qt-text-import-td-content{width:260px!important;min-width:260px!important;max-width:260px!important}.qt-text-import-th-analysis,.qt-text-import-td-analysis{width:180px!important;min-width:180px!important;max-width:180px!important}}.qc-question-count-td{text-align:center!important;vertical-align:middle;padding:8px 12px!important}.qc-question-count{display:inline-flex;align-items:center;justify-content:center;min-width:90px;margin:0 auto;text-align:center}.hover\:border-\[\#00897B\]:hover{--tw-border-opacity: 1;border-color:rgb(0 137 123 / var(--tw-border-opacity, 1))}.hover\:border-gray-200:hover{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.hover\:border-mars-500:hover{--tw-border-opacity: 1;border-color:rgb(0 140 140 / var(--tw-border-opacity, 1))}.hover\:border-l-gray-500:hover{--tw-border-opacity: 1;border-left-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}.hover\:border-l-green-600:hover{--tw-border-opacity: 1;border-left-color:rgb(22 163 74 / var(--tw-border-opacity, 1))}.hover\:\!bg-mars-600:hover{--tw-bg-opacity: 1 !important;background-color:rgb(0 102 102 / var(--tw-bg-opacity, 1))!important}.hover\:bg-\[\#00796B\]:hover{--tw-bg-opacity: 1;background-color:rgb(0 121 107 / var(--tw-bg-opacity, 1))}.hover\:bg-mars-200:hover{--tw-bg-opacity: 1;background-color:rgb(153 235 235 / var(--tw-bg-opacity, 1))}.hover\:bg-mars-600:hover{--tw-bg-opacity: 1;background-color:rgb(0 102 102 / var(--tw-bg-opacity, 1))}.hover\:bg-teal-50:hover{--tw-bg-opacity: 1;background-color:rgb(240 253 250 / var(--tw-bg-opacity, 1))}.hover\:text-\[\#00897B\]:hover{--tw-text-opacity: 1;color:rgb(0 137 123 / var(--tw-text-opacity, 1))}.hover\:text-mars-500:hover{--tw-text-opacity: 1;color:rgb(0 140 140 / var(--tw-text-opacity, 1))}.hover\:text-mars-800:hover{--tw-text-opacity: 1;color:rgb(0 51 51 / var(--tw-text-opacity, 1))}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:border-\[\#00897B\]:focus{--tw-border-opacity: 1;border-color:rgb(0 137 123 / var(--tw-border-opacity, 1))}.focus\:ring-\[\#00897B\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 137 123 / var(--tw-ring-opacity, 1))}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-\[0\.99\]:active{--tw-scale-x: .99;--tw-scale-y: .99;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width: 640px){.sm\:block{display:block}}@media (min-width: 768px){.md\:mb-0{margin-bottom:0}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:p-8{padding:2rem}} diff --git a/deploy_bundle/web/assets/index-509f66ca.js b/deploy_bundle/web/assets/index-509f66ca.js deleted file mode 100644 index 7e2aa5b..0000000 --- a/deploy_bundle/web/assets/index-509f66ca.js +++ /dev/null @@ -1,681 +0,0 @@ -var pee=Object.defineProperty;var vee=(e,t,r)=>t in e?pee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var bC=(e,t,r)=>(vee(e,typeof t!="symbol"?t+"":t,r),r);function FL(e,t){for(var r=0;rn[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=r(a);fetch(a.href,i)}})();var ru=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ia(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var LL={exports:{}},yb={},BL={exports:{}},vr={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var nv=Symbol.for("react.element"),gee=Symbol.for("react.portal"),yee=Symbol.for("react.fragment"),xee=Symbol.for("react.strict_mode"),bee=Symbol.for("react.profiler"),See=Symbol.for("react.provider"),wee=Symbol.for("react.context"),Cee=Symbol.for("react.forward_ref"),Eee=Symbol.for("react.suspense"),$ee=Symbol.for("react.memo"),_ee=Symbol.for("react.lazy"),x4=Symbol.iterator;function Oee(e){return e===null||typeof e!="object"?null:(e=x4&&e[x4]||e["@@iterator"],typeof e=="function"?e:null)}var zL={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},HL=Object.assign,WL={};function j0(e,t,r){this.props=e,this.context=t,this.refs=WL,this.updater=r||zL}j0.prototype.isReactComponent={};j0.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};j0.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function VL(){}VL.prototype=j0.prototype;function TT(e,t,r){this.props=e,this.context=t,this.refs=WL,this.updater=r||zL}var PT=TT.prototype=new VL;PT.constructor=TT;HL(PT,j0.prototype);PT.isPureReactComponent=!0;var b4=Array.isArray,UL=Object.prototype.hasOwnProperty,IT={current:null},KL={key:!0,ref:!0,__self:!0,__source:!0};function GL(e,t,r){var n,a={},i=null,o=null;if(t!=null)for(n in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)UL.call(t,n)&&!KL.hasOwnProperty(n)&&(a[n]=t[n]);var s=arguments.length-2;if(s===1)a.children=r;else if(1>>1,L=F[K];if(0>>1;Ka(z,V))Ua(X,z)?(F[K]=X,F[U]=V,K=U):(F[K]=z,F[W]=V,K=W);else if(Ua(X,V))F[K]=X,F[U]=V,K=U;else break e}}return M}function a(F,M){var V=F.sortIndex-M.sortIndex;return V!==0?V:F.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],c=[],u=1,f=null,m=3,h=!1,p=!1,g=!1,v=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(F){for(var M=r(c);M!==null;){if(M.callback===null)n(c);else if(M.startTime<=F)n(c),M.sortIndex=M.expirationTime,t(l,M);else break;M=r(c)}}function S(F){if(g=!1,b(F),!p)if(r(l)!==null)p=!0,A(w);else{var M=r(c);M!==null&&j(S,M.startTime-F)}}function w(F,M){p=!1,g&&(g=!1,y(O),O=-1),h=!0;var V=m;try{for(b(M),f=r(l);f!==null&&(!(f.expirationTime>M)||F&&!I());){var K=f.callback;if(typeof K=="function"){f.callback=null,m=f.priorityLevel;var L=K(f.expirationTime<=M);M=e.unstable_now(),typeof L=="function"?f.callback=L:f===r(l)&&n(l),b(M)}else n(l);f=r(l)}if(f!==null)var B=!0;else{var W=r(c);W!==null&&j(S,W.startTime-M),B=!1}return B}finally{f=null,m=V,h=!1}}var E=!1,C=null,O=-1,_=5,P=-1;function I(){return!(e.unstable_now()-P<_)}function N(){if(C!==null){var F=e.unstable_now();P=F;var M=!0;try{M=C(!0,F)}finally{M?D():(E=!1,C=null)}}else E=!1}var D;if(typeof x=="function")D=function(){x(N)};else if(typeof MessageChannel<"u"){var k=new MessageChannel,R=k.port2;k.port1.onmessage=N,D=function(){R.postMessage(null)}}else D=function(){v(N,0)};function A(F){C=F,E||(E=!0,D())}function j(F,M){O=v(function(){F(e.unstable_now())},M)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(F){F.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,A(w))},e.unstable_forceFrameRate=function(F){0>F||125K?(F.sortIndex=V,t(c,F),r(l)===null&&F===r(c)&&(g?(y(O),O=-1):g=!0,j(S,V-K))):(F.sortIndex=L,t(l,F),p||h||(p=!0,A(w))),F},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(F){var M=m;return function(){var V=m;m=M;try{return F.apply(this,arguments)}finally{m=V}}}})(ZL);QL.exports=ZL;var Fee=QL.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Lee=d,uo=Fee;function gt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),KE=Object.prototype.hasOwnProperty,Bee=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,w4={},C4={};function zee(e){return KE.call(C4,e)?!0:KE.call(w4,e)?!1:Bee.test(e)?C4[e]=!0:(w4[e]=!0,!1)}function Hee(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Wee(e,t,r,n){if(t===null||typeof t>"u"||Hee(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Oi(e,t,r,n,a,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Ka={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Ka[e]=new Oi(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Ka[t]=new Oi(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ka[e]=new Oi(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ka[e]=new Oi(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Ka[e]=new Oi(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Ka[e]=new Oi(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Ka[e]=new Oi(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Ka[e]=new Oi(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Ka[e]=new Oi(e,5,!1,e.toLowerCase(),null,!1,!1)});var kT=/[\-:]([a-z])/g;function RT(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(kT,RT);Ka[t]=new Oi(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(kT,RT);Ka[t]=new Oi(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(kT,RT);Ka[t]=new Oi(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Ka[e]=new Oi(e,1,!1,e.toLowerCase(),null,!1,!1)});Ka.xlinkHref=new Oi("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Ka[e]=new Oi(e,1,!1,e.toLowerCase(),null,!0,!0)});function AT(e,t,r,n){var a=Ka.hasOwnProperty(t)?Ka[t]:null;(a!==null?a.type!==0:n||!(2s||a[o]!==i[s]){var l=` -`+a[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{CC=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?eh(e):""}function Vee(e){switch(e.tag){case 5:return eh(e.type);case 16:return eh("Lazy");case 13:return eh("Suspense");case 19:return eh("SuspenseList");case 0:case 2:case 15:return e=EC(e.type,!1),e;case 11:return e=EC(e.type.render,!1),e;case 1:return e=EC(e.type,!0),e;default:return""}}function YE(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ef:return"Fragment";case Cf:return"Portal";case GE:return"Profiler";case MT:return"StrictMode";case qE:return"Suspense";case XE:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case tB:return(e.displayName||"Context")+".Consumer";case eB:return(e._context.displayName||"Context")+".Provider";case DT:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case jT:return t=e.displayName||null,t!==null?t:YE(e.type)||"Memo";case lc:t=e._payload,e=e._init;try{return YE(e(t))}catch{}}return null}function Uee(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return YE(t);case 8:return t===MT?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Bc(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function nB(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Kee(e){var t=nB(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){n=""+o,i.call(this,o)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function wg(e){e._valueTracker||(e._valueTracker=Kee(e))}function aB(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=nB(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Sx(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function QE(e,t){var r=t.checked;return pn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function $4(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=Bc(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function iB(e,t){t=t.checked,t!=null&&AT(e,"checked",t,!1)}function ZE(e,t){iB(e,t);var r=Bc(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?JE(e,t.type,r):t.hasOwnProperty("defaultValue")&&JE(e,t.type,Bc(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _4(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function JE(e,t,r){(t!=="number"||Sx(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var th=Array.isArray;function Wf(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=Cg.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hh(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var vh={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Gee=["Webkit","ms","Moz","O"];Object.keys(vh).forEach(function(e){Gee.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),vh[t]=vh[e]})});function cB(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||vh.hasOwnProperty(e)&&vh[e]?(""+t).trim():t+"px"}function uB(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=cB(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var qee=pn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function r$(e,t){if(t){if(qee[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(gt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(gt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(gt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(gt(62))}}function n$(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var a$=null;function FT(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var i$=null,Vf=null,Uf=null;function P4(e){if(e=ov(e)){if(typeof i$!="function")throw Error(gt(280));var t=e.stateNode;t&&(t=Cb(t),i$(e.stateNode,e.type,t))}}function dB(e){Vf?Uf?Uf.push(e):Uf=[e]:Vf=e}function fB(){if(Vf){var e=Vf,t=Uf;if(Uf=Vf=null,P4(e),t)for(e=0;e>>=0,e===0?32:31-(ite(e)/ote|0)|0}var Eg=64,$g=4194304;function rh(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function $x(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,i=e.pingedLanes,o=r&268435455;if(o!==0){var s=o&~a;s!==0?n=rh(s):(i&=o,i!==0&&(n=rh(i)))}else o=r&~a,o!==0?n=rh(o):i!==0&&(n=rh(i));if(n===0)return 0;if(t!==0&&t!==n&&!(t&a)&&(a=n&-n,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(n&4&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0r;r++)t.push(e);return t}function av(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-vs(t),e[t]=r}function ute(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0=yh),F4=String.fromCharCode(32),L4=!1;function kB(e,t){switch(e){case"keyup":return Fte.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function RB(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $f=!1;function Bte(e,t){switch(e){case"compositionend":return RB(t);case"keypress":return t.which!==32?null:(L4=!0,F4);case"textInput":return e=t.data,e===F4&&L4?null:e;default:return null}}function zte(e,t){if($f)return e==="compositionend"||!KT&&kB(e,t)?(e=IB(),Hy=WT=pc=null,$f=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=W4(r)}}function jB(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jB(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function FB(){for(var e=window,t=Sx();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Sx(e.document)}return t}function GT(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Yte(e){var t=FB(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&jB(r.ownerDocument.documentElement,r)){if(n!==null&>(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,i=Math.min(n.start,a);n=n.end===void 0?i:Math.min(n.end,a),!e.extend&&i>n&&(a=n,n=i,i=a),a=V4(r,i);var o=V4(r,n);a&&o&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r=document.documentMode,_f=null,d$=null,bh=null,f$=!1;function U4(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;f$||_f==null||_f!==Sx(n)||(n=_f,"selectionStart"in n&>(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),bh&&qh(bh,n)||(bh=n,n=Tx(d$,"onSelect"),0Pf||(e.current=y$[Pf],y$[Pf]=null,Pf--)}function qr(e,t){Pf++,y$[Pf]=e.current,e.current=t}var zc={},ui=au(zc),ji=au(!1),od=zc;function l0(e,t){var r=e.type.contextTypes;if(!r)return zc;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in r)a[i]=t[i];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Fi(e){return e=e.childContextTypes,e!=null}function Ix(){en(ji),en(ui)}function Z4(e,t,r){if(ui.current!==zc)throw Error(gt(168));qr(ui,t),qr(ji,r)}function GB(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(gt(108,Uee(e)||"Unknown",a));return pn({},r,n)}function Nx(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zc,od=ui.current,qr(ui,e),qr(ji,ji.current),!0}function J4(e,t,r){var n=e.stateNode;if(!n)throw Error(gt(169));r?(e=GB(e,t,od),n.__reactInternalMemoizedMergedChildContext=e,en(ji),en(ui),qr(ui,e)):en(ji),qr(ji,r)}var hl=null,Eb=!1,FC=!1;function qB(e){hl===null?hl=[e]:hl.push(e)}function lre(e){Eb=!0,qB(e)}function iu(){if(!FC&&hl!==null){FC=!0;var e=0,t=Dr;try{var r=hl;for(Dr=1;e>=o,a-=o,gl=1<<32-vs(t)+a|r<O?(_=C,C=null):_=C.sibling;var P=m(y,C,b[O],S);if(P===null){C===null&&(C=_);break}e&&C&&P.alternate===null&&t(y,C),x=i(P,x,O),E===null?w=P:E.sibling=P,E=P,C=_}if(O===b.length)return r(y,C),ln&&$u(y,O),w;if(C===null){for(;OO?(_=C,C=null):_=C.sibling;var I=m(y,C,P.value,S);if(I===null){C===null&&(C=_);break}e&&C&&I.alternate===null&&t(y,C),x=i(I,x,O),E===null?w=I:E.sibling=I,E=I,C=_}if(P.done)return r(y,C),ln&&$u(y,O),w;if(C===null){for(;!P.done;O++,P=b.next())P=f(y,P.value,S),P!==null&&(x=i(P,x,O),E===null?w=P:E.sibling=P,E=P);return ln&&$u(y,O),w}for(C=n(y,C);!P.done;O++,P=b.next())P=h(C,y,O,P.value,S),P!==null&&(e&&P.alternate!==null&&C.delete(P.key===null?O:P.key),x=i(P,x,O),E===null?w=P:E.sibling=P,E=P);return e&&C.forEach(function(N){return t(y,N)}),ln&&$u(y,O),w}function v(y,x,b,S){if(typeof b=="object"&&b!==null&&b.type===Ef&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case Sg:e:{for(var w=b.key,E=x;E!==null;){if(E.key===w){if(w=b.type,w===Ef){if(E.tag===7){r(y,E.sibling),x=a(E,b.props.children),x.return=y,y=x;break e}}else if(E.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===lc&&rA(w)===E.type){r(y,E.sibling),x=a(E,b.props),x.ref=km(y,E,b),x.return=y,y=x;break e}r(y,E);break}else t(y,E);E=E.sibling}b.type===Ef?(x=qu(b.props.children,y.mode,S,b.key),x.return=y,y=x):(S=Yy(b.type,b.key,b.props,null,y.mode,S),S.ref=km(y,x,b),S.return=y,y=S)}return o(y);case Cf:e:{for(E=b.key;x!==null;){if(x.key===E)if(x.tag===4&&x.stateNode.containerInfo===b.containerInfo&&x.stateNode.implementation===b.implementation){r(y,x.sibling),x=a(x,b.children||[]),x.return=y,y=x;break e}else{r(y,x);break}else t(y,x);x=x.sibling}x=KC(b,y.mode,S),x.return=y,y=x}return o(y);case lc:return E=b._init,v(y,x,E(b._payload),S)}if(th(b))return p(y,x,b,S);if(Om(b))return g(y,x,b,S);kg(y,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,x!==null&&x.tag===6?(r(y,x.sibling),x=a(x,b),x.return=y,y=x):(r(y,x),x=UC(b,y.mode,S),x.return=y,y=x),o(y)):r(y,x)}return v}var u0=ZB(!0),JB=ZB(!1),Ax=au(null),Mx=null,kf=null,QT=null;function ZT(){QT=kf=Mx=null}function JT(e){var t=Ax.current;en(Ax),e._currentValue=t}function S$(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Gf(e,t){Mx=e,QT=kf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ri=!0),e.firstContext=null)}function zo(e){var t=e._currentValue;if(QT!==e)if(e={context:e,memoizedValue:t,next:null},kf===null){if(Mx===null)throw Error(gt(308));kf=e,Mx.dependencies={lanes:0,firstContext:e}}else kf=kf.next=e;return t}var Du=null;function eP(e){Du===null?Du=[e]:Du.push(e)}function ez(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,eP(t)):(r.next=a.next,a.next=r),t.interleaved=r,Pl(e,n)}function Pl(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var cc=!1;function tP(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function tz(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function wl(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kc(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,wr&2){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,Pl(e,r)}return a=n.interleaved,a===null?(t.next=t,eP(n)):(t.next=a.next,a.next=t),n.interleaved=t,Pl(e,r)}function Vy(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,BT(e,r)}}function nA(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?a=i=o:i=i.next=o,r=r.next}while(r!==null);i===null?a=i=t:i=i.next=t}else a=i=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Dx(e,t,r,n){var a=e.updateQueue;cc=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,s=a.shared.pending;if(s!==null){a.shared.pending=null;var l=s,c=l.next;l.next=null,o===null?i=c:o.next=c,o=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(i!==null){var f=a.baseState;o=0,u=c=l=null,s=i;do{var m=s.lane,h=s.eventTime;if((n&m)===m){u!==null&&(u=u.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,g=s;switch(m=t,h=r,g.tag){case 1:if(p=g.payload,typeof p=="function"){f=p.call(h,f,m);break e}f=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=g.payload,m=typeof p=="function"?p.call(h,f,m):p,m==null)break e;f=pn({},f,m);break e;case 2:cc=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=a.effects,m===null?a.effects=[s]:m.push(s))}else h={eventTime:h,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=h,l=f):u=u.next=h,o|=m;if(s=s.next,s===null){if(s=a.shared.pending,s===null)break;m=s,s=m.next,m.next=null,a.lastBaseUpdate=m,a.shared.pending=null}}while(1);if(u===null&&(l=f),a.baseState=l,a.firstBaseUpdate=c,a.lastBaseUpdate=u,t=a.shared.interleaved,t!==null){a=t;do o|=a.lane,a=a.next;while(a!==t)}else i===null&&(a.shared.lanes=0);cd|=o,e.lanes=o,e.memoizedState=f}}function aA(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;tr?r:4,e(!0);var n=BC.transition;BC.transition={};try{e(!1),t()}finally{Dr=r,BC.transition=n}}function yz(){return Ho().memoizedState}function fre(e,t,r){var n=Ac(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},xz(e))bz(t,r);else if(r=ez(e,t,r,n),r!==null){var a=Si();gs(r,e,n,a),Sz(r,t,n)}}function mre(e,t,r){var n=Ac(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(xz(e))bz(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,s=i(o,r);if(a.hasEagerState=!0,a.eagerState=s,$s(s,o)){var l=t.interleaved;l===null?(a.next=a,eP(t)):(a.next=l.next,l.next=a),t.interleaved=a;return}}catch{}finally{}r=ez(e,t,a,n),r!==null&&(a=Si(),gs(r,e,n,a),Sz(r,t,n))}}function xz(e){var t=e.alternate;return e===hn||t!==null&&t===hn}function bz(e,t){Sh=Fx=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Sz(e,t,r){if(r&4194240){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,BT(e,r)}}var Lx={readContext:zo,useCallback:qa,useContext:qa,useEffect:qa,useImperativeHandle:qa,useInsertionEffect:qa,useLayoutEffect:qa,useMemo:qa,useReducer:qa,useRef:qa,useState:qa,useDebugValue:qa,useDeferredValue:qa,useTransition:qa,useMutableSource:qa,useSyncExternalStore:qa,useId:qa,unstable_isNewReconciler:!1},hre={readContext:zo,useCallback:function(e,t){return Ws().memoizedState=[e,t===void 0?null:t],e},useContext:zo,useEffect:oA,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Ky(4194308,4,mz.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ky(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ky(4,2,e,t)},useMemo:function(e,t){var r=Ws();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Ws();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=fre.bind(null,hn,e),[n.memoizedState,e]},useRef:function(e){var t=Ws();return e={current:e},t.memoizedState=e},useState:iA,useDebugValue:cP,useDeferredValue:function(e){return Ws().memoizedState=e},useTransition:function(){var e=iA(!1),t=e[0];return e=dre.bind(null,e[1]),Ws().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=hn,a=Ws();if(ln){if(r===void 0)throw Error(gt(407));r=r()}else{if(r=t(),ka===null)throw Error(gt(349));ld&30||iz(n,t,r)}a.memoizedState=r;var i={value:r,getSnapshot:t};return a.queue=i,oA(sz.bind(null,n,i,e),[e]),n.flags|=2048,rp(9,oz.bind(null,n,i,r,t),void 0,null),r},useId:function(){var e=Ws(),t=ka.identifierPrefix;if(ln){var r=yl,n=gl;r=(n&~(1<<32-vs(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=ep++,0<\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=o.createElement(r,{is:n.is}):(e=o.createElement(r),r==="select"&&(o=e,n.multiple?o.multiple=!0:n.size&&(o.size=n.size))):e=o.createElementNS(e,r),e[Us]=t,e[Qh]=n,Nz(e,t,!1,!1),t.stateNode=e;e:{switch(o=n$(r,n),r){case"dialog":Yr("cancel",e),Yr("close",e),a=n;break;case"iframe":case"object":case"embed":Yr("load",e),a=n;break;case"video":case"audio":for(a=0;am0&&(t.flags|=128,n=!0,Rm(i,!1),t.lanes=4194304)}else{if(!n)if(e=jx(o),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),Rm(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!ln)return Xa(t),null}else 2*Mn()-i.renderingStartTime>m0&&r!==1073741824&&(t.flags|=128,n=!0,Rm(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(r=i.last,r!==null?r.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Mn(),t.sibling=null,r=fn.current,qr(fn,n?r&1|2:r&1),t):(Xa(t),null);case 22:case 23:return pP(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&t.mode&1?Yi&1073741824&&(Xa(t),t.subtreeFlags&6&&(t.flags|=8192)):Xa(t),null;case 24:return null;case 25:return null}throw Error(gt(156,t.tag))}function wre(e,t){switch(XT(t),t.tag){case 1:return Fi(t.type)&&Ix(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return d0(),en(ji),en(ui),aP(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return nP(t),null;case 13:if(en(fn),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(gt(340));c0()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return en(fn),null;case 4:return d0(),null;case 10:return JT(t.type._context),null;case 22:case 23:return pP(),null;case 24:return null;default:return null}}var Ag=!1,ti=!1,Cre=typeof WeakSet=="function"?WeakSet:Set,Dt=null;function Rf(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Sn(e,t,n)}else r.current=null}function I$(e,t,r){try{r()}catch(n){Sn(e,t,n)}}var gA=!1;function Ere(e,t){if(m$=_x,e=FB(),GT(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var o=0,s=-1,l=-1,c=0,u=0,f=e,m=null;t:for(;;){for(var h;f!==r||a!==0&&f.nodeType!==3||(s=o+a),f!==i||n!==0&&f.nodeType!==3||(l=o+n),f.nodeType===3&&(o+=f.nodeValue.length),(h=f.firstChild)!==null;)m=f,f=h;for(;;){if(f===e)break t;if(m===r&&++c===a&&(s=o),m===i&&++u===n&&(l=o),(h=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=h}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(h$={focusedElem:e,selectionRange:r},_x=!1,Dt=t;Dt!==null;)if(t=Dt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Dt=e;else for(;Dt!==null;){t=Dt;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var g=p.memoizedProps,v=p.memoizedState,y=t.stateNode,x=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:is(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(gt(163))}}catch(S){Sn(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,Dt=e;break}Dt=t.return}return p=gA,gA=!1,p}function wh(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,i!==void 0&&I$(t,r,i)}a=a.next}while(a!==n)}}function Ob(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function N$(e){var t=e.ref;if(t!==null){var r=e.stateNode;switch(e.tag){case 5:e=r;break;default:e=r}typeof t=="function"?t(e):t.current=e}}function Az(e){var t=e.alternate;t!==null&&(e.alternate=null,Az(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Us],delete t[Qh],delete t[g$],delete t[ore],delete t[sre])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Mz(e){return e.tag===5||e.tag===3||e.tag===4}function yA(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mz(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function k$(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Px));else if(n!==4&&(e=e.child,e!==null))for(k$(e,t,r),e=e.sibling;e!==null;)k$(e,t,r),e=e.sibling}function R$(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(R$(e,t,r),e=e.sibling;e!==null;)R$(e,t,r),e=e.sibling}var za=null,os=!1;function Jl(e,t,r){for(r=r.child;r!==null;)Dz(e,t,r),r=r.sibling}function Dz(e,t,r){if(Qs&&typeof Qs.onCommitFiberUnmount=="function")try{Qs.onCommitFiberUnmount(xb,r)}catch{}switch(r.tag){case 5:ti||Rf(r,t);case 6:var n=za,a=os;za=null,Jl(e,t,r),za=n,os=a,za!==null&&(os?(e=za,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):za.removeChild(r.stateNode));break;case 18:za!==null&&(os?(e=za,r=r.stateNode,e.nodeType===8?jC(e.parentNode,r):e.nodeType===1&&jC(e,r),Kh(e)):jC(za,r.stateNode));break;case 4:n=za,a=os,za=r.stateNode.containerInfo,os=!0,Jl(e,t,r),za=n,os=a;break;case 0:case 11:case 14:case 15:if(!ti&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&I$(r,t,o),a=a.next}while(a!==n)}Jl(e,t,r);break;case 1:if(!ti&&(Rf(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Sn(r,t,s)}Jl(e,t,r);break;case 21:Jl(e,t,r);break;case 22:r.mode&1?(ti=(n=ti)||r.memoizedState!==null,Jl(e,t,r),ti=n):Jl(e,t,r);break;default:Jl(e,t,r)}}function xA(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Cre),t.forEach(function(n){var a=Rre.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function rs(e,t){var r=t.deletions;if(r!==null)for(var n=0;na&&(a=o),n&=~i}if(n=a,n=Mn()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*_re(n/1960))-n,10e?16:e,vc===null)var n=!1;else{if(e=vc,vc=null,Hx=0,wr&6)throw Error(gt(331));var a=wr;for(wr|=4,Dt=e.current;Dt!==null;){var i=Dt,o=i.child;if(Dt.flags&16){var s=i.deletions;if(s!==null){for(var l=0;lMn()-mP?Gu(e,0):fP|=r),Li(e,t)}function Vz(e,t){t===0&&(e.mode&1?(t=$g,$g<<=1,!($g&130023424)&&($g=4194304)):t=1);var r=Si();e=Pl(e,t),e!==null&&(av(e,t,r),Li(e,r))}function kre(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Vz(e,r)}function Rre(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(gt(314))}n!==null&&n.delete(t),Vz(e,r)}var Uz;Uz=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||ji.current)Ri=!0;else{if(!(e.lanes&r)&&!(t.flags&128))return Ri=!1,bre(e,t,r);Ri=!!(e.flags&131072)}else Ri=!1,ln&&t.flags&1048576&&XB(t,Rx,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Gy(e,t),e=t.pendingProps;var a=l0(t,ui.current);Gf(t,r),a=oP(null,t,n,e,a,r);var i=sP();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Fi(n)?(i=!0,Nx(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,tP(t),a.updater=_b,t.stateNode=a,a._reactInternals=t,C$(t,n,e,r),t=_$(null,t,n,!0,i,r)):(t.tag=0,ln&&i&&qT(t),pi(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Gy(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=Mre(n),e=is(n,e),a){case 0:t=$$(null,t,n,e,r);break e;case 1:t=hA(null,t,n,e,r);break e;case 11:t=fA(null,t,n,e,r);break e;case 14:t=mA(null,t,n,is(n.type,e),r);break e}throw Error(gt(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:is(n,a),$$(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:is(n,a),hA(e,t,n,a,r);case 3:e:{if(Tz(t),e===null)throw Error(gt(387));n=t.pendingProps,i=t.memoizedState,a=i.element,tz(e,t),Dx(t,n,null,r);var o=t.memoizedState;if(n=o.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=f0(Error(gt(423)),t),t=pA(e,t,n,r,a);break e}else if(n!==a){a=f0(Error(gt(424)),t),t=pA(e,t,n,r,a);break e}else for(ro=Nc(t.stateNode.containerInfo.firstChild),oo=t,ln=!0,ls=null,r=JB(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(c0(),n===a){t=Il(e,t,r);break e}pi(e,t,n,r)}t=t.child}return t;case 5:return rz(t),e===null&&b$(t),n=t.type,a=t.pendingProps,i=e!==null?e.memoizedProps:null,o=a.children,p$(n,a)?o=null:i!==null&&p$(n,i)&&(t.flags|=32),Oz(e,t),pi(e,t,o,r),t.child;case 6:return e===null&&b$(t),null;case 13:return Pz(e,t,r);case 4:return rP(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=u0(t,null,n,r):pi(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:is(n,a),fA(e,t,n,a,r);case 7:return pi(e,t,t.pendingProps,r),t.child;case 8:return pi(e,t,t.pendingProps.children,r),t.child;case 12:return pi(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,qr(Ax,n._currentValue),n._currentValue=o,i!==null)if($s(i.value,o)){if(i.children===a.children&&!ji.current){t=Il(e,t,r);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){o=i.child;for(var l=s.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=wl(-1,r&-r),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),S$(i.return,r,t),s.lanes|=r;break}l=l.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(gt(341));o.lanes|=r,s=o.alternate,s!==null&&(s.lanes|=r),S$(o,r,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}pi(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,Gf(t,r),a=zo(a),n=n(a),t.flags|=1,pi(e,t,n,r),t.child;case 14:return n=t.type,a=is(n,t.pendingProps),a=is(n.type,a),mA(e,t,n,a,r);case 15:return $z(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:is(n,a),Gy(e,t),t.tag=1,Fi(n)?(e=!0,Nx(t)):e=!1,Gf(t,r),wz(t,n,a),C$(t,n,a,r),_$(null,t,n,!0,e,r);case 19:return Iz(e,t,r);case 22:return _z(e,t,r)}throw Error(gt(156,t.tag))};function Kz(e,t){return xB(e,t)}function Are(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Do(e,t,r,n){return new Are(e,t,r,n)}function gP(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mre(e){if(typeof e=="function")return gP(e)?1:0;if(e!=null){if(e=e.$$typeof,e===DT)return 11;if(e===jT)return 14}return 2}function Mc(e,t){var r=e.alternate;return r===null?(r=Do(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Yy(e,t,r,n,a,i){var o=2;if(n=e,typeof e=="function")gP(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ef:return qu(r.children,a,i,t);case MT:o=8,a|=8;break;case GE:return e=Do(12,r,t,a|2),e.elementType=GE,e.lanes=i,e;case qE:return e=Do(13,r,t,a),e.elementType=qE,e.lanes=i,e;case XE:return e=Do(19,r,t,a),e.elementType=XE,e.lanes=i,e;case rB:return Pb(r,a,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case eB:o=10;break e;case tB:o=9;break e;case DT:o=11;break e;case jT:o=14;break e;case lc:o=16,n=null;break e}throw Error(gt(130,e==null?e:typeof e,""))}return t=Do(o,r,t,a),t.elementType=e,t.type=n,t.lanes=i,t}function qu(e,t,r,n){return e=Do(7,e,n,t),e.lanes=r,e}function Pb(e,t,r,n){return e=Do(22,e,n,t),e.elementType=rB,e.lanes=r,e.stateNode={isHidden:!1},e}function UC(e,t,r){return e=Do(6,e,null,t),e.lanes=r,e}function KC(e,t,r){return t=Do(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Dre(e,t,r,n,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=_C(0),this.expirationTimes=_C(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_C(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function yP(e,t,r,n,a,i,o,s,l){return e=new Dre(e,t,r,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Do(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},tP(i),e}function jre(e,t,r){var n=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Yz)}catch(e){console.error(e)}}Yz(),YL.exports=vo;var wi=YL.exports;const ap=ia(wi),Hre=FL({__proto__:null,default:ap},[wi]);var OA=wi;UE.createRoot=OA.createRoot,UE.hydrateRoot=OA.hydrateRoot;/** - * @remix-run/router v1.23.1 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function ip(){return ip=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function wP(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Vre(){return Math.random().toString(36).substr(2,8)}function PA(e,t){return{usr:e.state,key:e.key,idx:t}}function F$(e,t,r,n){return r===void 0&&(r=null),ip({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?z0(t):t,{state:r,key:t&&t.key||n||Vre()})}function Qz(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&r!=="?"&&(t+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function z0(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function Ure(e,t,r,n){n===void 0&&(n={});let{window:a=document.defaultView,v5Compat:i=!1}=n,o=a.history,s=gc.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(ip({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function f(){s=gc.Pop;let v=u(),y=v==null?null:v-c;c=v,l&&l({action:s,location:g.location,delta:y})}function m(v,y){s=gc.Push;let x=F$(g.location,v,y);r&&r(x,v),c=u()+1;let b=PA(x,c),S=g.createHref(x);try{o.pushState(b,"",S)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;a.location.assign(S)}i&&l&&l({action:s,location:g.location,delta:1})}function h(v,y){s=gc.Replace;let x=F$(g.location,v,y);r&&r(x,v),c=u();let b=PA(x,c),S=g.createHref(x);o.replaceState(b,"",S),i&&l&&l({action:s,location:g.location,delta:0})}function p(v){let y=a.location.origin!=="null"?a.location.origin:a.location.href,x=typeof v=="string"?v:Qz(v);return x=x.replace(/ $/,"%20"),ta(y,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,y)}let g={get action(){return s},get location(){return e(a,o)},listen(v){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(TA,f),l=v,()=>{a.removeEventListener(TA,f),l=null}},createHref(v){return t(a,v)},createURL:p,encodeLocation(v){let y=p(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:m,replace:h,go(v){return o.go(v)}};return g}var IA;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(IA||(IA={}));function Kre(e,t,r){return r===void 0&&(r="/"),Gre(e,t,r,!1)}function Gre(e,t,r,n){let a=typeof t=="string"?z0(t):t,i=e7(a.pathname||"/",r);if(i==null)return null;let o=Zz(e);qre(o);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:o,route:i};l.relativePath.startsWith("/")&&(ta(l.relativePath.startsWith(n),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(n.length));let c=Xu([n,l.relativePath]),u=r.concat(l);i.children&&i.children.length>0&&(ta(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),Zz(i.children,t,u,c)),!(i.path==null&&!i.index)&&t.push({path:c,score:tne(c,i.index),routesMeta:u})};return e.forEach((i,o)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))a(i,o);else for(let l of Jz(i.path))a(i,o,l)}),t}function Jz(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,a=r.endsWith("?"),i=r.replace(/\?$/,"");if(n.length===0)return a?[i,""]:[i];let o=Jz(n.join("/")),s=[];return s.push(...o.map(l=>l===""?i:[i,l].join("/"))),a&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function qre(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:rne(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Xre=/^:[\w-]+$/,Yre=3,Qre=2,Zre=1,Jre=10,ene=-2,NA=e=>e==="*";function tne(e,t){let r=e.split("/"),n=r.length;return r.some(NA)&&(n+=ene),t&&(n+=Qre),r.filter(a=>!NA(a)).reduce((a,i)=>a+(Xre.test(i)?Yre:i===""?Zre:Jre),n)}function rne(e,t){return e.length===t.length&&e.slice(0,-1).every((n,a)=>n===t[a])?e[e.length-1]-t[t.length-1]:0}function nne(e,t,r){r===void 0&&(r=!1);let{routesMeta:n}=e,a={},i="/",o=[];for(let s=0;s{let{paramName:m,isOptional:h}=u;if(m==="*"){let g=s[f]||"";o=i.slice(0,i.length-g.length).replace(/(.)\/+$/,"$1")}const p=s[f];return h&&!p?c[m]=void 0:c[m]=(p||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:o,pattern:e}}function ane(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!0),wP(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let n=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,s,l)=>(n.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(n.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),n]}function ine(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return wP(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function e7(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}const one=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sne=e=>one.test(e);function lne(e,t){t===void 0&&(t="/");let{pathname:r,search:n="",hash:a=""}=typeof e=="string"?z0(e):e,i;if(r)if(sne(r))i=r;else{if(r.includes("//")){let o=r;r=r.replace(/\/\/+/g,"/"),wP(!1,"Pathnames cannot have embedded double slashes - normalizing "+(o+" -> "+r))}r.startsWith("/")?i=RA(r.substring(1),"/"):i=RA(r,t)}else i=t;return{pathname:i,search:dne(n),hash:fne(a)}}function RA(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?r.length>1&&r.pop():a!=="."&&r.push(a)}),r.length>1?r.join("/"):"/"}function GC(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function cne(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function t7(e,t){let r=cne(e);return t?r.map((n,a)=>a===r.length-1?n.pathname:n.pathnameBase):r.map(n=>n.pathnameBase)}function r7(e,t,r,n){n===void 0&&(n=!1);let a;typeof e=="string"?a=z0(e):(a=ip({},e),ta(!a.pathname||!a.pathname.includes("?"),GC("?","pathname","search",a)),ta(!a.pathname||!a.pathname.includes("#"),GC("#","pathname","hash",a)),ta(!a.search||!a.search.includes("#"),GC("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,s;if(o==null)s=r;else{let f=t.length-1;if(!n&&o.startsWith("..")){let m=o.split("/");for(;m[0]==="..";)m.shift(),f-=1;a.pathname=m.join("/")}s=f>=0?t[f]:"/"}let l=lne(a,s),c=o&&o!=="/"&&o.endsWith("/"),u=(i||o===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Xu=e=>e.join("/").replace(/\/\/+/g,"/"),une=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),dne=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fne=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function mne(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const n7=["post","put","patch","delete"];new Set(n7);const hne=["get",...n7];new Set(hne);/** - * React Router v6.30.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function op(){return op=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),d.useCallback(function(c,u){if(u===void 0&&(u={}),!s.current)return;if(typeof c=="number"){n.go(c);return}let f=r7(c,JSON.parse(o),i,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Xu([t,f.pathname])),(u.replace?n.replace:n.push)(f,u.state,u)},[t,n,o,i,e])}function gne(){let{matches:e}=d.useContext(ou),t=e[e.length-1];return t?t.params:{}}function yne(e,t){return xne(e,t)}function xne(e,t,r,n){cv()||ta(!1);let{navigator:a}=d.useContext(lv),{matches:i}=d.useContext(ou),o=i[i.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=H0(),u;if(t){var f;let v=typeof t=="string"?z0(t):t;l==="/"||(f=v.pathname)!=null&&f.startsWith(l)||ta(!1),u=v}else u=c;let m=u.pathname||"/",h=m;if(l!=="/"){let v=l.replace(/^\//,"").split("/");h="/"+m.replace(/^\//,"").split("/").slice(v.length).join("/")}let p=Kre(e,{pathname:h}),g=Ene(p&&p.map(v=>Object.assign({},v,{params:Object.assign({},s,v.params),pathname:Xu([l,a.encodeLocation?a.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:Xu([l,a.encodeLocation?a.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),i,r,n);return t&&g?d.createElement(Ab.Provider,{value:{location:op({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:gc.Pop}},g):g}function bne(){let e=Tne(),t=mne(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,a={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return d.createElement(d.Fragment,null,d.createElement("h2",null,"Unexpected Application Error!"),d.createElement("h3",{style:{fontStyle:"italic"}},t),r?d.createElement("pre",{style:a},r):null,i)}const Sne=d.createElement(bne,null);class wne extends d.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,r){return r.location!==t.location||r.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:r.error,location:r.location,revalidation:t.revalidation||r.revalidation}}componentDidCatch(t,r){console.error("React Router caught the following error during render",t,r)}render(){return this.state.error!==void 0?d.createElement(ou.Provider,{value:this.props.routeContext},d.createElement(a7.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Cne(e){let{routeContext:t,match:r,children:n}=e,a=d.useContext(CP);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),d.createElement(ou.Provider,{value:t},n)}function Ene(e,t,r,n){var a;if(t===void 0&&(t=[]),r===void 0&&(r=null),n===void 0&&(n=null),e==null){var i;if(!r)return null;if(r.errors)e=r.matches;else if((i=n)!=null&&i.v7_partialHydration&&t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let o=e,s=(a=r)==null?void 0:a.errors;if(s!=null){let u=o.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);u>=0||ta(!1),o=o.slice(0,Math.min(o.length,u+1))}let l=!1,c=-1;if(r&&n&&n.v7_partialHydration)for(let u=0;u=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,f,m)=>{let h,p=!1,g=null,v=null;r&&(h=s&&f.route.id?s[f.route.id]:void 0,g=f.route.errorElement||Sne,l&&(c<0&&m===0?(Ine("route-fallback",!1),p=!0,v=null):c===m&&(p=!0,v=f.route.hydrateFallbackElement||null)));let y=t.concat(o.slice(0,m+1)),x=()=>{let b;return h?b=g:p?b=v:f.route.Component?b=d.createElement(f.route.Component,null):f.route.element?b=f.route.element:b=u,d.createElement(Cne,{match:f,routeContext:{outlet:u,matches:y,isDataRoute:r!=null},children:b})};return r&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?d.createElement(wne,{location:r.location,revalidation:r.revalidation,component:g,error:h,children:x(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):x()},null)}var o7=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(o7||{}),Ux=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Ux||{});function $ne(e){let t=d.useContext(CP);return t||ta(!1),t}function _ne(e){let t=d.useContext(pne);return t||ta(!1),t}function One(e){let t=d.useContext(ou);return t||ta(!1),t}function s7(e){let t=One(),r=t.matches[t.matches.length-1];return r.route.id||ta(!1),r.route.id}function Tne(){var e;let t=d.useContext(a7),r=_ne(Ux.UseRouteError),n=s7(Ux.UseRouteError);return t!==void 0?t:(e=r.errors)==null?void 0:e[n]}function Pne(){let{router:e}=$ne(o7.UseNavigateStable),t=s7(Ux.UseNavigateStable),r=d.useRef(!1);return i7(()=>{r.current=!0}),d.useCallback(function(a,i){i===void 0&&(i={}),r.current&&(typeof a=="number"?e.navigate(a):e.navigate(a,op({fromRouteId:t},i)))},[e,t])}const AA={};function Ine(e,t,r){!t&&!AA[e]&&(AA[e]=!0)}function Nne(e,t){e==null||e.v7_startTransition,(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}function L$(e){let{to:t,replace:r,state:n,relative:a}=e;cv()||ta(!1);let{future:i,static:o}=d.useContext(lv),{matches:s}=d.useContext(ou),{pathname:l}=H0(),c=Xo(),u=r7(t,t7(s,i.v7_relativeSplatPath),l,a==="path"),f=JSON.stringify(u);return d.useEffect(()=>c(JSON.parse(f),{replace:r,state:n,relative:a}),[c,f,a,r,n]),null}function xn(e){ta(!1)}function kne(e){let{basename:t="/",children:r=null,location:n,navigationType:a=gc.Pop,navigator:i,static:o=!1,future:s}=e;cv()&&ta(!1);let l=t.replace(/^\/*/,"/"),c=d.useMemo(()=>({basename:l,navigator:i,static:o,future:op({v7_relativeSplatPath:!1},s)}),[l,s,i,o]);typeof n=="string"&&(n=z0(n));let{pathname:u="/",search:f="",hash:m="",state:h=null,key:p="default"}=n,g=d.useMemo(()=>{let v=e7(u,l);return v==null?null:{location:{pathname:v,search:f,hash:m,state:h,key:p},navigationType:a}},[l,u,f,m,h,p,a]);return g==null?null:d.createElement(lv.Provider,{value:c},d.createElement(Ab.Provider,{children:r,value:g}))}function MA(e){let{children:t,location:r}=e;return yne(B$(t),r)}new Promise(()=>{});function B$(e,t){t===void 0&&(t=[]);let r=[];return d.Children.forEach(e,(n,a)=>{if(!d.isValidElement(n))return;let i=[...t,a];if(n.type===d.Fragment){r.push.apply(r,B$(n.props.children,i));return}n.type!==xn&&ta(!1),!n.props.index||!n.props.children||ta(!1);let o={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(o.children=B$(n.props.children,i)),r.push(o)}),r}/** - * React Router DOM v6.30.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */const Rne="6";try{window.__reactRouterVersion=Rne}catch{}const Ane="startTransition",DA=F0[Ane];function Mne(e){let{basename:t,children:r,future:n,window:a}=e,i=d.useRef();i.current==null&&(i.current=Wre({window:a,v5Compat:!0}));let o=i.current,[s,l]=d.useState({action:o.action,location:o.location}),{v7_startTransition:c}=n||{},u=d.useCallback(f=>{c&&DA?DA(()=>l(f)):l(f)},[l,c]);return d.useLayoutEffect(()=>o.listen(u),[o,u]),d.useEffect(()=>Nne(n),[n]),d.createElement(kne,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:o,future:n})}var jA;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(jA||(jA={}));var FA;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(FA||(FA={}));var l7={exports:{}};/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",o=0;o1&&arguments[1]!==void 0?arguments[1]:{},r=[];return ve.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(ha(n)):c7(n)&&n.props?r=r.concat(ha(n.props.children,t)):r.push(n))}),r}var z$={},Bne=function(t){};function zne(e,t){}function Hne(e,t){}function Wne(){z$={}}function u7(e,t,r){!t&&!z$[r]&&(e(!1,r),z$[r]=!0)}function Br(e,t){u7(zne,e,t)}function Vne(e,t){u7(Hne,e,t)}Br.preMessage=Bne;Br.resetWarned=Wne;Br.noteOnce=Vne;function Une(e,t){if(bt(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(bt(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d7(e){var t=Une(e,"string");return bt(t)=="symbol"?t:t+""}function J(e,t,r){return(t=d7(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ae(e){for(var t=1;t=19)return!0;var a=qC.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((r=a.prototype)!==null&&r!==void 0&&r.render)&&a.$$typeof!==qC.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==qC.ForwardRef)};function _P(e){return d.isValidElement(e)&&!c7(e)}var Xne=function(t){return _P(t)&&_s(t)},su=function(t){if(t&&_P(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},H$=d.createContext(null);function Yne(e){var t=e.children,r=e.onBatchResize,n=d.useRef(0),a=d.useRef([]),i=d.useContext(H$),o=d.useCallback(function(s,l,c){n.current+=1;var u=n.current;a.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===n.current&&(r==null||r(a.current),a.current=[])}),i==null||i(s,l,c)},[r,i]);return d.createElement(H$.Provider,{value:o},t)}var h7=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(a,i){return a[0]===r?(n=i,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),a=this.__entries__[n];return a&&a[1]},t.prototype.set=function(r,n){var a=e(this.__entries__,r);~a?this.__entries__[a][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,a=e(n,r);~a&&n.splice(a,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var a=0,i=this.__entries__;a0},e.prototype.connect_=function(){!W$||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),rae?(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(){!W$||!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 r=t.propertyName,n=r===void 0?"":r,a=tae.some(function(i){return!!~n.indexOf(i)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),p7=function(e,t){for(var r=0,n=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof h0(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new dae(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 h0(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.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(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new fae(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),g7=typeof WeakMap<"u"?new WeakMap:new h7,y7=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 r=nae.getInstance(),n=new mae(t,r,this);g7.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){y7.prototype[e]=function(){var t;return(t=g7.get(this))[e].apply(t,arguments)}});var hae=function(){return typeof Kx.ResizeObserver<"u"?Kx.ResizeObserver:y7}(),yc=new Map;function pae(e){e.forEach(function(t){var r,n=t.target;(r=yc.get(n))===null||r===void 0||r.forEach(function(a){return a(n)})})}var x7=new hae(pae);function vae(e,t){yc.has(e)||(yc.set(e,new Set),x7.observe(e)),yc.get(e).add(t)}function gae(e,t){yc.has(e)&&(yc.get(e).delete(t),yc.get(e).size||(x7.unobserve(e),yc.delete(e)))}function Wr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zA(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=Array(t);r1&&arguments[1]!==void 0?arguments[1]:1;HA+=1;var n=HA;function a(i){if(i===0)E7(n),t();else{var o=w7(function(){a(i-1)});TP.set(n,o)}}return a(r),n};Ut.cancel=function(e){var t=TP.get(e);return E7(e),C7(t)};function $7(e){if(Array.isArray(e))return e}function $ae(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,a=u}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function _7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function me(e,t){return $7(e)||$ae(e,t)||OP(e,t)||_7()}function up(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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)}function Aa(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function U$(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var WA="data-rc-order",VA="data-rc-priority",_ae="rc-util-key",K$=new Map;function O7(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):_ae}function Gb(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Oae(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function PP(e){return Array.from((K$.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function T7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Aa())return null;var r=t.csp,n=t.prepend,a=t.priority,i=a===void 0?0:a,o=Oae(n),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(WA,o),s&&i&&l.setAttribute(VA,"".concat(i)),r!=null&&r.nonce&&(l.nonce=r==null?void 0:r.nonce),l.innerHTML=e;var c=Gb(t),u=c.firstChild;if(n){if(s){var f=(t.styles||PP(c)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(WA)))return!1;var h=Number(m.getAttribute(VA)||0);return i>=h});if(f.length)return c.insertBefore(l,f[f.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function P7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Gb(t);return(t.styles||PP(r)).find(function(n){return n.getAttribute(O7(t))===e})}function dp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=P7(e,t);if(r){var n=Gb(t);n.removeChild(r)}}function Tae(e,t){var r=K$.get(e);if(!r||!U$(document,r)){var n=T7("",t),a=n.parentNode;K$.set(e,a),e.removeChild(n)}}function Cl(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Gb(r),a=PP(n),i=ae(ae({},r),{},{styles:a});Tae(n,i);var o=P7(t,i);if(o){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;o.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var u=T7(e,i);return u.setAttribute(O7(i),t),u}function Pae(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Rt(e,t){if(e==null)return{};var r,n,a=Pae(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function a(i,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(i);if(Br(!l,"Warning: There may be circular references"),l)return!1;if(i===o)return!0;if(r&&s>1)return!1;n.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(o)||i.length!==o.length)return!1;for(var u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,o={map:this.cache};return r.forEach(function(s){if(!o)o=void 0;else{var l;o=(l=o)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(n=o)!==null&&n!==void 0&&n.value&&i&&(o.value[1]=this.cacheCallTimes++),(a=o)===null||a===void 0?void 0:a.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var a=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(c,u){var f=me(c,2),m=f[1];return a.internalGet(u)[1]0,void 0),UA+=1}return Vr(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,a){return a(r,n)},void 0)}}]),e}(),XC=new IP;function q$(e){var t=Array.isArray(e)?e:[e];return XC.has(t)||XC.set(t,new I7(t)),XC.get(t)}var Aae=new WeakMap,YC={};function Mae(e,t){for(var r=Aae,n=0;n3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return e;var i=ae(ae({},n),{},J(J({},p0,t),ys,r)),o=Object.keys(i).map(function(s){var l=i[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"")}var Zy=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Dae=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(a){var i=me(a,2),o=i[0],s=i[1];return"".concat(o,":").concat(s,";")}).join(""),"}"):""},N7=function(t,r,n){var a={},i={};return Object.entries(t).forEach(function(o){var s,l,c=me(o,2),u=c[0],f=c[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[u])i[u]=f;else if((typeof f=="string"||typeof f=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[u])){var m,h=Zy(u,n==null?void 0:n.prefix);a[h]=typeof f=="number"&&!(n!=null&&(m=n.unitless)!==null&&m!==void 0&&m[u])?"".concat(f,"px"):String(f),i[u]="var(".concat(h,")")}}),[i,Dae(a,r,{scope:n==null?void 0:n.scope})]},qA=Aa()?d.useLayoutEffect:d.useEffect,Gt=function(t,r){var n=d.useRef(!0);qA(function(){return t(n.current)},r),qA(function(){return n.current=!1,function(){n.current=!0}},[])},Yu=function(t,r){Gt(function(n){if(!n)return t()},r)},jae=ae({},F0),XA=jae.useInsertionEffect,Fae=function(t,r,n){d.useMemo(t,n),Gt(function(){return r(!0)},n)},Lae=XA?function(e,t,r){return XA(function(){return e(),t()},r)}:Fae,Bae=ae({},F0),zae=Bae.useInsertionEffect,Hae=function(t){var r=[],n=!1;function a(i){n||r.push(i)}return d.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(i){return i()})}},t),a},Wae=function(){return function(t){t()}},Vae=typeof zae<"u"?Hae:Wae;function NP(e,t,r,n,a){var i=d.useContext(dv),o=i.cache,s=[e].concat(De(t)),l=G$(s),c=Vae([l]),u=function(p){o.opUpdate(l,function(g){var v=g||[void 0,void 0],y=me(v,2),x=y[0],b=x===void 0?0:x,S=y[1],w=S,E=w||r(),C=[b,E];return p?p(C):C})};d.useMemo(function(){u()},[l]);var f=o.opGet(l),m=f[1];return Lae(function(){a==null||a(m)},function(h){return u(function(p){var g=me(p,2),v=g[0],y=g[1];return h&&v===0&&(a==null||a(m)),[v+1,y]}),function(){o.opUpdate(l,function(p){var g=p||[],v=me(g,2),y=v[0],x=y===void 0?0:y,b=v[1],S=x-1;return S===0?(c(function(){(h||!o.opGet(l))&&(n==null||n(b,!1))}),null):[x-1,b]})}},[l]),m}var Uae={},Kae="css",Nu=new Map;function Gae(e){Nu.set(e,(Nu.get(e)||0)+1)}function qae(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(p0,'="').concat(e,'"]'));r.forEach(function(n){if(n[xc]===t){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}})}}var Xae=0;function Yae(e,t){Nu.set(e,(Nu.get(e)||0)-1);var r=new Set;Nu.forEach(function(n,a){n<=0&&r.add(a)}),Nu.size-r.size>Xae&&r.forEach(function(n){qae(n,t),Nu.delete(n)})}var Qae=function(t,r,n,a){var i=n.getDerivativeToken(t),o=ae(ae({},i),r);return a&&(o=a(o)),o},k7="token";function Zae(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=d.useContext(dv),a=n.cache.instanceId,i=n.container,o=r.salt,s=o===void 0?"":o,l=r.override,c=l===void 0?Uae:l,u=r.formatToken,f=r.getComputedToken,m=r.cssVar,h=Mae(function(){return Object.assign.apply(Object,[{}].concat(De(t)))},t),p=$h(h),g=$h(c),v=m?$h(m):"",y=NP(k7,[s,e.id,p,g,v],function(){var x,b=f?f(h,c,e):Qae(h,c,e,u),S=ae({},b),w="";if(m){var E=N7(b,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),C=me(E,2);b=C[0],w=C[1]}var O=GA(b,s);b._tokenKey=O,S._tokenKey=GA(S,s);var _=(x=m==null?void 0:m.key)!==null&&x!==void 0?x:O;b._themeKey=_,Gae(_);var P="".concat(Kae,"-").concat(up(O));return b._hashId=P,[b,P,S,w,(m==null?void 0:m.key)||""]},function(x){Yae(x[0]._themeKey,a)},function(x){var b=me(x,4),S=b[0],w=b[3];if(m&&w){var E=Cl(w,up("css-variables-".concat(S._themeKey)),{mark:ys,prepend:"queue",attachTo:i,priority:-999});E[xc]=a,E.setAttribute(p0,S._themeKey)}});return y}var Jae=function(t,r,n){var a=me(t,5),i=a[2],o=a[3],s=a[4],l=n||{},c=l.plain;if(!o)return null;var u=i._tokenKey,f=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},h=qx(o,s,u,m,c);return[f,u,h]},eie={animationIterationCount: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},R7="comm",A7="rule",M7="decl",tie="@import",rie="@namespace",nie="@keyframes",aie="@layer",D7=Math.abs,kP=String.fromCharCode;function j7(e){return e.trim()}function Jy(e,t,r){return e.replace(t,r)}function iie(e,t,r){return e.indexOf(t,r)}function Xf(e,t){return e.charCodeAt(t)|0}function v0(e,t,r){return e.slice(t,r)}function Vs(e){return e.length}function oie(e){return e.length}function jg(e,t){return t.push(e),e}var qb=1,g0=1,F7=0,Wo=0,Qn=0,W0="";function RP(e,t,r,n,a,i,o,s){return{value:e,root:t,parent:r,type:n,props:a,children:i,line:qb,column:g0,length:o,return:"",siblings:s}}function sie(){return Qn}function lie(){return Qn=Wo>0?Xf(W0,--Wo):0,g0--,Qn===10&&(g0=1,qb--),Qn}function xs(){return Qn=Wo2||fp(Qn)>3?"":" "}function fie(e,t){for(;--t&&xs()&&!(Qn<48||Qn>102||Qn>57&&Qn<65||Qn>70&&Qn<97););return Xb(e,ex()+(t<6&&bc()==32&&xs()==32))}function Y$(e){for(;xs();)switch(Qn){case e:return Wo;case 34:case 39:e!==34&&e!==39&&Y$(Qn);break;case 40:e===41&&Y$(e);break;case 92:xs();break}return Wo}function mie(e,t){for(;xs()&&e+Qn!==47+10;)if(e+Qn===42+42&&bc()===47)break;return"/*"+Xb(t,Wo-1)+"*"+kP(e===47?e:xs())}function hie(e){for(;!fp(bc());)xs();return Xb(e,Wo)}function pie(e){return uie(tx("",null,null,null,[""],e=cie(e),0,[0],e))}function tx(e,t,r,n,a,i,o,s,l){for(var c=0,u=0,f=o,m=0,h=0,p=0,g=1,v=1,y=1,x=0,b="",S=a,w=i,E=n,C=b;v;)switch(p=x,x=xs()){case 40:if(p!=108&&Xf(C,f-1)==58){iie(C+=Jy(QC(x),"&","&\f"),"&\f",D7(c?s[c-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:C+=QC(x);break;case 9:case 10:case 13:case 32:C+=die(p);break;case 92:C+=fie(ex()-1,7);continue;case 47:switch(bc()){case 42:case 47:jg(vie(mie(xs(),ex()),t,r,l),l),(fp(p||1)==5||fp(bc()||1)==5)&&Vs(C)&&v0(C,-1,void 0)!==" "&&(C+=" ");break;default:C+="/"}break;case 123*g:s[c++]=Vs(C)*y;case 125*g:case 59:case 0:switch(x){case 0:case 125:v=0;case 59+u:y==-1&&(C=Jy(C,/\f/g,"")),h>0&&(Vs(C)-f||g===0&&p===47)&&jg(h>32?QA(C+";",n,r,f-1,l):QA(Jy(C," ","")+";",n,r,f-2,l),l);break;case 59:C+=";";default:if(jg(E=YA(C,t,r,c,u,a,s,b,S=[],w=[],f,i),i),x===123)if(u===0)tx(C,t,E,E,S,i,f,s,w);else{switch(m){case 99:if(Xf(C,3)===110)break;case 108:if(Xf(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?tx(e,E,E,n&&jg(YA(e,E,E,0,0,a,s,b,a,S=[],f,w),w),a,w,f,s,n?S:w):tx(C,E,E,E,[""],w,0,s,w)}}c=u=h=0,g=y=1,b=C="",f=o;break;case 58:f=1+Vs(C),h=p;default:if(g<1){if(x==123)--g;else if(x==125&&g++==0&&lie()==125)continue}switch(C+=kP(x),x*g){case 38:y=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Vs(C)-1)*y,y=1;break;case 64:bc()===45&&(C+=QC(xs())),m=bc(),u=f=Vs(b=C+=hie(ex())),x++;break;case 45:p===45&&Vs(C)==2&&(g=0)}}return i}function YA(e,t,r,n,a,i,o,s,l,c,u,f){for(var m=a-1,h=a===0?i:[""],p=oie(h),g=0,v=0,y=0;g0?h[x]+" "+b:Jy(b,/&\f/g,h[x])))&&(l[y++]=S);return RP(e,t,r,a===0?A7:s,l,c,u,f)}function vie(e,t,r,n){return RP(e,t,r,R7,kP(sie()),v0(e,2,-2),0,n)}function QA(e,t,r,n,a){return RP(e,t,r,M7,v0(e,0,n),v0(e,n+1,-1),n,a)}function Q$(e,t){for(var r="",n=0;n1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=n.root,i=n.injectHash,o=n.parentSelectors,s=r.hashId,l=r.layer;r.path;var c=r.hashPriority,u=r.transformers,f=u===void 0?[]:u;r.linters;var m="",h={};function p(y){var x=y.getName(s);if(!h[x]){var b=e(y.style,r,{root:!1,parentSelectors:o}),S=me(b,1),w=S[0];h[x]="@keyframes ".concat(y.getName(s)).concat(w)}}function g(y){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y.forEach(function(b){Array.isArray(b)?g(b,x):b&&x.push(b)}),x}var v=g(Array.isArray(t)?t:[t]);return v.forEach(function(y){var x=typeof y=="string"&&!a?{}:y;if(typeof x=="string")m+="".concat(x,` -`);else if(x._keyframe)p(x);else{var b=f.reduce(function(S,w){var E;return(w==null||(E=w.visit)===null||E===void 0?void 0:E.call(w,S))||S},x);Object.keys(b).forEach(function(S){var w=b[S];if(bt(w)==="object"&&w&&(S!=="animationName"||!w._keyframe)&&!wie(w)){var E=!1,C=S.trim(),O=!1;(a||i)&&s?C.startsWith("@")?E=!0:C==="&"?C=JA("",s,c):C=JA(S,s,c):a&&!s&&(C==="&"||C==="")&&(C="",O=!0);var _=e(w,r,{root:O,injectHash:E,parentSelectors:[].concat(De(o),[C])}),P=me(_,2),I=P[0],N=P[1];h=ae(ae({},h),N),m+="".concat(C).concat(I)}else{let A=function(j,F){var M=j.replace(/[A-Z]/g,function(K){return"-".concat(K.toLowerCase())}),V=F;!eie[j]&&typeof V=="number"&&V!==0&&(V="".concat(V,"px")),j==="animationName"&&F!==null&&F!==void 0&&F._keyframe&&(p(F),V=F.getName(s)),m+="".concat(M,":").concat(V,";")};var R=A,D,k=(D=w==null?void 0:w.value)!==null&&D!==void 0?D:w;bt(w)==="object"&&w!==null&&w!==void 0&&w[z7]&&Array.isArray(k)?k.forEach(function(j){A(S,j)}):A(S,k)}})}}),a?l&&(m&&(m="@layer ".concat(l.name," {").concat(m,"}")),l.dependencies&&(h["@layer ".concat(l.name)]=l.dependencies.map(function(y){return"@layer ".concat(y,", ").concat(l.name,";")}).join(` -`))):m="{".concat(m,"}"),[m,h]};function H7(e,t){return up("".concat(e.join("%")).concat(t))}function Eie(){return null}var W7="style";function Z$(e,t){var r=e.token,n=e.path,a=e.hashId,i=e.layer,o=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=d.useContext(dv),f=u.autoClear;u.mock;var m=u.defaultCache,h=u.hashPriority,p=u.container,g=u.ssrInline,v=u.transformers,y=u.linters,x=u.cache,b=u.layer,S=r._tokenKey,w=[S];b&&w.push("layer"),w.push.apply(w,De(n));var E=X$,C=NP(W7,w,function(){var N=w.join("|");if(xie(N)){var D=bie(N),k=me(D,2),R=k[0],A=k[1];if(R)return[R,S,A,{},s,c]}var j=t(),F=Cie(j,{hashId:a,hashPriority:h,layer:b?i:void 0,path:n.join("-"),transformers:v,linters:y}),M=me(F,2),V=M[0],K=M[1],L=rx(V),B=H7(w,L);return[L,S,B,K,s,c]},function(N,D){var k=me(N,3),R=k[2];(D||f)&&X$&&dp(R,{mark:ys,attachTo:p})},function(N){var D=me(N,4),k=D[0];D[1];var R=D[2],A=D[3];if(E&&k!==L7){var j={mark:ys,prepend:b?!1:"queue",attachTo:p,priority:c},F=typeof o=="function"?o():o;F&&(j.csp={nonce:F});var M=[],V=[];Object.keys(A).forEach(function(L){L.startsWith("@layer")?M.push(L):V.push(L)}),M.forEach(function(L){Cl(rx(A[L]),"_layer-".concat(L),ae(ae({},j),{},{prepend:!0}))});var K=Cl(k,R,j);K[xc]=x.instanceId,K.setAttribute(p0,S),V.forEach(function(L){Cl(rx(A[L]),"_effect-".concat(L),j)})}}),O=me(C,3),_=O[0],P=O[1],I=O[2];return function(N){var D;return!g||E||!m?D=d.createElement(Eie,null):D=d.createElement("style",Oe({},J(J({},p0,P),ys,I),{dangerouslySetInnerHTML:{__html:_}})),d.createElement(d.Fragment,null,D,N)}}var $ie=function(t,r,n){var a=me(t,6),i=a[0],o=a[1],s=a[2],l=a[3],c=a[4],u=a[5],f=n||{},m=f.plain;if(c)return null;var h=i,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return h=qx(i,o,s,p,m),l&&Object.keys(l).forEach(function(g){if(!r[g]){r[g]=!0;var v=rx(l[g]),y=qx(v,o,"_effect-".concat(g),p,m);g.startsWith("@layer")?h=y+h:h+=y}}),[u,s,h]},V7="cssVar",_ie=function(t,r){var n=t.key,a=t.prefix,i=t.unitless,o=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=d.useContext(dv),f=u.cache.instanceId,m=u.container,h=s._tokenKey,p=[].concat(De(t.path),[n,c,h]),g=NP(V7,p,function(){var v=r(),y=N7(v,n,{prefix:a,unitless:i,ignore:o,scope:c}),x=me(y,2),b=x[0],S=x[1],w=H7(p,S);return[b,S,w,n]},function(v){var y=me(v,3),x=y[2];X$&&dp(x,{mark:ys,attachTo:m})},function(v){var y=me(v,3),x=y[1],b=y[2];if(x){var S=Cl(x,b,{mark:ys,prepend:"queue",attachTo:m,priority:-999});S[xc]=f,S.setAttribute(p0,n)}});return g},Oie=function(t,r,n){var a=me(t,4),i=a[1],o=a[2],s=a[3],l=n||{},c=l.plain;if(!i)return null;var u=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},m=qx(i,s,o,f,c);return[u,o,m]};J(J(J({},W7,$ie),k7,Jae),V7,Oie);var fr=function(){function e(t,r){Wr(this,e),J(this,"name",void 0),J(this,"style",void 0),J(this,"_keyframe",!0),this.name=t,this.style=r}return Vr(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e}();function rf(e){return e.notSplit=!0,e}rf(["borderTop","borderBottom"]),rf(["borderTop"]),rf(["borderBottom"]),rf(["borderLeft","borderRight"]),rf(["borderLeft"]),rf(["borderRight"]);var Tie=d.createContext({});const AP=Tie;function U7(e){return $7(e)||S7(e)||OP(e)||_7()}function yi(e,t){for(var r=e,n=0;n3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!yi(e,t.slice(0,-1))?e:K7(e,t,r,n)}function Pie(e){return bt(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function eM(e){return Array.isArray(e)?[]:{}}var Iie=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Mf(){for(var e=arguments.length,t=new Array(e),r=0;r{const e=()=>{};return e.deprecated=Nie,e},G7=d.createContext(void 0);var q7={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},Rie={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Aie=ae(ae({},Rie),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",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",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",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"});const Mie={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},X7=Mie,Die={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Aie),timePickerLocale:Object.assign({},X7)},Xx=Die,Ki="${label} is not a valid ${type}",jie={locale:"en",Pagination:q7,DatePicker:Xx,TimePicker:X7,Calendar:Xx,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ki,method:Ki,array:Ki,object:Ki,number:Ki,date:Ki,boolean:Ki,integer:Ki,float:Ki,regexp:Ki,email:Ki,url:Ki,hex:Ki},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}},Vo=jie;let nx=Object.assign({},Vo.Modal),ax=[];const tM=()=>ax.reduce((e,t)=>Object.assign(Object.assign({},e),t),Vo.Modal);function Fie(e){if(e){const t=Object.assign({},e);return ax.push(t),nx=tM(),()=>{ax=ax.filter(r=>r!==t),nx=tM()}}nx=Object.assign({},Vo.Modal)}function Y7(){return nx}const Lie=d.createContext(void 0),MP=Lie,Bie=(e,t)=>{const r=d.useContext(MP),n=d.useMemo(()=>{var i;const o=t||Vo[e],s=(i=r==null?void 0:r[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof o=="function"?o():o),s||{})},[e,t,r]),a=d.useMemo(()=>{const i=r==null?void 0:r.locale;return r!=null&&r.exist&&!i?Vo.locale:i},[r]);return[n,a]},Hi=Bie,zie="internalMark",Hie=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;d.useEffect(()=>Fie(t==null?void 0:t.Modal),[t]);const a=d.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return d.createElement(MP.Provider,{value:a},r)},Wie=Hie,Q7={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"},Vie=Object.assign(Object.assign({},Q7),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",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'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),mp=Vie,Ca=Math.round;function ZC(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)n[a]=t(n[a]||0,r[a]||"",a);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const rM=(e,t,r)=>r===0?e:e/100;function Mm(e,t){const r=t||255;return e>r?r:e<0?0:e}class sr{constructor(t){J(this,"isValid",!0),J(this,"r",0),J(this,"g",0),J(this,"b",0),J(this,"a",1),J(this,"_h",void 0),J(this,"_s",void 0),J(this,"_l",void 0),J(this,"_v",void 0),J(this,"_max",void 0),J(this,"_min",void 0),J(this,"_brightness",void 0);function r(a){return a[0]in t&&a[1]in t&&a[2]in t}if(t)if(typeof t=="string"){let i=function(o){return a.startsWith(o)};var n=i;const a=t.trim();/^#?[A-F\d]{3,8}$/i.test(a)?this.fromHexString(a):i("rgb")?this.fromRgbString(a):i("hsl")?this.fromHslString(a):(i("hsv")||i("hsb"))&&this.fromHsvString(a)}else if(t instanceof sr)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=Mm(t.r),this.g=Mm(t.g),this.b=Mm(t.b),this.a=typeof t.a=="number"?Mm(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(i){const o=i/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),a=t(this.b);return .2126*r+.7152*n+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Ca(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),n=this.getSaturation();let a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:r,s:n,l:a,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:r,s:n,l:a,a:this.a})}mix(t,r=50){const n=this._c(t),a=r/100,i=s=>(n[s]-this[s])*a+this[s],o={r:Ca(i("r")),g:Ca(i("g")),b:Ca(i("b")),a:Ca(i("a")*100)/100};return this._c(o)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),n=this.a+r.a*(1-this.a),a=i=>Ca((this[i]*this.a+r[i]*r.a*(1-this.a))/n);return this._c({r:a("r"),g:a("g"),b:a("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=Ca(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=Ca(this.getSaturation()*100),n=Ca(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){const a=this.clone();return a[t]=Mm(r,n),a}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function n(a,i){return parseInt(r[a]+r[i||a],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof a=="number"?a:1,r<=0){const m=Ca(n*255);this.r=m,this.g=m,this.b=m}let i=0,o=0,s=0;const l=t/60,c=(1-Math.abs(2*n-1))*r,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(i=c,o=u):l>=1&&l<2?(i=u,o=c):l>=2&&l<3?(o=c,s=u):l>=3&&l<4?(o=u,s=c):l>=4&&l<5?(i=u,s=c):l>=5&&l<6&&(i=c,s=u);const f=n-c/2;this.r=Ca((i+f)*255),this.g=Ca((o+f)*255),this.b=Ca((s+f)*255)}fromHsv({h:t,s:r,v:n,a}){this._h=t%360,this._s=r,this._v=n,this.a=typeof a=="number"?a:1;const i=Ca(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;const o=t/60,s=Math.floor(o),l=o-s,c=Ca(n*(1-r)*255),u=Ca(n*(1-r*l)*255),f=Ca(n*(1-r*(1-l))*255);switch(s){case 0:this.g=f,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=f;break;case 3:this.r=c,this.g=u;break;case 4:this.r=f,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const r=ZC(t,rM);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=ZC(t,rM);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=ZC(t,(n,a)=>a.includes("%")?Ca(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var Fg=2,nM=.16,Uie=.05,Kie=.05,Gie=.15,Z7=5,J7=4,qie=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function aM(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Fg*t:Math.round(e.h)+Fg*t:n=r?Math.round(e.h)+Fg*t:Math.round(e.h)-Fg*t,n<0?n+=360:n>=360&&(n-=360),n}function iM(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-nM*t:t===J7?n=e.s+nM:n=e.s+Uie*t,n>1&&(n=1),r&&t===Z7&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function oM(e,t,r){var n;return r?n=e.v+Kie*t:n=e.v-Gie*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function hp(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new sr(e),a=n.toHsv(),i=Z7;i>0;i-=1){var o=new sr({h:aM(a,i,!0),s:iM(a,i,!0),v:oM(a,i,!0)});r.push(o)}r.push(n);for(var s=1;s<=J7;s+=1){var l=new sr({h:aM(a,s),s:iM(a,s),v:oM(a,s)});r.push(l)}return t.theme==="dark"?qie.map(function(c){var u=c.index,f=c.amount;return new sr(t.backgroundColor||"#141414").mix(r[u],f).toHexString()}):r.map(function(c){return c.toHexString()})}var Yf={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},J$=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];J$.primary=J$[5];var e_=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];e_.primary=e_[5];var t_=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];t_.primary=t_[5];var Yx=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Yx.primary=Yx[5];var r_=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];r_.primary=r_[5];var n_=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];n_.primary=n_[5];var a_=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];a_.primary=a_[5];var i_=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];i_.primary=i_[5];var y0=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];y0.primary=y0[5];var o_=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];o_.primary=o_[5];var s_=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];s_.primary=s_[5];var l_=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];l_.primary=l_[5];var c_=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];c_.primary=c_[5];var JC={red:J$,volcano:e_,orange:t_,gold:Yx,yellow:r_,lime:n_,green:a_,cyan:i_,blue:y0,geekblue:o_,purple:s_,magenta:l_,grey:c_};function Xie(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){const{colorSuccess:n,colorWarning:a,colorError:i,colorInfo:o,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),f=t(n),m=t(a),h=t(i),p=t(o),g=r(l,c),v=e.colorLink||e.colorInfo,y=t(v),x=new sr(h[1]).mix(new sr(h[3]),50).toHexString();return Object.assign(Object.assign({},g),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[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:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:x,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:p[1],colorInfoBgHover:p[2],colorInfoBorder:p[3],colorInfoBorderHover:p[4],colorInfoHover:p[4],colorInfo:p[6],colorInfoActive:p[7],colorInfoTextHover:p[8],colorInfoText:p[9],colorInfoTextActive:p[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new sr("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const Yie=e=>{let t=e,r=e,n=e,a=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?a=4:e>=8&&(a=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:a}},Qie=Yie;function Zie(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:a}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:a+1},Qie(n))}const Jie=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},eoe=Jie;function ix(e){return(e+8)/e}function toe(e){const t=Array.from({length:10}).map((r,n)=>{const a=n-1,i=e*Math.pow(Math.E,a/5),o=n>1?Math.floor(i):Math.ceil(i);return Math.floor(o/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:ix(r)}))}const roe=e=>{const t=toe(e),r=t.map(u=>u.size),n=t.map(u=>u.lineHeight),a=r[1],i=r[0],o=r[2],s=n[1],l=n[0],c=n[2];return{fontSizeSM:i,fontSize:a,fontSizeLG:o,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*a),fontHeightLG:Math.round(c*o),fontHeightSM:Math.round(l*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},noe=roe;function aoe(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const xo=(e,t)=>new sr(e).setA(t).toRgbString(),Dm=(e,t)=>new sr(e).darken(t).toHexString(),ioe=e=>{const t=hp(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]}},ooe=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:xo(n,.88),colorTextSecondary:xo(n,.65),colorTextTertiary:xo(n,.45),colorTextQuaternary:xo(n,.25),colorFill:xo(n,.15),colorFillSecondary:xo(n,.06),colorFillTertiary:xo(n,.04),colorFillQuaternary:xo(n,.02),colorBgSolid:xo(n,1),colorBgSolidHover:xo(n,.75),colorBgSolidActive:xo(n,.95),colorBgLayout:Dm(r,4),colorBgContainer:Dm(r,0),colorBgElevated:Dm(r,0),colorBgSpotlight:xo(n,.85),colorBgBlur:"transparent",colorBorder:Dm(r,15),colorBorderSecondary:Dm(r,6)}};function soe(e){Yf.pink=Yf.magenta,JC.pink=JC.magenta;const t=Object.keys(Q7).map(r=>{const n=e[r]===Yf[r]?JC[r]:hp(e[r]);return Array.from({length:10},()=>1).reduce((a,i,o)=>(a[`${r}-${o+1}`]=n[o],a[`${r}${o+1}`]=n[o],a),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Xie(e,{generateColorPalettes:ioe,generateNeutralColorPalettes:ooe})),noe(e.fontSize)),aoe(e)),eoe(e)),Zie(e))}const loe=q$(soe),e9=loe,u_={token:mp,override:{override:mp},hashed:!0},t9=ve.createContext(u_),pp="ant",Yb="anticon",coe=["outlined","borderless","filled","underlined"],uoe=(e,t)=>t||(e?`${pp}-${e}`:pp),Nt=d.createContext({getPrefixCls:uoe,iconPrefixCls:Yb}),sM={};function oa(e){const t=d.useContext(Nt),{getPrefixCls:r,direction:n,getPopupContainer:a}=t,i=t[e];return Object.assign(Object.assign({classNames:sM,styles:sM},i),{getPrefixCls:r,direction:n,getPopupContainer:a})}const doe=`-ant-${Date.now()}-${Math.random()}`;function foe(e,t){const r={},n=(o,s)=>{let l=o.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},a=(o,s)=>{const l=new sr(o),c=hp(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=c[1],r[`${s}-color-hover`]=c[4],r[`${s}-color-active`]=c[6],r[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=c[0],r[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){a(t.primaryColor,"primary");const o=new sr(t.primaryColor),s=hp(o.toRgbString());s.forEach((c,u)=>{r[`primary-${u+1}`]=c}),r["primary-color-deprecated-l-35"]=n(o,c=>c.lighten(35)),r["primary-color-deprecated-l-20"]=n(o,c=>c.lighten(20)),r["primary-color-deprecated-t-20"]=n(o,c=>c.tint(20)),r["primary-color-deprecated-t-50"]=n(o,c=>c.tint(50)),r["primary-color-deprecated-f-12"]=n(o,c=>c.setA(c.a*.12));const l=new sr(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,c=>c.setA(c.a*.3)),r["primary-color-active-deprecated-d-02"]=n(l,c=>c.darken(2))}return t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info"),` - :root { - ${Object.keys(r).map(o=>`--${e}-${o}: ${r[o]};`).join(` -`)} - } - `.trim()}function moe(e,t){const r=foe(e,t);Aa()&&Cl(r,`${doe}-dynamic-theme`)}const d_=d.createContext(!1),DP=({children:e,disabled:t})=>{const r=d.useContext(d_);return d.createElement(d_.Provider,{value:t??r},e)},Wi=d_,f_=d.createContext(void 0),hoe=({children:e,size:t})=>{const r=d.useContext(f_);return d.createElement(f_.Provider,{value:t||r},e)},fv=f_;function poe(){const e=d.useContext(Wi),t=d.useContext(fv);return{componentDisabled:e,componentSize:t}}var r9=Vr(function e(){Wr(this,e)}),n9="CALC_UNIT",voe=new RegExp(n9,"g");function e2(e){return typeof e=="number"?"".concat(e).concat(n9):e}var goe=function(e){yo(r,e);var t=Qo(r);function r(n,a){var i;Wr(this,r),i=t.call(this),J(vt(i),"result",""),J(vt(i),"unitlessCssVar",void 0),J(vt(i),"lowPriority",void 0);var o=bt(n);return i.unitlessCssVar=a,n instanceof r?i.result="(".concat(n.result,")"):o==="number"?i.result=e2(n):o==="string"&&(i.result=n),i}return Vr(r,[{key:"add",value:function(a){return a instanceof r?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(e2(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof r?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(e2(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof r?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var i=this,o=a||{},s=o.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return i.result.includes(c)})&&(l=!1),this.result=this.result.replace(voe,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r}(r9),yoe=function(e){yo(r,e);var t=Qo(r);function r(n){var a;return Wr(this,r),a=t.call(this),J(vt(a),"result",0),n instanceof r?a.result=n.result:typeof n=="number"&&(a.result=n),a}return Vr(r,[{key:"add",value:function(a){return a instanceof r?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof r?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof r?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof r?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),r}(r9),xoe=function(t,r){var n=t==="css"?goe:yoe;return function(a){return new n(a,r)}},lM=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function qt(e){var t=d.useRef();t.current=e;var r=d.useCallback(function(){for(var n,a=arguments.length,i=new Array(a),o=0;o1e4){var n=Date.now();this.lastAccessBeat.forEach(function(a,i){n-a>Coe&&(r.map.delete(i),r.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),fM=new Eoe;function $oe(e,t){return ve.useMemo(function(){var r=fM.get(t);if(r)return r;var n=e();return fM.set(t,n),n},t)}var _oe=function(){return{}};function Ooe(e){var t=e.useCSP,r=t===void 0?_oe:t,n=e.useToken,a=e.usePrefix,i=e.getResetStyles,o=e.getCommonStyle,s=e.getCompUnitless;function l(m,h,p,g){var v=Array.isArray(m)?m[0]:m;function y(O){return"".concat(String(v)).concat(O.slice(0,1).toUpperCase()).concat(O.slice(1))}var x=(g==null?void 0:g.unitless)||{},b=typeof s=="function"?s(m):{},S=ae(ae({},b),{},J({},y("zIndexPopup"),!0));Object.keys(x).forEach(function(O){S[y(O)]=x[O]});var w=ae(ae({},g),{},{unitless:S,prefixToken:y}),E=u(m,h,p,w),C=c(v,p,w);return function(O){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:O,P=E(O,_),I=me(P,2),N=I[1],D=C(_),k=me(D,2),R=k[0],A=k[1];return[R,N,A]}}function c(m,h,p){var g=p.unitless,v=p.injectStyle,y=v===void 0?!0:v,x=p.prefixToken,b=p.ignore,S=function(C){var O=C.rootCls,_=C.cssVar,P=_===void 0?{}:_,I=n(),N=I.realToken;return _ie({path:[m],prefix:P.prefix,key:P.key,unitless:g,ignore:b,token:N,scope:O},function(){var D=dM(m,N,h),k=cM(m,N,D,{deprecatedTokens:p==null?void 0:p.deprecatedTokens});return Object.keys(D).forEach(function(R){k[x(R)]=k[R],delete k[R]}),k}),null},w=function(C){var O=n(),_=O.cssVar;return[function(P){return y&&_?ve.createElement(ve.Fragment,null,ve.createElement(S,{rootCls:C,cssVar:_,component:m}),P):P},_==null?void 0:_.key]};return w}function u(m,h,p){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(m)?m:[m,m],y=me(v,1),x=y[0],b=v.join("-"),S=e.layer||{name:"antd"};return function(w){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,C=n(),O=C.theme,_=C.realToken,P=C.hashId,I=C.token,N=C.cssVar,D=a(),k=D.rootPrefixCls,R=D.iconPrefixCls,A=r(),j=N?"css":"js",F=$oe(function(){var W=new Set;return N&&Object.keys(g.unitless||{}).forEach(function(z){W.add(Zy(z,N.prefix)),W.add(Zy(z,lM(x,N.prefix)))}),xoe(j,W)},[j,x,N==null?void 0:N.prefix]),M=woe(j),V=M.max,K=M.min,L={theme:O,token:I,hashId:P,nonce:function(){return A.nonce},clientOnly:g.clientOnly,layer:S,order:g.order||-999};typeof i=="function"&&Z$(ae(ae({},L),{},{clientOnly:!1,path:["Shared",k]}),function(){return i(I,{prefix:{rootPrefixCls:k,iconPrefixCls:R},csp:A})});var B=Z$(ae(ae({},L),{},{path:[b,w,R]}),function(){if(g.injectStyle===!1)return[];var W=Soe(I),z=W.token,U=W.flush,X=dM(x,_,p),Y=".".concat(w),G=cM(x,_,X,{deprecatedTokens:g.deprecatedTokens});N&&X&&bt(X)==="object"&&Object.keys(X).forEach(function(fe){X[fe]="var(".concat(Zy(fe,lM(x,N.prefix)),")")});var Q=Zt(z,{componentCls:Y,prefixCls:w,iconCls:".".concat(R),antCls:".".concat(k),calc:F,max:V,min:K},N?X:G),ee=h(Q,{hashId:P,prefixCls:w,rootPrefixCls:k,iconPrefixCls:R});U(x,G);var H=typeof o=="function"?o(Q,w,E,g.resetFont):null;return[g.resetStyle===!1?null:H,ee]});return[B,P]}}function f(m,h,p){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=u(m,h,p,ae({resetStyle:!1,order:-998},g)),y=function(b){var S=b.prefixCls,w=b.rootCls,E=w===void 0?S:w;return v(S,E),null};return y}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:u}}const Hc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Toe="5.29.2";function r2(e){return e>=0&&e<=255}function ah(e,t){const{r,g:n,b:a,a:i}=new sr(e).toRgb();if(i<1)return e;const{r:o,g:s,b:l}=new sr(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((r-o*(1-c))/c),f=Math.round((n-s*(1-c))/c),m=Math.round((a-l*(1-c))/c);if(r2(u)&&r2(f)&&r2(m))return new sr({r:u,g:f,b:m,a:Math.round(c*100)/100}).toRgbString()}return new sr({r,g:n,b:a,a:1}).toRgbString()}var Poe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{delete n[m]});const a=Object.assign(Object.assign({},r),n),i=480,o=576,s=768,l=992,c=1200,u=1600;if(a.motion===!1){const m="0s";a.motionDurationFast=m,a.motionDurationMid=m,a.motionDurationSlow=m}return Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:ah(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:ah(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:ah(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*3,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:ah(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.sizeXXL,boxShadow:` - 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) - `,boxShadowSecondary:` - 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) - `,boxShadowTertiary:` - 0 1px 2px 0 rgba(0, 0, 0, 0.03), - 0 1px 6px -1px rgba(0, 0, 0, 0.02), - 0 2px 4px 0 rgba(0, 0, 0, 0.02) - `,screenXS:i,screenXSMin:i,screenXSMax:o-1,screenSM:o,screenSMMin:o,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:` - 0 1px 2px -2px ${new sr("rgba(0, 0, 0, 0.16)").toRgbString()}, - 0 3px 6px 0 ${new sr("rgba(0, 0, 0, 0.12)").toRgbString()}, - 0 5px 12px 4px ${new sr("rgba(0, 0, 0, 0.09)").toRgbString()} - `,boxShadowDrawerRight:` - -6px 0 16px 0 rgba(0, 0, 0, 0.08), - -3px 0 6px -4px rgba(0, 0, 0, 0.12), - -9px 0 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerLeft:` - 6px 0 16px 0 rgba(0, 0, 0, 0.08), - 3px 0 6px -4px rgba(0, 0, 0, 0.12), - 9px 0 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowDrawerUp:` - 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) - `,boxShadowDrawerDown:` - 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)"}),n)}var mM=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const n=r.getDerivativeToken(e),{override:a}=t,i=mM(t,["override"]);let o=Object.assign(Object.assign({},n),{override:a});return o=i9(o),i&&Object.entries(i).forEach(([s,l])=>{const{theme:c}=l,u=mM(l,["theme"]);let f=u;c&&(f=s9(Object.assign(Object.assign({},o),u),{override:u},c)),o[s]=f}),o};function Ga(){const{token:e,hashed:t,theme:r,override:n,cssVar:a}=ve.useContext(t9),i=`${Toe}-${t||""}`,o=r||e9,[s,l,c]=Zae(o,[mp,e],{salt:i,override:n,getComputedToken:s9,formatToken:i9,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:o9,ignore:Ioe,preserve:Noe}});return[o,c,t?l:"",s,a]}const Uo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},dr=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),V0=()=>({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"}}),rl=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),koe=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Roe=(e,t,r,n)=>{const a=`[class^="${t}"], [class*=" ${t}"]`,i=r?`.${r}`:a,o={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),o),{[a]:o})}},nl=(e,t)=>({outline:`${le(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Nl=(e,t)=>({"&:focus-visible":nl(e,t)}),l9=e=>({[`.${e}`]:Object.assign(Object.assign({},V0()),{[`.${e} .${e}-icon`]:{display:"block"}})}),jP=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},Nl(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:lr,genComponentStyleHook:Aoe,genSubStyleComponent:U0}=Ooe({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=d.useContext(Nt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,a]=Ga();return{theme:e,realToken:t,hashId:r,token:n,cssVar:a}},useCSP:()=>{const{csp:e}=d.useContext(Nt);return e??{}},getResetStyles:(e,t)=>{var r;const n=koe(e);return[n,{"&":n},l9((r=t==null?void 0:t.prefix.iconPrefixCls)!==null&&r!==void 0?r:Yb)]},getCommonStyle:Roe,getCompUnitless:()=>o9});function c9(e,t){return Hc.reduce((r,n)=>{const a=e[`${n}1`],i=e[`${n}3`],o=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:a,lightBorderColor:i,darkColor:o,textColor:s}))},{})}const Moe=(e,t)=>{const[r,n]=Ga();return Z$({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>l9(e))},Doe=Moe,joe=Object.assign({},F0),{useId:hM}=joe,Foe=()=>"",Loe=typeof hM>"u"?Foe:hM,Boe=Loe;function zoe(e,t,r){var n;lu();const a=e||{},i=a.inherit===!1||!t?Object.assign(Object.assign({},u_),{hashed:(n=t==null?void 0:t.hashed)!==null&&n!==void 0?n:u_.hashed,cssVar:t==null?void 0:t.cssVar}):t,o=Boe();return Md(()=>{var s,l;if(!e)return t;const c=Object.assign({},i.components);Object.keys(e.components||{}).forEach(m=>{c[m]=Object.assign(Object.assign({},c[m]),e.components[m])});const u=`css-var-${o.replace(/:/g,"")}`,f=((s=a.cssVar)!==null&&s!==void 0?s:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r==null?void 0:r.prefixCls},typeof i.cssVar=="object"?i.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((l=a.cssVar)===null||l===void 0?void 0:l.key)||u});return Object.assign(Object.assign(Object.assign({},i),a),{token:Object.assign(Object.assign({},i.token),a.token),components:c,cssVar:f})},[a,i],(s,l)=>s.some((c,u)=>{const f=l[u];return!tl(c,f,!0)}))}var Hoe=["children"],u9=d.createContext({});function Woe(e){var t=e.children,r=Rt(e,Hoe);return d.createElement(u9.Provider,{value:r},t)}var Voe=function(e){yo(r,e);var t=Qo(r);function r(){return Wr(this,r),t.apply(this,arguments)}return Vr(r,[{key:"render",value:function(){return this.props.children}}]),r}(d.Component);function Uoe(e){var t=d.useReducer(function(s){return s+1},0),r=me(t,2),n=r[1],a=d.useRef(e),i=qt(function(){return a.current}),o=qt(function(s){a.current=typeof s=="function"?s(a.current):s,n()});return[i,o]}var ac="none",Lg="appear",Bg="enter",zg="leave",pM="none",ss="prepare",Df="start",jf="active",FP="end",d9="prepared";function vM(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function Koe(e,t){var r={animationend:vM("Animation","AnimationEnd"),transitionend:vM("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var Goe=Koe(Aa(),typeof window<"u"?window:{}),f9={};if(Aa()){var qoe=document.createElement("div");f9=qoe.style}var Hg={};function m9(e){if(Hg[e])return Hg[e];var t=Goe[e];if(t)for(var r=Object.keys(t),n=r.length,a=0;a1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Ut(function(){a<=1?n({isCanceled:function(){return i!==e.current}}):r(n,a-1)});e.current=i}return d.useEffect(function(){return function(){t()}},[]),[r,t]};var Qoe=[ss,Df,jf,FP],Zoe=[ss,d9],y9=!1,Joe=!0;function x9(e){return e===jf||e===FP}const ese=function(e,t,r){var n=fd(pM),a=me(n,2),i=a[0],o=a[1],s=Yoe(),l=me(s,2),c=l[0],u=l[1];function f(){o(ss,!0)}var m=t?Zoe:Qoe;return g9(function(){if(i!==pM&&i!==FP){var h=m.indexOf(i),p=m[h+1],g=r(i);g===y9?o(p,!0):p&&c(function(v){function y(){v.isCanceled()||o(p,!0)}g===!0?y():Promise.resolve(g).then(y)})}},[e,i]),d.useEffect(function(){return function(){u()}},[]),[f,i]};function tse(e,t,r,n){var a=n.motionEnter,i=a===void 0?!0:a,o=n.motionAppear,s=o===void 0?!0:o,l=n.motionLeave,c=l===void 0?!0:l,u=n.motionDeadline,f=n.motionLeaveImmediately,m=n.onAppearPrepare,h=n.onEnterPrepare,p=n.onLeavePrepare,g=n.onAppearStart,v=n.onEnterStart,y=n.onLeaveStart,x=n.onAppearActive,b=n.onEnterActive,S=n.onLeaveActive,w=n.onAppearEnd,E=n.onEnterEnd,C=n.onLeaveEnd,O=n.onVisibleChanged,_=fd(),P=me(_,2),I=P[0],N=P[1],D=Uoe(ac),k=me(D,2),R=k[0],A=k[1],j=fd(null),F=me(j,2),M=F[0],V=F[1],K=R(),L=d.useRef(!1),B=d.useRef(null);function W(){return r()}var z=d.useRef(!1);function U(){A(ac),V(null,!0)}var X=qt(function(pe){var Pe=R();if(Pe!==ac){var $e=W();if(!(pe&&!pe.deadline&&pe.target!==$e)){var Ee=z.current,He;Pe===Lg&&Ee?He=w==null?void 0:w($e,pe):Pe===Bg&&Ee?He=E==null?void 0:E($e,pe):Pe===zg&&Ee&&(He=C==null?void 0:C($e,pe)),Ee&&He!==!1&&U()}}}),Y=Xoe(X),G=me(Y,1),Q=G[0],ee=function(Pe){switch(Pe){case Lg:return J(J(J({},ss,m),Df,g),jf,x);case Bg:return J(J(J({},ss,h),Df,v),jf,b);case zg:return J(J(J({},ss,p),Df,y),jf,S);default:return{}}},H=d.useMemo(function(){return ee(K)},[K]),fe=ese(K,!e,function(pe){if(pe===ss){var Pe=H[ss];return Pe?Pe(W()):y9}if(q in H){var $e;V((($e=H[q])===null||$e===void 0?void 0:$e.call(H,W(),null))||null)}return q===jf&&K!==ac&&(Q(W()),u>0&&(clearTimeout(B.current),B.current=setTimeout(function(){X({deadline:!0})},u))),q===d9&&U(),Joe}),te=me(fe,2),re=te[0],q=te[1],ne=x9(q);z.current=ne;var he=d.useRef(null);g9(function(){if(!(L.current&&he.current===t)){N(t);var pe=L.current;L.current=!0;var Pe;!pe&&t&&s&&(Pe=Lg),pe&&t&&i&&(Pe=Bg),(pe&&!t&&c||!pe&&f&&!t&&c)&&(Pe=zg);var $e=ee(Pe);Pe&&(e||$e[ss])?(A(Pe),re()):A(ac),he.current=t}},[t]),d.useEffect(function(){(K===Lg&&!s||K===Bg&&!i||K===zg&&!c)&&A(ac)},[s,i,c]),d.useEffect(function(){return function(){L.current=!1,clearTimeout(B.current)}},[]);var ye=d.useRef(!1);d.useEffect(function(){I&&(ye.current=!0),I!==void 0&&K===ac&&((ye.current||I)&&(O==null||O(I)),ye.current=!0)},[I,K]);var xe=M;return H[ss]&&q===Df&&(xe=ae({transition:"none"},xe)),[K,q,xe,I??t]}function rse(e){var t=e;bt(e)==="object"&&(t=e.transitionSupport);function r(a,i){return!!(a.motionName&&t&&i!==!1)}var n=d.forwardRef(function(a,i){var o=a.visible,s=o===void 0?!0:o,l=a.removeOnLeave,c=l===void 0?!0:l,u=a.forceRender,f=a.children,m=a.motionName,h=a.leavedClassName,p=a.eventProps,g=d.useContext(u9),v=g.motion,y=r(a,v),x=d.useRef(),b=d.useRef();function S(){try{return x.current instanceof HTMLElement?x.current:Qy(b.current)}catch{return null}}var w=tse(y,s,S,a),E=me(w,4),C=E[0],O=E[1],_=E[2],P=E[3],I=d.useRef(P);P&&(I.current=!0);var N=d.useCallback(function(F){x.current=F,lp(i,F)},[i]),D,k=ae(ae({},p),{},{visible:s});if(!f)D=null;else if(C===ac)P?D=f(ae({},k),N):!c&&I.current&&h?D=f(ae(ae({},k),{},{className:h}),N):u||!c&&!h?D=f(ae(ae({},k),{},{style:{display:"none"}}),N):D=null;else{var R;O===ss?R="prepare":x9(O)?R="active":O===Df&&(R="start");var A=xM(m,"".concat(C,"-").concat(R));D=f(ae(ae({},k),{},{className:ce(xM(m,C),J(J({},A,A&&R),m,typeof m=="string")),style:_}),N)}if(d.isValidElement(D)&&_s(D)){var j=su(D);j||(D=d.cloneElement(D,{ref:N}))}return d.createElement(Voe,{ref:b},D)});return n.displayName="CSSMotion",n}const Vi=rse(v9);var h_="add",p_="keep",v_="remove",n2="removed";function nse(e){var t;return e&&bt(e)==="object"&&"key"in e?t=e:t={key:e},ae(ae({},t),{},{key:String(t.key)})}function g_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(nse)}function ase(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,a=t.length,i=g_(e),o=g_(t);i.forEach(function(c){for(var u=!1,f=n;f1});return l.forEach(function(c){r=r.filter(function(u){var f=u.key,m=u.status;return f!==c||m!==v_}),r.forEach(function(u){u.key===c&&(u.status=p_)})}),r}var ise=["component","children","onVisibleChanged","onAllRemoved"],ose=["status"],sse=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function lse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Vi,r=function(n){yo(i,n);var a=Qo(i);function i(){var o;Wr(this,i);for(var s=arguments.length,l=new Array(s),c=0;cnull;var dse=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);at.endsWith("Color"))}const pse=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:a}=e;t!==void 0&&(Qx=t),r!==void 0&&(b9=r),"holderRender"in e&&(w9=a),n&&(hse(n)?moe(ox(),n):S9=n)},C9=()=>({getPrefixCls:(e,t)=>t||(e?`${ox()}-${e}`:ox()),getIconPrefixCls:mse,getRootPrefixCls:()=>Qx||ox(),getTheme:()=>S9,holderRender:w9}),vse=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:a,anchor:i,form:o,locale:s,componentSize:l,direction:c,space:u,splitter:f,virtual:m,dropdownMatchSelectWidth:h,popupMatchSelectWidth:p,popupOverflow:g,legacyLocale:v,parentContext:y,iconPrefixCls:x,theme:b,componentDisabled:S,segmented:w,statistic:E,spin:C,calendar:O,carousel:_,cascader:P,collapse:I,typography:N,checkbox:D,descriptions:k,divider:R,drawer:A,skeleton:j,steps:F,image:M,layout:V,list:K,mentions:L,modal:B,progress:W,result:z,slider:U,breadcrumb:X,menu:Y,pagination:G,input:Q,textArea:ee,empty:H,badge:fe,radio:te,rate:re,switch:q,transfer:ne,avatar:he,message:ye,tag:xe,table:pe,card:Pe,tabs:$e,timeline:Ee,timePicker:He,upload:Fe,notification:nt,tree:qe,colorPicker:Ge,datePicker:Le,rangePicker:Ne,flex:Se,wave:je,dropdown:_e,warning:Me,tour:ge,tooltip:be,popover:Re,popconfirm:We,floatButton:at,floatButtonGroup:yt,variant:tt,inputNumber:it,treeSelect:ft}=e,lt=d.useCallback((ue,se)=>{const{prefixCls:ie}=e;if(se)return se;const oe=ie||y.getPrefixCls("");return ue?`${oe}-${ue}`:oe},[y.getPrefixCls,e.prefixCls]),mt=x||y.iconPrefixCls||Yb,Mt=r||y.csp;Doe(mt,Mt);const Ft=zoe(b,y.theme,{prefixCls:lt("")}),ht={csp:Mt,autoInsertSpaceInButton:n,alert:a,anchor:i,locale:s||v,direction:c,space:u,splitter:f,virtual:m,popupMatchSelectWidth:p??h,popupOverflow:g,getPrefixCls:lt,iconPrefixCls:mt,theme:Ft,segmented:w,statistic:E,spin:C,calendar:O,carousel:_,cascader:P,collapse:I,typography:N,checkbox:D,descriptions:k,divider:R,drawer:A,skeleton:j,steps:F,image:M,input:Q,textArea:ee,layout:V,list:K,mentions:L,modal:B,progress:W,result:z,slider:U,breadcrumb:X,menu:Y,pagination:G,empty:H,badge:fe,radio:te,rate:re,switch:q,transfer:ne,avatar:he,message:ye,tag:xe,table:pe,card:Pe,tabs:$e,timeline:Ee,timePicker:He,upload:Fe,notification:nt,tree:qe,colorPicker:Ge,datePicker:Le,rangePicker:Ne,flex:Se,wave:je,dropdown:_e,warning:Me,tour:ge,tooltip:be,popover:Re,popconfirm:We,floatButton:at,floatButtonGroup:yt,variant:tt,inputNumber:it,treeSelect:ft},St=Object.assign({},y);Object.keys(ht).forEach(ue=>{ht[ue]!==void 0&&(St[ue]=ht[ue])}),fse.forEach(ue=>{const se=e[ue];se&&(St[ue]=se)}),typeof n<"u"&&(St.button=Object.assign({autoInsertSpace:n},St.button));const xt=Md(()=>St,St,(ue,se)=>{const ie=Object.keys(ue),oe=Object.keys(se);return ie.length!==oe.length||ie.some(de=>ue[de]!==se[de])}),{layer:rt}=d.useContext(dv),Ye=d.useMemo(()=>({prefixCls:mt,csp:Mt,layer:rt?"antd":void 0}),[mt,Mt,rt]);let Ze=d.createElement(d.Fragment,null,d.createElement(use,{dropdownMatchSelectWidth:h}),t);const ct=d.useMemo(()=>{var ue,se,ie,oe;return Mf(((ue=Vo.Form)===null||ue===void 0?void 0:ue.defaultValidateMessages)||{},((ie=(se=xt.locale)===null||se===void 0?void 0:se.Form)===null||ie===void 0?void 0:ie.defaultValidateMessages)||{},((oe=xt.form)===null||oe===void 0?void 0:oe.validateMessages)||{},(o==null?void 0:o.validateMessages)||{})},[xt,o==null?void 0:o.validateMessages]);Object.keys(ct).length>0&&(Ze=d.createElement(G7.Provider,{value:ct},Ze)),s&&(Ze=d.createElement(Wie,{locale:s,_ANT_MARK__:zie},Ze)),(mt||Mt)&&(Ze=d.createElement(AP.Provider,{value:Ye},Ze)),l&&(Ze=d.createElement(hoe,{size:l},Ze)),Ze=d.createElement(cse,null,Ze);const Z=d.useMemo(()=>{const ue=Ft||{},{algorithm:se,token:ie,components:oe,cssVar:de}=ue,we=dse(ue,["algorithm","token","components","cssVar"]),Ae=se&&(!Array.isArray(se)||se.length>0)?q$(se):e9,Ce={};Object.entries(oe||{}).forEach(([Te,Xe])=>{const ke=Object.assign({},Xe);"algorithm"in ke&&(ke.algorithm===!0?ke.theme=Ae:(Array.isArray(ke.algorithm)||typeof ke.algorithm=="function")&&(ke.theme=q$(ke.algorithm)),delete ke.algorithm),Ce[Te]=ke});const Ie=Object.assign(Object.assign({},mp),ie);return Object.assign(Object.assign({},we),{theme:Ae,token:Ie,components:Ce,override:Object.assign({override:Ie},Ce),cssVar:de})},[Ft]);return b&&(Ze=d.createElement(t9.Provider,{value:Z},Ze)),xt.warning&&(Ze=d.createElement(kie.Provider,{value:xt.warning},Ze)),S!==void 0&&(Ze=d.createElement(DP,{disabled:S},Ze)),d.createElement(Nt.Provider,{value:xt},Ze)},K0=e=>{const t=d.useContext(Nt),r=d.useContext(MP);return d.createElement(vse,Object.assign({parentContext:t,legacyLocale:r},e))};K0.ConfigContext=Nt;K0.SizeContext=fv;K0.config=pse;K0.useConfig=poe;Object.defineProperty(K0,"SizeContext",{get:()=>fv});const Dd=K0;var gse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const yse=gse;function E9(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function xse(e){return E9(e)instanceof ShadowRoot}function Zx(e){return xse(e)?E9(e):null}function bse(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Sse(e,t){Br(e,"[@ant-design/icons] ".concat(t))}function SM(e){return bt(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(bt(e.icon)==="object"||typeof e.icon=="function")}function wM(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[bse(r)]=n}return t},{})}function y_(e,t,r){return r?ve.createElement(e.tag,ae(ae({key:t},wM(e.attrs)),r),(e.children||[]).map(function(n,a){return y_(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):ve.createElement(e.tag,ae({key:t},wM(e.attrs)),(e.children||[]).map(function(n,a){return y_(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function $9(e){return hp(e)[0]}function _9(e){return e?Array.isArray(e)?e:[e]:[]}var wse=` -.anticon { - display: inline-flex; - align-items: center; - color: inherit; - font-style: normal; - line-height: 0; - text-align: center; - text-transform: none; - vertical-align: -0.125em; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.anticon > * { - line-height: 1; -} - -.anticon svg { - display: inline-block; -} - -.anticon::before { - display: none; -} - -.anticon .anticon-icon { - display: block; -} - -.anticon[tabindex] { - cursor: pointer; -} - -.anticon-spin::before, -.anticon-spin { - display: inline-block; - -webkit-animation: loadingCircle 1s infinite linear; - animation: loadingCircle 1s infinite linear; -} - -@-webkit-keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} - -@keyframes loadingCircle { - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - } -} -`,Cse=function(t){var r=d.useContext(AP),n=r.csp,a=r.prefixCls,i=r.layer,o=wse;a&&(o=o.replace(/anticon/g,a)),i&&(o="@layer ".concat(i,` { -`).concat(o,` -}`)),d.useEffect(function(){var s=t.current,l=Zx(s);Cl(o,"@ant-design-icons",{prepend:!i,csp:n,attachTo:l})},[])},Ese=["icon","className","onClick","style","primaryColor","secondaryColor"],_h={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function $se(e){var t=e.primaryColor,r=e.secondaryColor;_h.primaryColor=t,_h.secondaryColor=r||$9(t),_h.calculated=!!r}function _se(){return ae({},_h)}var Qb=function(t){var r=t.icon,n=t.className,a=t.onClick,i=t.style,o=t.primaryColor,s=t.secondaryColor,l=Rt(t,Ese),c=d.useRef(),u=_h;if(o&&(u={primaryColor:o,secondaryColor:s||$9(o)}),Cse(c),Sse(SM(r),"icon should be icon definiton, but got ".concat(r)),!SM(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=ae(ae({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),y_(f.icon,"svg-".concat(f.name),ae(ae({className:n,onClick:a,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};Qb.displayName="IconReact";Qb.getTwoToneColors=_se;Qb.setTwoToneColors=$se;const BP=Qb;function O9(e){var t=_9(e),r=me(t,2),n=r[0],a=r[1];return BP.setTwoToneColors({primaryColor:n,secondaryColor:a})}function Ose(){var e=BP.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Tse=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];O9(y0.primary);var Zb=d.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,i=e.rotate,o=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=Rt(e,Tse),u=d.useContext(AP),f=u.prefixCls,m=f===void 0?"anticon":f,h=u.rootClassName,p=ce(h,m,J(J({},"".concat(m,"-").concat(n.name),!!n.name),"".concat(m,"-spin"),!!a||n.name==="loading"),r),g=o;g===void 0&&s&&(g=-1);var v=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,y=_9(l),x=me(y,2),b=x[0],S=x[1];return d.createElement("span",Oe({role:"img","aria-label":n.name},c,{ref:t,tabIndex:g,onClick:s,className:p}),d.createElement(BP,{icon:n,primaryColor:b,secondaryColor:S,style:v}))});Zb.displayName="AntdIcon";Zb.getTwoToneColor=Ose;Zb.setTwoToneColor=O9;const Wt=Zb;var Pse=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:yse}))},Ise=d.forwardRef(Pse);const mv=Ise;var Nse={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};const kse=Nse;var Rse=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:kse}))},Ase=d.forwardRef(Rse);const jd=Ase;var Mse={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const Dse=Mse;var jse=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:Dse}))},Fse=d.forwardRef(jse);const cu=Fse;var Lse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};const Bse=Lse;var zse=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:Bse}))},Hse=d.forwardRef(zse);const G0=Hse;var Wse={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};const Vse=Wse;var Use=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:Vse}))},Kse=d.forwardRef(Use);const zP=Kse;var Gse=`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 - encType form formAction formEncType formMethod formNoValidate formTarget frameBorder - headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity - is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media - mediaGroup method min minLength multiple muted name noValidate nonce open - optimum pattern placeholder poster preload radioGroup readOnly rel required - reversed role rowSpan rows sandbox scope scoped scrolling seamless selected - shape size sizes span spellCheck src srcDoc srcLang srcSet start step style - summary tabIndex target title type useMap value width wmode wrap`,qse=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown - onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick - onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown - onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel - onTouchEnd onTouchMove onTouchStart 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`,Xse="".concat(Gse," ").concat(qse).split(/[\s\n]+/),Yse="aria-",Qse="data-";function CM(e,t){return e.indexOf(t)===0}function Dn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=ae({},t);var n={};return Object.keys(e).forEach(function(a){(r.aria&&(a==="role"||CM(a,Yse))||r.data&&CM(a,Qse)||r.attr&&Xse.includes(a))&&(n[a]=e[a])}),n}function T9(e){return e&&ve.isValidElement(e)&&e.type===ve.Fragment}const HP=(e,t,r)=>ve.isValidElement(e)?ve.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function pa(e,t){return HP(e,e,t)}const Wg=(e,t,r,n,a)=>({background:e,border:`${le(n.lineWidth)} ${n.lineType} ${t}`,[`${a}-icon`]:{color:r}}),Zse=e=>{const{componentCls:t,motionDurationSlow:r,marginXS:n,marginSM:a,fontSize:i,fontSizeLG:o,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:c,withDescriptionIconSize:u,colorText:f,colorTextHeading:m,withDescriptionPadding:h,defaultPadding:p}=e;return{[t]:Object.assign(Object.assign({},dr(e)),{position:"relative",display:"flex",alignItems:"center",padding:p,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:n,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:s},"&-message":{color:m},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${r} ${c}, opacity ${r} ${c}, - padding-top ${r} ${c}, padding-bottom ${r} ${c}, - margin-bottom ${r} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:h,[`${t}-icon`]:{marginInlineEnd:a,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:n,color:m,fontSize:o},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},Jse=e=>{const{componentCls:t,colorSuccess:r,colorSuccessBorder:n,colorSuccessBg:a,colorWarning:i,colorWarningBorder:o,colorWarningBg:s,colorError:l,colorErrorBorder:c,colorErrorBg:u,colorInfo:f,colorInfoBorder:m,colorInfoBg:h}=e;return{[t]:{"&-success":Wg(a,n,r,e,t),"&-info":Wg(h,m,f,e,t),"&-warning":Wg(s,o,i,e,t),"&-error":Object.assign(Object.assign({},Wg(u,c,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},ele=e=>{const{componentCls:t,iconCls:r,motionDurationMid:n,marginXS:a,fontSizeIcon:i,colorIcon:o,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:a},[`${t}-close-icon`]:{marginInlineStart:a,padding:0,overflow:"hidden",fontSize:i,lineHeight:le(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${r}-close`]:{color:o,transition:`color ${n}`,"&:hover":{color:s}}},"&-close-text":{color:o,transition:`color ${n}`,"&:hover":{color:s}}}}},tle=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),rle=lr("Alert",e=>[Zse(e),Jse(e),ele(e)],tle);var EM=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{icon:t,prefixCls:r,type:n}=e,a=nle[n]||null;return t?HP(t,d.createElement("span",{className:`${r}-icon`},t),()=>({className:ce(`${r}-icon`,t.props.className)})):d.createElement(a,{className:`${r}-icon`})},ile=e=>{const{isClosable:t,prefixCls:r,closeIcon:n,handleClose:a,ariaProps:i}=e,o=n===!0||n===void 0?d.createElement(cu,null):n;return t?d.createElement("button",Object.assign({type:"button",onClick:a,className:`${r}-close-icon`,tabIndex:0},i),o):null},ole=d.forwardRef((e,t)=>{const{description:r,prefixCls:n,message:a,banner:i,className:o,rootClassName:s,style:l,onMouseEnter:c,onMouseLeave:u,onClick:f,afterClose:m,showIcon:h,closable:p,closeText:g,closeIcon:v,action:y,id:x}=e,b=EM(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[S,w]=d.useState(!1),E=d.useRef(null);d.useImperativeHandle(t,()=>({nativeElement:E.current}));const{getPrefixCls:C,direction:O,closable:_,closeIcon:P,className:I,style:N}=oa("alert"),D=C("alert",n),[k,R,A]=rle(D),j=z=>{var U;w(!0),(U=e.onClose)===null||U===void 0||U.call(e,z)},F=d.useMemo(()=>e.type!==void 0?e.type:i?"warning":"info",[e.type,i]),M=d.useMemo(()=>typeof p=="object"&&p.closeIcon||g?!0:typeof p=="boolean"?p:v!==!1&&v!==null&&v!==void 0?!0:!!_,[g,v,p,_]),V=i&&h===void 0?!0:h,K=ce(D,`${D}-${F}`,{[`${D}-with-description`]:!!r,[`${D}-no-icon`]:!V,[`${D}-banner`]:!!i,[`${D}-rtl`]:O==="rtl"},I,o,s,A,R),L=Dn(b,{aria:!0,data:!0}),B=d.useMemo(()=>typeof p=="object"&&p.closeIcon?p.closeIcon:g||(v!==void 0?v:typeof _=="object"&&_.closeIcon?_.closeIcon:P),[v,p,_,g,P]),W=d.useMemo(()=>{const z=p??_;return typeof z=="object"?EM(z,["closeIcon"]):{}},[p,_]);return k(d.createElement(Vi,{visible:!S,motionName:`${D}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:z=>({maxHeight:z.offsetHeight}),onLeaveEnd:m},({className:z,style:U},X)=>d.createElement("div",Object.assign({id:x,ref:xa(E,X),"data-show":!S,className:ce(K,z),style:Object.assign(Object.assign(Object.assign({},N),l),U),onMouseEnter:c,onMouseLeave:u,onClick:f,role:"alert"},L),V?d.createElement(ale,{description:r,icon:e.icon,prefixCls:D,type:F}):null,d.createElement("div",{className:`${D}-content`},a?d.createElement("div",{className:`${D}-message`},a):null,r?d.createElement("div",{className:`${D}-description`},r):null),y?d.createElement("div",{className:`${D}-action`},y):null,d.createElement(ile,{isClosable:M,prefixCls:D,closeIcon:B,handleClose:j,ariaProps:W}))))}),P9=ole;function sle(e,t,r){return t=dd(t),b7(e,Kb()?Reflect.construct(t,r||[],dd(e).constructor):t.apply(e,r))}let lle=function(e){function t(){var r;return Wr(this,t),r=sle(this,t,arguments),r.state={error:void 0,info:{componentStack:""}},r}return yo(t,e),Vr(t,[{key:"componentDidCatch",value:function(n,a){this.setState({error:n,info:a})}},{key:"render",value:function(){const{message:n,description:a,id:i,children:o}=this.props,{error:s,info:l}=this.state,c=(l==null?void 0:l.componentStack)||null,u=typeof n>"u"?(s||"").toString():n,f=typeof a>"u"?c:a;return s?d.createElement(P9,{id:i,type:"error",message:u,description:d.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):o}}])}(d.Component);const cle=lle,I9=P9;I9.ErrorBoundary=cle;const ule=I9,$M=e=>typeof e=="object"&&e!=null&&e.nodeType===1,_M=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Vg=(e,t)=>{if(e.clientHeight{const a=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!a&&(a.clientHeightit||i>e&&o=t&&s>=r?i-e-n:o>t&&sr?o-t+a:0,dle=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},OM=(e,t)=>{var r,n,a,i;if(typeof document>"u")return[];const{scrollMode:o,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:A=>A!==c;if(!$M(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,h=[];let p=e;for(;$M(p)&&f(p);){if(p=dle(p),p===m){h.push(p);break}p!=null&&p===document.body&&Vg(p)&&!Vg(document.documentElement)||p!=null&&Vg(p,u)&&h.push(p)}const g=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,v=(i=(a=window.visualViewport)==null?void 0:a.height)!=null?i:innerHeight,{scrollX:y,scrollY:x}=window,{height:b,width:S,top:w,right:E,bottom:C,left:O}=e.getBoundingClientRect(),{top:_,right:P,bottom:I,left:N}=(A=>{const j=window.getComputedStyle(A);return{top:parseFloat(j.scrollMarginTop)||0,right:parseFloat(j.scrollMarginRight)||0,bottom:parseFloat(j.scrollMarginBottom)||0,left:parseFloat(j.scrollMarginLeft)||0}})(e);let D=s==="start"||s==="nearest"?w-_:s==="end"?C+I:w+b/2-_+I,k=l==="center"?O+S/2-N+P:l==="end"?E+P:O-N;const R=[];for(let A=0;A=0&&O>=0&&C<=v&&E<=g&&(j===m&&!Vg(j)||w>=V&&C<=L&&O>=B&&E<=K))return R;const W=getComputedStyle(j),z=parseInt(W.borderLeftWidth,10),U=parseInt(W.borderTopWidth,10),X=parseInt(W.borderRightWidth,10),Y=parseInt(W.borderBottomWidth,10);let G=0,Q=0;const ee="offsetWidth"in j?j.offsetWidth-j.clientWidth-z-X:0,H="offsetHeight"in j?j.offsetHeight-j.clientHeight-U-Y:0,fe="offsetWidth"in j?j.offsetWidth===0?0:M/j.offsetWidth:0,te="offsetHeight"in j?j.offsetHeight===0?0:F/j.offsetHeight:0;if(m===j)G=s==="start"?D:s==="end"?D-v:s==="nearest"?Ug(x,x+v,v,U,Y,x+D,x+D+b,b):D-v/2,Q=l==="start"?k:l==="center"?k-g/2:l==="end"?k-g:Ug(y,y+g,g,z,X,y+k,y+k+S,S),G=Math.max(0,G+x),Q=Math.max(0,Q+y);else{G=s==="start"?D-V-U:s==="end"?D-L+Y+H:s==="nearest"?Ug(V,L,F,U,Y+H,D,D+b,b):D-(V+F/2)+H/2,Q=l==="start"?k-B-z:l==="center"?k-(B+M/2)+ee/2:l==="end"?k-K+X+ee:Ug(B,K,M,z,X+ee,k,k+S,S);const{scrollLeft:re,scrollTop:q}=j;G=te===0?0:Math.max(0,Math.min(q+G/te,j.scrollHeight-F/te+H)),Q=fe===0?0:Math.max(0,Math.min(re+Q/fe,j.scrollWidth-M/fe+ee)),D+=q-G,k+=re-Q}R.push({el:j,top:G,left:Q})}return R},fle=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function mle(e,t){if(!e.isConnected||!(a=>{let i=a;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const r=(a=>{const i=window.getComputedStyle(a);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((a=>typeof a=="object"&&typeof a.behavior=="function")(t))return t.behavior(OM(e,t));const n=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:a,top:i,left:o}of OM(e,fle(t))){const s=i-r.top+r.bottom,l=o-r.left+r.right;a.scroll({top:s,left:l,behavior:n})}}function x_(e){return e!=null&&e===e.window}const hle=e=>{var t,r;if(typeof window>"u")return 0;let n=0;return x_(e)?n=e.pageYOffset:e instanceof Document?n=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(n=e.scrollTop),e&&!x_(e)&&typeof n!="number"&&(n=(r=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||r===void 0?void 0:r.scrollTop),n},ple=hle;function vle(e,t,r,n){const a=r-t;return e/=n/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}function gle(e,t={}){const{getContainer:r=()=>window,callback:n,duration:a=450}=t,i=r(),o=ple(i),s=Date.now(),l=()=>{const u=Date.now()-s,f=vle(u>a?a:u,o,e,a);x_(i)?i.scrollTo(window.pageXOffset,f):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=f:i.scrollTop=f,u{const[,,,,t]=Ga();return t?`${e}-css-var`:""},vn=yle;var Qe={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var r=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||r>=Qe.F1&&r<=Qe.F12)return!1;switch(r){case Qe.ALT:case Qe.CAPS_LOCK:case Qe.CONTEXT_MENU:case Qe.CTRL:case Qe.DOWN:case Qe.END:case Qe.ESC:case Qe.HOME:case Qe.INSERT:case Qe.LEFT:case Qe.MAC_FF_META:case Qe.META:case Qe.NUMLOCK:case Qe.NUM_CENTER:case Qe.PAGE_DOWN:case Qe.PAGE_UP:case Qe.PAUSE:case Qe.PRINT_SCREEN:case Qe.RIGHT:case Qe.SHIFT:case Qe.UP:case Qe.WIN_KEY:case Qe.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=Qe.ZERO&&t<=Qe.NINE||t>=Qe.NUM_ZERO&&t<=Qe.NUM_MULTIPLY||t>=Qe.A&&t<=Qe.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case Qe.SPACE:case Qe.QUESTION_MARK:case Qe.NUM_PLUS:case Qe.NUM_MINUS:case Qe.NUM_PERIOD:case Qe.NUM_DIVISION:case Qe.SEMICOLON:case Qe.DASH:case Qe.EQUALS:case Qe.COMMA:case Qe.PERIOD:case Qe.SLASH:case Qe.APOSTROPHE:case Qe.SINGLE_QUOTE:case Qe.OPEN_SQUARE_BRACKET:case Qe.BACKSLASH:case Qe.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},N9=d.forwardRef(function(e,t){var r=e.prefixCls,n=e.style,a=e.className,i=e.duration,o=i===void 0?4.5:i,s=e.showProgress,l=e.pauseOnHover,c=l===void 0?!0:l,u=e.eventKey,f=e.content,m=e.closable,h=e.closeIcon,p=h===void 0?"x":h,g=e.props,v=e.onClick,y=e.onNoticeClose,x=e.times,b=e.hovering,S=d.useState(!1),w=me(S,2),E=w[0],C=w[1],O=d.useState(0),_=me(O,2),P=_[0],I=_[1],N=d.useState(0),D=me(N,2),k=D[0],R=D[1],A=b||E,j=o>0&&s,F=function(){y(u)},M=function(z){(z.key==="Enter"||z.code==="Enter"||z.keyCode===Qe.ENTER)&&F()};d.useEffect(function(){if(!A&&o>0){var W=Date.now()-k,z=setTimeout(function(){F()},o*1e3-k);return function(){c&&clearTimeout(z),R(Date.now()-W)}}},[o,A,x]),d.useEffect(function(){if(!A&&j&&(c||k===0)){var W=performance.now(),z,U=function X(){cancelAnimationFrame(z),z=requestAnimationFrame(function(Y){var G=Y+k-W,Q=Math.min(G/(o*1e3),1);I(Q*100),Q<1&&X()})};return U(),function(){c&&cancelAnimationFrame(z)}}},[o,k,A,j,x]);var V=d.useMemo(function(){return bt(m)==="object"&&m!==null?m:m?{closeIcon:p}:{}},[m,p]),K=Dn(V,!0),L=100-(!P||P<0?0:P>100?100:P),B="".concat(r,"-notice");return d.createElement("div",Oe({},g,{ref:t,className:ce(B,a,J({},"".concat(B,"-closable"),m)),style:n,onMouseEnter:function(z){var U;C(!0),g==null||(U=g.onMouseEnter)===null||U===void 0||U.call(g,z)},onMouseLeave:function(z){var U;C(!1),g==null||(U=g.onMouseLeave)===null||U===void 0||U.call(g,z)},onClick:v}),d.createElement("div",{className:"".concat(B,"-content")},f),m&&d.createElement("a",Oe({tabIndex:0,className:"".concat(B,"-close"),onKeyDown:M,"aria-label":"Close"},K,{onClick:function(z){z.preventDefault(),z.stopPropagation(),F()}}),V.closeIcon),j&&d.createElement("progress",{className:"".concat(B,"-progress"),max:"100",value:L},L+"%"))}),k9=ve.createContext({}),xle=function(t){var r=t.children,n=t.classNames;return ve.createElement(k9.Provider,{value:{classNames:n}},r)},TM=8,PM=3,IM=16,ble=function(t){var r={offset:TM,threshold:PM,gap:IM};if(t&&bt(t)==="object"){var n,a,i;r.offset=(n=t.offset)!==null&&n!==void 0?n:TM,r.threshold=(a=t.threshold)!==null&&a!==void 0?a:PM,r.gap=(i=t.gap)!==null&&i!==void 0?i:IM}return[!!t,r]},Sle=["className","style","classNames","styles"],wle=function(t){var r=t.configList,n=t.placement,a=t.prefixCls,i=t.className,o=t.style,s=t.motion,l=t.onAllNoticeRemoved,c=t.onNoticeClose,u=t.stack,f=d.useContext(k9),m=f.classNames,h=d.useRef({}),p=d.useState(null),g=me(p,2),v=g[0],y=g[1],x=d.useState([]),b=me(x,2),S=b[0],w=b[1],E=r.map(function(A){return{config:A,key:String(A.key)}}),C=ble(u),O=me(C,2),_=O[0],P=O[1],I=P.offset,N=P.threshold,D=P.gap,k=_&&(S.length>0||E.length<=N),R=typeof s=="function"?s(n):s;return d.useEffect(function(){_&&S.length>1&&w(function(A){return A.filter(function(j){return E.some(function(F){var M=F.key;return j===M})})})},[S,E,_]),d.useEffect(function(){var A;if(_&&h.current[(A=E[E.length-1])===null||A===void 0?void 0:A.key]){var j;y(h.current[(j=E[E.length-1])===null||j===void 0?void 0:j.key])}},[E,_]),ve.createElement(LP,Oe({key:n,className:ce(a,"".concat(a,"-").concat(n),m==null?void 0:m.list,i,J(J({},"".concat(a,"-stack"),!!_),"".concat(a,"-stack-expanded"),k)),style:o,keys:E,motionAppear:!0},R,{onAllRemoved:function(){l(n)}}),function(A,j){var F=A.config,M=A.className,V=A.style,K=A.index,L=F,B=L.key,W=L.times,z=String(B),U=F,X=U.className,Y=U.style,G=U.classNames,Q=U.styles,ee=Rt(U,Sle),H=E.findIndex(function(Ee){return Ee.key===z}),fe={};if(_){var te=E.length-1-(H>-1?H:K-1),re=n==="top"||n==="bottom"?"-50%":"0";if(te>0){var q,ne,he;fe.height=k?(q=h.current[z])===null||q===void 0?void 0:q.offsetHeight:v==null?void 0:v.offsetHeight;for(var ye=0,xe=0;xe-1?h.current[z]=He:delete h.current[z]},prefixCls:a,classNames:G,styles:Q,className:ce(X,m==null?void 0:m.notice),style:Y,times:W,key:B,eventKey:B,onNoticeClose:c,hovering:_&&S.length>0})))})},Cle=d.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-notification":r,a=e.container,i=e.motion,o=e.maxCount,s=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,f=e.renderNotifications,m=d.useState([]),h=me(m,2),p=h[0],g=h[1],v=function(_){var P,I=p.find(function(N){return N.key===_});I==null||(P=I.onClose)===null||P===void 0||P.call(I),g(function(N){return N.filter(function(D){return D.key!==_})})};d.useImperativeHandle(t,function(){return{open:function(_){g(function(P){var I=De(P),N=I.findIndex(function(R){return R.key===_.key}),D=ae({},_);if(N>=0){var k;D.times=(((k=P[N])===null||k===void 0?void 0:k.times)||0)+1,I[N]=D}else D.times=0,I.push(D);return o>0&&I.length>o&&(I=I.slice(-o)),I})},close:function(_){v(_)},destroy:function(){g([])}}});var y=d.useState({}),x=me(y,2),b=x[0],S=x[1];d.useEffect(function(){var O={};p.forEach(function(_){var P=_.placement,I=P===void 0?"topRight":P;I&&(O[I]=O[I]||[],O[I].push(_))}),Object.keys(b).forEach(function(_){O[_]=O[_]||[]}),S(O)},[p]);var w=function(_){S(function(P){var I=ae({},P),N=I[_]||[];return N.length||delete I[_],I})},E=d.useRef(!1);if(d.useEffect(function(){Object.keys(b).length>0?E.current=!0:E.current&&(c==null||c(),E.current=!1)},[b]),!a)return null;var C=Object.keys(b);return wi.createPortal(d.createElement(d.Fragment,null,C.map(function(O){var _=b[O],P=d.createElement(wle,{key:O,configList:_,placement:O,prefixCls:n,className:s==null?void 0:s(O),style:l==null?void 0:l(O),motion:i,onNoticeClose:v,onAllNoticeRemoved:w,stack:u});return f?f(P,{prefixCls:n,key:O}):P})),a)}),Ele=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],$le=function(){return document.body},NM=0;function _le(){for(var e={},t=arguments.length,r=new Array(t),n=0;n0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,r=t===void 0?$le:t,n=e.motion,a=e.prefixCls,i=e.maxCount,o=e.className,s=e.style,l=e.onAllRemoved,c=e.stack,u=e.renderNotifications,f=Rt(e,Ele),m=d.useState(),h=me(m,2),p=h[0],g=h[1],v=d.useRef(),y=d.createElement(Cle,{container:p,ref:v,prefixCls:a,motion:n,maxCount:i,className:o,style:s,onAllRemoved:l,stack:c,renderNotifications:u}),x=d.useState([]),b=me(x,2),S=b[0],w=b[1],E=qt(function(O){var _=_le(f,O);(_.key===null||_.key===void 0)&&(_.key="rc-notification-".concat(NM),NM+=1),w(function(P){return[].concat(De(P),[{type:"open",config:_}])})}),C=d.useMemo(function(){return{open:E,close:function(_){w(function(P){return[].concat(De(P),[{type:"close",key:_}])})},destroy:function(){w(function(_){return[].concat(De(_),[{type:"destroy"}])})}}},[]);return d.useEffect(function(){g(r())}),d.useEffect(function(){if(v.current&&S.length){S.forEach(function(P){switch(P.type){case"open":v.current.open(P.config);break;case"close":v.current.close(P.key);break;case"destroy":v.current.destroy();break}});var O,_;w(function(P){return(O!==P||!_)&&(O=P,_=P.filter(function(I){return!S.includes(I)})),_})}},[S]),[C,y]}var Tle={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const Ple=Tle;var Ile=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:Ple}))},Nle=d.forwardRef(Ile);const Wc=Nle;function Jx(...e){const t={};return e.forEach(r=>{r&&Object.keys(r).forEach(n=>{r[n]!==void 0&&(t[n]=r[n])})}),t}function e1(e){if(!e)return;const{closable:t,closeIcon:r}=e;return{closable:t,closeIcon:r}}function kM(e){const{closable:t,closeIcon:r}=e||{};return ve.useMemo(()=>{if(!t&&(t===!1||r===!1||r===null))return!1;if(t===void 0&&r===void 0)return null;let n={closeIcon:typeof r!="boolean"&&r!==null?r:void 0};return t&&typeof t=="object"&&(n=Object.assign(Object.assign({},n),t)),n},[t,r])}const kle={},R9=(e,t,r=kle)=>{const n=kM(e),a=kM(t),[i]=Hi("global",Vo.global),o=typeof n!="boolean"?!!(n!=null&&n.disabled):!1,s=ve.useMemo(()=>Object.assign({closeIcon:ve.createElement(cu,null)},r),[r]),l=ve.useMemo(()=>n===!1?!1:n?Jx(s,a,n):a===!1?!1:a?Jx(s,a):s.closable?s:!1,[n,a,s]);return ve.useMemo(()=>{var c,u;if(l===!1)return[!1,null,o,{}];const{closeIconRender:f}=s,{closeIcon:m}=l;let h=m;const p=Dn(l,!0);return h!=null&&(f&&(h=f(m)),h=ve.isValidElement(h)?ve.cloneElement(h,Object.assign(Object.assign(Object.assign({},h.props),{"aria-label":(u=(c=h.props)===null||c===void 0?void 0:c["aria-label"])!==null&&u!==void 0?u:i.close}),p)):ve.createElement("span",Object.assign({"aria-label":i.close},p),h)),[!0,h,o,p]},[o,i.close,l,s])},WP=()=>ve.useReducer(e=>e+1,0);function A9(e,...t){const r=e||{};return t.reduce((n,a)=>(Object.keys(a||{}).forEach(i=>{const o=r[i],s=a[i];if(o&&typeof o=="object")if(s&&typeof s=="object")n[i]=A9(o,n[i],s);else{const{_default:l}=o;l&&(n[i]=n[i]||{},n[i][l]=ce(n[i][l],s))}else n[i]=ce(n[i],s)}),n),{})}function Rle(e,...t){return d.useMemo(()=>A9.apply(void 0,[e].concat(t)),[t,e])}function Ale(...e){return d.useMemo(()=>e.reduce((t,r={})=>(Object.keys(r).forEach(n=>{t[n]=Object.assign(Object.assign({},t[n]),r[n])}),t),{}),[e])}function b_(e,t){const r=Object.assign({},e);return Object.keys(t).forEach(n=>{if(n!=="_default"){const a=t[n],i=r[n]||{};r[n]=a?b_(i,a):i}}),r}const Mle=(e,t,r)=>{const n=Rle.apply(void 0,[r].concat(De(e))),a=Ale.apply(void 0,De(t));return d.useMemo(()=>[b_(n,r),b_(a,r)],[n,a,r])},Dle=e=>{const[t,r]=d.useState(null);return[d.useCallback((a,i,o)=>{const s=t??a,l=Math.min(s||0,a),c=Math.max(s||0,a),u=i.slice(l,c+1).map(e),f=u.some(h=>!o.has(h)),m=[];return u.forEach(h=>{f?(o.has(h)||m.push(h),o.add(h)):(o.delete(h),m.push(h))}),r(f?c:null),m},[t]),r]},jle=()=>{const[e,t]=d.useState([]),r=d.useCallback(n=>(t(a=>[].concat(De(a),[n])),()=>{t(a=>a.filter(i=>i!==n))}),[]);return[e,r]};function Fle(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(r=>{if(!(r in e._antProxy)){const n=e[r];e._antProxy[r]=n,e[r]=t[r]}}),e}const Lle=(e,t)=>d.useImperativeHandle(e,()=>{const r=t(),{nativeElement:n}=r;return typeof Proxy<"u"?new Proxy(n,{get(a,i){return r[i]?r[i]:Reflect.get(a,i)}}):Fle(n,r)}),Ble=e=>{const t=d.useRef(e),[,r]=WP();return[()=>t.current,n=>{t.current=n,r()}]},zle=ve.createContext(void 0),Jb=zle,ic=100,Hle=10,M9=ic*Hle,D9={Modal:ic,Drawer:ic,Popover:ic,Popconfirm:ic,Tooltip:ic,Tour:ic,FloatButton:ic},Wle={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Vle(e){return e in D9}const uu=(e,t)=>{const[,r]=Ga(),n=ve.useContext(Jb),a=Vle(e);let i;if(t!==void 0)i=[t,t];else{let o=n??0;a?o+=(n?0:r.zIndexPopupBase)+D9[e]:o+=Wle[e],i=[n===void 0?t:o,o]}return i},Ule=e=>{const{componentCls:t,iconCls:r,boxShadow:n,colorText:a,colorSuccess:i,colorError:o,colorWarning:s,colorInfo:l,fontSizeLG:c,motionEaseInOutCirc:u,motionDurationSlow:f,marginXS:m,paddingXS:h,borderRadiusLG:p,zIndexPopup:g,contentPadding:v,contentBg:y}=e,x=`${t}-notice`,b=new fr("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),S=new fr("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:h,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${r}`]:{marginInlineEnd:m,fontSize:c},[`${x}-content`]:{display:"inline-block",padding:v,background:y,borderRadius:p,boxShadow:n,pointerEvents:"all"},[`${t}-success > ${r}`]:{color:i},[`${t}-error > ${r}`]:{color:o},[`${t}-warning > ${r}`]:{color:s},[`${t}-info > ${r}, - ${t}-loading > ${r}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},dr(e)),{color:a,position:"fixed",top:m,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[` - ${t}-move-up-appear, - ${t}-move-up-enter - `]:{animationName:b,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[` - ${t}-move-up-appear${t}-move-up-appear-active, - ${t}-move-up-enter${t}-move-up-enter-active - `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:S,animationDuration:f,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${x}-wrapper`]:Object.assign({},w)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]},Kle=e=>({zIndexPopup:e.zIndexPopupBase+M9+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),j9=lr("Message",e=>{const t=Zt(e,{height:150});return Ule(t)},Kle);var Gle=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);ad.createElement("div",{className:ce(`${e}-custom-content`,`${e}-${t}`)},r||qle[t],d.createElement("span",null,n)),Xle=e=>{const{prefixCls:t,className:r,type:n,icon:a,content:i}=e,o=Gle(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=d.useContext(Nt),l=t||s("message"),c=vn(l),[u,f,m]=j9(l,c);return u(d.createElement(N9,Object.assign({},o,{prefixCls:l,className:ce(r,f,`${l}-notice-pure-panel`,m,c),eventKey:"pure",duration:null,content:d.createElement(F9,{prefixCls:l,type:n,icon:a},i)})))},Yle=Xle;function Qle(e,t){return{motionName:t??`${e}-move-up`}}function VP(e){let t;const r=new Promise(a=>{t=e(()=>{a(!0)})}),n=()=>{t==null||t()};return n.then=(a,i)=>r.then(a,i),n.promise=r,n}var Zle=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const r=vn(t),[n,a,i]=j9(t,r);return n(d.createElement(xle,{classNames:{list:ce(a,i,r)}},e))},rce=(e,{prefixCls:t,key:r})=>d.createElement(tce,{prefixCls:t,key:r},e),nce=d.forwardRef((e,t)=>{const{top:r,prefixCls:n,getContainer:a,maxCount:i,duration:o=ece,rtl:s,transitionName:l,onAllRemoved:c}=e,{getPrefixCls:u,getPopupContainer:f,message:m,direction:h}=d.useContext(Nt),p=n||u("message"),g=()=>({left:"50%",transform:"translateX(-50%)",top:r??Jle}),v=()=>ce({[`${p}-rtl`]:s??h==="rtl"}),y=()=>Qle(p,l),x=d.createElement("span",{className:`${p}-close-x`},d.createElement(cu,{className:`${p}-close-icon`})),[b,S]=Ole({prefixCls:p,style:g,className:v,motion:y,closable:!1,closeIcon:x,duration:o,getContainer:()=>(a==null?void 0:a())||(f==null?void 0:f())||document.body,maxCount:i,onAllRemoved:c,renderNotifications:rce});return d.useImperativeHandle(t,()=>Object.assign(Object.assign({},b),{prefixCls:p,message:m})),S});let RM=0;function L9(e){const t=d.useRef(null);return lu(),[d.useMemo(()=>{const n=l=>{var c;(c=t.current)===null||c===void 0||c.close(l)},a=l=>{if(!t.current){const E=()=>{};return E.then=()=>{},E}const{open:c,prefixCls:u,message:f}=t.current,m=`${u}-notice`,{content:h,icon:p,type:g,key:v,className:y,style:x,onClose:b}=l,S=Zle(l,["content","icon","type","key","className","style","onClose"]);let w=v;return w==null&&(RM+=1,w=`antd-message-${RM}`),VP(E=>(c(Object.assign(Object.assign({},S),{key:w,content:d.createElement(F9,{prefixCls:u,type:g,icon:p},h),placement:"top",className:ce(g&&`${m}-${g}`,y,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),x),onClose:()=>{b==null||b(),E()}})),()=>{n(w)}))},o={open:a,destroy:l=>{var c;l!==void 0?n(l):(c=t.current)===null||c===void 0||c.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const c=(u,f,m)=>{let h;u&&typeof u=="object"&&"content"in u?h=u:h={content:u};let p,g;typeof f=="function"?g=f:(p=f,g=m);const v=Object.assign(Object.assign({onClose:g,duration:p},h),{type:l});return a(v)};o[l]=c}),o},[]),d.createElement(nce,Object.assign({key:"message-holder"},e,{ref:t}))]}function ace(e){return L9(e)}function B9(e,t){this.v=e,this.k=t}function Qa(e,t,r,n){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}Qa=function(o,s,l,c){function u(f,m){Qa(o,f,function(h){return this._invoke(f,m,h)})}s?a?a(o,s,{value:l,enumerable:!c,configurable:!c,writable:!c}):o[s]=l:(u("next",0),u("throw",1),u("return",2))},Qa(e,t,r,n)}function UP(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function i(h,p,g,v){var y=p&&p.prototype instanceof s?p:s,x=Object.create(y.prototype);return Qa(x,"_invoke",function(b,S,w){var E,C,O,_=0,P=w||[],I=!1,N={p:0,n:0,v:e,a:D,f:D.bind(e,4),d:function(R,A){return E=R,C=0,O=e,N.n=A,o}};function D(k,R){for(C=k,O=R,t=0;!I&&_&&!A&&t3?(A=M===R)&&(O=j[(C=j[4])?5:(C=3,3)],j[4]=j[5]=e):j[0]<=F&&((A=k<2&&FR||R>M)&&(j[4]=k,j[5]=R,N.n=M,C=0))}if(A||k>1)return o;throw I=!0,R}return function(k,R,A){if(_>1)throw TypeError("Generator is already running");for(I&&R===1&&D(R,A),C=R,O=A;(t=C<2?e:O)||!I;){E||(C?C<3?(C>1&&(N.n=-1),D(C,O)):N.n=O:N.v=O);try{if(_=2,E){if(C||(k="next"),t=E[k]){if(!(t=t.call(E,O)))throw TypeError("iterator result is not an object");if(!t.done)return t;O=t.value,C<2&&(C=0)}else C===1&&(t=E.return)&&t.call(E),C<2&&(O=TypeError("The iterator does not provide a '"+k+"' method"),C=1);E=e}else if((t=(I=N.n<0)?O:b.call(S,N))!==o)break}catch(j){E=e,C=1,O=j}finally{_=1}}return{value:t,done:I}}}(h,g,v),!0),x}var o={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(Qa(t={},n,function(){return this}),t),f=c.prototype=s.prototype=Object.create(u);function m(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,c):(h.__proto__=c,Qa(h,a,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=c,Qa(f,"constructor",c),Qa(c,"constructor",l),l.displayName="GeneratorFunction",Qa(c,a,"GeneratorFunction"),Qa(f),Qa(f,a,"Generator"),Qa(f,n,function(){return this}),Qa(f,"toString",function(){return"[object Generator]"}),(UP=function(){return{w:i,m}})()}function t1(e,t){function r(a,i,o,s){try{var l=e[a](i),c=l.value;return c instanceof B9?t.resolve(c.v).then(function(u){r("next",u,o,s)},function(u){r("throw",u,o,s)}):t.resolve(c).then(function(u){l.value=u,o(l)},function(u){return r("throw",u,o,s)})}catch(u){s(u)}}var n;this.next||(Qa(t1.prototype),Qa(t1.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Qa(this,"_invoke",function(a,i,o){function s(){return new t(function(l,c){r(a,o,l,c)})}return n=n?n.then(s,s):s()},!0)}function z9(e,t,r,n,a){return new t1(UP().w(e,t,r,n),a||Promise)}function ice(e,t,r,n,a){var i=z9(e,t,r,n,a);return i.next().then(function(o){return o.done?o.value:i.next()})}function oce(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function a(){for(;r.length;)if((n=r.pop())in t)return a.value=n,a.done=!1,a;return a.done=!0,a}}function AM(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(bt(e)+" is not iterable")}function Or(){var e=UP(),t=e.m(Or),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(o){var s=typeof o=="function"&&o.constructor;return!!s&&(s===r||(s.displayName||s.name)==="GeneratorFunction")}var a={throw:1,return:2,break:3,continue:3};function i(o){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(f,m){return l(c.a,a[f],m)},delegateYield:function(f,m,h){return s.resultName=m,l(c.d,AM(f),h)},finish:function(f){return l(c.f,f)}},l=function(f,m,h){c.p=s.prev,c.n=s.next;try{return f(m,h)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return o.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(Or=function(){return{wrap:function(l,c,u,f){return e.w(i(l),c,u,f&&f.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(l,c){return new B9(l,c)},AsyncIterator:t1,async:function(l,c,u,f,m){return(n(c)?z9:ice)(i(l),c,u,f,m)},keys:oce,values:AM}})()}function MM(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,a)}function xi(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var i=e.apply(t,r);function o(l){MM(i,n,a,o,s,"next",l)}function s(l){MM(i,n,a,o,s,"throw",l)}o(void 0)})}}var hv=ae({},Hre),sce=hv.version,a2=hv.render,lce=hv.unmountComponentAtNode,eS;try{var cce=Number((sce||"").split(".")[0]);cce>=18&&(eS=hv.createRoot)}catch{}function DM(e){var t=hv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&bt(t)==="object"&&(t.usingClientEntryPoint=e)}var r1="__rc_react_root__";function uce(e,t){DM(!0);var r=t[r1]||eS(t);DM(!1),r.render(e),t[r1]=r}function dce(e,t){a2==null||a2(e,t)}function fce(e,t){if(eS){uce(e,t);return}dce(e,t)}function mce(e){return S_.apply(this,arguments)}function S_(){return S_=xi(Or().mark(function e(t){return Or().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var a;(a=t[r1])===null||a===void 0||a.unmount(),delete t[r1]}));case 1:case"end":return n.stop()}},e)})),S_.apply(this,arguments)}function hce(e){lce(e)}function pce(e){return w_.apply(this,arguments)}function w_(){return w_=xi(Or().mark(function e(t){return Or().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(eS===void 0){n.next=2;break}return n.abrupt("return",mce(t));case 2:hce(t);case 3:case"end":return n.stop()}},e)})),w_.apply(this,arguments)}const vce=(e,t)=>(fce(e,t),()=>pce(t));let jM=vce;function KP(e){return e&&(jM=e),jM}const i2=()=>({height:0,opacity:0}),FM=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},gce=e=>({height:e?e.offsetHeight:0}),o2=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",yce=(e=pp)=>({motionName:`${e}-motion-collapse`,onAppearStart:i2,onEnterStart:i2,onAppearActive:FM,onEnterActive:FM,onLeaveStart:gce,onLeaveActive:i2,onAppearEnd:o2,onEnterEnd:o2,onLeaveEnd:o2,motionDeadline:500}),Vc=(e,t,r)=>r!==void 0?r:`${e}-${t}`,vp=yce;function Er(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}const q0=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),i=a.width,o=a.height;if(i||o)return!0}}return!1},xce=e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},bce=Aoe("Wave",xce),tS=`${pp}-wave-target`;function Sce(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function wce(e){var t;const{borderTopColor:r,borderColor:n,backgroundColor:a}=getComputedStyle(e);return(t=[r,n,a].find(Sce))!==null&&t!==void 0?t:null}function s2(e){return Number.isNaN(e)?0:e}const Cce=e=>{const{className:t,target:r,component:n,registerUnmount:a}=e,i=d.useRef(null),o=d.useRef(null);d.useEffect(()=>{o.current=a()},[]);const[s,l]=d.useState(null),[c,u]=d.useState([]),[f,m]=d.useState(0),[h,p]=d.useState(0),[g,v]=d.useState(0),[y,x]=d.useState(0),[b,S]=d.useState(!1),w={left:f,top:h,width:g,height:y,borderRadius:c.map(O=>`${O}px`).join(" ")};s&&(w["--wave-color"]=s);function E(){const O=getComputedStyle(r);l(wce(r));const _=O.position==="static",{borderLeftWidth:P,borderTopWidth:I}=O;m(_?r.offsetLeft:s2(-Number.parseFloat(P))),p(_?r.offsetTop:s2(-Number.parseFloat(I))),v(r.offsetWidth),x(r.offsetHeight);const{borderTopLeftRadius:N,borderTopRightRadius:D,borderBottomLeftRadius:k,borderBottomRightRadius:R}=O;u([N,D,R,k].map(A=>s2(Number.parseFloat(A))))}if(d.useEffect(()=>{if(r){const O=Ut(()=>{E(),S(!0)});let _;return typeof ResizeObserver<"u"&&(_=new ResizeObserver(E),_.observe(r)),()=>{Ut.cancel(O),_==null||_.disconnect()}}},[r]),!b)return null;const C=(n==="Checkbox"||n==="Radio")&&(r==null?void 0:r.classList.contains(tS));return d.createElement(Vi,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(O,_)=>{var P,I;if(_.deadline||_.propertyName==="opacity"){const N=(P=i.current)===null||P===void 0?void 0:P.parentElement;(I=o.current)===null||I===void 0||I.call(o).then(()=>{N==null||N.remove()})}return!1}},({className:O},_)=>d.createElement("div",{ref:xa(i,_),className:ce(t,O,{"wave-quick":C}),style:w}))},Ece=(e,t)=>{var r;const{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",e==null||e.insertBefore(a,e==null?void 0:e.firstChild);const i=KP();let o=null;function s(){return o}o=i(d.createElement(Cce,Object.assign({},t,{target:e,registerUnmount:s})),a)},$ce=Ece,_ce=(e,t,r)=>{const{wave:n}=d.useContext(Nt),[,a,i]=Ga(),o=qt(c=>{const u=e.current;if(n!=null&&n.disabled||!u)return;const f=u.querySelector(`.${tS}`)||u,{showEffect:m}=n||{};(m||$ce)(f,{className:t,token:a,component:r,event:c,hashId:i})}),s=d.useRef(null);return c=>{Ut.cancel(s.current),s.current=Ut(()=>{o(c)})}},Oce=_ce,Tce=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:a}=d.useContext(Nt),i=d.useRef(null),o=a("wave"),[,s]=bce(o),l=Oce(i,ce(o,s),n);if(ve.useEffect(()=>{const u=i.current;if(!u||u.nodeType!==window.Node.ELEMENT_NODE||r)return;const f=m=>{!q0(m.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")&&!u.className.includes("disabled:")||u.getAttribute("aria-disabled")==="true"||u.className.includes("-leave")||l(m)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[r]),!ve.isValidElement(t))return t??null;const c=_s(t)?xa(su(t),i):i;return pa(t,{ref:c})},rS=Tce,Pce=e=>{const t=ve.useContext(fv);return ve.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},Da=Pce,Ice=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},Nce=lr(["Space","Compact"],e=>[Ice(e)],()=>({}),{resetStyle:!1});var H9=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const r=d.useContext(nS),n=d.useMemo(()=>{if(!r)return"";const{compactDirection:a,isFirstItem:i,isLastItem:o}=r,s=a==="vertical"?"-vertical-":"-";return ce(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:o,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:n}},kce=e=>{const{children:t}=e;return d.createElement(nS.Provider,{value:null},t)},Rce=e=>{const{children:t}=e,r=H9(e,["children"]);return d.createElement(nS.Provider,{value:d.useMemo(()=>r,[r])},t)},Ace=e=>{const{getPrefixCls:t,direction:r}=d.useContext(Nt),{size:n,direction:a,block:i,prefixCls:o,className:s,rootClassName:l,children:c}=e,u=H9(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Da(b=>n??b),m=t("space-compact",o),[h,p]=Nce(m),g=ce(m,p,{[`${m}-rtl`]:r==="rtl",[`${m}-block`]:i,[`${m}-vertical`]:a==="vertical"},s,l),v=d.useContext(nS),y=ha(c),x=d.useMemo(()=>y.map((b,S)=>{const w=(b==null?void 0:b.key)||`${m}-item-${S}`;return d.createElement(Rce,{key:w,compactSize:f,compactDirection:a,isFirstItem:S===0&&(!v||(v==null?void 0:v.isFirstItem)),isLastItem:S===y.length-1&&(!v||(v==null?void 0:v.isLastItem))},b)}),[y,v,a,f,m]);return y.length===0?null:h(d.createElement("div",Object.assign({className:g},u),x))},Mce=Ace;var Dce=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:t,direction:r}=d.useContext(Nt),{prefixCls:n,size:a,className:i}=e,o=Dce(e,["prefixCls","size","className"]),s=t("btn-group",n),[,,l]=Ga(),c=d.useMemo(()=>{switch(a){case"large":return"lg";case"small":return"sm";default:return""}},[a]),u=ce(s,{[`${s}-${c}`]:c,[`${s}-rtl`]:r==="rtl"},i,l);return d.createElement(W9.Provider,{value:a},d.createElement("div",Object.assign({},o,{className:u})))},Fce=jce,LM=/^[\u4E00-\u9FA5]{2}$/,C_=LM.test.bind(LM);function GP(e){return e==="danger"?{danger:!0}:{type:e}}function BM(e){return typeof e=="string"}function l2(e){return e==="text"||e==="link"}function Lce(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&BM(e.type)&&C_(e.props.children)?pa(e,{children:e.props.children.split("").join(r)}):BM(e)?C_(e)?ve.createElement("span",null,e.split("").join(r)):ve.createElement("span",null,e):T9(e)?ve.createElement("span",null,e):e}function Bce(e,t){let r=!1;const n=[];return ve.Children.forEach(e,a=>{const i=typeof a,o=i==="string"||i==="number";if(r&&o){const s=n.length-1,l=n[s];n[s]=`${l}${a}`}else n.push(a);r=o}),ve.Children.map(n,a=>Lce(a,t))}["default","primary","danger"].concat(De(Hc));const zce=d.forwardRef((e,t)=>{const{className:r,style:n,children:a,prefixCls:i}=e,o=ce(`${i}-icon`,r);return ve.createElement("span",{ref:t,className:o,style:n},a)}),V9=zce,zM=d.forwardRef((e,t)=>{const{prefixCls:r,className:n,style:a,iconClassName:i}=e,o=ce(`${r}-loading-icon`,n);return ve.createElement(V9,{prefixCls:r,className:o,style:a,ref:t},ve.createElement(Wc,{className:i}))}),c2=()=>({width:0,opacity:0,transform:"scale(0)"}),u2=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Hce=e=>{const{prefixCls:t,loading:r,existIcon:n,className:a,style:i,mount:o}=e,s=!!r;return n?ve.createElement(zM,{prefixCls:t,className:a,style:i}):ve.createElement(Vi,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!o,motionEnter:!o,motionLeave:!o,removeOnLeave:!0,onAppearStart:c2,onAppearActive:u2,onEnterStart:c2,onEnterActive:u2,onLeaveStart:u2,onLeaveActive:c2},({className:l,style:c},u)=>{const f=Object.assign(Object.assign({},i),c);return ve.createElement(zM,{prefixCls:t,className:ce(a,l),style:f,ref:u})})},Wce=Hce,HM=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Vce=e=>{const{componentCls:t,fontSize:r,lineWidth:n,groupBorderColor:a,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(n).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},HM(`${t}-primary`,a),HM(`${t}-danger`,i)]}},Uce=Vce;var Kce=["b"],Gce=["v"],d2=function(t){return Math.round(Number(t||0))},qce=function(t){if(t instanceof sr)return t;if(t&&bt(t)==="object"&&"h"in t&&"b"in t){var r=t,n=r.b,a=Rt(r,Kce);return ae(ae({},a),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},gp=function(e){yo(r,e);var t=Qo(r);function r(n){return Wr(this,r),t.call(this,qce(n))}return Vr(r,[{key:"toHsbString",value:function(){var a=this.toHsb(),i=d2(a.s*100),o=d2(a.b*100),s=d2(a.h),l=a.a,c="hsb(".concat(s,", ").concat(i,"%, ").concat(o,"%)"),u="hsba(".concat(s,", ").concat(i,"%, ").concat(o,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var a=this.toHsv(),i=a.v,o=Rt(a,Gce);return ae(ae({},o),{},{b:i,a:this.a})}}]),r}(sr),Xce=function(t){return t instanceof gp?t:new gp(t)};Xce("#1677ff");const Yce=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",Qce=(e,t)=>e?Yce(e,t):"";let E_=function(){function e(t){Wr(this,e);var r;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(r=t.colors)===null||r===void 0?void 0:r.map(a=>({color:new e(a.color),percent:a.percent})),this.cleared=t.cleared;return}const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:a,percent:i})=>({color:new e(a),percent:i})),this.metaColor=new gp(this.colors[0].color.metaColor)):this.metaColor=new gp(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Vr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Qce(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:r}=this;return r?`linear-gradient(90deg, ${r.map(a=>`${a.color.toRgbString()} ${a.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((n,a)=>{const i=r.colors[a];return n.percent===i.percent&&n.color.equals(i.color)}):this.toHexString()===r.toHexString()}}])}();var Zce={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"};const Jce=Zce;var eue=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:Jce}))},tue=d.forwardRef(eue);const md=tue,rue=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, - opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),aS=rue,nue=e=>({animationDuration:e,animationFillMode:"both"}),aue=e=>({animationDuration:e,animationFillMode:"both"}),iS=(e,t,r,n,a=!1)=>{const i=a?"&":"";return{[` - ${i}${e}-enter, - ${i}${e}-appear - `]:Object.assign(Object.assign({},nue(n)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},aue(n)),{animationPlayState:"paused"}),[` - ${i}${e}-enter${e}-enter-active, - ${i}${e}-appear${e}-appear-active - `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},iue=new fr("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),oue=new fr("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),U9=(e,t=!1)=>{const{antCls:r}=e,n=`${r}-fade`,a=t?"&":"";return[iS(n,iue,oue,e.motionDurationMid,t),{[` - ${a}${n}-enter, - ${a}${n}-appear - `]:{opacity:0,animationTimingFunction:"linear"},[`${a}${n}-leave`]:{animationTimingFunction:"linear"}}]},sue=new fr("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),lue=new fr("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),cue=new fr("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),uue=new fr("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),due=new fr("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),fue=new fr("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),mue=new fr("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),hue=new fr("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),pue={"move-up":{inKeyframes:mue,outKeyframes:hue},"move-down":{inKeyframes:sue,outKeyframes:lue},"move-left":{inKeyframes:cue,outKeyframes:uue},"move-right":{inKeyframes:due,outKeyframes:fue}},x0=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:i}=pue[t];return[iS(n,a,i,e.motionDurationMid),{[` - ${n}-enter, - ${n}-appear - `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},oS=new fr("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),sS=new fr("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),lS=new fr("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),cS=new fr("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),vue=new fr("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),gue=new fr("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),yue=new fr("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),xue=new fr("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),bue={"slide-up":{inKeyframes:oS,outKeyframes:sS},"slide-down":{inKeyframes:lS,outKeyframes:cS},"slide-left":{inKeyframes:vue,outKeyframes:gue},"slide-right":{inKeyframes:yue,outKeyframes:xue}},al=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:i}=bue[t];return[iS(n,a,i,e.motionDurationMid),{[` - ${n}-enter, - ${n}-appear - `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},qP=new fr("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Sue=new fr("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),WM=new fr("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),VM=new fr("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),wue=new fr("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Cue=new fr("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Eue=new fr("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),$ue=new fr("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),_ue=new fr("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Oue=new fr("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Tue=new fr("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Pue=new fr("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Iue={zoom:{inKeyframes:qP,outKeyframes:Sue},"zoom-big":{inKeyframes:WM,outKeyframes:VM},"zoom-big-fast":{inKeyframes:WM,outKeyframes:VM},"zoom-left":{inKeyframes:Eue,outKeyframes:$ue},"zoom-right":{inKeyframes:_ue,outKeyframes:Oue},"zoom-up":{inKeyframes:wue,outKeyframes:Cue},"zoom-down":{inKeyframes:Tue,outKeyframes:Pue}},pv=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:a,outKeyframes:i}=Iue[t];return[iS(n,a,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` - ${n}-enter, - ${n}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Nue=e=>e instanceof E_?e:new E_(e),kue=(e,t)=>{const{r,g:n,b:a,a:i}=e.toRgb(),o=new gp(e.toRgbString()).onBackground(t).toHsv();return i<=.5?o.v>.5:r*.299+n*.587+a*.114>192},K9=e=>{const{paddingInline:t,onlyIconSize:r}=e;return Zt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:r})},G9=e=>{var t,r,n,a,i,o;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(r=e.contentFontSizeSM)!==null&&r!==void 0?r:e.fontSize,c=(n=e.contentFontSizeLG)!==null&&n!==void 0?n:e.fontSizeLG,u=(a=e.contentLineHeight)!==null&&a!==void 0?a:ix(s),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:ix(l),m=(o=e.contentLineHeightLG)!==null&&o!==void 0?o:ix(c),h=kue(new E_(e.colorBgSolid),"#fff")?"#000":"#fff",p=Hc.reduce((g,v)=>Object.assign(Object.assign({},g),{[`${v}ShadowColor`]:`0 ${le(e.controlOutlineWidth)} 0 ${ah(e[`${v}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},p),{fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:h,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:c,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-s*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-c*m)/2-e.lineWidth,0)})},Rue=e=>{const{componentCls:t,iconCls:r,fontWeight:n,opacityLoading:a,motionDurationSlow:i,motionEaseInOut:o,iconGap:s,calc:l}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:s,alignItems:"center",justifyContent:"center",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${le(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:V0(),"> a":{color:"currentColor"},"&:not(:disabled)":Nl(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:a,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(c=>`${c} ${i} ${o}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},q9=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),Aue=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),Mue=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),uS=(e,t,r,n,a,i,o,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,background:t,borderColor:n||void 0,boxShadow:"none"},q9(e,Object.assign({background:t},o),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:i||void 0}})}),Due=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},Mue(e))}),jue=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),dS=(e,t,r,n)=>{const i=n&&["link","text"].includes(n)?jue:Due;return Object.assign(Object.assign({},i(e)),q9(e.componentCls,t,r))},fS=(e,t,r,n,a)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:r},dS(e,n,a))}),mS=(e,t,r,n,a)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:r},dS(e,n,a))}),hS=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),pS=(e,t,r,n)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},dS(e,r,n))}),il=(e,t,r,n,a)=>({[`&${e.componentCls}-variant-${r}`]:Object.assign({color:t,boxShadow:"none"},dS(e,n,a,r))}),Fue=e=>{const{componentCls:t}=e;return Hc.reduce((r,n)=>{const a=e[`${n}6`],i=e[`${n}1`],o=e[`${n}5`],s=e[`${n}2`],l=e[`${n}3`],c=e[`${n}7`];return Object.assign(Object.assign({},r),{[`&${t}-color-${n}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:a,boxShadow:e[`${n}ShadowColor`]},fS(e,e.colorTextLightSolid,a,{background:o},{background:c})),mS(e,a,e.colorBgContainer,{color:o,borderColor:o,background:e.colorBgContainer},{color:c,borderColor:c,background:e.colorBgContainer})),hS(e)),pS(e,i,{color:a,background:s},{color:a,background:l})),il(e,a,"link",{color:o},{color:c})),il(e,a,"text",{color:o,background:i},{color:c,background:l}))})},{})},Lue=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},fS(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),hS(e)),pS(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),uS(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),il(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Bue=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},mS(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),hS(e)),pS(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),il(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),il(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),uS(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),zue=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},fS(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),mS(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),hS(e)),pS(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),il(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),il(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),uS(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Hue=e=>Object.assign(Object.assign({},il(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),uS(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),Wue=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:Lue(e),[`${t}-color-primary`]:Bue(e),[`${t}-color-dangerous`]:zue(e),[`${t}-color-link`]:Hue(e)},Fue(e))},Vue=e=>Object.assign(Object.assign(Object.assign(Object.assign({},mS(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),il(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),fS(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),il(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),XP=(e,t="")=>{const{componentCls:r,controlHeight:n,fontSize:a,borderRadius:i,buttonPaddingHorizontal:o,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:c}=e;return[{[t]:{fontSize:a,height:n,padding:`${le(l)} ${le(o)}`,borderRadius:i,[`&${r}-icon-only`]:{width:n,[s]:{fontSize:c}}}},{[`${r}${r}-circle${t}`]:Aue(e)},{[`${r}${r}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${r}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},Uue=e=>{const t=Zt(e,{fontSize:e.contentFontSize});return XP(t,e.componentCls)},Kue=e=>{const t=Zt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return XP(t,`${e.componentCls}-sm`)},Gue=e=>{const t=Zt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return XP(t,`${e.componentCls}-lg`)},que=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Xue=lr("Button",e=>{const t=K9(e);return[Rue(t),Uue(t),Kue(t),Gue(t),que(t),Wue(t),Vue(t),Uce(t)]},G9,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Yue(e,t,r,n){const{focusElCls:a,focus:i,borderElCls:o}=r,s=o?"> *":"",l=["hover",i?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[l]:{zIndex:3}},a?{[`&${a}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function Que(e,t,r){const{borderElCls:n}=r,a=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${a}, &${e}-sm ${a}, &${e}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function X0(e,t={focus:!0}){const{componentCls:r}=e,{componentCls:n}=t,a=n||r,i=`${a}-compact`;return{[i]:Object.assign(Object.assign({},Yue(e,i,t,a)),Que(a,i,t))}}function Zue(e,t,r){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function Jue(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 ede(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},Zue(e,t,e.componentCls)),Jue(e.componentCls,t))}}const tde=e=>{const{componentCls:t,colorPrimaryHover:r,lineWidth:n,calc:a}=e,i=a(n).mul(-1).equal(),o=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?i:0,insetInlineStart:s?0:i,backgroundColor:r,content:'""',width:s?"100%":n,height:s?n:"100%"}}};return Object.assign(Object.assign({},o()),o(!0))},rde=U0(["Button","compact"],e=>{const t=K9(e);return[X0(t),ede(t),tde(t)]},G9);var nde=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var r,n;const{loading:a=!1,prefixCls:i,color:o,variant:s,type:l,danger:c=!1,shape:u,size:f,styles:m,disabled:h,className:p,rootClassName:g,children:v,icon:y,iconPosition:x="start",ghost:b=!1,block:S=!1,htmlType:w="button",classNames:E,style:C={},autoInsertSpace:O,autoFocus:_}=e,P=nde(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),I=l||"default",{button:N}=ve.useContext(Nt),D=u||(N==null?void 0:N.shape)||"default",[k,R]=d.useMemo(()=>{if(o&&s)return[o,s];if(l||c){const We=ide[I]||[];return c?["danger",We[1]]:We}return N!=null&&N.color&&(N!=null&&N.variant)?[N.color,N.variant]:["default","outlined"]},[o,s,l,c,N==null?void 0:N.color,N==null?void 0:N.variant,I]),j=k==="danger"?"dangerous":k,{getPrefixCls:F,direction:M,autoInsertSpace:V,className:K,style:L,classNames:B,styles:W}=oa("button"),z=(r=O??V)!==null&&r!==void 0?r:!0,U=F("btn",i),[X,Y,G]=Xue(U),Q=d.useContext(Wi),ee=h??Q,H=d.useContext(W9),fe=d.useMemo(()=>ade(a),[a]),[te,re]=d.useState(fe.loading),[q,ne]=d.useState(!1),he=d.useRef(null),ye=Wl(t,he),xe=d.Children.count(v)===1&&!y&&!l2(R),pe=d.useRef(!0);ve.useEffect(()=>(pe.current=!1,()=>{pe.current=!0}),[]),Gt(()=>{let We=null;fe.delay>0?We=setTimeout(()=>{We=null,re(!0)},fe.delay):re(fe.loading);function at(){We&&(clearTimeout(We),We=null)}return at},[fe.delay,fe.loading]),d.useEffect(()=>{if(!he.current||!z)return;const We=he.current.textContent||"";xe&&C_(We)?q||ne(!0):q&&ne(!1)}),d.useEffect(()=>{_&&he.current&&he.current.focus()},[]);const Pe=ve.useCallback(We=>{var at;if(te||ee){We.preventDefault();return}(at=e.onClick)===null||at===void 0||at.call(e,("href"in e,We))},[e.onClick,te,ee]),{compactSize:$e,compactItemClassnames:Ee}=cl(U,M),He={large:"lg",small:"sm",middle:void 0},Fe=Da(We=>{var at,yt;return(yt=(at=f??$e)!==null&&at!==void 0?at:H)!==null&&yt!==void 0?yt:We}),nt=Fe&&(n=He[Fe])!==null&&n!==void 0?n:"",qe=te?"loading":y,Ge=Er(P,["navigate"]),Le=ce(U,Y,G,{[`${U}-${D}`]:D!=="default"&&D,[`${U}-${I}`]:I,[`${U}-dangerous`]:c,[`${U}-color-${j}`]:j,[`${U}-variant-${R}`]:R,[`${U}-${nt}`]:nt,[`${U}-icon-only`]:!v&&v!==0&&!!qe,[`${U}-background-ghost`]:b&&!l2(R),[`${U}-loading`]:te,[`${U}-two-chinese-chars`]:q&&z&&!te,[`${U}-block`]:S,[`${U}-rtl`]:M==="rtl",[`${U}-icon-end`]:x==="end"},Ee,p,g,K),Ne=Object.assign(Object.assign({},L),C),Se=ce(E==null?void 0:E.icon,B.icon),je=Object.assign(Object.assign({},(m==null?void 0:m.icon)||{}),W.icon||{}),_e=We=>ve.createElement(V9,{prefixCls:U,className:Se,style:je},We),Me=()=>ve.createElement(Wce,{existIcon:!!y,prefixCls:U,loading:te,mount:pe.current});let ge;y&&!te?ge=_e(y):a&&typeof a=="object"&&a.icon?ge=_e(a.icon):ge=Me();const be=v||v===0?Bce(v,xe&&z):null;if(Ge.href!==void 0)return X(ve.createElement("a",Object.assign({},Ge,{className:ce(Le,{[`${U}-disabled`]:ee}),href:ee?void 0:Ge.href,style:Ne,onClick:Pe,ref:ye,tabIndex:ee?-1:0,"aria-disabled":ee}),ge,be));let Re=ve.createElement("button",Object.assign({},P,{type:w,className:Le,style:Ne,onClick:Pe,disabled:ee,ref:ye}),ge,be,Ee&&ve.createElement(rde,{prefixCls:U}));return l2(R)||(Re=ve.createElement(rS,{component:"Button",disabled:te},Re)),X(Re)}),YP=ode;YP.Group=Fce;YP.__ANT_BUTTON=!0;const kt=YP,f2=e=>typeof(e==null?void 0:e.then)=="function",sde=e=>{const{type:t,children:r,prefixCls:n,buttonProps:a,close:i,autoFocus:o,emitEvent:s,isSilent:l,quitOnNullishReturnValue:c,actionFn:u}=e,f=d.useRef(!1),m=d.useRef(null),[h,p]=fd(!1),g=(...x)=>{i==null||i.apply(void 0,x)};d.useEffect(()=>{let x=null;return o&&(x=setTimeout(()=>{var b;(b=m.current)===null||b===void 0||b.focus({preventScroll:!0})})),()=>{x&&clearTimeout(x)}},[o]);const v=x=>{f2(x)&&(p(!0),x.then((...b)=>{p(!1,!0),g.apply(void 0,b),f.current=!1},b=>{if(p(!1,!0),f.current=!1,!(l!=null&&l()))return Promise.reject(b)}))},y=x=>{if(f.current)return;if(f.current=!0,!u){g();return}let b;if(s){if(b=u(x),c&&!f2(b)){f.current=!1,g(x);return}}else if(u.length)b=u(i),f.current=!1;else if(b=u(),!f2(b)){g();return}v(b)};return d.createElement(kt,Object.assign({},GP(t),{onClick:y,loading:h,prefixCls:n},a,{ref:m}),r)},QP=sde,vv=ve.createContext({}),{Provider:X9}=vv,lde=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:r,isSilent:n,mergedOkCancel:a,rootPrefixCls:i,close:o,onCancel:s,onConfirm:l}=d.useContext(vv);return a?ve.createElement(QP,{isSilent:n,actionFn:s,close:(...c)=>{o==null||o.apply(void 0,c),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},r):null},UM=lde,cde=()=>{const{autoFocusButton:e,close:t,isSilent:r,okButtonProps:n,rootPrefixCls:a,okTextLocale:i,okType:o,onConfirm:s,onOk:l}=d.useContext(vv);return ve.createElement(QP,{isSilent:r,type:o||"primary",actionFn:l,close:(...c)=>{t==null||t.apply(void 0,c),s==null||s(!0)},autoFocus:e==="ok",buttonProps:n,prefixCls:`${a}-btn`},i)},KM=cde;var Y9=d.createContext(null),GM=[];function ude(e,t){var r=d.useState(function(){if(!Aa())return null;var p=document.createElement("div");return p}),n=me(r,1),a=n[0],i=d.useRef(!1),o=d.useContext(Y9),s=d.useState(GM),l=me(s,2),c=l[0],u=l[1],f=o||(i.current?void 0:function(p){u(function(g){var v=[p].concat(De(g));return v})});function m(){a.parentElement||document.body.appendChild(a),i.current=!0}function h(){var p;(p=a.parentElement)===null||p===void 0||p.removeChild(a),i.current=!1}return Gt(function(){return e?o?o(m):m():h(),h},[e]),Gt(function(){c.length&&(c.forEach(function(p){return p()}),u(GM))},[c]),[a,f]}var m2;function Q9(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var a,i;if(e){var o=getComputedStyle(e);n.scrollbarColor=o.scrollbarColor,n.scrollbarWidth=o.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",f=c?"height: ".concat(s.height,";"):"";Cl(` -#`.concat(t,`::-webkit-scrollbar { -`).concat(u,` -`).concat(f,` -}`),t)}catch(p){console.error(p),a=l,i=c}}document.body.appendChild(r);var m=e&&a&&!isNaN(a)?a:r.offsetWidth-r.clientWidth,h=e&&i&&!isNaN(i)?i:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),dp(t),{width:m,height:h}}function qM(e){return typeof document>"u"?0:((e||m2===void 0)&&(m2=Q9()),m2.width)}function $_(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:Q9(e)}function dde(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var fde="rc-util-locker-".concat(Date.now()),XM=0;function mde(e){var t=!!e,r=d.useState(function(){return XM+=1,"".concat(fde,"_").concat(XM)}),n=me(r,1),a=n[0];Gt(function(){if(t){var i=$_(document.body).width,o=dde();Cl(` -html body { - overflow-y: hidden; - `.concat(o?"width: calc(100% - ".concat(i,"px);"):"",` -}`),a)}else dp(a);return function(){dp(a)}},[t,a])}var YM=!1;function hde(e){return typeof e=="boolean"&&(YM=e),YM}var QM=function(t){return t===!1?!1:!Aa()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},ZP=d.forwardRef(function(e,t){var r=e.open,n=e.autoLock,a=e.getContainer;e.debug;var i=e.autoDestroy,o=i===void 0?!0:i,s=e.children,l=d.useState(r),c=me(l,2),u=c[0],f=c[1],m=u||r;d.useEffect(function(){(o||r)&&f(r)},[r,o]);var h=d.useState(function(){return QM(a)}),p=me(h,2),g=p[0],v=p[1];d.useEffect(function(){var I=QM(a);v(I??null)});var y=ude(m&&!g),x=me(y,2),b=x[0],S=x[1],w=g??b;mde(n&&r&&Aa()&&(w===b||w===document.body));var E=null;if(s&&_s(s)&&t){var C=s;E=C.ref}var O=Wl(E,t);if(!m||!Aa()||g===void 0)return null;var _=w===!1||hde(),P=s;return t&&(P=d.cloneElement(s,{ref:O})),d.createElement(Y9.Provider,{value:S},_?P:wi.createPortal(P,w))}),Z9=d.createContext({});function pde(){var e=ae({},F0);return e.useId}var ZM=0,JM=pde();const vS=JM?function(t){var r=JM();return t||r}:function(t){var r=d.useState("ssr-id"),n=me(r,2),a=n[0],i=n[1];return d.useEffect(function(){var o=ZM;ZM+=1,i("rc_unique_".concat(o))},[]),t||a};function e3(e,t,r){var n=t;return!n&&r&&(n="".concat(e,"-").concat(r)),n}function t3(e,t){var r=e["page".concat(t?"Y":"X","Offset")],n="scroll".concat(t?"Top":"Left");if(typeof r!="number"){var a=e.document;r=a.documentElement[n],typeof r!="number"&&(r=a.body[n])}return r}function vde(e){var t=e.getBoundingClientRect(),r={left:t.left,top:t.top},n=e.ownerDocument,a=n.defaultView||n.parentWindow;return r.left+=t3(a),r.top+=t3(a,!0),r}const gde=d.memo(function(e){var t=e.children;return t},function(e,t){var r=t.shouldUpdate;return!r});var yde={width:0,height:0,overflow:"hidden",outline:"none"},xde={outline:"none"},J9=ve.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,a=e.style,i=e.title,o=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,u=e.onClose,f=e.children,m=e.bodyStyle,h=e.bodyProps,p=e.modalRender,g=e.onMouseDown,v=e.onMouseUp,y=e.holderRef,x=e.visible,b=e.forceRender,S=e.width,w=e.height,E=e.classNames,C=e.styles,O=ve.useContext(Z9),_=O.panel,P=Wl(y,_),I=d.useRef(),N=d.useRef();ve.useImperativeHandle(t,function(){return{focus:function(){var L;(L=I.current)===null||L===void 0||L.focus({preventScroll:!0})},changeActive:function(L){var B=document,W=B.activeElement;L&&W===N.current?I.current.focus({preventScroll:!0}):!L&&W===I.current&&N.current.focus({preventScroll:!0})}}});var D={};S!==void 0&&(D.width=S),w!==void 0&&(D.height=w);var k=s?ve.createElement("div",{className:ce("".concat(r,"-footer"),E==null?void 0:E.footer),style:ae({},C==null?void 0:C.footer)},s):null,R=i?ve.createElement("div",{className:ce("".concat(r,"-header"),E==null?void 0:E.header),style:ae({},C==null?void 0:C.header)},ve.createElement("div",{className:"".concat(r,"-title"),id:o},i)):null,A=d.useMemo(function(){return bt(l)==="object"&&l!==null?l:l?{closeIcon:c??ve.createElement("span",{className:"".concat(r,"-close-x")})}:{}},[l,c,r]),j=Dn(A,!0),F=bt(l)==="object"&&l.disabled,M=l?ve.createElement("button",Oe({type:"button",onClick:u,"aria-label":"Close"},j,{className:"".concat(r,"-close"),disabled:F}),A.closeIcon):null,V=ve.createElement("div",{className:ce("".concat(r,"-content"),E==null?void 0:E.content),style:C==null?void 0:C.content},M,R,ve.createElement("div",Oe({className:ce("".concat(r,"-body"),E==null?void 0:E.body),style:ae(ae({},m),C==null?void 0:C.body)},h),f),k);return ve.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?o:null,"aria-modal":"true",ref:P,style:ae(ae({},a),D),className:ce(r,n),onMouseDown:g,onMouseUp:v},ve.createElement("div",{ref:I,tabIndex:0,style:xde},ve.createElement(gde,{shouldUpdate:x||b},p?p(V):V)),ve.createElement("div",{tabIndex:0,ref:N,style:yde}))}),eH=d.forwardRef(function(e,t){var r=e.prefixCls,n=e.title,a=e.style,i=e.className,o=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,u=e.ariaId,f=e.onVisibleChanged,m=e.mousePosition,h=d.useRef(),p=d.useState(),g=me(p,2),v=g[0],y=g[1],x={};v&&(x.transformOrigin=v);function b(){var S=vde(h.current);y(m&&(m.x||m.y)?"".concat(m.x-S.left,"px ").concat(m.y-S.top,"px"):"")}return d.createElement(Vi,{visible:o,onVisibleChanged:f,onAppearPrepare:b,onEnterPrepare:b,forceRender:s,motionName:c,removeOnLeave:l,ref:h},function(S,w){var E=S.className,C=S.style;return d.createElement(J9,Oe({},e,{ref:t,title:n,ariaId:u,prefixCls:r,holderRef:w,style:ae(ae(ae({},C),a),x),className:ce(i,E)}))})});eH.displayName="Content";var bde=function(t){var r=t.prefixCls,n=t.style,a=t.visible,i=t.maskProps,o=t.motionName,s=t.className;return d.createElement(Vi,{key:"mask",visible:a,motionName:o,leavedClassName:"".concat(r,"-mask-hidden")},function(l,c){var u=l.className,f=l.style;return d.createElement("div",Oe({ref:c,style:ae(ae({},f),n),className:ce("".concat(r,"-mask"),u,s)},i))})},Sde=function(t){var r=t.prefixCls,n=r===void 0?"rc-dialog":r,a=t.zIndex,i=t.visible,o=i===void 0?!1:i,s=t.keyboard,l=s===void 0?!0:s,c=t.focusTriggerAfterClose,u=c===void 0?!0:c,f=t.wrapStyle,m=t.wrapClassName,h=t.wrapProps,p=t.onClose,g=t.afterOpenChange,v=t.afterClose,y=t.transitionName,x=t.animation,b=t.closable,S=b===void 0?!0:b,w=t.mask,E=w===void 0?!0:w,C=t.maskTransitionName,O=t.maskAnimation,_=t.maskClosable,P=_===void 0?!0:_,I=t.maskStyle,N=t.maskProps,D=t.rootClassName,k=t.classNames,R=t.styles,A=d.useRef(),j=d.useRef(),F=d.useRef(),M=d.useState(o),V=me(M,2),K=V[0],L=V[1],B=vS();function W(){U$(j.current,document.activeElement)||(A.current=document.activeElement)}function z(){if(!U$(j.current,document.activeElement)){var re;(re=F.current)===null||re===void 0||re.focus()}}function U(re){if(re)z();else{if(L(!1),E&&A.current&&u){try{A.current.focus({preventScroll:!0})}catch{}A.current=null}K&&(v==null||v())}g==null||g(re)}function X(re){p==null||p(re)}var Y=d.useRef(!1),G=d.useRef(),Q=function(){clearTimeout(G.current),Y.current=!0},ee=function(){G.current=setTimeout(function(){Y.current=!1})},H=null;P&&(H=function(q){Y.current?Y.current=!1:j.current===q.target&&X(q)});function fe(re){if(l&&re.keyCode===Qe.ESC){re.stopPropagation(),X(re);return}o&&re.keyCode===Qe.TAB&&F.current.changeActive(!re.shiftKey)}d.useEffect(function(){o&&(L(!0),W())},[o]),d.useEffect(function(){return function(){clearTimeout(G.current)}},[]);var te=ae(ae(ae({zIndex:a},f),R==null?void 0:R.wrapper),{},{display:K?null:"none"});return d.createElement("div",Oe({className:ce("".concat(n,"-root"),D)},Dn(t,{data:!0})),d.createElement(bde,{prefixCls:n,visible:E&&o,motionName:e3(n,C,O),style:ae(ae({zIndex:a},I),R==null?void 0:R.mask),maskProps:N,className:k==null?void 0:k.mask}),d.createElement("div",Oe({tabIndex:-1,onKeyDown:fe,className:ce("".concat(n,"-wrap"),m,k==null?void 0:k.wrapper),ref:j,onClick:H,style:te},h),d.createElement(eH,Oe({},t,{onMouseDown:Q,onMouseUp:ee,ref:F,closable:S,ariaId:B,prefixCls:n,visible:o&&K,onClose:X,onVisibleChanged:U,motionName:e3(n,y,x)}))))},tH=function(t){var r=t.visible,n=t.getContainer,a=t.forceRender,i=t.destroyOnClose,o=i===void 0?!1:i,s=t.afterClose,l=t.panelRef,c=d.useState(r),u=me(c,2),f=u[0],m=u[1],h=d.useMemo(function(){return{panel:l}},[l]);return d.useEffect(function(){r&&m(!0)},[r]),!a&&o&&!f?null:d.createElement(Z9.Provider,{value:h},d.createElement(ZP,{open:r||a||f,autoDestroy:!1,getContainer:n,autoLock:r||f},d.createElement(Sde,Oe({},t,{destroyOnClose:o,afterClose:function(){s==null||s(),m(!1)}}))))};tH.displayName="Dialog";var Fu="RC_FORM_INTERNAL_HOOKS",Fr=function(){Br(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},hd=d.createContext({getFieldValue:Fr,getFieldsValue:Fr,getFieldError:Fr,getFieldWarning:Fr,getFieldsError:Fr,isFieldsTouched:Fr,isFieldTouched:Fr,isFieldValidating:Fr,isFieldsValidating:Fr,resetFields:Fr,setFields:Fr,setFieldValue:Fr,setFieldsValue:Fr,validateFields:Fr,submit:Fr,getInternalHooks:function(){return Fr(),{dispatch:Fr,initEntityValue:Fr,registerField:Fr,useSubscribe:Fr,setInitialValues:Fr,destroyForm:Fr,setCallbacks:Fr,registerWatch:Fr,getFields:Fr,setValidateMessages:Fr,setPreserve:Fr,getInitialValue:Fr}}}),yp=d.createContext(null);function __(e){return e==null?[]:Array.isArray(e)?e:[e]}function wde(e){return e&&!!e._init}function O_(){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 T_=O_();function Cde(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Ede(e,t,r){if(Kb())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var a=new(e.bind.apply(e,n));return r&&cp(a,r.prototype),a}function P_(e){var t=typeof Map=="function"?new Map:void 0;return P_=function(n){if(n===null||!Cde(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return Ede(n,arguments,dd(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),cp(a,n)},P_(e)}var $de=/%[sdj%]/g,_de=function(){};typeof process<"u"&&process.env;function I_(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function no(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=i)return s;switch(s){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function Ode(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function va(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Ode(t)&&typeof e=="string"&&!e)}function Tde(e,t,r){var n=[],a=0,i=e.length;function o(s){n.push.apply(n,De(s||[])),a++,a===i&&r(n)}e.forEach(function(s){t(s,o)})}function r3(e,t,r){var n=0,a=e.length;function i(o){if(o&&o.length){r(o);return}var s=n;n=n+1,st.max?a.push(no(i.messages[f].max,t.fullField,t.max)):s&&l&&(ut.max)&&a.push(no(i.messages[f].range,t.fullField,t.min,t.max))},rH=function(t,r,n,a,i,o){t.required&&(!n.hasOwnProperty(t.field)||va(r,o||t.type))&&a.push(no(i.messages.required,t.fullField))},Kg;const Dde=function(){if(Kg)return Kg;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",a=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",o="(?:".concat(a.join("|"),")").concat(i),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(o,"$)")),l=new RegExp("^".concat(r,"$")),c=new RegExp("^".concat(o,"$")),u=function(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(r).concat(t(E),")|(?:").concat(t(E)).concat(o).concat(t(E),")"),"g")};u.v4=function(w){return w&&w.exact?l:new RegExp("".concat(t(w)).concat(r).concat(t(w)),"g")},u.v6=function(w){return w&&w.exact?c:new RegExp("".concat(t(w)).concat(o).concat(t(w)),"g")};var f="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",h=u.v4().source,p=u.v6().source,g="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",x="(?::\\d{2,5})?",b='(?:[/?#][^\\s"]*)?',S="(?:".concat(f,"|www\\.)").concat(m,"(?:localhost|").concat(h,"|").concat(p,"|").concat(g).concat(v).concat(y,")").concat(x).concat(b);return Kg=new RegExp("(?:^".concat(S,"$)"),"i"),Kg};var o3={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},ih={integer:function(t){return ih.number(t)&&parseInt(t,10)===t},float:function(t){return ih.number(t)&&!ih.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 bt(t)==="object"&&!ih.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(o3.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Dde())},hex:function(t){return typeof t=="string"&&!!t.match(o3.hex)}},jde=function(t,r,n,a,i){if(t.required&&r===void 0){rH(t,r,n,a,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?ih[s](r)||a.push(no(i.messages.types[s],t.fullField,t.type)):s&&bt(r)!==t.type&&a.push(no(i.messages.types[s],t.fullField,t.type))},Fde=function(t,r,n,a,i){(/^\s+$/.test(r)||r==="")&&a.push(no(i.messages.whitespace,t.fullField))};const gr={required:rH,whitespace:Fde,type:jde,range:Mde,enum:Rde,pattern:Ade};var Lde=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(va(r)&&!t.required)return n();gr.required(t,r,a,o,i)}n(o)},Bde=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();gr.required(t,r,a,o,i,"array"),r!=null&&(gr.type(t,r,a,o,i),gr.range(t,r,a,o,i))}n(o)},zde=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(va(r)&&!t.required)return n();gr.required(t,r,a,o,i),r!==void 0&&gr.type(t,r,a,o,i)}n(o)},Hde=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(va(r,"date")&&!t.required)return n();if(gr.required(t,r,a,o,i),!va(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),gr.type(t,l,a,o,i),l&&gr.range(t,l.getTime(),a,o,i)}}n(o)},Wde="enum",Vde=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(va(r)&&!t.required)return n();gr.required(t,r,a,o,i),r!==void 0&&gr[Wde](t,r,a,o,i)}n(o)},Ude=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(va(r)&&!t.required)return n();gr.required(t,r,a,o,i),r!==void 0&&(gr.type(t,r,a,o,i),gr.range(t,r,a,o,i))}n(o)},Kde=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(va(r)&&!t.required)return n();gr.required(t,r,a,o,i),r!==void 0&&(gr.type(t,r,a,o,i),gr.range(t,r,a,o,i))}n(o)},Gde=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(va(r)&&!t.required)return n();gr.required(t,r,a,o,i),r!==void 0&&gr.type(t,r,a,o,i)}n(o)},qde=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),va(r)&&!t.required)return n();gr.required(t,r,a,o,i),r!==void 0&&(gr.type(t,r,a,o,i),gr.range(t,r,a,o,i))}n(o)},Xde=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(va(r)&&!t.required)return n();gr.required(t,r,a,o,i),r!==void 0&&gr.type(t,r,a,o,i)}n(o)},Yde=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(va(r,"string")&&!t.required)return n();gr.required(t,r,a,o,i),va(r,"string")||gr.pattern(t,r,a,o,i)}n(o)},Qde=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(va(r)&&!t.required)return n();gr.required(t,r,a,o,i),va(r)||gr.type(t,r,a,o,i)}n(o)},Zde=function(t,r,n,a,i){var o=[],s=Array.isArray(r)?"array":bt(r);gr.required(t,r,a,o,i,s),n(o)},Jde=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(va(r,"string")&&!t.required)return n();gr.required(t,r,a,o,i,"string"),va(r,"string")||(gr.type(t,r,a,o,i),gr.range(t,r,a,o,i),gr.pattern(t,r,a,o,i),t.whitespace===!0&&gr.whitespace(t,r,a,o,i))}n(o)},h2=function(t,r,n,a,i){var o=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(va(r,o)&&!t.required)return n();gr.required(t,r,a,s,i,o),va(r,o)||gr.type(t,r,a,s,i)}n(s)};const Oh={string:Jde,method:Gde,number:qde,boolean:zde,regexp:Qde,integer:Kde,float:Ude,array:Bde,object:Xde,enum:Vde,pattern:Yde,date:Hde,url:h2,hex:h2,email:h2,required:Zde,any:Lde};var gv=function(){function e(t){Wr(this,e),J(this,"rules",null),J(this,"_messages",T_),this.define(t)}return Vr(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(bt(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(a){var i=r[a];n.rules[a]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(r){return r&&(this._messages=i3(O_(),r)),this._messages}},{key:"validate",value:function(r){var n=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},o=r,s=a,l=i;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,o),Promise.resolve(o);function c(p){var g=[],v={};function y(b){if(Array.isArray(b)){var S;g=(S=g).concat.apply(S,De(b))}else g.push(b)}for(var x=0;x0&&arguments[0]!==void 0?arguments[0]:[],O=Array.isArray(C)?C:[C];!s.suppressWarning&&O.length&&e.warning("async-validator:",O),O.length&&v.message!==void 0&&(O=[].concat(v.message));var _=O.map(a3(v,o));if(s.first&&_.length)return h[v.field]=1,g(_);if(!y)g(_);else{if(v.required&&!p.value)return v.message!==void 0?_=[].concat(v.message).map(a3(v,o)):s.error&&(_=[s.error(v,no(s.messages.required,v.field))]),g(_);var P={};v.defaultField&&Object.keys(p.value).map(function(D){P[D]=v.defaultField}),P=ae(ae({},P),p.rule.fields);var I={};Object.keys(P).forEach(function(D){var k=P[D],R=Array.isArray(k)?k:[k];I[D]=R.map(x.bind(null,D))});var N=new e(I);N.messages(s.messages),p.rule.options&&(p.rule.options.messages=s.messages,p.rule.options.error=s.error),N.validate(p.value,p.rule.options||s,function(D){var k=[];_&&_.length&&k.push.apply(k,De(_)),D&&D.length&&k.push.apply(k,De(D)),g(k.length?k:null)})}}var S;if(v.asyncValidator)S=v.asyncValidator(v,p.value,b,p.source,s);else if(v.validator){try{S=v.validator(v,p.value,b,p.source,s)}catch(C){var w,E;(w=(E=console).error)===null||w===void 0||w.call(E,C),s.suppressValidatorError||setTimeout(function(){throw C},0),b(C.message)}S===!0?b():S===!1?b(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||"".concat(v.fullField||v.field," fails")):S instanceof Array?b(S):S instanceof Error&&b(S.message)}S&&S.then&&S.then(function(){return b()},function(C){return b(C)})},function(p){c(p)},o)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Oh.hasOwnProperty(r.type))throw new Error(no("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),a=n.indexOf("message");return a!==-1&&n.splice(a,1),n.length===1&&n[0]==="required"?Oh.required:Oh[this.getType(r)]||void 0}}]),e}();J(gv,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Oh[t]=r});J(gv,"warning",_de);J(gv,"messages",T_);J(gv,"validators",Oh);var Gi="'${name}' is not a valid ${type}",nH={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:Gi,method:Gi,array:Gi,object:Gi,number:Gi,date:Gi,boolean:Gi,integer:Gi,float:Gi,regexp:Gi,email:Gi,url:Gi,hex:Gi},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}"}},s3=gv;function efe(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var l3="CODE_LOGIC_ERROR";function N_(e,t,r,n,a){return k_.apply(this,arguments)}function k_(){return k_=xi(Or().mark(function e(t,r,n,a,i){var o,s,l,c,u,f,m,h,p;return Or().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return o=ae({},n),delete o.ruleIndex,s3.warning=function(){},o.validator&&(s=o.validator,o.validator=function(){try{return s.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(l3)}}),l=null,o&&o.type==="array"&&o.defaultField&&(l=o.defaultField,delete o.defaultField),c=new s3(J({},t,[o])),u=Mf(nH,a.validateMessages),c.messages(u),f=[],v.prev=10,v.next=13,Promise.resolve(c.validate(J({},t,r),ae({},a)));case 13:v.next=18;break;case 15:v.prev=15,v.t0=v.catch(10),v.t0.errors&&(f=v.t0.errors.map(function(y,x){var b=y.message,S=b===l3?u.default:b;return d.isValidElement(S)?d.cloneElement(S,{key:"error_".concat(x)}):S}));case 18:if(!(!f.length&&l&&Array.isArray(r)&&r.length>0)){v.next=23;break}return v.next=21,Promise.all(r.map(function(y,x){return N_("".concat(t,".").concat(x),y,l,a,i)}));case 21:return m=v.sent,v.abrupt("return",m.reduce(function(y,x){return[].concat(De(y),De(x))},[]));case 23:return h=ae(ae({},n),{},{name:t,enum:(n.enum||[]).join(", ")},i),p=f.map(function(y){return typeof y=="string"?efe(y,h):y}),v.abrupt("return",p);case 26:case"end":return v.stop()}},e,null,[[10,15]])})),k_.apply(this,arguments)}function tfe(e,t,r,n,a,i){var o=e.join("."),s=r.map(function(u,f){var m=u.validator,h=ae(ae({},u),{},{ruleIndex:f});return m&&(h.validator=function(p,g,v){var y=!1,x=function(){for(var w=arguments.length,E=new Array(w),C=0;C2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return aH(t,n,r)})}function aH(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,a){return e[a]===n})}function afe(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||bt(e)!=="object"||bt(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),a=new Set([].concat(r,n));return De(a).every(function(i){var o=e[i],s=t[i];return typeof o=="function"&&typeof s=="function"?!0:o===s})}function ife(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&bt(t.target)==="object"&&e in t.target?t.target[e]:t}function u3(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var a=e[t],i=t-r;return i>0?[].concat(De(e.slice(0,r)),[a],De(e.slice(r,t)),De(e.slice(t+1,n))):i<0?[].concat(De(e.slice(0,t)),De(e.slice(t+1,r+1)),[a],De(e.slice(r+1,n))):e}var ofe=["name"],bo=[];function p2(e,t,r,n,a,i){return typeof e=="function"?e(t,r,"source"in i?{source:i.source}:{}):n!==a}var JP=function(e){yo(r,e);var t=Qo(r);function r(n){var a;if(Wr(this,r),a=t.call(this,n),J(vt(a),"state",{resetCount:0}),J(vt(a),"cancelRegisterFunc",null),J(vt(a),"mounted",!1),J(vt(a),"touched",!1),J(vt(a),"dirty",!1),J(vt(a),"validatePromise",void 0),J(vt(a),"prevValidating",void 0),J(vt(a),"errors",bo),J(vt(a),"warnings",bo),J(vt(a),"cancelRegister",function(){var l=a.props,c=l.preserve,u=l.isListField,f=l.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(u,c,An(f)),a.cancelRegisterFunc=null}),J(vt(a),"getNamePath",function(){var l=a.props,c=l.name,u=l.fieldContext,f=u.prefixName,m=f===void 0?[]:f;return c!==void 0?[].concat(De(m),De(c)):[]}),J(vt(a),"getRules",function(){var l=a.props,c=l.rules,u=c===void 0?[]:c,f=l.fieldContext;return u.map(function(m){return typeof m=="function"?m(f):m})}),J(vt(a),"refresh",function(){a.mounted&&a.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),J(vt(a),"metaCache",null),J(vt(a),"triggerMetaEvent",function(l){var c=a.props.onMetaChange;if(c){var u=ae(ae({},a.getMeta()),{},{destroy:l});tl(a.metaCache,u)||c(u),a.metaCache=u}else a.metaCache=null}),J(vt(a),"onStoreChange",function(l,c,u){var f=a.props,m=f.shouldUpdate,h=f.dependencies,p=h===void 0?[]:h,g=f.onReset,v=u.store,y=a.getNamePath(),x=a.getValue(l),b=a.getValue(v),S=c&&Qf(c,y);switch(u.type==="valueUpdate"&&u.source==="external"&&!tl(x,b)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=bo,a.warnings=bo,a.triggerMetaEvent()),u.type){case"reset":if(!c||S){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=bo,a.warnings=bo,a.triggerMetaEvent(),g==null||g(),a.refresh();return}break;case"remove":{if(m&&p2(m,l,v,x,b,u)){a.reRender();return}break}case"setField":{var w=u.data;if(S){"touched"in w&&(a.touched=w.touched),"validating"in w&&!("originRCField"in w)&&(a.validatePromise=w.validating?Promise.resolve([]):null),"errors"in w&&(a.errors=w.errors||bo),"warnings"in w&&(a.warnings=w.warnings||bo),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in w&&Qf(c,y,!0)){a.reRender();return}if(m&&!y.length&&p2(m,l,v,x,b,u)){a.reRender();return}break}case"dependenciesUpdate":{var E=p.map(An);if(E.some(function(C){return Qf(u.relatedFields,C)})){a.reRender();return}break}default:if(S||(!p.length||y.length||m)&&p2(m,l,v,x,b,u)){a.reRender();return}break}m===!0&&a.reRender()}),J(vt(a),"validateRules",function(l){var c=a.getNamePath(),u=a.getValue(),f=l||{},m=f.triggerName,h=f.validateOnly,p=h===void 0?!1:h,g=Promise.resolve().then(xi(Or().mark(function v(){var y,x,b,S,w,E,C;return Or().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(a.mounted){_.next=2;break}return _.abrupt("return",[]);case 2:if(y=a.props,x=y.validateFirst,b=x===void 0?!1:x,S=y.messageVariables,w=y.validateDebounce,E=a.getRules(),m&&(E=E.filter(function(P){return P}).filter(function(P){var I=P.validateTrigger;if(!I)return!0;var N=__(I);return N.includes(m)})),!(w&&m)){_.next=10;break}return _.next=8,new Promise(function(P){setTimeout(P,w)});case 8:if(a.validatePromise===g){_.next=10;break}return _.abrupt("return",[]);case 10:return C=tfe(c,u,E,l,b,S),C.catch(function(P){return P}).then(function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:bo;if(a.validatePromise===g){var I;a.validatePromise=null;var N=[],D=[];(I=P.forEach)===null||I===void 0||I.call(P,function(k){var R=k.rule.warningOnly,A=k.errors,j=A===void 0?bo:A;R?D.push.apply(D,De(j)):N.push.apply(N,De(j))}),a.errors=N,a.warnings=D,a.triggerMetaEvent(),a.reRender()}}),_.abrupt("return",C);case 13:case"end":return _.stop()}},v)})));return p||(a.validatePromise=g,a.dirty=!0,a.errors=bo,a.warnings=bo,a.triggerMetaEvent(),a.reRender()),g}),J(vt(a),"isFieldValidating",function(){return!!a.validatePromise}),J(vt(a),"isFieldTouched",function(){return a.touched}),J(vt(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var l=a.props.fieldContext,c=l.getInternalHooks(Fu),u=c.getInitialValue;return u(a.getNamePath())!==void 0}),J(vt(a),"getErrors",function(){return a.errors}),J(vt(a),"getWarnings",function(){return a.warnings}),J(vt(a),"isListField",function(){return a.props.isListField}),J(vt(a),"isList",function(){return a.props.isList}),J(vt(a),"isPreserve",function(){return a.props.preserve}),J(vt(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var l={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return l}),J(vt(a),"getOnlyChild",function(l){if(typeof l=="function"){var c=a.getMeta();return ae(ae({},a.getOnlyChild(l(a.getControlled(),c,a.props.fieldContext))),{},{isFunction:!0})}var u=ha(l);return u.length!==1||!d.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),J(vt(a),"getValue",function(l){var c=a.props.fieldContext.getFieldsValue,u=a.getNamePath();return yi(l||c(!0),u)}),J(vt(a),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=a.props,u=c.name,f=c.trigger,m=c.validateTrigger,h=c.getValueFromEvent,p=c.normalize,g=c.valuePropName,v=c.getValueProps,y=c.fieldContext,x=m!==void 0?m:y.validateTrigger,b=a.getNamePath(),S=y.getInternalHooks,w=y.getFieldsValue,E=S(Fu),C=E.dispatch,O=a.getValue(),_=v||function(k){return J({},g,k)},P=l[f],I=u!==void 0?_(O):{},N=ae(ae({},l),I);N[f]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var k,R=arguments.length,A=new Array(R),j=0;j=0&&P<=I.length?(u.keys=[].concat(De(u.keys.slice(0,P)),[u.id],De(u.keys.slice(P))),b([].concat(De(I.slice(0,P)),[_],De(I.slice(P))))):(u.keys=[].concat(De(u.keys),[u.id]),b([].concat(De(I),[_]))),u.id+=1},remove:function(_){var P=w(),I=new Set(Array.isArray(_)?_:[_]);I.size<=0||(u.keys=u.keys.filter(function(N,D){return!I.has(D)}),b(P.filter(function(N,D){return!I.has(D)})))},move:function(_,P){if(_!==P){var I=w();_<0||_>=I.length||P<0||P>=I.length||(u.keys=u3(u.keys,_,P),b(u3(I,_,P)))}}},C=x||[];return Array.isArray(C)||(C=[]),n(C.map(function(O,_){var P=u.keys[_];return P===void 0&&(u.keys[_]=u.id,P=u.keys[_],u.id+=1),{name:_,key:P,isListField:!0}}),E,v)})))}function sfe(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(a,i){e.forEach(function(o,s){o.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&i(n),a(n))})})}):Promise.resolve([])}var oH="__@field_split__";function v2(e){return e.map(function(t){return"".concat(bt(t),":").concat(t)}).join(oH)}var af=function(){function e(){Wr(this,e),J(this,"kvs",new Map)}return Vr(e,[{key:"set",value:function(r,n){this.kvs.set(v2(r),n)}},{key:"get",value:function(r){return this.kvs.get(v2(r))}},{key:"update",value:function(r,n){var a=this.get(r),i=n(a);i?this.set(r,i):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(v2(r))}},{key:"map",value:function(r){return De(this.kvs.entries()).map(function(n){var a=me(n,2),i=a[0],o=a[1],s=i.split(oH);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=me(c,3),f=u[1],m=u[2];return f==="number"?Number(m):m}),value:o})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var a=n.key,i=n.value;return r[a.join(".")]=i,null}),r}}]),e}(),lfe=["name"],cfe=Vr(function e(t){var r=this;Wr(this,e),J(this,"formHooked",!1),J(this,"forceRootUpdate",void 0),J(this,"subscribable",!0),J(this,"store",{}),J(this,"fieldEntities",[]),J(this,"initialValues",{}),J(this,"callbacks",{}),J(this,"validateMessages",null),J(this,"preserve",null),J(this,"lastValidatePromise",null),J(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),J(this,"getInternalHooks",function(n){return n===Fu?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(Br(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),J(this,"useSubscribe",function(n){r.subscribable=n}),J(this,"prevWithoutPreserves",null),J(this,"setInitialValues",function(n,a){if(r.initialValues=n||{},a){var i,o=Mf(n,r.store);(i=r.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;o=Ro(o,l,yi(n,l))}),r.prevWithoutPreserves=null,r.updateStore(o)}}),J(this,"destroyForm",function(n){if(n)r.updateStore({});else{var a=new af;r.getFieldEntities(!0).forEach(function(i){r.isMergedPreserve(i.isPreserve())||a.set(i.getNamePath(),!0)}),r.prevWithoutPreserves=a}}),J(this,"getInitialValue",function(n){var a=yi(r.initialValues,n);return n.length?Mf(a):a}),J(this,"setCallbacks",function(n){r.callbacks=n}),J(this,"setValidateMessages",function(n){r.validateMessages=n}),J(this,"setPreserve",function(n){r.preserve=n}),J(this,"watchList",[]),J(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(a){return a!==n})}}),J(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var a=r.getFieldsValue(),i=r.getFieldsValue(!0);r.watchList.forEach(function(o){o(a,i,n)})}}),J(this,"timeoutId",null),J(this,"warningUnhooked",function(){}),J(this,"updateStore",function(n){r.store=n}),J(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(a){return a.getNamePath().length}):r.fieldEntities}),J(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new af;return r.getFieldEntities(n).forEach(function(i){var o=i.getNamePath();a.set(o,i)}),a}),J(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var a=r.getFieldsMap(!0);return n.map(function(i){var o=An(i);return a.get(o)||{INVALIDATE_NAME_PATH:An(i)}})}),J(this,"getFieldsValue",function(n,a){r.warningUnhooked();var i,o,s;if(n===!0||Array.isArray(n)?(i=n,o=a):n&&bt(n)==="object"&&(s=n.strict,o=n.filter),i===!0&&!o)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(u){var f,m,h="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var p,g;if((p=(g=u).isList)!==null&&p!==void 0&&p.call(g))return}else if(!i&&(f=(m=u).isListField)!==null&&f!==void 0&&f.call(m))return;if(!o)c.push(h);else{var v="getMeta"in u?u.getMeta():null;o(v)&&c.push(h)}}),c3(r.store,c.map(An))}),J(this,"getFieldValue",function(n){r.warningUnhooked();var a=An(n);return yi(r.store,a)}),J(this,"getFieldsError",function(n){r.warningUnhooked();var a=r.getFieldEntitiesForNamePathList(n);return a.map(function(i,o){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:An(n[o]),errors:[],warnings:[]}})}),J(this,"getFieldError",function(n){r.warningUnhooked();var a=An(n),i=r.getFieldsError([a])[0];return i.errors}),J(this,"getFieldWarning",function(n){r.warningUnhooked();var a=An(n),i=r.getFieldsError([a])[0];return i.warnings}),J(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,a=new Array(n),i=0;i0&&arguments[0]!==void 0?arguments[0]:{},a=new af,i=r.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var f=a.get(u)||new Set;f.add({entity:l,value:c}),a.set(u,f)}});var o=function(c){c.forEach(function(u){var f=u.props.initialValue;if(f!==void 0){var m=u.getNamePath(),h=r.getInitialValue(m);if(h!==void 0)Br(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var p=a.get(m);if(p&&p.size>1)Br(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(p){var g=r.getFieldValue(m),v=u.isListField();!v&&(!n.skipExist||g===void 0)&&r.updateStore(Ro(r.store,m,De(p)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var c=a.get(l);if(c){var u;(u=s).push.apply(u,De(De(c).map(function(f){return f.entity})))}})):s=i,o(s)}),J(this,"resetFields",function(n){r.warningUnhooked();var a=r.store;if(!n){r.updateStore(Mf(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(a,null,{type:"reset"}),r.notifyWatch();return}var i=n.map(An);i.forEach(function(o){var s=r.getInitialValue(o);r.updateStore(Ro(r.store,o,s))}),r.resetWithFieldInitialValue({namePathList:i}),r.notifyObservers(a,i,{type:"reset"}),r.notifyWatch(i)}),J(this,"setFields",function(n){r.warningUnhooked();var a=r.store,i=[];n.forEach(function(o){var s=o.name,l=Rt(o,lfe),c=An(s);i.push(c),"value"in l&&r.updateStore(Ro(r.store,c,l.value)),r.notifyObservers(a,[c],{type:"setField",data:o})}),r.notifyWatch(i)}),J(this,"getFields",function(){var n=r.getFieldEntities(!0),a=n.map(function(i){var o=i.getNamePath(),s=i.getMeta(),l=ae(ae({},s),{},{name:o,value:r.getFieldValue(o)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return a}),J(this,"initEntityValue",function(n){var a=n.props.initialValue;if(a!==void 0){var i=n.getNamePath(),o=yi(r.store,i);o===void 0&&r.updateStore(Ro(r.store,i,a))}}),J(this,"isMergedPreserve",function(n){var a=n!==void 0?n:r.preserve;return a??!0}),J(this,"registerField",function(n){r.fieldEntities.push(n);var a=n.getNamePath();if(r.notifyWatch([a]),n.props.initialValue!==void 0){var i=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(i,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(f){return f!==n}),!r.isMergedPreserve(s)&&(!o||l.length>1)){var c=o?void 0:r.getInitialValue(a);if(a.length&&r.getFieldValue(a)!==c&&r.fieldEntities.every(function(f){return!aH(f.getNamePath(),a)})){var u=r.store;r.updateStore(Ro(u,a,c,!0)),r.notifyObservers(u,[a],{type:"remove"}),r.triggerDependenciesUpdate(u,a)}}r.notifyWatch([a])}}),J(this,"dispatch",function(n){switch(n.type){case"updateValue":{var a=n.namePath,i=n.value;r.updateValue(a,i);break}case"validateField":{var o=n.namePath,s=n.triggerName;r.validateFields([o],{triggerName:s});break}}}),J(this,"notifyObservers",function(n,a,i){if(r.subscribable){var o=ae(ae({},i),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,a,o)})}else r.forceRootUpdate()}),J(this,"triggerDependenciesUpdate",function(n,a){var i=r.getDependencyChildrenFields(a);return i.length&&r.validateFields(i),r.notifyObservers(n,i,{type:"dependenciesUpdate",relatedFields:[a].concat(De(i))}),i}),J(this,"updateValue",function(n,a){var i=An(n),o=r.store;r.updateStore(Ro(r.store,i,a)),r.notifyObservers(o,[i],{type:"valueUpdate",source:"internal"}),r.notifyWatch([i]);var s=r.triggerDependenciesUpdate(o,i),l=r.callbacks.onValuesChange;if(l){var c=c3(r.store,[i]);l(c,r.getFieldsValue())}r.triggerOnFieldsChange([i].concat(De(s)))}),J(this,"setFieldsValue",function(n){r.warningUnhooked();var a=r.store;if(n){var i=Mf(r.store,n);r.updateStore(i)}r.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),J(this,"setFieldValue",function(n,a){r.setFields([{name:n,value:a,errors:[],warnings:[]}])}),J(this,"getDependencyChildrenFields",function(n){var a=new Set,i=[],o=new af;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var f=An(u);o.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(l),m})})});var s=function l(c){var u=o.get(c)||new Set;u.forEach(function(f){if(!a.has(f)){a.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(i.push(m),l(m))}})};return s(n),i}),J(this,"triggerOnFieldsChange",function(n,a){var i=r.callbacks.onFieldsChange;if(i){var o=r.getFields();if(a){var s=new af;a.forEach(function(c){var u=c.name,f=c.errors;s.set(u,f)}),o.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=o.filter(function(c){var u=c.name;return Qf(n,u)});l.length&&i(l,o)}}),J(this,"validateFields",function(n,a){r.warningUnhooked();var i,o;Array.isArray(n)||typeof n=="string"||typeof a=="string"?(i=n,o=a):o=n;var s=!!i,l=s?i.map(An):[],c=[],u=String(Date.now()),f=new Set,m=o||{},h=m.recursive,p=m.dirty;r.getFieldEntities(!0).forEach(function(x){if(s||l.push(x.getNamePath()),!(!x.props.rules||!x.props.rules.length)&&!(p&&!x.isFieldDirty())){var b=x.getNamePath();if(f.add(b.join(u)),!s||Qf(l,b,h)){var S=x.validateRules(ae({validateMessages:ae(ae({},nH),r.validateMessages)},o));c.push(S.then(function(){return{name:b,errors:[],warnings:[]}}).catch(function(w){var E,C=[],O=[];return(E=w.forEach)===null||E===void 0||E.call(w,function(_){var P=_.rule.warningOnly,I=_.errors;P?O.push.apply(O,De(I)):C.push.apply(C,De(I))}),C.length?Promise.reject({name:b,errors:C,warnings:O}):{name:b,errors:C,warnings:O}}))}}});var g=sfe(c);r.lastValidatePromise=g,g.catch(function(x){return x}).then(function(x){var b=x.map(function(S){var w=S.name;return w});r.notifyObservers(r.store,b,{type:"validateFinish"}),r.triggerOnFieldsChange(b,x)});var v=g.then(function(){return r.lastValidatePromise===g?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(x){var b=x.filter(function(S){return S&&S.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:b,outOfDate:r.lastValidatePromise!==g})});v.catch(function(x){return x});var y=l.filter(function(x){return f.has(x.join(u))});return r.triggerOnFieldsChange(y),v}),J(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var a=r.callbacks.onFinish;if(a)try{a(n)}catch(i){console.error(i)}}).catch(function(n){var a=r.callbacks.onFinishFailed;a&&a(n)})}),this.forceRootUpdate=t});function tI(e){var t=d.useRef(),r=d.useState({}),n=me(r,2),a=n[1];if(!t.current)if(e)t.current=e;else{var i=function(){a({})},o=new cfe(i);t.current=o.getForm()}return[t.current]}var M_=d.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),sH=function(t){var r=t.validateMessages,n=t.onFormChange,a=t.onFormFinish,i=t.children,o=d.useContext(M_),s=d.useRef({});return d.createElement(M_.Provider,{value:ae(ae({},o),{},{validateMessages:ae(ae({},o.validateMessages),r),triggerFormChange:function(c,u){n&&n(c,{changedFields:u,forms:s.current}),o.triggerFormChange(c,u)},triggerFormFinish:function(c,u){a&&a(c,{values:u,forms:s.current}),o.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=ae(ae({},s.current),{},J({},c,u))),o.registerForm(c,u)},unregisterForm:function(c){var u=ae({},s.current);delete u[c],s.current=u,o.unregisterForm(c)}})},i)},ufe=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],dfe=function(t,r){var n=t.name,a=t.initialValues,i=t.fields,o=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,f=t.validateMessages,m=t.validateTrigger,h=m===void 0?"onChange":m,p=t.onValuesChange,g=t.onFieldsChange,v=t.onFinish,y=t.onFinishFailed,x=t.clearOnDestroy,b=Rt(t,ufe),S=d.useRef(null),w=d.useContext(M_),E=tI(o),C=me(E,1),O=C[0],_=O.getInternalHooks(Fu),P=_.useSubscribe,I=_.setInitialValues,N=_.setCallbacks,D=_.setValidateMessages,k=_.setPreserve,R=_.destroyForm;d.useImperativeHandle(r,function(){return ae(ae({},O),{},{nativeElement:S.current})}),d.useEffect(function(){return w.registerForm(n,O),function(){w.unregisterForm(n)}},[w,O,n]),D(ae(ae({},w.validateMessages),f)),N({onValuesChange:p,onFieldsChange:function(W){if(w.triggerFormChange(n,W),g){for(var z=arguments.length,U=new Array(z>1?z-1:0),X=1;X{}}),cH=d.createContext(null),uH=e=>{const t=Er(e,["prefixCls"]);return d.createElement(sH,Object.assign({},t))},rI=d.createContext({prefixCls:""}),ga=d.createContext({}),dH=({children:e,status:t,override:r})=>{const n=d.useContext(ga),a=d.useMemo(()=>{const i=Object.assign({},n);return r&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,r,n]);return d.createElement(ga.Provider,{value:a},e)},fH=d.createContext(void 0),mfe=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let a=n;return r&&(a=ve.createElement(dH,{override:!0,status:!0},a)),t&&(a=ve.createElement(kce,null,a)),a},ol=mfe;var mH=function(t){if(Aa()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(a){return a in n.style})}return!1},hfe=function(t,r){if(!mH(t))return!1;var n=document.createElement("div"),a=n.style[t];return n.style[t]=r,n.style[t]!==a};function D_(e,t){return!Array.isArray(e)&&t!==void 0?hfe(e,t):mH(e)}const pfe=()=>Aa()&&window.document.documentElement,vfe=e=>{const{prefixCls:t,className:r,style:n,size:a,shape:i}=e,o=ce({[`${t}-lg`]:a==="large",[`${t}-sm`]:a==="small"}),s=ce({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),l=d.useMemo(()=>typeof a=="number"?{width:a,height:a,lineHeight:`${a}px`}:{},[a]);return d.createElement("span",{className:ce(t,o,s,r),style:Object.assign(Object.assign({},l),n)})},gS=vfe,gfe=new fr("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),yS=e=>({height:e,lineHeight:le(e)}),Zf=e=>Object.assign({width:e},yS(e)),yfe=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:gfe,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),g2=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},yS(e)),xfe=e=>{const{skeletonAvatarCls:t,gradientFromColor:r,controlHeight:n,controlHeightLG:a,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:r},Zf(n)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Zf(a)),[`${t}${t}-sm`]:Object.assign({},Zf(i))}},bfe=e=>{const{controlHeight:t,borderRadiusSM:r,skeletonInputCls:n,controlHeightLG:a,controlHeightSM:i,gradientFromColor:o,calc:s}=e;return{[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:r},g2(t,s)),[`${n}-lg`]:Object.assign({},g2(a,s)),[`${n}-sm`]:Object.assign({},g2(i,s))}},f3=e=>Object.assign({width:e},yS(e)),Sfe=e=>{const{skeletonImageCls:t,imageSizeBase:r,gradientFromColor:n,borderRadiusSM:a,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:n,borderRadius:a},f3(i(r).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},f3(r)),{maxWidth:i(r).mul(4).equal(),maxHeight:i(r).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},y2=(e,t,r)=>{const{skeletonButtonCls:n}=e;return{[`${r}${n}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${r}${n}-round`]:{borderRadius:t}}},x2=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},yS(e)),wfe=e=>{const{borderRadiusSM:t,skeletonButtonCls:r,controlHeight:n,controlHeightLG:a,controlHeightSM:i,gradientFromColor:o,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:o,borderRadius:t,width:s(n).mul(2).equal(),minWidth:s(n).mul(2).equal()},x2(n,s))},y2(e,n,r)),{[`${r}-lg`]:Object.assign({},x2(a,s))}),y2(e,a,`${r}-lg`)),{[`${r}-sm`]:Object.assign({},x2(i,s))}),y2(e,i,`${r}-sm`))},Cfe=e=>{const{componentCls:t,skeletonAvatarCls:r,skeletonTitleCls:n,skeletonParagraphCls:a,skeletonButtonCls:i,skeletonInputCls:o,skeletonImageCls:s,controlHeight:l,controlHeightLG:c,controlHeightSM:u,gradientFromColor:f,padding:m,marginSM:h,borderRadius:p,titleHeight:g,blockRadius:v,paragraphLiHeight:y,controlHeightXS:x,paragraphMarginTop:b}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},Zf(l)),[`${r}-circle`]:{borderRadius:"50%"},[`${r}-lg`]:Object.assign({},Zf(c)),[`${r}-sm`]:Object.assign({},Zf(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[n]:{width:"100%",height:g,background:f,borderRadius:v,[`+ ${a}`]:{marginBlockStart:u}},[a]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:f,borderRadius:v,"+ li":{marginBlockStart:x}}},[`${a}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${n}, ${a} > li`]:{borderRadius:p}}},[`${t}-with-avatar ${t}-content`]:{[n]:{marginBlockStart:h,[`+ ${a}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},wfe(e)),xfe(e)),bfe(e)),Sfe(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[o]:{width:"100%"}},[`${t}${t}-active`]:{[` - ${n}, - ${a} > li, - ${r}, - ${i}, - ${o}, - ${s} - `]:Object.assign({},yfe(e))}}},Efe=e=>{const{colorFillContent:t,colorFill:r}=e,n=t,a=r;return{color:n,colorGradientEnd:a,gradientFromColor:n,gradientToColor:a,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Q0=lr("Skeleton",e=>{const{componentCls:t,calc:r}=e,n=Zt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:r(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return Cfe(n)},Efe,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),$fe=e=>{const{prefixCls:t,className:r,rootClassName:n,active:a,shape:i="circle",size:o="default"}=e,{getPrefixCls:s}=d.useContext(Nt),l=s("skeleton",t),[c,u,f]=Q0(l),m=Er(e,["prefixCls","className"]),h=ce(l,`${l}-element`,{[`${l}-active`]:a},r,n,u,f);return c(d.createElement("div",{className:h},d.createElement(gS,Object.assign({prefixCls:`${l}-avatar`,shape:i,size:o},m))))},_fe=$fe,Ofe=e=>{const{prefixCls:t,className:r,rootClassName:n,active:a,block:i=!1,size:o="default"}=e,{getPrefixCls:s}=d.useContext(Nt),l=s("skeleton",t),[c,u,f]=Q0(l),m=Er(e,["prefixCls"]),h=ce(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:i},r,n,u,f);return c(d.createElement("div",{className:h},d.createElement(gS,Object.assign({prefixCls:`${l}-button`,size:o},m))))},Tfe=Ofe,Pfe="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",Ife=e=>{const{prefixCls:t,className:r,rootClassName:n,style:a,active:i}=e,{getPrefixCls:o}=d.useContext(Nt),s=o("skeleton",t),[l,c,u]=Q0(s),f=ce(s,`${s}-element`,{[`${s}-active`]:i},r,n,c,u);return l(d.createElement("div",{className:f},d.createElement("div",{className:ce(`${s}-image`,r),style:a},d.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},d.createElement("title",null,"Image placeholder"),d.createElement("path",{d:Pfe,className:`${s}-image-path`})))))},Nfe=Ife,kfe=e=>{const{prefixCls:t,className:r,rootClassName:n,active:a,block:i,size:o="default"}=e,{getPrefixCls:s}=d.useContext(Nt),l=s("skeleton",t),[c,u,f]=Q0(l),m=Er(e,["prefixCls"]),h=ce(l,`${l}-element`,{[`${l}-active`]:a,[`${l}-block`]:i},r,n,u,f);return c(d.createElement("div",{className:h},d.createElement(gS,Object.assign({prefixCls:`${l}-input`,size:o},m))))},Rfe=kfe,Afe=e=>{const{prefixCls:t,className:r,rootClassName:n,style:a,active:i,children:o}=e,{getPrefixCls:s}=d.useContext(Nt),l=s("skeleton",t),[c,u,f]=Q0(l),m=ce(l,`${l}-element`,{[`${l}-active`]:i},u,r,n,f);return c(d.createElement("div",{className:m},d.createElement("div",{className:ce(`${l}-image`,r),style:a},o)))},Mfe=Afe,Dfe=(e,t)=>{const{width:r,rows:n=2}=t;if(Array.isArray(r))return r[e];if(n-1===e)return r},jfe=e=>{const{prefixCls:t,className:r,style:n,rows:a=0}=e,i=Array.from({length:a}).map((o,s)=>d.createElement("li",{key:s,style:{width:Dfe(s,e)}}));return d.createElement("ul",{className:ce(t,r),style:n},i)},Ffe=jfe,Lfe=({prefixCls:e,className:t,width:r,style:n})=>d.createElement("h3",{className:ce(e,t),style:Object.assign({width:r},n)}),Bfe=Lfe;function b2(e){return e&&typeof e=="object"?e:{}}function zfe(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Hfe(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function Wfe(e,t){const r={};return(!e||!t)&&(r.width="61%"),!e&&t?r.rows=3:r.rows=2,r}const Z0=e=>{const{prefixCls:t,loading:r,className:n,rootClassName:a,style:i,children:o,avatar:s=!1,title:l=!0,paragraph:c=!0,active:u,round:f}=e,{getPrefixCls:m,direction:h,className:p,style:g}=oa("skeleton"),v=m("skeleton",t),[y,x,b]=Q0(v);if(r||!("loading"in e)){const S=!!s,w=!!l,E=!!c;let C;if(S){const P=Object.assign(Object.assign({prefixCls:`${v}-avatar`},zfe(w,E)),b2(s));C=d.createElement("div",{className:`${v}-header`},d.createElement(gS,Object.assign({},P)))}let O;if(w||E){let P;if(w){const N=Object.assign(Object.assign({prefixCls:`${v}-title`},Hfe(S,E)),b2(l));P=d.createElement(Bfe,Object.assign({},N))}let I;if(E){const N=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},Wfe(S,w)),b2(c));I=d.createElement(Ffe,Object.assign({},N))}O=d.createElement("div",{className:`${v}-content`},P,I)}const _=ce(v,{[`${v}-with-avatar`]:S,[`${v}-active`]:u,[`${v}-rtl`]:h==="rtl",[`${v}-round`]:f},p,n,a,x,b);return y(d.createElement("div",{className:_,style:Object.assign(Object.assign({},g),i)},C,O))}return o??null};Z0.Button=Tfe;Z0.Avatar=_fe;Z0.Input=Rfe;Z0.Image=Nfe;Z0.Node=Mfe;const nI=Z0;function m3(){}const Vfe=d.createContext({add:m3,remove:m3});function Ufe(e){const t=d.useContext(Vfe),r=d.useRef(null);return qt(a=>{if(a){const i=e?a.querySelector(e):a;i&&(t.add(i),r.current=i)}else t.remove(r.current)})}const Kfe=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:r}=d.useContext(vv);return ve.createElement(kt,Object.assign({onClick:r},e),t)},h3=Kfe,Gfe=()=>{const{confirmLoading:e,okButtonProps:t,okType:r,okTextLocale:n,onOk:a}=d.useContext(vv);return ve.createElement(kt,Object.assign({},GP(r),{loading:e,onClick:a},t),n)},p3=Gfe;function hH(e,t){return ve.createElement("span",{className:`${e}-close-x`},t||ve.createElement(cu,{className:`${e}-close-icon`}))}const pH=e=>{const{okText:t,okType:r="primary",cancelText:n,confirmLoading:a,onOk:i,onCancel:o,okButtonProps:s,cancelButtonProps:l,footer:c}=e,[u]=Hi("Modal",Y7()),f=t||(u==null?void 0:u.okText),m=n||(u==null?void 0:u.cancelText),h=ve.useMemo(()=>({confirmLoading:a,okButtonProps:s,cancelButtonProps:l,okTextLocale:f,cancelTextLocale:m,okType:r,onOk:i,onCancel:o}),[a,s,l,f,m,r,i,o]);let p;return typeof c=="function"||typeof c>"u"?(p=ve.createElement(ve.Fragment,null,ve.createElement(h3,null),ve.createElement(p3,null)),typeof c=="function"&&(p=c(p,{OkBtn:p3,CancelBtn:h3})),p=ve.createElement(X9,{value:h},p)):p=c,ve.createElement(DP,{disabled:!1},p)},qfe=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"}}}},Xfe=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},Yfe=(e,t)=>{const{prefixCls:r,componentCls:n,gridColumns:a}=e,i={};for(let o=a;o>=0;o--)o===0?(i[`${n}${t}-${o}`]={display:"none"},i[`${n}-push-${o}`]={insetInlineStart:"auto"},i[`${n}-pull-${o}`]={insetInlineEnd:"auto"},i[`${n}${t}-push-${o}`]={insetInlineStart:"auto"},i[`${n}${t}-pull-${o}`]={insetInlineEnd:"auto"},i[`${n}${t}-offset-${o}`]={marginInlineStart:0},i[`${n}${t}-order-${o}`]={order:0}):(i[`${n}${t}-${o}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${o/a*100}%`,maxWidth:`${o/a*100}%`}],i[`${n}${t}-push-${o}`]={insetInlineStart:`${o/a*100}%`},i[`${n}${t}-pull-${o}`]={insetInlineEnd:`${o/a*100}%`},i[`${n}${t}-offset-${o}`]={marginInlineStart:`${o/a*100}%`},i[`${n}${t}-order-${o}`]={order:o});return i[`${n}${t}-flex`]={flex:`var(--${r}${t}-flex)`},i},j_=(e,t)=>Yfe(e,t),Qfe=(e,t,r)=>({[`@media (min-width: ${le(t)})`]:Object.assign({},j_(e,r))}),Zfe=()=>({}),Jfe=()=>({}),e0e=lr("Grid",qfe,Zfe),vH=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),t0e=lr("Grid",e=>{const t=Zt(e,{gridColumns:24}),r=vH(t);return delete r.xs,[Xfe(t),j_(t,""),j_(t,"-xs"),Object.keys(r).map(n=>Qfe(t,r[n],`-${n}`)).reduce((n,a)=>Object.assign(Object.assign({},n),a),{})]},Jfe);function v3(e){return{position:e,inset:0}}const r0e=e=>{const{componentCls:t,antCls:r}=e;return[{[`${t}-root`]:{[`${t}${r}-zoom-enter, ${t}${r}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${r}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},v3("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},v3("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:U9(e)}]},n0e=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${le(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},dr(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${le(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:le(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Nl(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)} 0 0`,marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,[`${t}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:`${le(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, - ${t}-body, - ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},a0e=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},i0e=e=>{const{componentCls:t}=e,r=vH(e),n=Object.assign({},r);delete n.xs;const a=`--${t.replace(".","")}-`,i=Object.keys(n).map(o=>({[`@media (min-width: ${le(n[o])})`]:{width:`var(${a}${o}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(De(Object.keys(r).map((o,s)=>{const l=Object.keys(r)[s-1];return l?{[`${a}${o}-width`]:`var(${a}${l}-width)`}:null})),[{width:`var(${a}xs-width)`}],De(i))}}},gH=e=>{const t=e.padding,r=e.fontSizeHeading5,n=e.lineHeightHeading5;return Zt(e,{modalHeaderHeight:e.calc(e.calc(n).mul(r).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},yH=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${le(e.paddingMD)} ${le(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${le(e.padding)} ${le(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${le(e.paddingXS)} ${le(e.padding)}`:0,footerBorderTop:e.wireframe?`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${le(e.padding*2)} ${le(e.padding*2)} ${le(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),xH=lr("Modal",e=>{const t=gH(e);return[n0e(t),a0e(t),r0e(t),pv(t,"zoom"),i0e(t)]},yH,{unitless:{titleLineHeight:!0}});var o0e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{F_={x:e.pageX,y:e.pageY},setTimeout(()=>{F_=null},100)};pfe()&&document.documentElement.addEventListener("click",s0e,!0);const l0e=e=>{const{prefixCls:t,className:r,rootClassName:n,open:a,wrapClassName:i,centered:o,getContainer:s,focusTriggerAfterClose:l=!0,style:c,visible:u,width:f=520,footer:m,classNames:h,styles:p,children:g,loading:v,confirmLoading:y,zIndex:x,mousePosition:b,onOk:S,onCancel:w,destroyOnHidden:E,destroyOnClose:C,panelRef:O=null,modalRender:_}=e,P=o0e(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose","panelRef","modalRender"]),{getPopupContainer:I,getPrefixCls:N,direction:D,modal:k}=d.useContext(Nt),R=he=>{y||w==null||w(he)},A=he=>{S==null||S(he)},j=N("modal",t),F=N(),M=vn(j),[V,K,L]=xH(j,M),B=ce(i,{[`${j}-centered`]:o??(k==null?void 0:k.centered),[`${j}-wrap-rtl`]:D==="rtl"}),W=m!==null&&!v?d.createElement(pH,Object.assign({},e,{onOk:A,onCancel:R})):null,[z,U,X,Y]=R9(e1(e),e1(k),{closable:!0,closeIcon:d.createElement(cu,{className:`${j}-close-icon`}),closeIconRender:he=>hH(j,he)}),G=_?he=>d.createElement("div",{className:`${j}-render`},_(he)):void 0,Q=`.${j}-${_?"render":"content"}`,ee=Ufe(Q),H=xa(O,ee),[fe,te]=uu("Modal",x),[re,q]=d.useMemo(()=>f&&typeof f=="object"?[void 0,f]:[f,void 0],[f]),ne=d.useMemo(()=>{const he={};return q&&Object.keys(q).forEach(ye=>{const xe=q[ye];xe!==void 0&&(he[`--${j}-${ye}-width`]=typeof xe=="number"?`${xe}px`:xe)}),he},[j,q]);return V(d.createElement(ol,{form:!0,space:!0},d.createElement(Jb.Provider,{value:te},d.createElement(tH,Object.assign({width:re},P,{zIndex:fe,getContainer:s===void 0?I:s,prefixCls:j,rootClassName:ce(K,n,L,M),footer:W,visible:a??u,mousePosition:b??F_,onClose:R,closable:z&&Object.assign({disabled:X,closeIcon:U},Y),closeIcon:U,focusTriggerAfterClose:l,transitionName:Vc(F,"zoom",e.transitionName),maskTransitionName:Vc(F,"fade",e.maskTransitionName),className:ce(K,r,k==null?void 0:k.className),style:Object.assign(Object.assign(Object.assign({},k==null?void 0:k.style),c),ne),classNames:Object.assign(Object.assign(Object.assign({},k==null?void 0:k.classNames),h),{wrapper:ce(B,h==null?void 0:h.wrapper)}),styles:Object.assign(Object.assign({},k==null?void 0:k.styles),p),panelRef:H,destroyOnClose:E??C,modalRender:G}),v?d.createElement(nI,{active:!0,title:!1,paragraph:{rows:4},className:`${j}-body-skeleton`}):g))))},bH=l0e,c0e=e=>{const{componentCls:t,titleFontSize:r,titleLineHeight:n,modalConfirmIconSize:a,fontSize:i,lineHeight:o,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:c}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},rl()),[`&${t} ${t}-body`]:{padding:c},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:a,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(l).sub(a).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(a).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${le(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${le(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:r,lineHeight:n},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:o},[`${u}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls}, - ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},u0e=U0(["Modal","confirm"],e=>{const t=gH(e);return c0e(t)},yH,{order:-1e3});var d0e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,icon:r,okText:n,cancelText:a,confirmPrefixCls:i,type:o,okCancel:s,footer:l,locale:c}=e,u=d0e(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=r;if(!r&&r!==null)switch(o){case"info":f=d.createElement(zP,null);break;case"success":f=d.createElement(mv,null);break;case"error":f=d.createElement(jd,null);break;default:f=d.createElement(G0,null)}const m=s??o==="confirm",h=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[p]=Hi("Modal"),g=c||p,v=n||(m?g==null?void 0:g.okText:g==null?void 0:g.justOkText),y=a||(g==null?void 0:g.cancelText),x=d.useMemo(()=>Object.assign({autoFocusButton:h,cancelTextLocale:y,okTextLocale:v,mergedOkCancel:m},u),[h,y,v,m,u]),b=d.createElement(d.Fragment,null,d.createElement(UM,null),d.createElement(KM,null)),S=e.title!==void 0&&e.title!==null,w=`${i}-body`;return d.createElement("div",{className:`${i}-body-wrapper`},d.createElement("div",{className:ce(w,{[`${w}-has-title`]:S})},f,d.createElement("div",{className:`${i}-paragraph`},S&&d.createElement("span",{className:`${i}-title`},e.title),d.createElement("div",{className:`${i}-content`},e.content))),l===void 0||typeof l=="function"?d.createElement(X9,{value:x},d.createElement("div",{className:`${i}-btns`},typeof l=="function"?l(b,{OkBtn:KM,CancelBtn:UM}):b)):l,d.createElement(u0e,{prefixCls:t}))},f0e=e=>{const{close:t,zIndex:r,maskStyle:n,direction:a,prefixCls:i,wrapClassName:o,rootPrefixCls:s,bodyStyle:l,closable:c=!1,onConfirm:u,styles:f,title:m}=e,h=`${i}-confirm`,p=e.width||416,g=e.style||{},v=e.mask===void 0?!0:e.mask,y=e.maskClosable===void 0?!1:e.maskClosable,x=ce(h,`${h}-${e.type}`,{[`${h}-rtl`]:a==="rtl"},e.className),[,b]=Ga(),S=d.useMemo(()=>r!==void 0?r:b.zIndexPopupBase+M9,[r,b]);return d.createElement(bH,Object.assign({},e,{className:x,wrapClassName:ce({[`${h}-centered`]:!!e.centered},o),onCancel:()=>{t==null||t({triggerCancel:!0}),u==null||u(!1)},title:m,footer:null,transitionName:Vc(s||"","zoom",e.transitionName),maskTransitionName:Vc(s||"","fade",e.maskTransitionName),mask:v,maskClosable:y,style:g,styles:Object.assign({body:l,mask:n},f),width:p,zIndex:S,closable:c}),d.createElement(SH,Object.assign({},e,{confirmPrefixCls:h})))},wH=e=>{const{rootPrefixCls:t,iconPrefixCls:r,direction:n,theme:a}=e;return d.createElement(Dd,{prefixCls:t,iconPrefixCls:r,direction:n,theme:a},d.createElement(f0e,Object.assign({},e)))},m0e=[],Lu=m0e;let CH="";function EH(){return CH}const h0e=e=>{var t,r;const{prefixCls:n,getContainer:a,direction:i}=e,o=Y7(),s=d.useContext(Nt),l=EH()||s.getPrefixCls(),c=n||`${l}-modal`;let u=a;return u===!1&&(u=void 0),ve.createElement(wH,Object.assign({},e,{rootPrefixCls:l,prefixCls:c,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:i??s.direction,locale:(r=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&r!==void 0?r:o,getContainer:u}))};function yv(e){const t=C9(),r=document.createDocumentFragment();let n=Object.assign(Object.assign({},e),{close:l,open:!0}),a,i;function o(...u){var f;if(u.some(p=>p==null?void 0:p.triggerCancel)){var h;(f=e.onCancel)===null||f===void 0||(h=f).call.apply(h,[e,()=>{}].concat(De(u.slice(1))))}for(let p=0;p{clearTimeout(a),a=setTimeout(()=>{const f=t.getPrefixCls(void 0,EH()),m=t.getIconPrefixCls(),h=t.getTheme(),p=ve.createElement(h0e,Object.assign({},u));i=KP()(ve.createElement(Dd,{prefixCls:f,iconPrefixCls:m,theme:h},typeof t.holderRender=="function"?t.holderRender(p):p),r)})};function l(...u){n=Object.assign(Object.assign({},n),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),o.apply(this,u)}}),n.visible&&delete n.visible,s(n)}function c(u){typeof u=="function"?n=u(n):n=Object.assign(Object.assign({},n),u),s(n)}return s(n),Lu.push(l),{destroy:l,update:c}}function $H(e){return Object.assign(Object.assign({},e),{type:"warning"})}function _H(e){return Object.assign(Object.assign({},e),{type:"info"})}function OH(e){return Object.assign(Object.assign({},e),{type:"success"})}function TH(e){return Object.assign(Object.assign({},e),{type:"error"})}function PH(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function p0e({rootPrefixCls:e}){CH=e}var v0e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var r,{afterClose:n,config:a}=e,i=v0e(e,["afterClose","config"]);const[o,s]=d.useState(!0),[l,c]=d.useState(a),{direction:u,getPrefixCls:f}=d.useContext(Nt),m=f("modal"),h=f(),p=()=>{var x;n(),(x=l.afterClose)===null||x===void 0||x.call(l)},g=(...x)=>{var b;if(s(!1),x.some(E=>E==null?void 0:E.triggerCancel)){var w;(b=l.onCancel)===null||b===void 0||(w=b).call.apply(w,[l,()=>{}].concat(De(x.slice(1))))}};d.useImperativeHandle(t,()=>({destroy:g,update:x=>{c(b=>{const S=typeof x=="function"?x(b):x;return Object.assign(Object.assign({},b),S)})}}));const v=(r=l.okCancel)!==null&&r!==void 0?r:l.type==="confirm",[y]=Hi("Modal",Vo.Modal);return d.createElement(wH,Object.assign({prefixCls:m,rootPrefixCls:h},l,{close:g,open:o,afterClose:p,okText:l.okText||(v?y==null?void 0:y.okText:y==null?void 0:y.justOkText),direction:l.direction||u,cancelText:l.cancelText||(y==null?void 0:y.cancelText)},i))},y0e=d.forwardRef(g0e);let g3=0;const x0e=d.memo(d.forwardRef((e,t)=>{const[r,n]=jle();return d.useImperativeHandle(t,()=>({patchElement:n}),[n]),d.createElement(d.Fragment,null,r)}));function b0e(){const e=d.useRef(null),[t,r]=d.useState([]);d.useEffect(()=>{t.length&&(De(t).forEach(o=>{o()}),r([]))},[t]);const n=d.useCallback(i=>function(s){var l;g3+=1;const c=d.createRef();let u;const f=new Promise(v=>{u=v});let m=!1,h;const p=d.createElement(y0e,{key:`modal-${g3}`,config:i(s),ref:c,afterClose:()=>{h==null||h()},isSilent:()=>m,onConfirm:v=>{u(v)}});return h=(l=e.current)===null||l===void 0?void 0:l.patchElement(p),h&&Lu.push(h),{destroy:()=>{function v(){var y;(y=c.current)===null||y===void 0||y.destroy()}c.current?v():r(y=>[].concat(De(y),[v]))},update:v=>{function y(){var x;(x=c.current)===null||x===void 0||x.update(v)}c.current?y():r(x=>[].concat(De(x),[y]))},then:v=>(m=!0,f.then(v))}},[]);return[d.useMemo(()=>({info:n(_H),success:n(OH),error:n(TH),warning:n($H),confirm:n(PH)}),[n]),d.createElement(x0e,{key:"modal-holder",ref:e})]}const S0e=ve.createContext({});function IH(e){return t=>d.createElement(Dd,{theme:{token:{motion:!1,zIndexPopupBase:0}}},d.createElement(e,Object.assign({},t)))}const w0e=(e,t,r,n,a)=>IH(o=>{const{prefixCls:s,style:l}=o,c=d.useRef(null),[u,f]=d.useState(0),[m,h]=d.useState(0),[p,g]=br(!1,{value:o.open}),{getPrefixCls:v}=d.useContext(Nt),y=v(n||"select",s);d.useEffect(()=>{if(g(!0),typeof ResizeObserver<"u"){const S=new ResizeObserver(E=>{const C=E[0].target;f(C.offsetHeight+8),h(C.offsetWidth)}),w=setInterval(()=>{var E;const C=a?`.${a(y)}`:`.${y}-dropdown`,O=(E=c.current)===null||E===void 0?void 0:E.querySelector(C);O&&(clearInterval(w),S.observe(O))},10);return()=>{clearInterval(w),S.disconnect()}}},[y]);let x=Object.assign(Object.assign({},o),{style:Object.assign(Object.assign({},l),{margin:0}),open:p,visible:p,getPopupContainer:()=>c.current});r&&(x=r(x)),t&&Object.assign(x,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const b={paddingBottom:u,position:"relative",minWidth:m};return d.createElement("div",{ref:c,style:b},d.createElement(e,Object.assign({},x)))}),xv=w0e,xS=function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var bS=function(t){var r=t.className,n=t.customizeIcon,a=t.customizeIconProps,i=t.children,o=t.onMouseDown,s=t.onClick,l=typeof n=="function"?n(a):n;return d.createElement("span",{className:r,onMouseDown:function(u){u.preventDefault(),o==null||o(u)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:d.createElement("span",{className:ce(r.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},i))},C0e=function(t,r,n,a,i){var o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=ve.useMemo(function(){if(bt(a)==="object")return a.clearIcon;if(i)return i},[a,i]),u=ve.useMemo(function(){return!!(!o&&a&&(n.length||s)&&!(l==="combobox"&&s===""))},[a,o,n.length,s,l]);return{allowClear:u,clearIcon:ve.createElement(bS,{className:"".concat(t,"-clear"),onMouseDown:r,customizeIcon:c},"×")}},NH=d.createContext(null);function E0e(){return d.useContext(NH)}function $0e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=d.useState(!1),r=me(t,2),n=r[0],a=r[1],i=d.useRef(null),o=function(){window.clearTimeout(i.current)};d.useEffect(function(){return o},[]);var s=function(c,u){o(),i.current=window.setTimeout(function(){a(c),u&&u()},e)};return[n,s,o]}function kH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=d.useRef(null),r=d.useRef(null);d.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]);function n(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(r.current),r.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},n]}function _0e(e,t,r,n){var a=d.useRef(null);a.current={open:t,triggerOpen:r,customizedTrigger:n},d.useEffect(function(){function i(o){var s;if(!((s=a.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=o.target;l.shadowRoot&&o.composed&&(l=o.composedPath()[0]||l),a.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}function O0e(e){return e&&![Qe.ESC,Qe.SHIFT,Qe.BACKSPACE,Qe.TAB,Qe.WIN_KEY,Qe.ALT,Qe.META,Qe.WIN_KEY_RIGHT,Qe.CTRL,Qe.SEMICOLON,Qe.EQUALS,Qe.CAPS_LOCK,Qe.CONTEXT_MENU,Qe.F1,Qe.F2,Qe.F3,Qe.F4,Qe.F5,Qe.F6,Qe.F7,Qe.F8,Qe.F9,Qe.F10,Qe.F11,Qe.F12].includes(e)}var T0e=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],of=void 0;function P0e(e,t){var r=e.prefixCls,n=e.invalidate,a=e.item,i=e.renderItem,o=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,u=e.className,f=e.style,m=e.children,h=e.display,p=e.order,g=e.component,v=g===void 0?"div":g,y=Rt(e,T0e),x=o&&!h;function b(O){l(c,O)}d.useEffect(function(){return function(){b(null)}},[]);var S=i&&a!==of?i(a,{index:p}):m,w;n||(w={opacity:x?0:1,height:x?0:of,overflowY:x?"hidden":of,order:o?p:of,pointerEvents:x?"none":of,position:x?"absolute":of});var E={};x&&(E["aria-hidden"]=!0);var C=d.createElement(v,Oe({className:ce(!n&&r,u),style:ae(ae({},w),f)},E,y,{ref:t}),S);return o&&(C=d.createElement(Ra,{onResize:function(_){var P=_.offsetWidth;b(P)},disabled:s},C)),C}var Ff=d.forwardRef(P0e);Ff.displayName="Item";function I0e(e){if(typeof MessageChannel>"u")Ut(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function N0e(){var e=d.useRef(null),t=function(n){e.current||(e.current=[],I0e(function(){wi.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(n)};return t}function sf(e,t){var r=d.useState(t),n=me(r,2),a=n[0],i=n[1],o=qt(function(s){e(function(){i(s)})});return[a,o]}var n1=ve.createContext(null),k0e=["component"],R0e=["className"],A0e=["className"],M0e=function(t,r){var n=d.useContext(n1);if(!n){var a=t.component,i=a===void 0?"div":a,o=Rt(t,k0e);return d.createElement(i,Oe({},o,{ref:r}))}var s=n.className,l=Rt(n,R0e),c=t.className,u=Rt(t,A0e);return d.createElement(n1.Provider,{value:null},d.createElement(Ff,Oe({ref:r,className:ce(s,c)},l,u)))},RH=d.forwardRef(M0e);RH.displayName="RawItem";var D0e=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],AH="responsive",MH="invalidate";function j0e(e){return"+ ".concat(e.length," ...")}function F0e(e,t){var r=e.prefixCls,n=r===void 0?"rc-overflow":r,a=e.data,i=a===void 0?[]:a,o=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,u=c===void 0?10:c,f=e.ssr,m=e.style,h=e.className,p=e.maxCount,g=e.renderRest,v=e.renderRawRest,y=e.prefix,x=e.suffix,b=e.component,S=b===void 0?"div":b,w=e.itemComponent,E=e.onVisibleChange,C=Rt(e,D0e),O=f==="full",_=N0e(),P=sf(_,null),I=me(P,2),N=I[0],D=I[1],k=N||0,R=sf(_,new Map),A=me(R,2),j=A[0],F=A[1],M=sf(_,0),V=me(M,2),K=V[0],L=V[1],B=sf(_,0),W=me(B,2),z=W[0],U=W[1],X=sf(_,0),Y=me(X,2),G=Y[0],Q=Y[1],ee=sf(_,0),H=me(ee,2),fe=H[0],te=H[1],re=d.useState(null),q=me(re,2),ne=q[0],he=q[1],ye=d.useState(null),xe=me(ye,2),pe=xe[0],Pe=xe[1],$e=d.useMemo(function(){return pe===null&&O?Number.MAX_SAFE_INTEGER:pe||0},[pe,N]),Ee=d.useState(!1),He=me(Ee,2),Fe=He[0],nt=He[1],qe="".concat(n,"-item"),Ge=Math.max(K,z),Le=p===AH,Ne=i.length&&Le,Se=p===MH,je=Ne||typeof p=="number"&&i.length>p,_e=d.useMemo(function(){var Ye=i;return Ne?N===null&&O?Ye=i:Ye=i.slice(0,Math.min(i.length,k/u)):typeof p=="number"&&(Ye=i.slice(0,p)),Ye},[i,u,N,p,Ne]),Me=d.useMemo(function(){return Ne?i.slice($e+1):i.slice(_e.length)},[i,_e,Ne,$e]),ge=d.useCallback(function(Ye,Ze){var ct;return typeof l=="function"?l(Ye):(ct=l&&(Ye==null?void 0:Ye[l]))!==null&&ct!==void 0?ct:Ze},[l]),be=d.useCallback(o||function(Ye){return Ye},[o]);function Re(Ye,Ze,ct){pe===Ye&&(Ze===void 0||Ze===ne)||(Pe(Ye),ct||(nt(Yek){Re(Z-1,Ye-ue-fe+z);break}}x&&ft(0)+fe>k&&he(null)}},[k,j,z,G,fe,ge,_e]);var lt=Fe&&!!Me.length,mt={};ne!==null&&Ne&&(mt={position:"absolute",left:ne,top:0});var Mt={prefixCls:qe,responsive:Ne,component:w,invalidate:Se},Ft=s?function(Ye,Ze){var ct=ge(Ye,Ze);return d.createElement(n1.Provider,{key:ct,value:ae(ae({},Mt),{},{order:Ze,item:Ye,itemKey:ct,registerSize:at,display:Ze<=$e})},s(Ye,Ze))}:function(Ye,Ze){var ct=ge(Ye,Ze);return d.createElement(Ff,Oe({},Mt,{order:Ze,key:ct,item:Ye,renderItem:be,itemKey:ct,registerSize:at,display:Ze<=$e}))},ht={order:lt?$e:Number.MAX_SAFE_INTEGER,className:"".concat(qe,"-rest"),registerSize:yt,display:lt},St=g||j0e,xt=v?d.createElement(n1.Provider,{value:ae(ae({},Mt),ht)},v(Me)):d.createElement(Ff,Oe({},Mt,ht),typeof St=="function"?St(Me):St),rt=d.createElement(S,Oe({className:ce(!Se&&n,h),style:m,ref:t},C),y&&d.createElement(Ff,Oe({},Mt,{responsive:Le,responsiveDisabled:!Ne,order:-1,className:"".concat(qe,"-prefix"),registerSize:tt,display:!0}),y),_e.map(Ft),je?xt:null,x&&d.createElement(Ff,Oe({},Mt,{responsive:Le,responsiveDisabled:!Ne,order:$e,className:"".concat(qe,"-suffix"),registerSize:it,display:!0,style:mt}),x));return Le?d.createElement(Ra,{onResize:We,disabled:!Ne},rt):rt}var bs=d.forwardRef(F0e);bs.displayName="Overflow";bs.Item=RH;bs.RESPONSIVE=AH;bs.INVALIDATE=MH;function L0e(e,t,r){var n=ae(ae({},e),r?t:{});return Object.keys(t).forEach(function(a){var i=t[a];typeof i=="function"&&(n[a]=function(){for(var o,s=arguments.length,l=new Array(s),c=0;cb&&(xe="".concat(pe.slice(0,b),"..."))}var Pe=function(Ee){Ee&&Ee.stopPropagation(),O(re)};return typeof E=="function"?G(he,xe,q,ye,Pe):Y(re,xe,q,ye,Pe)},ee=function(re){if(!a.length)return null;var q=typeof w=="function"?w(re):w;return typeof E=="function"?G(void 0,q,!1,!1,void 0,!0):Y({title:q},q,!1)},H=d.createElement("div",{className:"".concat(z,"-search"),style:{width:M},onFocus:function(){W(!0)},onBlur:function(){W(!1)}},d.createElement(DH,{ref:l,open:i,prefixCls:n,id:r,inputElement:null,disabled:u,autoFocus:h,autoComplete:p,editable:X,activeDescendantId:g,value:U,onKeyDown:I,onMouseDown:N,onChange:_,onPaste:P,onCompositionStart:D,onCompositionEnd:k,onBlur:R,tabIndex:v,attrs:Dn(t,!0)}),d.createElement("span",{ref:A,className:"".concat(z,"-search-mirror"),"aria-hidden":!0},U," ")),fe=d.createElement(bs,{prefixCls:"".concat(z,"-overflow"),data:a,renderItem:Q,renderRest:ee,suffix:H,itemKey:G0e,maxCount:x});return d.createElement("span",{className:"".concat(z,"-wrap")},fe,!a.length&&!U&&d.createElement("span",{className:"".concat(z,"-placeholder")},c))},X0e=function(t){var r=t.inputElement,n=t.prefixCls,a=t.id,i=t.inputRef,o=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,u=t.mode,f=t.open,m=t.values,h=t.placeholder,p=t.tabIndex,g=t.showSearch,v=t.searchValue,y=t.activeValue,x=t.maxLength,b=t.onInputKeyDown,S=t.onInputMouseDown,w=t.onInputChange,E=t.onInputPaste,C=t.onInputCompositionStart,O=t.onInputCompositionEnd,_=t.onInputBlur,P=t.title,I=d.useState(!1),N=me(I,2),D=N[0],k=N[1],R=u==="combobox",A=R||g,j=m[0],F=v||"";R&&y&&!D&&(F=y),d.useEffect(function(){R&&k(!1)},[R,y]);var M=u!=="combobox"&&!f&&!g?!1:!!F,V=P===void 0?FH(j):P,K=d.useMemo(function(){return j?null:d.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:M?{visibility:"hidden"}:void 0},h)},[j,M,h,n]);return d.createElement("span",{className:"".concat(n,"-selection-wrap")},d.createElement("span",{className:"".concat(n,"-selection-search")},d.createElement(DH,{ref:i,prefixCls:n,id:a,open:f,inputElement:r,disabled:o,autoFocus:s,autoComplete:l,editable:A,activeDescendantId:c,value:F,onKeyDown:b,onMouseDown:S,onChange:function(B){k(!0),w(B)},onPaste:E,onCompositionStart:C,onCompositionEnd:O,onBlur:_,tabIndex:p,attrs:Dn(t,!0),maxLength:R?x:void 0})),!R&&j?d.createElement("span",{className:"".concat(n,"-selection-item"),title:V,style:M?{visibility:"hidden"}:void 0},j.label):null,K)},Y0e=function(t,r){var n=d.useRef(null),a=d.useRef(!1),i=t.prefixCls,o=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,u=t.disabled,f=t.prefix,m=t.autoClearSearchValue,h=t.onSearch,p=t.onSearchSubmit,g=t.onToggleOpen,v=t.onInputKeyDown,y=t.onInputBlur,x=t.domRef;d.useImperativeHandle(r,function(){return{focus:function(V){n.current.focus(V)},blur:function(){n.current.blur()}}});var b=kH(0),S=me(b,2),w=S[0],E=S[1],C=function(V){var K=V.which,L=n.current instanceof HTMLTextAreaElement;!L&&o&&(K===Qe.UP||K===Qe.DOWN)&&V.preventDefault(),v&&v(V),K===Qe.ENTER&&s==="tags"&&!a.current&&!o&&(p==null||p(V.target.value)),!(L&&!o&&~[Qe.UP,Qe.DOWN,Qe.LEFT,Qe.RIGHT].indexOf(K))&&O0e(K)&&g(!0)},O=function(){E(!0)},_=d.useRef(null),P=function(V){h(V,!0,a.current)!==!1&&g(!0)},I=function(){a.current=!0},N=function(V){a.current=!1,s!=="combobox"&&P(V.target.value)},D=function(V){var K=V.target.value;if(c&&_.current&&/[\r\n]/.test(_.current)){var L=_.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");K=K.replace(L,_.current)}_.current=null,P(K)},k=function(V){var K=V.clipboardData,L=K==null?void 0:K.getData("text");_.current=L||""},R=function(V){var K=V.target;if(K!==n.current){var L=document.body.style.msTouchAction!==void 0;L?setTimeout(function(){n.current.focus()}):n.current.focus()}},A=function(V){var K=w();V.target!==n.current&&!K&&!(s==="combobox"&&u)&&V.preventDefault(),(s!=="combobox"&&(!l||!K)||!o)&&(o&&m!==!1&&h("",!0,!1),g())},j={inputRef:n,onInputKeyDown:C,onInputMouseDown:O,onInputChange:D,onInputPaste:k,onInputCompositionStart:I,onInputCompositionEnd:N,onInputBlur:y},F=s==="multiple"||s==="tags"?d.createElement(q0e,Oe({},t,j)):d.createElement(X0e,Oe({},t,j));return d.createElement("div",{ref:x,className:"".concat(i,"-selector"),onClick:R,onMouseDown:A},f&&d.createElement("div",{className:"".concat(i,"-prefix")},f),F)},Q0e=d.forwardRef(Y0e);function Z0e(e){var t=e.prefixCls,r=e.align,n=e.arrow,a=e.arrowPos,i=n||{},o=i.className,s=i.content,l=a.x,c=l===void 0?0:l,u=a.y,f=u===void 0?0:u,m=d.useRef();if(!r||!r.points)return null;var h={position:"absolute"};if(r.autoArrow!==!1){var p=r.points[0],g=r.points[1],v=p[0],y=p[1],x=g[0],b=g[1];v===x||!["t","b"].includes(v)?h.top=f:v==="t"?h.top=0:h.bottom=0,y===b||!["l","r"].includes(y)?h.left=c:y==="l"?h.left=0:h.right=0}return d.createElement("div",{ref:m,className:ce("".concat(t,"-arrow"),o),style:h},s)}function J0e(e){var t=e.prefixCls,r=e.open,n=e.zIndex,a=e.mask,i=e.motion;return a?d.createElement(Vi,Oe({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(o){var s=o.className;return d.createElement("div",{style:{zIndex:n},className:ce("".concat(t,"-mask"),s)})}):null}var eme=d.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),tme=d.forwardRef(function(e,t){var r=e.popup,n=e.className,a=e.prefixCls,i=e.style,o=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,f=e.onClick,m=e.mask,h=e.arrow,p=e.arrowPos,g=e.align,v=e.motion,y=e.maskMotion,x=e.forceRender,b=e.getPopupContainer,S=e.autoDestroy,w=e.portal,E=e.zIndex,C=e.onMouseEnter,O=e.onMouseLeave,_=e.onPointerEnter,P=e.onPointerDownCapture,I=e.ready,N=e.offsetX,D=e.offsetY,k=e.offsetR,R=e.offsetB,A=e.onAlign,j=e.onPrepare,F=e.stretch,M=e.targetWidth,V=e.targetHeight,K=typeof r=="function"?r():r,L=l||c,B=(b==null?void 0:b.length)>0,W=d.useState(!b||!B),z=me(W,2),U=z[0],X=z[1];if(Gt(function(){!U&&B&&o&&X(!0)},[U,B,o]),!U)return null;var Y="auto",G={left:"-1000vw",top:"-1000vh",right:Y,bottom:Y};if(I||!l){var Q,ee=g.points,H=g.dynamicInset||((Q=g._experimental)===null||Q===void 0?void 0:Q.dynamicInset),fe=H&&ee[0][1]==="r",te=H&&ee[0][0]==="b";fe?(G.right=k,G.left=Y):(G.left=N,G.right=Y),te?(G.bottom=R,G.top=Y):(G.top=D,G.bottom=Y)}var re={};return F&&(F.includes("height")&&V?re.height=V:F.includes("minHeight")&&V&&(re.minHeight=V),F.includes("width")&&M?re.width=M:F.includes("minWidth")&&M&&(re.minWidth=M)),l||(re.pointerEvents="none"),d.createElement(w,{open:x||L,getContainer:b&&function(){return b(o)},autoDestroy:S},d.createElement(J0e,{prefixCls:a,open:l,zIndex:E,mask:m,motion:y}),d.createElement(Ra,{onResize:A,disabled:!l},function(q){return d.createElement(Vi,Oe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:"".concat(a,"-hidden")},v,{onAppearPrepare:j,onEnterPrepare:j,visible:l,onVisibleChanged:function(he){var ye;v==null||(ye=v.onVisibleChanged)===null||ye===void 0||ye.call(v,he),s(he)}}),function(ne,he){var ye=ne.className,xe=ne.style,pe=ce(a,ye,n);return d.createElement("div",{ref:xa(q,t,he),className:pe,style:ae(ae(ae(ae({"--arrow-x":"".concat(p.x||0,"px"),"--arrow-y":"".concat(p.y||0,"px")},G),re),xe),{},{boxSizing:"border-box",zIndex:E},i),onMouseEnter:C,onMouseLeave:O,onPointerEnter:_,onClick:f,onPointerDownCapture:P},h&&d.createElement(Z0e,{prefixCls:a,arrow:h,arrowPos:p,align:g}),d.createElement(eme,{cache:!l&&!u},K))})}))}),rme=d.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,a=_s(r),i=d.useCallback(function(s){lp(t,n?n(s):s)},[n]),o=Wl(i,su(r));return a?d.cloneElement(r,{ref:o}):r}),b3=d.createContext(null);function S3(e){return e?Array.isArray(e)?e:[e]:[]}function nme(e,t,r,n){return d.useMemo(function(){var a=S3(r??t),i=S3(n??t),o=new Set(a),s=new Set(i);return e&&(o.has("hover")&&(o.delete("hover"),o.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[o,s]},[e,t,r,n])}function ame(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function ime(e,t,r,n){for(var a=r.points,i=Object.keys(e),o=0;o1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function jm(e){return xp(parseFloat(e),0)}function C3(e,t){var r=ae({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var a=bv(n).getComputedStyle(n),i=a.overflow,o=a.overflowClipMargin,s=a.borderTopWidth,l=a.borderBottomWidth,c=a.borderLeftWidth,u=a.borderRightWidth,f=n.getBoundingClientRect(),m=n.offsetHeight,h=n.clientHeight,p=n.offsetWidth,g=n.clientWidth,v=jm(s),y=jm(l),x=jm(c),b=jm(u),S=xp(Math.round(f.width/p*1e3)/1e3),w=xp(Math.round(f.height/m*1e3)/1e3),E=(p-g-x-b)*S,C=(m-h-v-y)*w,O=v*w,_=y*w,P=x*S,I=b*S,N=0,D=0;if(i==="clip"){var k=jm(o);N=k*S,D=k*w}var R=f.x+P-N,A=f.y+O-D,j=R+f.width+2*N-P-I-E,F=A+f.height+2*D-O-_-C;r.left=Math.max(r.left,R),r.top=Math.max(r.top,A),r.right=Math.min(r.right,j),r.bottom=Math.min(r.bottom,F)}}),r}function E3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function $3(e,t){var r=t||[],n=me(r,2),a=n[0],i=n[1];return[E3(e.width,a),E3(e.height,i)]}function _3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function lf(e,t){var r=t[0],n=t[1],a,i;return r==="t"?i=e.y:r==="b"?i=e.y+e.height:i=e.y+e.height/2,n==="l"?a=e.x:n==="r"?a=e.x+e.width:a=e.x+e.width/2,{x:a,y:i}}function ec(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,a){return a===t?r[n]||"c":n}).join("")}function ome(e,t,r,n,a,i,o){var s=d.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[n]||{}}),l=me(s,2),c=l[0],u=l[1],f=d.useRef(0),m=d.useMemo(function(){return t?L_(t):[]},[t]),h=d.useRef({}),p=function(){h.current={}};e||p();var g=qt(function(){if(t&&r&&e){let In=function(Ti,Pi){var As=arguments.length>2&&arguments[2]!==void 0?arguments[2]:He,vg=L.x+Ti,gg=L.y+Pi,yC=vg+te,Bt=gg+fe,Yt=Math.max(vg,As.left),an=Math.max(gg,As.top),Nn=Math.min(yC,As.right),on=Math.min(Bt,As.bottom);return Math.max(0,(Nn-Yt)*(on-an))},hi=function(){Ae=L.y+St,Ce=Ae+fe,Ie=L.x+ht,Te=Ie+te};var Sr=In,nn=hi,x,b,S,w,E=t,C=E.ownerDocument,O=bv(E),_=O.getComputedStyle(E),P=_.position,I=E.style.left,N=E.style.top,D=E.style.right,k=E.style.bottom,R=E.style.overflow,A=ae(ae({},a[n]),i),j=C.createElement("div");(x=E.parentElement)===null||x===void 0||x.appendChild(j),j.style.left="".concat(E.offsetLeft,"px"),j.style.top="".concat(E.offsetTop,"px"),j.style.position=P,j.style.height="".concat(E.offsetHeight,"px"),j.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var F;if(Array.isArray(r))F={x:r[0],y:r[1],width:0,height:0};else{var M,V,K=r.getBoundingClientRect();K.x=(M=K.x)!==null&&M!==void 0?M:K.left,K.y=(V=K.y)!==null&&V!==void 0?V:K.top,F={x:K.x,y:K.y,width:K.width,height:K.height}}var L=E.getBoundingClientRect(),B=O.getComputedStyle(E),W=B.height,z=B.width;L.x=(b=L.x)!==null&&b!==void 0?b:L.left,L.y=(S=L.y)!==null&&S!==void 0?S:L.top;var U=C.documentElement,X=U.clientWidth,Y=U.clientHeight,G=U.scrollWidth,Q=U.scrollHeight,ee=U.scrollTop,H=U.scrollLeft,fe=L.height,te=L.width,re=F.height,q=F.width,ne={left:0,top:0,right:X,bottom:Y},he={left:-H,top:-ee,right:G-H,bottom:Q-ee},ye=A.htmlRegion,xe="visible",pe="visibleFirst";ye!=="scroll"&&ye!==pe&&(ye=xe);var Pe=ye===pe,$e=C3(he,m),Ee=C3(ne,m),He=ye===xe?Ee:$e,Fe=Pe?Ee:He;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var nt=E.getBoundingClientRect();E.style.left=I,E.style.top=N,E.style.right=D,E.style.bottom=k,E.style.overflow=R,(w=E.parentElement)===null||w===void 0||w.removeChild(j);var qe=xp(Math.round(te/parseFloat(z)*1e3)/1e3),Ge=xp(Math.round(fe/parseFloat(W)*1e3)/1e3);if(qe===0||Ge===0||sp(r)&&!q0(r))return;var Le=A.offset,Ne=A.targetOffset,Se=$3(L,Le),je=me(Se,2),_e=je[0],Me=je[1],ge=$3(F,Ne),be=me(ge,2),Re=be[0],We=be[1];F.x-=Re,F.y-=We;var at=A.points||[],yt=me(at,2),tt=yt[0],it=yt[1],ft=_3(it),lt=_3(tt),mt=lf(F,ft),Mt=lf(L,lt),Ft=ae({},A),ht=mt.x-Mt.x+_e,St=mt.y-Mt.y+Me,xt=In(ht,St),rt=In(ht,St,Ee),Ye=lf(F,["t","l"]),Ze=lf(L,["t","l"]),ct=lf(F,["b","r"]),Z=lf(L,["b","r"]),ue=A.overflow||{},se=ue.adjustX,ie=ue.adjustY,oe=ue.shiftX,de=ue.shiftY,we=function(Pi){return typeof Pi=="boolean"?Pi:Pi>=0},Ae,Ce,Ie,Te;hi();var Xe=we(ie),ke=lt[0]===ft[0];if(Xe&<[0]==="t"&&(Ce>Fe.bottom||h.current.bt)){var Be=St;ke?Be-=fe-re:Be=Ye.y-Z.y-Me;var ze=In(ht,Be),Ve=In(ht,Be,Ee);ze>xt||ze===xt&&(!Pe||Ve>=rt)?(h.current.bt=!0,St=Be,Me=-Me,Ft.points=[ec(lt,0),ec(ft,0)]):h.current.bt=!1}if(Xe&<[0]==="b"&&(Aext||ot===xt&&(!Pe||wt>=rt)?(h.current.tb=!0,St=et,Me=-Me,Ft.points=[ec(lt,0),ec(ft,0)]):h.current.tb=!1}var Lt=we(se),pt=lt[1]===ft[1];if(Lt&<[1]==="l"&&(Te>Fe.right||h.current.rl)){var Ot=ht;pt?Ot-=te-q:Ot=Ye.x-Z.x-_e;var zt=In(Ot,St),pr=In(Ot,St,Ee);zt>xt||zt===xt&&(!Pe||pr>=rt)?(h.current.rl=!0,ht=Ot,_e=-_e,Ft.points=[ec(lt,1),ec(ft,1)]):h.current.rl=!1}if(Lt&<[1]==="r"&&(Iext||Pr===xt&&(!Pe||Pn>=rt)?(h.current.lr=!0,ht=Ir,_e=-_e,Ft.points=[ec(lt,1),ec(ft,1)]):h.current.lr=!1}hi();var dn=oe===!0?0:oe;typeof dn=="number"&&(IeEe.right&&(ht-=Te-Ee.right-_e,F.x>Ee.right-dn&&(ht+=F.x-Ee.right+dn)));var Bn=de===!0?0:de;typeof Bn=="number"&&(AeEe.bottom&&(St-=Ce-Ee.bottom-Me,F.y>Ee.bottom-Bn&&(St+=F.y-Ee.bottom+Bn)));var zn=L.x+ht,sa=zn+te,Hn=L.y+St,mr=Hn+fe,It=F.x,Pt=It+q,cr=F.y,_t=cr+re,Tt=Math.max(zn,It),nr=Math.min(sa,Pt),Nr=(Tt+nr)/2,Kr=Nr-zn,Wn=Math.max(Hn,cr),yn=Math.min(mr,_t),Vn=(Wn+yn)/2,Jt=Vn-Hn;o==null||o(t,Ft);var dt=nt.right-L.x-(ht+L.width),$t=nt.bottom-L.y-(St+L.height);qe===1&&(ht=Math.round(ht),dt=Math.round(dt)),Ge===1&&(St=Math.round(St),$t=Math.round($t));var tr={ready:!0,offsetX:ht/qe,offsetY:St/Ge,offsetR:dt/qe,offsetB:$t/Ge,arrowX:Kr/qe,arrowY:Jt/Ge,scaleX:qe,scaleY:Ge,align:Ft};u(tr)}}),v=function(){f.current+=1;var b=f.current;Promise.resolve().then(function(){f.current===b&&g()})},y=function(){u(function(b){return ae(ae({},b),{},{ready:!1})})};return Gt(y,[n]),Gt(function(){e||y()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,v]}function sme(e,t,r,n,a){Gt(function(){if(e&&t&&r){let m=function(){n(),a()};var f=m,i=t,o=r,s=L_(i),l=L_(o),c=bv(o),u=new Set([c].concat(De(s),De(l)));return u.forEach(function(h){h.addEventListener("scroll",m,{passive:!0})}),c.addEventListener("resize",m,{passive:!0}),n(),function(){u.forEach(function(h){h.removeEventListener("scroll",m),c.removeEventListener("resize",m)})}}},[e,t,r])}function lme(e,t,r,n,a,i,o,s){var l=d.useRef(e);l.current=e;var c=d.useRef(!1);d.useEffect(function(){if(t&&n&&(!a||i)){var f=function(){c.current=!1},m=function(v){var y;l.current&&!o(((y=v.composedPath)===null||y===void 0||(y=y.call(v))===null||y===void 0?void 0:y[0])||v.target)&&!c.current&&s(!1)},h=bv(n);h.addEventListener("pointerdown",f,!0),h.addEventListener("mousedown",m,!0),h.addEventListener("contextmenu",m,!0);var p=Zx(r);return p&&(p.addEventListener("mousedown",m,!0),p.addEventListener("contextmenu",m,!0)),function(){h.removeEventListener("pointerdown",f,!0),h.removeEventListener("mousedown",m,!0),h.removeEventListener("contextmenu",m,!0),p&&(p.removeEventListener("mousedown",m,!0),p.removeEventListener("contextmenu",m,!0))}}},[t,r,n,a,i]);function u(){c.current=!0}return u}var cme=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function ume(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ZP,t=d.forwardRef(function(r,n){var a=r.prefixCls,i=a===void 0?"rc-trigger-popup":a,o=r.children,s=r.action,l=s===void 0?"hover":s,c=r.showAction,u=r.hideAction,f=r.popupVisible,m=r.defaultPopupVisible,h=r.onPopupVisibleChange,p=r.afterPopupVisibleChange,g=r.mouseEnterDelay,v=r.mouseLeaveDelay,y=v===void 0?.1:v,x=r.focusDelay,b=r.blurDelay,S=r.mask,w=r.maskClosable,E=w===void 0?!0:w,C=r.getPopupContainer,O=r.forceRender,_=r.autoDestroy,P=r.destroyPopupOnHide,I=r.popup,N=r.popupClassName,D=r.popupStyle,k=r.popupPlacement,R=r.builtinPlacements,A=R===void 0?{}:R,j=r.popupAlign,F=r.zIndex,M=r.stretch,V=r.getPopupClassNameFromAlign,K=r.fresh,L=r.alignPoint,B=r.onPopupClick,W=r.onPopupAlign,z=r.arrow,U=r.popupMotion,X=r.maskMotion,Y=r.popupTransitionName,G=r.popupAnimation,Q=r.maskTransitionName,ee=r.maskAnimation,H=r.className,fe=r.getTriggerDOMNode,te=Rt(r,cme),re=_||P||!1,q=d.useState(!1),ne=me(q,2),he=ne[0],ye=ne[1];Gt(function(){ye(xS())},[]);var xe=d.useRef({}),pe=d.useContext(b3),Pe=d.useMemo(function(){return{registerSubPopup:function(Yt,an){xe.current[Yt]=an,pe==null||pe.registerSubPopup(Yt,an)}}},[pe]),$e=vS(),Ee=d.useState(null),He=me(Ee,2),Fe=He[0],nt=He[1],qe=d.useRef(null),Ge=qt(function(Bt){qe.current=Bt,sp(Bt)&&Fe!==Bt&&nt(Bt),pe==null||pe.registerSubPopup($e,Bt)}),Le=d.useState(null),Ne=me(Le,2),Se=Ne[0],je=Ne[1],_e=d.useRef(null),Me=qt(function(Bt){sp(Bt)&&Se!==Bt&&(je(Bt),_e.current=Bt)}),ge=d.Children.only(o),be=(ge==null?void 0:ge.props)||{},Re={},We=qt(function(Bt){var Yt,an,Nn=Se;return(Nn==null?void 0:Nn.contains(Bt))||((Yt=Zx(Nn))===null||Yt===void 0?void 0:Yt.host)===Bt||Bt===Nn||(Fe==null?void 0:Fe.contains(Bt))||((an=Zx(Fe))===null||an===void 0?void 0:an.host)===Bt||Bt===Fe||Object.values(xe.current).some(function(on){return(on==null?void 0:on.contains(Bt))||Bt===on})}),at=w3(i,U,G,Y),yt=w3(i,X,ee,Q),tt=d.useState(m||!1),it=me(tt,2),ft=it[0],lt=it[1],mt=f??ft,Mt=qt(function(Bt){f===void 0&<(Bt)});Gt(function(){lt(f||!1)},[f]);var Ft=d.useRef(mt);Ft.current=mt;var ht=d.useRef([]);ht.current=[];var St=qt(function(Bt){var Yt;Mt(Bt),((Yt=ht.current[ht.current.length-1])!==null&&Yt!==void 0?Yt:mt)!==Bt&&(ht.current.push(Bt),h==null||h(Bt))}),xt=d.useRef(),rt=function(){clearTimeout(xt.current)},Ye=function(Yt){var an=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;rt(),an===0?St(Yt):xt.current=setTimeout(function(){St(Yt)},an*1e3)};d.useEffect(function(){return rt},[]);var Ze=d.useState(!1),ct=me(Ze,2),Z=ct[0],ue=ct[1];Gt(function(Bt){(!Bt||mt)&&ue(!0)},[mt]);var se=d.useState(null),ie=me(se,2),oe=ie[0],de=ie[1],we=d.useState(null),Ae=me(we,2),Ce=Ae[0],Ie=Ae[1],Te=function(Yt){Ie([Yt.clientX,Yt.clientY])},Xe=ome(mt,Fe,L&&Ce!==null?Ce:Se,k,A,j,W),ke=me(Xe,11),Be=ke[0],ze=ke[1],Ve=ke[2],et=ke[3],ot=ke[4],wt=ke[5],Lt=ke[6],pt=ke[7],Ot=ke[8],zt=ke[9],pr=ke[10],Ir=nme(he,l,c,u),Pr=me(Ir,2),Pn=Pr[0],dn=Pr[1],Bn=Pn.has("click"),zn=dn.has("click")||dn.has("contextMenu"),sa=qt(function(){Z||pr()}),Hn=function(){Ft.current&&L&&zn&&Ye(!1)};sme(mt,Se,Fe,sa,Hn),Gt(function(){sa()},[Ce,k]),Gt(function(){mt&&!(A!=null&&A[k])&&sa()},[JSON.stringify(j)]);var mr=d.useMemo(function(){var Bt=ime(A,i,zt,L);return ce(Bt,V==null?void 0:V(zt))},[zt,V,A,i,L]);d.useImperativeHandle(n,function(){return{nativeElement:_e.current,popupElement:qe.current,forceAlign:sa}});var It=d.useState(0),Pt=me(It,2),cr=Pt[0],_t=Pt[1],Tt=d.useState(0),nr=me(Tt,2),Nr=nr[0],Kr=nr[1],Wn=function(){if(M&&Se){var Yt=Se.getBoundingClientRect();_t(Yt.width),Kr(Yt.height)}},yn=function(){Wn(),sa()},Vn=function(Yt){ue(!1),pr(),p==null||p(Yt)},Jt=function(){return new Promise(function(Yt){Wn(),de(function(){return Yt})})};Gt(function(){oe&&(pr(),oe(),de(null))},[oe]);function dt(Bt,Yt,an,Nn){Re[Bt]=function(on){var yg;Nn==null||Nn(on),Ye(Yt,an);for(var xC=arguments.length,y4=new Array(xC>1?xC-1:0),xg=1;xg1?an-1:0),on=1;on1?an-1:0),on=1;on1&&arguments[1]!==void 0?arguments[1]:{},r=t.fieldNames,n=t.childrenAsData,a=[],i=LH(r,!1),o=i.label,s=i.value,l=i.options,c=i.groupLabel;function u(f,m){Array.isArray(f)&&f.forEach(function(h){if(m||!(l in h)){var p=h[s];a.push({key:O3(h,a.length),groupOption:m,data:h,label:h[o],value:p})}else{var g=h[c];g===void 0&&n&&(g=h.label),a.push({key:O3(h,a.length),group:!0,data:h,label:g}),u(h[l],!0)}})}return u(e,!1),a}function z_(e){var t=ae({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Br(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var vme=function(t,r,n){if(!r||!r.length)return null;var a=!1,i=function s(l,c){var u=U7(c),f=u[0],m=u.slice(1);if(!f)return[l];var h=l.split(f);return a=a||h.length>1,h.reduce(function(p,g){return[].concat(De(p),De(s(g,m)))},[]).filter(Boolean)},o=i(t,r);return a?typeof n<"u"?o.slice(0,n):o:null},aI=d.createContext(null);function gme(e){var t=e.visible,r=e.values;if(!t)return null;var n=50;return d.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(r.slice(0,n).map(function(a){var i=a.label,o=a.value;return["number","string"].includes(bt(i))?i:o}).join(", ")),r.length>n?", ...":null)}var yme=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],xme=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],H_=function(t){return t==="tags"||t==="multiple"},bme=d.forwardRef(function(e,t){var r,n=e.id,a=e.prefixCls,i=e.className,o=e.showSearch,s=e.tagRender,l=e.direction,c=e.omitDomProps,u=e.displayValues,f=e.onDisplayValuesChange,m=e.emptyOptions,h=e.notFoundContent,p=h===void 0?"Not Found":h,g=e.onClear,v=e.mode,y=e.disabled,x=e.loading,b=e.getInputElement,S=e.getRawInputElement,w=e.open,E=e.defaultOpen,C=e.onDropdownVisibleChange,O=e.activeValue,_=e.onActiveValueChange,P=e.activeDescendantId,I=e.searchValue,N=e.autoClearSearchValue,D=e.onSearch,k=e.onSearchSplit,R=e.tokenSeparators,A=e.allowClear,j=e.prefix,F=e.suffixIcon,M=e.clearIcon,V=e.OptionList,K=e.animation,L=e.transitionName,B=e.dropdownStyle,W=e.dropdownClassName,z=e.dropdownMatchSelectWidth,U=e.dropdownRender,X=e.dropdownAlign,Y=e.placement,G=e.builtinPlacements,Q=e.getPopupContainer,ee=e.showAction,H=ee===void 0?[]:ee,fe=e.onFocus,te=e.onBlur,re=e.onKeyUp,q=e.onKeyDown,ne=e.onMouseDown,he=Rt(e,yme),ye=H_(v),xe=(o!==void 0?o:ye)||v==="combobox",pe=ae({},he);xme.forEach(function(It){delete pe[It]}),c==null||c.forEach(function(It){delete pe[It]});var Pe=d.useState(!1),$e=me(Pe,2),Ee=$e[0],He=$e[1];d.useEffect(function(){He(xS())},[]);var Fe=d.useRef(null),nt=d.useRef(null),qe=d.useRef(null),Ge=d.useRef(null),Le=d.useRef(null),Ne=d.useRef(!1),Se=$0e(),je=me(Se,3),_e=je[0],Me=je[1],ge=je[2];d.useImperativeHandle(t,function(){var It,Pt;return{focus:(It=Ge.current)===null||It===void 0?void 0:It.focus,blur:(Pt=Ge.current)===null||Pt===void 0?void 0:Pt.blur,scrollTo:function(_t){var Tt;return(Tt=Le.current)===null||Tt===void 0?void 0:Tt.scrollTo(_t)},nativeElement:Fe.current||nt.current}});var be=d.useMemo(function(){var It;if(v!=="combobox")return I;var Pt=(It=u[0])===null||It===void 0?void 0:It.value;return typeof Pt=="string"||typeof Pt=="number"?String(Pt):""},[I,v,u]),Re=v==="combobox"&&typeof b=="function"&&b()||null,We=typeof S=="function"&&S(),at=Wl(nt,We==null||(r=We.props)===null||r===void 0?void 0:r.ref),yt=d.useState(!1),tt=me(yt,2),it=tt[0],ft=tt[1];Gt(function(){ft(!0)},[]);var lt=br(!1,{defaultValue:E,value:w}),mt=me(lt,2),Mt=mt[0],Ft=mt[1],ht=it?Mt:!1,St=!p&&m;(y||St&&ht&&v==="combobox")&&(ht=!1);var xt=St?!1:ht,rt=d.useCallback(function(It){var Pt=It!==void 0?It:!ht;y||(Ft(Pt),ht!==Pt&&(C==null||C(Pt)))},[y,ht,Ft,C]),Ye=d.useMemo(function(){return(R||[]).some(function(It){return[` -`,`\r -`].includes(It)})},[R]),Ze=d.useContext(aI)||{},ct=Ze.maxCount,Z=Ze.rawValues,ue=function(Pt,cr,_t){if(!(ye&&B_(ct)&&(Z==null?void 0:Z.size)>=ct)){var Tt=!0,nr=Pt;_==null||_(null);var Nr=vme(Pt,R,B_(ct)?ct-Z.size:void 0),Kr=_t?null:Nr;return v!=="combobox"&&Kr&&(nr="",k==null||k(Kr),rt(!1),Tt=!1),D&&be!==nr&&D(nr,{source:cr?"typing":"effect"}),Tt}},se=function(Pt){!Pt||!Pt.trim()||D(Pt,{source:"submit"})};d.useEffect(function(){!ht&&!ye&&v!=="combobox"&&ue("",!1,!1)},[ht]),d.useEffect(function(){Mt&&y&&Ft(!1),y&&!Ne.current&&Me(!1)},[y]);var ie=kH(),oe=me(ie,2),de=oe[0],we=oe[1],Ae=d.useRef(!1),Ce=function(Pt){var cr=de(),_t=Pt.key,Tt=_t==="Enter";if(Tt&&(v!=="combobox"&&Pt.preventDefault(),ht||rt(!0)),we(!!be),_t==="Backspace"&&!cr&&ye&&!be&&u.length){for(var nr=De(u),Nr=null,Kr=nr.length-1;Kr>=0;Kr-=1){var Wn=nr[Kr];if(!Wn.disabled){nr.splice(Kr,1),Nr=Wn;break}}Nr&&f(nr,{type:"remove",values:[Nr]})}for(var yn=arguments.length,Vn=new Array(yn>1?yn-1:0),Jt=1;Jt1?cr-1:0),Tt=1;Tt1?Nr-1:0),Wn=1;Wn"u"?"undefined":bt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const zH=function(e,t,r,n){var a=d.useRef(!1),i=d.useRef(null);function o(){clearTimeout(i.current),a.current=!0,i.current=setTimeout(function(){a.current=!1},50)}var s=d.useRef({top:e,bottom:t,left:r,right:n});return s.current.top=e,s.current.bottom=t,s.current.left=r,s.current.right=n,function(l,c){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return u&&f?(clearTimeout(i.current),a.current=!1):(!f||a.current)&&o(),!a.current&&f}};function $me(e,t,r,n,a,i,o){var s=d.useRef(0),l=d.useRef(null),c=d.useRef(null),u=d.useRef(!1),f=zH(t,r,n,a);function m(x,b){if(Ut.cancel(l.current),!f(!1,b)){var S=x;if(!S._virtualHandled)S._virtualHandled=!0;else return;s.current+=b,c.current=b,T3||S.preventDefault(),l.current=Ut(function(){var w=u.current?10:1;o(s.current*w,!1),s.current=0})}}function h(x,b){o(b,!0),T3||x.preventDefault()}var p=d.useRef(null),g=d.useRef(null);function v(x){if(e){Ut.cancel(g.current),g.current=Ut(function(){p.current=null},2);var b=x.deltaX,S=x.deltaY,w=x.shiftKey,E=b,C=S;(p.current==="sx"||!p.current&&w&&S&&!b)&&(E=S,C=0,p.current="sx");var O=Math.abs(E),_=Math.abs(C);p.current===null&&(p.current=i&&O>_?"x":"y"),p.current==="y"?m(x,C):h(x,E)}}function y(x){e&&(u.current=x.detail===c.current)}return[v,y]}function _me(e,t,r,n){var a=d.useMemo(function(){return[new Map,[]]},[e,r.id,n]),i=me(a,2),o=i[0],s=i[1],l=function(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:u,m=o.get(u),h=o.get(f);if(m===void 0||h===void 0)for(var p=e.length,g=s.length;g0&&arguments[0]!==void 0?arguments[0]:!1;u();var p=function(){var y=!1;s.current.forEach(function(x,b){if(x&&x.offsetParent){var S=x.offsetHeight,w=getComputedStyle(x),E=w.marginTop,C=w.marginBottom,O=P3(E),_=P3(C),P=S+O+_;l.current.get(b)!==P&&(l.current.set(b,P),y=!0)}}),y&&o(function(x){return x+1})};if(h)p();else{c.current+=1;var g=c.current;Promise.resolve().then(function(){g===c.current&&p()})}}function m(h,p){var g=e(h),v=s.current.get(g);p?(s.current.set(g,p),f()):s.current.delete(g),!v!=!p&&(p?t==null||t(h):r==null||r(h))}return d.useEffect(function(){return u},[]),[m,f,l.current,i]}var I3=14/15;function Pme(e,t,r){var n=d.useRef(!1),a=d.useRef(0),i=d.useRef(0),o=d.useRef(null),s=d.useRef(null),l,c=function(h){if(n.current){var p=Math.ceil(h.touches[0].pageX),g=Math.ceil(h.touches[0].pageY),v=a.current-p,y=i.current-g,x=Math.abs(v)>Math.abs(y);x?a.current=p:i.current=g;var b=r(x,x?v:y,!1,h);b&&h.preventDefault(),clearInterval(s.current),b&&(s.current=setInterval(function(){x?v*=I3:y*=I3;var S=Math.floor(x?v:y);(!r(x,S,!0)||Math.abs(S)<=.1)&&clearInterval(s.current)},16))}},u=function(){n.current=!1,l()},f=function(h){l(),h.touches.length===1&&!n.current&&(n.current=!0,a.current=Math.ceil(h.touches[0].pageX),i.current=Math.ceil(h.touches[0].pageY),o.current=h.target,o.current.addEventListener("touchmove",c,{passive:!1}),o.current.addEventListener("touchend",u,{passive:!0}))};l=function(){o.current&&(o.current.removeEventListener("touchmove",c),o.current.removeEventListener("touchend",u))},Gt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var m;(m=t.current)===null||m===void 0||m.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}function N3(e){return Math.floor(Math.pow(e,.5))}function W_(e,t){var r="touches"in e?e.touches[0]:e;return r[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function Ime(e,t,r){d.useEffect(function(){var n=t.current;if(e&&n){var a=!1,i,o,s=function(){Ut.cancel(i)},l=function m(){s(),i=Ut(function(){r(o),m()})},c=function(){a=!1,s()},u=function(h){if(!(h.target.draggable||h.button!==0)){var p=h;p._virtualHandled||(p._virtualHandled=!0,a=!0)}},f=function(h){if(a){var p=W_(h,!1),g=n.getBoundingClientRect(),v=g.top,y=g.bottom;if(p<=v){var x=v-p;o=-N3(x),l()}else if(p>=y){var b=p-y;o=N3(b),l()}else s()}};return n.addEventListener("mousedown",u),n.ownerDocument.addEventListener("mouseup",c),n.ownerDocument.addEventListener("mousemove",f),n.ownerDocument.addEventListener("dragend",c),function(){n.removeEventListener("mousedown",u),n.ownerDocument.removeEventListener("mouseup",c),n.ownerDocument.removeEventListener("mousemove",f),n.ownerDocument.removeEventListener("dragend",c),s()}}},[e])}var Nme=10;function kme(e,t,r,n,a,i,o,s){var l=d.useRef(),c=d.useState(null),u=me(c,2),f=u[0],m=u[1];return Gt(function(){if(f&&f.times=0;k-=1){var R=a(t[k]),A=r.get(R);if(A===void 0){x=!0;break}if(D-=A,D<=0)break}switch(w){case"top":S=C-v;break;case"bottom":S=O-y+v;break;default:{var j=e.current.scrollTop,F=j+y;CF&&(b="bottom")}}S!==null&&o(S),S!==f.lastTop&&(x=!0)}x&&m(ae(ae({},f),{},{times:f.times+1,targetAlign:b,lastTop:S}))}},[f,e.current]),function(h){if(h==null){s();return}if(Ut.cancel(l.current),typeof h=="number")o(h);else if(h&&bt(h)==="object"){var p,g=h.align;"index"in h?p=h.index:p=t.findIndex(function(x){return a(x)===h.key});var v=h.offset,y=v===void 0?0:v;m({times:0,index:p,offset:y,originAlign:g})}}}var k3=d.forwardRef(function(e,t){var r=e.prefixCls,n=e.rtl,a=e.scrollOffset,i=e.scrollRange,o=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,u=e.spinSize,f=e.containerSize,m=e.style,h=e.thumbStyle,p=e.showScrollBar,g=d.useState(!1),v=me(g,2),y=v[0],x=v[1],b=d.useState(null),S=me(b,2),w=S[0],E=S[1],C=d.useState(null),O=me(C,2),_=O[0],P=O[1],I=!n,N=d.useRef(),D=d.useRef(),k=d.useState(p),R=me(k,2),A=R[0],j=R[1],F=d.useRef(),M=function(){p===!0||p===!1||(clearTimeout(F.current),j(!0),F.current=setTimeout(function(){j(!1)},3e3))},V=i-f||0,K=f-u||0,L=d.useMemo(function(){if(a===0||V===0)return 0;var ee=a/V;return ee*K},[a,V,K]),B=function(H){H.stopPropagation(),H.preventDefault()},W=d.useRef({top:L,dragging:y,pageY:w,startTop:_});W.current={top:L,dragging:y,pageY:w,startTop:_};var z=function(H){x(!0),E(W_(H,c)),P(W.current.top),o(),H.stopPropagation(),H.preventDefault()};d.useEffect(function(){var ee=function(re){re.preventDefault()},H=N.current,fe=D.current;return H.addEventListener("touchstart",ee,{passive:!1}),fe.addEventListener("touchstart",z,{passive:!1}),function(){H.removeEventListener("touchstart",ee),fe.removeEventListener("touchstart",z)}},[]);var U=d.useRef();U.current=V;var X=d.useRef();X.current=K,d.useEffect(function(){if(y){var ee,H=function(re){var q=W.current,ne=q.dragging,he=q.pageY,ye=q.startTop;Ut.cancel(ee);var xe=N.current.getBoundingClientRect(),pe=f/(c?xe.width:xe.height);if(ne){var Pe=(W_(re,c)-he)*pe,$e=ye;!I&&c?$e-=Pe:$e+=Pe;var Ee=U.current,He=X.current,Fe=He?$e/He:0,nt=Math.ceil(Fe*Ee);nt=Math.max(nt,0),nt=Math.min(nt,Ee),ee=Ut(function(){l(nt,c)})}},fe=function(){x(!1),s()};return window.addEventListener("mousemove",H,{passive:!0}),window.addEventListener("touchmove",H,{passive:!0}),window.addEventListener("mouseup",fe,{passive:!0}),window.addEventListener("touchend",fe,{passive:!0}),function(){window.removeEventListener("mousemove",H),window.removeEventListener("touchmove",H),window.removeEventListener("mouseup",fe),window.removeEventListener("touchend",fe),Ut.cancel(ee)}}},[y]),d.useEffect(function(){return M(),function(){clearTimeout(F.current)}},[a]),d.useImperativeHandle(t,function(){return{delayHidden:M}});var Y="".concat(r,"-scrollbar"),G={position:"absolute",visibility:A?null:"hidden"},Q={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return c?(Object.assign(G,{height:8,left:0,right:0,bottom:0}),Object.assign(Q,J({height:"100%",width:u},I?"left":"right",L))):(Object.assign(G,J({width:8,top:0,bottom:0},I?"right":"left",0)),Object.assign(Q,{width:"100%",height:u,top:L})),d.createElement("div",{ref:N,className:ce(Y,J(J(J({},"".concat(Y,"-horizontal"),c),"".concat(Y,"-vertical"),!c),"".concat(Y,"-visible"),A)),style:ae(ae({},G),m),onMouseDown:B,onMouseMove:M},d.createElement("div",{ref:D,className:ce("".concat(Y,"-thumb"),J({},"".concat(Y,"-thumb-moving"),y)),style:ae(ae({},Q),h),onMouseDown:z}))}),Rme=20;function R3(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e/t*e;return isNaN(r)&&(r=0),r=Math.max(r,Rme),Math.floor(r)}var Ame=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Mme=[],Dme={overflowY:"auto",overflowAnchor:"none"};function jme(e,t){var r=e.prefixCls,n=r===void 0?"rc-virtual-list":r,a=e.className,i=e.height,o=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,u=e.data,f=e.children,m=e.itemKey,h=e.virtual,p=e.direction,g=e.scrollWidth,v=e.component,y=v===void 0?"div":v,x=e.onScroll,b=e.onVirtualScroll,S=e.onVisibleChange,w=e.innerProps,E=e.extraRender,C=e.styles,O=e.showScrollBar,_=O===void 0?"optional":O,P=Rt(e,Ame),I=d.useCallback(function(ke){return typeof m=="function"?m(ke):ke==null?void 0:ke[m]},[m]),N=Tme(I,null,null),D=me(N,4),k=D[0],R=D[1],A=D[2],j=D[3],F=!!(h!==!1&&i&&o),M=d.useMemo(function(){return Object.values(A.maps).reduce(function(ke,Be){return ke+Be},0)},[A.id,A.maps]),V=F&&u&&(Math.max(o*u.length,M)>i||!!g),K=p==="rtl",L=ce(n,J({},"".concat(n,"-rtl"),K),a),B=u||Mme,W=d.useRef(),z=d.useRef(),U=d.useRef(),X=d.useState(0),Y=me(X,2),G=Y[0],Q=Y[1],ee=d.useState(0),H=me(ee,2),fe=H[0],te=H[1],re=d.useState(!1),q=me(re,2),ne=q[0],he=q[1],ye=function(){he(!0)},xe=function(){he(!1)},pe={getKey:I};function Pe(ke){Q(function(Be){var ze;typeof ke=="function"?ze=ke(Be):ze=ke;var Ve=ft(ze);return W.current.scrollTop=Ve,Ve})}var $e=d.useRef({start:0,end:B.length}),Ee=d.useRef(),He=Eme(B,I),Fe=me(He,1),nt=Fe[0];Ee.current=nt;var qe=d.useMemo(function(){if(!F)return{scrollHeight:void 0,start:0,end:B.length-1,offset:void 0};if(!V){var ke;return{scrollHeight:((ke=z.current)===null||ke===void 0?void 0:ke.offsetHeight)||0,start:0,end:B.length-1,offset:void 0}}for(var Be=0,ze,Ve,et,ot=B.length,wt=0;wt=G&&ze===void 0&&(ze=wt,Ve=Be),zt>G+i&&et===void 0&&(et=wt),Be=zt}return ze===void 0&&(ze=0,Ve=0,et=Math.ceil(i/o)),et===void 0&&(et=B.length-1),et=Math.min(et+1,B.length-1),{scrollHeight:Be,start:ze,end:et,offset:Ve}},[V,F,G,B,j,i]),Ge=qe.scrollHeight,Le=qe.start,Ne=qe.end,Se=qe.offset;$e.current.start=Le,$e.current.end=Ne,d.useLayoutEffect(function(){var ke=A.getRecord();if(ke.size===1){var Be=Array.from(ke.keys())[0],ze=ke.get(Be),Ve=B[Le];if(Ve&&ze===void 0){var et=I(Ve);if(et===Be){var ot=A.get(Be),wt=ot-o;Pe(function(Lt){return Lt+wt})}}}A.resetRecord()},[Ge]);var je=d.useState({width:0,height:i}),_e=me(je,2),Me=_e[0],ge=_e[1],be=function(Be){ge({width:Be.offsetWidth,height:Be.offsetHeight})},Re=d.useRef(),We=d.useRef(),at=d.useMemo(function(){return R3(Me.width,g)},[Me.width,g]),yt=d.useMemo(function(){return R3(Me.height,Ge)},[Me.height,Ge]),tt=Ge-i,it=d.useRef(tt);it.current=tt;function ft(ke){var Be=ke;return Number.isNaN(it.current)||(Be=Math.min(Be,it.current)),Be=Math.max(Be,0),Be}var lt=G<=0,mt=G>=tt,Mt=fe<=0,Ft=fe>=g,ht=zH(lt,mt,Mt,Ft),St=function(){return{x:K?-fe:fe,y:G}},xt=d.useRef(St()),rt=qt(function(ke){if(b){var Be=ae(ae({},St()),ke);(xt.current.x!==Be.x||xt.current.y!==Be.y)&&(b(Be),xt.current=Be)}});function Ye(ke,Be){var ze=ke;Be?(wi.flushSync(function(){te(ze)}),rt()):Pe(ze)}function Ze(ke){var Be=ke.currentTarget.scrollTop;Be!==G&&Pe(Be),x==null||x(ke),rt()}var ct=function(Be){var ze=Be,Ve=g?g-Me.width:0;return ze=Math.max(ze,0),ze=Math.min(ze,Ve),ze},Z=qt(function(ke,Be){Be?(wi.flushSync(function(){te(function(ze){var Ve=ze+(K?-ke:ke);return ct(Ve)})}),rt()):Pe(function(ze){var Ve=ze+ke;return Ve})}),ue=$me(F,lt,mt,Mt,Ft,!!g,Z),se=me(ue,2),ie=se[0],oe=se[1];Pme(F,W,function(ke,Be,ze,Ve){var et=Ve;return ht(ke,Be,ze)?!1:!et||!et._virtualHandled?(et&&(et._virtualHandled=!0),ie({preventDefault:function(){},deltaX:ke?Be:0,deltaY:ke?0:Be}),!0):!1}),Ime(V,W,function(ke){Pe(function(Be){return Be+ke})}),Gt(function(){function ke(ze){var Ve=lt&&ze.detail<0,et=mt&&ze.detail>0;F&&!Ve&&!et&&ze.preventDefault()}var Be=W.current;return Be.addEventListener("wheel",ie,{passive:!1}),Be.addEventListener("DOMMouseScroll",oe,{passive:!0}),Be.addEventListener("MozMousePixelScroll",ke,{passive:!1}),function(){Be.removeEventListener("wheel",ie),Be.removeEventListener("DOMMouseScroll",oe),Be.removeEventListener("MozMousePixelScroll",ke)}},[F,lt,mt]),Gt(function(){if(g){var ke=ct(fe);te(ke),rt({x:ke})}},[Me.width,g]);var de=function(){var Be,ze;(Be=Re.current)===null||Be===void 0||Be.delayHidden(),(ze=We.current)===null||ze===void 0||ze.delayHidden()},we=kme(W,B,A,o,I,function(){return R(!0)},Pe,de);d.useImperativeHandle(t,function(){return{nativeElement:U.current,getScrollInfo:St,scrollTo:function(Be){function ze(Ve){return Ve&&bt(Ve)==="object"&&("left"in Ve||"top"in Ve)}ze(Be)?(Be.left!==void 0&&te(ct(Be.left)),we(Be.top)):we(Be)}}}),Gt(function(){if(S){var ke=B.slice(Le,Ne+1);S(ke,B)}},[Le,Ne,B]);var Ae=_me(B,I,A,o),Ce=E==null?void 0:E({start:Le,end:Ne,virtual:V,offsetX:fe,offsetY:Se,rtl:K,getSize:Ae}),Ie=wme(B,Le,Ne,g,fe,k,f,pe),Te=null;i&&(Te=ae(J({},l?"height":"maxHeight",i),Dme),F&&(Te.overflowY="hidden",g&&(Te.overflowX="hidden"),ne&&(Te.pointerEvents="none")));var Xe={};return K&&(Xe.dir="rtl"),d.createElement("div",Oe({ref:U,style:ae(ae({},c),{},{position:"relative"}),className:L},Xe,P),d.createElement(Ra,{onResize:be},d.createElement(y,{className:"".concat(n,"-holder"),style:Te,ref:W,onScroll:Ze,onMouseEnter:de},d.createElement(BH,{prefixCls:n,height:Ge,offsetX:fe,offsetY:Se,scrollWidth:g,onInnerResize:R,ref:z,innerProps:w,rtl:K,extra:Ce},Ie))),V&&Ge>i&&d.createElement(k3,{ref:Re,prefixCls:n,scrollOffset:G,scrollRange:Ge,rtl:K,onScroll:Ye,onStartMove:ye,onStopMove:xe,spinSize:yt,containerSize:Me.height,style:C==null?void 0:C.verticalScrollBar,thumbStyle:C==null?void 0:C.verticalScrollBarThumb,showScrollBar:_}),V&&g>Me.width&&d.createElement(k3,{ref:We,prefixCls:n,scrollOffset:fe,scrollRange:g,rtl:K,onScroll:Ye,onStartMove:ye,onStopMove:xe,spinSize:at,containerSize:Me.width,horizontal:!0,style:C==null?void 0:C.horizontalScrollBar,thumbStyle:C==null?void 0:C.horizontalScrollBarThumb,showScrollBar:_}))}var SS=d.forwardRef(jme);SS.displayName="List";function Fme(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Lme=["disabled","title","children","style","className"];function A3(e){return typeof e=="string"||typeof e=="number"}var Bme=function(t,r){var n=E0e(),a=n.prefixCls,i=n.id,o=n.open,s=n.multiple,l=n.mode,c=n.searchValue,u=n.toggleOpen,f=n.notFoundContent,m=n.onPopupScroll,h=d.useContext(aI),p=h.maxCount,g=h.flattenOptions,v=h.onActiveValue,y=h.defaultActiveFirstOption,x=h.onSelect,b=h.menuItemSelectedIcon,S=h.rawValues,w=h.fieldNames,E=h.virtual,C=h.direction,O=h.listHeight,_=h.listItemHeight,P=h.optionRender,I="".concat(a,"-item"),N=Md(function(){return g},[o,g],function(ee,H){return H[0]&&ee[1]!==H[1]}),D=d.useRef(null),k=d.useMemo(function(){return s&&B_(p)&&(S==null?void 0:S.size)>=p},[s,p,S==null?void 0:S.size]),R=function(H){H.preventDefault()},A=function(H){var fe;(fe=D.current)===null||fe===void 0||fe.scrollTo(typeof H=="number"?{index:H}:H)},j=d.useCallback(function(ee){return l==="combobox"?!1:S.has(ee)},[l,De(S).toString(),S.size]),F=function(H){for(var fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,te=N.length,re=0;re1&&arguments[1]!==void 0?arguments[1]:!1;L(H);var te={source:fe?"keyboard":"mouse"},re=N[H];if(!re){v(null,-1,te);return}v(re.value,H,te)};d.useEffect(function(){B(y!==!1?F(0):-1)},[N.length,c]);var W=d.useCallback(function(ee){return l==="combobox"?String(ee).toLowerCase()===c.toLowerCase():S.has(ee)},[l,c,De(S).toString(),S.size]);d.useEffect(function(){var ee=setTimeout(function(){if(!s&&o&&S.size===1){var fe=Array.from(S)[0],te=N.findIndex(function(re){var q=re.data;return c?String(q.value).startsWith(c):q.value===fe});te!==-1&&(B(te),A(te))}});if(o){var H;(H=D.current)===null||H===void 0||H.scrollTo(void 0)}return function(){return clearTimeout(ee)}},[o,c]);var z=function(H){H!==void 0&&x(H,{selected:!S.has(H)}),s||u(!1)};if(d.useImperativeHandle(r,function(){return{onKeyDown:function(H){var fe=H.which,te=H.ctrlKey;switch(fe){case Qe.N:case Qe.P:case Qe.UP:case Qe.DOWN:{var re=0;if(fe===Qe.UP?re=-1:fe===Qe.DOWN?re=1:Fme()&&te&&(fe===Qe.N?re=1:fe===Qe.P&&(re=-1)),re!==0){var q=F(K+re,re);A(q),B(q,!0)}break}case Qe.TAB:case Qe.ENTER:{var ne,he=N[K];he&&!(he!=null&&(ne=he.data)!==null&&ne!==void 0&&ne.disabled)&&!k?z(he.value):z(void 0),o&&H.preventDefault();break}case Qe.ESC:u(!1),o&&H.stopPropagation()}},onKeyUp:function(){},scrollTo:function(H){A(H)}}}),N.length===0)return d.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(I,"-empty"),onMouseDown:R},f);var U=Object.keys(w).map(function(ee){return w[ee]}),X=function(H){return H.label};function Y(ee,H){var fe=ee.group;return{role:fe?"presentation":"option",id:"".concat(i,"_list_").concat(H)}}var G=function(H){var fe=N[H];if(!fe)return null;var te=fe.data||{},re=te.value,q=fe.group,ne=Dn(te,!0),he=X(fe);return fe?d.createElement("div",Oe({"aria-label":typeof he=="string"&&!q?he:null},ne,{key:H},Y(fe,H),{"aria-selected":W(re)}),re):null},Q={role:"listbox",id:"".concat(i,"_list")};return d.createElement(d.Fragment,null,E&&d.createElement("div",Oe({},Q,{style:{height:0,width:0,overflow:"hidden"}}),G(K-1),G(K),G(K+1)),d.createElement(SS,{itemKey:"key",ref:D,data:N,height:O,itemHeight:_,fullHeight:!1,onMouseDown:R,onScroll:m,virtual:E,direction:C,innerProps:E?null:Q},function(ee,H){var fe=ee.group,te=ee.groupOption,re=ee.data,q=ee.label,ne=ee.value,he=re.key;if(fe){var ye,xe=(ye=re.title)!==null&&ye!==void 0?ye:A3(q)?q.toString():void 0;return d.createElement("div",{className:ce(I,"".concat(I,"-group"),re.className),title:xe},q!==void 0?q:he)}var pe=re.disabled,Pe=re.title;re.children;var $e=re.style,Ee=re.className,He=Rt(re,Lme),Fe=Er(He,U),nt=j(ne),qe=pe||!nt&&k,Ge="".concat(I,"-option"),Le=ce(I,Ge,Ee,J(J(J(J({},"".concat(Ge,"-grouped"),te),"".concat(Ge,"-active"),K===H&&!qe),"".concat(Ge,"-disabled"),qe),"".concat(Ge,"-selected"),nt)),Ne=X(ee),Se=!b||typeof b=="function"||nt,je=typeof Ne=="number"?Ne:Ne||ne,_e=A3(je)?je.toString():void 0;return Pe!==void 0&&(_e=Pe),d.createElement("div",Oe({},Dn(Fe),E?{}:Y(ee,H),{"aria-selected":W(ne),className:Le,title:_e,onMouseMove:function(){K===H||qe||B(H)},onClick:function(){qe||z(ne)},style:$e}),d.createElement("div",{className:"".concat(Ge,"-content")},typeof P=="function"?P(ee,{index:H}):je),d.isValidElement(b)||nt,Se&&d.createElement(bS,{className:"".concat(I,"-option-state"),customizeIcon:b,customizeIconProps:{value:ne,disabled:qe,isSelected:nt}},nt?"✓":null))}))},zme=d.forwardRef(Bme);const Hme=function(e,t){var r=d.useRef({values:new Map,options:new Map}),n=d.useMemo(function(){var i=r.current,o=i.values,s=i.options,l=e.map(function(f){if(f.label===void 0){var m;return ae(ae({},f),{},{label:(m=o.get(f.value))===null||m===void 0?void 0:m.label})}return f}),c=new Map,u=new Map;return l.forEach(function(f){c.set(f.value,f),u.set(f.value,t.get(f.value)||s.get(f.value))}),r.current.values=c,r.current.options=u,l},[e,t]),a=d.useCallback(function(i){return t.get(i)||r.current.options.get(i)},[t]);return[n,a]};function S2(e,t){return jH(e).join("").toUpperCase().includes(t)}const Wme=function(e,t,r,n,a){return d.useMemo(function(){if(!r||n===!1)return e;var i=t.options,o=t.label,s=t.value,l=[],c=typeof n=="function",u=r.toUpperCase(),f=c?n:function(h,p){return a?S2(p[a],u):p[i]?S2(p[o!=="children"?o:"label"],u):S2(p[s],u)},m=c?function(h){return z_(h)}:function(h){return h};return e.forEach(function(h){if(h[i]){var p=f(r,m(h));if(p)l.push(h);else{var g=h[i].filter(function(v){return f(r,m(v))});g.length&&l.push(ae(ae({},h),{},J({},i,g)))}return}f(r,m(h))&&l.push(h)}),l},[e,n,a,r,t])};var M3=0,Vme=Aa();function Ume(){var e;return Vme?(e=M3,M3+=1):e="TEST_OR_SSR",e}function Kme(e){var t=d.useState(),r=me(t,2),n=r[0],a=r[1];return d.useEffect(function(){a("rc_select_".concat(Ume()))},[]),e||n}var Gme=["children","value"],qme=["children"];function Xme(e){var t=e,r=t.key,n=t.props,a=n.children,i=n.value,o=Rt(n,Gme);return ae({key:r,value:i!==void 0?i:r,children:a},o)}function HH(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ha(e).map(function(r,n){if(!d.isValidElement(r)||!r.type)return null;var a=r,i=a.type.isSelectOptGroup,o=a.key,s=a.props,l=s.children,c=Rt(s,qme);return t||!i?Xme(r):ae(ae({key:"__RC_SELECT_GRP__".concat(o===null?n:o,"__"),label:o},c),{},{options:HH(l)})}).filter(function(r){return r})}var Yme=function(t,r,n,a,i){return d.useMemo(function(){var o=t,s=!t;s&&(o=HH(r));var l=new Map,c=new Map,u=function(h,p,g){g&&typeof g=="string"&&h.set(p[g],p)},f=function m(h){for(var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,g=0;g0?rt(ct.options):ct.options}):ct})},je=d.useMemo(function(){return x?Se(Ne):Ne},[Ne,x,Q]),_e=d.useMemo(function(){return pme(je,{fieldNames:X,childrenAsData:z})},[je,X,z]),Me=function(Ye){var Ze=q(Ye);if(xe(Ze),V&&(Ze.length!==Ee.length||Ze.some(function(ue,se){var ie;return((ie=Ee[se])===null||ie===void 0?void 0:ie.value)!==(ue==null?void 0:ue.value)}))){var ct=M?Ze:Ze.map(function(ue){return ue.value}),Z=Ze.map(function(ue){return z_(He(ue.value))});V(W?ct:ct[0],W?Z:Z[0])}},ge=d.useState(null),be=me(ge,2),Re=be[0],We=be[1],at=d.useState(0),yt=me(at,2),tt=yt[0],it=yt[1],ft=O!==void 0?O:n!=="combobox",lt=d.useCallback(function(rt,Ye){var Ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ct=Ze.source,Z=ct===void 0?"keyboard":ct;it(Ye),o&&n==="combobox"&&rt!==null&&Z==="keyboard"&&We(String(rt))},[o,n]),mt=function(Ye,Ze,ct){var Z=function(){var Te,Xe=He(Ye);return[M?{label:Xe==null?void 0:Xe[X.label],value:Ye,key:(Te=Xe==null?void 0:Xe.key)!==null&&Te!==void 0?Te:Ye}:Ye,z_(Xe)]};if(Ze&&h){var ue=Z(),se=me(ue,2),ie=se[0],oe=se[1];h(ie,oe)}else if(!Ze&&p&&ct!=="clear"){var de=Z(),we=me(de,2),Ae=we[0],Ce=we[1];p(Ae,Ce)}},Mt=D3(function(rt,Ye){var Ze,ct=W?Ye.selected:!0;ct?Ze=W?[].concat(De(Ee),[rt]):[rt]:Ze=Ee.filter(function(Z){return Z.value!==rt}),Me(Ze),mt(rt,ct),n==="combobox"?We(""):(!H_||m)&&(ee(""),We(""))}),Ft=function(Ye,Ze){Me(Ye);var ct=Ze.type,Z=Ze.values;(ct==="remove"||ct==="clear")&&Z.forEach(function(ue){mt(ue.value,!1,ct)})},ht=function(Ye,Ze){if(ee(Ye),We(null),Ze.source==="submit"){var ct=(Ye||"").trim();if(ct){var Z=Array.from(new Set([].concat(De(nt),[ct])));Me(Z),mt(ct,!0),ee("")}return}Ze.source!=="blur"&&(n==="combobox"&&Me(Ye),u==null||u(Ye))},St=function(Ye){var Ze=Ye;n!=="tags"&&(Ze=Ye.map(function(Z){var ue=te.get(Z);return ue==null?void 0:ue.value}).filter(function(Z){return Z!==void 0}));var ct=Array.from(new Set([].concat(De(nt),De(Ze))));Me(ct),ct.forEach(function(Z){mt(Z,!0)})},xt=d.useMemo(function(){var rt=P!==!1&&v!==!1;return ae(ae({},H),{},{flattenOptions:_e,onActiveValue:lt,defaultActiveFirstOption:ft,onSelect:Mt,menuItemSelectedIcon:_,rawValues:nt,fieldNames:X,virtual:rt,direction:I,listHeight:D,listItemHeight:R,childrenAsData:z,maxCount:K,optionRender:E})},[K,H,_e,lt,ft,Mt,_,nt,X,P,v,I,D,R,z,E]);return d.createElement(aI.Provider,{value:xt},d.createElement(bme,Oe({},L,{id:B,prefixCls:i,ref:t,omitDomProps:Zme,mode:n,displayValues:Fe,onDisplayValuesChange:Ft,direction:I,searchValue:Q,onSearch:ht,autoClearSearchValue:m,onSearchSplit:St,dropdownMatchSelectWidth:v,OptionList:zme,emptyOptions:!_e.length,activeValue:Re,activeDescendantId:"".concat(B,"_list_").concat(tt)})))}),sI=ehe;sI.Option=oI;sI.OptGroup=iI;function Uc(e,t,r){return ce({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}const Fd=(e,t)=>t||e,the=()=>{const[,e]=Ga(),[t]=Hi("Empty"),n=new sr(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return d.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(24 31.67)"},d.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),d.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),d.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),d.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),d.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),d.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),d.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},d.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),d.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},rhe=the,nhe=()=>{const[,e]=Ga(),[t]=Hi("Empty"),{colorFill:r,colorFillTertiary:n,colorFillQuaternary:a,colorBgContainer:i}=e,{borderColor:o,shadowColor:s,contentColor:l}=d.useMemo(()=>({borderColor:new sr(r).onBackground(i).toHexString(),shadowColor:new sr(n).onBackground(i).toHexString(),contentColor:new sr(a).onBackground(i).toHexString()}),[r,n,a,i]);return d.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,(t==null?void 0:t.description)||"Empty"),d.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},d.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),d.createElement("g",{fillRule:"nonzero",stroke:o},d.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),d.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:l}))))},ahe=nhe,ihe=e=>{const{componentCls:t,margin:r,marginXS:n,marginXL:a,fontSize:i,lineHeight:o}=e;return{[t]:{marginInline:n,fontSize:i,lineHeight:o,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:r},"&-normal":{marginBlock:a,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},ohe=lr("Empty",e=>{const{componentCls:t,controlHeightLG:r,calc:n}=e,a=Zt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:n(r).mul(2.5).equal(),emptyImgHeightMD:r,emptyImgHeightSM:n(r).mul(.875).equal()});return ihe(a)});var she=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var t;const{className:r,rootClassName:n,prefixCls:a,image:i,description:o,children:s,imageStyle:l,style:c,classNames:u,styles:f}=e,m=she(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:h,direction:p,className:g,style:v,classNames:y,styles:x,image:b}=oa("empty"),S=h("empty",a),[w,E,C]=ohe(S),[O]=Hi("Empty"),_=typeof o<"u"?o:O==null?void 0:O.description,P=typeof _=="string"?_:"empty",I=(t=i??b)!==null&&t!==void 0?t:WH;let N=null;return typeof I=="string"?N=d.createElement("img",{draggable:!1,alt:P,src:I}):N=I,w(d.createElement("div",Object.assign({className:ce(E,C,S,g,{[`${S}-normal`]:I===VH,[`${S}-rtl`]:p==="rtl"},r,n,y.root,u==null?void 0:u.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},x.root),v),f==null?void 0:f.root),c)},m),d.createElement("div",{className:ce(`${S}-image`,y.image,u==null?void 0:u.image),style:Object.assign(Object.assign(Object.assign({},l),x.image),f==null?void 0:f.image)},N),_&&d.createElement("div",{className:ce(`${S}-description`,y.description,u==null?void 0:u.description),style:Object.assign(Object.assign({},x.description),f==null?void 0:f.description)},_),s&&d.createElement("div",{className:ce(`${S}-footer`,y.footer,u==null?void 0:u.footer),style:Object.assign(Object.assign({},x.footer),f==null?void 0:f.footer)},s)))};lI.PRESENTED_IMAGE_DEFAULT=WH;lI.PRESENTED_IMAGE_SIMPLE=VH;const ku=lI,lhe=e=>{const{componentName:t}=e,{getPrefixCls:r}=d.useContext(Nt),n=r("empty");switch(t){case"Table":case"List":return ve.createElement(ku,{image:ku.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ve.createElement(ku,{image:ku.PRESENTED_IMAGE_SIMPLE,className:`${n}-small`});case"Table.filter":return null;default:return ve.createElement(ku,null)}},UH=lhe,che=(e,t,r)=>{var n,a;const{variant:i,[e]:o}=d.useContext(Nt),s=d.useContext(fH),l=o==null?void 0:o.variant;let c;typeof t<"u"?c=t:r===!1?c="borderless":c=(a=(n=s??l)!==null&&n!==void 0?n:i)!==null&&a!==void 0?a:"outlined";const u=coe.includes(c);return[c,u]},Ld=che,uhe=e=>{const r={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},r),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},r),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},r),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},r),{points:["br","tr"],offset:[0,-4]})}};function dhe(e,t){return e||uhe(t)}const j3=e=>{const{optionHeight:t,optionFontSize:r,optionLineHeight:n,optionPadding:a}=e;return{position:"relative",display:"block",minHeight:t,padding:a,color:e.colorText,fontWeight:"normal",fontSize:r,lineHeight:n,boxSizing:"border-box"}},fhe=e=>{const{antCls:t,componentCls:r}=e,n=`${r}-item`,a=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${r}-dropdown-placement-`,l=`${n}-option-selected`;return[{[`${r}-dropdown`]:Object.assign(Object.assign({},dr(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` - ${a}${s}bottomLeft, - ${i}${s}bottomLeft - `]:{animationName:oS},[` - ${a}${s}topLeft, - ${i}${s}topLeft, - ${a}${s}topRight, - ${i}${s}topRight - `]:{animationName:lS},[`${o}${s}bottomLeft`]:{animationName:sS},[` - ${o}${s}topLeft, - ${o}${s}topRight - `]:{animationName:cS},"&-hidden":{display:"none"},[n]:Object.assign(Object.assign({},j3(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Uo),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${n}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${n}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${n}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${n}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},j3(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},al(e,"slide-up"),al(e,"slide-down"),x0(e,"move-up"),x0(e,"move-down")]},mhe=fhe,KH=e=>{const{multipleSelectItemHeight:t,paddingXXS:r,lineWidth:n,INTERNAL_FIXED_ITEM_MARGIN:a}=e,i=e.max(e.calc(r).sub(n).equal(),0),o=e.max(e.calc(i).sub(a).equal(),0);return{basePadding:i,containerPadding:o,itemHeight:le(t),itemLineHeight:le(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},hhe=e=>{const{multipleSelectItemHeight:t,selectHeight:r,lineWidth:n}=e;return e.calc(r).sub(t).div(2).sub(n).equal()},GH=e=>{const{componentCls:t,iconCls:r,borderRadiusSM:n,motionDurationSlow:a,paddingXS:i,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:l,colorIconHover:c,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:n,cursor:"default",transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:o,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},V0()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:c}})}}}},phe=(e,t)=>{const{componentCls:r,INTERNAL_FIXED_ITEM_MARGIN:n}=e,a=`${r}-selection-overflow`,i=e.multipleSelectItemHeight,o=hhe(e),s=t?`${r}-${t}`:"",l=KH(e);return{[`${r}-multiple${s}`]:Object.assign(Object.assign({},GH(e)),{[`${r}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${r}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${le(n)} 0`,lineHeight:le(i),visibility:"hidden",content:'"\\a0"'}},[`${r}-selection-item`]:{height:l.itemHeight,lineHeight:le(l.itemLineHeight)},[`${r}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:le(i),marginBlock:n}},[`${r}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${a}-item + ${a}-item, - ${r}-prefix + ${r}-selection-wrap - `]:{[`${r}-selection-search`]:{marginInlineStart:0},[`${r}-selection-placeholder`]:{insetInlineStart:0}},[`${a}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:n},[`${r}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(o).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:le(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${r}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function w2(e,t){const{componentCls:r}=e,n=t?`${r}-${t}`:"",a={[`${r}-multiple${n}`]:{fontSize:e.fontSize,[`${r}-selector`]:{[`${r}-show-search&`]:{cursor:"text"}},[` - &${r}-show-arrow ${r}-selector, - &${r}-allow-clear ${r}-selector - `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[phe(e,t),a]}const vhe=e=>{const{componentCls:t}=e,r=Zt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),n=Zt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[w2(e),w2(r,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},w2(n,"lg")]},ghe=vhe;function C2(e,t){const{componentCls:r,inputPaddingHorizontalBase:n,borderRadius:a}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),o=t?`${r}-${t}`:"";return{[`${r}-single${o}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${r}-selector`]:Object.assign(Object.assign({},dr(e,!0)),{display:"flex",borderRadius:a,flex:"1 1 auto",[`${r}-selection-wrap:after`]:{lineHeight:le(i)},[`${r}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[` - ${r}-selection-item, - ${r}-selection-placeholder - `]:{display:"block",padding:0,lineHeight:le(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${r}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${r}-selection-item:empty:after`,`${r}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` - &${r}-show-arrow ${r}-selection-item, - &${r}-show-arrow ${r}-selection-search, - &${r}-show-arrow ${r}-selection-placeholder - `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${r}-open ${r}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${r}-customize-input)`]:{[`${r}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${le(n)}`,[`${r}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:le(i)}}},[`&${r}-customize-input`]:{[`${r}-selector`]:{"&:after":{display:"none"},[`${r}-selection-search`]:{position:"static",width:"100%"},[`${r}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${le(n)}`,"&:after":{display:"none"}}}}}}}function yhe(e){const{componentCls:t}=e,r=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[C2(e),C2(Zt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${le(r)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(r).add(e.calc(e.fontSize).mul(1.5)).equal()},[` - &${t}-show-arrow ${t}-selection-item, - &${t}-show-arrow ${t}-selection-placeholder - `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},C2(Zt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const xhe=e=>{const{fontSize:t,lineHeight:r,lineWidth:n,controlHeight:a,controlHeightSM:i,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:c,colorText:u,fontWeightStrong:f,controlItemBgActive:m,controlItemBgHover:h,colorBgContainer:p,colorFillSecondary:g,colorBgContainerDisabled:v,colorTextDisabled:y,colorPrimaryHover:x,colorPrimary:b,controlOutline:S}=e,w=s*2,E=n*2,C=Math.min(a-w,a-E),O=Math.min(i-w,i-E),_=Math.min(o-w,o-E);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:c+50,optionSelectedColor:u,optionSelectedFontWeight:f,optionSelectedBg:m,optionActiveBg:h,optionPadding:`${(a-t*r)/2}px ${l}px`,optionFontSize:t,optionLineHeight:r,optionHeight:a,selectorBg:p,clearBg:p,singleItemHeightLG:o,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:C,multipleItemHeightSM:O,multipleItemHeightLG:_,multipleSelectorBgDisabled:v,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:x,activeBorderColor:b,activeOutlineColor:S,selectAffixPadding:s}},qH=(e,t)=>{const{componentCls:r,antCls:n,controlOutlineWidth:a}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{border:`${le(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:t.hoverBorderHover},[`${r}-focused& ${r}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${le(a)} ${t.activeOutlineColor}`,outline:0},[`${r}-prefix`]:{color:t.color}}}},F3=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},qH(e,t))}),bhe=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},qH(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),F3(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),F3(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),XH=(e,t)=>{const{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{background:t.bg,border:`${le(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{background:t.hoverBg},[`${r}-focused& ${r}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},L3=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},XH(e,t))}),She=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},XH(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),L3(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),L3(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),whe=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${le(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),YH=(e,t)=>{const{componentCls:r,antCls:n}=e;return{[`&:not(${r}-customize-input) ${r}-selector`]:{borderWidth:`${le(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,background:e.selectorBg,borderRadius:0},[`&:not(${r}-disabled):not(${r}-customize-input):not(${n}-pagination-size-changer)`]:{[`&:hover ${r}-selector`]:{borderColor:`transparent transparent ${t.hoverBorderHover} transparent`},[`${r}-focused& ${r}-selector`]:{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0},[`${r}-prefix`]:{color:t.color}}}},B3=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},YH(e,t))}),Che=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},YH(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),B3(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),B3(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Ehe=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},bhe(e)),She(e)),whe(e)),Che(e))}),$he=Ehe,_he=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Ohe=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},The=e=>{const{antCls:t,componentCls:r,inputPaddingHorizontalBase:n,iconCls:a}=e,i={[`${r}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[r]:Object.assign(Object.assign({},dr(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${r}-customize-input) ${r}-selector`]:Object.assign(Object.assign({},_he(e)),Ohe(e)),[`${r}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Uo),{[`> ${t}-typography`]:{display:"inline"}}),[`${r}-selection-placeholder`]:Object.assign(Object.assign({},Uo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${r}-arrow`]:Object.assign(Object.assign({},V0()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[a]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${r}-suffix)`]:{pointerEvents:"auto"}},[`${r}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${r}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${r}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${r}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i}),[`${r}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${r}-has-feedback`]:{[`${r}-clear`]:{insetInlineEnd:e.calc(n).add(e.fontSize).add(e.paddingXS).equal()}}}}}},Phe=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},The(e),yhe(e),ghe(e),mhe(e),{[`${t}-rtl`]:{direction:"rtl"}},X0(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},Ihe=lr("Select",(e,{rootPrefixCls:t})=>{const r=Zt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Phe(r),$he(r)]},xhe,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var Nhe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};const khe=Nhe;var Rhe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:khe}))},Ahe=d.forwardRef(Rhe);const cI=Ahe;var Mhe={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"};const Dhe=Mhe;var jhe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:Dhe}))},Fhe=d.forwardRef(jhe);const uI=Fhe;var Lhe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};const Bhe=Lhe;var zhe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:Bhe}))},Hhe=d.forwardRef(zhe);const dI=Hhe;function QH({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:r,removeIcon:n,loading:a,multiple:i,hasFeedback:o,prefixCls:s,showSuffixIcon:l,feedbackIcon:c,showArrow:u,componentName:f}){const m=t??d.createElement(jd,null),h=y=>e===null&&!o&&!u?null:d.createElement(d.Fragment,null,l!==!1&&y,o&&c);let p=null;if(e!==void 0)p=h(e);else if(a)p=h(d.createElement(Wc,{spin:!0}));else{const y=`${s}-suffix`;p=({open:x,showSearch:b})=>h(x&&b?d.createElement(dI,{className:y}):d.createElement(uI,{className:y}))}let g=null;r!==void 0?g=r:i?g=d.createElement(cI,null):g=null;let v=null;return n!==void 0?v=n:v=d.createElement(cu,null),{clearIcon:m,suffixIcon:p,itemIcon:g,removeIcon:v}}function Whe(e){return ve.useMemo(()=>{if(e)return(...t)=>ve.createElement(ol,{space:!0},e.apply(void 0,t))},[e])}function Vhe(e,t){return t!==void 0?t:e!==null}var Uhe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var r,n,a,i,o;const{prefixCls:s,bordered:l,className:c,rootClassName:u,getPopupContainer:f,popupClassName:m,dropdownClassName:h,listHeight:p=256,placement:g,listItemHeight:v,size:y,disabled:x,notFoundContent:b,status:S,builtinPlacements:w,dropdownMatchSelectWidth:E,popupMatchSelectWidth:C,direction:O,style:_,allowClear:P,variant:I,dropdownStyle:N,transitionName:D,tagRender:k,maxCount:R,prefix:A,dropdownRender:j,popupRender:F,onDropdownVisibleChange:M,onOpenChange:V,styles:K,classNames:L}=e,B=Uhe(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:W,getPrefixCls:z,renderEmpty:U,direction:X,virtual:Y,popupMatchSelectWidth:G,popupOverflow:Q}=d.useContext(Nt),{showSearch:ee,style:H,styles:fe,className:te,classNames:re}=oa("select"),[,q]=Ga(),ne=v??(q==null?void 0:q.controlHeight),he=z("select",s),ye=z(),xe=O??X,{compactSize:pe,compactItemClassnames:Pe}=cl(he,xe),[$e,Ee]=Ld("select",I,l),He=vn(he),[Fe,nt,qe]=Ihe(he,He),Ge=d.useMemo(()=>{const{mode:ct}=e;if(ct!=="combobox")return ct===ZH?"combobox":ct},[e.mode]),Le=Ge==="multiple"||Ge==="tags",Ne=Vhe(e.suffixIcon,e.showArrow),Se=(r=C??E)!==null&&r!==void 0?r:G,je=((n=K==null?void 0:K.popup)===null||n===void 0?void 0:n.root)||((a=fe.popup)===null||a===void 0?void 0:a.root)||N,_e=Whe(F||j),Me=V||M,{status:ge,hasFeedback:be,isFormItemInput:Re,feedbackIcon:We}=d.useContext(ga),at=Fd(ge,S);let yt;b!==void 0?yt=b:Ge==="combobox"?yt=null:yt=(U==null?void 0:U("Select"))||d.createElement(UH,{componentName:"Select"});const{suffixIcon:tt,itemIcon:it,removeIcon:ft,clearIcon:lt}=QH(Object.assign(Object.assign({},B),{multiple:Le,hasFeedback:be,feedbackIcon:We,showSuffixIcon:Ne,prefixCls:he,componentName:"Select"})),mt=P===!0?{clearIcon:lt}:P,Mt=Er(B,["suffixIcon","itemIcon"]),Ft=ce(((i=L==null?void 0:L.popup)===null||i===void 0?void 0:i.root)||((o=re==null?void 0:re.popup)===null||o===void 0?void 0:o.root)||m||h,{[`${he}-dropdown-${xe}`]:xe==="rtl"},u,re.root,L==null?void 0:L.root,qe,He,nt),ht=Da(ct=>{var Z;return(Z=y??pe)!==null&&Z!==void 0?Z:ct}),St=d.useContext(Wi),xt=x??St,rt=ce({[`${he}-lg`]:ht==="large",[`${he}-sm`]:ht==="small",[`${he}-rtl`]:xe==="rtl",[`${he}-${$e}`]:Ee,[`${he}-in-form-item`]:Re},Uc(he,at,be),Pe,te,c,re.root,L==null?void 0:L.root,u,qe,He,nt),Ye=d.useMemo(()=>g!==void 0?g:xe==="rtl"?"bottomRight":"bottomLeft",[g,xe]),[Ze]=uu("SelectLike",je==null?void 0:je.zIndex);return Fe(d.createElement(sI,Object.assign({ref:t,virtual:Y,showSearch:ee},Mt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},fe.root),K==null?void 0:K.root),H),_),dropdownMatchSelectWidth:Se,transitionName:Vc(ye,"slide-up",D),builtinPlacements:dhe(w,Q),listHeight:p,listItemHeight:ne,mode:Ge,prefixCls:he,placement:Ye,direction:xe,prefix:A,suffixIcon:tt,menuItemSelectedIcon:it,removeIcon:ft,allowClear:mt,notFoundContent:yt,className:rt,getPopupContainer:f||W,dropdownClassName:Ft,disabled:xt,dropdownStyle:Object.assign(Object.assign({},je),{zIndex:Ze}),maxCount:Le?R:void 0,tagRender:Le?k:void 0,dropdownRender:_e,onDropdownVisibleChange:Me})))},J0=d.forwardRef(Khe),Ghe=xv(J0,"dropdownAlign");J0.SECRET_COMBOBOX_MODE_DO_NOT_USE=ZH;J0.Option=oI;J0.OptGroup=iI;J0._InternalPanelDoNotUseOrYouWillBeFired=Ghe;const Zn=J0,{Option:z3}=Zn;function H3(e){return(e==null?void 0:e.type)&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const qhe=(e,t)=>{var r,n;const{prefixCls:a,className:i,popupClassName:o,dropdownClassName:s,children:l,dataSource:c,dropdownStyle:u,dropdownRender:f,popupRender:m,onDropdownVisibleChange:h,onOpenChange:p,styles:g,classNames:v}=e,y=ha(l),x=((r=g==null?void 0:g.popup)===null||r===void 0?void 0:r.root)||u,b=((n=v==null?void 0:v.popup)===null||n===void 0?void 0:n.root)||o||s,S=m||f,w=p||h;let E;y.length===1&&d.isValidElement(y[0])&&!H3(y[0])&&([E]=y);const C=E?()=>E:void 0;let O;y.length&&H3(y[0])?O=l:O=c?c.map(N=>{if(d.isValidElement(N))return N;switch(typeof N){case"string":return d.createElement(z3,{key:N,value:N},N);case"object":{const{value:D}=N;return d.createElement(z3,{key:D,value:D},N.text)}default:return}}):[];const{getPrefixCls:_}=d.useContext(Nt),P=_("select",a),[I]=uu("SelectLike",x==null?void 0:x.zIndex);return d.createElement(Zn,Object.assign({ref:t,suffixIcon:null},Er(e,["dataSource","dropdownClassName","popupClassName"]),{prefixCls:P,classNames:{popup:{root:b},root:v==null?void 0:v.root},styles:{popup:{root:Object.assign(Object.assign({},x),{zIndex:I})},root:g==null?void 0:g.root},className:ce(`${P}-auto-complete`,i),mode:Zn.SECRET_COMBOBOX_MODE_DO_NOT_USE,popupRender:S,onOpenChange:w,getInputElement:C}),O)},Xhe=d.forwardRef(qhe),JH=Xhe,{Option:Yhe}=Zn,Qhe=xv(JH,"dropdownAlign",e=>Er(e,["visible"])),fI=JH;fI.Option=Yhe;fI._InternalPanelDoNotUseOrYouWillBeFired=Qhe;const Zhe=fI,eW=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)},tW=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)},pd=["xxl","xl","lg","md","sm","xs"],Jhe=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)`}),epe=e=>{const t=e,r=[].concat(pd).reverse();return r.forEach((n,a)=>{const i=n.toUpperCase(),o=`screen${i}Min`,s=`screen${i}`;if(!(t[o]<=t[s]))throw new Error(`${o}<=${s} fails : !(${t[o]}<=${t[s]})`);if(a{if(t){for(const r of pd)if(e[r]&&(t==null?void 0:t[r])!==void 0)return t[r]}},tpe=()=>{const[,e]=Ga(),t=Jhe(epe(e));return ve.useMemo(()=>{const r=new Map;let n=-1,a={};return{responsiveMap:t,matchHandlers:{},dispatch(i){return a=i,r.forEach(o=>o(a)),r.size>=1},subscribe(i){return r.size||this.register(),n+=1,r.set(n,i),i(a),n},unsubscribe(i){r.delete(i),r.size||this.unregister()},register(){Object.entries(t).forEach(([i,o])=>{const s=({matches:c})=>{this.dispatch(Object.assign(Object.assign({},a),{[i]:c}))},l=window.matchMedia(o);eW(l,s),this.matchHandlers[o]={mql:l,listener:s},s(l)})},unregister(){Object.values(t).forEach(i=>{const o=this.matchHandlers[i];tW(o==null?void 0:o.mql,o==null?void 0:o.listener)}),r.clear()}}},[t])};function wv(e=!0,t={}){const r=d.useRef(t),[,n]=WP(),a=tpe();return Gt(()=>{const i=a.subscribe(o=>{r.current=o,e&&n()});return()=>a.unsubscribe(i)},[]),r.current}const rpe=d.createContext({}),V_=rpe,npe=e=>{const{antCls:t,componentCls:r,iconCls:n,avatarBg:a,avatarColor:i,containerSize:o,containerSizeLG:s,containerSizeSM:l,textFontSize:c,textFontSizeLG:u,textFontSizeSM:f,iconFontSize:m,iconFontSizeLG:h,iconFontSizeSM:p,borderRadius:g,borderRadiusLG:v,borderRadiusSM:y,lineWidth:x,lineType:b}=e,S=(w,E,C,O)=>({width:w,height:w,borderRadius:"50%",fontSize:E,[`&${r}-square`]:{borderRadius:O},[`&${r}-icon`]:{fontSize:C,[`> ${n}`]:{margin:0}}});return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},dr(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:a,border:`${le(x)} ${b} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),S(o,c,m,g)),{"&-lg":Object.assign({},S(s,u,h,v)),"&-sm":Object.assign({},S(l,f,p,y)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},ape=e=>{const{componentCls:t,groupBorderColor:r,groupOverlapping:n,groupSpace:a}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:r},"> *:not(:first-child)":{marginInlineStart:n}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:a}}}},ipe=e=>{const{controlHeight:t,controlHeightLG:r,controlHeightSM:n,fontSize:a,fontSizeLG:i,fontSizeXL:o,fontSizeHeading3:s,marginXS:l,marginXXS:c,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:r,containerSizeSM:n,textFontSize:a,textFontSizeLG:a,textFontSizeSM:a,iconFontSize:Math.round((i+o)/2),iconFontSizeLG:s,iconFontSizeSM:a,groupSpace:c,groupOverlapping:-l,groupBorderColor:u}},nW=lr("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:r}=e,n=Zt(e,{avatarBg:r,avatarColor:t});return[npe(n),ape(n)]},ipe);var ope=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:r,shape:n,size:a,src:i,srcSet:o,icon:s,className:l,rootClassName:c,style:u,alt:f,draggable:m,children:h,crossOrigin:p,gap:g=4,onError:v}=e,y=ope(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","style","alt","draggable","children","crossOrigin","gap","onError"]),[x,b]=d.useState(1),[S,w]=d.useState(!1),[E,C]=d.useState(!0),O=d.useRef(null),_=d.useRef(null),P=xa(t,O),{getPrefixCls:I,avatar:N}=d.useContext(Nt),D=d.useContext(V_),k=()=>{if(!_.current||!O.current)return;const ee=_.current.offsetWidth,H=O.current.offsetWidth;ee!==0&&H!==0&&g*2{w(!0)},[]),d.useEffect(()=>{C(!0),b(1)},[i]),d.useEffect(k,[g]);const R=()=>{(v==null?void 0:v())!==!1&&C(!1)},A=Da(ee=>{var H,fe;return(fe=(H=a??(D==null?void 0:D.size))!==null&&H!==void 0?H:ee)!==null&&fe!==void 0?fe:"default"}),j=Object.keys(typeof A=="object"?A||{}:{}).some(ee=>["xs","sm","md","lg","xl","xxl"].includes(ee)),F=wv(j),M=d.useMemo(()=>{if(typeof A!="object")return{};const ee=pd.find(fe=>F[fe]),H=A[ee];return H?{width:H,height:H,fontSize:H&&(s||h)?H/2:18}:{}},[F,A,s,h]),V=I("avatar",r),K=vn(V),[L,B,W]=nW(V,K),z=ce({[`${V}-lg`]:A==="large",[`${V}-sm`]:A==="small"}),U=d.isValidElement(i),X=n||(D==null?void 0:D.shape)||"circle",Y=ce(V,z,N==null?void 0:N.className,`${V}-${X}`,{[`${V}-image`]:U||i&&E,[`${V}-icon`]:!!s},W,K,l,c,B),G=typeof A=="number"?{width:A,height:A,fontSize:s?A/2:18}:{};let Q;if(typeof i=="string"&&E)Q=d.createElement("img",{src:i,draggable:m,srcSet:o,onError:R,alt:f,crossOrigin:p});else if(U)Q=i;else if(s)Q=s;else if(S||x!==1){const ee=`scale(${x})`,H={msTransform:ee,WebkitTransform:ee,transform:ee};Q=d.createElement(Ra,{onResize:k},d.createElement("span",{className:`${V}-string`,ref:_,style:H},h))}else Q=d.createElement("span",{className:`${V}-string`,style:{opacity:0},ref:_},h);return L(d.createElement("span",Object.assign({},y,{style:Object.assign(Object.assign(Object.assign(Object.assign({},G),M),N==null?void 0:N.style),u),className:Y,ref:P}),Q))}),aW=spe,b0=e=>e?typeof e=="function"?e():e:null;function mI(e){var t=e.children,r=e.prefixCls,n=e.id,a=e.overlayInnerStyle,i=e.bodyClassName,o=e.className,s=e.style;return d.createElement("div",{className:ce("".concat(r,"-content"),o),style:s},d.createElement("div",{className:ce("".concat(r,"-inner"),i),id:n,role:"tooltip",style:a},typeof t=="function"?t():t))}var cf={shiftX:64,adjustY:1},uf={adjustX:1,shiftY:!0},So=[0,0],lpe={left:{points:["cr","cl"],overflow:uf,offset:[-4,0],targetOffset:So},right:{points:["cl","cr"],overflow:uf,offset:[4,0],targetOffset:So},top:{points:["bc","tc"],overflow:cf,offset:[0,-4],targetOffset:So},bottom:{points:["tc","bc"],overflow:cf,offset:[0,4],targetOffset:So},topLeft:{points:["bl","tl"],overflow:cf,offset:[0,-4],targetOffset:So},leftTop:{points:["tr","tl"],overflow:uf,offset:[-4,0],targetOffset:So},topRight:{points:["br","tr"],overflow:cf,offset:[0,-4],targetOffset:So},rightTop:{points:["tl","tr"],overflow:uf,offset:[4,0],targetOffset:So},bottomRight:{points:["tr","br"],overflow:cf,offset:[0,4],targetOffset:So},rightBottom:{points:["bl","br"],overflow:uf,offset:[4,0],targetOffset:So},bottomLeft:{points:["tl","bl"],overflow:cf,offset:[0,4],targetOffset:So},leftBottom:{points:["br","bl"],overflow:uf,offset:[-4,0],targetOffset:So}},cpe=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],upe=function(t,r){var n=t.overlayClassName,a=t.trigger,i=a===void 0?["hover"]:a,o=t.mouseEnterDelay,s=o===void 0?0:o,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,h=t.children,p=t.onVisibleChange,g=t.afterVisibleChange,v=t.transitionName,y=t.animation,x=t.motion,b=t.placement,S=b===void 0?"right":b,w=t.align,E=w===void 0?{}:w,C=t.destroyTooltipOnHide,O=C===void 0?!1:C,_=t.defaultVisible,P=t.getTooltipContainer,I=t.overlayInnerStyle;t.arrowContent;var N=t.overlay,D=t.id,k=t.showArrow,R=k===void 0?!0:k,A=t.classNames,j=t.styles,F=Rt(t,cpe),M=vS(D),V=d.useRef(null);d.useImperativeHandle(r,function(){return V.current});var K=ae({},F);"visible"in t&&(K.popupVisible=t.visible);var L=function(){return d.createElement(mI,{key:"content",prefixCls:m,id:M,bodyClassName:A==null?void 0:A.body,overlayInnerStyle:ae(ae({},I),j==null?void 0:j.body)},N)},B=function(){var z=d.Children.only(h),U=(z==null?void 0:z.props)||{},X=ae(ae({},U),{},{"aria-describedby":N?M:null});return d.cloneElement(h,X)};return d.createElement(Sv,Oe({popupClassName:ce(n,A==null?void 0:A.root),prefixCls:m,popup:L,action:i,builtinPlacements:lpe,popupPlacement:S,ref:V,popupAlign:E,getPopupContainer:P,onPopupVisibleChange:p,afterPopupVisibleChange:g,popupTransitionName:v,popupAnimation:y,popupMotion:x,defaultPopupVisible:_,autoDestroy:O,mouseLeaveDelay:c,popupStyle:ae(ae({},u),j==null?void 0:j.root),mouseEnterDelay:s,arrow:R},K),B())};const dpe=d.forwardRef(upe);function wS(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,a=t/2,i=0,o=a,s=n*1/Math.sqrt(2),l=a-n*(1-1/Math.sqrt(2)),c=a-r*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),f=2*a-c,m=u,h=2*a-s,p=l,g=2*a-i,v=o,y=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),x=n*(Math.sqrt(2)-1),b=`polygon(${x}px 100%, 50% ${x}px, ${2*a-x}px 100%, ${x}px 100%)`,S=`path('M ${i} ${o} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${r} ${r} 0 0 1 ${f} ${m} L ${h} ${p} A ${n} ${n} 0 0 0 ${g} ${v} Z')`;return{arrowShadowWidth:y,arrowPath:S,arrowPolygon:b}}const iW=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:a,arrowPath:i,arrowShadowWidth:o,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[a,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:o,height:o,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${le(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},oW=8;function CS(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?oW:n}}function Gg(e,t){return e?t:{}}function hI(e,t,r){const{componentCls:n,boxShadowPopoverArrow:a,arrowOffsetVertical:i,arrowOffsetHorizontal:o}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}=r||{};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},iW(e,t,a)),{"&:before":{background:t}})]},Gg(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":o,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${le(o)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),Gg(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":o,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${le(o)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:o}}}})),Gg(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},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:i},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:i}})),Gg(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},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:i},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:i}}))}}function fpe(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const a=n&&typeof n=="object"?n:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+r,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+r,i.shiftX=!0,i.adjustX=!0;break}const o=Object.assign(Object.assign({},i),a);return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}const W3={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},mpe={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},hpe=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function sW(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:a,borderRadius:i,visibleFirst:o}=e,s=t/2,l={},c=CS({contentRadius:i,limitVerticalRadius:!0});return Object.keys(W3).forEach(u=>{const f=n&&mpe[u]||W3[u],m=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(l[u]=m,hpe.has(u)&&(m.autoArrow=!1),u){case"top":case"topLeft":case"topRight":m.offset[1]=-s-a;break;case"bottom":case"bottomLeft":case"bottomRight":m.offset[1]=s+a;break;case"left":case"leftTop":case"leftBottom":m.offset[0]=-s-a;break;case"right":case"rightTop":case"rightBottom":m.offset[0]=s+a;break}if(n)switch(u){case"topLeft":case"bottomLeft":m.offset[0]=-c.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":m.offset[0]=c.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":m.offset[1]=-c.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":m.offset[1]=c.arrowOffsetHorizontal*2-s;break}m.overflow=fpe(u,c,t,r),o&&(m.htmlRegion="visibleFirst")}),l}const ppe=e=>{const{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:a,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:f,arrowOffsetHorizontal:m,sizePopupArrow:h}=e,p=t(o).add(h).add(m).equal(),g=t(o).mul(2).add(h).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},dr(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${r}-inner`]:{minWidth:g,minHeight:l,padding:`${le(e.calc(u).div(2).equal())} ${le(f)}`,color:`var(--ant-tooltip-color, ${a})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:p},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(o,oW)}},[`${r}-content`]:{position:"relative"}}),c9(e,(v,{darkColor:y})=>({[`&${r}-${v}`]:{[`${r}-inner`]:{backgroundColor:y},[`${r}-arrow`]:{"--antd-arrow-background-color":y}}}))),{"&-rtl":{direction:"rtl"}})},hI(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},vpe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},CS({contentRadius:e.borderRadius,limitVerticalRadius:!0})),wS(Zt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),lW=(e,t=!0)=>lr("Tooltip",n=>{const{borderRadius:a,colorTextLightSolid:i,colorBgSpotlight:o}=n,s=Zt(n,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:a,tooltipBg:o});return[ppe(s),pv(n,"zoom-big-fast")]},vpe,{resetStyle:!1,injectStyle:t})(e),gpe=Hc.map(e=>`${e}-inverse`),ype=["success","processing","error","default","warning"];function cW(e,t=!0){return t?[].concat(De(gpe),De(Hc)).includes(e):Hc.includes(e)}function xpe(e){return ype.includes(e)}function uW(e,t){const r=cW(t),n=ce({[`${e}-${t}`]:t&&r}),a={},i={},o=Nue(t).toRgb(),l=(.299*o.r+.587*o.g+.114*o.b)/255<.5?"#FFF":"#000";return t&&!r&&(a.background=t,a["--ant-tooltip-color"]=l,i["--antd-arrow-background-color"]=t),{className:n,overlayStyle:a,arrowStyle:i}}const bpe=e=>{const{prefixCls:t,className:r,placement:n="top",title:a,color:i,overlayInnerStyle:o}=e,{getPrefixCls:s}=d.useContext(Nt),l=s("tooltip",t),[c,u,f]=lW(l),m=uW(l,i),h=m.arrowStyle,p=Object.assign(Object.assign({},o),m.overlayStyle),g=ce(u,f,l,`${l}-pure`,`${l}-placement-${n}`,r,m.className);return c(d.createElement("div",{className:g,style:h},d.createElement("div",{className:`${l}-arrow`}),d.createElement(mI,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:p}),a)))},Spe=bpe;var wpe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var r,n;const{prefixCls:a,openClassName:i,getTooltipContainer:o,color:s,overlayInnerStyle:l,children:c,afterOpenChange:u,afterVisibleChange:f,destroyTooltipOnHide:m,destroyOnHidden:h,arrow:p=!0,title:g,overlay:v,builtinPlacements:y,arrowPointAtCenter:x=!1,autoAdjustOverflow:b=!0,motion:S,getPopupContainer:w,placement:E="top",mouseEnterDelay:C=.1,mouseLeaveDelay:O=.1,overlayStyle:_,rootClassName:P,overlayClassName:I,styles:N,classNames:D}=e,k=wpe(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),R=!!p,[,A]=Ga(),{getPopupContainer:j,getPrefixCls:F,direction:M,className:V,style:K,classNames:L,styles:B}=oa("tooltip"),W=lu(),z=d.useRef(null),U=()=>{var Ne;(Ne=z.current)===null||Ne===void 0||Ne.forceAlign()};d.useImperativeHandle(t,()=>{var Ne,Se;return{forceAlign:U,forcePopupAlign:()=>{W.deprecated(!1,"forcePopupAlign","forceAlign"),U()},nativeElement:(Ne=z.current)===null||Ne===void 0?void 0:Ne.nativeElement,popupElement:(Se=z.current)===null||Se===void 0?void 0:Se.popupElement}});const[X,Y]=br(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),G=!g&&!v&&g!==0,Q=Ne=>{var Se,je;Y(G?!1:Ne),G||((Se=e.onOpenChange)===null||Se===void 0||Se.call(e,Ne),(je=e.onVisibleChange)===null||je===void 0||je.call(e,Ne))},ee=d.useMemo(()=>{var Ne,Se;let je=x;return typeof p=="object"&&(je=(Se=(Ne=p.pointAtCenter)!==null&&Ne!==void 0?Ne:p.arrowPointAtCenter)!==null&&Se!==void 0?Se:x),y||sW({arrowPointAtCenter:je,autoAdjustOverflow:b,arrowWidth:R?A.sizePopupArrow:0,borderRadius:A.borderRadius,offset:A.marginXXS,visibleFirst:!0})},[x,p,y,A]),H=d.useMemo(()=>g===0?g:v||g||"",[v,g]),fe=d.createElement(ol,{space:!0},typeof H=="function"?H():H),te=F("tooltip",a),re=F(),q=e["data-popover-inject"];let ne=X;!("open"in e)&&!("visible"in e)&&G&&(ne=!1);const he=d.isValidElement(c)&&!T9(c)?c:d.createElement("span",null,c),ye=he.props,xe=!ye.className||typeof ye.className=="string"?ce(ye.className,i||`${te}-open`):ye.className,[pe,Pe,$e]=lW(te,!q),Ee=uW(te,s),He=Ee.arrowStyle,Fe=ce(I,{[`${te}-rtl`]:M==="rtl"},Ee.className,P,Pe,$e,V,L.root,D==null?void 0:D.root),nt=ce(L.body,D==null?void 0:D.body),[qe,Ge]=uu("Tooltip",k.zIndex),Le=d.createElement(dpe,Object.assign({},k,{zIndex:qe,showArrow:R,placement:E,mouseEnterDelay:C,mouseLeaveDelay:O,prefixCls:te,classNames:{root:Fe,body:nt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},He),B.root),K),_),N==null?void 0:N.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},B.body),l),N==null?void 0:N.body),Ee.overlayStyle)},getTooltipContainer:w||o||j,ref:z,builtinPlacements:ee,overlay:fe,visible:ne,onVisibleChange:Q,afterVisibleChange:u??f,arrowContent:d.createElement("span",{className:`${te}-arrow-content`}),motion:{motionName:Vc(re,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:h??!!m}),ne?pa(he,{className:xe}):he);return pe(d.createElement(Jb.Provider,{value:Ge},Le))}),dW=Cpe;dW._InternalPanelDoNotUseOrYouWillBeFired=Spe;const Os=dW,Epe=e=>{const{componentCls:t,popoverColor:r,titleMinWidth:n,fontWeightStrong:a,innerPadding:i,boxShadowSecondary:o,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:c,titleMarginBottom:u,colorBgElevated:f,popoverBg:m,titleBorderBottom:h,innerContentPadding:p,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},dr(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:l,boxShadow:o,padding:i},[`${t}-title`]:{minWidth:n,marginBottom:u,color:s,fontWeight:a,borderBottom:h,padding:g},[`${t}-inner-content`]:{color:r,padding:p}})},hI(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},$pe=e=>{const{componentCls:t}=e;return{[t]:Hc.map(r=>{const n=e[`${r}6`];return{[`&${t}-${r}`]:{"--antd-arrow-background-color":n,[`${t}-inner`]:{backgroundColor:n},[`${t}-arrow`]:{background:"transparent"}}}})}},_pe=e=>{const{lineWidth:t,controlHeight:r,fontHeight:n,padding:a,wireframe:i,zIndexPopupBase:o,borderRadiusLG:s,marginXS:l,lineType:c,colorSplit:u,paddingSM:f}=e,m=r-n,h=m/2,p=m/2-t,g=a;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:o+30},wS(e)),CS({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:l,titlePadding:i?`${h}px ${g}px ${p}px`:0,titleBorderBottom:i?`${t}px ${c} ${u}`:"none",innerContentPadding:i?`${f}px ${g}px`:0})},fW=lr("Popover",e=>{const{colorBgElevated:t,colorText:r}=e,n=Zt(e,{popoverBg:t,popoverColor:r});return[Epe(n),$pe(n),pv(n,"zoom-big")]},_pe,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var Ope=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a!e&&!t?null:d.createElement(d.Fragment,null,e&&d.createElement("div",{className:`${r}-title`},e),t&&d.createElement("div",{className:`${r}-inner-content`},t)),Tpe=e=>{const{hashId:t,prefixCls:r,className:n,style:a,placement:i="top",title:o,content:s,children:l}=e,c=b0(o),u=b0(s),f=ce(t,r,`${r}-pure`,`${r}-placement-${i}`,n);return d.createElement("div",{className:f,style:a},d.createElement("div",{className:`${r}-arrow`}),d.createElement(mI,Object.assign({},e,{className:t,prefixCls:r}),l||d.createElement(mW,{prefixCls:r,title:c,content:u})))},Ppe=e=>{const{prefixCls:t,className:r}=e,n=Ope(e,["prefixCls","className"]),{getPrefixCls:a}=d.useContext(Nt),i=a("popover",t),[o,s,l]=fW(i);return o(d.createElement(Tpe,Object.assign({},n,{prefixCls:i,hashId:s,className:ce(r,l)})))},hW=Ppe;var Ipe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var r,n;const{prefixCls:a,title:i,content:o,overlayClassName:s,placement:l="top",trigger:c="hover",children:u,mouseEnterDelay:f=.1,mouseLeaveDelay:m=.1,onOpenChange:h,overlayStyle:p={},styles:g,classNames:v}=e,y=Ipe(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:x,className:b,style:S,classNames:w,styles:E}=oa("popover"),C=x("popover",a),[O,_,P]=fW(C),I=x(),N=ce(s,_,P,b,w.root,v==null?void 0:v.root),D=ce(w.body,v==null?void 0:v.body),[k,R]=br(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),A=(K,L)=>{R(K,!0),h==null||h(K,L)},j=K=>{K.keyCode===Qe.ESC&&A(!1,K)},F=K=>{A(K)},M=b0(i),V=b0(o);return O(d.createElement(Os,Object.assign({placement:l,trigger:c,mouseEnterDelay:f,mouseLeaveDelay:m},y,{prefixCls:C,classNames:{root:N,body:D},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},E.root),S),p),g==null?void 0:g.root),body:Object.assign(Object.assign({},E.body),g==null?void 0:g.body)},ref:t,open:k,onOpenChange:F,overlay:M||V?d.createElement(mW,{prefixCls:C,title:M,content:V}):null,transitionName:Vc(I,"zoom-big",y.transitionName),"data-popover-inject":!0}),pa(u,{onKeyDown:K=>{var L,B;d.isValidElement(u)&&((B=u==null?void 0:(L=u.props).onKeyDown)===null||B===void 0||B.call(L,K)),j(K)}})))}),pW=Npe;pW._InternalPanelDoNotUseOrYouWillBeFired=hW;const vW=pW,V3=e=>{const{size:t,shape:r}=d.useContext(V_),n=d.useMemo(()=>({size:e.size||t,shape:e.shape||r}),[e.size,e.shape,t,r]);return d.createElement(V_.Provider,{value:n},e.children)},kpe=e=>{var t,r,n,a;const{getPrefixCls:i,direction:o}=d.useContext(Nt),{prefixCls:s,className:l,rootClassName:c,style:u,maxCount:f,maxStyle:m,size:h,shape:p,maxPopoverPlacement:g,maxPopoverTrigger:v,children:y,max:x}=e,b=i("avatar",s),S=`${b}-group`,w=vn(b),[E,C,O]=nW(b,w),_=ce(S,{[`${S}-rtl`]:o==="rtl"},O,w,l,c,C),P=ha(y).map((D,k)=>pa(D,{key:`avatar-key-${k}`})),I=(x==null?void 0:x.count)||f,N=P.length;if(I&&Itypeof e!="object"&&typeof e!="function"||e===null,Gpe=Kpe;var xW=d.createContext(null);function bW(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function SW(e){var t=d.useContext(xW);return bW(t,e)}var qpe=["children","locked"],Ts=d.createContext(null);function Xpe(e,t){var r=ae({},e);return Object.keys(t).forEach(function(n){var a=t[n];a!==void 0&&(r[n]=a)}),r}function bp(e){var t=e.children,r=e.locked,n=Rt(e,qpe),a=d.useContext(Ts),i=Md(function(){return Xpe(a,n)},[a,n],function(o,s){return!r&&(o[0]!==s[0]||!tl(o[1],s[1],!0))});return d.createElement(Ts.Provider,{value:i},t)}var Ype=[],wW=d.createContext(null);function ES(){return d.useContext(wW)}var CW=d.createContext(Ype);function em(e){var t=d.useContext(CW);return d.useMemo(function(){return e!==void 0?[].concat(De(t),[e]):t},[t,e])}var EW=d.createContext(null),pI=d.createContext({});function U3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(q0(e)){var r=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(r)||e.isContentEditable||r==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),i=Number(a),o=null;return a&&!Number.isNaN(i)?o=i:n&&o===null&&(o=0),n&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function Qpe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=De(e.querySelectorAll("*")).filter(function(n){return U3(n,t)});return U3(e,t)&&r.unshift(e),r}var U_=Qe.LEFT,K_=Qe.RIGHT,G_=Qe.UP,sx=Qe.DOWN,lx=Qe.ENTER,$W=Qe.ESC,Fm=Qe.HOME,Lm=Qe.END,K3=[G_,sx,U_,K_];function Zpe(e,t,r,n){var a,i="prev",o="next",s="children",l="parent";if(e==="inline"&&n===lx)return{inlineTrigger:!0};var c=J(J({},G_,i),sx,o),u=J(J(J(J({},U_,r?o:i),K_,r?i:o),sx,s),lx,s),f=J(J(J(J(J(J({},G_,i),sx,o),lx,s),$W,l),U_,r?s:l),K_,r?l:s),m={inline:c,horizontal:u,vertical:f,inlineSub:c,horizontalSub:f,verticalSub:f},h=(a=m["".concat(e).concat(t?"":"Sub")])===null||a===void 0?void 0:a[n];switch(h){case i:return{offset:-1,sibling:!0};case o:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function Jpe(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function eve(e,t){for(var r=e||document.activeElement;r;){if(t.has(r))return r;r=r.parentElement}return null}function vI(e,t){var r=Qpe(e,!0);return r.filter(function(n){return t.has(n)})}function G3(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=vI(e,t),i=a.length,o=a.findIndex(function(s){return r===s});return n<0?o===-1?o=i-1:o-=1:n>0&&(o+=1),o=(o+i)%i,a[o]}var q_=function(t,r){var n=new Set,a=new Map,i=new Map;return t.forEach(function(o){var s=document.querySelector("[data-menu-id='".concat(bW(r,o),"']"));s&&(n.add(s),i.set(s,o),a.set(o,s))}),{elements:n,key2element:a,element2key:i}};function tve(e,t,r,n,a,i,o,s,l,c){var u=d.useRef(),f=d.useRef();f.current=t;var m=function(){Ut.cancel(u.current)};return d.useEffect(function(){return function(){m()}},[]),function(h){var p=h.which;if([].concat(K3,[lx,$W,Fm,Lm]).includes(p)){var g=i(),v=q_(g,n),y=v,x=y.elements,b=y.key2element,S=y.element2key,w=b.get(t),E=eve(w,x),C=S.get(E),O=Zpe(e,o(C,!0).length===1,r,p);if(!O&&p!==Fm&&p!==Lm)return;(K3.includes(p)||[Fm,Lm].includes(p))&&h.preventDefault();var _=function(j){if(j){var F=j,M=j.querySelector("a");M!=null&&M.getAttribute("href")&&(F=M);var V=S.get(j);s(V),m(),u.current=Ut(function(){f.current===V&&F.focus()})}};if([Fm,Lm].includes(p)||O.sibling||!E){var P;!E||e==="inline"?P=a.current:P=Jpe(E);var I,N=vI(P,x);p===Fm?I=N[0]:p===Lm?I=N[N.length-1]:I=G3(P,x,E,O.offset),_(I)}else if(O.inlineTrigger)l(C);else if(O.offset>0)l(C,!0),m(),u.current=Ut(function(){v=q_(g,n);var A=E.getAttribute("aria-controls"),j=document.getElementById(A),F=G3(j,v.elements);_(F)},5);else if(O.offset<0){var D=o(C,!0),k=D[D.length-2],R=b.get(k);l(k,!1),_(R)}}c==null||c(h)}}function rve(e){Promise.resolve().then(e)}var gI="__RC_UTIL_PATH_SPLIT__",q3=function(t){return t.join(gI)},nve=function(t){return t.split(gI)},X_="rc-menu-more";function ave(){var e=d.useState({}),t=me(e,2),r=t[1],n=d.useRef(new Map),a=d.useRef(new Map),i=d.useState([]),o=me(i,2),s=o[0],l=o[1],c=d.useRef(0),u=d.useRef(!1),f=function(){u.current||r({})},m=d.useCallback(function(b,S){var w=q3(S);a.current.set(w,b),n.current.set(b,w),c.current+=1;var E=c.current;rve(function(){E===c.current&&f()})},[]),h=d.useCallback(function(b,S){var w=q3(S);a.current.delete(w),n.current.delete(b)},[]),p=d.useCallback(function(b){l(b)},[]),g=d.useCallback(function(b,S){var w=n.current.get(b)||"",E=nve(w);return S&&s.includes(E[0])&&E.unshift(X_),E},[s]),v=d.useCallback(function(b,S){return b.filter(function(w){return w!==void 0}).some(function(w){var E=g(w,!0);return E.includes(S)})},[g]),y=function(){var S=De(n.current.keys());return s.length&&S.push(X_),S},x=d.useCallback(function(b){var S="".concat(n.current.get(b)).concat(gI),w=new Set;return De(a.current.keys()).forEach(function(E){E.startsWith(S)&&w.add(a.current.get(E))}),w},[]);return d.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:m,unregisterPath:h,refreshOverflowKeys:p,isSubPathKey:v,getKeyPath:g,getKeys:y,getSubPathKeys:x}}function oh(e){var t=d.useRef(e);t.current=e;var r=d.useCallback(function(){for(var n,a=arguments.length,i=new Array(a),o=0;o1&&(x.motionAppear=!1);var b=x.onVisibleChanged;return x.onVisibleChanged=function(S){return!m.current&&!S&&v(!0),b==null?void 0:b(S)},g?null:d.createElement(bp,{mode:i,locked:!m.current},d.createElement(Vi,Oe({visible:y},x,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(S){var w=S.className,E=S.style;return d.createElement(yI,{id:t,className:w,style:E},a)}))}var Sve=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],wve=["active"],Cve=d.forwardRef(function(e,t){var r=e.style,n=e.className,a=e.title,i=e.eventKey;e.warnKey;var o=e.disabled,s=e.internalPopupClose,l=e.children,c=e.itemIcon,u=e.expandIcon,f=e.popupClassName,m=e.popupOffset,h=e.popupStyle,p=e.onClick,g=e.onMouseEnter,v=e.onMouseLeave,y=e.onTitleClick,x=e.onTitleMouseEnter,b=e.onTitleMouseLeave,S=Rt(e,Sve),w=SW(i),E=d.useContext(Ts),C=E.prefixCls,O=E.mode,_=E.openKeys,P=E.disabled,I=E.overflowDisabled,N=E.activeKey,D=E.selectedKeys,k=E.itemIcon,R=E.expandIcon,A=E.onItemClick,j=E.onOpenChange,F=E.onActive,M=d.useContext(pI),V=M._internalRenderSubMenuItem,K=d.useContext(EW),L=K.isSubPathKey,B=em(),W="".concat(C,"-submenu"),z=P||o,U=d.useRef(),X=d.useRef(),Y=c??k,G=u??R,Q=_.includes(i),ee=!I&&Q,H=L(D,i),fe=_W(i,z,x,b),te=fe.active,re=Rt(fe,wve),q=d.useState(!1),ne=me(q,2),he=ne[0],ye=ne[1],xe=function(ge){z||ye(ge)},pe=function(ge){xe(!0),g==null||g({key:i,domEvent:ge})},Pe=function(ge){xe(!1),v==null||v({key:i,domEvent:ge})},$e=d.useMemo(function(){return te||(O!=="inline"?he||L([N],i):!1)},[O,te,N,he,i,L]),Ee=OW(B.length),He=function(ge){z||(y==null||y({key:i,domEvent:ge}),O==="inline"&&j(i,!Q))},Fe=oh(function(Me){p==null||p(a1(Me)),A(Me)}),nt=function(ge){O!=="inline"&&j(i,ge)},qe=function(){F(i)},Ge=w&&"".concat(w,"-popup"),Le=d.useMemo(function(){return d.createElement(TW,{icon:O!=="horizontal"?G:void 0,props:ae(ae({},e),{},{isOpen:ee,isSubMenu:!0})},d.createElement("i",{className:"".concat(W,"-arrow")}))},[O,G,e,ee,W]),Ne=d.createElement("div",Oe({role:"menuitem",style:Ee,className:"".concat(W,"-title"),tabIndex:z?null:-1,ref:U,title:typeof a=="string"?a:null,"data-menu-id":I&&w?null:w,"aria-expanded":ee,"aria-haspopup":!0,"aria-controls":Ge,"aria-disabled":z,onClick:He,onFocus:qe},re),a,Le),Se=d.useRef(O);if(O!=="inline"&&B.length>1?Se.current="vertical":Se.current=O,!I){var je=Se.current;Ne=d.createElement(xve,{mode:je,prefixCls:W,visible:!s&&ee&&O!=="inline",popupClassName:f,popupOffset:m,popupStyle:h,popup:d.createElement(bp,{mode:je==="horizontal"?"vertical":je},d.createElement(yI,{id:Ge,ref:X},l)),disabled:z,onVisibleChange:nt},Ne)}var _e=d.createElement(bs.Item,Oe({ref:t,role:"none"},S,{component:"li",style:r,className:ce(W,"".concat(W,"-").concat(O),n,J(J(J(J({},"".concat(W,"-open"),ee),"".concat(W,"-active"),$e),"".concat(W,"-selected"),H),"".concat(W,"-disabled"),z)),onMouseEnter:pe,onMouseLeave:Pe}),Ne,!I&&d.createElement(bve,{id:Ge,open:ee,keyPath:B},l));return V&&(_e=V(_e,e,{selected:H,active:$e,open:ee,disabled:z})),d.createElement(bp,{onItemClick:Fe,mode:O==="horizontal"?"vertical":O,itemIcon:Y,expandIcon:G},_e)}),$S=d.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=em(r),i=xI(n,a),o=ES();d.useEffect(function(){if(o)return o.registerPath(r,a),function(){o.unregisterPath(r,a)}},[a]);var s;return o?s=i:s=d.createElement(Cve,Oe({ref:t},e),i),d.createElement(CW.Provider,{value:a},s)});function bI(e){var t=e.className,r=e.style,n=d.useContext(Ts),a=n.prefixCls,i=ES();return i?null:d.createElement("li",{role:"separator",className:ce("".concat(a,"-item-divider"),t),style:r})}var Eve=["className","title","eventKey","children"],$ve=d.forwardRef(function(e,t){var r=e.className,n=e.title;e.eventKey;var a=e.children,i=Rt(e,Eve),o=d.useContext(Ts),s=o.prefixCls,l="".concat(s,"-item-group");return d.createElement("li",Oe({ref:t,role:"presentation"},i,{onClick:function(u){return u.stopPropagation()},className:ce(l,r)}),d.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof n=="string"?n:void 0},n),d.createElement("ul",{role:"group",className:"".concat(l,"-list")},a))}),SI=d.forwardRef(function(e,t){var r=e.eventKey,n=e.children,a=em(r),i=xI(n,a),o=ES();return o?i:d.createElement($ve,Oe({ref:t},Er(e,["warnKey"])),i)}),_ve=["label","children","key","type","extra"];function Y_(e,t,r){var n=t.item,a=t.group,i=t.submenu,o=t.divider;return(e||[]).map(function(s,l){if(s&&bt(s)==="object"){var c=s,u=c.label,f=c.children,m=c.key,h=c.type,p=c.extra,g=Rt(c,_ve),v=m??"tmp-".concat(l);return f||h==="group"?h==="group"?d.createElement(a,Oe({key:v},g,{title:u}),Y_(f,t,r)):d.createElement(i,Oe({key:v},g,{title:u}),Y_(f,t,r)):h==="divider"?d.createElement(o,Oe({key:v},g)):d.createElement(n,Oe({key:v},g,{extra:p}),u,(!!p||p===0)&&d.createElement("span",{className:"".concat(r,"-item-extra")},p))}return null}).filter(function(s){return s})}function Y3(e,t,r,n,a){var i=e,o=ae({divider:bI,item:Cv,group:SI,submenu:$S},n);return t&&(i=Y_(t,o,a)),xI(i,r)}var Ove=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],wu=[],Tve=d.forwardRef(function(e,t){var r,n=e,a=n.prefixCls,i=a===void 0?"rc-menu":a,o=n.rootClassName,s=n.style,l=n.className,c=n.tabIndex,u=c===void 0?0:c,f=n.items,m=n.children,h=n.direction,p=n.id,g=n.mode,v=g===void 0?"vertical":g,y=n.inlineCollapsed,x=n.disabled,b=n.disabledOverflow,S=n.subMenuOpenDelay,w=S===void 0?.1:S,E=n.subMenuCloseDelay,C=E===void 0?.1:E,O=n.forceSubMenuRender,_=n.defaultOpenKeys,P=n.openKeys,I=n.activeKey,N=n.defaultActiveFirst,D=n.selectable,k=D===void 0?!0:D,R=n.multiple,A=R===void 0?!1:R,j=n.defaultSelectedKeys,F=n.selectedKeys,M=n.onSelect,V=n.onDeselect,K=n.inlineIndent,L=K===void 0?24:K,B=n.motion,W=n.defaultMotions,z=n.triggerSubMenuAction,U=z===void 0?"hover":z,X=n.builtinPlacements,Y=n.itemIcon,G=n.expandIcon,Q=n.overflowedIndicator,ee=Q===void 0?"...":Q,H=n.overflowedIndicatorPopupClassName,fe=n.getPopupContainer,te=n.onClick,re=n.onOpenChange,q=n.onKeyDown;n.openAnimation,n.openTransitionName;var ne=n._internalRenderMenuItem,he=n._internalRenderSubMenuItem,ye=n._internalComponents,xe=Rt(n,Ove),pe=d.useMemo(function(){return[Y3(m,f,wu,ye,i),Y3(m,f,wu,{},i)]},[m,f,ye]),Pe=me(pe,2),$e=Pe[0],Ee=Pe[1],He=d.useState(!1),Fe=me(He,2),nt=Fe[0],qe=Fe[1],Ge=d.useRef(),Le=ove(p),Ne=h==="rtl",Se=br(_,{value:P,postState:function(It){return It||wu}}),je=me(Se,2),_e=je[0],Me=je[1],ge=function(It){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function cr(){Me(It),re==null||re(It)}Pt?wi.flushSync(cr):cr()},be=d.useState(_e),Re=me(be,2),We=Re[0],at=Re[1],yt=d.useRef(!1),tt=d.useMemo(function(){return(v==="inline"||v==="vertical")&&y?["vertical",y]:[v,!1]},[v,y]),it=me(tt,2),ft=it[0],lt=it[1],mt=ft==="inline",Mt=d.useState(ft),Ft=me(Mt,2),ht=Ft[0],St=Ft[1],xt=d.useState(lt),rt=me(xt,2),Ye=rt[0],Ze=rt[1];d.useEffect(function(){St(ft),Ze(lt),yt.current&&(mt?Me(We):ge(wu))},[ft,lt]);var ct=d.useState(0),Z=me(ct,2),ue=Z[0],se=Z[1],ie=ue>=$e.length-1||ht!=="horizontal"||b;d.useEffect(function(){mt&&at(_e)},[_e]),d.useEffect(function(){return yt.current=!0,function(){yt.current=!1}},[]);var oe=ave(),de=oe.registerPath,we=oe.unregisterPath,Ae=oe.refreshOverflowKeys,Ce=oe.isSubPathKey,Ie=oe.getKeyPath,Te=oe.getKeys,Xe=oe.getSubPathKeys,ke=d.useMemo(function(){return{registerPath:de,unregisterPath:we}},[de,we]),Be=d.useMemo(function(){return{isSubPathKey:Ce}},[Ce]);d.useEffect(function(){Ae(ie?wu:$e.slice(ue+1).map(function(mr){return mr.key}))},[ue,ie]);var ze=br(I||N&&((r=$e[0])===null||r===void 0?void 0:r.key),{value:I}),Ve=me(ze,2),et=Ve[0],ot=Ve[1],wt=oh(function(mr){ot(mr)}),Lt=oh(function(){ot(void 0)});d.useImperativeHandle(t,function(){return{list:Ge.current,focus:function(It){var Pt,cr=Te(),_t=q_(cr,Le),Tt=_t.elements,nr=_t.key2element,Nr=_t.element2key,Kr=vI(Ge.current,Tt),Wn=et??(Kr[0]?Nr.get(Kr[0]):(Pt=$e.find(function(Jt){return!Jt.props.disabled}))===null||Pt===void 0?void 0:Pt.key),yn=nr.get(Wn);if(Wn&&yn){var Vn;yn==null||(Vn=yn.focus)===null||Vn===void 0||Vn.call(yn,It)}}}});var pt=br(j||[],{value:F,postState:function(It){return Array.isArray(It)?It:It==null?wu:[It]}}),Ot=me(pt,2),zt=Ot[0],pr=Ot[1],Ir=function(It){if(k){var Pt=It.key,cr=zt.includes(Pt),_t;A?cr?_t=zt.filter(function(nr){return nr!==Pt}):_t=[].concat(De(zt),[Pt]):_t=[Pt],pr(_t);var Tt=ae(ae({},It),{},{selectedKeys:_t});cr?V==null||V(Tt):M==null||M(Tt)}!A&&_e.length&&ht!=="inline"&&ge(wu)},Pr=oh(function(mr){te==null||te(a1(mr)),Ir(mr)}),Pn=oh(function(mr,It){var Pt=_e.filter(function(_t){return _t!==mr});if(It)Pt.push(mr);else if(ht!=="inline"){var cr=Xe(mr);Pt=Pt.filter(function(_t){return!cr.has(_t)})}tl(_e,Pt,!0)||ge(Pt,!0)}),dn=function(It,Pt){var cr=Pt??!_e.includes(It);Pn(It,cr)},Bn=tve(ht,et,Ne,Le,Ge,Te,Ie,ot,dn,q);d.useEffect(function(){qe(!0)},[]);var zn=d.useMemo(function(){return{_internalRenderMenuItem:ne,_internalRenderSubMenuItem:he}},[ne,he]),sa=ht!=="horizontal"||b?$e:$e.map(function(mr,It){return d.createElement(bp,{key:mr.key,overflowDisabled:It>ue},mr)}),Hn=d.createElement(bs,Oe({id:p,ref:Ge,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Cv,className:ce(i,"".concat(i,"-root"),"".concat(i,"-").concat(ht),l,J(J({},"".concat(i,"-inline-collapsed"),Ye),"".concat(i,"-rtl"),Ne),o),dir:h,style:s,role:"menu",tabIndex:u,data:sa,renderRawItem:function(It){return It},renderRawRest:function(It){var Pt=It.length,cr=Pt?$e.slice(-Pt):null;return d.createElement($S,{eventKey:X_,title:ee,disabled:ie,internalPopupClose:Pt===0,popupClassName:H},cr)},maxCount:ht!=="horizontal"||b?bs.INVALIDATE:bs.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(It){se(It)},onKeyDown:Bn},xe));return d.createElement(pI.Provider,{value:zn},d.createElement(xW.Provider,{value:Le},d.createElement(bp,{prefixCls:i,rootClassName:o,mode:ht,openKeys:_e,rtl:Ne,disabled:x,motion:nt?B:null,defaultMotions:nt?W:null,activeKey:et,onActive:wt,onInactive:Lt,selectedKeys:zt,inlineIndent:L,subMenuOpenDelay:w,subMenuCloseDelay:C,forceSubMenuRender:O,builtinPlacements:X,triggerSubMenuAction:U,getPopupContainer:fe,itemIcon:Y,expandIcon:G,onItemClick:Pr,onOpenChange:Pn},d.createElement(EW.Provider,{value:Be},Hn),d.createElement("div",{style:{display:"none"},"aria-hidden":!0},d.createElement(wW.Provider,{value:ke},Ee)))))}),tm=Tve;tm.Item=Cv;tm.SubMenu=$S;tm.ItemGroup=SI;tm.Divider=bI;var Pve={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"};const Ive=Pve;var Nve=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:Ive}))},kve=d.forwardRef(Nve);const Rve=kve,IW=d.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),Ave=e=>{const{antCls:t,componentCls:r,colorText:n,footerBg:a,headerHeight:i,headerPadding:o,headerColor:s,footerPadding:l,fontSize:c,bodyBg:u,headerBg:f}=e;return{[r]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${r}-has-sider`]:{flexDirection:"row",[`> ${r}, > ${r}-content`]:{width:0}},[`${r}-header, &${r}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${r}-header`]:{height:i,padding:o,color:s,lineHeight:le(i),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${r}-footer`]:{padding:l,color:n,fontSize:c,background:a},[`${r}-content`]:{flex:"auto",color:n,minHeight:0}}},NW=e=>{const{colorBgLayout:t,controlHeight:r,controlHeightLG:n,colorText:a,controlHeightSM:i,marginXXS:o,colorTextLightSolid:s,colorBgContainer:l}=e,c=n*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:r*2,headerPadding:`0 ${c}px`,headerColor:a,footerPadding:`${i}px ${c}px`,footerBg:t,siderBg:"#001529",triggerHeight:n+o*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:n,zeroTriggerHeight:n,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:a}},kW=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],RW=lr("Layout",Ave,NW,{deprecatedTokens:kW}),Mve=e=>{const{componentCls:t,siderBg:r,motionDurationMid:n,motionDurationSlow:a,antCls:i,triggerHeight:o,triggerColor:s,triggerBg:l,headerHeight:c,zeroTriggerWidth:u,zeroTriggerHeight:f,borderRadiusLG:m,lightSiderBg:h,lightTriggerColor:p,lightTriggerBg:g,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:r,transition:`all ${n}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:o,color:s,lineHeight:le(o),textAlign:"center",background:l,cursor:"pointer",transition:`all ${n}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:c,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:r,borderRadius:`0 ${le(m)} ${le(m)} 0`,cursor:"pointer",transition:`background ${a} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${a}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${le(m)} 0 0 ${le(m)}`}},"&-light":{background:h,[`${t}-trigger`]:{color:p,background:g},[`${t}-zero-width-trigger`]:{color:p,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}},Dve=lr(["Layout","Sider"],Mve,NW,{deprecatedTokens:kW});var jve=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),_S=d.createContext({}),Lve=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),Bve=d.forwardRef((e,t)=>{const{prefixCls:r,className:n,trigger:a,children:i,defaultCollapsed:o=!1,theme:s="dark",style:l={},collapsible:c=!1,reverseArrow:u=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:h,breakpoint:p,onCollapse:g,onBreakpoint:v}=e,y=jve(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:x}=d.useContext(IW),[b,S]=d.useState("collapsed"in e?e.collapsed:o),[w,E]=d.useState(!1);d.useEffect(()=>{"collapsed"in e&&S(e.collapsed)},[e.collapsed]);const C=(Y,G)=>{"collapsed"in e||S(Y),g==null||g(Y,G)},{getPrefixCls:O,direction:_}=d.useContext(Nt),P=O("layout-sider",r),[I,N,D]=Dve(P),k=d.useRef(null);k.current=Y=>{E(Y.matches),v==null||v(Y.matches),b!==Y.matches&&C(Y.matches,"responsive")},d.useEffect(()=>{function Y(Q){var ee;return(ee=k.current)===null||ee===void 0?void 0:ee.call(k,Q)}let G;return typeof(window==null?void 0:window.matchMedia)<"u"&&p&&p in Q3&&(G=window.matchMedia(`screen and (max-width: ${Q3[p]})`),eW(G,Y),Y(G)),()=>{tW(G,Y)}},[p]),d.useEffect(()=>{const Y=Lve("ant-sider-");return x.addSider(Y),()=>x.removeSider(Y)},[]);const R=()=>{C(!b,"clickTrigger")},A=Er(y,["collapsed"]),j=b?m:f,F=Fve(j)?`${j}px`:String(j),M=Number.parseFloat(String(m||0))===0?d.createElement("span",{onClick:R,className:ce(`${P}-zero-width-trigger`,`${P}-zero-width-trigger-${u?"right":"left"}`),style:h},a||d.createElement(Rve,null)):null,V=_==="rtl"==!u,B={expanded:V?d.createElement(md,null):d.createElement(vd,null),collapsed:V?d.createElement(vd,null):d.createElement(md,null)}[b?"collapsed":"expanded"],W=a!==null?M||d.createElement("div",{className:`${P}-trigger`,onClick:R,style:{width:F}},a||B):null,z=Object.assign(Object.assign({},l),{flex:`0 0 ${F}`,maxWidth:F,minWidth:F,width:F}),U=ce(P,`${P}-${s}`,{[`${P}-collapsed`]:!!b,[`${P}-has-trigger`]:c&&a!==null&&!M,[`${P}-below`]:!!w,[`${P}-zero-width`]:Number.parseFloat(F)===0},n,N,D),X=d.useMemo(()=>({siderCollapsed:b}),[b]);return I(d.createElement(_S.Provider,{value:X},d.createElement("aside",Object.assign({className:U},A,{style:z,ref:t}),d.createElement("div",{className:`${P}-children`},i),c||w&&M?W:null)))}),AW=Bve;var zve={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"};const Hve=zve;var Wve=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:Hve}))},Vve=d.forwardRef(Wve);const wI=Vve,Uve=d.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),i1=Uve;var Kve=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:r,dashed:n}=e,a=Kve(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=d.useContext(Nt),o=i("menu",t),s=ce({[`${o}-item-divider-dashed`]:!!n},r);return d.createElement(bI,Object.assign({className:s},a))},MW=Gve,qve=e=>{var t;const{className:r,children:n,icon:a,title:i,danger:o,extra:s}=e,{prefixCls:l,firstLevel:c,direction:u,disableMenuItemTitleTooltip:f,inlineCollapsed:m}=d.useContext(i1),h=b=>{const S=n==null?void 0:n[0],w=d.createElement("span",{className:ce(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!s||s===0})},n);return(!a||d.isValidElement(n)&&n.type==="span")&&n&&b&&c&&typeof S=="string"?d.createElement("div",{className:`${l}-inline-collapsed-noicon`},S.charAt(0)):w},{siderCollapsed:p}=d.useContext(_S);let g=i;typeof i>"u"?g=c?n:"":i===!1&&(g="");const v={title:g};!p&&!m&&(v.title=null,v.open=!1);const y=ha(n).length;let x=d.createElement(Cv,Object.assign({},Er(e,["title","icon","danger"]),{className:ce({[`${l}-item-danger`]:o,[`${l}-item-only-child`]:(a?y+1:y)===1},r),title:typeof i=="string"?i:void 0}),pa(a,{className:ce(d.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:void 0,`${l}-item-icon`)}),h(m));return f||(x=d.createElement(Os,Object.assign({},v,{placement:u==="rtl"?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),x)),x},DW=qve;var Xve=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{children:r}=e,n=Xve(e,["children"]),a=d.useContext(Q_),i=d.useMemo(()=>Object.assign(Object.assign({},a),n),[a,n.prefixCls,n.mode,n.selectable,n.rootClassName]),o=Xne(r),s=Wl(t,o?su(r):null);return d.createElement(Q_.Provider,{value:i},d.createElement(ol,{space:!0},o?d.cloneElement(r,{ref:s}):r))}),Z3=Q_,Yve=e=>{const{componentCls:t,motionDurationSlow:r,horizontalLineHeight:n,colorSplit:a,lineWidth:i,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:n,border:0,borderBottom:`${le(i)} ${o} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover, - > ${t}-item-active, - > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${r}`,`background ${r}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},Qve=Yve,Zve=({componentCls:e,menuArrowOffset:t,calc:r})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical, - ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${le(r(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${le(t)})`}}}}),Jve=Zve,J3=e=>nl(e),ege=(e,t)=>{const{componentCls:r,itemColor:n,itemSelectedColor:a,subMenuItemSelectedColor:i,groupTitleColor:o,itemBg:s,subMenuItemBg:l,itemSelectedBg:c,activeBarHeight:u,activeBarWidth:f,activeBarBorderWidth:m,motionDurationSlow:h,motionEaseInOut:p,motionEaseOut:g,itemPaddingInline:v,motionDurationMid:y,itemHoverColor:x,lineType:b,colorSplit:S,itemDisabledColor:w,dangerItemColor:E,dangerItemHoverColor:C,dangerItemSelectedColor:O,dangerItemActiveBg:_,dangerItemSelectedBg:P,popupBg:I,itemHoverBg:N,itemActiveBg:D,menuSubMenuBg:k,horizontalItemSelectedColor:R,horizontalItemSelectedBg:A,horizontalItemBorderRadius:j,horizontalItemHoverBg:F}=e;return{[`${r}-${t}, ${r}-${t} > ${r}`]:{color:n,background:s,[`&${r}-root:focus-visible`]:Object.assign({},J3(e)),[`${r}-item`]:{"&-group-title, &-extra":{color:o}},[`${r}-submenu-selected > ${r}-submenu-title`]:{color:i},[`${r}-item, ${r}-submenu-title`]:{color:n,[`&:not(${r}-item-disabled):focus-visible`]:Object.assign({},J3(e))},[`${r}-item-disabled, ${r}-submenu-disabled`]:{color:`${w} !important`},[`${r}-item:not(${r}-item-selected):not(${r}-submenu-selected)`]:{[`&:hover, > ${r}-submenu-title:hover`]:{color:x}},[`&:not(${r}-horizontal)`]:{[`${r}-item:not(${r}-item-selected)`]:{"&:hover":{backgroundColor:N},"&:active":{backgroundColor:D}},[`${r}-submenu-title`]:{"&:hover":{backgroundColor:N},"&:active":{backgroundColor:D}}},[`${r}-item-danger`]:{color:E,[`&${r}-item:hover`]:{[`&:not(${r}-item-selected):not(${r}-submenu-selected)`]:{color:C}},[`&${r}-item:active`]:{background:_}},[`${r}-item a`]:{"&, &:hover":{color:"inherit"}},[`${r}-item-selected`]:{color:a,[`&${r}-item-danger`]:{color:O},"a, a:hover":{color:"inherit"}},[`& ${r}-item-selected`]:{backgroundColor:c,[`&${r}-item-danger`]:{backgroundColor:P}},[`&${r}-submenu > ${r}`]:{backgroundColor:k},[`&${r}-popup > ${r}`]:{backgroundColor:I},[`&${r}-submenu-popup > ${r}`]:{backgroundColor:I},[`&${r}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${r}-item, > ${r}-submenu`]:{top:m,marginTop:e.calc(m).mul(-1).equal(),marginBottom:0,borderRadius:j,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${le(u)} solid transparent`,transition:`border-color ${h} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:F,"&::after":{borderBottomWidth:u,borderBottomColor:R}},"&-selected":{color:R,backgroundColor:A,"&:hover":{backgroundColor:A},"&::after":{borderBottomWidth:u,borderBottomColor:R}}}}),[`&${r}-root`]:{[`&${r}-inline, &${r}-vertical`]:{borderInlineEnd:`${le(m)} ${b} ${S}`}},[`&${r}-inline`]:{[`${r}-sub${r}-inline`]:{background:l},[`${r}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${le(f)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${y} ${g}`,`opacity ${y} ${g}`].join(","),content:'""'},[`&${r}-item-danger`]:{"&::after":{borderInlineEndColor:O}}},[`${r}-selected, ${r}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${y} ${p}`,`opacity ${y} ${p}`].join(",")}}}}}},eD=ege,tD=e=>{const{componentCls:t,itemHeight:r,itemMarginInline:n,padding:a,menuArrowSize:i,marginXS:o,itemMarginBlock:s,itemWidth:l,itemPaddingInline:c}=e,u=e.calc(i).add(a).add(o).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:r,lineHeight:le(r),paddingInline:c,overflow:"hidden",textOverflow:"ellipsis",marginInline:n,marginBlock:s,width:l},[`> ${t}-item, - > ${t}-submenu > ${t}-submenu-title`]:{height:r,lineHeight:le(r)},[`${t}-item-group-list ${t}-submenu-title, - ${t}-submenu-title`]:{paddingInlineEnd:u}}},tge=e=>{const{componentCls:t,iconCls:r,itemHeight:n,colorTextLightSolid:a,dropdownWidth:i,controlHeightLG:o,motionEaseOut:s,paddingXL:l,itemMarginInline:c,fontSizeLG:u,motionDurationFast:f,motionDurationSlow:m,paddingXS:h,boxShadowSecondary:p,collapsedWidth:g,collapsedIconSize:v}=e,y={height:n,lineHeight:le(n),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},tD(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},tD(e)),{boxShadow:p})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${le(e.calc(o).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${f} ${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`]:y,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:y}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item, - > ${t}-item-group > ${t}-item-group-list > ${t}-item, - > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, - > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${le(e.calc(v).div(2).equal())} - ${le(c)})`,textOverflow:"clip",[` - ${t}-submenu-arrow, - ${t}-submenu-expand-icon - `]:{opacity:0},[`${t}-item-icon, ${r}`]:{margin:0,fontSize:v,lineHeight:le(n),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${r}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${r}`]:{display:"none"},"a, a:hover":{color:a}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Uo),{paddingInline:h})}}]},rge=tge,rD=e=>{const{componentCls:t,motionDurationSlow:r,motionDurationMid:n,motionEaseInOut:a,motionEaseOut:i,iconCls:o,iconSize:s,iconMarginInlineEnd:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background ${r}`,`padding calc(${r} + 0.1s) ${a}`].join(","),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${n} ${i}`,`margin ${r} ${a}`,`color ${r}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${r} ${a}`,`margin ${r}`,`color ${r}`].join(",")}},[`${t}-item-icon`]:Object.assign({},V0()),[`&${t}-item-only-child`]:{[`> ${o}, > ${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",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},nD=e=>{const{componentCls:t,motionDurationSlow:r,motionEaseInOut:n,borderRadius:a,menuArrowSize:i,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${r} ${n}, opacity ${r}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:a,transition:[`background ${r} ${n}`,`transform ${r} ${n}`,`top ${r} ${n}`,`color ${r} ${n}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${le(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${le(o)})`}}}}},nge=e=>{const{antCls:t,componentCls:r,fontSize:n,motionDurationSlow:a,motionDurationMid:i,motionEaseInOut:o,paddingXS:s,padding:l,colorSplit:c,lineWidth:u,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:h,menuArrowSize:p,menuArrowOffset:g,lineType:v,groupTitleLineHeight:y,groupTitleFontSize:x}=e;return[{"":{[r]:Object.assign(Object.assign({},rl()),{"&-hidden":{display:"none"}})},[`${r}-submenu-hidden`]:{display:"none"}},{[r]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dr(e)),rl()),{marginBottom:0,paddingInlineStart:0,fontSize:n,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${a} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${r}-item`]:{flex:"none"}},[`${r}-item, ${r}-submenu, ${r}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${r}-item-group-title`]:{padding:`${le(s)} ${le(l)}`,fontSize:x,lineHeight:y,transition:`all ${a}`},[`&-horizontal ${r}-submenu`]:{transition:[`border-color ${a} ${o}`,`background ${a} ${o}`].join(",")},[`${r}-submenu, ${r}-submenu-inline`]:{transition:[`border-color ${a} ${o}`,`background ${a} ${o}`,`padding ${i} ${o}`].join(",")},[`${r}-submenu ${r}-sub`]:{cursor:"initial",transition:[`background ${a} ${o}`,`padding ${a} ${o}`].join(",")},[`${r}-title-content`]:{transition:`color ${a}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${r}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${r}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${r}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:v,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),rD(e)),{[`${r}-item-group`]:{[`${r}-item-group-list`]:{margin:0,padding:0,[`${r}-item, ${r}-submenu-title`]:{paddingInline:`${le(e.calc(n).mul(2).equal())} ${le(l)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${r}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${r}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},rD(e)),nD(e)),{[`${r}-item, ${r}-submenu > ${r}-submenu-title`]:{borderRadius:h},[`${r}-submenu-title::after`]:{transition:`transform ${a} ${o}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),nD(e)),{[`&-inline-collapsed ${r}-submenu-arrow, - &-inline ${r}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${le(g)})`},"&::after":{transform:`rotate(45deg) translateX(${le(e.calc(g).mul(-1).equal())})`}},[`${r}-submenu-open${r}-submenu-inline > ${r}-submenu-title > ${r}-submenu-arrow`]:{transform:`translateY(${le(e.calc(p).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${le(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${le(g)})`}}})},{[`${t}-layout-header`]:{[r]:{lineHeight:"inherit"}}}]},age=e=>{var t,r,n;const{colorPrimary:a,colorError:i,colorTextDisabled:o,colorErrorBg:s,colorText:l,colorTextDescription:c,colorBgContainer:u,colorFillAlter:f,colorFillContent:m,lineWidth:h,lineWidthBold:p,controlItemBgActive:g,colorBgTextHover:v,controlHeightLG:y,lineHeight:x,colorBgElevated:b,marginXXS:S,padding:w,fontSize:E,controlHeightSM:C,fontSizeLG:O,colorTextLightSolid:_,colorErrorHover:P}=e,I=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,N=(r=e.activeBarBorderWidth)!==null&&r!==void 0?r:h,D=(n=e.itemMarginInline)!==null&&n!==void 0?n:e.marginXXS,k=new sr(_).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:a,horizontalItemHoverColor:a,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:a,itemSelectedColor:a,subMenuItemSelectedColor:a,colorItemTextSelectedHorizontal:a,horizontalItemSelectedColor:a,colorItemBg:u,itemBg:u,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:m,itemActiveBg:g,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:I,colorActiveBarHeight:p,activeBarHeight:p,colorActiveBarBorderSize:h,activeBarBorderWidth:N,colorItemTextDisabled:o,itemDisabledColor:o,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:D,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:y,groupTitleLineHeight:x,collapsedWidth:y*2,popupBg:b,itemMarginBlock:S,itemPaddingInline:w,horizontalLineHeight:`${y*1.15}px`,iconSize:E,iconMarginInlineEnd:C-E,collapsedIconSize:O,groupTitleFontSize:E,darkItemDisabledColor:new sr(_).setA(.25).toRgbString(),darkItemColor:k,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:_,darkItemSelectedBg:a,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:k,darkItemHoverColor:_,darkDangerItemHoverColor:P,darkDangerItemSelectedColor:_,darkDangerItemActiveBg:i,itemWidth:I?`calc(100% + ${N}px)`:`calc(100% - ${D*2}px)`}},ige=(e,t=e,r=!0)=>lr("Menu",a=>{const{colorBgElevated:i,controlHeightLG:o,fontSize:s,darkItemColor:l,darkDangerItemColor:c,darkItemBg:u,darkSubMenuItemBg:f,darkItemSelectedColor:m,darkItemSelectedBg:h,darkDangerItemSelectedBg:p,darkItemHoverBg:g,darkGroupTitleColor:v,darkItemHoverColor:y,darkItemDisabledColor:x,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:w,popupBg:E,darkPopupBg:C}=a,O=a.calc(s).div(7).mul(5).equal(),_=Zt(a,{menuArrowSize:O,menuHorizontalHeight:a.calc(o).mul(1.15).equal(),menuArrowOffset:a.calc(O).mul(.25).equal(),menuSubMenuBg:i,calc:a.calc,popupBg:E}),P=Zt(_,{itemColor:l,itemHoverColor:y,groupTitleColor:v,itemSelectedColor:m,subMenuItemSelectedColor:m,itemBg:u,popupBg:C,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:h,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:g,itemDisabledColor:x,dangerItemColor:c,dangerItemHoverColor:b,dangerItemSelectedColor:S,dangerItemActiveBg:w,dangerItemSelectedBg:p,menuSubMenuBg:f,horizontalItemSelectedColor:m,horizontalItemSelectedBg:h});return[nge(_),Qve(_),rge(_),eD(_,"light"),eD(P,"dark"),Jve(_),aS(_),al(_,"slide-up"),al(_,"slide-down"),pv(_,"zoom-big")]},age,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:r,unitless:{groupTitleLineHeight:!0}})(e,t),oge=e=>{var t;const{popupClassName:r,icon:n,title:a,theme:i}=e,o=d.useContext(i1),{prefixCls:s,inlineCollapsed:l,theme:c}=o,u=em();let f;if(!n)f=l&&!u.length&&a&&typeof a=="string"?d.createElement("div",{className:`${s}-inline-collapsed-noicon`},a.charAt(0)):d.createElement("span",{className:`${s}-title-content`},a);else{const p=d.isValidElement(a)&&a.type==="span";f=d.createElement(d.Fragment,null,pa(n,{className:ce(d.isValidElement(n)?(t=n.props)===null||t===void 0?void 0:t.className:void 0,`${s}-item-icon`)}),p?a:d.createElement("span",{className:`${s}-title-content`},a))}const m=d.useMemo(()=>Object.assign(Object.assign({},o),{firstLevel:!1}),[o]),[h]=uu("Menu");return d.createElement(i1.Provider,{value:m},d.createElement($S,Object.assign({},Er(e,["icon"]),{title:f,popupClassName:ce(s,r,`${s}-${i||c}`),popupStyle:Object.assign({zIndex:h},e.popupStyle)})))},FW=oge;var sge=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var r;const n=d.useContext(Z3),a=n||{},{getPrefixCls:i,getPopupContainer:o,direction:s,menu:l}=d.useContext(Nt),c=i(),{prefixCls:u,className:f,style:m,theme:h="light",expandIcon:p,_internalDisableMenuItemTitleTooltip:g,inlineCollapsed:v,siderCollapsed:y,rootClassName:x,mode:b,selectable:S,onClick:w,overflowedIndicatorPopupClassName:E}=e,C=sge(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),O=Er(C,["collapsedWidth"]);(r=a.validator)===null||r===void 0||r.call(a,{mode:b});const _=qt((...L)=>{var B;w==null||w.apply(void 0,L),(B=a.onClick)===null||B===void 0||B.call(a)}),P=a.mode||b,I=S??a.selectable,N=v??y,D={horizontal:{motionName:`${c}-slide-up`},inline:vp(c),other:{motionName:`${c}-zoom-big`}},k=i("menu",u||a.prefixCls),R=vn(k),[A,j,F]=ige(k,R,!n),M=ce(`${k}-${h}`,l==null?void 0:l.className,f),V=d.useMemo(()=>{var L,B;if(typeof p=="function"||E2(p))return p||null;if(typeof a.expandIcon=="function"||E2(a.expandIcon))return a.expandIcon||null;if(typeof(l==null?void 0:l.expandIcon)=="function"||E2(l==null?void 0:l.expandIcon))return(l==null?void 0:l.expandIcon)||null;const W=(L=p??(a==null?void 0:a.expandIcon))!==null&&L!==void 0?L:l==null?void 0:l.expandIcon;return pa(W,{className:ce(`${k}-submenu-expand-icon`,d.isValidElement(W)?(B=W.props)===null||B===void 0?void 0:B.className:void 0)})},[p,a==null?void 0:a.expandIcon,l==null?void 0:l.expandIcon,k]),K=d.useMemo(()=>({prefixCls:k,inlineCollapsed:N||!1,direction:s,firstLevel:!0,theme:h,mode:P,disableMenuItemTitleTooltip:g}),[k,N,s,g,h]);return A(d.createElement(Z3.Provider,{value:null},d.createElement(i1.Provider,{value:K},d.createElement(tm,Object.assign({getPopupContainer:o,overflowedIndicator:d.createElement(wI,null),overflowedIndicatorPopupClassName:ce(k,`${k}-${h}`,E),mode:P,selectable:I,onClick:_},O,{inlineCollapsed:N,style:Object.assign(Object.assign({},l==null?void 0:l.style),m),className:M,prefixCls:k,direction:s,defaultMotions:D,expandIcon:V,ref:t,rootClassName:ce(x,j,a.rootClassName,F,R),_internalComponents:lge})))))}),uge=cge,Ev=d.forwardRef((e,t)=>{const r=d.useRef(null),n=d.useContext(_S);return d.useImperativeHandle(t,()=>({menu:r.current,focus:a=>{var i;(i=r.current)===null||i===void 0||i.focus(a)}})),d.createElement(uge,Object.assign({ref:r},e,n))});Ev.Item=DW;Ev.SubMenu=FW;Ev.Divider=MW;Ev.ItemGroup=SI;const CI=Ev,dge=e=>{const{componentCls:t,menuCls:r,colorError:n,colorTextLightSolid:a}=e,i=`${r}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${r} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:n,"&:hover":{color:a,backgroundColor:n}}}}}},fge=dge,mge=e=>{const{componentCls:t,menuCls:r,zIndexPopup:n,dropdownArrowDistance:a,sizePopupArrow:i,antCls:o,iconCls:s,motionDurationMid:l,paddingBlock:c,fontSize:u,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:h,controlPaddingHorizontal:p,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:n,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(a).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:h}},[`${t}-wrap`]:{position:"relative",[`${o}-btn > ${s}-down`]:{fontSize:h},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft, - &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomLeft, - &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottom, - &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottom, - &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomRight, - &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:oS},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topLeft, - &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topLeft, - &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-top, - &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-top, - &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topRight, - &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topRight`]:{animationName:lS},[`&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomLeft, - &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottom, - &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:sS},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topLeft, - &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-top, - &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:cS}}},hI(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${r}`]:{position:"relative",margin:0},[`${r}-submenu-popup`]:{position:"absolute",zIndex:n,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},dr(e)),{[r]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Nl(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${r}-item-group-title`]:{padding:`${le(c)} ${le(p)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${r}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${r}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${r}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${l}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${r}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${r}-item, ${r}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${le(c)} ${le(p)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Nl(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${le(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:h,fontStyle:"normal"}}}),[`${r}-item-group-list`]:{margin:`0 ${le(e.marginXS)}`,padding:0,listStyle:"none"},[`${r}-submenu-title`]:{paddingInlineEnd:e.calc(p).add(e.fontSizeSM).equal()},[`${r}-submenu-vertical`]:{position:"relative"},[`${r}-submenu${r}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:g,cursor:"not-allowed"}},[`${r}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[al(e,"slide-up"),al(e,"slide-down"),x0(e,"move-up"),x0(e,"move-down"),pv(e,"zoom-big")]]},hge=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},CS({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),wS(e)),pge=lr("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:r,paddingXXS:n,componentCls:a}=e,i=Zt(e,{menuCls:`${a}-menu`,dropdownArrowDistance:e.calc(r).div(2).add(t).equal(),dropdownEdgeChildPadding:n});return[mge(i),fge(i)]},hge,{resetStyle:!1}),EI=e=>{var t;const{menu:r,arrow:n,prefixCls:a,children:i,trigger:o,disabled:s,dropdownRender:l,popupRender:c,getPopupContainer:u,overlayClassName:f,rootClassName:m,overlayStyle:h,open:p,onOpenChange:g,visible:v,onVisibleChange:y,mouseEnterDelay:x=.15,mouseLeaveDelay:b=.1,autoAdjustOverflow:S=!0,placement:w="",overlay:E,transitionName:C,destroyOnHidden:O,destroyPopupOnHide:_}=e,{getPopupContainer:P,getPrefixCls:I,direction:N,dropdown:D}=d.useContext(Nt),k=c||l;lu();const R=d.useMemo(()=>{const ne=I();return C!==void 0?C:w.includes("top")?`${ne}-slide-down`:`${ne}-slide-up`},[I,w,C]),A=d.useMemo(()=>w?w.includes("Center")?w.slice(0,w.indexOf("Center")):w:N==="rtl"?"bottomRight":"bottomLeft",[w,N]),j=I("dropdown",a),F=vn(j),[M,V,K]=pge(j,F),[,L]=Ga(),B=d.Children.only(Gpe(i)?d.createElement("span",null,i):i),W=pa(B,{className:ce(`${j}-trigger`,{[`${j}-rtl`]:N==="rtl"},B.props.className),disabled:(t=B.props.disabled)!==null&&t!==void 0?t:s}),z=s?[]:o,U=!!(z!=null&&z.includes("contextMenu")),[X,Y]=br(!1,{value:p??v}),G=qt(ne=>{g==null||g(ne,{source:"trigger"}),y==null||y(ne),Y(ne)}),Q=ce(f,m,V,K,F,D==null?void 0:D.className,{[`${j}-rtl`]:N==="rtl"}),ee=sW({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:S,offset:L.marginXXS,arrowWidth:n?L.sizePopupArrow:0,borderRadius:L.borderRadius}),H=qt(()=>{r!=null&&r.selectable&&(r!=null&&r.multiple)||(g==null||g(!1,{source:"menu"}),Y(!1))}),fe=()=>{let ne;return r!=null&&r.items?ne=d.createElement(CI,Object.assign({},r)):typeof E=="function"?ne=E():ne=E,k&&(ne=k(ne)),ne=d.Children.only(typeof ne=="string"?d.createElement("span",null,ne):ne),d.createElement(jW,{prefixCls:`${j}-menu`,rootClassName:ce(K,F),expandIcon:d.createElement("span",{className:`${j}-menu-submenu-arrow`},N==="rtl"?d.createElement(vd,{className:`${j}-menu-submenu-arrow-icon`}):d.createElement(md,{className:`${j}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:H,validator:({mode:he})=>{}},ne)},[te,re]=uu("Dropdown",h==null?void 0:h.zIndex);let q=d.createElement(yW,Object.assign({alignPoint:U},Er(e,["rootClassName"]),{mouseEnterDelay:x,mouseLeaveDelay:b,visible:X,builtinPlacements:ee,arrow:!!n,overlayClassName:Q,prefixCls:j,getPopupContainer:u||P,transitionName:R,trigger:z,overlay:fe,placement:A,onVisibleChange:G,overlayStyle:Object.assign(Object.assign(Object.assign({},D==null?void 0:D.style),h),{zIndex:te}),autoDestroy:O??_}),W);return te&&(q=d.createElement(Jb.Provider,{value:re},q)),M(q)},vge=xv(EI,"align",void 0,"dropdown",e=>e),gge=e=>d.createElement(vge,Object.assign({},e),d.createElement("span",null));EI._InternalPanelDoNotUseOrYouWillBeFired=gge;const LW=EI;var $2={exports:{}},aD;function BW(){return aD||(aD=1,function(e,t){(function(r,n){e.exports=n()})(ru,function(){var r=1e3,n=6e4,a=36e5,i="millisecond",o="second",s="minute",l="hour",c="day",u="week",f="month",m="quarter",h="year",p="date",g="Invalid Date",v=/^(\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,x={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(k){var R=["th","st","nd","rd"],A=k%100;return"["+k+(R[(A-20)%10]||R[A]||R[0])+"]"}},b=function(k,R,A){var j=String(k);return!j||j.length>=R?k:""+Array(R+1-j.length).join(A)+k},S={s:b,z:function(k){var R=-k.utcOffset(),A=Math.abs(R),j=Math.floor(A/60),F=A%60;return(R<=0?"+":"-")+b(j,2,"0")+":"+b(F,2,"0")},m:function k(R,A){if(R.date()1)return k(V[0])}else{var K=R.name;E[K]=R,F=K}return!j&&F&&(w=F),F||!j&&w},P=function(k,R){if(O(k))return k.clone();var A=typeof R=="object"?R:{};return A.date=k,A.args=arguments,new N(A)},I=S;I.l=_,I.i=O,I.w=function(k,R){return P(k,{locale:R.$L,utc:R.$u,x:R.$x,$offset:R.$offset})};var N=function(){function k(A){this.$L=_(A.locale,null,!0),this.parse(A),this.$x=this.$x||A.x||{},this[C]=!0}var R=k.prototype;return R.parse=function(A){this.$d=function(j){var F=j.date,M=j.utc;if(F===null)return new Date(NaN);if(I.u(F))return new Date;if(F instanceof Date)return new Date(F);if(typeof F=="string"&&!/Z$/i.test(F)){var V=F.match(v);if(V){var K=V[2]-1||0,L=(V[7]||"0").substring(0,3);return M?new Date(Date.UTC(V[1],K,V[3]||1,V[4]||0,V[5]||0,V[6]||0,L)):new Date(V[1],K,V[3]||1,V[4]||0,V[5]||0,V[6]||0,L)}}return new Date(F)}(A),this.init()},R.init=function(){var A=this.$d;this.$y=A.getFullYear(),this.$M=A.getMonth(),this.$D=A.getDate(),this.$W=A.getDay(),this.$H=A.getHours(),this.$m=A.getMinutes(),this.$s=A.getSeconds(),this.$ms=A.getMilliseconds()},R.$utils=function(){return I},R.isValid=function(){return this.$d.toString()!==g},R.isSame=function(A,j){var F=P(A);return this.startOf(j)<=F&&F<=this.endOf(j)},R.isAfter=function(A,j){return P(A)25){var u=o(this).startOf(n).add(1,n).date(c),f=o(this).endOf(r);if(u.isBefore(f))return 1}var m=o(this).startOf(n).date(c).startOf(r).subtract(1,"millisecond"),h=this.diff(m,r,!0);return h<0?o(this).startOf("week").week():Math.ceil(h)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(WW);var Cge=WW.exports;const Ege=ia(Cge);var VW={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ru,function(){return function(r,n){n.prototype.weekYear=function(){var a=this.month(),i=this.week(),o=this.year();return i===1&&a===11?o+1:a===0&&i>=52?o-1:o}}})})(VW);var $ge=VW.exports;const _ge=ia($ge);var UW={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ru,function(){return function(r,n){var a=n.prototype,i=a.format;a.format=function(o){var s=this,l=this.$locale();if(!this.isValid())return i.bind(this)(o);var c=this.$utils(),u=(o||"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(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return i.bind(this)(u)}}})})(UW);var Oge=UW.exports;const Tge=ia(Oge);var KW={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(ru,function(){var r={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"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,i=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},c=function(v){return(v=+v)+(v>68?1900:2e3)},u=function(v){return function(y){this[v]=+y}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var x=y.match(/([+-]|\d\d)/g),b=60*x[1]+(+x[2]||0);return b===0?0:x[0]==="+"?-b:b}(v)}],m=function(v){var y=l[v];return y&&(y.indexOf?y:y.s.concat(y.f))},h=function(v,y){var x,b=l.meridiem;if(b){for(var S=1;S<=24;S+=1)if(v.indexOf(b(S,0,y))>-1){x=S>12;break}}else x=v===(y?"pm":"PM");return x},p={A:[s,function(v){this.afternoon=h(v,!1)}],a:[s,function(v){this.afternoon=h(v,!0)}],Q:[a,function(v){this.month=3*(v-1)+1}],S:[a,function(v){this.milliseconds=100*+v}],SS:[i,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[o,u("seconds")],ss:[o,u("seconds")],m:[o,u("minutes")],mm:[o,u("minutes")],H:[o,u("hours")],h:[o,u("hours")],HH:[o,u("hours")],hh:[o,u("hours")],D:[o,u("day")],DD:[i,u("day")],Do:[s,function(v){var y=l.ordinal,x=v.match(/\d+/);if(this.day=x[0],y)for(var b=1;b<=31;b+=1)y(b).replace(/\[|\]/g,"")===v&&(this.day=b)}],w:[o,u("week")],ww:[i,u("week")],M:[o,u("month")],MM:[i,u("month")],MMM:[s,function(v){var y=m("months"),x=(m("monthsShort")||y.map(function(b){return b.slice(0,3)})).indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[s,function(v){var y=m("months").indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,u("year")],YY:[i,function(v){this.year=c(v)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function g(v){var y,x;y=v,x=l&&l.formats;for(var b=(v=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(P,I,N){var D=N&&N.toUpperCase();return I||x[N]||r[N]||x[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(k,R,A){return R||A.slice(1)})})).match(n),S=b.length,w=0;w-1)return new Date((F==="X"?1e3:1)*j);var K=g(F)(j),L=K.year,B=K.month,W=K.day,z=K.hours,U=K.minutes,X=K.seconds,Y=K.milliseconds,G=K.zone,Q=K.week,ee=new Date,H=W||(L||B?1:ee.getDate()),fe=L||ee.getFullYear(),te=0;L&&!B||(te=B>0?B-1:ee.getMonth());var re,q=z||0,ne=U||0,he=X||0,ye=Y||0;return G?new Date(Date.UTC(fe,te,H,q,ne,he,ye+60*G.offset*1e3)):M?new Date(Date.UTC(fe,te,H,q,ne,he,ye)):(re=new Date(fe,te,H,q,ne,he,ye),Q&&(re=V(re).week(Q).toDate()),re)}catch{return new Date("")}}(E,_,C,x),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),N&&E!=this.format(_)&&(this.$d=new Date("")),l={}}else if(_ instanceof Array)for(var k=_.length,R=1;R<=k;R+=1){O[1]=_[R-1];var A=x.apply(this,O);if(A.isValid()){this.$d=A.$d,this.$L=A.$L,this.init();break}R===k&&(this.$d=new Date(""))}else S.call(this,w)}}})})(KW);var Pge=KW.exports;const Ige=ia(Pge);Yn.extend(Ige);Yn.extend(Tge);Yn.extend(bge);Yn.extend(wge);Yn.extend(Ege);Yn.extend(_ge);Yn.extend(function(e,t){var r=t.prototype,n=r.format;r.format=function(i){var o=(i||"").replace("Wo","wo");return n.bind(this)(o)}});var Nge={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"},Cu=function(t){var r=Nge[t];return r||t.split("_")[0]},kge={getNow:function(){var t=Yn();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return Yn(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var r=t.locale("en");return r.weekday()+r.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,r){return t.add(r,"year")},addMonth:function(t,r){return t.add(r,"month")},addDate:function(t,r){return t.add(r,"day")},setYear:function(t,r){return t.year(r)},setMonth:function(t,r){return t.month(r)},setDate:function(t,r){return t.date(r)},setHour:function(t,r){return t.hour(r)},setMinute:function(t,r){return t.minute(r)},setSecond:function(t,r){return t.second(r)},setMillisecond:function(t,r){return t.millisecond(r)},isAfter:function(t,r){return t.isAfter(r)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return Yn().locale(Cu(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,r){return r.locale(Cu(t)).weekday(0)},getWeek:function(t,r){return r.locale(Cu(t)).week()},getShortWeekDays:function(t){return Yn().locale(Cu(t)).localeData().weekdaysMin()},getShortMonths:function(t){return Yn().locale(Cu(t)).localeData().monthsShort()},format:function(t,r,n){return r.locale(Cu(t)).format(n)},parse:function(t,r,n){for(var a=Cu(t),i=0;i2&&arguments[2]!==void 0?arguments[2]:"0",n=String(e);n.length2&&arguments[2]!==void 0?arguments[2]:[],n=d.useState([!1,!1]),a=me(n,2),i=a[0],o=a[1],s=function(u,f){o(function(m){return Th(m,f,u)})},l=d.useMemo(function(){return i.map(function(c,u){if(c)return!0;var f=e[u];return f?!!(!r[u]&&!f||f&&t(f,{activeIndex:u})):!1})},[e,i,t,r]);return[l,s]}function ZW(e,t,r,n,a){var i="",o=[];return e&&o.push(a?"hh":"HH"),t&&o.push("mm"),r&&o.push("ss"),i=o.join(":"),n&&(i+=".SSS"),a&&(i+=" A"),i}function Mge(e,t,r,n,a,i){var o=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,c=e.fieldMonthFormat,u=e.fieldYearFormat,f=e.fieldWeekFormat,m=e.fieldQuarterFormat,h=e.yearFormat,p=e.cellYearFormat,g=e.cellQuarterFormat,v=e.dayFormat,y=e.cellDateFormat,x=ZW(t,r,n,a,i);return ae(ae({},e),{},{fieldDateTimeFormat:o||"YYYY-MM-DD ".concat(x),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||x,fieldMonthFormat:c||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:m||"YYYY-[Q]Q",yearFormat:h||"YYYY",cellYearFormat:p||"YYYY",cellQuarterFormat:g||"[Q]Q",cellDateFormat:y||v||"D"})}function JW(e,t){var r=t.showHour,n=t.showMinute,a=t.showSecond,i=t.showMillisecond,o=t.use12Hours;return ve.useMemo(function(){return Mge(e,r,n,a,i,o)},[e,r,n,a,i,o])}function Bm(e,t,r){return r??t.some(function(n){return e.includes(n)})}var Dge=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function jge(e){var t=OS(e,Dge),r=e.format,n=e.picker,a=null;return r&&(a=r,Array.isArray(a)&&(a=a[0]),a=bt(a)==="object"?a.format:a),n==="time"&&(t.format=a),[t,a]}function Fge(e){return e&&typeof e=="string"}function eV(e,t,r,n){return[e,t,r,n].some(function(a){return a!==void 0})}function tV(e,t,r,n,a){var i=t,o=r,s=n;if(!e&&!i&&!o&&!s&&!a)i=!0,o=!0,s=!0;else if(e){var l,c,u,f=[i,o,s].some(function(p){return p===!1}),m=[i,o,s].some(function(p){return p===!0}),h=f?!0:!m;i=(l=i)!==null&&l!==void 0?l:h,o=(c=o)!==null&&c!==void 0?c:h,s=(u=s)!==null&&u!==void 0?u:h}return[i,o,s,a]}function rV(e){var t=e.showTime,r=jge(e),n=me(r,2),a=n[0],i=n[1],o=t&&bt(t)==="object"?t:{},s=ae(ae({defaultOpenValue:o.defaultOpenValue||o.defaultValue},a),o),l=s.showMillisecond,c=s.showHour,u=s.showMinute,f=s.showSecond,m=eV(c,u,f,l),h=tV(m,c,u,f,l),p=me(h,3);return c=p[0],u=p[1],f=p[2],[s,ae(ae({},s),{},{showHour:c,showMinute:u,showSecond:f,showMillisecond:l}),s.format,i]}function nV(e,t,r,n,a){var i=e==="time";if(e==="datetime"||i){for(var o=n,s=qW(e,a,null),l=s,c=[t,r],u=0;u1&&(o=t.addDate(o,-7)),o}function ma(e,t){var r=t.generateConfig,n=t.locale,a=t.format;return e?typeof a=="function"?a(e):r.locale.format(n.locale,e,a):""}function o1(e,t,r){var n=t,a=["getHour","getMinute","getSecond","getMillisecond"],i=["setHour","setMinute","setSecond","setMillisecond"];return i.forEach(function(o,s){r?n=e[o](n,e[a[s]](r)):n=e[o](n,0)}),n}function Hge(e,t,r,n,a){var i=qt(function(o,s){return!!(r&&r(o,s)||n&&e.isAfter(n,o)&&!ii(e,t,n,o,s.type)||a&&e.isAfter(o,a)&&!ii(e,t,a,o,s.type))});return i}function Wge(e,t,r){return d.useMemo(function(){var n=qW(e,t,r),a=Bd(n),i=a[0],o=bt(i)==="object"&&i.type==="mask"?i.format:null;return[a.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),o]},[e,t,r])}function Vge(e,t,r){return typeof e[0]=="function"||r?!0:t}function Uge(e,t,r,n){var a=qt(function(i,o){var s=ae({type:t},o);if(delete s.activeIndex,!e.isValidate(i)||r&&r(i,s))return!0;if((t==="date"||t==="time")&&n){var l,c=o&&o.activeIndex===1?"end":"start",u=((l=n.disabledTime)===null||l===void 0?void 0:l.call(n,i,c,{from:s.from}))||{},f=u.disabledHours,m=u.disabledMinutes,h=u.disabledSeconds,p=u.disabledMilliseconds,g=n.disabledHours,v=n.disabledMinutes,y=n.disabledSeconds,x=f||g,b=m||v,S=h||y,w=e.getHour(i),E=e.getMinute(i),C=e.getSecond(i),O=e.getMillisecond(i);if(x&&x().includes(w)||b&&b(w).includes(E)||S&&S(w,E).includes(C)||p&&p(w,E,C).includes(O))return!0}return!1});return a}function Xg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=d.useMemo(function(){var n=e&&Bd(e);return t&&n&&(n[1]=n[1]||n[0]),n},[e,t]);return r}function oV(e,t){var r=e.generateConfig,n=e.locale,a=e.picker,i=a===void 0?"date":a,o=e.prefixCls,s=o===void 0?"rc-picker":o,l=e.styles,c=l===void 0?{}:l,u=e.classNames,f=u===void 0?{}:u,m=e.order,h=m===void 0?!0:m,p=e.components,g=p===void 0?{}:p,v=e.inputRender,y=e.allowClear,x=e.clearIcon,b=e.needConfirm,S=e.multiple,w=e.format,E=e.inputReadOnly,C=e.disabledDate,O=e.minDate,_=e.maxDate,P=e.showTime,I=e.value,N=e.defaultValue,D=e.pickerValue,k=e.defaultPickerValue,R=Xg(I),A=Xg(N),j=Xg(D),F=Xg(k),M=i==="date"&&P?"datetime":i,V=M==="time"||M==="datetime",K=V||S,L=b??V,B=rV(e),W=me(B,4),z=W[0],U=W[1],X=W[2],Y=W[3],G=JW(n,U),Q=d.useMemo(function(){return nV(M,X,Y,z,G)},[M,X,Y,z,G]),ee=d.useMemo(function(){return ae(ae({},e),{},{prefixCls:s,locale:G,picker:i,styles:c,classNames:f,order:h,components:ae({input:v},g),clearIcon:Lge(s,y,x),showTime:Q,value:R,defaultValue:A,pickerValue:j,defaultPickerValue:F},t==null?void 0:t())},[e]),H=Wge(M,G,w),fe=me(H,2),te=fe[0],re=fe[1],q=Vge(te,E,S),ne=Hge(r,n,C,O,_),he=Uge(r,i,ne,Q),ye=d.useMemo(function(){return ae(ae({},ee),{},{needConfirm:L,inputReadOnly:q,disabledDate:ne})},[ee,L,q,ne]);return[ye,M,K,te,re,he]}function Kge(e,t,r){var n=br(t,{value:e}),a=me(n,2),i=a[0],o=a[1],s=ve.useRef(e),l=ve.useRef(),c=function(){Ut.cancel(l.current)},u=qt(function(){o(s.current),r&&i!==s.current&&r(s.current)}),f=qt(function(m,h){c(),s.current=m,m||h?u():l.current=Ut(u)});return ve.useEffect(function(){return c},[]),[i,f]}function sV(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=arguments.length>3?arguments[3]:void 0,a=r.every(function(u){return u})?!1:e,i=Kge(a,t||!1,n),o=me(i,2),s=o[0],l=o[1];function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||s)&&l(u,f.force)}return[s,c]}function lV(e){var t=d.useRef();return d.useImperativeHandle(e,function(){var r;return{nativeElement:(r=t.current)===null||r===void 0?void 0:r.nativeElement,focus:function(a){var i;(i=t.current)===null||i===void 0||i.focus(a)},blur:function(){var a;(a=t.current)===null||a===void 0||a.blur()}}}),t}function cV(e,t){return d.useMemo(function(){return e||(t?(Br(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(r){var n=me(r,2),a=n[0],i=n[1];return{label:a,value:i}})):[])},[e,t])}function PI(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,n=d.useRef(t);n.current=t,Yu(function(){if(e)n.current(e);else{var a=Ut(function(){n.current(e)},r);return function(){Ut.cancel(a)}}},[e])}function uV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=d.useState(0),a=me(n,2),i=a[0],o=a[1],s=d.useState(!1),l=me(s,2),c=l[0],u=l[1],f=d.useRef([]),m=d.useRef(null),h=d.useRef(null),p=function(S){m.current=S},g=function(S){return m.current===S},v=function(S){u(S)},y=function(S){return S&&(h.current=S),h.current},x=function(S){var w=f.current,E=new Set(w.filter(function(O){return S[O]||t[O]})),C=w[w.length-1]===0?1:0;return E.size>=2||e[C]?null:C};return PI(c||r,function(){c||(f.current=[],p(null))}),d.useEffect(function(){c&&f.current.push(i)},[c,i]),[c,v,y,i,o,x,f.current,p,g]}function Gge(e,t,r,n,a,i){var o=r[r.length-1],s=function(c,u){var f=me(e,2),m=f[0],h=f[1],p=ae(ae({},u),{},{from:XW(e,r)});return o===1&&t[0]&&m&&!ii(n,a,m,c,p.type)&&n.isAfter(m,c)||o===0&&t[1]&&h&&!ii(n,a,h,c,p.type)&&n.isAfter(c,h)?!0:i==null?void 0:i(c,p)};return s}function lh(e,t,r,n){switch(t){case"date":case"week":return e.addMonth(r,n);case"month":case"quarter":return e.addYear(r,n);case"year":return e.addYear(r,n*10);case"decade":return e.addYear(r,n*100);default:return r}}var O2=[];function dV(e,t,r,n,a,i,o,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:O2,c=arguments.length>9&&arguments[9]!==void 0?arguments[9]:O2,u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:O2,f=arguments.length>11?arguments[11]:void 0,m=arguments.length>12?arguments[12]:void 0,h=arguments.length>13?arguments[13]:void 0,p=o==="time",g=i||0,v=function(j){var F=e.getNow();return p&&(F=o1(e,F)),l[j]||r[j]||F},y=me(c,2),x=y[0],b=y[1],S=br(function(){return v(0)},{value:x}),w=me(S,2),E=w[0],C=w[1],O=br(function(){return v(1)},{value:b}),_=me(O,2),P=_[0],I=_[1],N=d.useMemo(function(){var A=[E,P][g];return p?A:o1(e,A,u[g])},[p,E,P,g,e,u]),D=function(j){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",M=[C,I][g];M(j);var V=[E,P];V[g]=j,f&&(!ii(e,t,E,V[0],o)||!ii(e,t,P,V[1],o))&&f(V,{source:F,range:g===1?"end":"start",mode:n})},k=function(j,F){if(s){var M={date:"month",week:"month",month:"year",quarter:"year"},V=M[o];if(V&&!ii(e,t,j,F,V))return lh(e,o,F,-1);if(o==="year"&&j){var K=Math.floor(e.getYear(j)/10),L=Math.floor(e.getYear(F)/10);if(K!==L)return lh(e,o,F,-1)}}return F},R=d.useRef(null);return Gt(function(){if(a&&!l[g]){var A=p?null:e.getNow();if(R.current!==null&&R.current!==g?A=[E,P][g^1]:r[g]?A=g===0?r[0]:k(r[0],r[1]):r[g^1]&&(A=r[g^1]),A){m&&e.isAfter(m,A)&&(A=m);var j=s?lh(e,o,A,1):A;h&&e.isAfter(j,h)&&(A=s?lh(e,o,h,-1):h),D(A,"reset")}}},[a,g,r[g]]),d.useEffect(function(){a?R.current=g:R.current=null},[a,g]),Gt(function(){a&&l&&l[g]&&D(l[g],"reset")},[a,g]),[N,D]}function fV(e,t){var r=d.useRef(e),n=d.useState({}),a=me(n,2),i=a[1],o=function(c){return c&&t!==void 0?t:r.current},s=function(c){r.current=c,i({})};return[o,s,o(!0)]}var qge=[];function mV(e,t,r){var n=function(o){return o.map(function(s){return ma(s,{generateConfig:e,locale:t,format:r[0]})})},a=function(o,s){for(var l=Math.max(o.length,s.length),c=-1,u=0;u2&&arguments[2]!==void 0?arguments[2]:1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,o=[],s=r>=1?r|0:1,l=e;l<=t;l+=s){var c=a.includes(l);(!c||!n)&&o.push({label:$I(l,i),value:l,disabled:c})}return o}function II(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=t||{},a=n.use12Hours,i=n.hourStep,o=i===void 0?1:i,s=n.minuteStep,l=s===void 0?1:s,c=n.secondStep,u=c===void 0?1:c,f=n.millisecondStep,m=f===void 0?100:f,h=n.hideDisabledOptions,p=n.disabledTime,g=n.disabledHours,v=n.disabledMinutes,y=n.disabledSeconds,x=d.useMemo(function(){return r||e.getNow()},[r,e]),b=d.useCallback(function(F){var M=(p==null?void 0:p(F))||{};return[M.disabledHours||g||Yg,M.disabledMinutes||v||Yg,M.disabledSeconds||y||Yg,M.disabledMilliseconds||Yg]},[p,g,v,y]),S=d.useMemo(function(){return b(x)},[x,b]),w=me(S,4),E=w[0],C=w[1],O=w[2],_=w[3],P=d.useCallback(function(F,M,V,K){var L=Qg(0,23,o,h,F()),B=a?L.map(function(X){return ae(ae({},X),{},{label:$I(X.value%12||12,2)})}):L,W=function(Y){return Qg(0,59,l,h,M(Y))},z=function(Y,G){return Qg(0,59,u,h,V(Y,G))},U=function(Y,G,Q){return Qg(0,999,m,h,K(Y,G,Q),3)};return[B,W,z,U]},[h,o,a,m,l,u]),I=d.useMemo(function(){return P(E,C,O,_)},[P,E,C,O,_]),N=me(I,4),D=N[0],k=N[1],R=N[2],A=N[3],j=function(M,V){var K=function(){return D},L=k,B=R,W=A;if(V){var z=b(V),U=me(z,4),X=U[0],Y=U[1],G=U[2],Q=U[3],ee=P(X,Y,G,Q),H=me(ee,4),fe=H[0],te=H[1],re=H[2],q=H[3];K=function(){return fe},L=te,B=re,W=q}var ne=Yge(M,K,L,B,W,e);return ne};return[j,D,k,R,A]}function Qge(e){var t=e.mode,r=e.internalMode,n=e.renderExtraFooter,a=e.showNow,i=e.showTime,o=e.onSubmit,s=e.onNow,l=e.invalid,c=e.needConfirm,u=e.generateConfig,f=e.disabledDate,m=d.useContext(Is),h=m.prefixCls,p=m.locale,g=m.button,v=g===void 0?"button":g,y=u.getNow(),x=II(u,i,y),b=me(x,1),S=b[0],w=n==null?void 0:n(t),E=f(y,{type:t}),C=function(){if(!E){var k=S(y);s(k)}},O="".concat(h,"-now"),_="".concat(O,"-btn"),P=a&&d.createElement("li",{className:O},d.createElement("a",{className:ce(_,E&&"".concat(_,"-disabled")),"aria-disabled":E,onClick:C},r==="date"?p.today:p.now)),I=c&&d.createElement("li",{className:"".concat(h,"-ok")},d.createElement(v,{disabled:l,onClick:o},p.ok)),N=(P||I)&&d.createElement("ul",{className:"".concat(h,"-ranges")},P,I);return!w&&!N?null:d.createElement("div",{className:"".concat(h,"-footer")},w&&d.createElement("div",{className:"".concat(h,"-footer-extra")},w),N)}function yV(e,t,r){function n(a,i){var o=a.findIndex(function(l){return ii(e,t,l,i,r)});if(o===-1)return[].concat(De(a),[i]);var s=De(a);return s.splice(o,1),s}return n}var zd=d.createContext(null);function PS(){return d.useContext(zd)}function rm(e,t){var r=e.prefixCls,n=e.generateConfig,a=e.locale,i=e.disabledDate,o=e.minDate,s=e.maxDate,l=e.cellRender,c=e.hoverValue,u=e.hoverRangeValue,f=e.onHover,m=e.values,h=e.pickerValue,p=e.onSelect,g=e.prevIcon,v=e.nextIcon,y=e.superPrevIcon,x=e.superNextIcon,b=n.getNow(),S={now:b,values:m,pickerValue:h,prefixCls:r,disabledDate:i,minDate:o,maxDate:s,cellRender:l,hoverValue:c,hoverRangeValue:u,onHover:f,locale:a,generateConfig:n,onSelect:p,panelType:t,prevIcon:g,nextIcon:v,superPrevIcon:y,superNextIcon:x};return[S,b]}var Dc=d.createContext({});function $v(e){for(var t=e.rowNum,r=e.colNum,n=e.baseDate,a=e.getCellDate,i=e.prefixColumn,o=e.rowClassName,s=e.titleFormat,l=e.getCellText,c=e.getCellClassName,u=e.headerCells,f=e.cellSelection,m=f===void 0?!0:f,h=e.disabledDate,p=PS(),g=p.prefixCls,v=p.panelType,y=p.now,x=p.disabledDate,b=p.cellRender,S=p.onHover,w=p.hoverValue,E=p.hoverRangeValue,C=p.generateConfig,O=p.values,_=p.locale,P=p.onSelect,I=h||x,N="".concat(g,"-cell"),D=d.useContext(Dc),k=D.onCellDblClick,R=function(B){return O.some(function(W){return W&&ii(C,_,B,W,v)})},A=[],j=0;j1&&arguments[1]!==void 0?arguments[1]:!1;Pe(Me),v==null||v(Me),ge&&$e(Me)},He=function(Me,ge){G(Me),ge&&Ee(ge),$e(ge,Me)},Fe=function(Me){if(he(Me),Ee(Me),Y!==S){var ge=["decade","year"],be=[].concat(ge,["month"]),Re={quarter:[].concat(ge,["quarter"]),week:[].concat(De(be),["week"]),date:[].concat(De(be),["date"])},We=Re[S]||be,at=We.indexOf(Y),yt=We[at+1];yt&&He(yt,Me)}},nt=d.useMemo(function(){var _e,Me;if(Array.isArray(C)){var ge=me(C,2);_e=ge[0],Me=ge[1]}else _e=C;return!_e&&!Me?null:(_e=_e||Me,Me=Me||_e,a.isAfter(_e,Me)?[Me,_e]:[_e,Me])},[C,a]),qe=_I(O,_,P),Ge=N[Q]||cye[Q]||IS,Le=d.useContext(Dc),Ne=d.useMemo(function(){return ae(ae({},Le),{},{hideHeader:D})},[Le,D]),Se="".concat(k,"-panel"),je=OS(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return d.createElement(Dc.Provider,{value:Ne},d.createElement("div",{ref:R,tabIndex:l,className:ce(Se,J({},"".concat(Se,"-rtl"),i==="rtl"))},d.createElement(Ge,Oe({},je,{showTime:W,prefixCls:k,locale:L,generateConfig:a,onModeChange:He,pickerValue:pe,onPickerValueChange:function(Me){Ee(Me,!0)},value:q[0],onSelect:Fe,values:q,cellRender:qe,hoverRangeValue:nt,hoverValue:E}))))}var T2=d.memo(d.forwardRef(uye));function dye(e){var t=e.picker,r=e.multiplePanel,n=e.pickerValue,a=e.onPickerValueChange,i=e.needConfirm,o=e.onSubmit,s=e.range,l=e.hoverValue,c=d.useContext(Is),u=c.prefixCls,f=c.generateConfig,m=d.useCallback(function(x,b){return lh(f,t,x,b)},[f,t]),h=d.useMemo(function(){return m(n,1)},[n,m]),p=function(b){a(m(b,-1))},g={onCellDblClick:function(){i&&o()}},v=t==="time",y=ae(ae({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:v});return s?y.hoverRangeValue=l:y.hoverValue=l,r?d.createElement("div",{className:"".concat(u,"-panels")},d.createElement(Dc.Provider,{value:ae(ae({},g),{},{hideNext:!0})},d.createElement(T2,y)),d.createElement(Dc.Provider,{value:ae(ae({},g),{},{hidePrev:!0})},d.createElement(T2,Oe({},y,{pickerValue:h,onPickerValueChange:p})))):d.createElement(Dc.Provider,{value:ae({},g)},d.createElement(T2,y))}function oD(e){return typeof e=="function"?e():e}function fye(e){var t=e.prefixCls,r=e.presets,n=e.onClick,a=e.onHover;return r.length?d.createElement("div",{className:"".concat(t,"-presets")},d.createElement("ul",null,r.map(function(i,o){var s=i.label,l=i.value;return d.createElement("li",{key:o,onClick:function(){n(oD(l))},onMouseEnter:function(){a(oD(l))},onMouseLeave:function(){a(null)}},s)}))):null}function bV(e){var t=e.panelRender,r=e.internalMode,n=e.picker,a=e.showNow,i=e.range,o=e.multiple,s=e.activeInfo,l=s===void 0?[0,0,0]:s,c=e.presets,u=e.onPresetHover,f=e.onPresetSubmit,m=e.onFocus,h=e.onBlur,p=e.onPanelMouseDown,g=e.direction,v=e.value,y=e.onSelect,x=e.isInvalid,b=e.defaultOpenValue,S=e.onOk,w=e.onSubmit,E=d.useContext(Is),C=E.prefixCls,O="".concat(C,"-panel"),_=g==="rtl",P=d.useRef(null),I=d.useRef(null),N=d.useState(0),D=me(N,2),k=D[0],R=D[1],A=d.useState(0),j=me(A,2),F=j[0],M=j[1],V=d.useState(0),K=me(V,2),L=K[0],B=K[1],W=function(Fe){Fe.width&&R(Fe.width)},z=me(l,3),U=z[0],X=z[1],Y=z[2],G=d.useState(0),Q=me(G,2),ee=Q[0],H=Q[1];d.useEffect(function(){H(10)},[U]),d.useEffect(function(){if(i&&I.current){var He,Fe=((He=P.current)===null||He===void 0?void 0:He.offsetWidth)||0,nt=I.current.getBoundingClientRect();if(!nt.height||nt.right<0){H(function(Ne){return Math.max(0,Ne-1)});return}var qe=(_?X-Fe:U)-nt.left;if(B(qe),k&&k=s&&r<=l)return i;var c=Math.min(Math.abs(r-s),Math.abs(r-l));c0?Mt:Ft));var rt=xt+ft,Ye=Ft-Mt+1;return String(Mt+(Ye+rt-Mt)%Ye)};switch(Me){case"Backspace":case"Delete":ge="",be=We;break;case"ArrowLeft":ge="",at(-1);break;case"ArrowRight":ge="",at(1);break;case"ArrowUp":ge="",be=yt(1);break;case"ArrowDown":ge="",be=yt(-1);break;default:isNaN(Number(Me))||(ge=K+Me,be=ge);break}if(ge!==null&&(L(ge),ge.length>=Re&&(at(1),L(""))),be!==null){var tt=ee.slice(0,ne)+$I(be,Re)+ee.slice(he);xe(tt.slice(0,o.length))}Q({})},Ne=d.useRef();Gt(function(){if(!(!D||!o||$e.current)){if(!te.match(ee)){xe(o);return}return fe.current.setSelectionRange(ne,he),Ne.current=Ut(function(){fe.current.setSelectionRange(ne,he)}),function(){Ut.cancel(Ne.current)}}},[te,o,D,ee,z,ne,he,G,xe]);var Se=o?{onFocus:Fe,onBlur:qe,onKeyDown:Le,onMouseDown:Ee,onMouseUp:He,onPaste:Pe}:{};return d.createElement("div",{ref:H,className:ce(P,J(J({},"".concat(P,"-active"),r&&a),"".concat(P,"-placeholder"),c))},d.createElement(_,Oe({ref:fe,"aria-invalid":g,autoComplete:"off"},y,{onKeyDown:Ge,onBlur:nt},Se,{value:ee,onChange:pe})),d.createElement(NS,{type:"suffix",icon:i}),v)}),xye=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],bye=["index"];function Sye(e,t){var r=e.id,n=e.prefix,a=e.clearIcon,i=e.suffixIcon,o=e.separator,s=o===void 0?"~":o,l=e.activeIndex;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var u=e.placeholder,f=e.className,m=e.style,h=e.onClick,p=e.onClear,g=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var v=e.disabled,y=e.invalid;e.inputReadOnly;var x=e.direction;e.onOpenChange;var b=e.onActiveInfo;e.placement;var S=e.onMouseDown;e.required,e["aria-required"];var w=e.autoFocus,E=e.tabIndex,C=Rt(e,xye),O=x==="rtl",_=d.useContext(Is),P=_.prefixCls,I=d.useMemo(function(){if(typeof r=="string")return[r];var G=r||{};return[G.start,G.end]},[r]),N=d.useRef(),D=d.useRef(),k=d.useRef(),R=function(Q){var ee;return(ee=[D,k][Q])===null||ee===void 0?void 0:ee.current};d.useImperativeHandle(t,function(){return{nativeElement:N.current,focus:function(Q){if(bt(Q)==="object"){var ee,H=Q||{},fe=H.index,te=fe===void 0?0:fe,re=Rt(H,bye);(ee=R(te))===null||ee===void 0||ee.focus(re)}else{var q;(q=R(Q??0))===null||q===void 0||q.focus()}},blur:function(){var Q,ee;(Q=R(0))===null||Q===void 0||Q.blur(),(ee=R(1))===null||ee===void 0||ee.blur()}}});var A=wV(C),j=d.useMemo(function(){return Array.isArray(u)?u:[u,u]},[u]),F=SV(ae(ae({},e),{},{id:I,placeholder:j})),M=me(F,1),V=M[0],K=d.useState({position:"absolute",width:0}),L=me(K,2),B=L[0],W=L[1],z=qt(function(){var G=R(l);if(G){var Q=G.nativeElement.getBoundingClientRect(),ee=N.current.getBoundingClientRect(),H=Q.left-ee.left;W(function(fe){return ae(ae({},fe),{},{width:Q.width,left:H})}),b([Q.left,Q.right,ee.width])}});d.useEffect(function(){z()},[l]);var U=a&&(g[0]&&!v[0]||g[1]&&!v[1]),X=w&&!v[0],Y=w&&!X&&!v[1];return d.createElement(Ra,{onResize:z},d.createElement("div",Oe({},A,{className:ce(P,"".concat(P,"-range"),J(J(J(J({},"".concat(P,"-focused"),c),"".concat(P,"-disabled"),v.every(function(G){return G})),"".concat(P,"-invalid"),y.some(function(G){return G})),"".concat(P,"-rtl"),O),f),style:m,ref:N,onClick:h,onMouseDown:function(Q){var ee=Q.target;ee!==D.current.inputElement&&ee!==k.current.inputElement&&Q.preventDefault(),S==null||S(Q)}}),n&&d.createElement("div",{className:"".concat(P,"-prefix")},n),d.createElement(eO,Oe({ref:D},V(0),{autoFocus:X,tabIndex:E,"date-range":"start"})),d.createElement("div",{className:"".concat(P,"-range-separator")},s),d.createElement(eO,Oe({ref:k},V(1),{autoFocus:Y,tabIndex:E,"date-range":"end"})),d.createElement("div",{className:"".concat(P,"-active-bar"),style:B}),d.createElement(NS,{type:"suffix",icon:i}),U&&d.createElement(J_,{icon:a,onClear:p})))}var wye=d.forwardRef(Sye);function lD(e,t){var r=e??t;return Array.isArray(r)?r:[r,r]}function Jg(e){return e===1?"end":"start"}function Cye(e,t){var r=oV(e,function(){var Jt=e.disabled,dt=e.allowEmpty,$t=lD(Jt,!1),tr=lD(dt,!1);return{disabled:$t,allowEmpty:tr}}),n=me(r,6),a=n[0],i=n[1],o=n[2],s=n[3],l=n[4],c=n[5],u=a.prefixCls,f=a.styles,m=a.classNames,h=a.defaultValue,p=a.value,g=a.needConfirm,v=a.onKeyDown,y=a.disabled,x=a.allowEmpty,b=a.disabledDate,S=a.minDate,w=a.maxDate,E=a.defaultOpen,C=a.open,O=a.onOpenChange,_=a.locale,P=a.generateConfig,I=a.picker,N=a.showNow,D=a.showToday,k=a.showTime,R=a.mode,A=a.onPanelChange,j=a.onCalendarChange,F=a.onOk,M=a.defaultPickerValue,V=a.pickerValue,K=a.onPickerValueChange,L=a.inputReadOnly,B=a.suffixIcon,W=a.onFocus,z=a.onBlur,U=a.presets,X=a.ranges,Y=a.components,G=a.cellRender,Q=a.dateRender,ee=a.monthCellRender,H=a.onClick,fe=lV(t),te=sV(C,E,y,O),re=me(te,2),q=re[0],ne=re[1],he=function(dt,$t){(y.some(function(tr){return!tr})||!dt)&&ne(dt,$t)},ye=pV(P,_,s,!0,!1,h,p,j,F),xe=me(ye,5),pe=xe[0],Pe=xe[1],$e=xe[2],Ee=xe[3],He=xe[4],Fe=$e(),nt=uV(y,x,q),qe=me(nt,9),Ge=qe[0],Le=qe[1],Ne=qe[2],Se=qe[3],je=qe[4],_e=qe[5],Me=qe[6],ge=qe[7],be=qe[8],Re=function(dt,$t){Le(!0),W==null||W(dt,{range:Jg($t??Se)})},We=function(dt,$t){Le(!1),z==null||z(dt,{range:Jg($t??Se)})},at=d.useMemo(function(){if(!k)return null;var Jt=k.disabledTime,dt=Jt?function($t){var tr=Jg(Se),Sr=XW(Fe,Me,Se);return Jt($t,tr,{from:Sr})}:void 0;return ae(ae({},k),{},{disabledTime:dt})},[k,Se,Fe,Me]),yt=br([I,I],{value:R}),tt=me(yt,2),it=tt[0],ft=tt[1],lt=it[Se]||I,mt=lt==="date"&&at?"datetime":lt,Mt=mt===I&&mt!=="time",Ft=gV(I,lt,N,D,!0),ht=vV(a,pe,Pe,$e,Ee,y,s,Ge,q,c),St=me(ht,2),xt=St[0],rt=St[1],Ye=Gge(Fe,y,Me,P,_,b),Ze=QW(Fe,c,x),ct=me(Ze,2),Z=ct[0],ue=ct[1],se=dV(P,_,Fe,it,q,Se,i,Mt,M,V,at==null?void 0:at.defaultOpenValue,K,S,w),ie=me(se,2),oe=ie[0],de=ie[1],we=qt(function(Jt,dt,$t){var tr=Th(it,Se,dt);if((tr[0]!==it[0]||tr[1]!==it[1])&&ft(tr),A&&$t!==!1){var Sr=De(Fe);Jt&&(Sr[Se]=Jt),A(Sr,tr)}}),Ae=function(dt,$t){return Th(Fe,$t,dt)},Ce=function(dt,$t){var tr=Fe;dt&&(tr=Ae(dt,Se)),ge(Se);var Sr=_e(tr);Ee(tr),xt(Se,Sr===null),Sr===null?he(!1,{force:!0}):$t||fe.current.focus({index:Sr})},Ie=function(dt){var $t,tr=dt.target.getRootNode();if(!fe.current.nativeElement.contains(($t=tr.activeElement)!==null&&$t!==void 0?$t:document.activeElement)){var Sr=y.findIndex(function(nn){return!nn});Sr>=0&&fe.current.focus({index:Sr})}he(!0),H==null||H(dt)},Te=function(){rt(null),he(!1,{force:!0})},Xe=d.useState(null),ke=me(Xe,2),Be=ke[0],ze=ke[1],Ve=d.useState(null),et=me(Ve,2),ot=et[0],wt=et[1],Lt=d.useMemo(function(){return ot||Fe},[Fe,ot]);d.useEffect(function(){q||wt(null)},[q]);var pt=d.useState([0,0,0]),Ot=me(pt,2),zt=Ot[0],pr=Ot[1],Ir=cV(U,X),Pr=function(dt){wt(dt),ze("preset")},Pn=function(dt){var $t=rt(dt);$t&&he(!1,{force:!0})},dn=function(dt){Ce(dt)},Bn=function(dt){wt(dt?Ae(dt,Se):null),ze("cell")},zn=function(dt){he(!0),Re(dt)},sa=function(){Ne("panel")},Hn=function(dt){var $t=Th(Fe,Se,dt);Ee($t),!g&&!o&&i===mt&&Ce(dt)},mr=function(){he(!1)},It=_I(G,Q,ee,Jg(Se)),Pt=Fe[Se]||null,cr=qt(function(Jt){return c(Jt,{activeIndex:Se})}),_t=d.useMemo(function(){var Jt=Dn(a,!1),dt=Er(a,[].concat(De(Object.keys(Jt)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return dt},[a]),Tt=d.createElement(bV,Oe({},_t,{showNow:Ft,showTime:at,range:!0,multiplePanel:Mt,activeInfo:zt,disabledDate:Ye,onFocus:zn,onBlur:We,onPanelMouseDown:sa,picker:I,mode:lt,internalMode:mt,onPanelChange:we,format:l,value:Pt,isInvalid:cr,onChange:null,onSelect:Hn,pickerValue:oe,defaultOpenValue:Bd(k==null?void 0:k.defaultOpenValue)[Se],onPickerValueChange:de,hoverValue:Lt,onHover:Bn,needConfirm:g,onSubmit:Ce,onOk:He,presets:Ir,onPresetHover:Pr,onPresetSubmit:Pn,onNow:dn,cellRender:It})),nr=function(dt,$t){var tr=Ae(dt,$t);Ee(tr)},Nr=function(){Ne("input")},Kr=function(dt,$t){var tr=Me.length,Sr=Me[tr-1];if(tr&&Sr!==$t&&g&&!x[Sr]&&!be(Sr)&&Fe[Sr]){fe.current.focus({index:Sr});return}Ne("input"),he(!0,{inherit:!0}),Se!==$t&&q&&!g&&o&&Ce(null,!0),je($t),Re(dt,$t)},Wn=function(dt,$t){if(he(!1),!g&&Ne()==="input"){var tr=_e(Fe);xt(Se,tr===null)}We(dt,$t)},yn=function(dt,$t){dt.key==="Tab"&&Ce(null,!0),v==null||v(dt,$t)},Vn=d.useMemo(function(){return{prefixCls:u,locale:_,generateConfig:P,button:Y.button,input:Y.input}},[u,_,P,Y.button,Y.input]);return Gt(function(){q&&Se!==void 0&&we(null,I,!1)},[q,Se,I]),Gt(function(){var Jt=Ne();!q&&Jt==="input"&&(he(!1),Ce(null,!0)),!q&&o&&!g&&Jt==="panel"&&(he(!0),Ce())},[q]),d.createElement(Is.Provider,{value:Vn},d.createElement(GW,Oe({},YW(a),{popupElement:Tt,popupStyle:f.popup,popupClassName:m.popup,visible:q,onClose:mr,range:!0}),d.createElement(wye,Oe({},a,{ref:fe,suffixIcon:B,activeIndex:Ge||q?Se:null,activeHelp:!!ot,allHelp:!!ot&&Be==="preset",focused:Ge,onFocus:Kr,onBlur:Wn,onKeyDown:yn,onSubmit:Ce,value:Lt,maskFormat:l,onChange:nr,onInputChange:Nr,format:s,inputReadOnly:L,disabled:y,open:q,onOpenChange:he,onClick:Ie,onClear:Te,invalid:Z,onInvalid:ue,onActiveInfo:pr}))))}var Eye=d.forwardRef(Cye);function $ye(e){var t=e.prefixCls,r=e.value,n=e.onRemove,a=e.removeIcon,i=a===void 0?"×":a,o=e.formatDate,s=e.disabled,l=e.maxTagCount,c=e.placeholder,u="".concat(t,"-selector"),f="".concat(t,"-selection"),m="".concat(f,"-overflow");function h(v,y){return d.createElement("span",{className:ce("".concat(f,"-item")),title:typeof v=="string"?v:null},d.createElement("span",{className:"".concat(f,"-item-content")},v),!s&&y&&d.createElement("span",{onMouseDown:function(b){b.preventDefault()},onClick:y,className:"".concat(f,"-item-remove")},i))}function p(v){var y=o(v),x=function(S){S&&S.stopPropagation(),n(v)};return h(y,x)}function g(v){var y="+ ".concat(v.length," ...");return h(y)}return d.createElement("div",{className:u},d.createElement(bs,{prefixCls:m,data:r,renderItem:p,renderRest:g,itemKey:function(y){return o(y)},maxCount:l}),!r.length&&d.createElement("span",{className:"".concat(t,"-selection-placeholder")},c))}var _ye=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function Oye(e,t){e.id;var r=e.open,n=e.prefix,a=e.clearIcon,i=e.suffixIcon;e.activeHelp,e.allHelp;var o=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var s=e.locale,l=e.generateConfig,c=e.placeholder,u=e.className,f=e.style,m=e.onClick,h=e.onClear,p=e.internalPicker,g=e.value,v=e.onChange,y=e.onSubmit;e.onInputChange;var x=e.multiple,b=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var S=e.disabled,w=e.invalid;e.inputReadOnly;var E=e.direction;e.onOpenChange;var C=e.onMouseDown;e.required,e["aria-required"];var O=e.autoFocus,_=e.tabIndex,P=e.removeIcon,I=Rt(e,_ye),N=E==="rtl",D=d.useContext(Is),k=D.prefixCls,R=d.useRef(),A=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:R.current,focus:function(X){var Y;(Y=A.current)===null||Y===void 0||Y.focus(X)},blur:function(){var X;(X=A.current)===null||X===void 0||X.blur()}}});var j=wV(I),F=function(X){v([X])},M=function(X){var Y=g.filter(function(G){return G&&!ii(l,s,G,X,p)});v(Y),r||y()},V=SV(ae(ae({},e),{},{onChange:F}),function(U){var X=U.valueTexts;return{value:X[0]||"",active:o}}),K=me(V,2),L=K[0],B=K[1],W=!!(a&&g.length&&!S),z=x?d.createElement(d.Fragment,null,d.createElement($ye,{prefixCls:k,value:g,onRemove:M,formatDate:B,maxTagCount:b,disabled:S,removeIcon:P,placeholder:c}),d.createElement("input",{className:"".concat(k,"-multiple-input"),value:g.map(B).join(","),ref:A,readOnly:!0,autoFocus:O,tabIndex:_}),d.createElement(NS,{type:"suffix",icon:i}),W&&d.createElement(J_,{icon:a,onClear:h})):d.createElement(eO,Oe({ref:A},L(),{autoFocus:O,tabIndex:_,suffixIcon:i,clearIcon:W&&d.createElement(J_,{icon:a,onClear:h}),showActiveCls:!1}));return d.createElement("div",Oe({},j,{className:ce(k,J(J(J(J(J({},"".concat(k,"-multiple"),x),"".concat(k,"-focused"),o),"".concat(k,"-disabled"),S),"".concat(k,"-invalid"),w),"".concat(k,"-rtl"),N),u),style:f,ref:R,onClick:m,onMouseDown:function(X){var Y,G=X.target;G!==((Y=A.current)===null||Y===void 0?void 0:Y.inputElement)&&X.preventDefault(),C==null||C(X)}}),n&&d.createElement("div",{className:"".concat(k,"-prefix")},n),z)}var Tye=d.forwardRef(Oye);function Pye(e,t){var r=oV(e),n=me(r,6),a=n[0],i=n[1],o=n[2],s=n[3],l=n[4],c=n[5],u=a,f=u.prefixCls,m=u.styles,h=u.classNames,p=u.order,g=u.defaultValue,v=u.value,y=u.needConfirm,x=u.onChange,b=u.onKeyDown,S=u.disabled,w=u.disabledDate,E=u.minDate,C=u.maxDate,O=u.defaultOpen,_=u.open,P=u.onOpenChange,I=u.locale,N=u.generateConfig,D=u.picker,k=u.showNow,R=u.showToday,A=u.showTime,j=u.mode,F=u.onPanelChange,M=u.onCalendarChange,V=u.onOk,K=u.multiple,L=u.defaultPickerValue,B=u.pickerValue,W=u.onPickerValueChange,z=u.inputReadOnly,U=u.suffixIcon,X=u.removeIcon,Y=u.onFocus,G=u.onBlur,Q=u.presets,ee=u.components,H=u.cellRender,fe=u.dateRender,te=u.monthCellRender,re=u.onClick,q=lV(t);function ne(_t){return _t===null?null:K?_t:_t[0]}var he=yV(N,I,i),ye=sV(_,O,[S],P),xe=me(ye,2),pe=xe[0],Pe=xe[1],$e=function(Tt,nr,Nr){if(M){var Kr=ae({},Nr);delete Kr.range,M(ne(Tt),ne(nr),Kr)}},Ee=function(Tt){V==null||V(ne(Tt))},He=pV(N,I,s,!1,p,g,v,$e,Ee),Fe=me(He,5),nt=Fe[0],qe=Fe[1],Ge=Fe[2],Le=Fe[3],Ne=Fe[4],Se=Ge(),je=uV([S]),_e=me(je,4),Me=_e[0],ge=_e[1],be=_e[2],Re=_e[3],We=function(Tt){ge(!0),Y==null||Y(Tt,{})},at=function(Tt){ge(!1),G==null||G(Tt,{})},yt=br(D,{value:j}),tt=me(yt,2),it=tt[0],ft=tt[1],lt=it==="date"&&A?"datetime":it,mt=gV(D,it,k,R),Mt=x&&function(_t,Tt){x(ne(_t),ne(Tt))},Ft=vV(ae(ae({},a),{},{onChange:Mt}),nt,qe,Ge,Le,[],s,Me,pe,c),ht=me(Ft,2),St=ht[1],xt=QW(Se,c),rt=me(xt,2),Ye=rt[0],Ze=rt[1],ct=d.useMemo(function(){return Ye.some(function(_t){return _t})},[Ye]),Z=function(Tt,nr){if(W){var Nr=ae(ae({},nr),{},{mode:nr.mode[0]});delete Nr.range,W(Tt[0],Nr)}},ue=dV(N,I,Se,[it],pe,Re,i,!1,L,B,Bd(A==null?void 0:A.defaultOpenValue),Z,E,C),se=me(ue,2),ie=se[0],oe=se[1],de=qt(function(_t,Tt,nr){if(ft(Tt),F&&nr!==!1){var Nr=_t||Se[Se.length-1];F(Nr,Tt)}}),we=function(){St(Ge()),Pe(!1,{force:!0})},Ae=function(Tt){!S&&!q.current.nativeElement.contains(document.activeElement)&&q.current.focus(),Pe(!0),re==null||re(Tt)},Ce=function(){St(null),Pe(!1,{force:!0})},Ie=d.useState(null),Te=me(Ie,2),Xe=Te[0],ke=Te[1],Be=d.useState(null),ze=me(Be,2),Ve=ze[0],et=ze[1],ot=d.useMemo(function(){var _t=[Ve].concat(De(Se)).filter(function(Tt){return Tt});return K?_t:_t.slice(0,1)},[Se,Ve,K]),wt=d.useMemo(function(){return!K&&Ve?[Ve]:Se.filter(function(_t){return _t})},[Se,Ve,K]);d.useEffect(function(){pe||et(null)},[pe]);var Lt=cV(Q),pt=function(Tt){et(Tt),ke("preset")},Ot=function(Tt){var nr=K?he(Ge(),Tt):[Tt],Nr=St(nr);Nr&&!K&&Pe(!1,{force:!0})},zt=function(Tt){Ot(Tt)},pr=function(Tt){et(Tt),ke("cell")},Ir=function(Tt){Pe(!0),We(Tt)},Pr=function(Tt){if(be("panel"),!(K&<!==D)){var nr=K?he(Ge(),Tt):[Tt];Le(nr),!y&&!o&&i===lt&&we()}},Pn=function(){Pe(!1)},dn=_I(H,fe,te),Bn=d.useMemo(function(){var _t=Dn(a,!1),Tt=Er(a,[].concat(De(Object.keys(_t)),["onChange","onCalendarChange","style","className","onPanelChange"]));return ae(ae({},Tt),{},{multiple:a.multiple})},[a]),zn=d.createElement(bV,Oe({},Bn,{showNow:mt,showTime:A,disabledDate:w,onFocus:Ir,onBlur:at,picker:D,mode:it,internalMode:lt,onPanelChange:de,format:l,value:Se,isInvalid:c,onChange:null,onSelect:Pr,pickerValue:ie,defaultOpenValue:A==null?void 0:A.defaultOpenValue,onPickerValueChange:oe,hoverValue:ot,onHover:pr,needConfirm:y,onSubmit:we,onOk:Ne,presets:Lt,onPresetHover:pt,onPresetSubmit:Ot,onNow:zt,cellRender:dn})),sa=function(Tt){Le(Tt)},Hn=function(){be("input")},mr=function(Tt){be("input"),Pe(!0,{inherit:!0}),We(Tt)},It=function(Tt){Pe(!1),at(Tt)},Pt=function(Tt,nr){Tt.key==="Tab"&&we(),b==null||b(Tt,nr)},cr=d.useMemo(function(){return{prefixCls:f,locale:I,generateConfig:N,button:ee.button,input:ee.input}},[f,I,N,ee.button,ee.input]);return Gt(function(){pe&&Re!==void 0&&de(null,D,!1)},[pe,Re,D]),Gt(function(){var _t=be();!pe&&_t==="input"&&(Pe(!1),we()),!pe&&o&&!y&&_t==="panel"&&we()},[pe]),d.createElement(Is.Provider,{value:cr},d.createElement(GW,Oe({},YW(a),{popupElement:zn,popupStyle:m.popup,popupClassName:h.popup,visible:pe,onClose:Pn}),d.createElement(Tye,Oe({},a,{ref:q,suffixIcon:U,removeIcon:X,activeHelp:!!Ve,allHelp:!!Ve&&Xe==="preset",focused:Me,onFocus:mr,onBlur:It,onKeyDown:Pt,onSubmit:we,value:wt,maskFormat:l,onChange:sa,onInputChange:Hn,internalPicker:i,format:s,inputReadOnly:z,disabled:S,open:pe,onOpenChange:Pe,onClick:Ae,onClear:Ce,invalid:ct,onInvalid:function(Tt){Ze(Tt,0)}}))))}var Iye=d.forwardRef(Pye);const CV=d.createContext(null),Nye=CV.Provider,EV=d.createContext(null),kye=EV.Provider;var Rye=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],$V=d.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-checkbox":r,a=e.className,i=e.style,o=e.checked,s=e.disabled,l=e.defaultChecked,c=l===void 0?!1:l,u=e.type,f=u===void 0?"checkbox":u,m=e.title,h=e.onChange,p=Rt(e,Rye),g=d.useRef(null),v=d.useRef(null),y=br(c,{value:o}),x=me(y,2),b=x[0],S=x[1];d.useImperativeHandle(t,function(){return{focus:function(O){var _;(_=g.current)===null||_===void 0||_.focus(O)},blur:function(){var O;(O=g.current)===null||O===void 0||O.blur()},input:g.current,nativeElement:v.current}});var w=ce(n,a,J(J({},"".concat(n,"-checked"),b),"".concat(n,"-disabled"),s)),E=function(O){s||("checked"in e||S(O.target.checked),h==null||h({target:ae(ae({},e),{},{type:f,checked:O.target.checked}),stopPropagation:function(){O.stopPropagation()},preventDefault:function(){O.preventDefault()},nativeEvent:O.nativeEvent}))};return d.createElement("span",{className:w,title:m,style:i,ref:v},d.createElement("input",Oe({},p,{className:"".concat(n,"-input"),ref:g,onChange:E,disabled:s,checked:!!b,type:f})),d.createElement("span",{className:"".concat(n,"-inner")}))});function _V(e){const t=ve.useRef(null),r=()=>{Ut.cancel(t.current),t.current=null};return[()=>{r(),t.current=Ut(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),r()),e==null||e(i)}]}const Aye=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-group`;return{[n]:Object.assign(Object.assign({},dr(e)),{display:"inline-block",fontSize:0,[`&${n}-rtl`]:{direction:"rtl"},[`&${n}-block`]:{display:"flex"},[`${r}-badge ${r}-badge-count`]:{zIndex:1},[`> ${r}-badge:not(:first-child) > ${r}-button-wrapper`]:{borderInlineStart:"none"}})}},Mye=e=>{const{componentCls:t,wrapperMarginInlineEnd:r,colorPrimary:n,radioSize:a,motionDurationSlow:i,motionDurationMid:o,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:c,lineWidth:u,colorBgContainerDisabled:f,colorTextDisabled:m,paddingXS:h,dotColorDisabled:p,lineType:g,radioColor:v,radioBgColor:y,calc:x}=e,b=`${t}-inner`,S=4,w=x(a).sub(x(S).mul(2)),E=x(1).mul(a).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},dr(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${le(u)} ${g} ${n}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},dr(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &, - &:hover ${b}`]:{borderColor:n},[`${t}-input:focus-visible + ${b}`]:nl(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:E,height:E,marginBlockStart:x(1).mul(a).div(-2).equal({unit:!0}),marginInlineStart:x(1).mul(a).div(-2).equal({unit:!0}),backgroundColor:v,borderBlockStart:0,borderInlineStart:0,borderRadius:E,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:E,height:E,backgroundColor:l,borderColor:c,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${o}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[b]:{borderColor:n,backgroundColor:y,"&::after":{transform:`scale(${e.calc(e.dotSize).div(a).equal()})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[b]:{backgroundColor:f,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:p}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[b]:{"&::after":{transform:`scale(${x(w).div(a).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},Dye=e=>{const{buttonColor:t,controlHeight:r,componentCls:n,lineWidth:a,lineType:i,colorBorder:o,motionDurationMid:s,buttonPaddingInline:l,fontSize:c,buttonBg:u,fontSizeLG:f,controlHeightLG:m,controlHeightSM:h,paddingXS:p,borderRadius:g,borderRadiusSM:v,borderRadiusLG:y,buttonCheckedBg:x,buttonSolidCheckedColor:b,colorTextDisabled:S,colorBgContainerDisabled:w,buttonCheckedBgDisabled:E,buttonCheckedColorDisabled:C,colorPrimary:O,colorPrimaryHover:_,colorPrimaryActive:P,buttonSolidCheckedBg:I,buttonSolidCheckedHoverBg:N,buttonSolidCheckedActiveBg:D,calc:k}=e;return{[`${n}-button-wrapper`]:{position:"relative",display:"inline-block",height:r,margin:0,paddingInline:l,paddingBlock:0,color:t,fontSize:c,lineHeight:le(k(r).sub(k(a).mul(2)).equal()),background:u,border:`${le(a)} ${i} ${o}`,borderBlockStartWidth:k(a).add(.02).equal(),borderInlineEndWidth:a,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${n}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:k(a).mul(-1).equal()},"&:first-child":{borderInlineStart:`${le(a)} ${i} ${o}`,borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g},"&:first-child:last-child":{borderRadius:g},[`${n}-group-large &`]:{height:m,fontSize:f,lineHeight:le(k(m).sub(k(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${n}-group-small &`]:{height:h,paddingInline:k(p).sub(a).equal(),paddingBlock:0,lineHeight:le(k(h).sub(k(a).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:O},"&:has(:focus-visible)":nl(e),[`${n}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${n}-button-wrapper-disabled)`]:{zIndex:1,color:O,background:x,borderColor:O,"&::before":{backgroundColor:O},"&:first-child":{borderColor:O},"&:hover":{color:_,borderColor:_,"&::before":{backgroundColor:_}},"&:active":{color:P,borderColor:P,"&::before":{backgroundColor:P}}},[`${n}-group-solid &-checked:not(${n}-button-wrapper-disabled)`]:{color:b,background:I,borderColor:I,"&:hover":{color:b,background:N,borderColor:N},"&:active":{color:b,background:D,borderColor:D}},"&-disabled":{color:S,backgroundColor:w,borderColor:o,cursor:"not-allowed","&:first-child, &:hover":{color:S,backgroundColor:w,borderColor:o}},[`&-disabled${n}-button-wrapper-checked`]:{color:C,backgroundColor:E,borderColor:o,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},jye=e=>{const{wireframe:t,padding:r,marginXS:n,lineWidth:a,fontSizeLG:i,colorText:o,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:c,colorTextLightSolid:u,colorPrimary:f,colorPrimaryHover:m,colorPrimaryActive:h,colorWhite:p}=e,g=4,v=i,y=t?v-g*2:v-(g+a)*2;return{radioSize:v,dotSize:y,dotColorDisabled:l,buttonSolidCheckedColor:u,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:h,buttonBg:s,buttonCheckedBg:s,buttonColor:o,buttonCheckedBgDisabled:c,buttonCheckedColorDisabled:l,buttonPaddingInline:r-a,wrapperMarginInlineEnd:n,radioColor:t?f:p,radioBgColor:t?s:f}},OV=lr("Radio",e=>{const{controlOutline:t,controlOutlineWidth:r}=e,n=`0 0 0 ${le(r)} ${t}`,i=Zt(e,{radioFocusShadow:n,radioButtonFocusShadow:n});return[Aye(i),Mye(i),Dye(i)]},jye,{unitless:{radioSize:!0,dotSize:!0}});var Fye=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var r,n;const a=d.useContext(CV),i=d.useContext(EV),{getPrefixCls:o,direction:s,radio:l}=d.useContext(Nt),c=d.useRef(null),u=xa(t,c),{isFormItemInput:f}=d.useContext(ga),m=A=>{var j,F;(j=e.onChange)===null||j===void 0||j.call(e,A),(F=a==null?void 0:a.onChange)===null||F===void 0||F.call(a,A)},{prefixCls:h,className:p,rootClassName:g,children:v,style:y,title:x}=e,b=Fye(e,["prefixCls","className","rootClassName","children","style","title"]),S=o("radio",h),w=((a==null?void 0:a.optionType)||i)==="button",E=w?`${S}-button`:S,C=vn(S),[O,_,P]=OV(S,C),I=Object.assign({},b),N=d.useContext(Wi);a&&(I.name=a.name,I.onChange=m,I.checked=e.value===a.value,I.disabled=(r=I.disabled)!==null&&r!==void 0?r:a.disabled),I.disabled=(n=I.disabled)!==null&&n!==void 0?n:N;const D=ce(`${E}-wrapper`,{[`${E}-wrapper-checked`]:I.checked,[`${E}-wrapper-disabled`]:I.disabled,[`${E}-wrapper-rtl`]:s==="rtl",[`${E}-wrapper-in-form-item`]:f,[`${E}-wrapper-block`]:!!(a!=null&&a.block)},l==null?void 0:l.className,p,g,_,P,C),[k,R]=_V(I.onClick);return O(d.createElement(rS,{component:"Radio",disabled:I.disabled},d.createElement("label",{className:D,style:Object.assign(Object.assign({},l==null?void 0:l.style),y),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:x,onClick:k},d.createElement($V,Object.assign({},I,{className:ce(I.className,{[tS]:!w}),type:"radio",prefixCls:E,ref:u,onClick:R})),v!==void 0?d.createElement("span",{className:`${E}-label`},v):null)))},Bye=d.forwardRef(Lye),s1=Bye,zye=["parentNode"],Hye="form_item";function Ph(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function TV(e,t){if(!e.length)return;const r=e.join("_");return t?`${t}_${r}`:zye.includes(r)?`${Hye}_${r}`:r}function PV(e,t,r,n,a,i){let o=n;return i!==void 0?o=i:r.validating?o="validating":e.length?o="error":t.length?o="warning":(r.touched||a&&r.validated)&&(o="success"),o}var Wye=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);ae??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:a=>i=>{const o=tO(a);i?r.current[o]=i:delete r.current[o]}},scrollToField:(a,i={})=>{const{focus:o}=i,s=Wye(i,["focus"]),l=cD(a,n);l&&(mle(l,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),o&&n.focusField(a))},focusField:a=>{var i,o;const s=n.getFieldInstance(a);typeof(s==null?void 0:s.focus)=="function"?s.focus():(o=(i=cD(a,n))===null||i===void 0?void 0:i.focus)===null||o===void 0||o.call(i)},getFieldInstance:a=>{const i=tO(a);return r.current[i]}}),[e,t]);return[n]}const Vye=d.forwardRef((e,t)=>{const{getPrefixCls:r,direction:n}=d.useContext(Nt),{name:a}=d.useContext(ga),i=vS(tO(a)),{prefixCls:o,className:s,rootClassName:l,options:c,buttonStyle:u="outline",disabled:f,children:m,size:h,style:p,id:g,optionType:v,name:y=i,defaultValue:x,value:b,block:S=!1,onChange:w,onMouseEnter:E,onMouseLeave:C,onFocus:O,onBlur:_}=e,[P,I]=br(x,{value:b}),N=d.useCallback(B=>{const W=P,z=B.target.value;"value"in e||I(z),z!==W&&(w==null||w(B))},[P,I,w]),D=r("radio",o),k=`${D}-group`,R=vn(D),[A,j,F]=OV(D,R);let M=m;c&&c.length>0&&(M=c.map(B=>typeof B=="string"||typeof B=="number"?d.createElement(s1,{key:B.toString(),prefixCls:D,disabled:f,value:B,checked:P===B},B):d.createElement(s1,{key:`radio-group-value-options-${B.value}`,prefixCls:D,disabled:B.disabled||f,value:B.value,checked:P===B.value,title:B.title,style:B.style,className:B.className,id:B.id,required:B.required},B.label)));const V=Da(h),K=ce(k,`${k}-${u}`,{[`${k}-${V}`]:V,[`${k}-rtl`]:n==="rtl",[`${k}-block`]:S},s,l,j,F,R),L=d.useMemo(()=>({onChange:N,value:P,disabled:f,name:y,optionType:v,block:S}),[N,P,f,y,v,S]);return A(d.createElement("div",Object.assign({},Dn(e,{aria:!0,data:!0}),{className:K,style:p,onMouseEnter:E,onMouseLeave:C,onFocus:O,onBlur:_,id:g,ref:t}),d.createElement(Nye,{value:L},M)))}),Uye=d.memo(Vye);var Kye=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:r}=d.useContext(Nt),{prefixCls:n}=e,a=Kye(e,["prefixCls"]),i=r("radio",n);return d.createElement(kye,{value:"button"},d.createElement(s1,Object.assign({prefixCls:i},a,{type:"radio",ref:t})))},qye=d.forwardRef(Gye),kS=s1;kS.Button=qye;kS.Group=Uye;kS.__ANT_RADIO=!0;const Gs=kS;function Hd(e){return Zt(e,{inputAffixPadding:e.paddingXXS})}const Wd=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:a,controlHeightSM:i,controlHeightLG:o,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:h,colorPrimary:p,controlOutlineWidth:g,controlOutline:v,colorErrorOutline:y,colorWarningOutline:x,colorBgContainer:b,inputFontSize:S,inputFontSizeLG:w,inputFontSizeSM:E}=e,C=S||r,O=E||C,_=w||s,P=Math.round((t-C*n)/2*10)/10-a,I=Math.round((i-O*n)/2*10)/10-a,N=Math.ceil((o-_*l)/2*10)/10-a;return{paddingBlock:Math.max(P,0),paddingBlockSM:Math.max(I,0),paddingBlockLG:Math.max(N,0),paddingInline:c-a,paddingInlineSM:u-a,paddingInlineLG:f-a,addonBg:m,activeBorderColor:p,hoverBorderColor:h,activeShadow:`0 0 0 ${g}px ${v}`,errorActiveShadow:`0 0 0 ${g}px ${y}`,warningActiveShadow:`0 0 0 ${g}px ${x}`,hoverBg:b,activeBg:b,inputFontSize:C,inputFontSizeLG:_,inputFontSizeSM:O}},Xye=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),RS=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},Xye(Zt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),NI=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),uD=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},NI(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),kI=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},NI(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},RS(e))}),uD(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),uD(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),dD=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),NV=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},dD(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),dD(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},RS(e))}})}),RI=(e,t)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},kV=(e,t)=>{var r;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(r=t==null?void 0:t.inputColor)!==null&&r!==void 0?r:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},fD=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},kV(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),AI=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},kV(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},RS(e))}),fD(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),fD(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),mD=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),RV=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},mD(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),mD(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),AV=(e,t)=>({background:e.colorBgContainer,borderWidth:`${le(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),hD=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},AV(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),MI=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},AV(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),hD(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),hD(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),DI=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),MV=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:a}=e;return{padding:`${le(t)} ${le(a)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},jI=e=>({padding:`${le(e.paddingBlockSM)} ${le(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),_v=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${le(e.paddingBlock)} ${le(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},DI(e.colorTextPlaceholder)),{"&-lg":Object.assign({},MV(e)),"&-sm":Object.assign({},jI(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),DV=e=>{const{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},MV(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},jI(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${le(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${le(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${le(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${le(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${le(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-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,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},rl()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[` - & > ${t}-affix-wrapper, - & > ${t}-number-affix-wrapper, - & > ${r}-picker-range - `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${r}-select > ${r}-select-selector, - & > ${r}-select-auto-complete ${t}, - & > ${r}-cascader-picker ${t}, - & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child, - & > ${r}-select:first-child > ${r}-select-selector, - & > ${r}-select-auto-complete:first-child ${t}, - & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, - & > ${r}-select:last-child > ${r}-select-selector, - & > ${r}-cascader-picker:last-child ${t}, - & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},Yye=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:a}=e,i=16,o=a(r).sub(a(n).mul(2)).sub(i).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dr(e)),_v(e)),kI(e)),AI(e)),RI(e)),MI(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:o,paddingBottom:o}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},Qye=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${le(e.inputAffixPadding)}`}}}},Zye=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:a,colorIcon:i,colorIconHover:o,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},_v(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),Qye(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:o}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},Jye=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},dr(e)),DV(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},NV(e)),RV(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},exe=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${n}-button:not(${r}-btn-color-primary):not(${r}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{inset:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, - > ${t}, - ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},txe=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},jV=lr(["Input","Shared"],e=>{const t=Zt(e,Hd(e));return[Yye(t),Zye(t)]},Wd,{resetFont:!1}),FV=lr(["Input","Component"],e=>{const t=Zt(e,Hd(e));return[Jye(t),exe(t),txe(t),X0(t)]},Wd,{resetFont:!1}),I2=(e,t)=>{const{componentCls:r,controlHeight:n}=e,a=t?`${r}-${t}`:"",i=KH(e);return[{[`${r}-multiple${a}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:n,[`${r}-selection-item`]:{height:i.itemHeight,lineHeight:le(i.itemLineHeight)}}}]},rxe=e=>{const{componentCls:t,calc:r,lineWidth:n}=e,a=Zt(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=Zt(e,{fontHeight:r(e.multipleItemHeightLG).sub(r(n).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[I2(a,"small"),I2(e),I2(i,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},GH(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},nxe=rxe,axe=e=>{const{pickerCellCls:t,pickerCellInnerCls:r,cellHeight:n,borderRadiusSM:a,motionDurationMid:i,cellHoverBg:o,lineWidth:s,lineType:l,colorPrimary:c,cellActiveWithRangeBg:u,colorTextLightSolid:f,colorTextDisabled:m,cellBgDisabled:h,colorFillSecondary:p}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:n,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[r]:{position:"relative",zIndex:2,display:"inline-block",minWidth:n,height:n,lineHeight:le(n),borderRadius:a,transition:`background ${i}`},[`&:hover:not(${t}-in-view):not(${t}-disabled), - &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[r]:{background:o}},[`&-in-view${t}-today ${r}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${le(s)} ${l} ${c}`,borderRadius:a,content:'""'}},[`&-in-view${t}-in-range, - &-in-view${t}-range-start, - &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected, - &-in-view${t}-range-start, - &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${r}`]:{color:f,background:c},[`&${t}-disabled ${r}`]:{background:p}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${r}`]:{borderStartStartRadius:a,borderEndStartRadius:a,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a},"&-disabled":{color:m,cursor:"not-allowed",[r]:{background:"transparent"},"&::before":{background:h}},[`&-disabled${t}-today ${r}::before`]:{borderColor:m}}},ixe=e=>{const{componentCls:t,pickerCellCls:r,pickerCellInnerCls:n,pickerYearMonthCellWidth:a,pickerControlIconSize:i,cellWidth:o,paddingSM:s,paddingXS:l,paddingXXS:c,colorBgContainer:u,lineWidth:f,lineType:m,borderRadiusLG:h,colorPrimary:p,colorTextHeading:g,colorSplit:v,pickerControlIconBorderWidth:y,colorIcon:x,textHeight:b,motionDurationMid:S,colorIconHover:w,fontWeightStrong:E,cellHeight:C,pickerCellPaddingVertical:O,colorTextDisabled:_,colorText:P,fontSize:I,motionDurationSlow:N,withoutTimeCellHeight:D,pickerQuarterPanelContentHeight:k,borderRadiusSM:R,colorTextLightSolid:A,cellHoverBg:j,timeColumnHeight:F,timeColumnWidth:M,timeCellHeight:V,controlItemBgActive:K,marginXXS:L,pickerDatePanelPaddingHorizontal:B,pickerControlIconMargin:W}=e,z=e.calc(o).mul(7).add(e.calc(B).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:h,outline:"none","&-focused":{borderColor:p},"&-rtl":{[`${t}-prev-icon, - ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, - ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:z},"&-header":{display:"flex",padding:`0 ${le(l)}`,color:g,borderBottom:`${le(f)} ${m} ${v}`,"> *":{flex:"none"},button:{padding:0,color:x,lineHeight:le(b),background:"transparent",border:0,cursor:"pointer",transition:`color ${S}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:I,"&:hover":{color:w},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:E,lineHeight:le(b),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:p}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:y,borderInlineStartWidth:y,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:W,insetInlineStart:W,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:y,borderInlineStartWidth:y,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:C,fontWeight:"normal"},th:{height:e.calc(C).add(e.calc(O).mul(2)).equal(),color:P,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${le(O)} 0`,color:_,cursor:"pointer","&-in-view":{color:P}},axe(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(D).mul(4).equal()},[n]:{padding:`0 ${le(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:k}},"&-decade-panel":{[n]:{padding:`0 ${le(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${le(l)}`},[n]:{width:a}},"&-date-panel":{[`${t}-body`]:{padding:`${le(l)} ${le(B)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${S}`},"&:first-child:before":{borderStartStartRadius:R,borderEndStartRadius:R},"&:last-child:before":{borderStartEndRadius:R,borderEndEndRadius:R}},"&:hover td:before":{background:j},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${r}`]:{"&:before":{background:p},[`&${t}-cell-week`]:{color:new sr(A).setA(.5).toHexString()},[n]:{color:A}}},"&-range-hover td:before":{background:K}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${le(l)} ${le(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${le(f)} ${m} ${v}`},[`${t}-date-panel, - ${t}-time-panel`]:{transition:`opacity ${N}`},"&-active":{[`${t}-date-panel, - ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:F},"&-column":{flex:"1 0 auto",width:M,margin:`${le(c)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${S}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${le(V)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${le(f)} ${m} ${v}`},"&-active":{background:new sr(K).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:L,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(M).sub(e.calc(L).mul(2)).equal(),height:V,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(M).sub(V).div(2).equal(),color:P,lineHeight:le(V),borderRadius:R,cursor:"pointer",transition:`background ${S}`,"&:hover":{background:j}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:K}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:_,background:"transparent",cursor:"not-allowed"}}}}}}}}},oxe=e=>{const{componentCls:t,textHeight:r,lineWidth:n,paddingSM:a,antCls:i,colorPrimary:o,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:c,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${le(n)} ${c} ${u}`,"&-extra":{padding:`0 ${le(a)}`,lineHeight:le(e.calc(r).sub(e.calc(n).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${le(n)} ${c} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:le(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:le(e.calc(r).sub(e.calc(n).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:o,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(n).mul(2).equal(),marginInlineStart:"auto"}}}}},sxe=oxe,lxe=e=>{const{componentCls:t,controlHeightLG:r,paddingXXS:n,padding:a}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(r).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(r).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(n).add(e.calc(n).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(a).add(e.calc(n).div(2)).equal()}},cxe=e=>{const{colorBgContainerDisabled:t,controlHeight:r,controlHeightSM:n,controlHeightLG:a,paddingXXS:i,lineWidth:o}=e,s=i*2,l=o*2,c=Math.min(r-s,r-l),u=Math.min(n-s,n-l),f=Math.min(a-s,a-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new sr(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new sr(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:a*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:n*1.5,cellHeight:n,textHeight:a,withoutTimeCellHeight:a*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:c,multipleItemHeightSM:u,multipleItemHeightLG:f,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},uxe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Wd(e)),cxe(e)),wS(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),dxe=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},kI(e)),MI(e)),AI(e)),RI(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},fxe=dxe,N2=(e,t)=>({padding:`${le(e)} ${le(t)}`}),mxe=e=>{const{componentCls:t,colorError:r,colorWarning:n}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:r}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:n}}}}},hxe=e=>{var t;const{componentCls:r,antCls:n,paddingInline:a,lineWidth:i,lineType:o,colorBorder:s,borderRadius:l,motionDurationMid:c,colorTextDisabled:u,colorTextPlaceholder:f,colorTextQuaternary:m,fontSizeLG:h,inputFontSizeLG:p,fontSizeSM:g,inputFontSizeSM:v,controlHeightSM:y,paddingInlineSM:x,paddingXS:b,marginXS:S,colorIcon:w,lineWidthBold:E,colorPrimary:C,motionDurationSlow:O,zIndexPopup:_,paddingXXS:P,sizePopupArrow:I,colorBgElevated:N,borderRadiusLG:D,boxShadowSecondary:k,borderRadiusSM:R,colorSplit:A,cellHoverBg:j,presetsWidth:F,presetsMaxWidth:M,boxShadowPopoverArrow:V,fontHeight:K,lineHeightLG:L}=e;return[{[r]:Object.assign(Object.assign(Object.assign({},dr(e)),N2(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${c}, box-shadow ${c}, background ${c}`,[`${r}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${r}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:(t=e.inputFontSize)!==null&&t!==void 0?t:e.fontSize,lineHeight:e.lineHeight,transition:`all ${c}`},DI(f)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:f}}},"&-large":Object.assign(Object.assign({},N2(e.paddingBlockLG,e.paddingInlineLG)),{[`${r}-input > input`]:{fontSize:p??h,lineHeight:L}}),"&-small":Object.assign(Object.assign({},N2(e.paddingBlockSM,e.paddingInlineSM)),{[`${r}-input > input`]:{fontSize:v??g}}),[`${r}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(b).div(2).equal(),color:m,lineHeight:1,pointerEvents:"none",transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:S}}},[`${r}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:m,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${c}, color ${c}`,"> *":{verticalAlign:"top"},"&:hover":{color:w}},"&:hover":{[`${r}-clear`]:{opacity:1},[`${r}-suffix:not(:last-child)`]:{opacity:0}},[`${r}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:h,color:m,fontSize:h,verticalAlign:"top",cursor:"default",[`${r}-focused &`]:{color:w},[`${r}-range-separator &`]:{[`${r}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${r}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:E,background:C,opacity:0,transition:`all ${O} ease-out`,pointerEvents:"none"},[`&${r}-focused`]:{[`${r}-active-bar`]:{opacity:1}},[`${r}-range-separator`]:{alignItems:"center",padding:`0 ${le(b)}`,lineHeight:1}},"&-range, &-multiple":{[`${r}-clear`]:{insetInlineEnd:a},[`&${r}-small`]:{[`${r}-clear`]:{insetInlineEnd:x}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},dr(e)),ixe(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:_,[`&${r}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${r}-dropdown-placement-bottomLeft, - &${r}-dropdown-placement-bottomRight`]:{[`${r}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${r}-dropdown-placement-topLeft, - &${r}-dropdown-placement-topRight`]:{[`${r}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-appear, &${n}-slide-up-enter`]:{[`${r}-range-arrow${r}-range-arrow`]:{transition:"none"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${r}-dropdown-placement-topLeft, - &${n}-slide-up-enter${n}-slide-up-enter-active${r}-dropdown-placement-topRight, - &${n}-slide-up-appear${n}-slide-up-appear-active${r}-dropdown-placement-topLeft, - &${n}-slide-up-appear${n}-slide-up-appear-active${r}-dropdown-placement-topRight`]:{animationName:lS},[`&${n}-slide-up-enter${n}-slide-up-enter-active${r}-dropdown-placement-bottomLeft, - &${n}-slide-up-enter${n}-slide-up-enter-active${r}-dropdown-placement-bottomRight, - &${n}-slide-up-appear${n}-slide-up-appear-active${r}-dropdown-placement-bottomLeft, - &${n}-slide-up-appear${n}-slide-up-appear-active${r}-dropdown-placement-bottomRight`]:{animationName:oS},[`&${n}-slide-up-leave ${r}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${r}-dropdown-placement-topLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${r}-dropdown-placement-topRight`]:{animationName:cS},[`&${n}-slide-up-leave${n}-slide-up-leave-active${r}-dropdown-placement-bottomLeft, - &${n}-slide-up-leave${n}-slide-up-leave-active${r}-dropdown-placement-bottomRight`]:{animationName:sS},[`${r}-panel > ${r}-time-panel`]:{paddingTop:P},[`${r}-range-wrapper`]:{display:"flex",position:"relative"},[`${r}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(a).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${O} ease-out`},iW(e,N,V)),{"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}}),[`${r}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:N,borderRadius:D,boxShadow:k,transition:`margin ${O}`,display:"inline-block",pointerEvents:"auto",[`${r}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${r}-presets`]:{display:"flex",flexDirection:"column",minWidth:F,maxWidth:M,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:b,borderInlineEnd:`${le(i)} ${o} ${A}`,li:Object.assign(Object.assign({},Uo),{borderRadius:R,paddingInline:b,paddingBlock:e.calc(y).sub(K).div(2).equal(),cursor:"pointer",transition:`all ${O}`,"+ li":{marginTop:S},"&:hover":{background:j}})}},[`${r}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${r}-panel`]:{borderWidth:0}}},[`${r}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${r}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:s}}}}),"&-dropdown-range":{padding:`${le(e.calc(I).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${r}-separator`]:{transform:"scale(-1, 1)"},[`${r}-footer`]:{"&-extra":{direction:"rtl"}}}})},al(e,"slide-up"),al(e,"slide-down"),x0(e,"move-up"),x0(e,"move-down")]},LV=lr("DatePicker",e=>{const t=Zt(Hd(e),lxe(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[sxe(t),hxe(t),fxe(t),mxe(t),nxe(t),X0(e,{focusElCls:`${e.componentCls}-focused`})]},uxe);var pxe={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"};const vxe=pxe;var gxe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:vxe}))},yxe=d.forwardRef(gxe);const Vd=yxe,AS=d.createContext(null);var xxe=function(t){var r=t.activeTabOffset,n=t.horizontal,a=t.rtl,i=t.indicator,o=i===void 0?{}:i,s=o.size,l=o.align,c=l===void 0?"center":l,u=d.useState(),f=me(u,2),m=f[0],h=f[1],p=d.useRef(),g=ve.useCallback(function(y){return typeof s=="function"?s(y):typeof s=="number"?s:y},[s]);function v(){Ut.cancel(p.current)}return d.useEffect(function(){var y={};if(r)if(n){y.width=g(r.width);var x=a?"right":"left";c==="start"&&(y[x]=r[x]),c==="center"&&(y[x]=r[x]+r.width/2,y.transform=a?"translateX(50%)":"translateX(-50%)"),c==="end"&&(y[x]=r[x]+r.width,y.transform="translateX(-100%)")}else y.height=g(r.height),c==="start"&&(y.top=r.top),c==="center"&&(y.top=r.top+r.height/2,y.transform="translateY(-50%)"),c==="end"&&(y.top=r.top+r.height,y.transform="translateY(-100%)");return v(),p.current=Ut(function(){var b=m&&y&&Object.keys(y).every(function(S){var w=y[S],E=m[S];return typeof w=="number"&&typeof E=="number"?Math.round(w)===Math.round(E):w===E});b||h(y)}),v},[JSON.stringify(r),n,a,c,g]),{style:m}},pD={width:0,height:0,left:0,top:0};function bxe(e,t,r){return d.useMemo(function(){for(var n,a=new Map,i=t.get((n=e[0])===null||n===void 0?void 0:n.key)||pD,o=i.left+i.width,s=0;sk?(N=P,E.current="x"):(N=I,E.current="y"),t(-N,-N)&&_.preventDefault()}var O=d.useRef(null);O.current={onTouchStart:b,onTouchMove:S,onTouchEnd:w,onWheel:C},d.useEffect(function(){function _(D){O.current.onTouchStart(D)}function P(D){O.current.onTouchMove(D)}function I(D){O.current.onTouchEnd(D)}function N(D){O.current.onWheel(D)}return document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",I,{passive:!0}),e.current.addEventListener("touchstart",_,{passive:!0}),e.current.addEventListener("wheel",N,{passive:!1}),function(){document.removeEventListener("touchmove",P),document.removeEventListener("touchend",I)}},[])}function BV(e){var t=d.useState(0),r=me(t,2),n=r[0],a=r[1],i=d.useRef(0),o=d.useRef();return o.current=e,Yu(function(){var s;(s=o.current)===null||s===void 0||s.call(o)},[n]),function(){i.current===n&&(i.current+=1,a(i.current))}}function Cxe(e){var t=d.useRef([]),r=d.useState({}),n=me(r,2),a=n[1],i=d.useRef(typeof e=="function"?e():e),o=BV(function(){var l=i.current;t.current.forEach(function(c){l=c(l)}),t.current=[],i.current=l,a({})});function s(l){t.current.push(l),o()}return[i.current,s]}var xD={width:0,height:0,left:0,top:0,right:0};function Exe(e,t,r,n,a,i,o){var s=o.tabs,l=o.tabPosition,c=o.rtl,u,f,m;return["top","bottom"].includes(l)?(u="width",f=c?"right":"left",m=Math.abs(r)):(u="height",f="top",m=-r),d.useMemo(function(){if(!s.length)return[0,0];for(var h=s.length,p=h,g=0;gMath.floor(m+t)){p=g-1;break}}for(var y=0,x=h-1;x>=0;x-=1){var b=e.get(s[x].key)||xD;if(b[f]p?[0,-1]:[y,p]},[e,t,n,a,i,m,l,s.map(function(h){return h.key}).join("_"),c])}function bD(e){var t;return e instanceof Map?(t={},e.forEach(function(r,n){t[n]=r})):t=e,JSON.stringify(t)}var $xe="TABS_DQ";function zV(e){return String(e).replace(/"/g,$xe)}function FI(e,t,r,n){return!(!r||n||e===!1||e===void 0&&(t===!1||t===null))}var HV=d.forwardRef(function(e,t){var r=e.prefixCls,n=e.editable,a=e.locale,i=e.style;return!n||n.showAdd===!1?null:d.createElement("button",{ref:t,type:"button",className:"".concat(r,"-nav-add"),style:i,"aria-label":(a==null?void 0:a.addAriaLabel)||"Add tab",onClick:function(s){n.onEdit("add",{event:s})}},n.addIcon||"+")}),SD=d.forwardRef(function(e,t){var r=e.position,n=e.prefixCls,a=e.extra;if(!a)return null;var i,o={};return bt(a)==="object"&&!d.isValidElement(a)?o=a:o.right=a,r==="right"&&(i=o.right),r==="left"&&(i=o.left),i?d.createElement("div",{className:"".concat(n,"-extra-content"),ref:t},i):null}),_xe=d.forwardRef(function(e,t){var r=e.prefixCls,n=e.id,a=e.tabs,i=e.locale,o=e.mobile,s=e.more,l=s===void 0?{}:s,c=e.style,u=e.className,f=e.editable,m=e.tabBarGutter,h=e.rtl,p=e.removeAriaLabel,g=e.onTabClick,v=e.getPopupContainer,y=e.popupClassName,x=d.useState(!1),b=me(x,2),S=b[0],w=b[1],E=d.useState(null),C=me(E,2),O=C[0],_=C[1],P=l.icon,I=P===void 0?"More":P,N="".concat(n,"-more-popup"),D="".concat(r,"-dropdown"),k=O!==null?"".concat(N,"-").concat(O):null,R=i==null?void 0:i.dropdownAriaLabel;function A(B,W){B.preventDefault(),B.stopPropagation(),f.onEdit("remove",{key:W,event:B})}var j=d.createElement(tm,{onClick:function(W){var z=W.key,U=W.domEvent;g(z,U),w(!1)},prefixCls:"".concat(D,"-menu"),id:N,tabIndex:-1,role:"listbox","aria-activedescendant":k,selectedKeys:[O],"aria-label":R!==void 0?R:"expanded dropdown"},a.map(function(B){var W=B.closable,z=B.disabled,U=B.closeIcon,X=B.key,Y=B.label,G=FI(W,U,f,z);return d.createElement(Cv,{key:X,id:"".concat(N,"-").concat(X),role:"option","aria-controls":n&&"".concat(n,"-panel-").concat(X),disabled:z},d.createElement("span",null,Y),G&&d.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:"".concat(D,"-menu-item-remove"),onClick:function(ee){ee.stopPropagation(),A(ee,X)}},U||f.removeIcon||"×"))}));function F(B){for(var W=a.filter(function(G){return!G.disabled}),z=W.findIndex(function(G){return G.key===O})||0,U=W.length,X=0;Xot?"left":"right"})}),D=me(N,2),k=D[0],R=D[1],A=vD(0,function(et,ot){!I&&g&&g({direction:et>ot?"top":"bottom"})}),j=me(A,2),F=j[0],M=j[1],V=d.useState([0,0]),K=me(V,2),L=K[0],B=K[1],W=d.useState([0,0]),z=me(W,2),U=z[0],X=z[1],Y=d.useState([0,0]),G=me(Y,2),Q=G[0],ee=G[1],H=d.useState([0,0]),fe=me(H,2),te=fe[0],re=fe[1],q=Cxe(new Map),ne=me(q,2),he=ne[0],ye=ne[1],xe=bxe(b,he,U[0]),pe=ey(L,I),Pe=ey(U,I),$e=ey(Q,I),Ee=ey(te,I),He=Math.floor(pe)Ge?Ge:et}var Ne=d.useRef(null),Se=d.useState(),je=me(Se,2),_e=je[0],Me=je[1];function ge(){Me(Date.now())}function be(){Ne.current&&clearTimeout(Ne.current)}wxe(C,function(et,ot){function wt(Lt,pt){Lt(function(Ot){var zt=Le(Ot+pt);return zt})}return He?(I?wt(R,et):wt(M,ot),be(),ge(),!0):!1}),d.useEffect(function(){return be(),_e&&(Ne.current=setTimeout(function(){Me(0)},100)),be},[_e]);var Re=Exe(xe,Fe,I?k:F,Pe,$e,Ee,ae(ae({},e),{},{tabs:b})),We=me(Re,2),at=We[0],yt=We[1],tt=qt(function(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o,ot=xe.get(et)||{width:0,height:0,left:0,right:0,top:0};if(I){var wt=k;s?ot.rightk+Fe&&(wt=ot.right+ot.width-Fe):ot.left<-k?wt=-ot.left:ot.left+ot.width>-k+Fe&&(wt=-(ot.left+ot.width-Fe)),M(0),R(Le(wt))}else{var Lt=F;ot.top<-F?Lt=-ot.top:ot.top+ot.height>-F+Fe&&(Lt=-(ot.top+ot.height-Fe)),R(0),M(Le(Lt))}}),it=d.useState(),ft=me(it,2),lt=ft[0],mt=ft[1],Mt=d.useState(!1),Ft=me(Mt,2),ht=Ft[0],St=Ft[1],xt=b.filter(function(et){return!et.disabled}).map(function(et){return et.key}),rt=function(ot){var wt=xt.indexOf(lt||o),Lt=xt.length,pt=(wt+ot+Lt)%Lt,Ot=xt[pt];mt(Ot)},Ye=function(ot,wt){var Lt=xt.indexOf(ot),pt=b.find(function(zt){return zt.key===ot}),Ot=FI(pt==null?void 0:pt.closable,pt==null?void 0:pt.closeIcon,c,pt==null?void 0:pt.disabled);Ot&&(wt.preventDefault(),wt.stopPropagation(),c.onEdit("remove",{key:ot,event:wt}),Lt===xt.length-1?rt(-1):rt(1))},Ze=function(ot,wt){St(!0),wt.button===1&&Ye(ot,wt)},ct=function(ot){var wt=ot.code,Lt=s&&I,pt=xt[0],Ot=xt[xt.length-1];switch(wt){case"ArrowLeft":{I&&rt(Lt?1:-1);break}case"ArrowRight":{I&&rt(Lt?-1:1);break}case"ArrowUp":{ot.preventDefault(),I||rt(-1);break}case"ArrowDown":{ot.preventDefault(),I||rt(1);break}case"Home":{ot.preventDefault(),mt(pt);break}case"End":{ot.preventDefault(),mt(Ot);break}case"Enter":case"Space":{ot.preventDefault(),p(lt??o,ot);break}case"Backspace":case"Delete":{Ye(lt,ot);break}}},Z={};I?Z[s?"marginRight":"marginLeft"]=m:Z.marginTop=m;var ue=b.map(function(et,ot){var wt=et.key;return d.createElement(Txe,{id:a,prefixCls:x,key:wt,tab:et,style:ot===0?void 0:Z,closable:et.closable,editable:c,active:wt===o,focus:wt===lt,renderWrapper:h,removeAriaLabel:u==null?void 0:u.removeAriaLabel,tabCount:xt.length,currentPosition:ot+1,onClick:function(pt){p(wt,pt)},onKeyDown:ct,onFocus:function(){ht||mt(wt),tt(wt),ge(),C.current&&(s||(C.current.scrollLeft=0),C.current.scrollTop=0)},onBlur:function(){mt(void 0)},onMouseDown:function(pt){return Ze(wt,pt)},onMouseUp:function(){St(!1)}})}),se=function(){return ye(function(){var ot,wt=new Map,Lt=(ot=O.current)===null||ot===void 0?void 0:ot.getBoundingClientRect();return b.forEach(function(pt){var Ot,zt=pt.key,pr=(Ot=O.current)===null||Ot===void 0?void 0:Ot.querySelector('[data-node-key="'.concat(zV(zt),'"]'));if(pr){var Ir=Pxe(pr,Lt),Pr=me(Ir,4),Pn=Pr[0],dn=Pr[1],Bn=Pr[2],zn=Pr[3];wt.set(zt,{width:Pn,height:dn,left:Bn,top:zn})}}),wt})};d.useEffect(function(){se()},[b.map(function(et){return et.key}).join("_")]);var ie=BV(function(){var et=mf(S),ot=mf(w),wt=mf(E);B([et[0]-ot[0]-wt[0],et[1]-ot[1]-wt[1]]);var Lt=mf(P);ee(Lt);var pt=mf(_);re(pt);var Ot=mf(O);X([Ot[0]-Lt[0],Ot[1]-Lt[1]]),se()}),oe=b.slice(0,at),de=b.slice(yt+1),we=[].concat(De(oe),De(de)),Ae=xe.get(o),Ce=xxe({activeTabOffset:Ae,horizontal:I,indicator:v,rtl:s}),Ie=Ce.style;d.useEffect(function(){tt()},[o,qe,Ge,bD(Ae),bD(xe),I]),d.useEffect(function(){ie()},[s]);var Te=!!we.length,Xe="".concat(x,"-nav-wrap"),ke,Be,ze,Ve;return I?s?(Be=k>0,ke=k!==Ge):(ke=k<0,Be=k!==qe):(ze=F<0,Ve=F!==qe),d.createElement(Ra,{onResize:ie},d.createElement("div",{ref:Wl(t,S),role:"tablist","aria-orientation":I?"horizontal":"vertical",className:ce("".concat(x,"-nav"),r),style:n,onKeyDown:function(){ge()}},d.createElement(SD,{ref:w,position:"left",extra:l,prefixCls:x}),d.createElement(Ra,{onResize:ie},d.createElement("div",{className:ce(Xe,J(J(J(J({},"".concat(Xe,"-ping-left"),ke),"".concat(Xe,"-ping-right"),Be),"".concat(Xe,"-ping-top"),ze),"".concat(Xe,"-ping-bottom"),Ve)),ref:C},d.createElement(Ra,{onResize:ie},d.createElement("div",{ref:O,className:"".concat(x,"-nav-list"),style:{transform:"translate(".concat(k,"px, ").concat(F,"px)"),transition:_e?"none":void 0}},ue,d.createElement(HV,{ref:P,prefixCls:x,locale:u,editable:c,style:ae(ae({},ue.length===0?void 0:Z),{},{visibility:Te?"hidden":null})}),d.createElement("div",{className:ce("".concat(x,"-ink-bar"),J({},"".concat(x,"-ink-bar-animated"),i.inkBar)),style:Ie}))))),d.createElement(Oxe,Oe({},e,{removeAriaLabel:u==null?void 0:u.removeAriaLabel,ref:_,prefixCls:x,tabs:we,className:!Te&&nt,tabMoving:!!_e})),d.createElement(SD,{ref:E,position:"right",extra:l,prefixCls:x})))}),WV=d.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,a=e.style,i=e.id,o=e.active,s=e.tabKey,l=e.children;return d.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:o?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!o,style:a,className:ce(r,o&&"".concat(r,"-active"),n),ref:t},l)}),Ixe=["renderTabBar"],Nxe=["label","key"],kxe=function(t){var r=t.renderTabBar,n=Rt(t,Ixe),a=d.useContext(AS),i=a.tabs;if(r){var o=ae(ae({},n),{},{panes:i.map(function(s){var l=s.label,c=s.key,u=Rt(s,Nxe);return d.createElement(WV,Oe({tab:l,key:c,tabKey:c},u))})});return r(o,wD)}return d.createElement(wD,n)},Rxe=["key","forceRender","style","className","destroyInactiveTabPane"],Axe=function(t){var r=t.id,n=t.activeKey,a=t.animated,i=t.tabPosition,o=t.destroyInactiveTabPane,s=d.useContext(AS),l=s.prefixCls,c=s.tabs,u=a.tabPane,f="".concat(l,"-tabpane");return d.createElement("div",{className:ce("".concat(l,"-content-holder"))},d.createElement("div",{className:ce("".concat(l,"-content"),"".concat(l,"-content-").concat(i),J({},"".concat(l,"-content-animated"),u))},c.map(function(m){var h=m.key,p=m.forceRender,g=m.style,v=m.className,y=m.destroyInactiveTabPane,x=Rt(m,Rxe),b=h===n;return d.createElement(Vi,Oe({key:h,visible:b,forceRender:p,removeOnLeave:!!(o||y),leavedClassName:"".concat(f,"-hidden")},a.tabPaneMotion),function(S,w){var E=S.style,C=S.className;return d.createElement(WV,Oe({},x,{prefixCls:f,id:r,tabKey:h,animated:u,active:b,style:ae(ae({},g),E),className:ce(v,C),ref:w}))})})))};function Mxe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=ae({inkBar:!0},bt(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var Dxe=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],CD=0,jxe=d.forwardRef(function(e,t){var r=e.id,n=e.prefixCls,a=n===void 0?"rc-tabs":n,i=e.className,o=e.items,s=e.direction,l=e.activeKey,c=e.defaultActiveKey,u=e.editable,f=e.animated,m=e.tabPosition,h=m===void 0?"top":m,p=e.tabBarGutter,g=e.tabBarStyle,v=e.tabBarExtraContent,y=e.locale,x=e.more,b=e.destroyInactiveTabPane,S=e.renderTabBar,w=e.onChange,E=e.onTabClick,C=e.onTabScroll,O=e.getPopupContainer,_=e.popupClassName,P=e.indicator,I=Rt(e,Dxe),N=d.useMemo(function(){return(o||[]).filter(function(te){return te&&bt(te)==="object"&&"key"in te})},[o]),D=s==="rtl",k=Mxe(f),R=d.useState(!1),A=me(R,2),j=A[0],F=A[1];d.useEffect(function(){F(xS())},[]);var M=br(function(){var te;return(te=N[0])===null||te===void 0?void 0:te.key},{value:l,defaultValue:c}),V=me(M,2),K=V[0],L=V[1],B=d.useState(function(){return N.findIndex(function(te){return te.key===K})}),W=me(B,2),z=W[0],U=W[1];d.useEffect(function(){var te=N.findIndex(function(q){return q.key===K});if(te===-1){var re;te=Math.max(0,Math.min(z,N.length-1)),L((re=N[te])===null||re===void 0?void 0:re.key)}U(te)},[N.map(function(te){return te.key}).join("_"),K,z]);var X=br(null,{value:r}),Y=me(X,2),G=Y[0],Q=Y[1];d.useEffect(function(){r||(Q("rc-tabs-".concat(CD)),CD+=1)},[]);function ee(te,re){E==null||E(te,re);var q=te!==K;L(te),q&&(w==null||w(te))}var H={id:G,activeKey:K,animated:k,tabPosition:h,rtl:D,mobile:j},fe=ae(ae({},H),{},{editable:u,locale:y,more:x,tabBarGutter:p,onTabClick:ee,onTabScroll:C,extra:v,style:g,panes:null,getPopupContainer:O,popupClassName:_,indicator:P});return d.createElement(AS.Provider,{value:{tabs:N,prefixCls:a}},d.createElement("div",Oe({ref:t,id:r,className:ce(a,"".concat(a,"-").concat(h),J(J(J({},"".concat(a,"-mobile"),j),"".concat(a,"-editable"),u),"".concat(a,"-rtl"),D),i)},I),d.createElement(kxe,Oe({},fe,{renderTabBar:S})),d.createElement(Axe,Oe({destroyInactiveTabPane:b},H,{animated:k}))))});const Fxe={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Lxe(e,t={inkBar:!0,tabPane:!1}){let r;return t===!1?r={inkBar:!1,tabPane:!1}:t===!0?r={inkBar:!0,tabPane:!0}:r=Object.assign({inkBar:!0},typeof t=="object"?t:{}),r.tabPane&&(r.tabPaneMotion=Object.assign(Object.assign({},Fxe),{motionName:Vc(e,"switch")})),r}var Bxe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);at)}function Hxe(e,t){if(e)return e.map(n=>{var a;const i=(a=n.destroyOnHidden)!==null&&a!==void 0?a:n.destroyInactiveTabPane;return Object.assign(Object.assign({},n),{destroyInactiveTabPane:i})});const r=ha(t).map(n=>{if(d.isValidElement(n)){const{key:a,props:i}=n,o=i||{},{tab:s}=o,l=Bxe(o,["tab"]);return Object.assign(Object.assign({key:String(a)},l),{label:s})}return null});return zxe(r)}const Wxe=e=>{const{componentCls:t,motionDurationSlow:r}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${r}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${r}`}}}}},[al(e,"slide-up"),al(e,"slide-down")]]},Vxe=Wxe,Uxe=e=>{const{componentCls:t,tabsCardPadding:r,cardBg:n,cardGutter:a,colorBorderSecondary:i,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:r,background:n,border:`${le(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:nl(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:le(a)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:le(a)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${le(e.borderRadiusLG)} 0 0 ${le(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Kxe=e=>{const{componentCls:t,itemHoverColor:r,dropdownEdgeChildVerticalPadding:n}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},dr(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:`${le(n)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Uo),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${le(e.paddingXXS)} ${le(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Gxe=e=>{const{componentCls:t,margin:r,colorBorderSecondary:n,horizontalMargin:a,verticalItemPadding:i,verticalItemMargin:o,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:a,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${le(e.lineWidth)} ${e.lineType} ${n}`,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:r,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:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:o},[`${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:le(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},qxe=e=>{const{componentCls:t,cardPaddingSM:r,cardPaddingLG:n,cardHeightSM:a,cardHeightLG:i,horizontalItemPaddingSM:o,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${le(e.borderRadius)} ${le(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${le(e.borderRadius)} ${le(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${le(e.borderRadius)} ${le(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${le(e.borderRadius)} 0 0 ${le(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},Xxe=e=>{const{componentCls:t,itemActiveColor:r,itemHoverColor:n,iconCls:a,tabsHorizontalItemMargin:i,horizontalItemPadding:o,itemSelectedColor:s,itemColor:l}=e,c=`${t}-tab`;return{[c]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:o,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:r}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${c}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Nl(e)),"&:hover":{color:n},[`&${c}-active ${c}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${c}-focus ${c}-btn:focus-visible`]:nl(e),[`&${c}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${c}-disabled ${c}-btn, &${c}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${c}-remove ${a}`]:{margin:0,verticalAlign:"middle"},[`${a}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${c} + ${c}`]:{margin:{_skip_check_:!0,value:i}}}},Yxe=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:r,iconCls:n,cardGutter:a,calc:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:r},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[n]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:le(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:le(e.marginXS)},marginLeft:{_skip_check_:!0,value:le(i(e.marginXXS).mul(-1).equal())},[n]:{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:a},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Qxe=e=>{const{componentCls:t,tabsCardPadding:r,cardHeight:n,cardGutter:a,itemHoverColor:i,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},dr(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:r,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:n,minHeight:n,marginLeft:{_skip_check_:!0,value:a},background:"transparent",border:`${le(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:o}},Nl(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Xxe(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Nl(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},Zxe=e=>{const{cardHeight:t,cardHeightSM:r,cardHeightLG:n,controlHeight:a,controlHeightLG:i}=e,o=t||i,s=r||a,l=n||i+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:o,cardHeightSM:s,cardHeightLG:l,cardPadding:`${(o-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(l-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},Jxe=lr("Tabs",e=>{const t=Zt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${le(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${le(e.horizontalItemGutter)}`});return[qxe(t),Yxe(t),Gxe(t),Kxe(t),Uxe(t),Qxe(t),Vxe(t)]},Zxe),e1e=()=>null,t1e=e1e;var r1e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var r,n,a,i,o,s,l,c,u,f,m;const{type:h,className:p,rootClassName:g,size:v,onEdit:y,hideAdd:x,centered:b,addIcon:S,removeIcon:w,moreIcon:E,more:C,popupClassName:O,children:_,items:P,animated:I,style:N,indicatorSize:D,indicator:k,destroyInactiveTabPane:R,destroyOnHidden:A}=e,j=r1e(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:F}=j,{direction:M,tabs:V,getPrefixCls:K,getPopupContainer:L}=d.useContext(Nt),B=K("tabs",F),W=vn(B),[z,U,X]=Jxe(B,W),Y=d.useRef(null);d.useImperativeHandle(t,()=>({nativeElement:Y.current}));let G;h==="editable-card"&&(G={onEdit:(q,{key:ne,event:he})=>{y==null||y(q==="add"?he:ne,q)},removeIcon:(r=w??(V==null?void 0:V.removeIcon))!==null&&r!==void 0?r:d.createElement(cu,null),addIcon:(S??(V==null?void 0:V.addIcon))||d.createElement(Vd,null),showAdd:x!==!0});const Q=K(),ee=Da(v),H=Hxe(P,_),fe=Lxe(B,I),te=Object.assign(Object.assign({},V==null?void 0:V.style),N),re={align:(n=k==null?void 0:k.align)!==null&&n!==void 0?n:(a=V==null?void 0:V.indicator)===null||a===void 0?void 0:a.align,size:(l=(o=(i=k==null?void 0:k.size)!==null&&i!==void 0?i:D)!==null&&o!==void 0?o:(s=V==null?void 0:V.indicator)===null||s===void 0?void 0:s.size)!==null&&l!==void 0?l:V==null?void 0:V.indicatorSize};return z(d.createElement(jxe,Object.assign({ref:Y,direction:M,getPopupContainer:L},j,{items:H,className:ce({[`${B}-${ee}`]:ee,[`${B}-card`]:["card","editable-card"].includes(h),[`${B}-editable-card`]:h==="editable-card",[`${B}-centered`]:b},V==null?void 0:V.className,p,g,U,X,W),popupClassName:ce(O,U,X,W),style:te,editable:G,more:Object.assign({icon:(m=(f=(u=(c=V==null?void 0:V.more)===null||c===void 0?void 0:c.icon)!==null&&u!==void 0?u:V==null?void 0:V.moreIcon)!==null&&f!==void 0?f:E)!==null&&m!==void 0?m:d.createElement(wI,null),transitionName:`${Q}-slide-up`},C),prefixCls:B,animated:fe,indicator:re,destroyInactiveTabPane:A??R})))}),VV=n1e;VV.TabPane=t1e;const MS=VV;var a1e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,className:r,hoverable:n=!0}=e,a=a1e(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=d.useContext(Nt),o=i("card",t),s=ce(`${o}-grid`,r,{[`${o}-grid-hoverable`]:n});return d.createElement("div",Object.assign({},a,{className:s}))},UV=i1e,o1e=e=>{const{antCls:t,componentCls:r,headerHeight:n,headerPadding:a,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:n,marginBottom:-1,padding:`0 ${le(a)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)} 0 0`},rl()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Uo),{[` - > ${r}-typography, - > ${r}-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:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},s1e=e=>{const{cardPaddingBase:t,colorBorderSecondary:r,cardShadow:n,lineWidth:a}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:` - ${le(a)} 0 0 0 ${r}, - 0 ${le(a)} 0 0 ${r}, - ${le(a)} ${le(a)} 0 0 ${r}, - ${le(a)} 0 0 0 ${r} inset, - 0 ${le(a)} 0 0 ${r} inset; - `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:n}}},l1e=e=>{const{componentCls:t,iconCls:r,actionsLiMargin:n,cardActionsIconSize:a,colorBorderSecondary:i,actionsBg:o}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:o,borderTop:`${le(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)}`},rl()),{"& > li":{margin:n,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${r}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:le(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${r}`]:{fontSize:a,lineHeight:le(e.calc(a).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${le(e.lineWidth)} ${e.lineType} ${i}`}}})},c1e=e=>Object.assign(Object.assign({margin:`${le(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},rl()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Uo),"&-description":{color:e.colorTextDescription}}),u1e=e=>{const{componentCls:t,colorFillAlter:r,headerPadding:n,bodyPadding:a}=e;return{[`${t}-head`]:{padding:`0 ${le(n)}`,background:r,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${le(e.padding)} ${le(a)}`}}},d1e=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},f1e=e=>{const{componentCls:t,cardShadow:r,cardHeadPadding:n,colorBorderSecondary:a,boxShadowTertiary:i,bodyPadding:o,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},dr(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:o1e(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:o,borderRadius:`0 0 ${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)}`},[`${t}-grid`]:s1e(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:l1e(e),[`${t}-meta`]:c1e(e)}),[`${t}-bordered`]:{border:`${le(e.lineWidth)} ${e.lineType} ${a}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:r}},[`${t}-contain-grid`]:{borderRadius:`${le(e.borderRadiusLG)} ${le(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:n}}},[`${t}-type-inner`]:u1e(e),[`${t}-loading`]:d1e(e),[`${t}-rtl`]:{direction:"rtl"}}},m1e=e=>{const{componentCls:t,bodyPaddingSM:r,headerPaddingSM:n,headerHeightSM:a,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:a,padding:`0 ${le(n)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:r}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},h1e=e=>{var t,r;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(r=e.headerPadding)!==null&&r!==void 0?r:e.paddingLG}},p1e=lr("Card",e=>{const t=Zt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[f1e(t),m1e(t)]},h1e);var ED=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{actionClasses:t,actions:r=[],actionStyle:n}=e;return d.createElement("ul",{className:t,style:n},r.map((a,i)=>{const o=`action-${i}`;return d.createElement("li",{style:{width:`${100/r.length}%`},key:o},d.createElement("span",null,a))}))},g1e=d.forwardRef((e,t)=>{const{prefixCls:r,className:n,rootClassName:a,style:i,extra:o,headStyle:s={},bodyStyle:l={},title:c,loading:u,bordered:f,variant:m,size:h,type:p,cover:g,actions:v,tabList:y,children:x,activeTabKey:b,defaultActiveTabKey:S,tabBarExtraContent:w,hoverable:E,tabProps:C={},classNames:O,styles:_}=e,P=ED(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:I,direction:N,card:D}=d.useContext(Nt),[k]=Ld("card",m,f),R=xe=>{var pe;(pe=e.onTabChange)===null||pe===void 0||pe.call(e,xe)},A=xe=>{var pe;return ce((pe=D==null?void 0:D.classNames)===null||pe===void 0?void 0:pe[xe],O==null?void 0:O[xe])},j=xe=>{var pe;return Object.assign(Object.assign({},(pe=D==null?void 0:D.styles)===null||pe===void 0?void 0:pe[xe]),_==null?void 0:_[xe])},F=d.useMemo(()=>{let xe=!1;return d.Children.forEach(x,pe=>{(pe==null?void 0:pe.type)===UV&&(xe=!0)}),xe},[x]),M=I("card",r),[V,K,L]=p1e(M),B=d.createElement(nI,{loading:!0,active:!0,paragraph:{rows:4},title:!1},x),W=b!==void 0,z=Object.assign(Object.assign({},C),{[W?"activeKey":"defaultActiveKey"]:W?b:S,tabBarExtraContent:w});let U;const X=Da(h),Y=!X||X==="default"?"large":X,G=y?d.createElement(MS,Object.assign({size:Y},z,{className:`${M}-head-tabs`,onChange:R,items:y.map(xe=>{var{tab:pe}=xe,Pe=ED(xe,["tab"]);return Object.assign({label:pe},Pe)})})):null;if(c||o||G){const xe=ce(`${M}-head`,A("header")),pe=ce(`${M}-head-title`,A("title")),Pe=ce(`${M}-extra`,A("extra")),$e=Object.assign(Object.assign({},s),j("header"));U=d.createElement("div",{className:xe,style:$e},d.createElement("div",{className:`${M}-head-wrapper`},c&&d.createElement("div",{className:pe,style:j("title")},c),o&&d.createElement("div",{className:Pe,style:j("extra")},o)),G)}const Q=ce(`${M}-cover`,A("cover")),ee=g?d.createElement("div",{className:Q,style:j("cover")},g):null,H=ce(`${M}-body`,A("body")),fe=Object.assign(Object.assign({},l),j("body")),te=d.createElement("div",{className:H,style:fe},u?B:x),re=ce(`${M}-actions`,A("actions")),q=v!=null&&v.length?d.createElement(v1e,{actionClasses:re,actionStyle:j("actions"),actions:v}):null,ne=Er(P,["onTabChange"]),he=ce(M,D==null?void 0:D.className,{[`${M}-loading`]:u,[`${M}-bordered`]:k!=="borderless",[`${M}-hoverable`]:E,[`${M}-contain-grid`]:F,[`${M}-contain-tabs`]:y==null?void 0:y.length,[`${M}-${X}`]:X,[`${M}-type-${p}`]:!!p,[`${M}-rtl`]:N==="rtl"},n,a,K,L),ye=Object.assign(Object.assign({},D==null?void 0:D.style),i);return V(d.createElement("div",Object.assign({ref:t},ne,{className:he,style:ye}),U,ee,te,q))}),y1e=g1e;var x1e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:r,avatar:n,title:a,description:i}=e,o=x1e(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=d.useContext(Nt),l=s("card",t),c=ce(`${l}-meta`,r),u=n?d.createElement("div",{className:`${l}-meta-avatar`},n):null,f=a?d.createElement("div",{className:`${l}-meta-title`},a):null,m=i?d.createElement("div",{className:`${l}-meta-description`},i):null,h=f||m?d.createElement("div",{className:`${l}-meta-detail`},f,m):null;return d.createElement("div",Object.assign({},o,{className:c}),u,h)},S1e=b1e,LI=y1e;LI.Grid=UV;LI.Meta=S1e;const _r=LI;function w1e(e,t,r){var n=r||{},a=n.noTrailing,i=a===void 0?!1:a,o=n.noLeading,s=o===void 0?!1:o,l=n.debounceMode,c=l===void 0?void 0:l,u,f=!1,m=0;function h(){u&&clearTimeout(u)}function p(v){var y=v||{},x=y.upcomingOnly,b=x===void 0?!1:x;h(),f=!b}function g(){for(var v=arguments.length,y=new Array(v),x=0;xe?s?(m=Date.now(),i||(u=setTimeout(c?E:w,e))):w():i!==!0&&(u=setTimeout(c?E:w,c===void 0?e-S:e))}return g.cancel=p,g}function C1e(e,t,r){var n=r||{},a=n.atBegin,i=a===void 0?!1:a;return w1e(e,t,{debounceMode:i!==!1})}function ki(e,t){return e[t]}var E1e=["children"];function KV(e,t){return"".concat(e,"-").concat(t)}function $1e(e){return e&&e.type&&e.type.isTreeNode}function Ov(e,t){return e??t}function S0(e){var t=e||{},r=t.title,n=t._title,a=t.key,i=t.children,o=r||"title";return{title:o,_title:n||[o],key:a||"key",children:i||"children"}}function GV(e){function t(r){var n=ha(r);return n.map(function(a){if(!$1e(a))return Br(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var i=a.key,o=a.props,s=o.children,l=Rt(o,E1e),c=ae({key:i},l),u=t(s);return u.length&&(c.children=u),c}).filter(function(a){return a})}return t(e)}function k2(e,t,r){var n=S0(r),a=n._title,i=n.key,o=n.children,s=new Set(t===!0?[]:t),l=[];function c(u){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map(function(m,h){for(var p=KV(f?f.pos:"0",h),g=Ov(m[i],p),v,y=0;y1&&arguments[1]!==void 0?arguments[1]:{},r=t.initWrapper,n=t.processEntity,a=t.onProcessFinished,i=t.externalGetKey,o=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,c=i||l,u={},f={},m={posEntities:u,keyEntities:f};return r&&(m=r(m)||m),_1e(e,function(h){var p=h.node,g=h.index,v=h.pos,y=h.key,x=h.parentPos,b=h.level,S=h.nodes,w={node:p,nodes:S,index:g,key:y,pos:v,level:b},E=Ov(y,v);u[v]=w,f[E]=w,w.parent=u[x],w.parent&&(w.parent.children=w.parent.children||[],w.parent.children.push(w)),n&&n(w,m)},{externalGetKey:c,childrenPropName:o,fieldNames:s}),a&&a(m),m}function Ih(e,t){var r=t.expandedKeys,n=t.selectedKeys,a=t.loadedKeys,i=t.loadingKeys,o=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities,f=ki(u,e),m={eventKey:e,expanded:r.indexOf(e)!==-1,selected:n.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:o.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:l===e&&c===0,dragOverGapTop:l===e&&c===-1,dragOverGapBottom:l===e&&c===1};return m}function Xn(e){var t=e.data,r=e.expanded,n=e.selected,a=e.checked,i=e.loaded,o=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,u=e.dragOverGapBottom,f=e.pos,m=e.active,h=e.eventKey,p=ae(ae({},t),{},{expanded:r,selected:n,checked:a,loaded:i,loading:o,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:u,pos:f,active:m,key:h});return"props"in p||Object.defineProperty(p,"props",{get:function(){return Br(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),p}function qV(e,t){var r=new Set;return e.forEach(function(n){t.has(n)||r.add(n)}),r}function O1e(e){var t=e||{},r=t.disabled,n=t.disableCheckbox,a=t.checkable;return!!(r||n)||a===!1}function T1e(e,t,r,n){for(var a=new Set(e),i=new Set,o=0;o<=r;o+=1){var s=t.get(o)||new Set;s.forEach(function(f){var m=f.key,h=f.node,p=f.children,g=p===void 0?[]:p;a.has(m)&&!n(h)&&g.filter(function(v){return!n(v.node)}).forEach(function(v){a.add(v.key)})})}for(var l=new Set,c=r;c>=0;c-=1){var u=t.get(c)||new Set;u.forEach(function(f){var m=f.parent,h=f.node;if(!(n(h)||!f.parent||l.has(f.parent.key))){if(n(f.parent.node)){l.add(m.key);return}var p=!0,g=!1;(m.children||[]).filter(function(v){return!n(v.node)}).forEach(function(v){var y=v.key,x=a.has(y);p&&!x&&(p=!1),!g&&(x||i.has(y))&&(g=!0)}),p&&a.add(m.key),g&&i.add(m.key),l.add(m.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(qV(i,a))}}function P1e(e,t,r,n,a){for(var i=new Set(e),o=new Set(t),s=0;s<=n;s+=1){var l=r.get(s)||new Set;l.forEach(function(m){var h=m.key,p=m.node,g=m.children,v=g===void 0?[]:g;!i.has(h)&&!o.has(h)&&!a(p)&&v.filter(function(y){return!a(y.node)}).forEach(function(y){i.delete(y.key)})})}o=new Set;for(var c=new Set,u=n;u>=0;u-=1){var f=r.get(u)||new Set;f.forEach(function(m){var h=m.parent,p=m.node;if(!(a(p)||!m.parent||c.has(m.parent.key))){if(a(m.parent.node)){c.add(h.key);return}var g=!0,v=!1;(h.children||[]).filter(function(y){return!a(y.node)}).forEach(function(y){var x=y.key,b=i.has(x);g&&!b&&(g=!1),!v&&(b||o.has(x))&&(v=!0)}),g||i.delete(h.key),v&&o.add(h.key),c.add(h.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(qV(o,i))}}function Jf(e,t,r,n){var a=[],i;n?i=n:i=O1e;var o=new Set(e.filter(function(u){var f=!!ki(r,u);return f||a.push(u),f})),s=new Map,l=0;Object.keys(r).forEach(function(u){var f=r[u],m=f.level,h=s.get(m);h||(h=new Set,s.set(m,h)),h.add(f),l=Math.max(l,m)}),Br(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(u){return"'".concat(u,"'")}).join(", ")));var c;return t===!0?c=T1e(o,s,l,i):c=P1e(o,t.halfCheckedKeys,s,l,i),c}const I1e=e=>{const{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},dr(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:Object.assign(Object.assign({},dr(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},dr(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:nl(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${le(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[` - ${r}:not(${r}-disabled), - ${t}:not(${t}-disabled) - `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-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}`}}},[` - ${r}-checked:not(${r}-disabled), - ${t}-checked:not(${t}-disabled) - `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${r}-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 XV(e,t){const r=Zt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return I1e(r)}const YV=lr("Checkbox",(e,{prefixCls:t})=>[XV(t,e)]),N1e=ve.createContext(null),QV=N1e;var k1e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var r;const{prefixCls:n,className:a,rootClassName:i,children:o,indeterminate:s=!1,style:l,onMouseEnter:c,onMouseLeave:u,skipGroup:f=!1,disabled:m}=e,h=k1e(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:p,direction:g,checkbox:v}=d.useContext(Nt),y=d.useContext(QV),{isFormItemInput:x}=d.useContext(ga),b=d.useContext(Wi),S=(r=(y==null?void 0:y.disabled)||m)!==null&&r!==void 0?r:b,w=d.useRef(h.value),E=d.useRef(null),C=xa(t,E);d.useEffect(()=>{y==null||y.registerValue(h.value)},[]),d.useEffect(()=>{if(!f)return h.value!==w.current&&(y==null||y.cancelValue(w.current),y==null||y.registerValue(h.value),w.current=h.value),()=>y==null?void 0:y.cancelValue(h.value)},[h.value]),d.useEffect(()=>{var F;!((F=E.current)===null||F===void 0)&&F.input&&(E.current.input.indeterminate=s)},[s]);const O=p("checkbox",n),_=vn(O),[P,I,N]=YV(O,_),D=Object.assign({},h);y&&!f&&(D.onChange=(...F)=>{h.onChange&&h.onChange.apply(h,F),y.toggleOption&&y.toggleOption({label:o,value:h.value})},D.name=y.name,D.checked=y.value.includes(h.value));const k=ce(`${O}-wrapper`,{[`${O}-rtl`]:g==="rtl",[`${O}-wrapper-checked`]:D.checked,[`${O}-wrapper-disabled`]:S,[`${O}-wrapper-in-form-item`]:x},v==null?void 0:v.className,a,i,N,_,I),R=ce({[`${O}-indeterminate`]:s},tS,I),[A,j]=_V(D.onClick);return P(d.createElement(rS,{component:"Checkbox",disabled:S},d.createElement("label",{className:k,style:Object.assign(Object.assign({},v==null?void 0:v.style),l),onMouseEnter:c,onMouseLeave:u,onClick:A},d.createElement($V,Object.assign({},D,{onClick:j,prefixCls:O,className:R,disabled:S,ref:C})),o!=null&&d.createElement("span",{className:`${O}-label`},o))))},A1e=d.forwardRef(R1e),ZV=A1e;var M1e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{defaultValue:r,children:n,options:a=[],prefixCls:i,className:o,rootClassName:s,style:l,onChange:c}=e,u=M1e(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:m}=d.useContext(Nt),[h,p]=d.useState(u.value||r||[]),[g,v]=d.useState([]);d.useEffect(()=>{"value"in u&&p(u.value||[])},[u.value]);const y=d.useMemo(()=>a.map(R=>typeof R=="string"||typeof R=="number"?{label:R,value:R}:R),[a]),x=R=>{v(A=>A.filter(j=>j!==R))},b=R=>{v(A=>[].concat(De(A),[R]))},S=R=>{const A=h.indexOf(R.value),j=De(h);A===-1?j.push(R.value):j.splice(A,1),"value"in u||p(j),c==null||c(j.filter(F=>g.includes(F)).sort((F,M)=>{const V=y.findIndex(L=>L.value===F),K=y.findIndex(L=>L.value===M);return V-K}))},w=f("checkbox",i),E=`${w}-group`,C=vn(w),[O,_,P]=YV(w,C),I=Er(u,["value","disabled"]),N=a.length?y.map(R=>d.createElement(ZV,{prefixCls:w,key:R.value.toString(),disabled:"disabled"in R?R.disabled:u.disabled,value:R.value,checked:h.includes(R.value),onChange:R.onChange,className:ce(`${E}-item`,R.className),style:R.style,title:R.title,id:R.id,required:R.required},R.label)):n,D=d.useMemo(()=>({toggleOption:S,value:h,disabled:u.disabled,name:u.name,registerValue:b,cancelValue:x}),[S,h,u.disabled,u.name,b,x]),k=ce(E,{[`${E}-rtl`]:m==="rtl"},o,s,P,C,_);return O(d.createElement("div",Object.assign({className:k,style:l},I,{ref:t}),d.createElement(QV.Provider,{value:D},N)))}),j1e=D1e,zI=ZV;zI.Group=j1e;zI.__ANT_CHECKBOX=!0;const Sp=zI,F1e=d.createContext({}),JV=F1e;var L1e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:r,direction:n}=d.useContext(Nt),{gutter:a,wrap:i}=d.useContext(JV),{prefixCls:o,span:s,order:l,offset:c,push:u,pull:f,className:m,children:h,flex:p,style:g}=e,v=L1e(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=r("col",o),[x,b,S]=t0e(y),w={};let E={};B1e.forEach(_=>{let P={};const I=e[_];typeof I=="number"?P.span=I:typeof I=="object"&&(P=I||{}),delete v[_],E=Object.assign(Object.assign({},E),{[`${y}-${_}-${P.span}`]:P.span!==void 0,[`${y}-${_}-order-${P.order}`]:P.order||P.order===0,[`${y}-${_}-offset-${P.offset}`]:P.offset||P.offset===0,[`${y}-${_}-push-${P.push}`]:P.push||P.push===0,[`${y}-${_}-pull-${P.pull}`]:P.pull||P.pull===0,[`${y}-rtl`]:n==="rtl"}),P.flex&&(E[`${y}-${_}-flex`]=!0,w[`--${y}-${_}-flex`]=$D(P.flex))});const C=ce(y,{[`${y}-${s}`]:s!==void 0,[`${y}-order-${l}`]:l,[`${y}-offset-${c}`]:c,[`${y}-push-${u}`]:u,[`${y}-pull-${f}`]:f},m,E,b,S),O={};if(a!=null&&a[0]){const _=typeof a[0]=="number"?`${a[0]/2}px`:`calc(${a[0]} / 2)`;O.paddingLeft=_,O.paddingRight=_}return p&&(O.flex=$D(p),i===!1&&!O.minWidth&&(O.minWidth=0)),x(d.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},O),g),w),className:C,ref:t}),h))}),Qr=z1e;function H1e(e,t){const r=[void 0,void 0],n=Array.isArray(e)?e:[e,void 0],a=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return n.forEach((i,o)=>{if(typeof i=="object"&&i!==null)for(let s=0;s{if(typeof e=="string"&&n(e),typeof e=="object")for(let i=0;i{a()},[JSON.stringify(e),t]),r}const V1e=d.forwardRef((e,t)=>{const{prefixCls:r,justify:n,align:a,className:i,style:o,children:s,gutter:l=0,wrap:c}=e,u=W1e(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:m}=d.useContext(Nt),h=wv(!0,null),p=_D(a,h),g=_D(n,h),v=f("row",r),[y,x,b]=e0e(v),S=H1e(l,h),w=ce(v,{[`${v}-no-wrap`]:c===!1,[`${v}-${g}`]:g,[`${v}-${p}`]:p,[`${v}-rtl`]:m==="rtl"},i,x,b),E={};if(S!=null&&S[0]){const P=typeof S[0]=="number"?`${S[0]/-2}px`:`calc(${S[0]} / -2)`;E.marginLeft=P,E.marginRight=P}const[C,O]=S;E.rowGap=O;const _=d.useMemo(()=>({gutter:[C,O],wrap:c}),[C,O,c]);return y(d.createElement(JV.Provider,{value:_},d.createElement("div",Object.assign({},u,{className:w,style:Object.assign(Object.assign({},E),o),ref:t}),s)))}),cs=V1e;var U1e={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"};const K1e=U1e;var G1e=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:K1e}))},q1e=d.forwardRef(G1e);const X1e=q1e;function rO(){return typeof BigInt=="function"}function eU(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function Zu(e){var t=e.trim(),r=t.startsWith("-");r&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var n=t||"0",a=n.split("."),i=a[0]||"0",o=a[1]||"0";i==="0"&&o==="0"&&(r=!1);var s=r?"-":"";return{negative:r,negativeStr:s,trimStr:n,integerStr:i,decimalStr:o,fullStr:"".concat(s).concat(n)}}function HI(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Bu(e){var t=String(e);if(HI(e)){var r=Number(t.slice(t.indexOf("e-")+2)),n=t.match(/\.(\d+)/);return n!=null&&n[1]&&(r+=n[1].length),r}return t.includes(".")&&WI(t)?t.length-t.indexOf(".")-1:0}function DS(e){var t=String(e);if(HI(e)){if(e>Number.MAX_SAFE_INTEGER)return String(rO()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":Zu("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),Q1e=function(){function e(t){if(Wr(this,e),J(this,"origin",""),J(this,"number",void 0),J(this,"empty",void 0),eU(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Vr(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var n=Number(r);if(Number.isNaN(n))return this;var a=this.number+n;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(aNumber.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":DS(this.number):this.origin}}]),e}();function as(e){return rO()?new Y1e(e):new Q1e(e)}function ux(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=Zu(e),i=a.negativeStr,o=a.integerStr,s=a.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(o);if(r>=0){var u=Number(s[r]);if(u>=5&&!n){var f=as(e).add("".concat(i,"0.").concat("0".repeat(r)).concat(10-u));return ux(f.toString(),t,r,n)}return r===0?c:"".concat(c).concat(t).concat(s.padEnd(r,"0").slice(0,r))}return l===".0"?c:"".concat(c).concat(l)}function Z1e(e){return!!(e.addonBefore||e.addonAfter)}function J1e(e){return!!(e.prefix||e.suffix||e.allowClear)}function OD(e,t,r){var n=t.cloneNode(!0),a=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},a}function l1(e,t,r,n){if(r){var a=t;if(t.type==="click"){a=OD(t,e,""),r(a);return}if(e.type!=="file"&&n!==void 0){a=OD(t,e,n),r(a);return}r(a)}}function VI(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var a=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}var UI=ve.forwardRef(function(e,t){var r,n,a,i=e.inputElement,o=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,f=e.addonAfter,m=e.className,h=e.style,p=e.disabled,g=e.readOnly,v=e.focused,y=e.triggerFocus,x=e.allowClear,b=e.value,S=e.handleReset,w=e.hidden,E=e.classes,C=e.classNames,O=e.dataAttrs,_=e.styles,P=e.components,I=e.onClear,N=o??i,D=(P==null?void 0:P.affixWrapper)||"span",k=(P==null?void 0:P.groupWrapper)||"span",R=(P==null?void 0:P.wrapper)||"span",A=(P==null?void 0:P.groupAddon)||"span",j=d.useRef(null),F=function(re){var q;(q=j.current)!==null&&q!==void 0&&q.contains(re.target)&&(y==null||y())},M=J1e(e),V=d.cloneElement(N,{value:b,className:ce((r=N.props)===null||r===void 0?void 0:r.className,!M&&(C==null?void 0:C.variant))||null}),K=d.useRef(null);if(ve.useImperativeHandle(t,function(){return{nativeElement:K.current||j.current}}),M){var L=null;if(x){var B=!p&&!g&&b,W="".concat(s,"-clear-icon"),z=bt(x)==="object"&&x!==null&&x!==void 0&&x.clearIcon?x.clearIcon:"✖";L=ve.createElement("button",{type:"button",tabIndex:-1,onClick:function(re){S==null||S(re),I==null||I()},onMouseDown:function(re){return re.preventDefault()},className:ce(W,J(J({},"".concat(W,"-hidden"),!B),"".concat(W,"-has-suffix"),!!c))},z)}var U="".concat(s,"-affix-wrapper"),X=ce(U,J(J(J(J(J({},"".concat(s,"-disabled"),p),"".concat(U,"-disabled"),p),"".concat(U,"-focused"),v),"".concat(U,"-readonly"),g),"".concat(U,"-input-with-clear-btn"),c&&x&&b),E==null?void 0:E.affixWrapper,C==null?void 0:C.affixWrapper,C==null?void 0:C.variant),Y=(c||x)&&ve.createElement("span",{className:ce("".concat(s,"-suffix"),C==null?void 0:C.suffix),style:_==null?void 0:_.suffix},L,c);V=ve.createElement(D,Oe({className:X,style:_==null?void 0:_.affixWrapper,onClick:F},O==null?void 0:O.affixWrapper,{ref:j}),l&&ve.createElement("span",{className:ce("".concat(s,"-prefix"),C==null?void 0:C.prefix),style:_==null?void 0:_.prefix},l),V,Y)}if(Z1e(e)){var G="".concat(s,"-group"),Q="".concat(G,"-addon"),ee="".concat(G,"-wrapper"),H=ce("".concat(s,"-wrapper"),G,E==null?void 0:E.wrapper,C==null?void 0:C.wrapper),fe=ce(ee,J({},"".concat(ee,"-disabled"),p),E==null?void 0:E.group,C==null?void 0:C.groupWrapper);V=ve.createElement(k,{className:fe,ref:K},ve.createElement(R,{className:H},u&&ve.createElement(A,{className:Q},u),V,f&&ve.createElement(A,{className:Q},f)))}return ve.cloneElement(V,{className:ce((n=V.props)===null||n===void 0?void 0:n.className,m)||null,style:ae(ae({},(a=V.props)===null||a===void 0?void 0:a.style),h),hidden:w})}),ebe=["show"];function tU(e,t){return d.useMemo(function(){var r={};t&&(r.show=bt(t)==="object"&&t.formatter?t.formatter:!!t),r=ae(ae({},r),e);var n=r,a=n.show,i=Rt(n,ebe);return ae(ae({},i),{},{show:!!a,showFormatter:typeof a=="function"?a:void 0,strategy:i.strategy||function(o){return o.length}})},[e,t])}var tbe=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],rbe=d.forwardRef(function(e,t){var r=e.autoComplete,n=e.onChange,a=e.onFocus,i=e.onBlur,o=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,f=e.disabled,m=e.htmlSize,h=e.className,p=e.maxLength,g=e.suffix,v=e.showCount,y=e.count,x=e.type,b=x===void 0?"text":x,S=e.classes,w=e.classNames,E=e.styles,C=e.onCompositionStart,O=e.onCompositionEnd,_=Rt(e,tbe),P=d.useState(!1),I=me(P,2),N=I[0],D=I[1],k=d.useRef(!1),R=d.useRef(!1),A=d.useRef(null),j=d.useRef(null),F=function(Ee){A.current&&VI(A.current,Ee)},M=br(e.defaultValue,{value:e.value}),V=me(M,2),K=V[0],L=V[1],B=K==null?"":String(K),W=d.useState(null),z=me(W,2),U=z[0],X=z[1],Y=tU(y,v),G=Y.max||p,Q=Y.strategy(B),ee=!!G&&Q>G;d.useImperativeHandle(t,function(){var $e;return{focus:F,blur:function(){var He;(He=A.current)===null||He===void 0||He.blur()},setSelectionRange:function(He,Fe,nt){var qe;(qe=A.current)===null||qe===void 0||qe.setSelectionRange(He,Fe,nt)},select:function(){var He;(He=A.current)===null||He===void 0||He.select()},input:A.current,nativeElement:(($e=j.current)===null||$e===void 0?void 0:$e.nativeElement)||A.current}}),d.useEffect(function(){R.current&&(R.current=!1),D(function($e){return $e&&f?!1:$e})},[f]);var H=function(Ee,He,Fe){var nt=He;if(!k.current&&Y.exceedFormatter&&Y.max&&Y.strategy(He)>Y.max){if(nt=Y.exceedFormatter(He,{max:Y.max}),He!==nt){var qe,Ge;X([((qe=A.current)===null||qe===void 0?void 0:qe.selectionStart)||0,((Ge=A.current)===null||Ge===void 0?void 0:Ge.selectionEnd)||0])}}else if(Fe.source==="compositionEnd")return;L(nt),A.current&&l1(A.current,Ee,n,nt)};d.useEffect(function(){if(U){var $e;($e=A.current)===null||$e===void 0||$e.setSelectionRange.apply($e,De(U))}},[U]);var fe=function(Ee){H(Ee,Ee.target.value,{source:"change"})},te=function(Ee){k.current=!1,H(Ee,Ee.currentTarget.value,{source:"compositionEnd"}),O==null||O(Ee)},re=function(Ee){o&&Ee.key==="Enter"&&!R.current&&(R.current=!0,o(Ee)),s==null||s(Ee)},q=function(Ee){Ee.key==="Enter"&&(R.current=!1),l==null||l(Ee)},ne=function(Ee){D(!0),a==null||a(Ee)},he=function(Ee){R.current&&(R.current=!1),D(!1),i==null||i(Ee)},ye=function(Ee){L(""),F(),A.current&&l1(A.current,Ee,n)},xe=ee&&"".concat(u,"-out-of-range"),pe=function(){var Ee=Er(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ve.createElement("input",Oe({autoComplete:r},Ee,{onChange:fe,onFocus:ne,onBlur:he,onKeyDown:re,onKeyUp:q,className:ce(u,J({},"".concat(u,"-disabled"),f),w==null?void 0:w.input),style:E==null?void 0:E.input,ref:A,size:m,type:b,onCompositionStart:function(Fe){k.current=!0,C==null||C(Fe)},onCompositionEnd:te}))},Pe=function(){var Ee=Number(G)>0;if(g||Y.show){var He=Y.showFormatter?Y.showFormatter({value:B,count:Q,maxLength:G}):"".concat(Q).concat(Ee?" / ".concat(G):"");return ve.createElement(ve.Fragment,null,Y.show&&ve.createElement("span",{className:ce("".concat(u,"-show-count-suffix"),J({},"".concat(u,"-show-count-has-suffix"),!!g),w==null?void 0:w.count),style:ae({},E==null?void 0:E.count)},He),g)}return null};return ve.createElement(UI,Oe({},_,{prefixCls:u,className:ce(h,xe),handleReset:ye,value:B,focused:N,triggerFocus:F,suffix:Pe(),disabled:f,classes:S,classNames:w,styles:E,ref:j}),pe())});function nbe(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(n,a){if(t[a])return t[a];var i=n[a];return typeof i=="function"?i.bind(n):i}}):e}function abe(e,t){var r=d.useRef(null);function n(){try{var i=e.selectionStart,o=e.selectionEnd,s=e.value,l=s.substring(0,i),c=s.substring(o);r.current={start:i,end:o,value:s,beforeTxt:l,afterTxt:c}}catch{}}function a(){if(e&&r.current&&t)try{var i=e.value,o=r.current,s=o.beforeTxt,l=o.afterTxt,c=o.start,u=i.length;if(i.startsWith(s))u=s.length;else if(i.endsWith(l))u=i.length-r.current.afterTxt.length;else{var f=s[c-1],m=i.indexOf(f,c-1);m!==-1&&(u=m+1)}e.setSelectionRange(u,u)}catch(h){Br(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message))}}return[n,a]}var ibe=function(){var t=d.useState(!1),r=me(t,2),n=r[0],a=r[1];return Gt(function(){a(xS())},[]),n},obe=200,sbe=600;function lbe(e){var t=e.prefixCls,r=e.upNode,n=e.downNode,a=e.upDisabled,i=e.downDisabled,o=e.onStep,s=d.useRef(),l=d.useRef([]),c=d.useRef();c.current=o;var u=function(){clearTimeout(s.current)},f=function(b,S){b.preventDefault(),u(),c.current(S);function w(){c.current(S),s.current=setTimeout(w,obe)}s.current=setTimeout(w,sbe)};d.useEffect(function(){return function(){u(),l.current.forEach(function(x){return Ut.cancel(x)})}},[]);var m=ibe();if(m)return null;var h="".concat(t,"-handler"),p=ce(h,"".concat(h,"-up"),J({},"".concat(h,"-up-disabled"),a)),g=ce(h,"".concat(h,"-down"),J({},"".concat(h,"-down-disabled"),i)),v=function(){return l.current.push(Ut(u))},y={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return d.createElement("div",{className:"".concat(h,"-wrap")},d.createElement("span",Oe({},y,{onMouseDown:function(b){f(b,!0)},"aria-label":"Increase Value","aria-disabled":a,className:p}),r||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),d.createElement("span",Oe({},y,{onMouseDown:function(b){f(b,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:g}),n||d.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function TD(e){var t=typeof e=="number"?DS(e):Zu(e).fullStr,r=t.includes(".");return r?Zu(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const cbe=function(){var e=d.useRef(0),t=function(){Ut.cancel(e.current)};return d.useEffect(function(){return t},[]),function(r){t(),e.current=Ut(function(){r()})}};var ube=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],dbe=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],PD=function(t,r){return t||r.isEmpty()?r.toString():r.toNumber()},ID=function(t){var r=as(t);return r.isInvalidate()?null:r},fbe=d.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,a=e.style,i=e.min,o=e.max,s=e.step,l=s===void 0?1:s,c=e.defaultValue,u=e.value,f=e.disabled,m=e.readOnly,h=e.upHandler,p=e.downHandler,g=e.keyboard,v=e.changeOnWheel,y=v===void 0?!1:v,x=e.controls,b=x===void 0?!0:x;e.classNames;var S=e.stringMode,w=e.parser,E=e.formatter,C=e.precision,O=e.decimalSeparator,_=e.onChange,P=e.onInput,I=e.onPressEnter,N=e.onStep,D=e.changeOnBlur,k=D===void 0?!0:D,R=e.domRef,A=Rt(e,ube),j="".concat(r,"-input"),F=d.useRef(null),M=d.useState(!1),V=me(M,2),K=V[0],L=V[1],B=d.useRef(!1),W=d.useRef(!1),z=d.useRef(!1),U=d.useState(function(){return as(u??c)}),X=me(U,2),Y=X[0],G=X[1];function Q(tt){u===void 0&&G(tt)}var ee=d.useCallback(function(tt,it){if(!it)return C>=0?C:Math.max(Bu(tt),Bu(l))},[C,l]),H=d.useCallback(function(tt){var it=String(tt);if(w)return w(it);var ft=it;return O&&(ft=ft.replace(O,".")),ft.replace(/[^\w.-]+/g,"")},[w,O]),fe=d.useRef(""),te=d.useCallback(function(tt,it){if(E)return E(tt,{userTyping:it,input:String(fe.current)});var ft=typeof tt=="number"?DS(tt):tt;if(!it){var lt=ee(ft,it);if(WI(ft)&&(O||lt>=0)){var mt=O||".";ft=ux(ft,mt,lt)}}return ft},[E,ee,O]),re=d.useState(function(){var tt=c??u;return Y.isInvalidate()&&["string","number"].includes(bt(tt))?Number.isNaN(tt)?"":tt:te(Y.toString(),!1)}),q=me(re,2),ne=q[0],he=q[1];fe.current=ne;function ye(tt,it){he(te(tt.isInvalidate()?tt.toString(!1):tt.toString(!it),it))}var xe=d.useMemo(function(){return ID(o)},[o,C]),pe=d.useMemo(function(){return ID(i)},[i,C]),Pe=d.useMemo(function(){return!xe||!Y||Y.isInvalidate()?!1:xe.lessEquals(Y)},[xe,Y]),$e=d.useMemo(function(){return!pe||!Y||Y.isInvalidate()?!1:Y.lessEquals(pe)},[pe,Y]),Ee=abe(F.current,K),He=me(Ee,2),Fe=He[0],nt=He[1],qe=function(it){return xe&&!it.lessEquals(xe)?xe:pe&&!pe.lessEquals(it)?pe:null},Ge=function(it){return!qe(it)},Le=function(it,ft){var lt=it,mt=Ge(lt)||lt.isEmpty();if(!lt.isEmpty()&&!ft&&(lt=qe(lt)||lt,mt=!0),!m&&!f&&mt){var Mt=lt.toString(),Ft=ee(Mt,ft);return Ft>=0&&(lt=as(ux(Mt,".",Ft)),Ge(lt)||(lt=as(ux(Mt,".",Ft,!0)))),lt.equals(Y)||(Q(lt),_==null||_(lt.isEmpty()?null:PD(S,lt)),u===void 0&&ye(lt,ft)),lt}return Y},Ne=cbe(),Se=function tt(it){if(Fe(),fe.current=it,he(it),!W.current){var ft=H(it),lt=as(ft);lt.isNaN()||Le(lt,!0)}P==null||P(it),Ne(function(){var mt=it;w||(mt=it.replace(/。/g,".")),mt!==it&&tt(mt)})},je=function(){W.current=!0},_e=function(){W.current=!1,Se(F.current.value)},Me=function(it){Se(it.target.value)},ge=function(it){var ft;if(!(it&&Pe||!it&&$e)){B.current=!1;var lt=as(z.current?TD(l):l);it||(lt=lt.negate());var mt=(Y||as(0)).add(lt.toString()),Mt=Le(mt,!1);N==null||N(PD(S,Mt),{offset:z.current?TD(l):l,type:it?"up":"down"}),(ft=F.current)===null||ft===void 0||ft.focus()}},be=function(it){var ft=as(H(ne)),lt;ft.isNaN()?lt=Le(Y,it):lt=Le(ft,it),u!==void 0?ye(Y,!1):lt.isNaN()||ye(lt,!1)},Re=function(){B.current=!0},We=function(it){var ft=it.key,lt=it.shiftKey;B.current=!0,z.current=lt,ft==="Enter"&&(W.current||(B.current=!1),be(!1),I==null||I(it)),g!==!1&&!W.current&&["Up","ArrowUp","Down","ArrowDown"].includes(ft)&&(ge(ft==="Up"||ft==="ArrowUp"),it.preventDefault())},at=function(){B.current=!1,z.current=!1};d.useEffect(function(){if(y&&K){var tt=function(lt){ge(lt.deltaY<0),lt.preventDefault()},it=F.current;if(it)return it.addEventListener("wheel",tt,{passive:!1}),function(){return it.removeEventListener("wheel",tt)}}});var yt=function(){k&&be(!1),L(!1),B.current=!1};return Yu(function(){Y.isInvalidate()||ye(Y,!1)},[C,E]),Yu(function(){var tt=as(u);G(tt);var it=as(H(ne));(!tt.equals(it)||!B.current||E)&&ye(tt,B.current)},[u]),Yu(function(){E&&nt()},[ne]),d.createElement("div",{ref:R,className:ce(r,n,J(J(J(J(J({},"".concat(r,"-focused"),K),"".concat(r,"-disabled"),f),"".concat(r,"-readonly"),m),"".concat(r,"-not-a-number"),Y.isNaN()),"".concat(r,"-out-of-range"),!Y.isInvalidate()&&!Ge(Y))),style:a,onFocus:function(){L(!0)},onBlur:yt,onKeyDown:We,onKeyUp:at,onCompositionStart:je,onCompositionEnd:_e,onBeforeInput:Re},b&&d.createElement(lbe,{prefixCls:r,upNode:h,downNode:p,upDisabled:Pe,downDisabled:$e,onStep:ge}),d.createElement("div",{className:"".concat(j,"-wrap")},d.createElement("input",Oe({autoComplete:"off",role:"spinbutton","aria-valuemin":i,"aria-valuemax":o,"aria-valuenow":Y.isInvalidate()?null:Y.toString(),step:l},A,{ref:xa(F,t),className:j,value:ne,onChange:Me,disabled:f,readOnly:m}))))}),mbe=d.forwardRef(function(e,t){var r=e.disabled,n=e.style,a=e.prefixCls,i=a===void 0?"rc-input-number":a,o=e.value,s=e.prefix,l=e.suffix,c=e.addonBefore,u=e.addonAfter,f=e.className,m=e.classNames,h=Rt(e,dbe),p=d.useRef(null),g=d.useRef(null),v=d.useRef(null),y=function(b){v.current&&VI(v.current,b)};return d.useImperativeHandle(t,function(){return nbe(v.current,{focus:y,nativeElement:p.current.nativeElement||g.current})}),d.createElement(UI,{className:f,triggerFocus:y,prefixCls:i,value:o,disabled:r,style:n,prefix:s,suffix:l,addonAfter:u,addonBefore:c,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:p},d.createElement(fbe,Oe({prefixCls:i,disabled:r,ref:v,domRef:g,className:m==null?void 0:m.input},h)))});const hbe=e=>{var t;const r=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",n=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},Wd(e)),{controlWidth:90,handleWidth:n,handleFontSize:e.fontSize/2,handleVisible:r,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new sr(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:r===!0?1:0,handleVisibleWidth:r===!0?n:0})},ND=({componentCls:e,borderRadiusSM:t,borderRadiusLG:r},n)=>{const a=n==="lg"?r:t;return{[`&-${n}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${e}-handler-up`]:{borderStartEndRadius:a},[`${e}-handler-down`]:{borderEndEndRadius:a}}}},pbe=e=>{const{componentCls:t,lineWidth:r,lineType:n,borderRadius:a,inputFontSizeSM:i,inputFontSizeLG:o,controlHeightLG:s,controlHeightSM:l,colorError:c,paddingInlineSM:u,paddingBlockSM:f,paddingBlockLG:m,paddingInlineLG:h,colorIcon:p,motionDurationMid:g,handleHoverColor:v,handleOpacity:y,paddingInline:x,paddingBlock:b,handleBg:S,handleActiveBg:w,colorTextDisabled:E,borderRadiusSM:C,borderRadiusLG:O,controlWidth:_,handleBorderColor:P,filledHandleBg:I,lineHeightLG:N,calc:D}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dr(e)),_v(e)),{display:"inline-block",width:_,margin:0,padding:0,borderRadius:a}),kI(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${le(r)} ${n} ${P}`}}})),AI(e,{[`${t}-handler-wrap`]:{background:I,[`${t}-handler-down`]:{borderBlockStart:`${le(r)} ${n} ${P}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:S}}})),MI(e,{[`${t}-handler-wrap`]:{background:S,[`${t}-handler-down`]:{borderBlockStart:`${le(r)} ${n} ${P}`}}})),RI(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:o,lineHeight:N,borderRadius:O,[`input${t}-input`]:{height:D(s).sub(D(r).mul(2)).equal(),padding:`${le(m)} ${le(h)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:C,[`input${t}-input`]:{height:D(l).sub(D(r).mul(2)).equal(),padding:`${le(f)} ${le(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:c}}},"&-group":Object.assign(Object.assign(Object.assign({},dr(e)),DV(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:O,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}}},NV(e)),RV(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},dr(e)),{width:"100%",padding:`${le(b)} ${le(x)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),DI(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:y,height:"100%",borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` - ${t}-handler-up-inner, - ${t}-handler-down-inner - `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:p,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${le(r)} ${n} ${P}`,transition:`all ${g} linear`,"&:active":{background:w},"&:hover":{height:"60%",[` - ${t}-handler-up-inner, - ${t}-handler-down-inner - `]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},V0()),{color:p,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderEndEndRadius:a}},ND(e,"lg")),ND(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[` - ${t}-handler-up-disabled, - ${t}-handler-down-disabled - `]:{cursor:"not-allowed"},[` - ${t}-handler-up-disabled:hover &-handler-up-inner, - ${t}-handler-down-disabled:hover &-handler-down-inner - `]:{color:E}})}]},vbe=e=>{const{componentCls:t,paddingBlock:r,paddingInline:n,inputAffixPadding:a,controlWidth:i,borderRadiusLG:o,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:c,paddingBlockLG:u,paddingBlockSM:f,motionDurationMid:m}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${le(r)} 0`}},_v(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:o,paddingInlineStart:l,[`input${t}-input`]:{padding:`${le(u)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:c,[`input${t}-input`]:{padding:`${le(f)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:a},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:n,marginInlineStart:a,transition:`margin ${m}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(n).equal()}}),[`${t}-underlined`]:{borderRadius:0}}},gbe=lr("InputNumber",e=>{const t=Zt(e,Hd(e));return[pbe(t),vbe(t),X0(t)]},hbe,{unitless:{handleOpacity:!0},resetFont:!1});var ybe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{getPrefixCls:r,direction:n}=d.useContext(Nt),a=d.useRef(null);d.useImperativeHandle(t,()=>a.current);const{className:i,rootClassName:o,size:s,disabled:l,prefixCls:c,addonBefore:u,addonAfter:f,prefix:m,suffix:h,bordered:p,readOnly:g,status:v,controls:y,variant:x}=e,b=ybe(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),S=r("input-number",c),w=vn(S),[E,C,O]=gbe(S,w),{compactSize:_,compactItemClassnames:P}=cl(S,n);let I=d.createElement(X1e,{className:`${S}-handler-up-inner`}),N=d.createElement(uI,{className:`${S}-handler-down-inner`});const D=typeof y=="boolean"?y:void 0;typeof y=="object"&&(I=typeof y.upIcon>"u"?I:d.createElement("span",{className:`${S}-handler-up-inner`},y.upIcon),N=typeof y.downIcon>"u"?N:d.createElement("span",{className:`${S}-handler-down-inner`},y.downIcon));const{hasFeedback:k,status:R,isFormItemInput:A,feedbackIcon:j}=d.useContext(ga),F=Fd(R,v),M=Da(Y=>{var G;return(G=s??_)!==null&&G!==void 0?G:Y}),V=d.useContext(Wi),K=l??V,[L,B]=Ld("inputNumber",x,p),W=k&&d.createElement(d.Fragment,null,j),z=ce({[`${S}-lg`]:M==="large",[`${S}-sm`]:M==="small",[`${S}-rtl`]:n==="rtl",[`${S}-in-form-item`]:A},C),U=`${S}-group`,X=d.createElement(mbe,Object.assign({ref:a,disabled:K,className:ce(O,w,i,o,P),upHandler:I,downHandler:N,prefixCls:S,readOnly:g,controls:D,prefix:m,suffix:W||h,addonBefore:u&&d.createElement(ol,{form:!0,space:!0},u),addonAfter:f&&d.createElement(ol,{form:!0,space:!0},f),classNames:{input:z,variant:ce({[`${S}-${L}`]:B},Uc(S,F,k)),affixWrapper:ce({[`${S}-affix-wrapper-sm`]:M==="small",[`${S}-affix-wrapper-lg`]:M==="large",[`${S}-affix-wrapper-rtl`]:n==="rtl",[`${S}-affix-wrapper-without-controls`]:y===!1||K||g},C),wrapper:ce({[`${U}-rtl`]:n==="rtl"},C),groupWrapper:ce({[`${S}-group-wrapper-sm`]:M==="small",[`${S}-group-wrapper-lg`]:M==="large",[`${S}-group-wrapper-rtl`]:n==="rtl",[`${S}-group-wrapper-${L}`]:B},Uc(`${S}-group-wrapper`,F,k),C)}},b));return E(X)}),nU=rU,xbe=e=>d.createElement(Dd,{theme:{components:{InputNumber:{handleVisible:!0}}}},d.createElement(rU,Object.assign({},e)));nU._InternalPanelDoNotUseOrYouWillBeFired=xbe;const Ks=nU,bbe=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:ve.createElement(jd,null)}),t},aU=bbe;function iU(e,t){const r=d.useRef([]),n=()=>{r.current.push(setTimeout(()=>{var a,i,o,s;!((a=e.current)===null||a===void 0)&&a.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((o=e.current)===null||o===void 0)&&o.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return d.useEffect(()=>(t&&n(),()=>r.current.forEach(a=>{a&&clearTimeout(a)})),[]),n}function Sbe(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var wbe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:r,bordered:n=!0,status:a,size:i,disabled:o,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:f,addonBefore:m,className:h,style:p,styles:g,rootClassName:v,onChange:y,classNames:x,variant:b,_skipAddonWarning:S}=e,w=wbe(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant","_skipAddonWarning"]),{getPrefixCls:E,direction:C,allowClear:O,autoComplete:_,className:P,style:I,classNames:N,styles:D}=oa("input"),k=E("input",r),R=d.useRef(null),A=vn(k),[j,F,M]=jV(k,v),[V]=FV(k,A),{compactSize:K,compactItemClassnames:L}=cl(k,C),B=Da(ye=>{var xe;return(xe=i??K)!==null&&xe!==void 0?xe:ye}),W=ve.useContext(Wi),z=o??W,{status:U,hasFeedback:X,feedbackIcon:Y}=d.useContext(ga),G=Fd(U,a),Q=Sbe(e)||!!X;d.useRef(Q);const ee=iU(R,!0),H=ye=>{ee(),s==null||s(ye)},fe=ye=>{ee(),l==null||l(ye)},te=ye=>{ee(),y==null||y(ye)},re=(X||c)&&ve.createElement(ve.Fragment,null,c,X&&Y),q=aU(u??O),[ne,he]=Ld("input",b,n);return j(V(ve.createElement(rbe,Object.assign({ref:xa(t,R),prefixCls:k,autoComplete:_},w,{disabled:z,onBlur:H,onFocus:fe,style:Object.assign(Object.assign({},I),p),styles:Object.assign(Object.assign({},D),g),suffix:re,allowClear:q,className:ce(h,v,M,A,L,P),onChange:te,addonBefore:m&&ve.createElement(ol,{form:!0,space:!0},m),addonAfter:f&&ve.createElement(ol,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},x),N),{input:ce({[`${k}-sm`]:B==="small",[`${k}-lg`]:B==="large",[`${k}-rtl`]:C==="rtl"},x==null?void 0:x.input,N.input,F),variant:ce({[`${k}-${ne}`]:he},Uc(k,G)),affixWrapper:ce({[`${k}-affix-wrapper-sm`]:B==="small",[`${k}-affix-wrapper-lg`]:B==="large",[`${k}-affix-wrapper-rtl`]:C==="rtl"},F),wrapper:ce({[`${k}-group-rtl`]:C==="rtl"},F),groupWrapper:ce({[`${k}-group-wrapper-sm`]:B==="small",[`${k}-group-wrapper-lg`]:B==="large",[`${k}-group-wrapper-rtl`]:C==="rtl",[`${k}-group-wrapper-${ne}`]:he},Uc(`${k}-group-wrapper`,G,X),F)})}))))}),Tv=Cbe;var Ebe={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"};const $be=Ebe;var _be=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:$be}))},Obe=d.forwardRef(_be);const Tbe=Obe,Pbe=(e,t,r,n,a)=>{const{classNames:i,styles:o}=oa(e),[s,l]=Mle([i,t],[o,r],{popup:{_default:"root"}});return d.useMemo(()=>{var c,u;const f=Object.assign(Object.assign({},s),{popup:Object.assign(Object.assign({},s.popup),{root:ce((c=s.popup)===null||c===void 0?void 0:c.root,n)})}),m=Object.assign(Object.assign({},l),{popup:Object.assign(Object.assign({},l.popup),{root:Object.assign(Object.assign({},(u=l.popup)===null||u===void 0?void 0:u.root),a)})});return[f,m]},[s,l,n,a])},oU=Pbe;function Ibe(e,t,r){return r!==void 0?r:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function Nbe(e,t,r){return r!==void 0?r:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function sU(e,t){const{allowClear:r=!0}=e,{clearIcon:n,removeIcon:a}=QH(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[d.useMemo(()=>r===!1?!1:Object.assign({clearIcon:n},r===!0?{}:r),[r,n]),a]}const[kbe,Rbe]=["week","WeekPicker"],[Abe,Mbe]=["month","MonthPicker"],[Dbe,jbe]=["year","YearPicker"],[Fbe,Lbe]=["quarter","QuarterPicker"],[KI,kD]=["time","TimePicker"];var Bbe={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"};const zbe=Bbe;var Hbe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:zbe}))},Wbe=d.forwardRef(Hbe);const jS=Wbe;var Vbe={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:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};const Ube=Vbe;var Kbe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:Ube}))},Gbe=d.forwardRef(Kbe);const Nh=Gbe,qbe=({picker:e,hasFeedback:t,feedbackIcon:r,suffixIcon:n})=>n===null||n===!1?null:n===!0||n===void 0?ve.createElement(ve.Fragment,null,e===KI?ve.createElement(Nh,null):ve.createElement(jS,null),t&&r):n,lU=qbe,Xbe=e=>d.createElement(kt,Object.assign({size:"small",type:"primary"},e)),Ybe=Xbe;function cU(e){return d.useMemo(()=>Object.assign({button:Ybe},e),[e])}var Qbe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);ad.forwardRef((r,n)=>{var a;const{prefixCls:i,getPopupContainer:o,components:s,className:l,style:c,placement:u,size:f,disabled:m,bordered:h=!0,placeholder:p,popupStyle:g,popupClassName:v,dropdownClassName:y,status:x,rootClassName:b,variant:S,picker:w,styles:E,classNames:C,suffixIcon:O}=r,_=Qbe(r,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames","suffixIcon"]),P=w===KI?"timePicker":"datePicker",I=d.useRef(null),{getPrefixCls:N,direction:D,getPopupContainer:k,rangePicker:R}=d.useContext(Nt),A=N("picker",i),{compactSize:j,compactItemClassnames:F}=cl(A,D),M=N(),[V,K]=Ld("rangePicker",S,h),L=vn(A),[B,W,z]=LV(A,L),[U,X]=oU(P,C,E,v||y,g),[Y]=sU(r,A),G=cU(s),Q=Da(pe=>{var Pe;return(Pe=f??j)!==null&&Pe!==void 0?Pe:pe}),ee=d.useContext(Wi),H=m??ee,fe=d.useContext(ga),{hasFeedback:te,status:re,feedbackIcon:q}=fe,ne=d.createElement(lU,{picker:w,hasFeedback:te,feedbackIcon:q,suffixIcon:O});d.useImperativeHandle(n,()=>I.current);const[he]=Hi("Calendar",Xx),ye=Object.assign(Object.assign({},he),r.locale),[xe]=uu("DatePicker",(a=X.popup.root)===null||a===void 0?void 0:a.zIndex);return B(d.createElement(ol,{space:!0},d.createElement(Eye,Object.assign({separator:d.createElement("span",{"aria-label":"to",className:`${A}-separator`},d.createElement(Tbe,null)),disabled:H,ref:I,placement:u,placeholder:Nbe(ye,w,p),suffixIcon:ne,prevIcon:d.createElement("span",{className:`${A}-prev-icon`}),nextIcon:d.createElement("span",{className:`${A}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${A}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${A}-super-next-icon`}),transitionName:`${M}-slide-up`,picker:w},_,{className:ce({[`${A}-${Q}`]:Q,[`${A}-${V}`]:K},Uc(A,Fd(re,x),te),W,F,l,R==null?void 0:R.className,z,L,b,U.root),style:Object.assign(Object.assign(Object.assign({},R==null?void 0:R.style),c),X.root),locale:ye.lang,prefixCls:A,getPopupContainer:o||k,generateConfig:e,components:G,direction:D,classNames:{popup:ce(W,z,L,b,U.popup.root)},styles:{popup:Object.assign(Object.assign({},X.popup.root),{zIndex:xe})},allowClear:Y}))))}),Jbe=Zbe;var eSe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const t=(l,c)=>{const u=c===kD?"timePicker":"datePicker";return d.forwardRef((m,h)=>{var p;const{prefixCls:g,getPopupContainer:v,components:y,style:x,className:b,rootClassName:S,size:w,bordered:E,placement:C,placeholder:O,popupStyle:_,popupClassName:P,dropdownClassName:I,disabled:N,status:D,variant:k,onCalendarChange:R,styles:A,classNames:j,suffixIcon:F}=m,M=eSe(m,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames","suffixIcon"]),{getPrefixCls:V,direction:K,getPopupContainer:L,[u]:B}=d.useContext(Nt),W=V("picker",g),{compactSize:z,compactItemClassnames:U}=cl(W,K),X=d.useRef(null),[Y,G]=Ld("datePicker",k,E),Q=vn(W),[ee,H,fe]=LV(W,Q);d.useImperativeHandle(h,()=>X.current);const te={showToday:!0},re=l||m.picker,q=V(),{onSelect:ne,multiple:he}=M,ye=ne&&l==="time"&&!he,xe=(be,Re,We)=>{R==null||R(be,Re,We),ye&&ne(be)},[pe,Pe]=oU(u,j,A,P||I,_),[$e,Ee]=sU(m,W),He=cU(y),Fe=Da(be=>{var Re;return(Re=w??z)!==null&&Re!==void 0?Re:be}),nt=d.useContext(Wi),qe=N??nt,Ge=d.useContext(ga),{hasFeedback:Le,status:Ne,feedbackIcon:Se}=Ge,je=d.createElement(lU,{picker:re,hasFeedback:Le,feedbackIcon:Se,suffixIcon:F}),[_e]=Hi("DatePicker",Xx),Me=Object.assign(Object.assign({},_e),m.locale),[ge]=uu("DatePicker",(p=Pe.popup.root)===null||p===void 0?void 0:p.zIndex);return ee(d.createElement(ol,{space:!0},d.createElement(Iye,Object.assign({ref:X,placeholder:Ibe(Me,re,O),suffixIcon:je,placement:C,prevIcon:d.createElement("span",{className:`${W}-prev-icon`}),nextIcon:d.createElement("span",{className:`${W}-next-icon`}),superPrevIcon:d.createElement("span",{className:`${W}-super-prev-icon`}),superNextIcon:d.createElement("span",{className:`${W}-super-next-icon`}),transitionName:`${q}-slide-up`,picker:l,onCalendarChange:xe},te,M,{locale:Me.lang,className:ce({[`${W}-${Fe}`]:Fe,[`${W}-${Y}`]:G},Uc(W,Fd(Ne,D),Le),H,U,B==null?void 0:B.className,b,fe,Q,S,pe.root),style:Object.assign(Object.assign(Object.assign({},B==null?void 0:B.style),x),Pe.root),prefixCls:W,getPopupContainer:v||L,generateConfig:e,components:He,direction:K,disabled:qe,classNames:{popup:ce(H,fe,Q,S,pe.popup.root)},styles:{popup:Object.assign(Object.assign({},Pe.popup.root),{zIndex:ge})},allowClear:$e,removeIcon:Ee}))))})},r=t(),n=t(kbe,Rbe),a=t(Abe,Mbe),i=t(Dbe,jbe),o=t(Fbe,Lbe),s=t(KI,kD);return{DatePicker:r,WeekPicker:n,MonthPicker:a,YearPicker:i,TimePicker:s,QuarterPicker:o}},rSe=tSe,nSe=e=>{const{DatePicker:t,WeekPicker:r,MonthPicker:n,YearPicker:a,TimePicker:i,QuarterPicker:o}=rSe(e),s=Jbe(e),l=t;return l.WeekPicker=r,l.MonthPicker=n,l.YearPicker=a,l.RangePicker=s,l.TimePicker=i,l.QuarterPicker=o,l},uU=nSe,am=uU(kge),aSe=xv(am,"popupAlign",void 0,"picker");am._InternalPanelDoNotUseOrYouWillBeFired=aSe;const iSe=xv(am.RangePicker,"popupAlign",void 0,"picker");am._InternalRangePanelDoNotUseOrYouWillBeFired=iSe;am.generatePicker=uU;const wp=am,oSe={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},sSe=oSe,lSe=ve.createContext({}),GI=lSe;var cSe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);aha(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function dSe(e,t,r){const n=d.useMemo(()=>t||uSe(r),[t,r]);return d.useMemo(()=>n.map(i=>{var{span:o}=i,s=cSe(i,["span"]);return o==="filled"?Object.assign(Object.assign({},s),{filled:!0}):Object.assign(Object.assign({},s),{span:typeof o=="number"?o:rW(e,o)})}),[n,e])}var fSe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);ao).forEach(o=>{const{filled:s}=o,l=fSe(o,["filled"]);if(s){n.push(l),r.push(n),n=[],i=0;return}const c=t-i;i+=o.span||1,i>=t?(i>t?(a=!0,n.push(Object.assign(Object.assign({},l),{span:c}))):n.push(l),r.push(n),n=[],i=0):n.push(l)}),n.length>0&&r.push(n),r=r.map(o=>{const s=o.reduce((l,c)=>l+(c.span||1),0);if(s{const[r,n]=d.useMemo(()=>mSe(t,e),[t,e]);return r},pSe=hSe,vSe=({children:e})=>e,gSe=vSe,ty=e=>e!=null,ySe=e=>{const{itemPrefixCls:t,component:r,span:n,className:a,style:i,labelStyle:o,contentStyle:s,bordered:l,label:c,content:u,colon:f,type:m,styles:h}=e,p=r,{classNames:g}=d.useContext(GI),v=Object.assign(Object.assign({},o),h==null?void 0:h.label),y=Object.assign(Object.assign({},s),h==null?void 0:h.content);return l?d.createElement(p,{colSpan:n,style:i,className:ce(a,{[`${t}-item-${m}`]:m==="label"||m==="content",[g==null?void 0:g.label]:(g==null?void 0:g.label)&&m==="label",[g==null?void 0:g.content]:(g==null?void 0:g.content)&&m==="content"})},ty(c)&&d.createElement("span",{style:v},c),ty(u)&&d.createElement("span",{style:y},u)):d.createElement(p,{colSpan:n,style:i,className:ce(`${t}-item`,a)},d.createElement("div",{className:`${t}-item-container`},ty(c)&&d.createElement("span",{style:v,className:ce(`${t}-item-label`,g==null?void 0:g.label,{[`${t}-item-no-colon`]:!f})},c),ty(u)&&d.createElement("span",{style:y,className:ce(`${t}-item-content`,g==null?void 0:g.content)},u)))},R2=ySe;function A2(e,{colon:t,prefixCls:r,bordered:n},{component:a,type:i,showLabel:o,showContent:s,labelStyle:l,contentStyle:c,styles:u}){return e.map(({label:f,children:m,prefixCls:h=r,className:p,style:g,labelStyle:v,contentStyle:y,span:x=1,key:b,styles:S},w)=>typeof a=="string"?d.createElement(R2,{key:`${i}-${b||w}`,className:p,style:g,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},l),u==null?void 0:u.label),v),S==null?void 0:S.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},c),u==null?void 0:u.content),y),S==null?void 0:S.content)},span:x,colon:t,component:a,itemPrefixCls:h,bordered:n,label:o?f:null,content:s?m:null,type:i}):[d.createElement(R2,{key:`label-${b||w}`,className:p,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},l),u==null?void 0:u.label),g),v),S==null?void 0:S.label),span:1,colon:t,component:a[0],itemPrefixCls:h,bordered:n,label:f,type:"label"}),d.createElement(R2,{key:`content-${b||w}`,className:p,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c),u==null?void 0:u.content),g),y),S==null?void 0:S.content),span:x*2-1,component:a[1],itemPrefixCls:h,bordered:n,content:m,type:"content"})])}const xSe=e=>{const t=d.useContext(GI),{prefixCls:r,vertical:n,row:a,index:i,bordered:o}=e;return n?d.createElement(d.Fragment,null,d.createElement("tr",{key:`label-${i}`,className:`${r}-row`},A2(a,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),d.createElement("tr",{key:`content-${i}`,className:`${r}-row`},A2(a,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):d.createElement("tr",{key:i,className:`${r}-row`},A2(a,e,Object.assign({component:o?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},bSe=xSe,SSe=e=>{const{componentCls:t,labelBg:r}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:first-child":{"> th:first-child, > td:first-child":{borderStartStartRadius:e.borderRadiusLG}},"&:last-child":{borderBottom:"none","> th:first-child, > td:first-child":{borderEndStartRadius:e.borderRadiusLG}},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${le(e.padding)} ${le(e.paddingLG)}`,borderInlineEnd:`${le(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:r,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${le(e.paddingSM)} ${le(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${le(e.paddingXS)} ${le(e.padding)}`}}}}}},wSe=e=>{const{componentCls:t,extraColor:r,itemPaddingBottom:n,itemPaddingEnd:a,colonMarginRight:i,colonMarginLeft:o,titleMarginBottom:s}=e;return{[t]:Object.assign(Object.assign(Object.assign({},dr(e)),SSe(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:s},[`${t}-title`]:Object.assign(Object.assign({},Uo),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:r,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:n,paddingInlineEnd:a},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.labelColor,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${le(o)} ${le(i)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},CSe=e=>({labelBg:e.colorFillAlter,labelColor:e.colorTextTertiary,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}),ESe=lr("Descriptions",e=>{const t=Zt(e,{});return wSe(t)},CSe);var $Se=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,title:r,extra:n,column:a,colon:i=!0,bordered:o,layout:s,children:l,className:c,rootClassName:u,style:f,size:m,labelStyle:h,contentStyle:p,styles:g,items:v,classNames:y}=e,x=$Se(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:b,direction:S,className:w,style:E,classNames:C,styles:O}=oa("descriptions"),_=b("descriptions",t),P=wv(),I=d.useMemo(()=>{var M;return typeof a=="number"?a:(M=rW(P,Object.assign(Object.assign({},sSe),a)))!==null&&M!==void 0?M:3},[P,a]),N=dSe(P,v,l),D=Da(m),k=pSe(I,N),[R,A,j]=ESe(_),F=d.useMemo(()=>({labelStyle:h,contentStyle:p,styles:{content:Object.assign(Object.assign({},O.content),g==null?void 0:g.content),label:Object.assign(Object.assign({},O.label),g==null?void 0:g.label)},classNames:{label:ce(C.label,y==null?void 0:y.label),content:ce(C.content,y==null?void 0:y.content)}}),[h,p,g,y,C,O]);return R(d.createElement(GI.Provider,{value:F},d.createElement("div",Object.assign({className:ce(_,w,C.root,y==null?void 0:y.root,{[`${_}-${D}`]:D&&D!=="default",[`${_}-bordered`]:!!o,[`${_}-rtl`]:S==="rtl"},c,u,A,j),style:Object.assign(Object.assign(Object.assign(Object.assign({},E),O.root),g==null?void 0:g.root),f)},x),(r||n)&&d.createElement("div",{className:ce(`${_}-header`,C.header,y==null?void 0:y.header),style:Object.assign(Object.assign({},O.header),g==null?void 0:g.header)},r&&d.createElement("div",{className:ce(`${_}-title`,C.title,y==null?void 0:y.title),style:Object.assign(Object.assign({},O.title),g==null?void 0:g.title)},r),n&&d.createElement("div",{className:ce(`${_}-extra`,C.extra,y==null?void 0:y.extra),style:Object.assign(Object.assign({},O.extra),g==null?void 0:g.extra)},n)),d.createElement("div",{className:`${_}-view`},d.createElement("table",null,d.createElement("tbody",null,k.map((M,V)=>d.createElement(bSe,{key:V,index:V,colon:i,prefixCls:_,vertical:s==="vertical",bordered:o,row:M}))))))))};dU.Item=gSe;const fU=dU;function RD(e){return["small","middle","large"].includes(e)}function AD(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const _Se=e=>{const{componentCls:t,borderRadius:r,paddingSM:n,colorBorder:a,paddingXS:i,fontSizeLG:o,fontSizeSM:s,borderRadiusLG:l,borderRadiusSM:c,colorBgContainerDisabled:u,lineWidth:f}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:n,margin:0,background:u,borderWidth:f,borderStyle:"solid",borderColor:a,borderRadius:r,"&-large":{fontSize:o,borderRadius:l},"&-small":{paddingInline:i,borderRadius:c,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0}},X0(e,{focus:!1})]}},OSe=lr(["Space","Addon"],e=>[_Se(e)]);var TSe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{className:r,children:n,style:a,prefixCls:i}=e,o=TSe(e,["className","children","style","prefixCls"]),{getPrefixCls:s,direction:l}=ve.useContext(Nt),c=s("space-addon",i),[u,f,m]=OSe(c),{compactItemClassnames:h,compactSize:p}=cl(c,l),g=ce(c,f,h,m,{[`${c}-${p}`]:p},r);return u(ve.createElement("div",Object.assign({ref:t,className:g,style:a},o),n))}),ISe=PSe,mU=ve.createContext({latestIndex:0}),NSe=mU.Provider,kSe=({className:e,index:t,children:r,split:n,style:a})=>{const{latestIndex:i}=d.useContext(mU);return r==null?null:d.createElement(d.Fragment,null,d.createElement("div",{className:e,style:a},r),t{const{componentCls:t,antCls:r}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${r}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},MSe=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},DSe=lr("Space",e=>{const t=Zt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[ASe(t),MSe(t)]},()=>({}),{resetStyle:!1});var jSe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var r;const{getPrefixCls:n,direction:a,size:i,className:o,style:s,classNames:l,styles:c}=oa("space"),{size:u=i??"small",align:f,className:m,rootClassName:h,children:p,direction:g="horizontal",prefixCls:v,split:y,style:x,wrap:b=!1,classNames:S,styles:w}=e,E=jSe(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[C,O]=Array.isArray(u)?u:[u,u],_=RD(O),P=RD(C),I=AD(O),N=AD(C),D=ha(p,{keepEmpty:!0}),k=f===void 0&&g==="horizontal"?"center":f,R=n("space",v),[A,j,F]=DSe(R),M=ce(R,o,j,`${R}-${g}`,{[`${R}-rtl`]:a==="rtl",[`${R}-align-${k}`]:k,[`${R}-gap-row-${O}`]:_,[`${R}-gap-col-${C}`]:P},m,h,F),V=ce(`${R}-item`,(r=S==null?void 0:S.item)!==null&&r!==void 0?r:l.item),K=Object.assign(Object.assign({},c.item),w==null?void 0:w.item),L=D.map((z,U)=>{const X=(z==null?void 0:z.key)||`${V}-${U}`;return d.createElement(RSe,{className:V,key:X,index:U,split:y,style:K},z)}),B=d.useMemo(()=>({latestIndex:D.reduce((U,X,Y)=>X!=null?Y:U,0)}),[D]);if(D.length===0)return null;const W={};return b&&(W.flexWrap="wrap"),!P&&N&&(W.columnGap=C),!_&&I&&(W.rowGap=O),A(d.createElement("div",Object.assign({ref:t,className:M,style:Object.assign(Object.assign(Object.assign({},W),s),x)},E),d.createElement(NSe,{value:B},L)))}),qI=FSe;qI.Compact=Mce;qI.Addon=ISe;const En=qI;var LSe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{getPopupContainer:t,getPrefixCls:r,direction:n}=d.useContext(Nt),{prefixCls:a,type:i="default",danger:o,disabled:s,loading:l,onClick:c,htmlType:u,children:f,className:m,menu:h,arrow:p,autoFocus:g,overlay:v,trigger:y,align:x,open:b,onOpenChange:S,placement:w,getPopupContainer:E,href:C,icon:O=d.createElement(wI,null),title:_,buttonsRender:P=ee=>ee,mouseEnterDelay:I,mouseLeaveDelay:N,overlayClassName:D,overlayStyle:k,destroyOnHidden:R,destroyPopupOnHide:A,dropdownRender:j,popupRender:F}=e,M=LSe(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),V=r("dropdown",a),K=`${V}-button`,B={menu:h,arrow:p,autoFocus:g,align:x,disabled:s,trigger:s?[]:y,onOpenChange:S,getPopupContainer:E||t,mouseEnterDelay:I,mouseLeaveDelay:N,overlayClassName:D,overlayStyle:k,destroyOnHidden:R,popupRender:F||j},{compactSize:W,compactItemClassnames:z}=cl(V,n),U=ce(K,z,m);"destroyPopupOnHide"in e&&(B.destroyPopupOnHide=A),"overlay"in e&&(B.overlay=v),"open"in e&&(B.open=b),"placement"in e?B.placement=w:B.placement=n==="rtl"?"bottomLeft":"bottomRight";const X=d.createElement(kt,{type:i,danger:o,disabled:s,loading:l,onClick:c,htmlType:u,href:C,title:_},f),Y=d.createElement(kt,{type:i,danger:o,icon:O}),[G,Q]=P([X,Y]);return d.createElement(En.Compact,Object.assign({className:U,size:W,block:!0},M),G,d.createElement(LW,Object.assign({},B),Q))};hU.__ANT_BUTTON=!0;const BSe=hU,pU=LW;pU.Button=BSe;const XI=pU;function zSe(e){return e==null?null:typeof e=="object"&&!d.isValidElement(e)?e:{title:e}}var HSe={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"};const WSe=HSe;var VSe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:WSe}))},USe=d.forwardRef(VSe);const YI=USe;function c1(e){const[t,r]=d.useState(e);return d.useEffect(()=>{const n=setTimeout(()=>{r(e)},e.length?0:10);return()=>{clearTimeout(n)}},[e]),t}const KSe=e=>{const{componentCls:t}=e,r=`${t}-show-help`,n=`${t}-show-help-item`;return{[r]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut}, - opacity ${e.motionDurationFast} ${e.motionEaseInOut}, - transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},GSe=KSe,qSe=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${le(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),MD=(e,t)=>{const{formItemCls:r}=e;return{[r]:{[`${r}-label > label`]:{height:t},[`${r}-control-input`]:{minHeight:t}}}},XSe=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},dr(e)),qSe(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},MD(e,e.controlHeightSM)),"&-large":Object.assign({},MD(e,e.controlHeightLG))})}},YSe=e=>{const{formItemCls:t,iconCls:r,rootPrefixCls:n,antCls:a,labelRequiredMarkColor:i,labelColor:o,labelFontSize:s,labelHeight:l,labelColonMarginInlineStart:c,labelColonMarginInlineEnd:u,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},dr(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, - &-hidden${a}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:l,color:o,fontSize:s,[`> ${r}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:c,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${n}-col-'"]):not([class*="' ${n}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${a}-switch:only-child, > ${a}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:qP,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Ru=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),QSe=e=>{const{antCls:t,formItemCls:r}=e;return{[`${r}-horizontal`]:{[`${r}-label`]:{flexGrow:0},[`${r}-control`]:{flex:"1 1 0",minWidth:0},[`${r}-label[class$='-24'], ${r}-label[class*='-24 ']`]:{[`& + ${r}-control`]:{minWidth:"unset"}},[`${t}-col-24${r}-label, - ${t}-col-xl-24${r}-label`]:Ru(e)}}},ZSe=e=>{const{componentCls:t,formItemCls:r,inlineItemMarginBottom:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${r}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:n,"&-row":{flexWrap:"nowrap"},[`> ${r}-label, - > ${r}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${r}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${r}-has-feedback`]:{display:"inline-block"}}}}},JSe=e=>{const{componentCls:t,formItemCls:r,rootPrefixCls:n}=e;return{[`${r} ${r}-label`]:Ru(e),[`${t}:not(${t}-inline)`]:{[r]:{flexWrap:"wrap",[`${r}-label, ${r}-control`]:{[`&:not([class*=" ${n}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},ewe=e=>{const{componentCls:t,formItemCls:r,antCls:n}=e;return{[`${r}-vertical`]:{[`${r}-row`]:{flexDirection:"column"},[`${r}-label > label`]:{height:"auto"},[`${r}-control`]:{width:"100%"},[`${r}-label, - ${n}-col-24${r}-label, - ${n}-col-xl-24${r}-label`]:Ru(e)},[`@media (max-width: ${le(e.screenXSMax)})`]:[JSe(e),{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-xs-24${r}-label`]:Ru(e)}}}],[`@media (max-width: ${le(e.screenSMMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-sm-24${r}-label`]:Ru(e)}}},[`@media (max-width: ${le(e.screenMDMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-md-24${r}-label`]:Ru(e)}}},[`@media (max-width: ${le(e.screenLGMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-lg-24${r}-label`]:Ru(e)}}}}},twe=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),vU=(e,t)=>Zt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),QI=lr("Form",(e,{rootPrefixCls:t})=>{const r=vU(e,t);return[XSe(r),YSe(r),GSe(r),QSe(r),ZSe(r),ewe(r),aS(r),qP]},twe,{order:-1e3}),DD=[];function M2(e,t,r,n=0){return{key:typeof e=="string"?e:`${t}-${n}`,error:e,errorStatus:r}}const rwe=({help:e,helpStatus:t,errors:r=DD,warnings:n=DD,className:a,fieldId:i,onVisibleChanged:o})=>{const{prefixCls:s}=d.useContext(rI),l=`${s}-item-explain`,c=vn(s),[u,f,m]=QI(s,c),h=d.useMemo(()=>vp(s),[s]),p=c1(r),g=c1(n),v=d.useMemo(()=>e!=null?[M2(e,"help",t)]:[].concat(De(p.map((b,S)=>M2(b,"error","error",S))),De(g.map((b,S)=>M2(b,"warning","warning",S)))),[e,t,p,g]),y=d.useMemo(()=>{const b={};return v.forEach(({key:S})=>{b[S]=(b[S]||0)+1}),v.map((S,w)=>Object.assign(Object.assign({},S),{key:b[S.key]>1?`${S.key}-fallback-${w}`:S.key}))},[v]),x={};return i&&(x.id=`${i}_help`),u(d.createElement(Vi,{motionDeadline:h.motionDeadline,motionName:`${s}-show-help`,visible:!!y.length,onVisibleChanged:o},b=>{const{className:S,style:w}=b;return d.createElement("div",Object.assign({},x,{className:ce(l,S,m,c,a,f),style:w}),d.createElement(LP,Object.assign({keys:y},vp(s),{motionName:`${s}-show-help-item`,component:!1}),E=>{const{key:C,error:O,errorStatus:_,className:P,style:I}=E;return d.createElement("div",{key:C,className:ce(P,{[`${l}-${_}`]:_}),style:I},O)}))}))},gU=rwe;var nwe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const r=d.useContext(Wi),{getPrefixCls:n,direction:a,requiredMark:i,colon:o,scrollToFirstError:s,className:l,style:c}=oa("form"),{prefixCls:u,className:f,rootClassName:m,size:h,disabled:p=r,form:g,colon:v,labelAlign:y,labelWrap:x,labelCol:b,wrapperCol:S,hideRequiredMark:w,layout:E="horizontal",scrollToFirstError:C,requiredMark:O,onFinishFailed:_,name:P,style:I,feedbackIcons:N,variant:D}=e,k=nwe(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),R=Da(h),A=d.useContext(G7),j=d.useMemo(()=>O!==void 0?O:w?!1:i!==void 0?i:!0,[w,O,i]),F=v??o,M=n("form",u),V=vn(M),[K,L,B]=QI(M,V),W=ce(M,`${M}-${E}`,{[`${M}-hide-required-mark`]:j===!1,[`${M}-rtl`]:a==="rtl",[`${M}-${R}`]:R},B,V,L,l,f,m),[z]=IV(g),{__INTERNAL__:U}=z;U.name=P;const X=d.useMemo(()=>({name:P,labelAlign:y,labelCol:b,labelWrap:x,wrapperCol:S,layout:E,colon:F,requiredMark:j,itemRef:U.itemRef,form:z,feedbackIcons:N}),[P,y,b,S,E,F,j,z,N]),Y=d.useRef(null);d.useImperativeHandle(t,()=>{var ee;return Object.assign(Object.assign({},z),{nativeElement:(ee=Y.current)===null||ee===void 0?void 0:ee.nativeElement})});const G=(ee,H)=>{if(ee){let fe={block:"nearest"};typeof ee=="object"&&(fe=Object.assign(Object.assign({},fe),ee)),z.scrollToField(H,fe)}},Q=ee=>{if(_==null||_(ee),ee.errorFields.length){const H=ee.errorFields[0].name;if(C!==void 0){G(C,H);return}s!==void 0&&G(s,H)}};return K(d.createElement(fH.Provider,{value:D},d.createElement(DP,{disabled:p},d.createElement(fv.Provider,{value:R},d.createElement(uH,{validateMessages:A},d.createElement(kl.Provider,{value:X},d.createElement(dH,{status:!0},d.createElement(Y0,Object.assign({id:P},k,{name:P,onFinishFailed:Q,form:z,ref:Y,style:Object.assign(Object.assign({},c),I),className:W})))))))))},iwe=d.forwardRef(awe),owe=iwe;function swe(e){if(typeof e=="function")return e;const t=ha(e);return t.length<=1?t[0]:t}const yU=()=>{const{status:e,errors:t=[],warnings:r=[]}=d.useContext(ga);return{status:e,errors:t,warnings:r}};yU.Context=ga;const lwe=yU;function cwe(e){const[t,r]=d.useState(e),n=d.useRef(null),a=d.useRef([]),i=d.useRef(!1);d.useEffect(()=>(i.current=!1,()=>{i.current=!0,Ut.cancel(n.current),n.current=null}),[]);function o(s){i.current||(n.current===null&&(a.current=[],n.current=Ut(()=>{n.current=null,r(l=>{let c=l;return a.current.forEach(u=>{c=u(c)}),c})})),a.current.push(s))}return[t,o]}function uwe(){const{itemRef:e}=d.useContext(kl),t=d.useRef({});function r(n,a){const i=a&&typeof a=="object"&&su(a),o=n.join("_");return(t.current.name!==o||t.current.originRef!==i)&&(t.current.name=o,t.current.originRef=i,t.current.ref=xa(e(n),i)),t.current.ref}return r}const dwe=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},fwe=U0(["Form","item-item"],(e,{rootPrefixCls:t})=>{const r=vU(e,t);return dwe(r)});var mwe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,status:r,labelCol:n,wrapperCol:a,children:i,errors:o,warnings:s,_internalItemRender:l,extra:c,help:u,fieldId:f,marginBottom:m,onErrorVisibleChanged:h,label:p}=e,g=`${t}-item`,v=d.useContext(kl),y=d.useMemo(()=>{let k=Object.assign({},a||v.wrapperCol||{});return p===null&&!n&&!a&&v.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(A=>{const j=A?[A]:[],F=yi(v.labelCol,j),M=typeof F=="object"?F:{},V=yi(k,j),K=typeof V=="object"?V:{};"span"in M&&!("offset"in K)&&M.spanmwe(v,["labelCol","wrapperCol"]),[v]),S=d.useRef(null),[w,E]=d.useState(0);Gt(()=>{c&&S.current?E(S.current.clientHeight):E(0)},[c]);const C=d.createElement("div",{className:`${g}-control-input`},d.createElement("div",{className:`${g}-control-input-content`},i)),O=d.useMemo(()=>({prefixCls:t,status:r}),[t,r]),_=m!==null||o.length||s.length?d.createElement(rI.Provider,{value:O},d.createElement(gU,{fieldId:f,errors:o,warnings:s,help:u,helpStatus:r,className:`${g}-explain-connected`,onVisibleChanged:h})):null,P={};f&&(P.id=`${f}_extra`);const I=c?d.createElement("div",Object.assign({},P,{className:`${g}-extra`,ref:S}),c):null,N=_||I?d.createElement("div",{className:`${g}-additional`,style:m?{minHeight:m+w}:{}},_,I):null,D=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:C,errorList:_,extra:I}):d.createElement(d.Fragment,null,C,N);return d.createElement(kl.Provider,{value:b},d.createElement(Qr,Object.assign({},y,{className:x}),D),d.createElement(fwe,{prefixCls:t}))},vwe=pwe;var gwe={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"};const ywe=gwe;var xwe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:ywe}))},bwe=d.forwardRef(xwe);const xU=bwe;var Swe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var u;const[f]=Hi("Form"),{labelAlign:m,labelCol:h,labelWrap:p,colon:g}=d.useContext(kl);if(!t)return null;const v=n||h||{},y=a||m,x=`${e}-item-label`,b=ce(x,y==="left"&&`${x}-left`,v.className,{[`${x}-wrap`]:!!p});let S=t;const w=i===!0||g!==!1&&i!==!1;w&&!c&&typeof t=="string"&&t.trim()&&(S=t.replace(/[:|:]\s*$/,""));const C=zSe(l);if(C){const{icon:D=d.createElement(xU,null)}=C,k=Swe(C,["icon"]),R=d.createElement(Os,Object.assign({},k),d.cloneElement(D,{className:`${e}-item-tooltip`,title:"",onClick:A=>{A.preventDefault()},tabIndex:null}));S=d.createElement(d.Fragment,null,S,R)}const O=s==="optional",_=typeof s=="function",P=s===!1;_?S=s(S,{required:!!o}):O&&!o&&(S=d.createElement(d.Fragment,null,S,d.createElement("span",{className:`${e}-item-optional`,title:""},(f==null?void 0:f.optional)||((u=Vo.Form)===null||u===void 0?void 0:u.optional))));let I;P?I="hidden":(O||_)&&(I="optional");const N=ce({[`${e}-item-required`]:o,[`${e}-item-required-mark-${I}`]:I,[`${e}-item-no-colon`]:!w});return d.createElement(Qr,Object.assign({},v,{className:b}),d.createElement("label",{htmlFor:r,className:N,title:typeof t=="string"?t:""},S))},Cwe=wwe,Ewe={success:mv,warning:G0,error:jd,validating:Wc};function bU({children:e,errors:t,warnings:r,hasFeedback:n,validateStatus:a,prefixCls:i,meta:o,noStyle:s,name:l}){const c=`${i}-item`,{feedbackIcons:u}=d.useContext(kl),f=PV(t,r,o,null,!!n,a),{isFormItemInput:m,status:h,hasFeedback:p,feedbackIcon:g,name:v}=d.useContext(ga),y=d.useMemo(()=>{var x;let b;if(n){const w=n!==!0&&n.icons||u,E=f&&((x=w==null?void 0:w({status:f,errors:t,warnings:r}))===null||x===void 0?void 0:x[f]),C=f?Ewe[f]:null;b=E!==!1&&C?d.createElement("span",{className:ce(`${c}-feedback-icon`,`${c}-feedback-icon-${f}`)},E||d.createElement(C,null)):null}const S={status:f||"",errors:t,warnings:r,hasFeedback:!!n,feedbackIcon:b,isFormItemInput:!0,name:l};return s&&(S.status=(f??h)||"",S.isFormItemInput=m,S.hasFeedback=!!(n??p),S.feedbackIcon=n!==void 0?S.feedbackIcon:g,S.name=l??v),S},[f,n,s,m,h]);return d.createElement(ga.Provider,{value:y},e)}var $we=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{if(D&&_.current){const K=getComputedStyle(_.current);A(Number.parseInt(K.marginBottom,10))}},[D,k]);const j=K=>{K||A(null)},M=((K=!1)=>{const L=K?P:c.errors,B=K?I:c.warnings;return PV(L,B,c,"",!!u,l)})(),V=ce(S,r,n,{[`${S}-with-help`]:N||P.length||I.length,[`${S}-has-feedback`]:M&&u,[`${S}-has-success`]:M==="success",[`${S}-has-warning`]:M==="warning",[`${S}-has-error`]:M==="error",[`${S}-is-validating`]:M==="validating",[`${S}-hidden`]:f,[`${S}-${C}`]:C});return d.createElement("div",{className:V,style:a,ref:_},d.createElement(cs,Object.assign({className:`${S}-row`},Er(b,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),d.createElement(Cwe,Object.assign({htmlFor:h},e,{requiredMark:w,required:p??g,prefixCls:t,vertical:O})),d.createElement(vwe,Object.assign({},e,c,{errors:P,warnings:I,prefixCls:t,status:M,help:i,marginBottom:R,onErrorVisibleChanged:j}),d.createElement(cH.Provider,{value:v},d.createElement(bU,{prefixCls:t,meta:c,errors:c.errors,warnings:c.warnings,hasFeedback:u,validateStatus:M,name:x},m)))),!!R&&d.createElement("div",{className:`${S}-margin-offset`,style:{marginBottom:-R}}))}const Owe="__SPLIT__";function Twe(e,t){const r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(a=>{const i=e[a],o=t[a];return i===o||typeof i=="function"||typeof o=="function"})}const Pwe=d.memo(({children:e})=>e,(e,t)=>Twe(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((r,n)=>r===t.childProps[n]));function jD(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Iwe(e){const{name:t,noStyle:r,className:n,dependencies:a,prefixCls:i,shouldUpdate:o,rules:s,children:l,required:c,label:u,messageVariables:f,trigger:m="onChange",validateTrigger:h,hidden:p,help:g,layout:v}=e,{getPrefixCls:y}=d.useContext(Nt),{name:x}=d.useContext(kl),b=swe(l),S=typeof b=="function",w=d.useContext(cH),{validateTrigger:E}=d.useContext(hd),C=h!==void 0?h:E,O=t!=null,_=y("form",i),P=vn(_),[I,N,D]=QI(_,P);lu();const k=d.useContext(yp),R=d.useRef(null),[A,j]=cwe({}),[F,M]=fd(()=>jD()),V=X=>{const Y=k==null?void 0:k.getKey(X.name);if(M(X.destroy?jD():X,!0),r&&g!==!1&&w){let G=X.name;if(X.destroy)G=R.current||G;else if(Y!==void 0){const[Q,ee]=Y;G=[Q].concat(De(ee)),R.current=G}w(X,G)}},K=(X,Y)=>{j(G=>{const Q=Object.assign({},G),H=[].concat(De(X.name.slice(0,-1)),De(Y)).join(Owe);return X.destroy?delete Q[H]:Q[H]=X,Q})},[L,B]=d.useMemo(()=>{const X=De(F.errors),Y=De(F.warnings);return Object.values(A).forEach(G=>{X.push.apply(X,De(G.errors||[])),Y.push.apply(Y,De(G.warnings||[]))}),[X,Y]},[A,F.errors,F.warnings]),W=uwe();function z(X,Y,G){return r&&!p?d.createElement(bU,{prefixCls:_,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:F,errors:L,warnings:B,noStyle:!0,name:t},X):d.createElement(_we,Object.assign({key:"row"},e,{className:ce(n,D,P,N),prefixCls:_,fieldId:Y,isRequired:G,errors:L,warnings:B,meta:F,onSubItemMetaChange:K,layout:v,name:t}),X)}if(!O&&!S&&!a)return I(z(b));let U={};return typeof u=="string"?U.label=u:t&&(U.label=String(t)),f&&(U=Object.assign(Object.assign({},U),f)),I(d.createElement(eI,Object.assign({},e,{messageVariables:U,trigger:m,validateTrigger:C,onMetaChange:V}),(X,Y,G)=>{const Q=Ph(t).length&&Y?Y.name:[],ee=TV(Q,x),H=c!==void 0?c:!!(s!=null&&s.some(re=>{if(re&&typeof re=="object"&&re.required&&!re.warningOnly)return!0;if(typeof re=="function"){const q=re(G);return(q==null?void 0:q.required)&&!(q!=null&&q.warningOnly)}return!1})),fe=Object.assign({},X);let te=null;if(Array.isArray(b)&&O)te=b;else if(!(S&&(!(o||a)||O))){if(!(a&&!S&&!O))if(d.isValidElement(b)){const re=Object.assign(Object.assign({},b.props),fe);if(re.id||(re.id=ee),g||L.length>0||B.length>0||e.extra){const he=[];(g||L.length>0)&&he.push(`${ee}_help`),e.extra&&he.push(`${ee}_extra`),re["aria-describedby"]=he.join(" ")}L.length>0&&(re["aria-invalid"]="true"),H&&(re["aria-required"]="true"),_s(b)&&(re.ref=W(Q,b)),new Set([].concat(De(Ph(m)),De(Ph(C)))).forEach(he=>{re[he]=(...ye)=>{var xe,pe,Pe,$e,Ee;(Pe=fe[he])===null||Pe===void 0||(xe=Pe).call.apply(xe,[fe].concat(ye)),(Ee=($e=b.props)[he])===null||Ee===void 0||(pe=Ee).call.apply(pe,[$e].concat(ye))}});const ne=[re["aria-required"],re["aria-invalid"],re["aria-describedby"]];te=d.createElement(Pwe,{control:fe,update:b,childProps:ne},pa(b,re))}else S&&(o||a)&&!O?te=b(G):te=b}return z(te,ee,H)}))}const SU=Iwe;SU.useStatus=lwe;const Nwe=SU;var kwe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var{prefixCls:t,children:r}=e,n=kwe(e,["prefixCls","children"]);const{getPrefixCls:a}=d.useContext(Nt),i=a("form",t),o=d.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return d.createElement(iH,Object.assign({},n),(s,l,c)=>d.createElement(rI.Provider,{value:o},r(s.map(u=>Object.assign(Object.assign({},u),{fieldKey:u.key})),l,{errors:c.errors,warnings:c.warnings})))},Awe=Rwe;function Mwe(){const{form:e}=d.useContext(kl);return e}const Vl=owe;Vl.Item=Nwe;Vl.List=Awe;Vl.ErrorList=gU;Vl.useForm=IV;Vl.useFormInstance=Mwe;Vl.useWatch=lH;Vl.Provider=uH;Vl.create=()=>{};const Ht=Vl;var Dwe={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"};const jwe=Dwe;var Fwe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:jwe}))},Lwe=d.forwardRef(Fwe);const Pv=Lwe;function FD(e,t,r,n){var a=ap.unstable_batchedUpdates?function(o){ap.unstable_batchedUpdates(r,o)}:r;return e!=null&&e.addEventListener&&e.addEventListener(t,a,n),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,a,n)}}}const Bwe=e=>{const{getPrefixCls:t,direction:r}=d.useContext(Nt),{prefixCls:n,className:a}=e,i=t("input-group",n),o=t("input"),[s,l,c]=FV(o),u=ce(i,c,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:r==="rtl"},l,a),f=d.useContext(ga),m=d.useMemo(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s(d.createElement("span",{className:u,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},d.createElement(ga.Provider,{value:m},e.children)))},zwe=Bwe,Hwe=e=>{const{componentCls:t,paddingXS:r}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:r,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},Wwe=lr(["Input","OTP"],e=>{const t=Zt(e,Hd(e));return Hwe(t)},Wd);var Vwe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{className:r,value:n,onChange:a,onActiveChange:i,index:o,mask:s}=e,l=Vwe(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:c}=d.useContext(Nt),u=c("otp"),f=typeof s=="string"?s:n,m=d.useRef(null);d.useImperativeHandle(t,()=>m.current);const h=v=>{a(o,v.target.value)},p=()=>{Ut(()=>{var v;const y=(v=m.current)===null||v===void 0?void 0:v.input;document.activeElement===y&&y&&y.select()})},g=v=>{const{key:y,ctrlKey:x,metaKey:b}=v;y==="ArrowLeft"?i(o-1):y==="ArrowRight"?i(o+1):y==="z"&&(x||b)?v.preventDefault():y==="Backspace"&&!n&&i(o-1),p()};return d.createElement("span",{className:`${u}-input-wrapper`,role:"presentation"},s&&n!==""&&n!==void 0&&d.createElement("span",{className:`${u}-mask-icon`,"aria-hidden":"true"},f),d.createElement(Tv,Object.assign({"aria-label":`OTP Input ${o+1}`,type:s===!0?"password":"text"},l,{ref:m,value:n,onInput:h,onFocus:p,onKeyDown:g,onMouseDown:p,onMouseUp:p,className:ce(r,{[`${u}-mask-input`]:s})})))}),Kwe=Uwe;var Gwe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{index:t,prefixCls:r,separator:n}=e,a=typeof n=="function"?n(t):n;return a?d.createElement("span",{className:`${r}-separator`},a):null},Xwe=d.forwardRef((e,t)=>{const{prefixCls:r,length:n=6,size:a,defaultValue:i,value:o,onChange:s,formatter:l,separator:c,variant:u,disabled:f,status:m,autoFocus:h,mask:p,type:g,onInput:v,inputMode:y}=e,x=Gwe(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:b,direction:S}=d.useContext(Nt),w=b("otp",r),E=Dn(x,{aria:!0,data:!0,attr:!0}),[C,O,_]=Wwe(w),P=Da(W=>a??W),I=d.useContext(ga),N=Fd(I.status,m),D=d.useMemo(()=>Object.assign(Object.assign({},I),{status:N,hasFeedback:!1,feedbackIcon:null}),[I,N]),k=d.useRef(null),R=d.useRef({});d.useImperativeHandle(t,()=>({focus:()=>{var W;(W=R.current[0])===null||W===void 0||W.focus()},blur:()=>{var W;for(let z=0;zl?l(W):W,[j,F]=d.useState(()=>ry(A(i||"")));d.useEffect(()=>{o!==void 0&&F(ry(o))},[o]);const M=qt(W=>{F(W),v&&v(W),s&&W.length===n&&W.every(z=>z)&&W.some((z,U)=>j[U]!==z)&&s(W.join(""))}),V=qt((W,z)=>{let U=De(j);for(let Y=0;Y=0&&!U[Y];Y-=1)U.pop();const X=A(U.map(Y=>Y||" ").join(""));return U=ry(X).map((Y,G)=>Y===" "&&!U[G]?U[G]:Y),U}),K=(W,z)=>{var U;const X=V(W,z),Y=Math.min(W+z.length,n-1);Y!==W&&X[W]!==void 0&&((U=R.current[Y])===null||U===void 0||U.focus()),M(X)},L=W=>{var z;(z=R.current[W])===null||z===void 0||z.focus()},B={variant:u,disabled:f,status:N,mask:p,type:g,inputMode:y};return C(d.createElement("div",Object.assign({},E,{ref:k,className:ce(w,{[`${w}-sm`]:P==="small",[`${w}-lg`]:P==="large",[`${w}-rtl`]:S==="rtl"},_,O),role:"group"}),d.createElement(ga.Provider,{value:D},Array.from({length:n}).map((W,z)=>{const U=`otp-${z}`,X=j[z]||"";return d.createElement(d.Fragment,{key:U},d.createElement(Kwe,Object.assign({ref:Y=>{R.current[z]=Y},index:z,size:P,htmlSize:1,className:`${w}-input`,onChange:K,value:X,onActiveChange:L,autoFocus:z===0&&h},B)),ze?d.createElement(Pv,null):d.createElement(wU,null),nCe={click:"onClick",hover:"onMouseOver"},aCe=d.forwardRef((e,t)=>{const{disabled:r,action:n="click",visibilityToggle:a=!0,iconRender:i=rCe,suffix:o}=e,s=d.useContext(Wi),l=r??s,c=typeof a=="object"&&a.visible!==void 0,[u,f]=d.useState(()=>c?a.visible:!1),m=d.useRef(null);d.useEffect(()=>{c&&f(a.visible)},[c,a]);const h=iU(m),p=()=>{var I;if(l)return;u&&h();const N=!u;f(N),typeof a=="object"&&((I=a.onVisibleChange)===null||I===void 0||I.call(a,N))},g=I=>{const N=nCe[n]||"",D=i(u),k={[N]:p,className:`${I}-icon`,key:"passwordIcon",onMouseDown:R=>{R.preventDefault()},onMouseUp:R=>{R.preventDefault()}};return d.cloneElement(d.isValidElement(D)?D:d.createElement("span",null,D),k)},{className:v,prefixCls:y,inputPrefixCls:x,size:b}=e,S=tCe(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:w}=d.useContext(Nt),E=w("input",x),C=w("input-password",y),O=a&&g(C),_=ce(C,v,{[`${C}-${b}`]:!!b}),P=Object.assign(Object.assign({},Er(S,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:_,prefixCls:E,suffix:d.createElement(d.Fragment,null,O,o)});return b&&(P.size=b),d.createElement(Tv,Object.assign({ref:xa(t,m)},P))}),iCe=aCe;var oCe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:r,inputPrefixCls:n,className:a,size:i,suffix:o,enterButton:s=!1,addonAfter:l,loading:c,disabled:u,onSearch:f,onChange:m,onCompositionStart:h,onCompositionEnd:p,variant:g,onPressEnter:v}=e,y=oCe(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:x,direction:b}=d.useContext(Nt),S=d.useRef(!1),w=x("input-search",r),E=x("input",n),{compactSize:C}=cl(w,b),O=Da(B=>{var W;return(W=i??C)!==null&&W!==void 0?W:B}),_=d.useRef(null),P=B=>{B!=null&&B.target&&B.type==="click"&&f&&f(B.target.value,B,{source:"clear"}),m==null||m(B)},I=B=>{var W;document.activeElement===((W=_.current)===null||W===void 0?void 0:W.input)&&B.preventDefault()},N=B=>{var W,z;f&&f((z=(W=_.current)===null||W===void 0?void 0:W.input)===null||z===void 0?void 0:z.value,B,{source:"input"})},D=B=>{S.current||c||(v==null||v(B),N(B))},k=typeof s=="boolean"?d.createElement(dI,null):null,R=`${w}-button`;let A;const j=s||{},F=j.type&&j.type.__ANT_BUTTON===!0;F||j.type==="button"?A=pa(j,Object.assign({onMouseDown:I,onClick:B=>{var W,z;(z=(W=j==null?void 0:j.props)===null||W===void 0?void 0:W.onClick)===null||z===void 0||z.call(W,B),N(B)},key:"enterButton"},F?{className:R,size:O}:{})):A=d.createElement(kt,{className:R,color:s?"primary":"default",size:O,disabled:u,key:"enterButton",onMouseDown:I,onClick:N,loading:c,icon:k,variant:g==="borderless"||g==="filled"||g==="underlined"?"text":s?"solid":void 0},s),l&&(A=[A,pa(l,{key:"addonAfter"})]);const M=ce(w,{[`${w}-rtl`]:b==="rtl",[`${w}-${O}`]:!!O,[`${w}-with-button`]:!!s},a),V=B=>{S.current=!0,h==null||h(B)},K=B=>{S.current=!1,p==null||p(B)},L=Object.assign(Object.assign({},y),{className:M,prefixCls:E,type:"search",size:O,variant:g,onPressEnter:D,onCompositionStart:V,onCompositionEnd:K,addonAfter:A,suffix:o,onChange:P,disabled:u,_skipAddonWarning:!0});return d.createElement(Tv,Object.assign({ref:xa(_,t)},L))}),lCe=sCe;var cCe=` - min-height:0 !important; - max-height:none !important; - height:0 !important; - visibility:hidden !important; - overflow:hidden !important; - position:absolute !important; - z-index:-1000 !important; - top:0 !important; - right:0 !important; - pointer-events: none !important; -`,uCe=["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"],D2={},qi;function dCe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&D2[r])return D2[r];var n=window.getComputedStyle(e),a=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),i=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),o=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=uCe.map(function(c){return"".concat(c,":").concat(n.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:o,boxSizing:a};return t&&r&&(D2[r]=l),l}function fCe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;qi||(qi=document.createElement("textarea"),qi.setAttribute("tab-index","-1"),qi.setAttribute("aria-hidden","true"),qi.setAttribute("name","hiddenTextarea"),document.body.appendChild(qi)),e.getAttribute("wrap")?qi.setAttribute("wrap",e.getAttribute("wrap")):qi.removeAttribute("wrap");var a=dCe(e,t),i=a.paddingSize,o=a.borderSize,s=a.boxSizing,l=a.sizingStyle;qi.setAttribute("style","".concat(l,";").concat(cCe)),qi.value=e.value||e.placeholder||"";var c=void 0,u=void 0,f,m=qi.scrollHeight;if(s==="border-box"?m+=o:s==="content-box"&&(m-=i),r!==null||n!==null){qi.value=" ";var h=qi.scrollHeight-i;r!==null&&(c=h*r,s==="border-box"&&(c=c+i+o),m=Math.max(c,m)),n!==null&&(u=h*n,s==="border-box"&&(u=u+i+o),f=m>u?"":"hidden",m=Math.min(u,m))}var p={height:m,overflowY:f,resize:"none"};return c&&(p.minHeight=c),u&&(p.maxHeight=u),p}var mCe=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],j2=0,F2=1,L2=2,hCe=d.forwardRef(function(e,t){var r=e,n=r.prefixCls,a=r.defaultValue,i=r.value,o=r.autoSize,s=r.onResize,l=r.className,c=r.style,u=r.disabled,f=r.onChange;r.onInternalAutoSize;var m=Rt(r,mCe),h=br(a,{value:i,postState:function(B){return B??""}}),p=me(h,2),g=p[0],v=p[1],y=function(B){v(B.target.value),f==null||f(B)},x=d.useRef();d.useImperativeHandle(t,function(){return{textArea:x.current}});var b=d.useMemo(function(){return o&&bt(o)==="object"?[o.minRows,o.maxRows]:[]},[o]),S=me(b,2),w=S[0],E=S[1],C=!!o,O=d.useState(L2),_=me(O,2),P=_[0],I=_[1],N=d.useState(),D=me(N,2),k=D[0],R=D[1],A=function(){I(j2)};Gt(function(){C&&A()},[i,w,E,C]),Gt(function(){if(P===j2)I(F2);else if(P===F2){var L=fCe(x.current,!1,w,E);I(L2),R(L)}},[P]);var j=d.useRef(),F=function(){Ut.cancel(j.current)},M=function(B){P===L2&&(s==null||s(B),o&&(F(),j.current=Ut(function(){A()})))};d.useEffect(function(){return F},[]);var V=C?k:null,K=ae(ae({},c),V);return(P===j2||P===F2)&&(K.overflowY="hidden",K.overflowX="hidden"),d.createElement(Ra,{onResize:M,disabled:!(o||s)},d.createElement("textarea",Oe({},m,{ref:x,style:K,className:ce(n,l,J({},"".concat(n,"-disabled"),u)),disabled:u,value:g,onChange:y})))}),pCe=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],vCe=ve.forwardRef(function(e,t){var r,n=e.defaultValue,a=e.value,i=e.onFocus,o=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,h=e.prefixCls,p=h===void 0?"rc-textarea":h,g=e.showCount,v=e.count,y=e.className,x=e.style,b=e.disabled,S=e.hidden,w=e.classNames,E=e.styles,C=e.onResize,O=e.onClear,_=e.onPressEnter,P=e.readOnly,I=e.autoSize,N=e.onKeyDown,D=Rt(e,pCe),k=br(n,{value:a,defaultValue:n}),R=me(k,2),A=R[0],j=R[1],F=A==null?"":String(A),M=ve.useState(!1),V=me(M,2),K=V[0],L=V[1],B=ve.useRef(!1),W=ve.useState(null),z=me(W,2),U=z[0],X=z[1],Y=d.useRef(null),G=d.useRef(null),Q=function(){var _e;return(_e=G.current)===null||_e===void 0?void 0:_e.textArea},ee=function(){Q().focus()};d.useImperativeHandle(t,function(){var je;return{resizableTextArea:G.current,focus:ee,blur:function(){Q().blur()},nativeElement:((je=Y.current)===null||je===void 0?void 0:je.nativeElement)||Q()}}),d.useEffect(function(){L(function(je){return!b&&je})},[b]);var H=ve.useState(null),fe=me(H,2),te=fe[0],re=fe[1];ve.useEffect(function(){if(te){var je;(je=Q()).setSelectionRange.apply(je,De(te))}},[te]);var q=tU(v,g),ne=(r=q.max)!==null&&r!==void 0?r:c,he=Number(ne)>0,ye=q.strategy(F),xe=!!ne&&ye>ne,pe=function(_e,Me){var ge=Me;!B.current&&q.exceedFormatter&&q.max&&q.strategy(Me)>q.max&&(ge=q.exceedFormatter(Me,{max:q.max}),Me!==ge&&re([Q().selectionStart||0,Q().selectionEnd||0])),j(ge),l1(_e.currentTarget,_e,s,ge)},Pe=function(_e){B.current=!0,u==null||u(_e)},$e=function(_e){B.current=!1,pe(_e,_e.currentTarget.value),f==null||f(_e)},Ee=function(_e){pe(_e,_e.target.value)},He=function(_e){_e.key==="Enter"&&_&&_(_e),N==null||N(_e)},Fe=function(_e){L(!0),i==null||i(_e)},nt=function(_e){L(!1),o==null||o(_e)},qe=function(_e){j(""),ee(),l1(Q(),_e,s)},Ge=m,Le;q.show&&(q.showFormatter?Le=q.showFormatter({value:F,count:ye,maxLength:ne}):Le="".concat(ye).concat(he?" / ".concat(ne):""),Ge=ve.createElement(ve.Fragment,null,Ge,ve.createElement("span",{className:ce("".concat(p,"-data-count"),w==null?void 0:w.count),style:E==null?void 0:E.count},Le)));var Ne=function(_e){var Me;C==null||C(_e),(Me=Q())!==null&&Me!==void 0&&Me.style.height&&X(!0)},Se=!I&&!g&&!l;return ve.createElement(UI,{ref:Y,value:F,allowClear:l,handleReset:qe,suffix:Ge,prefixCls:p,classNames:ae(ae({},w),{},{affixWrapper:ce(w==null?void 0:w.affixWrapper,J(J({},"".concat(p,"-show-count"),g),"".concat(p,"-textarea-allow-clear"),l))}),disabled:b,focused:K,className:ce(y,xe&&"".concat(p,"-out-of-range")),style:ae(ae({},x),U&&!Se?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Le=="string"?Le:void 0}},hidden:S,readOnly:P,onClear:O},ve.createElement(hCe,Oe({},D,{autoSize:I,maxLength:c,onKeyDown:He,onChange:Ee,onFocus:Fe,onBlur:nt,onCompositionStart:Pe,onCompositionEnd:$e,className:ce(w==null?void 0:w.textarea),style:ae(ae({},E==null?void 0:E.textarea),{},{resize:x==null?void 0:x.resize}),disabled:b,prefixCls:p,onResize:Ne,ref:G,readOnly:P})))});const gCe=e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[n]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[` - &-allow-clear > ${t}, - &-affix-wrapper${n}-has-feedback ${t} - `]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},yCe=lr(["Input","TextArea"],e=>{const t=Zt(e,Hd(e));return gCe(t)},Wd,{resetFont:!1});var xCe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var r;const{prefixCls:n,bordered:a=!0,size:i,disabled:o,status:s,allowClear:l,classNames:c,rootClassName:u,className:f,style:m,styles:h,variant:p,showCount:g,onMouseDown:v,onResize:y}=e,x=xCe(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:b,direction:S,allowClear:w,autoComplete:E,className:C,style:O,classNames:_,styles:P}=oa("textArea"),I=d.useContext(Wi),N=o??I,{status:D,hasFeedback:k,feedbackIcon:R}=d.useContext(ga),A=Fd(D,s),j=d.useRef(null);d.useImperativeHandle(t,()=>{var q;return{resizableTextArea:(q=j.current)===null||q===void 0?void 0:q.resizableTextArea,focus:ne=>{var he,ye;VI((ye=(he=j.current)===null||he===void 0?void 0:he.resizableTextArea)===null||ye===void 0?void 0:ye.textArea,ne)},blur:()=>{var ne;return(ne=j.current)===null||ne===void 0?void 0:ne.blur()}}});const F=b("input",n),M=vn(F),[V,K,L]=jV(F,u),[B]=yCe(F,M),{compactSize:W,compactItemClassnames:z}=cl(F,S),U=Da(q=>{var ne;return(ne=i??W)!==null&&ne!==void 0?ne:q}),[X,Y]=Ld("textArea",p,a),G=aU(l??w),[Q,ee]=d.useState(!1),[H,fe]=d.useState(!1),te=q=>{ee(!0),v==null||v(q);const ne=()=>{ee(!1),document.removeEventListener("mouseup",ne)};document.addEventListener("mouseup",ne)},re=q=>{var ne,he;if(y==null||y(q),Q&&typeof getComputedStyle=="function"){const ye=(he=(ne=j.current)===null||ne===void 0?void 0:ne.nativeElement)===null||he===void 0?void 0:he.querySelector("textarea");ye&&getComputedStyle(ye).resize==="both"&&fe(!0)}};return V(B(d.createElement(vCe,Object.assign({autoComplete:E},x,{style:Object.assign(Object.assign({},O),m),styles:Object.assign(Object.assign({},P),h),disabled:N,allowClear:G,className:ce(L,M,f,u,z,C,H&&`${F}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),_),{textarea:ce({[`${F}-sm`]:U==="small",[`${F}-lg`]:U==="large"},K,c==null?void 0:c.textarea,_.textarea,Q&&`${F}-mouse-active`),variant:ce({[`${F}-${X}`]:Y},Uc(F,A)),affixWrapper:ce(`${F}-textarea-affix-wrapper`,{[`${F}-affix-wrapper-rtl`]:S==="rtl",[`${F}-affix-wrapper-sm`]:U==="small",[`${F}-affix-wrapper-lg`]:U==="large",[`${F}-textarea-show-count`]:g||((r=e.count)===null||r===void 0?void 0:r.show)},K)}),prefixCls:F,suffix:k&&d.createElement("span",{className:`${F}-textarea-suffix`},R),showCount:g,ref:j,onResize:re,onMouseDown:te}))))}),CU=bCe,im=Tv;im.Group=zwe;im.Search=lCe;im.TextArea=CU;im.Password=iCe;im.OTP=Ywe;const Ia=im;function SCe(e,t,r){return typeof r=="boolean"?r:e.length?!0:ha(t).some(a=>a.type===AW)}var EU=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);ad.forwardRef((i,o)=>d.createElement(n,Object.assign({ref:o,suffixCls:e,tagName:t},i)))}const ZI=d.forwardRef((e,t)=>{const{prefixCls:r,suffixCls:n,className:a,tagName:i}=e,o=EU(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=d.useContext(Nt),l=s("layout",r),[c,u,f]=RW(l),m=n?`${l}-${n}`:l;return c(d.createElement(i,Object.assign({className:ce(r||m,a,u,f),ref:t},o)))}),wCe=d.forwardRef((e,t)=>{const{direction:r}=d.useContext(Nt),[n,a]=d.useState([]),{prefixCls:i,className:o,rootClassName:s,children:l,hasSider:c,tagName:u,style:f}=e,m=EU(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=Er(m,["suffixCls"]),{getPrefixCls:p,className:g,style:v}=oa("layout"),y=p("layout",i),x=SCe(n,l,c),[b,S,w]=RW(y),E=ce(y,{[`${y}-has-sider`]:x,[`${y}-rtl`]:r==="rtl"},g,o,s,S,w),C=d.useMemo(()=>({siderHook:{addSider:O=>{a(_=>[].concat(De(_),[O]))},removeSider:O=>{a(_=>_.filter(P=>P!==O))}}}),[]);return b(d.createElement(IW.Provider,{value:C},d.createElement(u,Object.assign({ref:t,className:E,style:Object.assign(Object.assign({},v),f)},h),l)))}),CCe=FS({tagName:"div",displayName:"Layout"})(wCe),ECe=FS({suffixCls:"header",tagName:"header",displayName:"Header"})(ZI),$Ce=FS({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(ZI),_Ce=FS({suffixCls:"content",tagName:"main",displayName:"Content"})(ZI),OCe=CCe,om=OCe;om.Header=ECe;om.Footer=$Ce;om.Content=_Ce;om.Sider=AW;om._InternalSiderContext=_S;const Rl=om;var TCe={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"};const PCe=TCe;var ICe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:PCe}))},NCe=d.forwardRef(ICe);const LD=NCe;var kCe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const RCe=kCe;var ACe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:RCe}))},MCe=d.forwardRef(ACe);const BD=MCe;var DCe={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},jCe=[10,20,50,100],FCe=function(t){var r=t.pageSizeOptions,n=r===void 0?jCe:r,a=t.locale,i=t.changeSize,o=t.pageSize,s=t.goButton,l=t.quickGo,c=t.rootPrefixCls,u=t.disabled,f=t.buildOptionText,m=t.showSizeChanger,h=t.sizeChangerRender,p=ve.useState(""),g=me(p,2),v=g[0],y=g[1],x=function(){return!v||Number.isNaN(v)?void 0:Number(v)},b=typeof f=="function"?f:function(N){return"".concat(N," ").concat(a.items_per_page)},S=function(D){y(D.target.value)},w=function(D){s||v===""||(y(""),!(D.relatedTarget&&(D.relatedTarget.className.indexOf("".concat(c,"-item-link"))>=0||D.relatedTarget.className.indexOf("".concat(c,"-item"))>=0))&&(l==null||l(x())))},E=function(D){v!==""&&(D.keyCode===Qe.ENTER||D.type==="click")&&(y(""),l==null||l(x()))},C=function(){return n.some(function(D){return D.toString()===o.toString()})?n:n.concat([o]).sort(function(D,k){var R=Number.isNaN(Number(D))?0:Number(D),A=Number.isNaN(Number(k))?0:Number(k);return R-A})},O="".concat(c,"-options");if(!m&&!l)return null;var _=null,P=null,I=null;return m&&h&&(_=h({disabled:u,size:o,onSizeChange:function(D){i==null||i(Number(D))},"aria-label":a.page_size,className:"".concat(O,"-size-changer"),options:C().map(function(N){return{label:b(N),value:N}})})),l&&(s&&(I=typeof s=="boolean"?ve.createElement("button",{type:"button",onClick:E,onKeyUp:E,disabled:u,className:"".concat(O,"-quick-jumper-button")},a.jump_to_confirm):ve.createElement("span",{onClick:E,onKeyUp:E},s)),P=ve.createElement("div",{className:"".concat(O,"-quick-jumper")},a.jump_to,ve.createElement("input",{disabled:u,type:"text",value:v,onChange:S,onKeyUp:E,onBlur:w,"aria-label":a.page}),a.page,I)),ve.createElement("li",{className:O},_,P)},Hm=function(t){var r=t.rootPrefixCls,n=t.page,a=t.active,i=t.className,o=t.showTitle,s=t.onClick,l=t.onKeyPress,c=t.itemRender,u="".concat(r,"-item"),f=ce(u,"".concat(u,"-").concat(n),J(J({},"".concat(u,"-active"),a),"".concat(u,"-disabled"),!n),i),m=function(){s(n)},h=function(v){l(v,s,n)},p=c(n,"page",ve.createElement("a",{rel:"nofollow"},n));return p?ve.createElement("li",{title:o?String(n):null,className:f,onClick:m,onKeyDown:h,tabIndex:0},p):null},LCe=function(t,r,n){return n};function zD(){}function HD(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Eu(e,t,r){var n=typeof e>"u"?t:e;return Math.floor((r-1)/n)+1}var BCe=function(t){var r=t.prefixCls,n=r===void 0?"rc-pagination":r,a=t.selectPrefixCls,i=a===void 0?"rc-select":a,o=t.className,s=t.current,l=t.defaultCurrent,c=l===void 0?1:l,u=t.total,f=u===void 0?0:u,m=t.pageSize,h=t.defaultPageSize,p=h===void 0?10:h,g=t.onChange,v=g===void 0?zD:g,y=t.hideOnSinglePage,x=t.align,b=t.showPrevNextJumpers,S=b===void 0?!0:b,w=t.showQuickJumper,E=t.showLessItems,C=t.showTitle,O=C===void 0?!0:C,_=t.onShowSizeChange,P=_===void 0?zD:_,I=t.locale,N=I===void 0?DCe:I,D=t.style,k=t.totalBoundaryShowSizeChanger,R=k===void 0?50:k,A=t.disabled,j=t.simple,F=t.showTotal,M=t.showSizeChanger,V=M===void 0?f>R:M,K=t.sizeChangerRender,L=t.pageSizeOptions,B=t.itemRender,W=B===void 0?LCe:B,z=t.jumpPrevIcon,U=t.jumpNextIcon,X=t.prevIcon,Y=t.nextIcon,G=ve.useRef(null),Q=br(10,{value:m,defaultValue:p}),ee=me(Q,2),H=ee[0],fe=ee[1],te=br(1,{value:s,defaultValue:c,postState:function(Ot){return Math.max(1,Math.min(Ot,Eu(void 0,H,f)))}}),re=me(te,2),q=re[0],ne=re[1],he=ve.useState(q),ye=me(he,2),xe=ye[0],pe=ye[1];d.useEffect(function(){pe(q)},[q]);var Pe=Math.max(1,q-(E?3:5)),$e=Math.min(Eu(void 0,H,f),q+(E?3:5));function Ee(pt,Ot){var zt=pt||ve.createElement("button",{type:"button","aria-label":Ot,className:"".concat(n,"-item-link")});return typeof pt=="function"&&(zt=ve.createElement(pt,ae({},t))),zt}function He(pt){var Ot=pt.target.value,zt=Eu(void 0,H,f),pr;return Ot===""?pr=Ot:Number.isNaN(Number(Ot))?pr=xe:Ot>=zt?pr=zt:pr=Number(Ot),pr}function Fe(pt){return HD(pt)&&pt!==q&&HD(f)&&f>0}var nt=f>H?w:!1;function qe(pt){(pt.keyCode===Qe.UP||pt.keyCode===Qe.DOWN)&&pt.preventDefault()}function Ge(pt){var Ot=He(pt);switch(Ot!==xe&&pe(Ot),pt.keyCode){case Qe.ENTER:Se(Ot);break;case Qe.UP:Se(Ot-1);break;case Qe.DOWN:Se(Ot+1);break}}function Le(pt){Se(He(pt))}function Ne(pt){var Ot=Eu(pt,H,f),zt=q>Ot&&Ot!==0?Ot:q;fe(pt),pe(zt),P==null||P(q,pt),ne(zt),v==null||v(zt,pt)}function Se(pt){if(Fe(pt)&&!A){var Ot=Eu(void 0,H,f),zt=pt;return pt>Ot?zt=Ot:pt<1&&(zt=1),zt!==xe&&pe(zt),ne(zt),v==null||v(zt,H),zt}return q}var je=q>1,_e=q2?zt-2:0),Ir=2;Irf?f:q*H])),St=null,xt=Eu(void 0,H,f);if(y&&f<=H)return null;var rt=[],Ye={rootPrefixCls:n,onClick:Se,onKeyPress:We,showTitle:O,itemRender:W,page:-1},Ze=q-1>0?q-1:0,ct=q+1=oe*2&&q!==1+2&&(rt[0]=ve.cloneElement(rt[0],{className:ce("".concat(n,"-item-after-jump-prev"),rt[0].props.className)}),rt.unshift(Mt)),xt-q>=oe*2&&q!==xt-2){var Be=rt[rt.length-1];rt[rt.length-1]=ve.cloneElement(Be,{className:ce("".concat(n,"-item-before-jump-next"),Be.props.className)}),rt.push(St)}Te!==1&&rt.unshift(ve.createElement(Hm,Oe({},Ye,{key:1,page:1}))),Xe!==xt&&rt.push(ve.createElement(Hm,Oe({},Ye,{key:xt,page:xt})))}var ze=ft(Ze);if(ze){var Ve=!je||!xt;ze=ve.createElement("li",{title:O?N.prev_page:null,onClick:Me,tabIndex:Ve?null:0,onKeyDown:at,className:ce("".concat(n,"-prev"),J({},"".concat(n,"-disabled"),Ve)),"aria-disabled":Ve},ze)}var et=lt(ct);if(et){var ot,wt;j?(ot=!_e,wt=je?0:null):(ot=!_e||!xt,wt=ot?null:0),et=ve.createElement("li",{title:O?N.next_page:null,onClick:ge,tabIndex:wt,onKeyDown:yt,className:ce("".concat(n,"-next"),J({},"".concat(n,"-disabled"),ot)),"aria-disabled":ot},et)}var Lt=ce(n,o,J(J(J(J(J({},"".concat(n,"-start"),x==="start"),"".concat(n,"-center"),x==="center"),"".concat(n,"-end"),x==="end"),"".concat(n,"-simple"),j),"".concat(n,"-disabled"),A));return ve.createElement("ul",Oe({className:Lt,style:D,ref:G},Ft),ht,ze,j?ie:rt,et,ve.createElement(FCe,{locale:N,rootPrefixCls:n,disabled:A,selectPrefixCls:i,changeSize:Ne,pageSize:H,pageSizeOptions:L,quickGo:nt?Se:null,goButton:se,showSizeChanger:V,sizeChangerRender:K}))};const zCe=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},HCe=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:le(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:le(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:le(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[` - &${t}-mini ${t}-prev ${t}-item-link, - &${t}-mini ${t}-next ${t}-item-link - `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:le(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:le(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:le(e.itemSizeSM),input:Object.assign(Object.assign({},jI(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},WCe=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:le(e.itemSize),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSize,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSize,lineHeight:le(e.itemSize)}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:e.itemSize,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${le(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${le(e.inputOutlineOffset)} 0 ${le(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-mini`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSizeSM,lineHeight:le(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:le(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},VCe=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[` - ${t}-prev, - ${t}-jump-prev, - ${t}-jump-next - `]:{marginInlineEnd:e.marginXS},[` - ${t}-prev, - ${t}-next, - ${t}-jump-prev, - ${t}-jump-next - `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:le(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${le(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:le(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},_v(e)),NI(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},RS(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},UCe=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:le(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${le(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${le(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},KCe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dr(e)),{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:le(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),UCe(e)),VCe(e)),WCe(e)),HCe(e)),zCe(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"}}},GCe=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Nl(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},nl(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:nl(e)}}}},$U=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Wd(e)),_U=e=>Zt(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Hd(e)),qCe=lr("Pagination",e=>{const t=_U(e);return[KCe(t),GCe(t)]},$U),XCe=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},YCe=U0(["Pagination","bordered"],e=>{const t=_U(e);return XCe(t)},$U);function WD(e){return d.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var QCe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{align:t,prefixCls:r,selectPrefixCls:n,className:a,rootClassName:i,style:o,size:s,locale:l,responsive:c,showSizeChanger:u,selectComponentClass:f,pageSizeOptions:m}=e,h=QCe(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:p}=wv(c),[,g]=Ga(),{getPrefixCls:v,direction:y,showSizeChanger:x,className:b,style:S}=oa("pagination"),w=v("pagination",r),[E,C,O]=qCe(w),_=Da(s),P=_==="small"||!!(p&&!_&&c),[I]=Hi("Pagination",q7),N=Object.assign(Object.assign({},I),l),[D,k]=WD(u),[R,A]=WD(x),j=D??R,F=k??A,M=f||Zn,V=d.useMemo(()=>m?m.map(U=>Number(U)):void 0,[m]),K=U=>{var X;const{disabled:Y,size:G,onSizeChange:Q,"aria-label":ee,className:H,options:fe}=U,{className:te,onChange:re}=F||{},q=(X=fe.find(ne=>String(ne.value)===String(G)))===null||X===void 0?void 0:X.value;return d.createElement(M,Object.assign({disabled:Y,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:ne=>ne.parentNode,"aria-label":ee,options:fe},F,{value:q,onChange:(ne,he)=>{Q==null||Q(ne),re==null||re(ne,he)},size:P?"small":"middle",className:ce(H,te)}))},L=d.useMemo(()=>{const U=d.createElement("span",{className:`${w}-item-ellipsis`},"•••"),X=d.createElement("button",{className:`${w}-item-link`,type:"button",tabIndex:-1},y==="rtl"?d.createElement(md,null):d.createElement(vd,null)),Y=d.createElement("button",{className:`${w}-item-link`,type:"button",tabIndex:-1},y==="rtl"?d.createElement(vd,null):d.createElement(md,null)),G=d.createElement("a",{className:`${w}-item-link`},d.createElement("div",{className:`${w}-item-container`},y==="rtl"?d.createElement(BD,{className:`${w}-item-link-icon`}):d.createElement(LD,{className:`${w}-item-link-icon`}),U)),Q=d.createElement("a",{className:`${w}-item-link`},d.createElement("div",{className:`${w}-item-container`},y==="rtl"?d.createElement(LD,{className:`${w}-item-link-icon`}):d.createElement(BD,{className:`${w}-item-link-icon`}),U));return{prevIcon:X,nextIcon:Y,jumpPrevIcon:G,jumpNextIcon:Q}},[y,w]),B=v("select",n),W=ce({[`${w}-${t}`]:!!t,[`${w}-mini`]:P,[`${w}-rtl`]:y==="rtl",[`${w}-bordered`]:g.wireframe},b,a,i,C,O),z=Object.assign(Object.assign({},S),o);return E(d.createElement(d.Fragment,null,g.wireframe&&d.createElement(YCe,{prefixCls:w}),d.createElement(BCe,Object.assign({},L,h,{style:z,prefixCls:w,selectPrefixCls:B,className:W,locale:N,pageSizeOptions:V,showSizeChanger:j,sizeChangerRender:K}))))},JCe=ZCe,u1=100,OU=u1/5,TU=u1/2-OU/2,B2=TU*2*Math.PI,VD=50,UD=e=>{const{dotClassName:t,style:r,hasCircleCls:n}=e;return d.createElement("circle",{className:ce(`${t}-circle`,{[`${t}-circle-bg`]:n}),r:TU,cx:VD,cy:VD,strokeWidth:OU,style:r})},e2e=({percent:e,prefixCls:t})=>{const r=`${t}-dot`,n=`${r}-holder`,a=`${n}-hidden`,[i,o]=d.useState(!1);Gt(()=>{e!==0&&o(!0)},[e!==0]);const s=Math.max(Math.min(e,100),0);if(!i)return null;const l={strokeDashoffset:`${B2/4}`,strokeDasharray:`${B2*s/100} ${B2*(100-s)/100}`};return d.createElement("span",{className:ce(n,`${r}-progress`,s<=0&&a)},d.createElement("svg",{viewBox:`0 0 ${u1} ${u1}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},d.createElement(UD,{dotClassName:r,hasCircleCls:!0}),d.createElement(UD,{dotClassName:r,style:l})))},t2e=e2e;function r2e(e){const{prefixCls:t,percent:r=0}=e,n=`${t}-dot`,a=`${n}-holder`,i=`${a}-hidden`;return d.createElement(d.Fragment,null,d.createElement("span",{className:ce(a,r>0&&i)},d.createElement("span",{className:ce(n,`${t}-dot-spin`)},[1,2,3,4].map(o=>d.createElement("i",{className:`${t}-dot-item`,key:o})))),d.createElement(t2e,{prefixCls:t,percent:r}))}function n2e(e){var t;const{prefixCls:r,indicator:n,percent:a}=e,i=`${r}-dot`;return n&&d.isValidElement(n)?pa(n,{className:ce((t=n.props)===null||t===void 0?void 0:t.className,i),percent:a}):d.createElement(r2e,{prefixCls:r,percent:a})}const a2e=new fr("antSpinMove",{to:{opacity:1}}),i2e=new fr("antRotate",{to:{transform:"rotate(405deg)"}}),o2e=e=>{const{componentCls:t,calc:r}=e;return{[t]:Object.assign(Object.assign({},dr(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:r(r(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:r(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:r(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:r(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:r(r(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:r(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:r(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:r(r(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:r(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:r(e.dotSize).sub(r(e.marginXXS).div(2)).div(2).equal(),height:r(e.dotSize).sub(r(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:a2e,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:i2e,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(n=>`${n} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:r(r(e.dotSizeSM).sub(r(e.marginXXS).div(2))).div(2).equal(),height:r(r(e.dotSizeSM).sub(r(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:r(r(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:r(r(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},s2e=e=>{const{controlHeightLG:t,controlHeight:r}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:r}},l2e=lr("Spin",e=>{const t=Zt(e,{spinDotDefault:e.colorTextDescription});return o2e(t)},s2e),c2e=200,KD=[[30,.05],[70,.03],[96,.01]];function u2e(e,t){const[r,n]=d.useState(0),a=d.useRef(null),i=t==="auto";return d.useEffect(()=>(i&&e&&(n(0),a.current=setInterval(()=>{n(o=>{const s=100-o;for(let l=0;l{a.current&&(clearInterval(a.current),a.current=null)}),[i,e]),i?r:t}var d2e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var t;const{prefixCls:r,spinning:n=!0,delay:a=0,className:i,rootClassName:o,size:s="default",tip:l,wrapperClassName:c,style:u,children:f,fullscreen:m=!1,indicator:h,percent:p}=e,g=d2e(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:y,className:x,style:b,indicator:S}=oa("spin"),w=v("spin",r),[E,C,O]=l2e(w),[_,P]=d.useState(()=>n&&!f2e(n,a)),I=u2e(_,p);d.useEffect(()=>{if(n){const F=C1e(a,()=>{P(!0)});return F(),()=>{var M;(M=F==null?void 0:F.cancel)===null||M===void 0||M.call(F)}}P(!1)},[a,n]);const N=d.useMemo(()=>typeof f<"u"&&!m,[f,m]),D=ce(w,x,{[`${w}-sm`]:s==="small",[`${w}-lg`]:s==="large",[`${w}-spinning`]:_,[`${w}-show-text`]:!!l,[`${w}-rtl`]:y==="rtl"},i,!m&&o,C,O),k=ce(`${w}-container`,{[`${w}-blur`]:_}),R=(t=h??S)!==null&&t!==void 0?t:PU,A=Object.assign(Object.assign({},b),u),j=d.createElement("div",Object.assign({},g,{style:A,className:D,"aria-live":"polite","aria-busy":_}),d.createElement(n2e,{prefixCls:w,indicator:R,percent:I}),l&&(N||m)?d.createElement("div",{className:`${w}-text`},l):null);return E(N?d.createElement("div",Object.assign({},g,{className:ce(`${w}-nested-loading`,c,C,O)}),_&&d.createElement("div",{key:"loading"},j),d.createElement("div",{className:k,key:"container"},f)):m?d.createElement("div",{className:ce(`${w}-fullscreen`,{[`${w}-fullscreen-show`]:_},o,C,O)},j):j)};IU.setDefaultIndicator=e=>{PU=e};const JI=IU,m2e=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e],h2e=m2e;let No=null,zu=e=>e(),Cp=[],Ep={};function GD(){const{getContainer:e,duration:t,rtl:r,maxCount:n,top:a}=Ep,i=(e==null?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:r,maxCount:n,top:a}}const p2e=ve.forwardRef((e,t)=>{const{messageConfig:r,sync:n}=e,{getPrefixCls:a}=d.useContext(Nt),i=Ep.prefixCls||a("message"),o=d.useContext(S0e),[s,l]=L9(Object.assign(Object.assign(Object.assign({},r),{prefixCls:i}),o.message));return ve.useImperativeHandle(t,()=>{const c=Object.assign({},s);return Object.keys(c).forEach(u=>{c[u]=(...f)=>(n(),s[u].apply(s,f))}),{instance:c,sync:n}}),l}),v2e=ve.forwardRef((e,t)=>{const[r,n]=ve.useState(GD),a=()=>{n(GD)};ve.useEffect(a,[]);const i=C9(),o=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),c=ve.createElement(p2e,{ref:t,sync:a,messageConfig:r});return ve.createElement(Dd,{prefixCls:o,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(c):c)}),LS=()=>{if(!No){const e=document.createDocumentFragment(),t={fragment:e};No=t,zu(()=>{KP()(ve.createElement(v2e,{ref:n=>{const{instance:a,sync:i}=n||{};Promise.resolve().then(()=>{!t.instance&&a&&(t.instance=a,t.sync=i,LS())})}}),e)});return}No.instance&&(Cp.forEach(e=>{const{type:t,skipped:r}=e;if(!r)switch(t){case"open":{zu(()=>{const n=No.instance.open(Object.assign(Object.assign({},Ep),e.config));n==null||n.then(e.resolve),e.setCloseFn(n)});break}case"destroy":zu(()=>{No==null||No.instance.destroy(e.key)});break;default:zu(()=>{var n;const a=(n=No.instance)[t].apply(n,De(e.args));a==null||a.then(e.resolve),e.setCloseFn(a)})}}),Cp=[])};function g2e(e){Ep=Object.assign(Object.assign({},Ep),e),zu(()=>{var t;(t=No==null?void 0:No.sync)===null||t===void 0||t.call(No)})}function y2e(e){const t=VP(r=>{let n;const a={type:"open",config:e,resolve:r,setCloseFn:i=>{n=i}};return Cp.push(a),()=>{n?zu(()=>{n()}):a.skipped=!0}});return LS(),t}function x2e(e,t){const r=VP(n=>{let a;const i={type:e,args:t,resolve:n,setCloseFn:o=>{a=o}};return Cp.push(i),()=>{a?zu(()=>{a()}):i.skipped=!0}});return LS(),r}const b2e=e=>{Cp.push({type:"destroy",key:e}),LS()},S2e=["success","info","warning","error","loading"],w2e={open:y2e,destroy:b2e,config:g2e,useMessage:ace,_InternalPanelDoNotUseOrYouWillBeFired:Yle},NU=w2e;S2e.forEach(e=>{NU[e]=(...t)=>x2e(e,t)});const ut=NU;var C2e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,className:r,closeIcon:n,closable:a,type:i,title:o,children:s,footer:l}=e,c=C2e(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:u}=d.useContext(Nt),f=u(),m=t||u("modal"),h=vn(f),[p,g,v]=xH(m,h),y=`${m}-confirm`;let x={};return i?x={closable:a??!1,title:"",footer:"",children:d.createElement(SH,Object.assign({},e,{prefixCls:m,confirmPrefixCls:y,rootPrefixCls:f,content:s}))}:x={closable:a??!0,title:o,footer:l!==null&&d.createElement(pH,Object.assign({},e)),children:s},p(d.createElement(J9,Object.assign({prefixCls:m,className:ce(g,`${m}-pure-panel`,i&&y,i&&`${y}-${i}`,r,v,h)},c,{closeIcon:hH(m,n),closable:a},x)))},$2e=IH(E2e);function kU(e){return yv($H(e))}const Ns=bH;Ns.useModal=b0e;Ns.info=function(t){return yv(_H(t))};Ns.success=function(t){return yv(OH(t))};Ns.error=function(t){return yv(TH(t))};Ns.warning=kU;Ns.warn=kU;Ns.confirm=function(t){return yv(PH(t))};Ns.destroyAll=function(){for(;Lu.length;){const t=Lu.pop();t&&t()}};Ns.config=p0e;Ns._InternalPanelDoNotUseOrYouWillBeFired=$2e;const Ci=Ns,_2e=e=>{const{componentCls:t,iconCls:r,antCls:n,zIndexPopup:a,colorText:i,colorWarning:o,marginXXS:s,marginXS:l,fontSize:c,fontWeightStrong:u,colorTextHeading:f}=e;return{[t]:{zIndex:a,[`&${n}-popover`]:{fontSize:c},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${r}`]:{color:o,fontSize:c,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:u,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},O2e=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},RU=lr("Popconfirm",e=>_2e(e),O2e,{resetStyle:!1});var T2e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:t,okButtonProps:r,cancelButtonProps:n,title:a,description:i,cancelText:o,okText:s,okType:l="primary",icon:c=d.createElement(G0,null),showCancel:u=!0,close:f,onConfirm:m,onCancel:h,onPopupClick:p}=e,{getPrefixCls:g}=d.useContext(Nt),[v]=Hi("Popconfirm",Vo.Popconfirm),y=b0(a),x=b0(i);return d.createElement("div",{className:`${t}-inner-content`,onClick:p},d.createElement("div",{className:`${t}-message`},c&&d.createElement("span",{className:`${t}-message-icon`},c),d.createElement("div",{className:`${t}-message-text`},y&&d.createElement("div",{className:`${t}-title`},y),x&&d.createElement("div",{className:`${t}-description`},x))),d.createElement("div",{className:`${t}-buttons`},u&&d.createElement(kt,Object.assign({onClick:h,size:"small"},n),o||(v==null?void 0:v.cancelText)),d.createElement(QP,{buttonProps:Object.assign(Object.assign({size:"small"},GP(l)),r),actionFn:m,close:f,prefixCls:g("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(v==null?void 0:v.okText))))},P2e=e=>{const{prefixCls:t,placement:r,className:n,style:a}=e,i=T2e(e,["prefixCls","placement","className","style"]),{getPrefixCls:o}=d.useContext(Nt),s=o("popconfirm",t),[l]=RU(s);return l(d.createElement(hW,{placement:r,className:ce(s,n),style:a,content:d.createElement(AU,Object.assign({prefixCls:s},i))}))},I2e=P2e;var N2e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var r,n;const{prefixCls:a,placement:i="top",trigger:o="click",okType:s="primary",icon:l=d.createElement(G0,null),children:c,overlayClassName:u,onOpenChange:f,onVisibleChange:m,overlayStyle:h,styles:p,classNames:g}=e,v=N2e(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:y,className:x,style:b,classNames:S,styles:w}=oa("popconfirm"),[E,C]=br(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),O=(j,F)=>{C(j,!0),m==null||m(j),f==null||f(j,F)},_=j=>{O(!1,j)},P=j=>{var F;return(F=e.onConfirm)===null||F===void 0?void 0:F.call(globalThis,j)},I=j=>{var F;O(!1,j),(F=e.onCancel)===null||F===void 0||F.call(globalThis,j)},N=(j,F)=>{const{disabled:M=!1}=e;M||O(j,F)},D=y("popconfirm",a),k=ce(D,x,u,S.root,g==null?void 0:g.root),R=ce(S.body,g==null?void 0:g.body),[A]=RU(D);return A(d.createElement(vW,Object.assign({},Er(v,["title"]),{trigger:o,placement:i,onOpenChange:N,open:E,ref:t,classNames:{root:k,body:R},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},w.root),b),h),p==null?void 0:p.root),body:Object.assign(Object.assign({},w.body),p==null?void 0:p.body)},content:d.createElement(AU,Object.assign({okType:s,icon:l},e,{prefixCls:D,close:_,onConfirm:P,onCancel:I})),"data-popover-inject":!0}),c))}),MU=k2e;MU._InternalPanelDoNotUseOrYouWillBeFired=I2e;const sm=MU;var R2e={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},A2e=function(){var t=d.useRef([]),r=d.useRef(null);return d.useEffect(function(){var n=Date.now(),a=!1;t.current.forEach(function(i){if(i){a=!0;var o=i.style;o.transitionDuration=".3s, .3s, .3s, .06s",r.current&&n-r.current<100&&(o.transitionDuration="0s, 0s")}}),a&&(r.current=Date.now())}),t.current},qD=0,M2e=Aa();function D2e(){var e;return M2e?(e=qD,qD+=1):e="TEST_OR_SSR",e}const j2e=function(e){var t=d.useState(),r=me(t,2),n=r[0],a=r[1];return d.useEffect(function(){a("rc_progress_".concat(D2e()))},[]),e||n};var XD=function(t){var r=t.bg,n=t.children;return d.createElement("div",{style:{width:"100%",height:"100%",background:r}},n)};function YD(e,t){return Object.keys(e).map(function(r){var n=parseFloat(r),a="".concat(Math.floor(n*t),"%");return"".concat(e[r]," ").concat(a)})}var F2e=d.forwardRef(function(e,t){var r=e.prefixCls,n=e.color,a=e.gradientId,i=e.radius,o=e.style,s=e.ptg,l=e.strokeLinecap,c=e.strokeWidth,u=e.size,f=e.gapDegree,m=n&&bt(n)==="object",h=m?"#FFF":void 0,p=u/2,g=d.createElement("circle",{className:"".concat(r,"-circle-path"),r:i,cx:p,cy:p,stroke:h,strokeLinecap:l,strokeWidth:c,opacity:s===0?0:1,style:o,ref:t});if(!m)return g;var v="".concat(a,"-conic"),y=f?"".concat(180+f/2,"deg"):"0deg",x=YD(n,(360-f)/360),b=YD(n,1),S="conic-gradient(from ".concat(y,", ").concat(x.join(", "),")"),w="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(b.join(", "),")");return d.createElement(d.Fragment,null,d.createElement("mask",{id:v},g),d.createElement("foreignObject",{x:0,y:0,width:u,height:u,mask:"url(#".concat(v,")")},d.createElement(XD,{bg:w},d.createElement(XD,{bg:S}))))}),ch=100,z2=function(t,r,n,a,i,o,s,l,c,u){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,m=n/100*360*((360-o)/360),h=o===0?0:{bottom:0,top:180,left:90,right:-90}[s],p=(100-a)/100*r;c==="round"&&a!==100&&(p+=u/2,p>=r&&(p=r-.01));var g=ch/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(r,"px ").concat(t),strokeDashoffset:p+f,transform:"rotate(".concat(i+m+h,"deg)"),transformOrigin:"".concat(g,"px ").concat(g,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},L2e=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function QD(e){var t=e??[];return Array.isArray(t)?t:[t]}var B2e=function(t){var r=ae(ae({},R2e),t),n=r.id,a=r.prefixCls,i=r.steps,o=r.strokeWidth,s=r.trailWidth,l=r.gapDegree,c=l===void 0?0:l,u=r.gapPosition,f=r.trailColor,m=r.strokeLinecap,h=r.style,p=r.className,g=r.strokeColor,v=r.percent,y=Rt(r,L2e),x=ch/2,b=j2e(n),S="".concat(b,"-gradient"),w=x-o/2,E=Math.PI*2*w,C=c>0?90+c/2:-90,O=E*((360-c)/360),_=bt(i)==="object"?i:{count:i,gap:2},P=_.count,I=_.gap,N=QD(v),D=QD(g),k=D.find(function(K){return K&&bt(K)==="object"}),R=k&&bt(k)==="object",A=R?"butt":m,j=z2(E,O,0,100,C,c,u,f,A,o),F=A2e(),M=function(){var L=0;return N.map(function(B,W){var z=D[W]||D[D.length-1],U=z2(E,O,L,B,C,c,u,z,A,o);return L+=B,d.createElement(F2e,{key:W,color:z,ptg:B,radius:w,prefixCls:a,gradientId:S,style:U,strokeLinecap:A,strokeWidth:o,gapDegree:c,ref:function(Y){F[W]=Y},size:ch})}).reverse()},V=function(){var L=Math.round(P*(N[0]/100)),B=100/P,W=0;return new Array(P).fill(null).map(function(z,U){var X=U<=L-1?D[0]:f,Y=X&&bt(X)==="object"?"url(#".concat(S,")"):void 0,G=z2(E,O,W,B,C,c,u,X,"butt",o,I);return W+=(O-G.strokeDashoffset+I)*100/O,d.createElement("circle",{key:U,className:"".concat(a,"-circle-path"),r:w,cx:x,cy:x,stroke:Y,strokeWidth:o,opacity:1,style:G,ref:function(ee){F[U]=ee}})})};return d.createElement("svg",Oe({className:ce("".concat(a,"-circle"),p),viewBox:"0 0 ".concat(ch," ").concat(ch),style:h,id:n,role:"presentation"},y),!P&&d.createElement("circle",{className:"".concat(a,"-circle-trail"),r:w,cx:x,cy:x,stroke:f,strokeLinecap:A,strokeWidth:s||o,style:j}),P?V():M())};function jc(e){return!e||e<0?0:e>100?100:e}function d1({success:e,successPercent:t}){let r=t;return e&&"progress"in e&&(r=e.progress),e&&"percent"in e&&(r=e.percent),r}const z2e=({percent:e,success:t,successPercent:r})=>{const n=jc(d1({success:t,successPercent:r}));return[n,jc(jc(e)-n)]},H2e=({success:e={},strokeColor:t})=>{const{strokeColor:r}=e;return[r||Yf.green,t||null]},BS=(e,t,r)=>{var n,a,i,o;let s=-1,l=-1;if(t==="step"){const c=r.steps,u=r.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=u??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=c}else if(t==="line"){const c=r==null?void 0:r.strokeWidth;typeof e=="string"||typeof e>"u"?l=c||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(a=(n=e[0])!==null&&n!==void 0?n:e[1])!==null&&a!==void 0?a:120,l=(o=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&o!==void 0?o:120));return[s,l]},W2e=3,V2e=e=>W2e/e*100,U2e=e=>{const{prefixCls:t,trailColor:r=null,strokeLinecap:n="round",gapPosition:a,gapDegree:i,width:o=120,type:s,children:l,success:c,size:u=o,steps:f}=e,[m,h]=BS(u,"circle");let{strokeWidth:p}=e;p===void 0&&(p=Math.max(V2e(m),6));const g={width:m,height:h,fontSize:m*.15+6},v=d.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),y=z2e(e),x=a||s==="dashboard"&&"bottom"||void 0,b=Object.prototype.toString.call(e.strokeColor)==="[object Object]",S=H2e({success:c,strokeColor:e.strokeColor}),w=ce(`${t}-inner`,{[`${t}-circle-gradient`]:b}),E=d.createElement(B2e,{steps:f,percent:f?y[1]:y,strokeWidth:p,trailWidth:p,strokeColor:f?S[1]:S,strokeLinecap:n,trailColor:r,prefixCls:t,gapDegree:v,gapPosition:x}),C=m<=20,O=d.createElement("div",{className:w,style:g},E,!C&&l);return C?d.createElement(Os,{title:l},O):O},K2e=U2e,f1="--progress-line-stroke-color",DU="--progress-percent",ZD=e=>{const t=e?"100%":"-100%";return new fr(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},G2e=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},dr(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${f1})`]},height:"100%",width:`calc(1 / var(${DU}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${le(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:ZD(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:ZD(!0)}},[`&${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}}})}},q2e=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},X2e=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.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},Y2e=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},Q2e=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),Z2e=lr("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),r=Zt(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[G2e(r),q2e(r),X2e(r),Y2e(r)]},Q2e);var J2e=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{let t=[];return Object.keys(e).forEach(r=>{const n=Number.parseFloat(r.replace(/%/g,""));Number.isNaN(n)||t.push({key:n,value:e[r]})}),t=t.sort((r,n)=>r.key-n.key),t.map(({key:r,value:n})=>`${n} ${r}%`).join(", ")},tEe=(e,t)=>{const{from:r=Yf.blue,to:n=Yf.blue,direction:a=t==="rtl"?"to left":"to right"}=e,i=J2e(e,["from","to","direction"]);if(Object.keys(i).length!==0){const s=eEe(i),l=`linear-gradient(${a}, ${s})`;return{background:l,[f1]:l}}const o=`linear-gradient(${a}, ${r}, ${n})`;return{background:o,[f1]:o}},rEe=e=>{const{prefixCls:t,direction:r,percent:n,size:a,strokeWidth:i,strokeColor:o,strokeLinecap:s="round",children:l,trailColor:c=null,percentPosition:u,success:f}=e,{align:m,type:h}=u,p=o&&typeof o!="string"?tEe(o,r):{[f1]:o,background:o},g=s==="square"||s==="butt"?0:void 0,v=a??[-1,i||(a==="small"?6:8)],[y,x]=BS(v,"line",{strokeWidth:i}),b={backgroundColor:c||void 0,borderRadius:g},S=Object.assign(Object.assign({width:`${jc(n)}%`,height:x,borderRadius:g},p),{[DU]:jc(n)/100}),w=d1(e),E={width:`${jc(w)}%`,height:x,borderRadius:g,backgroundColor:f==null?void 0:f.strokeColor},C={width:y<0?"100%":y},O=d.createElement("div",{className:`${t}-inner`,style:b},d.createElement("div",{className:ce(`${t}-bg`,`${t}-bg-${h}`),style:S},h==="inner"&&l),w!==void 0&&d.createElement("div",{className:`${t}-success-bg`,style:E})),_=h==="outer"&&m==="start",P=h==="outer"&&m==="end";return h==="outer"&&m==="center"?d.createElement("div",{className:`${t}-layout-bottom`},O,l):d.createElement("div",{className:`${t}-outer`,style:C},_&&l,O,P&&l)},nEe=rEe,aEe=e=>{const{size:t,steps:r,rounding:n=Math.round,percent:a=0,strokeWidth:i=8,strokeColor:o,trailColor:s=null,prefixCls:l,children:c}=e,u=n(r*(a/100)),m=t??[t==="small"?2:14,i],[h,p]=BS(m,"step",{steps:r,strokeWidth:i}),g=h/r,v=Array.from({length:r});for(let y=0;y{const{prefixCls:r,className:n,rootClassName:a,steps:i,strokeColor:o,percent:s=0,size:l="default",showInfo:c=!0,type:u="line",status:f,format:m,style:h,percentPosition:p={}}=e,g=oEe(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:v="end",type:y="outer"}=p,x=Array.isArray(o)?o[0]:o,b=typeof o=="string"||Array.isArray(o)?o:void 0,S=d.useMemo(()=>{if(x){const M=typeof x=="string"?x:Object.values(x)[0];return new sr(M).isLight()}return!1},[o]),w=d.useMemo(()=>{var M,V;const K=d1(e);return Number.parseInt(K!==void 0?(M=K??0)===null||M===void 0?void 0:M.toString():(V=s??0)===null||V===void 0?void 0:V.toString(),10)},[s,e.success,e.successPercent]),E=d.useMemo(()=>!sEe.includes(f)&&w>=100?"success":f||"normal",[f,w]),{getPrefixCls:C,direction:O,progress:_}=d.useContext(Nt),P=C("progress",r),[I,N,D]=Z2e(P),k=u==="line",R=k&&!i,A=d.useMemo(()=>{if(!c)return null;const M=d1(e);let V;const K=m||(B=>`${B}%`),L=k&&S&&y==="inner";return y==="inner"||m||E!=="exception"&&E!=="success"?V=K(jc(s),jc(M)):E==="exception"?V=k?d.createElement(jd,null):d.createElement(cu,null):E==="success"&&(V=k?d.createElement(mv,null):d.createElement(cI,null)),d.createElement("span",{className:ce(`${P}-text`,{[`${P}-text-bright`]:L,[`${P}-text-${v}`]:R,[`${P}-text-${y}`]:R}),title:typeof V=="string"?V:void 0},V)},[c,s,w,E,u,P,m]);let j;u==="line"?j=i?d.createElement(iEe,Object.assign({},e,{strokeColor:b,prefixCls:P,steps:typeof i=="object"?i.count:i}),A):d.createElement(nEe,Object.assign({},e,{strokeColor:x,prefixCls:P,direction:O,percentPosition:{align:v,type:y}}),A):(u==="circle"||u==="dashboard")&&(j=d.createElement(K2e,Object.assign({},e,{strokeColor:x,prefixCls:P,progressStatus:E}),A));const F=ce(P,`${P}-status-${E}`,{[`${P}-${u==="dashboard"&&"circle"||u}`]:u!=="line",[`${P}-inline-circle`]:u==="circle"&&BS(l,"circle")[0]<=20,[`${P}-line`]:R,[`${P}-line-align-${v}`]:R,[`${P}-line-position-${y}`]:R,[`${P}-steps`]:i,[`${P}-show-info`]:c,[`${P}-${l}`]:typeof l=="string",[`${P}-rtl`]:O==="rtl"},_==null?void 0:_.className,n,a,N,D);return I(d.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},_==null?void 0:_.style),h),className:F,role:"progressbar","aria-valuenow":w,"aria-valuemin":0,"aria-valuemax":100},Er(g,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),j))}),Sc=lEe;var cEe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};const uEe=cEe;var dEe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:uEe}))},fEe=d.forwardRef(dEe);const eN=fEe,mEe=e=>{const{value:t,formatter:r,precision:n,decimalSeparator:a,groupSeparator:i="",prefixCls:o}=e;let s;if(typeof r=="function")s=r(t);else{const l=String(t),c=l.match(/^(-?)(\d*)(\.(\d+))?$/);if(!c||l==="-")s=l;else{const u=c[1];let f=c[2]||"0",m=c[4]||"";f=f.replace(/\B(?=(\d{3})+(?!\d))/g,i),typeof n=="number"&&(m=m.padEnd(n,"0").slice(0,n>0?n:0)),m&&(m=`${a}${m}`),s=[d.createElement("span",{key:"int",className:`${o}-content-value-int`},u,f),m&&d.createElement("span",{key:"decimal",className:`${o}-content-value-decimal`},m)]}}return d.createElement("span",{className:`${o}-content-value`},s)},hEe=mEe,pEe=e=>{const{componentCls:t,marginXXS:r,padding:n,colorTextDescription:a,titleFontSize:i,colorTextHeading:o,contentFontSize:s,fontFamily:l}=e;return{[t]:Object.assign(Object.assign({},dr(e)),{[`${t}-title`]:{marginBottom:r,color:a,fontSize:i},[`${t}-skeleton`]:{paddingTop:n},[`${t}-content`]:{color:o,fontSize:s,fontFamily:l,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:r},[`${t}-content-suffix`]:{marginInlineStart:r}}})}},vEe=e=>{const{fontSizeHeading3:t,fontSize:r}=e;return{titleFontSize:r,contentFontSize:t}},gEe=lr("Statistic",e=>{const t=Zt(e,{});return pEe(t)},vEe);var yEe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:r,className:n,rootClassName:a,style:i,valueStyle:o,value:s=0,title:l,valueRender:c,prefix:u,suffix:f,loading:m=!1,formatter:h,precision:p,decimalSeparator:g=".",groupSeparator:v=",",onMouseEnter:y,onMouseLeave:x}=e,b=yEe(e,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:S,direction:w,className:E,style:C}=oa("statistic"),O=S("statistic",r),[_,P,I]=gEe(O),N=d.createElement(hEe,{decimalSeparator:g,groupSeparator:v,prefixCls:O,formatter:h,precision:p,value:s}),D=ce(O,{[`${O}-rtl`]:w==="rtl"},E,n,a,P,I),k=d.useRef(null);d.useImperativeHandle(t,()=>({nativeElement:k.current}));const R=Dn(b,{aria:!0,data:!0});return _(d.createElement("div",Object.assign({},R,{ref:k,className:D,style:Object.assign(Object.assign({},C),i),onMouseEnter:y,onMouseLeave:x}),l&&d.createElement("div",{className:`${O}-title`},l),d.createElement(nI,{paragraph:!1,loading:m,className:`${O}-skeleton`,active:!0},d.createElement("div",{style:o,className:`${O}-content`},u&&d.createElement("span",{className:`${O}-content-prefix`},u),c?c(N):N,f&&d.createElement("span",{className:`${O}-content-suffix`},f)))))}),Ai=xEe,bEe=[["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 SEe(e,t){let r=e;const n=/\[[^\]]*]/g,a=(t.match(n)||[]).map(l=>l.slice(1,-1)),i=t.replace(n,"[]"),o=bEe.reduce((l,[c,u])=>{if(l.includes(c)){const f=Math.floor(r/u);return r-=f*u,l.replace(new RegExp(`${c}+`,"g"),m=>{const h=m.length;return f.toString().padStart(h,"0")})}return l},i);let s=0;return o.replace(n,()=>{const l=a[s];return s+=1,l})}function wEe(e,t,r){const{format:n=""}=t,a=new Date(e).getTime(),i=Date.now(),o=Math.max(r?a-i:i-a,0);return SEe(o,n)}var CEe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{value:t,format:r="HH:mm:ss",onChange:n,onFinish:a,type:i}=e,o=CEe(e,["value","format","onChange","onFinish","type"]),s=i==="countdown",[l,c]=d.useState(null),u=qt(()=>{const h=Date.now(),p=EEe(t);c({});const g=s?p-h:h-p;return n==null||n(g),s&&p{let h;const p=()=>Ut.cancel(h),g=()=>{h=Ut(()=>{u()&&g()})};return g(),p},[t,s]),d.useEffect(()=>{c({})},[]);const f=(h,p)=>l?wEe(h,Object.assign(Object.assign({},p),{format:r}),s):"-",m=h=>pa(h,{title:void 0});return d.createElement(Ai,Object.assign({},o,{value:t,valueRender:m,formatter:f}))},jU=$Ee,_Ee=e=>d.createElement(jU,Object.assign({},e,{type:"countdown"})),OEe=d.memo(_Ee);Ai.Timer=jU;Ai.Countdown=OEe;var uc={},Iv="rc-table-internal-hook";function tN(e){var t=d.createContext(void 0),r=function(a){var i=a.value,o=a.children,s=d.useRef(i);s.current=i;var l=d.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),c=me(l,1),u=c[0];return Gt(function(){wi.unstable_batchedUpdates(function(){u.listeners.forEach(function(f){f(i)})})},[i]),d.createElement(t.Provider,{value:u},o)};return{Context:t,Provider:r,defaultValue:e}}function Ma(e,t){var r=qt(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var m={};return t.forEach(function(h){m[h]=f[h]}),m}),n=d.useContext(e==null?void 0:e.Context),a=n||{},i=a.listeners,o=a.getValue,s=d.useRef();s.current=r(n?o():e==null?void 0:e.defaultValue);var l=d.useState({}),c=me(l,2),u=c[1];return Gt(function(){if(!n)return;function f(m){var h=r(m);tl(s.current,h,!0)||u({})}return i.add(f),function(){i.delete(f)}},[n]),s.current}function TEe(){var e=d.createContext(null);function t(){return d.useContext(e)}function r(a,i){var o=_s(a),s=function(c,u){var f=o?{ref:u}:{},m=d.useRef(0),h=d.useRef(c),p=t();return p!==null?d.createElement(a,Oe({},c,f)):((!i||i(h.current,c))&&(m.current+=1),h.current=c,d.createElement(e.Provider,{value:m.current},d.createElement(a,Oe({},c,f))))};return o?d.forwardRef(s):s}function n(a,i){var o=_s(a),s=function(c,u){var f=o?{ref:u}:{};return t(),d.createElement(a,Oe({},c,f))};return o?d.memo(d.forwardRef(s),i):d.memo(s,i)}return{makeImmutable:r,responseImmutable:n,useImmutableMark:t}}var rN=TEe(),FU=rN.makeImmutable,lm=rN.responseImmutable,PEe=rN.useImmutableMark,fi=tN(),LU=d.createContext({renderWithProps:!1}),IEe="RC_TABLE_KEY";function NEe(e){return e==null?[]:Array.isArray(e)?e:[e]}function zS(e){var t=[],r={};return e.forEach(function(n){for(var a=n||{},i=a.key,o=a.dataIndex,s=i||NEe(o).join("-")||IEe;r[s];)s="".concat(s,"_next");r[s]=!0,t.push(s)}),t}function nO(e){return e!=null}function kEe(e){return typeof e=="number"&&!Number.isNaN(e)}function REe(e){return e&&bt(e)==="object"&&!Array.isArray(e)&&!d.isValidElement(e)}function AEe(e,t,r,n,a,i){var o=d.useContext(LU),s=PEe(),l=Md(function(){if(nO(n))return[n];var c=t==null||t===""?[]:Array.isArray(t)?t:[t],u=yi(e,c),f=u,m=void 0;if(a){var h=a(u,e,r);REe(h)?(f=h.children,m=h.props,o.renderWithProps=!0):f=h}return[f,m]},[s,e,n,t,a,r],function(c,u){if(i){var f=me(c,2),m=f[1],h=me(u,2),p=h[1];return i(p,m)}return o.renderWithProps?!0:!tl(c,u,!0)});return l}function MEe(e,t,r,n){var a=e+t-1;return e<=n&&a>=r}function DEe(e,t){return Ma(fi,function(r){var n=MEe(e,t||1,r.hoverStartRow,r.hoverEndRow);return[n,r.onHover]})}var jEe=function(t){var r=t.ellipsis,n=t.rowType,a=t.children,i,o=r===!0?{showTitle:!0}:r;return o&&(o.showTitle||n==="header")&&(typeof a=="string"||typeof a=="number"?i=a.toString():d.isValidElement(a)&&typeof a.props.children=="string"&&(i=a.props.children)),i};function FEe(e){var t,r,n,a,i,o,s,l,c=e.component,u=e.children,f=e.ellipsis,m=e.scope,h=e.prefixCls,p=e.className,g=e.align,v=e.record,y=e.render,x=e.dataIndex,b=e.renderIndex,S=e.shouldCellUpdate,w=e.index,E=e.rowType,C=e.colSpan,O=e.rowSpan,_=e.fixLeft,P=e.fixRight,I=e.firstFixLeft,N=e.lastFixLeft,D=e.firstFixRight,k=e.lastFixRight,R=e.appendNode,A=e.additionalProps,j=A===void 0?{}:A,F=e.isSticky,M="".concat(h,"-cell"),V=Ma(fi,["supportSticky","allColumnsFixedLeft","rowHoverable"]),K=V.supportSticky,L=V.allColumnsFixedLeft,B=V.rowHoverable,W=AEe(v,x,b,u,y,S),z=me(W,2),U=z[0],X=z[1],Y={},G=typeof _=="number"&&K,Q=typeof P=="number"&&K;G&&(Y.position="sticky",Y.left=_),Q&&(Y.position="sticky",Y.right=P);var ee=(t=(r=(n=X==null?void 0:X.colSpan)!==null&&n!==void 0?n:j.colSpan)!==null&&r!==void 0?r:C)!==null&&t!==void 0?t:1,H=(a=(i=(o=X==null?void 0:X.rowSpan)!==null&&o!==void 0?o:j.rowSpan)!==null&&i!==void 0?i:O)!==null&&a!==void 0?a:1,fe=DEe(w,H),te=me(fe,2),re=te[0],q=te[1],ne=qt(function(Ee){var He;v&&q(w,w+H-1),j==null||(He=j.onMouseEnter)===null||He===void 0||He.call(j,Ee)}),he=qt(function(Ee){var He;v&&q(-1,-1),j==null||(He=j.onMouseLeave)===null||He===void 0||He.call(j,Ee)});if(ee===0||H===0)return null;var ye=(s=j.title)!==null&&s!==void 0?s:jEe({rowType:E,ellipsis:f,children:U}),xe=ce(M,p,(l={},J(J(J(J(J(J(J(J(J(J(l,"".concat(M,"-fix-left"),G&&K),"".concat(M,"-fix-left-first"),I&&K),"".concat(M,"-fix-left-last"),N&&K),"".concat(M,"-fix-left-all"),N&&L&&K),"".concat(M,"-fix-right"),Q&&K),"".concat(M,"-fix-right-first"),D&&K),"".concat(M,"-fix-right-last"),k&&K),"".concat(M,"-ellipsis"),f),"".concat(M,"-with-append"),R),"".concat(M,"-fix-sticky"),(G||Q)&&F&&K),J(l,"".concat(M,"-row-hover"),!X&&re)),j.className,X==null?void 0:X.className),pe={};g&&(pe.textAlign=g);var Pe=ae(ae(ae(ae({},X==null?void 0:X.style),Y),pe),j.style),$e=U;return bt($e)==="object"&&!Array.isArray($e)&&!d.isValidElement($e)&&($e=null),f&&(N||D)&&($e=d.createElement("span",{className:"".concat(M,"-content")},$e)),d.createElement(c,Oe({},X,j,{className:xe,style:Pe,title:ye,scope:m,onMouseEnter:B?ne:void 0,onMouseLeave:B?he:void 0,colSpan:ee!==1?ee:null,rowSpan:H!==1?H:null}),R,$e)}const cm=d.memo(FEe);function nN(e,t,r,n,a){var i=r[e]||{},o=r[t]||{},s,l;i.fixed==="left"?s=n.left[a==="rtl"?t:e]:o.fixed==="right"&&(l=n.right[a==="rtl"?e:t]);var c=!1,u=!1,f=!1,m=!1,h=r[t+1],p=r[e-1],g=h&&!h.fixed||p&&!p.fixed||r.every(function(S){return S.fixed==="left"});if(a==="rtl"){if(s!==void 0){var v=p&&p.fixed==="left";m=!v&&g}else if(l!==void 0){var y=h&&h.fixed==="right";f=!y&&g}}else if(s!==void 0){var x=h&&h.fixed==="left";c=!x&&g}else if(l!==void 0){var b=p&&p.fixed==="right";u=!b&&g}return{fixLeft:s,fixRight:l,lastFixLeft:c,firstFixRight:u,lastFixRight:f,firstFixLeft:m,isSticky:n.isSticky}}var BU=d.createContext({});function LEe(e){var t=e.className,r=e.index,n=e.children,a=e.colSpan,i=a===void 0?1:a,o=e.rowSpan,s=e.align,l=Ma(fi,["prefixCls","direction"]),c=l.prefixCls,u=l.direction,f=d.useContext(BU),m=f.scrollColumnIndex,h=f.stickyOffsets,p=f.flattenColumns,g=r+i-1,v=g+1===m?i+1:i,y=nN(r,r+v-1,p,h,u);return d.createElement(cm,Oe({className:t,index:r,component:"td",prefixCls:c,record:null,dataIndex:null,align:s,colSpan:v,rowSpan:o,render:function(){return n}},y))}var BEe=["children"];function zEe(e){var t=e.children,r=Rt(e,BEe);return d.createElement("tr",r,t)}function HS(e){var t=e.children;return t}HS.Row=zEe;HS.Cell=LEe;function HEe(e){var t=e.children,r=e.stickyOffsets,n=e.flattenColumns,a=Ma(fi,"prefixCls"),i=n.length-1,o=n[i],s=d.useMemo(function(){return{stickyOffsets:r,flattenColumns:n,scrollColumnIndex:o!=null&&o.scrollbar?i:null}},[o,n,i,r]);return d.createElement(BU.Provider,{value:s},d.createElement("tfoot",{className:"".concat(a,"-summary")},t))}const ny=lm(HEe);var zU=HS;function WEe(e){return null}function VEe(e){return null}function HU(e,t,r,n,a,i,o){var s=i(t,o);e.push({record:t,indent:r,index:o,rowKey:s});var l=a==null?void 0:a.has(s);if(t&&Array.isArray(t[n])&&l)for(var c=0;c1?I-1:0),D=1;D5&&arguments[5]!==void 0?arguments[5]:[],s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,l=e.record,c=e.prefixCls,u=e.columnsKey,f=e.fixedInfoList,m=e.expandIconColumnIndex,h=e.nestExpandable,p=e.indentSize,g=e.expandIcon,v=e.expanded,y=e.hasNestChildren,x=e.onTriggerExpand,b=e.expandable,S=e.expandedKeys,w=u[r],E=f[r],C;r===(m||0)&&h&&(C=d.createElement(d.Fragment,null,d.createElement("span",{style:{paddingLeft:"".concat(p*n,"px")},className:"".concat(c,"-row-indent indent-level-").concat(n)}),g({prefixCls:c,expanded:v,expandable:y,record:l,onExpand:x})));var O=((i=t.onCell)===null||i===void 0?void 0:i.call(t,l,a))||{};if(s){var _=O.rowSpan,P=_===void 0?1:_;if(b&&P&&r=1)),style:ae(ae({},r),b==null?void 0:b.style)}),v.map(function(I,N){var D=I.render,k=I.dataIndex,R=I.className,A=GU(p,I,N,c,a,s,h==null?void 0:h.offset),j=A.key,F=A.fixedInfo,M=A.appendCellNode,V=A.additionalCellProps;return d.createElement(cm,Oe({className:R,ellipsis:I.ellipsis,align:I.align,scope:I.rowScope,component:I.rowScope?m:f,prefixCls:g,key:j,record:n,index:a,renderIndex:i,dataIndex:k,render:D,shouldCellUpdate:I.shouldCellUpdate},F,{appendNode:M,additionalProps:V}))})),_;if(w&&(E.current||S)){var P=x(n,a,c+1,S);_=d.createElement(UU,{expanded:S,className:ce("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(c+1),C),prefixCls:g,component:u,cellComponent:f,colSpan:h?h.colSpan:v.length,stickyOffset:h==null?void 0:h.sticky,isEmpty:!1},P)}return d.createElement(d.Fragment,null,O,_)}const qEe=lm(GEe);function XEe(e){var t=e.columnKey,r=e.onColumnResize,n=e.prefixCls,a=e.title,i=d.useRef();return Gt(function(){i.current&&r(t,i.current.offsetWidth)},[]),d.createElement(Ra,{data:t},d.createElement("th",{ref:i,className:"".concat(n,"-measure-cell")},d.createElement("div",{className:"".concat(n,"-measure-cell-content")},a||" ")))}function YEe(e){var t=e.prefixCls,r=e.columnsKey,n=e.onColumnResize,a=e.columns,i=d.useRef(null),o=Ma(fi,["measureRowRender"]),s=o.measureRowRender,l=d.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),ref:i,tabIndex:-1},d.createElement(Ra.Collection,{onBatchResize:function(u){q0(i.current)&&u.forEach(function(f){var m=f.data,h=f.size;n(m,h.offsetWidth)})}},r.map(function(c){var u=a.find(function(h){return h.key===c}),f=u==null?void 0:u.title,m=d.isValidElement(f)?d.cloneElement(f,{ref:null}):f;return d.createElement(XEe,{prefixCls:t,key:c,columnKey:c,onColumnResize:n,title:m})})));return s?s(l):l}function QEe(e){var t=e.data,r=e.measureColumnWidth,n=Ma(fi,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),a=n.prefixCls,i=n.getComponent,o=n.onColumnResize,s=n.flattenColumns,l=n.getRowKey,c=n.expandedKeys,u=n.childrenColumnName,f=n.emptyNode,m=n.expandedRowOffset,h=m===void 0?0:m,p=n.colWidths,g=WU(t,u,c,l),v=d.useMemo(function(){return g.map(function(_){return _.rowKey})},[g]),y=d.useRef({renderWithProps:!1}),x=d.useMemo(function(){for(var _=s.length-h,P=0,I=0;I=0;c-=1){var u=t[c],f=r&&r[c],m=void 0,h=void 0;if(f&&(m=f[kh],i==="auto"&&(h=f.minWidth)),u||h||m||l){var p=m||{};p.columnType;var g=Rt(p,t$e);o.unshift(d.createElement("col",Oe({key:c,style:{width:u,minWidth:h}},g))),l=!0}}return o.length>0?d.createElement("colgroup",null,o):null}var r$e=["className","noData","columns","flattenColumns","colWidths","colGroup","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","scrollX","tableLayout","onScroll","children"];function n$e(e,t){return d.useMemo(function(){for(var r=[],n=0;n1?"colgroup":"col":null,ellipsis:v.ellipsis,align:v.align,component:o,prefixCls:u,key:h[g]},y,{additionalProps:x,rowType:"header"}))}))};function o$e(e){var t=[];function r(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[l]=t[l]||[];var c=s,u=o.filter(Boolean).map(function(f){var m={key:f.key,className:f.className||"",children:f.title,column:f,colStart:c},h=1,p=f.children;return p&&p.length>0&&(h=r(p,c,l+1).reduce(function(g,v){return g+v},0),m.hasSubColumns=!0),"colSpan"in f&&(h=f.colSpan),"rowSpan"in f&&(m.rowSpan=f.rowSpan),m.colSpan=h,m.colEnd=m.colStart+h-1,t[l].push(m),c+=h,h});return u}r(e,0);for(var n=t.length,a=function(s){t[s].forEach(function(l){!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=n-s)})},i=0;i1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function l$e(e,t,r){return d.useMemo(function(){if(t&&t>0){var n=0,a=0;e.forEach(function(m){var h=tj(t,m.width);h?n+=h:a+=1});var i=Math.max(t,r),o=Math.max(i-n,a),s=a,l=o/a,c=0,u=e.map(function(m){var h=ae({},m),p=tj(t,h.width);if(p)h.width=p;else{var g=Math.floor(l);h.width=s===1?o:g,o-=g,s-=1}return c+=h.width,h});if(c0?ae(ae({},t),{},{children:XU(r)}):t})}function aO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(r){return r&&bt(r)==="object"}).reduce(function(r,n,a){var i=n.fixed,o=i===!0?"left":i,s="".concat(t,"-").concat(a),l=n.children;return l&&l.length>0?[].concat(De(r),De(aO(l,s).map(function(c){var u;return ae(ae({},c),{},{fixed:(u=c.fixed)!==null&&u!==void 0?u:o})}))):[].concat(De(r),[ae(ae({key:s},n),{},{fixed:o})])},[])}function d$e(e){return e.map(function(t){var r=t.fixed,n=Rt(t,u$e),a=r;return r==="left"?a="right":r==="right"&&(a="left"),ae({fixed:a},n)})}function f$e(e,t){var r=e.prefixCls,n=e.columns,a=e.children,i=e.expandable,o=e.expandedKeys,s=e.columnTitle,l=e.getRowKey,c=e.onTriggerExpand,u=e.expandIcon,f=e.rowExpandable,m=e.expandIconColumnIndex,h=e.expandedRowOffset,p=h===void 0?0:h,g=e.direction,v=e.expandRowByClick,y=e.columnWidth,x=e.fixed,b=e.scrollWidth,S=e.clientWidth,w=d.useMemo(function(){var k=n||aN(a)||[];return XU(k.slice())},[n,a]),E=d.useMemo(function(){if(i){var k=w.slice();if(!k.includes(uc)){var R=m||0,A=R===0&&x==="right"?w.length:R;A>=0&&k.splice(A,0,uc)}var j=k.indexOf(uc);k=k.filter(function(K,L){return K!==uc||L===j});var F=w[j],M;x?M=x:M=F?F.fixed:null;var V=J(J(J(J(J(J({},kh,{className:"".concat(r,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",M),"className","".concat(r,"-row-expand-icon-cell")),"width",y),"render",function(L,B,W){var z=l(B,W),U=o.has(z),X=f?f(B):!0,Y=u({prefixCls:r,expanded:U,expandable:X,record:B,onExpand:c});return v?d.createElement("span",{onClick:function(Q){return Q.stopPropagation()}},Y):Y});return k.map(function(K,L){var B=K===uc?V:K;return L=0;R-=1){var A=O[R].fixed;if(A==="left"||A===!0){k=R;break}}if(k>=0)for(var j=0;j<=k;j+=1){var F=O[j].fixed;if(F!=="left"&&F!==!0)return!0}var M=O.findIndex(function(L){var B=L.fixed;return B==="right"});if(M>=0)for(var V=M;V=j-s})})}})},D=function(R){x(function(A){return ae(ae({},A),{},{scrollLeft:f?R/f*m:0})})};return d.useImperativeHandle(r,function(){return{setScrollLeft:D,checkScrollBarVisible:N}}),d.useEffect(function(){var k=FD(document.body,"mouseup",_,!1),R=FD(document.body,"mousemove",I,!1);return N(),function(){k.remove(),R.remove()}},[h,E]),d.useEffect(function(){if(i.current){for(var k=[],R=uv(i.current);R;)k.push(R),R=R.parentElement;return k.forEach(function(A){return A.addEventListener("scroll",N,!1)}),window.addEventListener("resize",N,!1),window.addEventListener("scroll",N,!1),l.addEventListener("scroll",N,!1),function(){k.forEach(function(A){return A.removeEventListener("scroll",N)}),window.removeEventListener("resize",N),window.removeEventListener("scroll",N),l.removeEventListener("scroll",N)}}},[l]),d.useEffect(function(){y.isHiddenScrollBar||x(function(k){var R=i.current;return R?ae(ae({},k),{},{scrollLeft:R.scrollLeft/R.scrollWidth*R.clientWidth}):k})},[y.isHiddenScrollBar]),f<=m||!h||y.isHiddenScrollBar?null:d.createElement("div",{style:{height:qM(),width:m,bottom:s},className:"".concat(u,"-sticky-scroll")},d.createElement("div",{onMouseDown:P,ref:p,className:ce("".concat(u,"-sticky-scroll-bar"),J({},"".concat(u,"-sticky-scroll-bar-active"),E)),style:{width:"".concat(h,"px"),transform:"translate3d(".concat(y.scrollLeft,"px, 0, 0)")}}))};const S$e=d.forwardRef(b$e);var YU="rc-table",w$e=[],C$e={};function E$e(){return"No Data"}function $$e(e,t){var r=ae({rowKey:"key",prefixCls:YU,emptyText:E$e},e),n=r.prefixCls,a=r.className,i=r.rowClassName,o=r.style,s=r.data,l=r.rowKey,c=r.scroll,u=r.tableLayout,f=r.direction,m=r.title,h=r.footer,p=r.summary,g=r.caption,v=r.id,y=r.showHeader,x=r.components,b=r.emptyText,S=r.onRow,w=r.onHeaderRow,E=r.measureRowRender,C=r.onScroll,O=r.internalHooks,_=r.transformColumns,P=r.internalRefs,I=r.tailor,N=r.getContainerWidth,D=r.sticky,k=r.rowHoverable,R=k===void 0?!0:k,A=s||w$e,j=!!A.length,F=O===Iv,M=d.useCallback(function(dt,$t){return yi(x,dt)||$t},[x]),V=d.useMemo(function(){return typeof l=="function"?l:function(dt){var $t=dt&&dt[l];return $t}},[l]),K=M(["body"]),L=g$e(),B=me(L,3),W=B[0],z=B[1],U=B[2],X=m$e(r,A,V),Y=me(X,6),G=Y[0],Q=Y[1],ee=Y[2],H=Y[3],fe=Y[4],te=Y[5],re=c==null?void 0:c.x,q=d.useState(0),ne=me(q,2),he=ne[0],ye=ne[1],xe=f$e(ae(ae(ae({},r),G),{},{expandable:!!G.expandedRowRender,columnTitle:G.columnTitle,expandedKeys:ee,getRowKey:V,onTriggerExpand:te,expandIcon:H,expandIconColumnIndex:G.expandIconColumnIndex,direction:f,scrollWidth:F&&I&&typeof re=="number"?re:null,clientWidth:he}),F?_:null),pe=me(xe,4),Pe=pe[0],$e=pe[1],Ee=pe[2],He=pe[3],Fe=Ee??re,nt=d.useMemo(function(){return{columns:Pe,flattenColumns:$e}},[Pe,$e]),qe=d.useRef(),Ge=d.useRef(),Le=d.useRef(),Ne=d.useRef();d.useImperativeHandle(t,function(){return{nativeElement:qe.current,scrollTo:function($t){var tr;if(Le.current instanceof HTMLElement){var Sr=$t.index,nn=$t.top,In=$t.key;if(kEe(nn)){var hi;(hi=Le.current)===null||hi===void 0||hi.scrollTo({top:nn})}else{var Ti,Pi=In??V(A[Sr]);(Ti=Le.current.querySelector('[data-row-key="'.concat(Pi,'"]')))===null||Ti===void 0||Ti.scrollIntoView()}}else(tr=Le.current)!==null&&tr!==void 0&&tr.scrollTo&&Le.current.scrollTo($t)}}});var Se=d.useRef(),je=d.useState(!1),_e=me(je,2),Me=_e[0],ge=_e[1],be=d.useState(!1),Re=me(be,2),We=Re[0],at=Re[1],yt=d.useState(new Map),tt=me(yt,2),it=tt[0],ft=tt[1],lt=zS($e),mt=lt.map(function(dt){return it.get(dt)}),Mt=d.useMemo(function(){return mt},[mt.join("_")]),Ft=x$e(Mt,$e,f),ht=c&&nO(c.y),St=c&&nO(Fe)||!!G.fixed,xt=St&&$e.some(function(dt){var $t=dt.fixed;return $t}),rt=d.useRef(),Ye=y$e(D,n),Ze=Ye.isSticky,ct=Ye.offsetHeader,Z=Ye.offsetSummary,ue=Ye.offsetScroll,se=Ye.stickyClassName,ie=Ye.container,oe=d.useMemo(function(){return p==null?void 0:p(A)},[p,A]),de=(ht||Ze)&&d.isValidElement(oe)&&oe.type===HS&&oe.props.fixed,we,Ae,Ce;ht&&(Ae={overflowY:j?"scroll":"auto",maxHeight:c.y}),St&&(we={overflowX:"auto"},ht||(Ae={overflowY:"hidden"}),Ce={width:Fe===!0?"auto":Fe,minWidth:"100%"});var Ie=d.useCallback(function(dt,$t){ft(function(tr){if(tr.get(dt)!==$t){var Sr=new Map(tr);return Sr.set(dt,$t),Sr}return tr})},[]),Te=v$e(null),Xe=me(Te,2),ke=Xe[0],Be=Xe[1];function ze(dt,$t){$t&&(typeof $t=="function"?$t(dt):$t.scrollLeft!==dt&&($t.scrollLeft=dt,$t.scrollLeft!==dt&&setTimeout(function(){$t.scrollLeft=dt},0)))}var Ve=qt(function(dt){var $t=dt.currentTarget,tr=dt.scrollLeft,Sr=f==="rtl",nn=typeof tr=="number"?tr:$t.scrollLeft,In=$t||C$e;if(!Be()||Be()===In){var hi;ke(In),ze(nn,Ge.current),ze(nn,Le.current),ze(nn,Se.current),ze(nn,(hi=rt.current)===null||hi===void 0?void 0:hi.setScrollLeft)}var Ti=$t||Ge.current;if(Ti){var Pi=F&&I&&typeof Fe=="number"?Fe:Ti.scrollWidth,As=Ti.clientWidth;if(Pi===As){ge(!1),at(!1);return}Sr?(ge(-nn0)):(ge(nn>0),at(nn1?v-k:0,A=ae(ae(ae({},O),c),{},{flex:"0 0 ".concat(k,"px"),width:"".concat(k,"px"),marginRight:R,pointerEvents:"auto"}),j=d.useMemo(function(){return f?N<=1:P===0||N===0||N>1},[N,P,f]);j?A.visibility="hidden":f&&(A.height=m==null?void 0:m(N));var F=j?function(){return null}:h,M={};return(N===0||P===0)&&(M.rowSpan=1,M.colSpan=1),d.createElement(cm,Oe({className:ce(g,u),ellipsis:r.ellipsis,align:r.align,scope:r.rowScope,component:o,prefixCls:t.prefixCls,key:S,record:l,index:i,renderIndex:s,dataIndex:p,render:F,shouldCellUpdate:r.shouldCellUpdate},w,{appendNode:E,additionalProps:ae(ae({},C),{},{style:A},M)}))}var P$e=["data","index","className","rowKey","style","extra","getHeight"],I$e=d.forwardRef(function(e,t){var r=e.data,n=e.index,a=e.className,i=e.rowKey,o=e.style,s=e.extra,l=e.getHeight,c=Rt(e,P$e),u=r.record,f=r.indent,m=r.index,h=Ma(fi,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),p=h.scrollX,g=h.flattenColumns,v=h.prefixCls,y=h.fixColumn,x=h.componentWidth,b=Ma(iN,["getComponent"]),S=b.getComponent,w=VU(u,i,n,f),E=S(["body","row"],"div"),C=S(["body","cell"],"div"),O=w.rowSupportExpand,_=w.expanded,P=w.rowProps,I=w.expandedRowRender,N=w.expandedRowClassName,D;if(O&&_){var k=I(u,n,f+1,_),R=KU(N,u,n,f),A={};y&&(A={style:J({},"--virtual-width","".concat(x,"px"))});var j="".concat(v,"-expanded-row-cell");D=d.createElement(E,{className:ce("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(f+1),R)},d.createElement(cm,{component:C,prefixCls:v,className:ce(j,J({},"".concat(j,"-fixed"),y)),additionalProps:A},k))}var F=ae(ae({},o),{},{width:p});s&&(F.position="absolute",F.pointerEvents="none");var M=d.createElement(E,Oe({},P,c,{"data-row-key":i,ref:O?null:t,className:ce(a,"".concat(v,"-row"),P==null?void 0:P.className,J({},"".concat(v,"-row-extra"),s)),style:ae(ae({},F),P==null?void 0:P.style)}),g.map(function(V,K){return d.createElement(T$e,{key:K,component:C,rowInfo:w,column:V,colIndex:K,indent:f,index:n,renderIndex:m,record:u,inverse:s,getHeight:l})}));return O?d.createElement("div",{ref:t},M,D):M}),ij=lm(I$e),N$e=d.forwardRef(function(e,t){var r=e.data,n=e.onScroll,a=Ma(fi,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),i=a.flattenColumns,o=a.onColumnResize,s=a.getRowKey,l=a.expandedKeys,c=a.prefixCls,u=a.childrenColumnName,f=a.scrollX,m=a.direction,h=Ma(iN),p=h.sticky,g=h.scrollY,v=h.listItemHeight,y=h.getComponent,x=h.onScroll,b=d.useRef(),S=WU(r,u,l,s),w=d.useMemo(function(){var D=0;return i.map(function(k){var R=k.width,A=k.minWidth,j=k.key,F=Math.max(R||0,A||0);return D+=F,[j,F,D]})},[i]),E=d.useMemo(function(){return w.map(function(D){return D[2]})},[w]);d.useEffect(function(){w.forEach(function(D){var k=me(D,2),R=k[0],A=k[1];o(R,A)})},[w]),d.useImperativeHandle(t,function(){var D,k={scrollTo:function(A){var j;(j=b.current)===null||j===void 0||j.scrollTo(A)},nativeElement:(D=b.current)===null||D===void 0?void 0:D.nativeElement};return Object.defineProperty(k,"scrollLeft",{get:function(){var A;return((A=b.current)===null||A===void 0?void 0:A.getScrollInfo().x)||0},set:function(A){var j;(j=b.current)===null||j===void 0||j.scrollTo({left:A})}}),Object.defineProperty(k,"scrollTop",{get:function(){var A;return((A=b.current)===null||A===void 0?void 0:A.getScrollInfo().y)||0},set:function(A){var j;(j=b.current)===null||j===void 0||j.scrollTo({top:A})}}),k});var C=function(k,R){var A,j=(A=S[R])===null||A===void 0?void 0:A.record,F=k.onCell;if(F){var M,V=F(j,R);return(M=V==null?void 0:V.rowSpan)!==null&&M!==void 0?M:1}return 1},O=function(k){var R=k.start,A=k.end,j=k.getSize,F=k.offsetY;if(A<0)return null;for(var M=i.filter(function(ee){return C(ee,R)===0}),V=R,K=function(H){if(M=M.filter(function(fe){return C(fe,H)===0}),!M.length)return V=H,1},L=R;L>=0&&!K(L);L-=1);for(var B=i.filter(function(ee){return C(ee,A)!==1}),W=A,z=function(H){if(B=B.filter(function(fe){return C(fe,H)!==1}),!B.length)return W=Math.max(H-1,A),1},U=A;U1})&&X.push(H)},G=V;G<=W;G+=1)Y(G);var Q=X.map(function(ee){var H=S[ee],fe=s(H.record,ee),te=function(ne){var he=ee+ne-1,ye=s(S[he].record,he),xe=j(fe,ye);return xe.bottom-xe.top},re=j(fe);return d.createElement(ij,{key:ee,data:H,rowKey:fe,index:ee,style:{top:-F+re.top},extra:!0,getHeight:te})});return Q},_=d.useMemo(function(){return{columnsOffset:E}},[E]),P="".concat(c,"-tbody"),I=y(["body","wrapper"]),N={};return p&&(N.position="sticky",N.bottom=0,bt(p)==="object"&&p.offsetScroll&&(N.bottom=p.offsetScroll)),d.createElement(ZU.Provider,{value:_},d.createElement(SS,{fullHeight:!1,ref:b,prefixCls:"".concat(P,"-virtual"),styles:{horizontalScrollBar:N},className:P,height:g,itemHeight:v||24,data:S,itemKey:function(k){return s(k.record)},component:I,scrollWidth:f,direction:m,onVirtualScroll:function(k){var R,A=k.x;n({currentTarget:(R=b.current)===null||R===void 0?void 0:R.nativeElement,scrollLeft:A})},onScroll:x,extraRender:O},function(D,k,R){var A=s(D.record,k);return d.createElement(ij,{data:D,rowKey:A,index:k,style:R.style})}))}),k$e=lm(N$e),R$e=function(t,r){var n=r.ref,a=r.onScroll;return d.createElement(k$e,{ref:n,data:t,onScroll:a})};function A$e(e,t){var r=e.data,n=e.columns,a=e.scroll,i=e.sticky,o=e.prefixCls,s=o===void 0?YU:o,l=e.className,c=e.listItemHeight,u=e.components,f=e.onScroll,m=a||{},h=m.x,p=m.y;typeof h!="number"&&(h=1),typeof p!="number"&&(p=500);var g=qt(function(x,b){return yi(u,x)||b}),v=qt(f),y=d.useMemo(function(){return{sticky:i,scrollY:p,listItemHeight:c,getComponent:g,onScroll:v}},[i,p,c,g,v]);return d.createElement(iN.Provider,{value:y},d.createElement(um,Oe({},e,{className:ce(l,"".concat(s,"-virtual")),scroll:ae(ae({},a),{},{x:h}),components:ae(ae({},u),{},{body:r!=null&&r.length?R$e:void 0}),columns:n,internalHooks:Iv,tailor:!0,ref:t})))}var M$e=d.forwardRef(A$e);function JU(e){return FU(M$e,e)}JU();const D$e=e=>null,j$e=D$e,F$e=e=>null,L$e=F$e;var oN=d.createContext(null),B$e=d.createContext({}),z$e=function(t){for(var r=t.prefixCls,n=t.level,a=t.isStart,i=t.isEnd,o="".concat(r,"-indent-unit"),s=[],l=0;l=0&&r.splice(n,1),r}function fl(e,t){var r=(e||[]).slice();return r.indexOf(t)===-1&&r.push(t),r}function sN(e){return e.split("-")}function U$e(e,t){var r=[],n=ki(t,e);function a(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(o){var s=o.key,l=o.children;r.push(s),a(l)})}return a(n.children),r}function K$e(e){if(e.parent){var t=sN(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function G$e(e){var t=sN(e.pos);return Number(t[t.length-1])===0}function lj(e,t,r,n,a,i,o,s,l,c){var u,f=e.clientX,m=e.clientY,h=e.target.getBoundingClientRect(),p=h.top,g=h.height,v=(c==="rtl"?-1:1)*(((a==null?void 0:a.x)||0)-f),y=(v-12)/n,x=l.filter(function(A){var j;return(j=s[A])===null||j===void 0||(j=j.children)===null||j===void 0?void 0:j.length}),b=ki(s,r.eventKey);if(m-1.5?i({dragNode:D,dropNode:k,dropPosition:1})?P=1:R=!1:i({dragNode:D,dropNode:k,dropPosition:0})?P=0:i({dragNode:D,dropNode:k,dropPosition:1})?P=1:R=!1:i({dragNode:D,dropNode:k,dropPosition:1})?P=1:R=!1,{dropPosition:P,dropLevelOffset:I,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:_,dropContainerKey:P===0?null:((u=b.parent)===null||u===void 0?void 0:u.key)||null,dropAllowed:R}}function cj(e,t){if(e){var r=t.multiple;return r?e.slice():e.length?[e[0]]:e}}function H2(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(bt(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Br(!1,"`checkedKeys` is not an array or an object"),null;return t}function iO(e,t){var r=new Set;function n(a){if(!r.has(a)){var i=ki(t,a);if(i){r.add(a);var o=i.parent,s=i.node;s.disabled||o&&n(o.key)}}}return(e||[]).forEach(function(a){n(a)}),De(r)}const oc={},oO="SELECT_ALL",sO="SELECT_INVERT",lO="SELECT_NONE",uj=[],eK=(e,t,r=[])=>((t||[]).forEach(n=>{r.push(n),n&&typeof n=="object"&&e in n&&eK(e,n[e],r)}),r),q$e=(e,t)=>{const{preserveSelectedRowKeys:r,selectedRowKeys:n,defaultSelectedRowKeys:a,getCheckboxProps:i,getTitleCheckboxProps:o,onChange:s,onSelect:l,onSelectAll:c,onSelectInvert:u,onSelectNone:f,onSelectMultiple:m,columnWidth:h,type:p,selections:g,fixed:v,renderCell:y,hideSelectAll:x,checkStrictly:b=!0}=t||{},{prefixCls:S,data:w,pageData:E,getRecordByKey:C,getRowKey:O,expandType:_,childrenColumnName:P,locale:I,getPopupContainer:N}=e,D=lu(),[k,R]=Dle(H=>H),[A,j]=br(n||a||uj,{value:n}),F=d.useRef(new Map),M=d.useCallback(H=>{if(r){const fe=new Map;H.forEach(te=>{let re=C(te);!re&&F.current.has(te)&&(re=F.current.get(te)),fe.set(te,re)}),F.current=fe}},[C,r]);d.useEffect(()=>{M(A)},[A]);const V=d.useMemo(()=>eK(P,E),[P,E]),{keyEntities:K}=d.useMemo(()=>{if(b)return{keyEntities:null};let H=w;if(r){const fe=new Set(V.map((re,q)=>O(re,q))),te=Array.from(F.current).reduce((re,[q,ne])=>fe.has(q)?re:re.concat(ne),[]);H=[].concat(De(H),De(te))}return BI(H,{externalGetKey:O,childrenPropName:P})},[w,O,b,P,r,V]),L=d.useMemo(()=>{const H=new Map;return V.forEach((fe,te)=>{const re=O(fe,te),q=(i?i(fe):null)||{};H.set(re,q)}),H},[V,O,i]),B=d.useCallback(H=>{const fe=O(H);let te;return L.has(fe)?te=L.get(O(H)):te=i?i(H):void 0,!!(te!=null&&te.disabled)},[L,O]),[W,z]=d.useMemo(()=>{if(b)return[A||[],[]];const{checkedKeys:H,halfCheckedKeys:fe}=Jf(A,!0,K,B);return[H||[],fe]},[A,b,K,B]),U=d.useMemo(()=>{const H=p==="radio"?W.slice(0,1):W;return new Set(H)},[W,p]),X=d.useMemo(()=>p==="radio"?new Set:new Set(z),[z,p]);d.useEffect(()=>{t||j(uj)},[!!t]);const Y=d.useCallback((H,fe)=>{let te,re;M(H),r?(te=H,re=H.map(q=>F.current.get(q))):(te=[],re=[],H.forEach(q=>{const ne=C(q);ne!==void 0&&(te.push(q),re.push(ne))})),j(te),s==null||s(te,re,{type:fe})},[j,C,s,r]),G=d.useCallback((H,fe,te,re)=>{if(l){const q=te.map(ne=>C(ne));l(C(H),fe,q,re)}Y(te,"single")},[l,C,Y]),Q=d.useMemo(()=>!g||x?null:(g===!0?[oO,sO,lO]:g).map(fe=>fe===oO?{key:"all",text:I.selectionAll,onSelect(){Y(w.map((te,re)=>O(te,re)).filter(te=>{const re=L.get(te);return!(re!=null&&re.disabled)||U.has(te)}),"all")}}:fe===sO?{key:"invert",text:I.selectInvert,onSelect(){const te=new Set(U);E.forEach((q,ne)=>{const he=O(q,ne),ye=L.get(he);ye!=null&&ye.disabled||(te.has(he)?te.delete(he):te.add(he))});const re=Array.from(te);u&&(D.deprecated(!1,"onSelectInvert","onChange"),u(re)),Y(re,"invert")}}:fe===lO?{key:"none",text:I.selectNone,onSelect(){f==null||f(),Y(Array.from(U).filter(te=>{const re=L.get(te);return re==null?void 0:re.disabled}),"none")}}:fe).map(fe=>Object.assign(Object.assign({},fe),{onSelect:(...te)=>{var re,q;(q=fe.onSelect)===null||q===void 0||(re=q).call.apply(re,[fe].concat(te)),R(null)}})),[g,U,E,O,u,Y]);return[d.useCallback(H=>{var fe;if(!t)return H.filter(Ne=>Ne!==oc);let te=De(H);const re=new Set(U),q=V.map(O).filter(Ne=>!L.get(Ne).disabled),ne=q.every(Ne=>re.has(Ne)),he=q.some(Ne=>re.has(Ne)),ye=()=>{const Ne=[];ne?q.forEach(je=>{re.delete(je),Ne.push(je)}):q.forEach(je=>{re.has(je)||(re.add(je),Ne.push(je))});const Se=Array.from(re);c==null||c(!ne,Se.map(je=>C(je)),Ne.map(je=>C(je))),Y(Se,"all"),R(null)};let xe,pe;if(p!=="radio"){let Ne;if(Q){const We={getPopupContainer:N,items:Q.map((at,yt)=>{const{key:tt,text:it,onSelect:ft}=at;return{key:tt??yt,onClick:()=>{ft==null||ft(q)},label:it}})};Ne=d.createElement("div",{className:`${S}-selection-extra`},d.createElement(XI,{menu:We,getPopupContainer:N},d.createElement("span",null,d.createElement(uI,null))))}const Se=V.map((We,at)=>{const yt=O(We,at),tt=L.get(yt)||{};return Object.assign({checked:re.has(yt)},tt)}).filter(({disabled:We})=>We),je=!!Se.length&&Se.length===V.length,_e=je&&Se.every(({checked:We})=>We),Me=je&&Se.some(({checked:We})=>We),ge=(o==null?void 0:o())||{},{onChange:be,disabled:Re}=ge;pe=d.createElement(Sp,Object.assign({"aria-label":Ne?"Custom selection":"Select all"},ge,{checked:je?_e:!!V.length&&ne,indeterminate:je?!_e&&Me:!ne&&he,onChange:We=>{ye(),be==null||be(We)},disabled:Re??(V.length===0||je),skipGroup:!0})),xe=!x&&d.createElement("div",{className:`${S}-selection`},pe,Ne)}let Pe;p==="radio"?Pe=(Ne,Se,je)=>{const _e=O(Se,je),Me=re.has(_e),ge=L.get(_e);return{node:d.createElement(Gs,Object.assign({},ge,{checked:Me,onClick:be=>{var Re;be.stopPropagation(),(Re=ge==null?void 0:ge.onClick)===null||Re===void 0||Re.call(ge,be)},onChange:be=>{var Re;re.has(_e)||G(_e,!0,[_e],be.nativeEvent),(Re=ge==null?void 0:ge.onChange)===null||Re===void 0||Re.call(ge,be)}})),checked:Me}}:Pe=(Ne,Se,je)=>{var _e;const Me=O(Se,je),ge=re.has(Me),be=X.has(Me),Re=L.get(Me);let We;return _==="nest"?We=be:We=(_e=Re==null?void 0:Re.indeterminate)!==null&&_e!==void 0?_e:be,{node:d.createElement(Sp,Object.assign({},Re,{indeterminate:We,checked:ge,skipGroup:!0,onClick:at=>{var yt;at.stopPropagation(),(yt=Re==null?void 0:Re.onClick)===null||yt===void 0||yt.call(Re,at)},onChange:at=>{var yt;const{nativeEvent:tt}=at,{shiftKey:it}=tt,ft=q.indexOf(Me),lt=W.some(mt=>q.includes(mt));if(it&&b&<){const mt=k(ft,q,re),Mt=Array.from(re);m==null||m(!ge,Mt.map(Ft=>C(Ft)),mt.map(Ft=>C(Ft))),Y(Mt,"multiple")}else{const mt=W;if(b){const Mt=ge?Bs(mt,Me):fl(mt,Me);G(Me,!ge,Mt,tt)}else{const Mt=Jf([].concat(De(mt),[Me]),!0,K,B),{checkedKeys:Ft,halfCheckedKeys:ht}=Mt;let St=Ft;if(ge){const xt=new Set(Ft);xt.delete(Me),St=Jf(Array.from(xt),{checked:!1,halfCheckedKeys:ht},K,B).checkedKeys}G(Me,!ge,St,tt)}}R(ge?null:ft),(yt=Re==null?void 0:Re.onChange)===null||yt===void 0||yt.call(Re,at)}})),checked:ge}};const $e=(Ne,Se,je)=>{const{node:_e,checked:Me}=Pe(Ne,Se,je);return y?y(Me,Se,je,_e):_e};if(!te.includes(oc))if(te.findIndex(Ne=>{var Se;return((Se=Ne[kh])===null||Se===void 0?void 0:Se.columnType)==="EXPAND_COLUMN"})===0){const[Ne,...Se]=te;te=[Ne,oc].concat(De(Se))}else te=[oc].concat(De(te));const Ee=te.indexOf(oc);te=te.filter((Ne,Se)=>Ne!==oc||Se===Ee);const He=te[Ee-1],Fe=te[Ee+1];let nt=v;nt===void 0&&((Fe==null?void 0:Fe.fixed)!==void 0?nt=Fe.fixed:(He==null?void 0:He.fixed)!==void 0&&(nt=He.fixed)),nt&&He&&((fe=He[kh])===null||fe===void 0?void 0:fe.columnType)==="EXPAND_COLUMN"&&He.fixed===void 0&&(He.fixed=nt);const qe=ce(`${S}-selection-col`,{[`${S}-selection-col-with-dropdown`]:g&&p==="checkbox"}),Ge=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(pe):t.columnTitle:xe,Le={fixed:nt,width:h,className:`${S}-selection-column`,title:Ge(),render:$e,onCell:t.onCell,align:t.align,[kh]:{className:qe}};return te.map(Ne=>Ne===oc?Le:Ne)},[O,V,t,W,U,X,h,Q,_,L,m,G,B]),U]};function X$e(e){return t=>{const{prefixCls:r,onExpand:n,record:a,expanded:i,expandable:o}=t,s=`${r}-row-expand-icon`;return d.createElement("button",{type:"button",onClick:l=>{n(a,l),l.stopPropagation()},className:ce(s,{[`${s}-spaced`]:!o,[`${s}-expanded`]:o&&i,[`${s}-collapsed`]:o&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}}function Y$e(e){return(r,n)=>{const a=r.querySelector(`.${e}-container`);let i=n;if(a){const o=getComputedStyle(a),s=Number.parseInt(o.borderLeftWidth,10),l=Number.parseInt(o.borderRightWidth,10);i=n-s-l}return i}}const Kc=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function dm(e,t){return t?`${t}-${e}`:`${e}`}const WS=(e,t)=>typeof e=="function"?e(t):e,Q$e=(e,t)=>{const r=WS(e,t);return Object.prototype.toString.call(r)==="[object Object]"?"":r};var Z$e={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"};const J$e=Z$e;var e_e=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:J$e}))},t_e=d.forwardRef(e_e);const r_e=t_e;var n_e=function(t){var r=t.dropPosition,n=t.dropLevelOffset,a=t.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(r){case-1:i.top=0,i.left=-n*a;break;case 1:i.bottom=0,i.left=-n*a;break;case 0:i.bottom=0,i.left=a;break}return ve.createElement("div",{style:i})};function tK(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function a_e(e,t){var r=d.useState(!1),n=me(r,2),a=n[0],i=n[1];Gt(function(){if(a)return e(),function(){t()}},[a]),Gt(function(){return i(!0),function(){i(!1)}},[])}var i_e=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],o_e=d.forwardRef(function(e,t){var r=e.className,n=e.style,a=e.motion,i=e.motionNodes,o=e.motionType,s=e.onMotionStart,l=e.onMotionEnd,c=e.active,u=e.treeNodeRequiredProps,f=Rt(e,i_e),m=d.useState(!0),h=me(m,2),p=h[0],g=h[1],v=d.useContext(oN),y=v.prefixCls,x=i&&o!=="hide";Gt(function(){i&&x!==p&&g(x)},[i]);var b=function(){i&&s()},S=d.useRef(!1),w=function(){i&&!S.current&&(S.current=!0,l())};a_e(b,w);var E=function(O){x===O&&w()};return i?d.createElement(Vi,Oe({ref:t,visible:p},a,{motionAppear:o==="show",onVisibleChanged:E}),function(C,O){var _=C.className,P=C.style;return d.createElement("div",{ref:O,className:ce("".concat(y,"-treenode-motion"),_),style:P},i.map(function(I){var N=Object.assign({},(tK(I.data),I.data)),D=I.title,k=I.key,R=I.isStart,A=I.isEnd;delete N.children;var j=Ih(k,u);return d.createElement($p,Oe({},N,j,{title:D,active:c,data:I.data,key:k,isStart:R,isEnd:A}))}))}):d.createElement($p,Oe({domRef:t,className:r,style:n},f,{active:c}))});function s_e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=e.length,n=t.length;if(Math.abs(r-n)!==1)return{add:!1,key:null};function a(i,o){var s=new Map;i.forEach(function(c){s.set(c,!0)});var l=o.filter(function(c){return!s.has(c)});return l.length===1?l[0]:null}return r ").concat(t);return t}var d_e=d.forwardRef(function(e,t){var r=e.prefixCls,n=e.data;e.selectable,e.checkable;var a=e.expandedKeys,i=e.selectedKeys,o=e.checkedKeys,s=e.loadedKeys,l=e.loadingKeys,c=e.halfCheckedKeys,u=e.keyEntities,f=e.disabled,m=e.dragging,h=e.dragOverNodeKey,p=e.dropPosition,g=e.motion,v=e.height,y=e.itemHeight,x=e.virtual,b=e.scrollWidth,S=e.focusable,w=e.activeItem,E=e.focused,C=e.tabIndex,O=e.onKeyDown,_=e.onFocus,P=e.onBlur,I=e.onActiveChange,N=e.onListChangeStart,D=e.onListChangeEnd,k=Rt(e,l_e),R=d.useRef(null),A=d.useRef(null);d.useImperativeHandle(t,function(){return{scrollTo:function(Pe){R.current.scrollTo(Pe)},getIndentWidth:function(){return A.current.offsetWidth}}});var j=d.useState(a),F=me(j,2),M=F[0],V=F[1],K=d.useState(n),L=me(K,2),B=L[0],W=L[1],z=d.useState(n),U=me(z,2),X=U[0],Y=U[1],G=d.useState([]),Q=me(G,2),ee=Q[0],H=Q[1],fe=d.useState(null),te=me(fe,2),re=te[0],q=te[1],ne=d.useRef(n);ne.current=n;function he(){var pe=ne.current;W(pe),Y(pe),H([]),q(null),D()}Gt(function(){V(a);var pe=s_e(M,a);if(pe.key!==null)if(pe.add){var Pe=B.findIndex(function(qe){var Ge=qe.key;return Ge===pe.key}),$e=hj(dj(B,n,pe.key),x,v,y),Ee=B.slice();Ee.splice(Pe+1,0,mj),Y(Ee),H($e),q("show")}else{var He=n.findIndex(function(qe){var Ge=qe.key;return Ge===pe.key}),Fe=hj(dj(n,B,pe.key),x,v,y),nt=n.slice();nt.splice(He+1,0,mj),Y(nt),H(Fe),q("hide")}else B!==n&&(W(n),Y(n))},[a,n]),d.useEffect(function(){m||he()},[m]);var ye=g?X:n,xe={expandedKeys:a,selectedKeys:i,loadedKeys:s,loadingKeys:l,checkedKeys:o,halfCheckedKeys:c,dragOverNodeKey:h,dropPosition:p,keyEntities:u};return d.createElement(d.Fragment,null,E&&w&&d.createElement("span",{style:fj,"aria-live":"assertive"},u_e(w)),d.createElement("div",null,d.createElement("input",{style:fj,disabled:S===!1||f,tabIndex:S!==!1?C:null,onKeyDown:O,onFocus:_,onBlur:P,value:"",onChange:c_e,"aria-label":"for screen reader"})),d.createElement("div",{className:"".concat(r,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},d.createElement("div",{className:"".concat(r,"-indent")},d.createElement("div",{ref:A,className:"".concat(r,"-indent-unit")}))),d.createElement(SS,Oe({},k,{data:ye,itemKey:pj,height:v,fullHeight:!1,virtual:x,itemHeight:y,scrollWidth:b,prefixCls:"".concat(r,"-list"),ref:R,role:"tree",onVisibleChange:function(Pe){Pe.every(function($e){return pj($e)!==yd})&&he()}}),function(pe){var Pe=pe.pos,$e=Object.assign({},(tK(pe.data),pe.data)),Ee=pe.title,He=pe.key,Fe=pe.isStart,nt=pe.isEnd,qe=Ov(He,Pe);delete $e.key,delete $e.children;var Ge=Ih(qe,xe);return d.createElement(o_e,Oe({},$e,Ge,{title:Ee,active:!!w&&He===w.key,pos:Pe,data:pe.data,isStart:Fe,isEnd:nt,motion:g,motionNodes:He===yd?ee:null,motionType:re,onMotionStart:N,onMotionEnd:he,treeNodeRequiredProps:xe,onMouseMove:function(){I(null)}}))}))}),f_e=10,lN=function(e){yo(r,e);var t=Qo(r);function r(){var n;Wr(this,r);for(var a=arguments.length,i=new Array(a),o=0;o2&&arguments[2]!==void 0?arguments[2]:!1,f=n.state,m=f.dragChildrenKeys,h=f.dropPosition,p=f.dropTargetKey,g=f.dropTargetPos,v=f.dropAllowed;if(v){var y=n.props.onDrop;if(n.setState({dragOverNodeKey:null}),n.cleanDragState(),p!==null){var x=ae(ae({},Ih(p,n.getTreeNodeRequiredProps())),{},{active:((c=n.getActiveItem())===null||c===void 0?void 0:c.key)===p,data:ki(n.state.keyEntities,p).node}),b=m.includes(p);Br(!b,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var S=sN(g),w={event:s,node:Xn(x),dragNode:n.dragNodeProps?Xn(n.dragNodeProps):null,dragNodesKeys:[n.dragNodeProps.eventKey].concat(m),dropToGap:h!==0,dropPosition:h+Number(S[S.length-1])};u||y==null||y(w),n.dragNodeProps=null}}}),J(vt(n),"cleanDragState",function(){var s=n.state.draggingNodeKey;s!==null&&n.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),n.dragStartMousePosition=null,n.currentMouseOverDroppableNodeKey=null}),J(vt(n),"triggerExpandActionExpand",function(s,l){var c=n.state,u=c.expandedKeys,f=c.flattenNodes,m=l.expanded,h=l.key,p=l.isLeaf;if(!(p||s.shiftKey||s.metaKey||s.ctrlKey)){var g=f.filter(function(y){return y.key===h})[0],v=Xn(ae(ae({},Ih(h,n.getTreeNodeRequiredProps())),{},{data:g.data}));n.setExpandedKeys(m?Bs(u,h):fl(u,h)),n.onNodeExpand(s,v)}}),J(vt(n),"onNodeClick",function(s,l){var c=n.props,u=c.onClick,f=c.expandAction;f==="click"&&n.triggerExpandActionExpand(s,l),u==null||u(s,l)}),J(vt(n),"onNodeDoubleClick",function(s,l){var c=n.props,u=c.onDoubleClick,f=c.expandAction;f==="doubleClick"&&n.triggerExpandActionExpand(s,l),u==null||u(s,l)}),J(vt(n),"onNodeSelect",function(s,l){var c=n.state.selectedKeys,u=n.state,f=u.keyEntities,m=u.fieldNames,h=n.props,p=h.onSelect,g=h.multiple,v=l.selected,y=l[m.key],x=!v;x?g?c=fl(c,y):c=[y]:c=Bs(c,y);var b=c.map(function(S){var w=ki(f,S);return w?w.node:null}).filter(Boolean);n.setUncontrolledState({selectedKeys:c}),p==null||p(c,{event:"select",selected:x,node:l,selectedNodes:b,nativeEvent:s.nativeEvent})}),J(vt(n),"onNodeCheck",function(s,l,c){var u=n.state,f=u.keyEntities,m=u.checkedKeys,h=u.halfCheckedKeys,p=n.props,g=p.checkStrictly,v=p.onCheck,y=l.key,x,b={event:"check",node:l,checked:c,nativeEvent:s.nativeEvent};if(g){var S=c?fl(m,y):Bs(m,y),w=Bs(h,y);x={checked:S,halfChecked:w},b.checkedNodes=S.map(function(I){return ki(f,I)}).filter(Boolean).map(function(I){return I.node}),n.setUncontrolledState({checkedKeys:S})}else{var E=Jf([].concat(De(m),[y]),!0,f),C=E.checkedKeys,O=E.halfCheckedKeys;if(!c){var _=new Set(C);_.delete(y);var P=Jf(Array.from(_),{checked:!1,halfCheckedKeys:O},f);C=P.checkedKeys,O=P.halfCheckedKeys}x=C,b.checkedNodes=[],b.checkedNodesPositions=[],b.halfCheckedKeys=O,C.forEach(function(I){var N=ki(f,I);if(N){var D=N.node,k=N.pos;b.checkedNodes.push(D),b.checkedNodesPositions.push({node:D,pos:k})}}),n.setUncontrolledState({checkedKeys:C},!1,{halfCheckedKeys:O})}v==null||v(x,b)}),J(vt(n),"onNodeLoad",function(s){var l,c=s.key,u=n.state.keyEntities,f=ki(u,c);if(!(f!=null&&(l=f.children)!==null&&l!==void 0&&l.length)){var m=new Promise(function(h,p){n.setState(function(g){var v=g.loadedKeys,y=v===void 0?[]:v,x=g.loadingKeys,b=x===void 0?[]:x,S=n.props,w=S.loadData,E=S.onLoad;if(!w||y.includes(c)||b.includes(c))return null;var C=w(s);return C.then(function(){var O=n.state.loadedKeys,_=fl(O,c);E==null||E(_,{event:"load",node:s}),n.setUncontrolledState({loadedKeys:_}),n.setState(function(P){return{loadingKeys:Bs(P.loadingKeys,c)}}),h()}).catch(function(O){if(n.setState(function(P){return{loadingKeys:Bs(P.loadingKeys,c)}}),n.loadingRetryTimes[c]=(n.loadingRetryTimes[c]||0)+1,n.loadingRetryTimes[c]>=f_e){var _=n.state.loadedKeys;Br(!1,"Retry for `loadData` many times but still failed. No more retry."),n.setUncontrolledState({loadedKeys:fl(_,c)}),h()}p(O)}),{loadingKeys:fl(b,c)}})});return m.catch(function(){}),m}}),J(vt(n),"onNodeMouseEnter",function(s,l){var c=n.props.onMouseEnter;c==null||c({event:s,node:l})}),J(vt(n),"onNodeMouseLeave",function(s,l){var c=n.props.onMouseLeave;c==null||c({event:s,node:l})}),J(vt(n),"onNodeContextMenu",function(s,l){var c=n.props.onRightClick;c&&(s.preventDefault(),c({event:s,node:l}))}),J(vt(n),"onFocus",function(){var s=n.props.onFocus;n.setState({focused:!0});for(var l=arguments.length,c=new Array(l),u=0;u1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!n.destroyed){var u=!1,f=!0,m={};Object.keys(s).forEach(function(h){if(n.props.hasOwnProperty(h)){f=!1;return}u=!0,m[h]=s[h]}),u&&(!l||f)&&n.setState(ae(ae({},m),c))}}),J(vt(n),"scrollTo",function(s){n.listRef.current.scrollTo(s)}),n}return Vr(r,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var a=this.props,i=a.activeKey,o=a.itemScrollOffset,s=o===void 0?0:o;i!==void 0&&i!==this.state.activeKey&&(this.setState({activeKey:i}),i!==null&&this.scrollTo({key:i,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var a=this.state,i=a.focused,o=a.flattenNodes,s=a.keyEntities,l=a.draggingNodeKey,c=a.activeKey,u=a.dropLevelOffset,f=a.dropContainerKey,m=a.dropTargetKey,h=a.dropPosition,p=a.dragOverNodeKey,g=a.indent,v=this.props,y=v.prefixCls,x=v.className,b=v.style,S=v.showLine,w=v.focusable,E=v.tabIndex,C=E===void 0?0:E,O=v.selectable,_=v.showIcon,P=v.icon,I=v.switcherIcon,N=v.draggable,D=v.checkable,k=v.checkStrictly,R=v.disabled,A=v.motion,j=v.loadData,F=v.filterTreeNode,M=v.height,V=v.itemHeight,K=v.scrollWidth,L=v.virtual,B=v.titleRender,W=v.dropIndicatorRender,z=v.onContextMenu,U=v.onScroll,X=v.direction,Y=v.rootClassName,G=v.rootStyle,Q=Dn(this.props,{aria:!0,data:!0}),ee;N&&(bt(N)==="object"?ee=N:typeof N=="function"?ee={nodeDraggable:N}:ee={});var H={prefixCls:y,selectable:O,showIcon:_,icon:P,switcherIcon:I,draggable:ee,draggingNodeKey:l,checkable:D,checkStrictly:k,disabled:R,keyEntities:s,dropLevelOffset:u,dropContainerKey:f,dropTargetKey:m,dropPosition:h,dragOverNodeKey:p,indent:g,direction:X,dropIndicatorRender:W,loadData:j,filterTreeNode:F,titleRender:B,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return d.createElement(oN.Provider,{value:H},d.createElement("div",{className:ce(y,x,Y,J(J(J({},"".concat(y,"-show-line"),S),"".concat(y,"-focused"),i),"".concat(y,"-active-focused"),c!==null)),style:G},d.createElement(d_e,Oe({ref:this.listRef,prefixCls:y,style:b,data:o,disabled:R,selectable:O,checkable:!!D,motion:A,dragging:l!==null,height:M,itemHeight:V,virtual:L,focusable:w,focused:i,tabIndex:C,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:z,onScroll:U,scrollWidth:K},this.getTreeNodeRequiredProps(),Q))))}}],[{key:"getDerivedStateFromProps",value:function(a,i){var o=i.prevProps,s={prevProps:a};function l(C){return!o&&a.hasOwnProperty(C)||o&&o[C]!==a[C]}var c,u=i.fieldNames;if(l("fieldNames")&&(u=S0(a.fieldNames),s.fieldNames=u),l("treeData")?c=a.treeData:l("children")&&(Br(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=GV(a.children)),c){s.treeData=c;var f=BI(c,{fieldNames:u});s.keyEntities=ae(J({},yd,rK),f.keyEntities)}var m=s.keyEntities||i.keyEntities;if(l("expandedKeys")||o&&l("autoExpandParent"))s.expandedKeys=a.autoExpandParent||!o&&a.defaultExpandParent?iO(a.expandedKeys,m):a.expandedKeys;else if(!o&&a.defaultExpandAll){var h=ae({},m);delete h[yd];var p=[];Object.keys(h).forEach(function(C){var O=h[C];O.children&&O.children.length&&p.push(O.key)}),s.expandedKeys=p}else!o&&a.defaultExpandedKeys&&(s.expandedKeys=a.autoExpandParent||a.defaultExpandParent?iO(a.defaultExpandedKeys,m):a.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,c||s.expandedKeys){var g=k2(c||i.treeData,s.expandedKeys||i.expandedKeys,u);s.flattenNodes=g}if(a.selectable&&(l("selectedKeys")?s.selectedKeys=cj(a.selectedKeys,a):!o&&a.defaultSelectedKeys&&(s.selectedKeys=cj(a.defaultSelectedKeys,a))),a.checkable){var v;if(l("checkedKeys")?v=H2(a.checkedKeys)||{}:!o&&a.defaultCheckedKeys?v=H2(a.defaultCheckedKeys)||{}:c&&(v=H2(a.checkedKeys)||{checkedKeys:i.checkedKeys,halfCheckedKeys:i.halfCheckedKeys}),v){var y=v,x=y.checkedKeys,b=x===void 0?[]:x,S=y.halfCheckedKeys,w=S===void 0?[]:S;if(!a.checkStrictly){var E=Jf(b,!0,m);b=E.checkedKeys,w=E.halfCheckedKeys}s.checkedKeys=b,s.halfCheckedKeys=w}}return l("loadedKeys")&&(s.loadedKeys=a.loadedKeys),s}}]),r}(d.Component);J(lN,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:n_e,allowDrop:function(){return!0},expandAction:!1});J(lN,"TreeNode",$p);var m_e={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"};const h_e=m_e;var p_e=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:h_e}))},v_e=d.forwardRef(p_e);const nK=v_e;var g_e={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"};const y_e=g_e;var x_e=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:y_e}))},b_e=d.forwardRef(x_e);const S_e=b_e;var w_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"};const C_e=w_e;var E_e=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:C_e}))},$_e=d.forwardRef(E_e);const __e=$_e;var O_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};const T_e=O_e;var P_e=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:T_e}))},I_e=d.forwardRef(P_e);const N_e=I_e,k_e=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:r,directoryNodeSelectedColor:n,motionDurationMid:a,borderRadius:i,controlItemBgHover:o})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${a}`,content:'""',borderRadius:i},"&:hover:before":{background:o}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:r,borderRadius:i,[`${e}-switcher, ${e}-draggable-icon`]:{color:n},[`${e}-node-content-wrapper`]:{color:n,background:"transparent","&, &:hover":{color:n},"&:before, &:hover:before":{background:r}}}}}),R_e=new fr("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),A_e=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),M_e=(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:`${le(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),D_e=(e,t)=>{const{treeCls:r,treeNodeCls:n,treeNodePadding:a,titleHeight:i,indentSize:o,nodeSelectedBg:s,nodeHoverBg:l,colorTextQuaternary:c,controlItemBgActiveDisabled:u}=t;return{[r]:Object.assign(Object.assign({},dr(t)),{"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${r}-rtl ${r}-switcher_close ${r}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${r}-active-focused)`]:nl(t),[`${r}-list-holder-inner`]:{alignItems:"flex-start"},[`&${r}-block-node`]:{[`${r}-list-holder-inner`]:{alignItems:"stretch",[`${r}-node-content-wrapper`]:{flex:"auto"},[`${n}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:R_e,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[n]:{display:"flex",alignItems:"flex-start",marginBottom:a,lineHeight:le(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:a},[`&-disabled ${r}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${r}-checkbox-disabled + ${r}-node-selected,&${n}-disabled${n}-selected ${r}-node-content-wrapper`]:{backgroundColor:u},[`${r}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${n}-disabled)`]:{[`${r}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${r}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${n}-disabled).filter-node ${r}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${r}-draggable-icon`]:{flexShrink:0,width:i,textAlign:"center",visibility:"visible",color:c},[`&${n}-disabled ${r}-draggable-icon`]:{visibility:"hidden"}}},[`${r}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:o}},[`${r}-draggable-icon`]:{visibility:"hidden"},[`${r}-switcher, ${r}-checkbox`]:{marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${r}-switcher`]:Object.assign(Object.assign({},A_e(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${r}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${r}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${r}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},M_e(e,t)),{"&:hover":{backgroundColor:l},[`&${r}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${r}-iconEle`]:{display:"inline-block",width:i,height:i,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${r}-unselectable ${r}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${n}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${r}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(a).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${r}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${n}-leaf-last ${r}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${le(t.calc(i).div(2).equal())} !important`}})}},j_e=(e,t,r=!0)=>{const n=`.${e}`,a=`${n}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),o=Zt(t,{treeCls:n,treeNodeCls:a,treeNodePadding:i});return[D_e(e,o),r&&k_e(o)].filter(Boolean)},F_e=e=>{const{controlHeightSM:t,controlItemBgHover:r,controlItemBgActive:n}=e,a=t;return{titleHeight:a,indentSize:a,nodeHoverBg:r,nodeHoverColor:e.colorText,nodeSelectedBg:n,nodeSelectedColor:e.colorText}},L_e=e=>{const{colorTextLightSolid:t,colorPrimary:r}=e;return Object.assign(Object.assign({},F_e(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:r})},B_e=lr("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:XV(`${t}-checkbox`,e)},j_e(t,e),aS(e)],L_e),vj=4;function z_e(e){const{dropPosition:t,dropLevelOffset:r,prefixCls:n,indent:a,direction:i="ltr"}=e,o=i==="ltr"?"left":"right",s=i==="ltr"?"right":"left",l={[o]:-r*a+vj,[s]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[o]=a+vj;break}return ve.createElement("div",{style:l,className:`${n}-drop-indicator`})}var H_e={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:"filled"};const W_e=H_e;var V_e=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:W_e}))},U_e=d.forwardRef(V_e);const K_e=U_e;var G_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};const q_e=G_e;var X_e=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:q_e}))},Y_e=d.forwardRef(X_e);const Q_e=Y_e;var Z_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};const J_e=Z_e;var eOe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:J_e}))},tOe=d.forwardRef(eOe);const rOe=tOe,nOe=e=>{var t,r;const{prefixCls:n,switcherIcon:a,treeNodeProps:i,showLine:o,switcherLoadingIcon:s}=e,{isLeaf:l,expanded:c,loading:u}=i;if(u)return d.isValidElement(s)?s:d.createElement(Wc,{className:`${n}-switcher-loading-icon`});let f;if(o&&typeof o=="object"&&(f=o.showLeafIcon),l){if(!o)return null;if(typeof f!="boolean"&&f){const p=typeof f=="function"?f(i):f,g=`${n}-switcher-line-custom-icon`;return d.isValidElement(p)?pa(p,{className:ce((t=p.props)===null||t===void 0?void 0:t.className,g)}):p}return f?d.createElement(nK,{className:`${n}-switcher-line-icon`}):d.createElement("span",{className:`${n}-switcher-leaf-line`})}const m=`${n}-switcher-icon`,h=typeof a=="function"?a(i):a;return d.isValidElement(h)?pa(h,{className:ce((r=h.props)===null||r===void 0?void 0:r.className,m)}):h!==void 0?h:o?c?d.createElement(Q_e,{className:`${n}-switcher-line-icon`}):d.createElement(rOe,{className:`${n}-switcher-line-icon`}):d.createElement(K_e,{className:m})},aOe=nOe,iOe=ve.forwardRef((e,t)=>{var r;const{getPrefixCls:n,direction:a,virtual:i,tree:o}=ve.useContext(Nt),{prefixCls:s,className:l,showIcon:c=!1,showLine:u,switcherIcon:f,switcherLoadingIcon:m,blockNode:h=!1,children:p,checkable:g=!1,selectable:v=!0,draggable:y,disabled:x,motion:b,style:S}=e,w=n("tree",s),E=n(),C=ve.useContext(Wi),O=x??C,_=b??Object.assign(Object.assign({},vp(E)),{motionAppear:!1}),P=Object.assign(Object.assign({},e),{checkable:g,selectable:v,showIcon:c,motion:_,blockNode:h,disabled:O,showLine:!!u,dropIndicatorRender:z_e}),[I,N,D]=B_e(w),[,k]=Ga(),R=k.paddingXS/2+(((r=k.Tree)===null||r===void 0?void 0:r.titleHeight)||k.controlHeightSM),A=ve.useMemo(()=>{if(!y)return!1;let F={};switch(typeof y){case"function":F.nodeDraggable=y;break;case"object":F=Object.assign({},y);break}return F.icon!==!1&&(F.icon=F.icon||ve.createElement(N_e,null)),F},[y]),j=F=>ve.createElement(aOe,{prefixCls:w,switcherIcon:f,switcherLoadingIcon:m,treeNodeProps:F,showLine:u});return I(ve.createElement(lN,Object.assign({itemHeight:R,ref:t,virtual:i},P,{style:Object.assign(Object.assign({},o==null?void 0:o.style),S),prefixCls:w,className:ce({[`${w}-icon-hide`]:!c,[`${w}-block-node`]:h,[`${w}-unselectable`]:!v,[`${w}-rtl`]:a==="rtl",[`${w}-disabled`]:O},o==null?void 0:o.className,l,N,D),direction:a,checkable:g&&ve.createElement("span",{className:`${w}-checkbox-inner`}),selectable:v,switcherIcon:j,draggable:A}),p))}),aK=iOe,gj=0,W2=1,yj=2;function cN(e,t,r){const{key:n,children:a}=r;function i(o){const s=o[n],l=o[a];t(s,o)!==!1&&cN(l||[],t,r)}e.forEach(i)}function oOe({treeData:e,expandedKeys:t,startKey:r,endKey:n,fieldNames:a}){const i=[];let o=gj;if(r&&r===n)return[r];if(!r||!n)return[];function s(l){return l===r||l===n}return cN(e,l=>{if(o===yj)return!1;if(s(l)){if(i.push(l),o===gj)o=W2;else if(o===W2)return o=yj,!1}else o===W2&&i.push(l);return t.includes(l)},S0(a)),i}function V2(e,t,r){const n=De(t),a=[];return cN(e,(i,o)=>{const s=n.indexOf(i);return s!==-1&&(a.push(o),n.splice(s,1)),!!n.length},S0(r)),a}var xj=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var{defaultExpandAll:r,defaultExpandParent:n,defaultExpandedKeys:a}=e,i=xj(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const o=d.useRef(null),s=d.useRef(null),l=()=>{const{keyEntities:O}=BI(bj(i),{fieldNames:i.fieldNames});let _;return r?_=Object.keys(O):n?_=iO(i.expandedKeys||a||[],O):_=i.expandedKeys||a||[],_},[c,u]=d.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[f,m]=d.useState(()=>l());d.useEffect(()=>{"selectedKeys"in i&&u(i.selectedKeys)},[i.selectedKeys]),d.useEffect(()=>{"expandedKeys"in i&&m(i.expandedKeys)},[i.expandedKeys]);const h=(O,_)=>{var P;return"expandedKeys"in i||m(O),(P=i.onExpand)===null||P===void 0?void 0:P.call(i,O,_)},p=(O,_)=>{var P;const{multiple:I,fieldNames:N}=i,{node:D,nativeEvent:k}=_,{key:R=""}=D,A=bj(i),j=Object.assign(Object.assign({},_),{selected:!0}),F=(k==null?void 0:k.ctrlKey)||(k==null?void 0:k.metaKey),M=k==null?void 0:k.shiftKey;let V;I&&F?(V=O,o.current=R,s.current=V,j.selectedNodes=V2(A,V,N)):I&&M?(V=Array.from(new Set([].concat(De(s.current||[]),De(oOe({treeData:A,expandedKeys:f,startKey:R,endKey:o.current,fieldNames:N}))))),j.selectedNodes=V2(A,V,N)):(V=[R],o.current=R,s.current=V,j.selectedNodes=V2(A,V,N)),(P=i.onSelect)===null||P===void 0||P.call(i,V,j),"selectedKeys"in i||u(V)},{getPrefixCls:g,direction:v}=d.useContext(Nt),{prefixCls:y,className:x,showIcon:b=!0,expandAction:S="click"}=i,w=xj(i,["prefixCls","className","showIcon","expandAction"]),E=g("tree",y),C=ce(`${E}-directory`,{[`${E}-directory-rtl`]:v==="rtl"},x);return d.createElement(aK,Object.assign({icon:sOe,ref:t,blockNode:!0},w,{showIcon:b,expandAction:S,prefixCls:E,className:C,expandedKeys:f,selectedKeys:c,onSelect:p,onExpand:h}))},cOe=d.forwardRef(lOe),uOe=cOe,uN=aK;uN.DirectoryTree=uOe;uN.TreeNode=$p;const dOe=uN,fOe=e=>{const{value:t,filterSearch:r,tablePrefixCls:n,locale:a,onChange:i}=e;return r?d.createElement("div",{className:`${n}-filter-dropdown-search`},d.createElement(Tv,{prefix:d.createElement(dI,null),placeholder:a.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${n}-filter-dropdown-search-input`})):null},Sj=fOe,mOe=e=>{const{keyCode:t}=e;t===Qe.ENTER&&e.stopPropagation()},hOe=d.forwardRef((e,t)=>d.createElement("div",{className:e.className,onClick:r=>r.stopPropagation(),onKeyDown:mOe,ref:t},e.children)),pOe=hOe;function e0(e){let t=[];return(e||[]).forEach(({value:r,children:n})=>{t.push(r),n&&(t=[].concat(De(t),De(e0(n))))}),t}function vOe(e){return e.some(({children:t})=>t)}function iK(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function oK({filters:e,prefixCls:t,filteredKeys:r,filterMultiple:n,searchValue:a,filterSearch:i}){return e.map((o,s)=>{const l=String(o.value);if(o.children)return{key:l||s,label:o.text,popupClassName:`${t}-dropdown-submenu`,children:oK({filters:o.children,prefixCls:t,filteredKeys:r,filterMultiple:n,searchValue:a,filterSearch:i})};const c=n?Sp:Gs,u={key:o.value!==void 0?l:s,label:d.createElement(d.Fragment,null,d.createElement(c,{checked:r.includes(l)}),d.createElement("span",null,o.text))};return a.trim()?typeof i=="function"?i(a,o)?u:null:iK(a,o.text)?u:null:u})}function U2(e){return e||[]}const gOe=e=>{var t,r,n,a;const{tablePrefixCls:i,prefixCls:o,column:s,dropdownPrefixCls:l,columnKey:c,filterOnClose:u,filterMultiple:f,filterMode:m="menu",filterSearch:h=!1,filterState:p,triggerFilter:g,locale:v,children:y,getPopupContainer:x,rootClassName:b}=e,{filterResetToDefaultFilteredValue:S,defaultFilteredValue:w,filterDropdownProps:E={},filterDropdownOpen:C,filterDropdownVisible:O,onFilterDropdownVisibleChange:_,onFilterDropdownOpenChange:P}=s,[I,N]=d.useState(!1),D=!!(p&&(!((t=p.filteredKeys)===null||t===void 0)&&t.length||p.forceFiltered)),k=pe=>{var Pe;N(pe),(Pe=E.onOpenChange)===null||Pe===void 0||Pe.call(E,pe),P==null||P(pe),_==null||_(pe)},R=(a=(n=(r=E.open)!==null&&r!==void 0?r:C)!==null&&n!==void 0?n:O)!==null&&a!==void 0?a:I,A=p==null?void 0:p.filteredKeys,[j,F]=Ble(U2(A)),M=({selectedKeys:pe})=>{F(pe)},V=(pe,{node:Pe,checked:$e})=>{M(f?{selectedKeys:pe}:{selectedKeys:$e&&Pe.key?[Pe.key]:[]})};d.useEffect(()=>{I&&M({selectedKeys:U2(A)})},[A]);const[K,L]=d.useState([]),B=pe=>{L(pe)},[W,z]=d.useState(""),U=pe=>{const{value:Pe}=pe.target;z(Pe)};d.useEffect(()=>{I||z("")},[I]);const X=pe=>{const Pe=pe!=null&&pe.length?pe:null;if(Pe===null&&(!p||!p.filteredKeys)||tl(Pe,p==null?void 0:p.filteredKeys,!0))return null;g({column:s,key:c,filteredKeys:Pe})},Y=()=>{k(!1),X(j())},G=({confirm:pe,closeDropdown:Pe}={confirm:!1,closeDropdown:!1})=>{pe&&X([]),Pe&&k(!1),z(""),F(S?(w||[]).map($e=>String($e)):[])},Q=({closeDropdown:pe}={closeDropdown:!0})=>{pe&&k(!1),X(j())},ee=(pe,Pe)=>{Pe.source==="trigger"&&(pe&&A!==void 0&&F(U2(A)),k(pe),!pe&&!s.filterDropdown&&u&&Y())},H=ce({[`${l}-menu-without-submenu`]:!vOe(s.filters||[])}),fe=pe=>{if(pe.target.checked){const Pe=e0(s==null?void 0:s.filters).map($e=>String($e));F(Pe)}else F([])},te=({filters:pe})=>(pe||[]).map((Pe,$e)=>{const Ee=String(Pe.value),He={title:Pe.text,key:Pe.value!==void 0?Ee:String($e)};return Pe.children&&(He.children=te({filters:Pe.children})),He}),re=pe=>{var Pe;return Object.assign(Object.assign({},pe),{text:pe.title,value:pe.key,children:((Pe=pe.children)===null||Pe===void 0?void 0:Pe.map($e=>re($e)))||[]})};let q;const{direction:ne,renderEmpty:he}=d.useContext(Nt);if(typeof s.filterDropdown=="function")q=s.filterDropdown({prefixCls:`${l}-custom`,setSelectedKeys:pe=>M({selectedKeys:pe}),selectedKeys:j(),confirm:Q,clearFilters:G,filters:s.filters,visible:R,close:()=>{k(!1)}});else if(s.filterDropdown)q=s.filterDropdown;else{const pe=j()||[],Pe=()=>{var Ee,He;const Fe=(Ee=he==null?void 0:he("Table.filter"))!==null&&Ee!==void 0?Ee:d.createElement(ku,{image:ku.PRESENTED_IMAGE_SIMPLE,description:v.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((s.filters||[]).length===0)return Fe;if(m==="tree")return d.createElement(d.Fragment,null,d.createElement(Sj,{filterSearch:h,value:W,onChange:U,tablePrefixCls:i,locale:v}),d.createElement("div",{className:`${i}-filter-dropdown-tree`},f?d.createElement(Sp,{checked:pe.length===e0(s.filters).length,indeterminate:pe.length>0&&pe.lengthtypeof h=="function"?h(W,re(Ge)):iK(W,Ge.title):void 0})));const nt=oK({filters:s.filters||[],filterSearch:h,prefixCls:o,filteredKeys:j(),filterMultiple:f,searchValue:W}),qe=nt.every(Ge=>Ge===null);return d.createElement(d.Fragment,null,d.createElement(Sj,{filterSearch:h,value:W,onChange:U,tablePrefixCls:i,locale:v}),qe?Fe:d.createElement(CI,{selectable:!0,multiple:f,prefixCls:`${l}-menu`,className:H,onSelect:M,onDeselect:M,selectedKeys:pe,getPopupContainer:x,openKeys:K,onOpenChange:B,items:nt}))},$e=()=>S?tl((w||[]).map(Ee=>String(Ee)),pe,!0):pe.length===0;q=d.createElement(d.Fragment,null,Pe(),d.createElement("div",{className:`${o}-dropdown-btns`},d.createElement(kt,{type:"link",size:"small",disabled:$e(),onClick:()=>G()},v.filterReset),d.createElement(kt,{type:"primary",size:"small",onClick:Y},v.filterConfirm)))}s.filterDropdown&&(q=d.createElement(jW,{selectable:void 0},q)),q=d.createElement(pOe,{className:`${o}-dropdown`},q);const xe=Jx({trigger:["click"],placement:ne==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let pe;return typeof s.filterIcon=="function"?pe=s.filterIcon(D):s.filterIcon?pe=s.filterIcon:pe=d.createElement(r_e,null),d.createElement("span",{role:"button",tabIndex:-1,className:ce(`${o}-trigger`,{active:D}),onClick:Pe=>{Pe.stopPropagation()}},pe)})(),getPopupContainer:x},Object.assign(Object.assign({},E),{rootClassName:ce(b,E.rootClassName),open:R,onOpenChange:ee,popupRender:()=>typeof(E==null?void 0:E.dropdownRender)=="function"?E.dropdownRender(q):q}));return d.createElement("div",{className:`${o}-column`},d.createElement("span",{className:`${i}-column-title`},y),d.createElement(XI,Object.assign({},xe)))},uO=(e,t,r)=>{let n=[];return(e||[]).forEach((a,i)=>{var o;const s=dm(i,r),l=a.filterDropdown!==void 0;if(a.filters||l||"onFilter"in a)if("filteredValue"in a){let c=a.filteredValue;l||(c=(o=c==null?void 0:c.map(String))!==null&&o!==void 0?o:c),n.push({column:a,key:Kc(a,s),filteredKeys:c,forceFiltered:a.filtered})}else n.push({column:a,key:Kc(a,s),filteredKeys:t&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(n=[].concat(De(n),De(uO(a.children,t,s))))}),n};function sK(e,t,r,n,a,i,o,s,l){return r.map((c,u)=>{const f=dm(u,s),{filterOnClose:m=!0,filterMultiple:h=!0,filterMode:p,filterSearch:g}=c;let v=c;if(v.filters||v.filterDropdown){const y=Kc(v,f),x=n.find(({key:b})=>y===b);v=Object.assign(Object.assign({},v),{title:b=>d.createElement(gOe,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:v,columnKey:y,filterState:x,filterOnClose:m,filterMultiple:h,filterMode:p,filterSearch:g,triggerFilter:i,locale:a,getPopupContainer:o,rootClassName:l},WS(c.title,b))})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:sK(e,t,v.children,n,a,i,o,f,l)})),v})}const wj=e=>{const t={};return e.forEach(({key:r,filteredKeys:n,column:a})=>{const i=r,{filters:o,filterDropdown:s}=a;if(s)t[i]=n||null;else if(Array.isArray(n)){const l=e0(o);t[i]=l.filter(c=>n.includes(String(c)))}else t[i]=null}),t},dO=(e,t,r)=>t.reduce((a,i)=>{const{column:{onFilter:o,filters:s},filteredKeys:l}=i;return o&&l&&l.length?a.map(c=>Object.assign({},c)).filter(c=>l.some(u=>{const f=e0(s),m=f.findIndex(p=>String(p)===String(u)),h=m!==-1?f[m]:u;return c[r]&&(c[r]=dO(c[r],t,r)),o(h,c)})):a},e),lK=e=>e.flatMap(t=>"children"in t?[t].concat(De(lK(t.children||[]))):[t]),yOe=e=>{const{prefixCls:t,dropdownPrefixCls:r,mergedColumns:n,onFilterChange:a,getPopupContainer:i,locale:o,rootClassName:s}=e;lu();const l=d.useMemo(()=>lK(n||[]),[n]),[c,u]=d.useState(()=>uO(l,!0)),f=d.useMemo(()=>{const g=uO(l,!1);if(g.length===0)return g;let v=!0;if(g.forEach(({filteredKeys:y})=>{y!==void 0&&(v=!1)}),v){const y=(l||[]).map((x,b)=>Kc(x,dm(b)));return c.filter(({key:x})=>y.includes(x)).map(x=>{const b=l[y.indexOf(x.key)];return Object.assign(Object.assign({},x),{column:Object.assign(Object.assign({},x.column),b),forceFiltered:b.filtered})})}return g},[l,c]),m=d.useMemo(()=>wj(f),[f]),h=g=>{const v=f.filter(({key:y})=>y!==g.key);v.push(g),u(v),a(wj(v),v)};return[g=>sK(t,r,g,f,o,h,i,void 0,s),f,m]},xOe=yOe,bOe=(e,t,r)=>{const n=d.useRef({});function a(i){var o;if(!n.current||n.current.data!==e||n.current.childrenColumnName!==t||n.current.getRowKey!==r){let c=function(u){u.forEach((f,m)=>{const h=r(f,m);l.set(h,f),f&&typeof f=="object"&&t in f&&c(f[t]||[])})};var s=c;const l=new Map;c(e),n.current={data:e,childrenColumnName:t,kvMap:l,getRowKey:r}}return(o=n.current.kvMap)===null||o===void 0?void 0:o.get(i)}return[a]},SOe=bOe;var wOe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const i=e[a];typeof i!="function"&&(r[a]=i)}),r}function EOe(e,t,r){const n=r&&typeof r=="object"?r:{},{total:a=0}=n,i=wOe(n,["total"]),[o,s]=d.useState(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:cK})),l=Jx(o,i,{total:a>0?a:e}),c=Math.ceil((a||e)/l.pageSize);l.current>c&&(l.current=c||1);const u=(m,h)=>{s({current:m??1,pageSize:h||l.pageSize})},f=(m,h)=>{var p;r&&((p=r.onChange)===null||p===void 0||p.call(r,m,h)),u(m,h),t(m,h||(l==null?void 0:l.pageSize))};return r===!1?[{},()=>{}]:[Object.assign(Object.assign({},l),{onChange:f}),u]}var $Oe={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"};const _Oe=$Oe;var OOe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:_Oe}))},TOe=d.forwardRef(OOe);const POe=TOe;var IOe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"};const NOe=IOe;var kOe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:NOe}))},ROe=d.forwardRef(kOe);const AOe=ROe,dx="ascend",K2="descend",m1=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,Cj=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,MOe=(e,t)=>t?e[e.indexOf(t)+1]:e[0],fO=(e,t,r)=>{let n=[];const a=(i,o)=>{n.push({column:i,key:Kc(i,o),multiplePriority:m1(i),sortOrder:i.sortOrder})};return(e||[]).forEach((i,o)=>{const s=dm(o,r);i.children?("sortOrder"in i&&a(i,s),n=[].concat(De(n),De(fO(i.children,t,s)))):i.sorter&&("sortOrder"in i?a(i,s):t&&i.defaultSortOrder&&n.push({column:i,key:Kc(i,s),multiplePriority:m1(i),sortOrder:i.defaultSortOrder}))}),n},uK=(e,t,r,n,a,i,o,s)=>(t||[]).map((c,u)=>{const f=dm(u,s);let m=c;if(m.sorter){const h=m.sortDirections||a,p=m.showSorterTooltip===void 0?o:m.showSorterTooltip,g=Kc(m,f),v=r.find(({key:_})=>_===g),y=v?v.sortOrder:null,x=MOe(h,y);let b;if(c.sortIcon)b=c.sortIcon({sortOrder:y});else{const _=h.includes(dx)&&d.createElement(AOe,{className:ce(`${e}-column-sorter-up`,{active:y===dx})}),P=h.includes(K2)&&d.createElement(POe,{className:ce(`${e}-column-sorter-down`,{active:y===K2})});b=d.createElement("span",{className:ce(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(_&&P)})},d.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},_,P))}const{cancelSort:S,triggerAsc:w,triggerDesc:E}=i||{};let C=S;x===K2?C=E:x===dx&&(C=w);const O=typeof p=="object"?Object.assign({title:C},p):{title:C};m=Object.assign(Object.assign({},m),{className:ce(m.className,{[`${e}-column-sort`]:y}),title:_=>{const P=`${e}-column-sorters`,I=d.createElement("span",{className:`${e}-column-title`},WS(c.title,_)),N=d.createElement("div",{className:P},I,b);return p?typeof p!="boolean"&&(p==null?void 0:p.target)==="sorter-icon"?d.createElement("div",{className:ce(P,`${P}-tooltip-target-sorter`)},I,d.createElement(Os,Object.assign({},O),b)):d.createElement(Os,Object.assign({},O),N):N},onHeaderCell:_=>{var P;const I=((P=c.onHeaderCell)===null||P===void 0?void 0:P.call(c,_))||{},N=I.onClick,D=I.onKeyDown;I.onClick=A=>{n({column:c,key:g,sortOrder:x,multiplePriority:m1(c)}),N==null||N(A)},I.onKeyDown=A=>{A.keyCode===Qe.ENTER&&(n({column:c,key:g,sortOrder:x,multiplePriority:m1(c)}),D==null||D(A))};const k=Q$e(c.title,{}),R=k==null?void 0:k.toString();return y&&(I["aria-sort"]=y==="ascend"?"ascending":"descending"),I["aria-label"]=R||"",I.className=ce(I.className,`${e}-column-has-sorters`),I.tabIndex=0,c.ellipsis&&(I.title=(k??"").toString()),I}})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:uK(e,m.children,r,n,a,i,o,f)})),m}),Ej=e=>{const{column:t,sortOrder:r}=e;return{column:t,order:r,field:t.dataIndex,columnKey:t.key}},$j=e=>{const t=e.filter(({sortOrder:r})=>r).map(Ej);if(t.length===0&&e.length){const r=e.length-1;return Object.assign(Object.assign({},Ej(e[r])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},mO=(e,t,r)=>{const n=t.slice().sort((o,s)=>s.multiplePriority-o.multiplePriority),a=e.slice(),i=n.filter(({column:{sorter:o},sortOrder:s})=>Cj(o)&&s);return i.length?a.sort((o,s)=>{for(let l=0;l{const s=o[r];return s?Object.assign(Object.assign({},o),{[r]:mO(s,t,r)}):o}):a},DOe=e=>{const{prefixCls:t,mergedColumns:r,sortDirections:n,tableLocale:a,showSorterTooltip:i,onSorterChange:o}=e,[s,l]=d.useState(()=>fO(r,!0)),c=(g,v)=>{const y=[];return g.forEach((x,b)=>{const S=dm(b,v);if(y.push(Kc(x,S)),Array.isArray(x.children)){const w=c(x.children,S);y.push.apply(y,De(w))}}),y},u=d.useMemo(()=>{let g=!0;const v=fO(r,!1);if(!v.length){const S=c(r);return s.filter(({key:w})=>S.includes(w))}const y=[];function x(S){g?y.push(S):y.push(Object.assign(Object.assign({},S),{sortOrder:null}))}let b=null;return v.forEach(S=>{b===null?(x(S),S.sortOrder&&(S.multiplePriority===!1?g=!1:b=!0)):(b&&S.multiplePriority!==!1||(g=!1),x(S))}),y},[r,s]),f=d.useMemo(()=>{var g,v;const y=u.map(({column:x,sortOrder:b})=>({column:x,order:b}));return{sortColumns:y,sortColumn:(g=y[0])===null||g===void 0?void 0:g.column,sortOrder:(v=y[0])===null||v===void 0?void 0:v.order}},[u]),m=g=>{let v;g.multiplePriority===!1||!u.length||u[0].multiplePriority===!1?v=[g]:v=[].concat(De(u.filter(({key:y})=>y!==g.key)),[g]),l(v),o($j(v),v)};return[g=>uK(t,g,u,m,n,a,i),u,f,()=>$j(u)]},jOe=DOe,dK=(e,t)=>e.map(n=>{const a=Object.assign({},n);return a.title=WS(n.title,t),"children"in a&&(a.children=dK(a.children,t)),a}),FOe=e=>[d.useCallback(r=>dK(r,e),[e])],LOe=FOe,BOe=QU((e,t)=>{const{_renderTimes:r}=e,{_renderTimes:n}=t;return r!==n}),zOe=BOe,HOe=JU((e,t)=>{const{_renderTimes:r}=e,{_renderTimes:n}=t;return r!==n}),WOe=HOe,VOe=e=>{const{componentCls:t,lineWidth:r,lineType:n,tableBorderColor:a,tableHeaderBg:i,tablePaddingVertical:o,tablePaddingHorizontal:s,calc:l}=e,c=`${le(r)} ${n} ${a}`,u=(f,m,h)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${le(l(m).mul(-1).equal())} - ${le(l(l(h).add(r)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:c,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:c,borderTop:c,[` - > ${t}-content, - > ${t}-header, - > ${t}-body, - > ${t}-summary - `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:c},"> thead":{"> tr:not(:last-child) > th":{borderBottom:c},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:c}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${le(l(o).mul(-1).equal())} ${le(l(l(s).add(r)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:r,bottom:0,borderInlineEnd:c,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` - > tr${t}-expanded-row, - > tr${t}-placeholder - `]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:c,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${le(r)} 0 ${le(r)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:c}}}},UOe=VOe,KOe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Uo),{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"}})}}},GOe=KOe,qOe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},XOe=qOe,YOe=e=>{const{componentCls:t,antCls:r,motionDurationSlow:n,lineWidth:a,paddingXS:i,lineType:o,tableBorderColor:s,tableExpandIconBg:l,tableExpandColumnWidth:c,borderRadius:u,tablePaddingVertical:f,tablePaddingHorizontal:m,tableExpandedRowBg:h,paddingXXS:p,expandIconMarginTop:g,expandIconSize:v,expandIconHalfInner:y,expandIconScale:x,calc:b}=e,S=`${le(a)} ${o} ${s}`,w=b(p).sub(a).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},jP(e)),{position:"relative",float:"left",width:v,height:v,color:"inherit",lineHeight:le(v),background:l,border:S,borderRadius:u,transform:`scale(${x})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${n} ease-out`,content:'""'},"&::before":{top:y,insetInlineEnd:w,insetInlineStart:w,height:a},"&::after":{top:w,bottom:w,insetInlineStart:y,width:a,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:g,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:h}},[`${r}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${le(b(f).mul(-1).equal())} ${le(b(m).mul(-1).equal())}`,padding:`${le(f)} ${le(m)}`}}}},QOe=YOe,ZOe=e=>{const{componentCls:t,antCls:r,iconCls:n,tableFilterDropdownWidth:a,tableFilterDropdownSearchWidth:i,paddingXXS:o,paddingXS:s,colorText:l,lineWidth:c,lineType:u,tableBorderColor:f,headerIconColor:m,fontSizeSM:h,tablePaddingHorizontal:p,borderRadius:g,motionDurationSlow:v,colorIcon:y,colorPrimary:x,tableHeaderFilterActiveBg:b,colorTextDisabled:S,tableFilterDropdownBg:w,tableFilterDropdownHeight:E,controlItemBgHover:C,controlItemBgActive:O,boxShadowSecondary:_,filterDropdownMenuBg:P,calc:I}=e,N=`${r}-dropdown`,D=`${t}-filter-dropdown`,k=`${r}-tree`,R=`${le(c)} ${u} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:I(o).mul(-1).equal(),marginInline:`${le(o)} ${le(I(p).div(2).mul(-1).equal())}`,padding:`0 ${le(o)}`,color:m,fontSize:h,borderRadius:g,cursor:"pointer",transition:`all ${v}`,"&:hover":{color:y,background:b},"&.active":{color:x}}}},{[`${r}-dropdown`]:{[D]:Object.assign(Object.assign({},dr(e)),{minWidth:a,backgroundColor:w,borderRadius:g,boxShadow:_,overflow:"hidden",[`${N}-menu`]:{maxHeight:E,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:P,"&:empty::after":{display:"block",padding:`${le(s)} 0`,color:S,fontSize:h,textAlign:"center",content:'"Not Found"'}},[`${D}-tree`]:{paddingBlock:`${le(s)} 0`,paddingInline:s,[k]:{padding:0},[`${k}-treenode ${k}-node-content-wrapper:hover`]:{backgroundColor:C},[`${k}-treenode-checkbox-checked ${k}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:O}}},[`${D}-search`]:{padding:s,borderBottom:R,"&-input":{input:{minWidth:i},[n]:{color:S}}},[`${D}-checkall`]:{width:"100%",marginBottom:o,marginInlineStart:o},[`${D}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${le(I(s).sub(c).equal())} ${le(s)}`,overflow:"hidden",borderTop:R}})}},{[`${r}-dropdown ${D}, ${D}-submenu`]:{[`${r}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},JOe=ZOe,eTe=e=>{const{componentCls:t,lineWidth:r,colorSplit:n,motionDurationSlow:a,zIndexTableFixed:i,tableBg:o,zIndexTableSticky:s,calc:l}=e,c=n;return{[`${t}-wrapper`]:{[` - ${t}-cell-fix-left, - ${t}-cell-fix-right - `]:{position:"sticky !important",zIndex:i,background:o},[` - ${t}-cell-fix-left-first::after, - ${t}-cell-fix-left-last::after - `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:l(r).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${a}`,content:'""',pointerEvents:"none",willChange:"transform"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` - ${t}-cell-fix-right-first::after, - ${t}-cell-fix-right-last::after - `]:{position:"absolute",top:0,bottom:l(r).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:l(s).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${a}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[` - ${t}-cell-fix-left-first::after, - ${t}-cell-fix-left-last::after - `]:{boxShadow:`inset 10px 0 8px -8px ${c}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${c}`},[` - ${t}-cell-fix-right-first::after, - ${t}-cell-fix-right-last::after - `]:{boxShadow:`inset -10px 0 8px -8px ${c}`}},[`${t}-fixed-column-gapped`]:{[` - ${t}-cell-fix-left-first::after, - ${t}-cell-fix-left-last::after, - ${t}-cell-fix-right-first::after, - ${t}-cell-fix-right-last::after - `]:{boxShadow:"none"}}}}},tTe=eTe,rTe=e=>{const{componentCls:t,antCls:r,margin:n}=e;return{[`${t}-wrapper ${t}-pagination${r}-pagination`]:{margin:`${le(n)} 0`}}},nTe=rTe,aTe=e=>{const{componentCls:t,tableRadius:r}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${le(r)} ${le(r)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:r,borderStartEndRadius:r,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:r},"> *:last-child":{borderStartEndRadius:r}}},"&-footer":{borderRadius:`0 0 ${le(r)} ${le(r)}`}}}}},iTe=aTe,oTe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},sTe=oTe,lTe=e=>{const{componentCls:t,antCls:r,iconCls:n,fontSizeIcon:a,padding:i,paddingXS:o,headerIconColor:s,headerIconHoverColor:l,tableSelectionColumnWidth:c,tableSelectedRowBg:u,tableSelectedRowHoverBg:f,tableRowHoverBg:m,tablePaddingHorizontal:h,calc:p}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:c,[`&${t}-selection-col-with-dropdown`]:{width:p(c).add(a).add(p(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:p(c).add(p(o).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:p(c).add(a).add(p(i).div(4)).add(p(o).mul(2)).equal()}},[` - table tr th${t}-selection-column, - table tr td${t}-selection-column, - ${t}-selection-column - `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${r}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:p(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:le(p(h).div(4).equal()),[n]:{color:s,fontSize:a,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:u,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},cTe=lTe,uTe=e=>{const{componentCls:t,tableExpandColumnWidth:r,calc:n}=e,a=(i,o,s,l)=>({[`${t}${t}-${i}`]:{fontSize:l,[` - ${t}-title, - ${t}-footer, - ${t}-cell, - ${t}-thead > tr > th, - ${t}-tbody > tr > th, - ${t}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{padding:`${le(o)} ${le(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:le(n(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${le(n(o).mul(-1).equal())} ${le(n(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:le(n(o).mul(-1).equal()),marginInline:`${le(n(r).sub(s).equal())} ${le(n(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:le(n(s).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},a("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),a("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},dTe=uTe,fTe=e=>{const{componentCls:t,marginXXS:r,fontSizeIcon:n,headerIconColor:a,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` - &${t}-cell-fix-left:hover, - &${t}-cell-fix-right:hover - `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:r,color:a,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:n,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},mTe=fTe,hTe=e=>{const{componentCls:t,opacityLoading:r,tableScrollThumbBg:n,tableScrollThumbBgHover:a,tableScrollThumbSize:i,tableScrollBg:o,zIndexTableSticky:s,stickyScrollBarBorderRadius:l,lineWidth:c,lineType:u,tableBorderColor:f}=e,m=`${le(c)} ${u} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${le(i)} !important`,zIndex:s,display:"flex",alignItems:"center",background:o,borderTop:m,opacity:r,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:n,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:a}}}}}}},pTe=hTe,vTe=e=>{const{componentCls:t,lineWidth:r,tableBorderColor:n,calc:a}=e,i=`${le(r)} ${e.lineType} ${n}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${le(a(r).mul(-1).equal())} 0 ${n}`}}}},_j=vTe,gTe=e=>{const{componentCls:t,motionDurationMid:r,lineWidth:n,lineType:a,tableBorderColor:i,calc:o}=e,s=`${le(n)} ${a} ${i}`,l=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[` - & > ${t}-row, - & > div:not(${t}-row) > ${t}-row - `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${r}`},[`${t}-expanded-row`]:{[`${l}${l}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${le(n)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:o(n).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},yTe=gTe,xTe=e=>{const{componentCls:t,fontWeightStrong:r,tablePaddingVertical:n,tablePaddingHorizontal:a,tableExpandColumnWidth:i,lineWidth:o,lineType:s,tableBorderColor:l,tableFontSize:c,tableBg:u,tableRadius:f,tableHeaderTextColor:m,motionDurationMid:h,tableHeaderBg:p,tableHeaderCellSplitColor:g,tableFooterTextColor:v,tableFooterBg:y,calc:x}=e,b=`${le(o)} ${s} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},rl()),{[t]:Object.assign(Object.assign({},dr(e)),{fontSize:c,background:u,borderRadius:`${le(f)} ${le(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${le(f)} ${le(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[` - ${t}-cell, - ${t}-thead > tr > th, - ${t}-tbody > tr > th, - ${t}-tbody > tr > td, - tfoot > tr > th, - tfoot > tr > td - `]:{position:"relative",padding:`${le(n)} ${le(a)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${le(n)} ${le(a)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:m,fontWeight:r,textAlign:"start",background:p,borderBottom:b,transition:`background ${h} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:g,transform:"translateY(-50%)",transition:`background-color ${h}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${h}, border-color ${h}`,borderBottom:b,[` - > ${t}-wrapper:only-child, - > ${t}-expanded-row-fixed > ${t}-wrapper:only-child - `]:{[t]:{marginBlock:le(x(n).mul(-1).equal()),marginInline:`${le(x(i).sub(a).equal())} - ${le(x(a).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:r,textAlign:"start",background:p,borderBottom:b,transition:`background ${h} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${le(n)} ${le(a)}`,color:v,background:y}})}},bTe=e=>{const{colorFillAlter:t,colorBgContainer:r,colorTextHeading:n,colorFillSecondary:a,colorFillContent:i,controlItemBgActive:o,controlItemBgActiveHover:s,padding:l,paddingSM:c,paddingXS:u,colorBorderSecondary:f,borderRadiusLG:m,controlHeight:h,colorTextPlaceholder:p,fontSize:g,fontSizeSM:v,lineHeight:y,lineWidth:x,colorIcon:b,colorIconHover:S,opacityLoading:w,controlInteractiveSize:E}=e,C=new sr(a).onBackground(r).toHexString(),O=new sr(i).onBackground(r).toHexString(),_=new sr(t).onBackground(r).toHexString(),P=new sr(b),I=new sr(S),N=E/2-x,D=N*2+x*3;return{headerBg:_,headerColor:n,headerSortActiveBg:C,headerSortHoverBg:O,bodySortBg:_,rowHoverBg:_,rowSelectedBg:o,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:c,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:f,headerBorderRadius:m,footerBg:_,footerColor:n,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:f,fixedHeaderSortActiveBg:C,headerFilterHoverBg:i,filterDropdownMenuBg:r,filterDropdownBg:r,expandIconBg:r,selectionColumnWidth:h,stickyScrollBarBg:p,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*y-x*3)/2-Math.ceil((v*1.4-x*3)/2),headerIconColor:P.clone().setA(P.a*w).toRgbString(),headerIconHoverColor:I.clone().setA(I.a*w).toRgbString(),expandIconHalfInner:N,expandIconSize:D,expandIconScale:E/D}},Oj=2,STe=lr("Table",e=>{const{colorTextHeading:t,colorSplit:r,colorBgContainer:n,controlInteractiveSize:a,headerBg:i,headerColor:o,headerSortActiveBg:s,headerSortHoverBg:l,bodySortBg:c,rowHoverBg:u,rowSelectedBg:f,rowSelectedHoverBg:m,rowExpandedBg:h,cellPaddingBlock:p,cellPaddingInline:g,cellPaddingBlockMD:v,cellPaddingInlineMD:y,cellPaddingBlockSM:x,cellPaddingInlineSM:b,borderColor:S,footerBg:w,footerColor:E,headerBorderRadius:C,cellFontSize:O,cellFontSizeMD:_,cellFontSizeSM:P,headerSplitColor:I,fixedHeaderSortActiveBg:N,headerFilterHoverBg:D,filterDropdownBg:k,expandIconBg:R,selectionColumnWidth:A,stickyScrollBarBg:j,calc:F}=e,M=Zt(e,{tableFontSize:O,tableBg:n,tableRadius:C,tablePaddingVertical:p,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:v,tablePaddingHorizontalMiddle:y,tablePaddingVerticalSmall:x,tablePaddingHorizontalSmall:b,tableBorderColor:S,tableHeaderTextColor:o,tableHeaderBg:i,tableFooterTextColor:E,tableFooterBg:w,tableHeaderCellSplitColor:I,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:c,tableFixedHeaderSortActiveBg:N,tableHeaderFilterActiveBg:D,tableFilterDropdownBg:k,tableRowHoverBg:u,tableSelectedRowBg:f,tableSelectedRowHoverBg:m,zIndexTableFixed:Oj,zIndexTableSticky:F(Oj).add(1).equal({unit:!1}),tableFontSizeMiddle:_,tableFontSizeSmall:P,tableSelectionColumnWidth:A,tableExpandIconBg:R,tableExpandColumnWidth:F(a).add(F(e.padding).mul(2)).equal(),tableExpandedRowBg:h,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:j,tableScrollThumbBgHover:t,tableScrollBg:r});return[xTe(M),nTe(M),_j(M),mTe(M),JOe(M),UOe(M),iTe(M),QOe(M),_j(M),XOe(M),cTe(M),tTe(M),pTe(M),GOe(M),dTe(M),sTe(M),yTe(M)]},bTe,{unitless:{expandIconScale:!0}}),Tj=[],wTe=(e,t)=>{var r,n;const{prefixCls:a,className:i,rootClassName:o,style:s,size:l,bordered:c,dropdownPrefixCls:u,dataSource:f,pagination:m,rowSelection:h,rowKey:p="key",rowClassName:g,columns:v,children:y,childrenColumnName:x,onChange:b,getPopupContainer:S,loading:w,expandIcon:E,expandable:C,expandedRowRender:O,expandIconColumnIndex:_,indentSize:P,scroll:I,sortDirections:N,locale:D,showSorterTooltip:k={target:"full-header"},virtual:R}=e;lu();const A=d.useMemo(()=>v||aN(y),[v,y]),j=d.useMemo(()=>A.some(ie=>ie.responsive),[A]),F=wv(j),M=d.useMemo(()=>{const ie=new Set(Object.keys(F).filter(oe=>F[oe]));return A.filter(oe=>!oe.responsive||oe.responsive.some(de=>ie.has(de)))},[A,F]),V=Er(e,["className","style","columns"]),{locale:K=Vo,direction:L,table:B,renderEmpty:W,getPrefixCls:z,getPopupContainer:U}=d.useContext(Nt),X=Da(l),Y=Object.assign(Object.assign({},K.Table),D),G=f||Tj,Q=z("table",a),ee=z("dropdown",u),[,H]=Ga(),fe=vn(Q),[te,re,q]=STe(Q,fe),ne=Object.assign(Object.assign({childrenColumnName:x,expandIconColumnIndex:_},C),{expandIcon:(r=C==null?void 0:C.expandIcon)!==null&&r!==void 0?r:(n=B==null?void 0:B.expandable)===null||n===void 0?void 0:n.expandIcon}),{childrenColumnName:he="children"}=ne,ye=d.useMemo(()=>G.some(ie=>ie==null?void 0:ie[he])?"nest":O||C!=null&&C.expandedRowRender?"row":null,[G]),xe={body:d.useRef(null)},pe=Y$e(Q),Pe=d.useRef(null),$e=d.useRef(null);Lle(t,()=>Object.assign(Object.assign({},$e.current),{nativeElement:Pe.current}));const Ee=d.useMemo(()=>typeof p=="function"?p:ie=>ie==null?void 0:ie[p],[p]),[He]=SOe(G,he,Ee),Fe={},nt=(ie,oe,de=!1)=>{var we,Ae,Ce,Ie;const Te=Object.assign(Object.assign({},Fe),ie);de&&((we=Fe.resetPagination)===null||we===void 0||we.call(Fe),!((Ae=Te.pagination)===null||Ae===void 0)&&Ae.current&&(Te.pagination.current=1),m&&((Ce=m.onChange)===null||Ce===void 0||Ce.call(m,1,(Ie=Te.pagination)===null||Ie===void 0?void 0:Ie.pageSize))),I&&I.scrollToFirstRowOnChange!==!1&&xe.body.current&&gle(0,{getContainer:()=>xe.body.current}),b==null||b(Te.pagination,Te.filters,Te.sorter,{currentDataSource:dO(mO(G,Te.sorterStates,he),Te.filterStates,he),action:oe})},qe=(ie,oe)=>{nt({sorter:ie,sorterStates:oe},"sort",!1)},[Ge,Le,Ne,Se]=jOe({prefixCls:Q,mergedColumns:M,onSorterChange:qe,sortDirections:N||["ascend","descend"],tableLocale:Y,showSorterTooltip:k}),je=d.useMemo(()=>mO(G,Le,he),[G,Le]);Fe.sorter=Se(),Fe.sorterStates=Le;const _e=(ie,oe)=>{nt({filters:ie,filterStates:oe},"filter",!0)},[Me,ge,be]=xOe({prefixCls:Q,locale:Y,dropdownPrefixCls:ee,mergedColumns:M,onFilterChange:_e,getPopupContainer:S||U,rootClassName:ce(o,fe)}),Re=dO(je,ge,he);Fe.filters=be,Fe.filterStates=ge;const We=d.useMemo(()=>{const ie={};return Object.keys(be).forEach(oe=>{be[oe]!==null&&(ie[oe]=be[oe])}),Object.assign(Object.assign({},Ne),{filters:ie})},[Ne,be]),[at]=LOe(We),yt=(ie,oe)=>{nt({pagination:Object.assign(Object.assign({},Fe.pagination),{current:ie,pageSize:oe})},"paginate")},[tt,it]=EOe(Re.length,yt,m);Fe.pagination=m===!1?{}:COe(tt,m),Fe.resetPagination=it;const ft=d.useMemo(()=>{if(m===!1||!tt.pageSize)return Re;const{current:ie=1,total:oe,pageSize:de=cK}=tt;return Re.lengthde?Re.slice((ie-1)*de,ie*de):Re:Re.slice((ie-1)*de,ie*de)},[!!m,Re,tt==null?void 0:tt.current,tt==null?void 0:tt.pageSize,tt==null?void 0:tt.total]),[lt,mt]=q$e({prefixCls:Q,data:Re,pageData:ft,getRowKey:Ee,getRecordByKey:He,expandType:ye,childrenColumnName:he,locale:Y,getPopupContainer:S||U},h),Mt=(ie,oe,de)=>{let we;return typeof g=="function"?we=ce(g(ie,oe,de)):we=ce(g),ce({[`${Q}-row-selected`]:mt.has(Ee(ie,oe))},we)};ne.__PARENT_RENDER_ICON__=ne.expandIcon,ne.expandIcon=ne.expandIcon||E||X$e(Y),ye==="nest"&&ne.expandIconColumnIndex===void 0?ne.expandIconColumnIndex=h?1:0:ne.expandIconColumnIndex>0&&h&&(ne.expandIconColumnIndex-=1),typeof ne.indentSize!="number"&&(ne.indentSize=typeof P=="number"?P:15);const Ft=d.useCallback(ie=>at(lt(Me(Ge(ie)))),[Ge,Me,lt]),ht=()=>{if(m===!1||!(tt!=null&&tt.total))return{};const ie=()=>tt.size||(X==="small"||X==="middle"?"small":void 0),oe=Ve=>{const et=Ve==="left"?"start":Ve==="right"?"end":Ve;return d.createElement(JCe,Object.assign({},tt,{align:tt.align||et,className:ce(`${Q}-pagination`,tt.className),size:ie()}))},de=L==="rtl"?"left":"right",we=tt.position;if(we===null||!Array.isArray(we))return{bottom:oe(de)};const Ae=we.find(Ve=>typeof Ve=="string"&&Ve.toLowerCase().includes("top")),Ce=we.find(Ve=>typeof Ve=="string"&&Ve.toLowerCase().includes("bottom")),Ie=we.every(Ve=>`${Ve}`=="none"),Te=Ae?Ae.toLowerCase().replace("top",""):"",Xe=Ce?Ce.toLowerCase().replace("bottom",""):"",ke=!Ae&&!Ce&&!Ie,Be=()=>Te?oe(Te):void 0,ze=()=>{if(Xe)return oe(Xe);if(ke)return oe(de)};return{top:Be(),bottom:ze()}},St=d.useMemo(()=>typeof w=="boolean"?{spinning:w}:typeof w=="object"&&w!==null?Object.assign({spinning:!0},w):void 0,[w]),xt=ce(q,fe,`${Q}-wrapper`,B==null?void 0:B.className,{[`${Q}-wrapper-rtl`]:L==="rtl"},i,o,re),rt=Object.assign(Object.assign({},B==null?void 0:B.style),s),Ye=d.useMemo(()=>St!=null&&St.spinning&&G===Tj?null:typeof(D==null?void 0:D.emptyText)<"u"?D.emptyText:(W==null?void 0:W("Table"))||d.createElement(UH,{componentName:"Table"}),[St==null?void 0:St.spinning,G,D==null?void 0:D.emptyText,W]),Ze=R?WOe:zOe,ct={},Z=d.useMemo(()=>{const{fontSize:ie,lineHeight:oe,lineWidth:de,padding:we,paddingXS:Ae,paddingSM:Ce}=H,Ie=Math.floor(ie*oe);switch(X){case"middle":return Ce*2+Ie+de;case"small":return Ae*2+Ie+de;default:return we*2+Ie+de}},[H,X]);R&&(ct.listItemHeight=Z);const{top:ue,bottom:se}=ht();return te(d.createElement("div",{ref:Pe,className:xt,style:rt},d.createElement(JI,Object.assign({spinning:!1},St),ue,d.createElement(Ze,Object.assign({},ct,V,{ref:$e,columns:M,direction:L,expandable:ne,prefixCls:Q,className:ce({[`${Q}-middle`]:X==="middle",[`${Q}-small`]:X==="small",[`${Q}-bordered`]:c,[`${Q}-empty`]:G.length===0},q,fe,re),data:ft,rowKey:Ee,rowClassName:Mt,emptyText:Ye,internalHooks:Iv,internalRefs:xe,transformColumns:Ft,getContainerWidth:pe,measureRowRender:ie=>d.createElement(Dd,{getPopupContainer:oe=>oe},ie)})),se)))},CTe=d.forwardRef(wTe),ETe=(e,t)=>{const r=d.useRef(0);return r.current+=1,d.createElement(CTe,Object.assign({},e,{ref:t,_renderTimes:r.current}))},Ul=d.forwardRef(ETe);Ul.SELECTION_COLUMN=oc;Ul.EXPAND_COLUMN=uc;Ul.SELECTION_ALL=oO;Ul.SELECTION_INVERT=sO;Ul.SELECTION_NONE=lO;Ul.Column=j$e;Ul.ColumnGroup=L$e;Ul.Summary=zU;const oi=Ul,$Te=e=>{const{paddingXXS:t,lineWidth:r,tagPaddingHorizontal:n,componentCls:a,calc:i}=e,o=i(n).sub(r).equal(),s=i(t).sub(r).equal();return{[a]:Object.assign(Object.assign({},dr(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${a}-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(${a}-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:o}}),[`${a}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},dN=e=>{const{lineWidth:t,fontSizeIcon:r,calc:n}=e,a=e.fontSizeSM;return Zt(e,{tagFontSize:a,tagLineHeight:le(n(e.lineHeightSM).mul(a).equal()),tagIconSize:n(r).sub(n(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},fN=e=>({defaultBg:new sr(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),fK=lr("Tag",e=>{const t=dN(e);return $Te(t)},fN);var _Te=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:r,style:n,className:a,checked:i,children:o,icon:s,onChange:l,onClick:c}=e,u=_Te(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:f,tag:m}=d.useContext(Nt),h=b=>{l==null||l(!i),c==null||c(b)},p=f("tag",r),[g,v,y]=fK(p),x=ce(p,`${p}-checkable`,{[`${p}-checkable-checked`]:i},m==null?void 0:m.className,a,v,y);return g(d.createElement("span",Object.assign({},u,{ref:t,style:Object.assign(Object.assign({},n),m==null?void 0:m.style),className:x,onClick:h}),s,d.createElement("span",null,o)))}),TTe=OTe,PTe=e=>c9(e,(t,{textColor:r,lightBorderColor:n,lightColor:a,darkColor:i})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:a,borderColor:n,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),ITe=U0(["Tag","preset"],e=>{const t=dN(e);return PTe(t)},fN);function NTe(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const ay=(e,t,r)=>{const n=NTe(r);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${r}`],background:e[`color${n}Bg`],borderColor:e[`color${n}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},kTe=U0(["Tag","status"],e=>{const t=dN(e);return[ay(t,"success","Success"),ay(t,"processing","Info"),ay(t,"error","Error"),ay(t,"warning","Warning")]},fN);var RTe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:r,className:n,rootClassName:a,style:i,children:o,icon:s,color:l,onClose:c,bordered:u=!0,visible:f}=e,m=RTe(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:h,direction:p,tag:g}=d.useContext(Nt),[v,y]=d.useState(!0),x=Er(m,["closeIcon","closable"]);d.useEffect(()=>{f!==void 0&&y(f)},[f]);const b=cW(l),S=xpe(l),w=b||S,E=Object.assign(Object.assign({backgroundColor:l&&!w?l:void 0},g==null?void 0:g.style),i),C=h("tag",r),[O,_,P]=fK(C),I=ce(C,g==null?void 0:g.className,{[`${C}-${l}`]:w,[`${C}-has-color`]:l&&!w,[`${C}-hidden`]:!v,[`${C}-rtl`]:p==="rtl",[`${C}-borderless`]:!u},n,a,_,P),N=F=>{F.stopPropagation(),c==null||c(F),!F.defaultPrevented&&y(!1)},[,D]=R9(e1(e),e1(g),{closable:!1,closeIconRender:F=>{const M=d.createElement("span",{className:`${C}-close-icon`,onClick:N},F);return HP(F,M,V=>({onClick:K=>{var L;(L=V==null?void 0:V.onClick)===null||L===void 0||L.call(V,K),N(K)},className:ce(V==null?void 0:V.className,`${C}-close-icon`)}))}}),k=typeof m.onClick=="function"||o&&o.type==="a",R=s||null,A=R?d.createElement(d.Fragment,null,R,o&&d.createElement("span",null,o)):o,j=d.createElement("span",Object.assign({},x,{ref:t,className:I,style:E}),A,D,b&&d.createElement(ITe,{key:"preset",prefixCls:C}),S&&d.createElement(kTe,{key:"status",prefixCls:C}));return O(k?d.createElement(rS,{component:"Tag"},j):j)}),mK=ATe;mK.CheckableTag=TTe;const la=mK;var MTe={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"};const DTe=MTe;var jTe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:DTe}))},FTe=d.forwardRef(jTe);const fu=FTe;var LTe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};const BTe=LTe;var zTe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:BTe}))},HTe=d.forwardRef(zTe);const Gc=HTe;var WTe={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"};const VTe=WTe;var UTe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:VTe}))},KTe=d.forwardRef(UTe);const GTe=KTe,qTe=(e,t,r,n)=>{const{titleMarginBottom:a,fontWeightStrong:i}=n;return{marginBottom:a,color:r,fontWeight:i,fontSize:e,lineHeight:t}},XTe=e=>{const t=[1,2,3,4,5],r={};return t.forEach(n=>{r[` - h${n}&, - div&-h${n}, - div&-h${n} > textarea, - h${n} - `]=qTe(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),r},YTe=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},jP(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},QTe=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Yx[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),ZTe=e=>{const{componentCls:t,paddingSM:r}=e,n=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(n).div(-2).add(1).equal(),marginBottom:e.calc(n).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},JTe=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),ePe=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),tPe=e=>{const{componentCls:t,titleMarginTop:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},XTe(e)),{[` - & + h1${t}, - & + h2${t}, - & + h3${t}, - & + h4${t}, - & + h5${t} - `]:{marginTop:r},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:r}}}),QTe(e)),YTe(e)),{[` - ${t}-expand, - ${t}-collapse, - ${t}-edit, - ${t}-copy - `]:Object.assign(Object.assign({},jP(e)),{marginInlineStart:e.marginXXS})}),ZTe(e)),JTe(e)),ePe()),{"&-rtl":{direction:"rtl"}})}},rPe=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),hK=lr("Typography",tPe,rPe),nPe=e=>{const{prefixCls:t,"aria-label":r,className:n,style:a,direction:i,maxLength:o,autoSize:s=!0,value:l,onSave:c,onCancel:u,onEnd:f,component:m,enterIcon:h=d.createElement(GTe,null)}=e,p=d.useRef(null),g=d.useRef(!1),v=d.useRef(null),[y,x]=d.useState(l);d.useEffect(()=>{x(l)},[l]),d.useEffect(()=>{var k;if(!((k=p.current)===null||k===void 0)&&k.resizableTextArea){const{textArea:R}=p.current.resizableTextArea;R.focus();const{length:A}=R.value;R.setSelectionRange(A,A)}},[]);const b=({target:k})=>{x(k.value.replace(/[\n\r]/g,""))},S=()=>{g.current=!0},w=()=>{g.current=!1},E=({keyCode:k})=>{g.current||(v.current=k)},C=()=>{c(y.trim())},O=({keyCode:k,ctrlKey:R,altKey:A,metaKey:j,shiftKey:F})=>{v.current!==k||g.current||R||A||j||F||(k===Qe.ENTER?(C(),f==null||f()):k===Qe.ESC&&u())},_=()=>{C()},[P,I,N]=hK(t),D=ce(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl",[`${t}-${m}`]:!!m},n,I,N);return P(d.createElement("div",{className:D,style:a},d.createElement(CU,{ref:p,maxLength:o,value:y,onChange:b,onKeyDown:E,onKeyUp:O,onCompositionStart:S,onCompositionEnd:w,onBlur:_,"aria-label":r,rows:1,autoSize:s}),h!==null?pa(h,{className:`${t}-edit-content-confirm`}):null))},aPe=nPe;var iPe=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=Pj[t.format]||Pj.default;window.clipboardData.setData(f,e)}else u.clipboardData.clearData(),u.clipboardData.setData(t.format,e);t.onCopy&&(u.preventDefault(),t.onCopy(u.clipboardData))}),document.body.appendChild(s),i.selectNodeContents(s),o.addRange(i);var c=document.execCommand("copy");if(!c)throw new Error("copy command was unsuccessful");l=!0}catch(u){r&&console.error("unable to copy using execCommand: ",u),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),l=!0}catch(f){r&&console.error("unable to copy using clipboardData: ",f),r&&console.error("falling back to prompt"),n=lPe("message"in t?t.message:sPe),window.prompt(n,e)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(i):o.removeAllRanges()),s&&document.body.removeChild(s),a()}return l}var uPe=cPe;const dPe=ia(uPe);var fPe=globalThis&&globalThis.__awaiter||function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(u){try{c(n.next(u))}catch(f){o(f)}}function l(u){try{c(n.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):a(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};const mPe=({copyConfig:e,children:t})=>{const[r,n]=d.useState(!1),[a,i]=d.useState(!1),o=d.useRef(null),s=()=>{o.current&&clearTimeout(o.current)},l={};e.format&&(l.format=e.format),d.useEffect(()=>s,[]);const c=qt(u=>fPe(void 0,void 0,void 0,function*(){var f;u==null||u.preventDefault(),u==null||u.stopPropagation(),i(!0);try{const m=typeof e.text=="function"?yield e.text():e.text;dPe(m||h2e(t,!0).join("")||"",l),i(!1),n(!0),s(),o.current=setTimeout(()=>{n(!1)},3e3),(f=e.onCopy)===null||f===void 0||f.call(e,u)}catch(m){throw i(!1),m}}));return{copied:r,copyLoading:a,onClick:c}},hPe=mPe;function G2(e,t){return d.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const pPe=e=>{const t=d.useRef(void 0);return d.useEffect(()=>{t.current=e}),t.current},vPe=pPe,gPe=(e,t,r)=>d.useMemo(()=>e===!0?{title:t??r}:d.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??r},e):{title:e},[e,t,r]),yPe=gPe;var xPe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{prefixCls:r,component:n="article",className:a,rootClassName:i,setContentRef:o,children:s,direction:l,style:c}=e,u=xPe(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:m,className:h,style:p}=oa("typography"),g=l??m,v=o?xa(t,o):t,y=f("typography",r),[x,b,S]=hK(y),w=ce(y,h,{[`${y}-rtl`]:g==="rtl"},a,i,b,S),E=Object.assign(Object.assign({},p),c);return x(d.createElement(n,Object.assign({className:w,style:E,ref:v},u),s))}),pK=bPe;var SPe={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"};const wPe=SPe;var CPe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:wPe}))},EPe=d.forwardRef(CPe);const $Pe=EPe;function Ij(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function q2(e,t,r){return e===!0||e===void 0?t:e||r&&t}function _Pe(e){const t=document.createElement("em");e.appendChild(t);const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return e.removeChild(t),r.left>n.left||n.right>r.right||r.top>n.top||n.bottom>r.bottom}const mN=e=>["string","number"].includes(typeof e),OPe=({prefixCls:e,copied:t,locale:r,iconOnly:n,tooltips:a,icon:i,tabIndex:o,onCopy:s,loading:l})=>{const c=Ij(a),u=Ij(i),{copied:f,copy:m}=r??{},h=t?f:m,p=q2(c[t?1:0],h),g=typeof p=="string"?p:h;return d.createElement(Os,{title:p},d.createElement("button",{type:"button",className:ce(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:n}),onClick:s,"aria-label":g,tabIndex:o},t?q2(u[1],d.createElement(cI,null),!0):q2(u[0],l?d.createElement(Wc,null):d.createElement($Pe,null),!0)))},TPe=OPe,iy=d.forwardRef(({style:e,children:t},r)=>{const n=d.useRef(null);return d.useImperativeHandle(r,()=>({isExceed:()=>{const a=n.current;return a.scrollHeight>a.clientHeight},getHeight:()=>n.current.clientHeight})),d.createElement("span",{"aria-hidden":!0,ref:n,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),PPe=e=>e.reduce((t,r)=>t+(mN(r)?String(r).length:1),0);function Nj(e,t){let r=0;const n=[];for(let a=0;at){const c=t-r;return n.push(String(i).slice(0,c)),n}n.push(i),r=l}return e}const X2=0,Y2=1,Q2=2,Z2=3,kj=4,oy={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function IPe(e){const{enableMeasure:t,width:r,text:n,children:a,rows:i,expanded:o,miscDeps:s,onEllipsis:l}=e,c=d.useMemo(()=>ha(n),[n]),u=d.useMemo(()=>PPe(c),[n]),f=d.useMemo(()=>a(c,!1),[n]),[m,h]=d.useState(null),p=d.useRef(null),g=d.useRef(null),v=d.useRef(null),y=d.useRef(null),x=d.useRef(null),[b,S]=d.useState(!1),[w,E]=d.useState(X2),[C,O]=d.useState(0),[_,P]=d.useState(null);Gt(()=>{E(t&&r&&u?Y2:X2)},[r,n,i,t,c]),Gt(()=>{var k,R,A,j;if(w===Y2){E(Q2);const F=g.current&&getComputedStyle(g.current).whiteSpace;P(F)}else if(w===Q2){const F=!!(!((k=v.current)===null||k===void 0)&&k.isExceed());E(F?Z2:kj),h(F?[0,u]:null),S(F);const M=((R=v.current)===null||R===void 0?void 0:R.getHeight())||0,V=i===1?0:((A=y.current)===null||A===void 0?void 0:A.getHeight())||0,K=((j=x.current)===null||j===void 0?void 0:j.getHeight())||0,L=Math.max(M,V+K);O(L+1),l(F)}},[w]);const I=m?Math.ceil((m[0]+m[1])/2):0;Gt(()=>{var k;const[R,A]=m||[0,0];if(R!==A){const F=(((k=p.current)===null||k===void 0?void 0:k.getHeight())||0)>C;let M=I;A-R===1&&(M=F?R:A),h(F?[R,M]:[M,A])}},[m,I]);const N=d.useMemo(()=>{if(!t)return a(c,!1);if(w!==Z2||!m||m[0]!==m[1]){const k=a(c,!1);return[kj,X2].includes(w)?k:d.createElement("span",{style:Object.assign(Object.assign({},oy),{WebkitLineClamp:i})},k)}return a(o?c:Nj(c,m[0]),b)},[o,w,m,c].concat(De(s))),D={width:r,margin:0,padding:0,whiteSpace:_==="nowrap"?"normal":"inherit"};return d.createElement(d.Fragment,null,N,w===Q2&&d.createElement(d.Fragment,null,d.createElement(iy,{style:Object.assign(Object.assign(Object.assign({},D),oy),{WebkitLineClamp:i}),ref:v},f),d.createElement(iy,{style:Object.assign(Object.assign(Object.assign({},D),oy),{WebkitLineClamp:i-1}),ref:y},f),d.createElement(iy,{style:Object.assign(Object.assign(Object.assign({},D),oy),{WebkitLineClamp:1}),ref:x},a([],!0))),w===Z2&&m&&m[0]!==m[1]&&d.createElement(iy,{style:Object.assign(Object.assign({},D),{top:400}),ref:p},a(Nj(c,I),!0)),w===Y2&&d.createElement("span",{style:{whiteSpace:"inherit"},ref:g}))}const NPe=({enableEllipsis:e,isEllipsis:t,children:r,tooltipProps:n})=>!(n!=null&&n.title)||!e?r:d.createElement(Os,Object.assign({open:t?void 0:!1},n),r),kPe=NPe;var RPe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{var r;const{prefixCls:n,className:a,style:i,type:o,disabled:s,children:l,ellipsis:c,editable:u,copyable:f,component:m,title:h}=e,p=RPe(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:g,direction:v}=d.useContext(Nt),[y]=Hi("Text"),x=d.useRef(null),b=d.useRef(null),S=g("typography",n),w=Er(p,Rj),[E,C]=G2(u),[O,_]=br(!1,{value:C.editing}),{triggerType:P=["icon"]}=C,I=ge=>{var be;ge&&((be=C.onStart)===null||be===void 0||be.call(C)),_(ge)},N=vPe(O);Gt(()=>{var ge;!O&&N&&((ge=b.current)===null||ge===void 0||ge.focus())},[O]);const D=ge=>{ge==null||ge.preventDefault(),I(!0)},k=ge=>{var be;(be=C.onChange)===null||be===void 0||be.call(C,ge),I(!1)},R=()=>{var ge;(ge=C.onCancel)===null||ge===void 0||ge.call(C),I(!1)},[A,j]=G2(f),{copied:F,copyLoading:M,onClick:V}=hPe({copyConfig:j,children:l}),[K,L]=d.useState(!1),[B,W]=d.useState(!1),[z,U]=d.useState(!1),[X,Y]=d.useState(!1),[G,Q]=d.useState(!0),[ee,H]=G2(c,{expandable:!1,symbol:ge=>ge?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[fe,te]=br(H.defaultExpanded||!1,{value:H.expanded}),re=ee&&(!fe||H.expandable==="collapsible"),{rows:q=1}=H,ne=d.useMemo(()=>re&&(H.suffix!==void 0||H.onEllipsis||H.expandable||E||A),[re,H,E,A]);Gt(()=>{ee&&!ne&&(L(D_("webkitLineClamp")),W(D_("textOverflow")))},[ne,ee]);const[he,ye]=d.useState(re),xe=d.useMemo(()=>ne?!1:q===1?B:K,[ne,B,K]);Gt(()=>{ye(xe&&re)},[xe,re]);const pe=re&&(he?X:z),Pe=re&&q===1&&he,$e=re&&q>1&&he,Ee=(ge,be)=>{var Re;te(be.expanded),(Re=H.onExpand)===null||Re===void 0||Re.call(H,ge,be)},[He,Fe]=d.useState(0),nt=({offsetWidth:ge})=>{Fe(ge)},qe=ge=>{var be;U(ge),z!==ge&&((be=H.onEllipsis)===null||be===void 0||be.call(H,ge))};d.useEffect(()=>{const ge=x.current;if(ee&&he&&ge){const be=_Pe(ge);X!==be&&Y(be)}},[ee,he,l,$e,G,He]),d.useEffect(()=>{const ge=x.current;if(typeof IntersectionObserver>"u"||!ge||!he||!re)return;const be=new IntersectionObserver(()=>{Q(!!ge.offsetParent)});return be.observe(ge),()=>{be.disconnect()}},[he,re]);const Ge=yPe(H.tooltip,C.text,l),Le=d.useMemo(()=>{if(!(!ee||he))return[C.text,l,h,Ge.title].find(mN)},[ee,he,h,Ge.title,pe]);if(O)return d.createElement(aPe,{value:(r=C.text)!==null&&r!==void 0?r:typeof l=="string"?l:"",onSave:k,onCancel:R,onEnd:C.onEnd,prefixCls:S,className:a,style:i,direction:v,component:m,maxLength:C.maxLength,autoSize:C.autoSize,enterIcon:C.enterIcon});const Ne=()=>{const{expandable:ge,symbol:be}=H;return ge?d.createElement("button",{type:"button",key:"expand",className:`${S}-${fe?"collapse":"expand"}`,onClick:Re=>Ee(Re,{expanded:!fe}),"aria-label":fe?y.collapse:y==null?void 0:y.expand},typeof be=="function"?be(fe):be):null},Se=()=>{if(!E)return;const{icon:ge,tooltip:be,tabIndex:Re}=C,We=ha(be)[0]||(y==null?void 0:y.edit),at=typeof We=="string"?We:"";return P.includes("icon")?d.createElement(Os,{key:"edit",title:be===!1?"":We},d.createElement("button",{type:"button",ref:b,className:`${S}-edit`,onClick:D,"aria-label":at,tabIndex:Re},ge||d.createElement(Gc,{role:"button"}))):null},je=()=>A?d.createElement(TPe,Object.assign({key:"copy"},j,{prefixCls:S,copied:F,locale:y,onCopy:V,loading:M,iconOnly:l==null})):null,_e=ge=>[ge&&Ne(),Se(),je()],Me=ge=>[ge&&!fe&&d.createElement("span",{"aria-hidden":!0,key:"ellipsis"},MPe),H.suffix,_e(ge)];return d.createElement(Ra,{onResize:nt,disabled:!re},ge=>d.createElement(kPe,{tooltipProps:Ge,enableEllipsis:re,isEllipsis:pe},d.createElement(pK,Object.assign({className:ce({[`${S}-${o}`]:o,[`${S}-disabled`]:s,[`${S}-ellipsis`]:ee,[`${S}-ellipsis-single-line`]:Pe,[`${S}-ellipsis-multiple-line`]:$e},a),prefixCls:n,style:Object.assign(Object.assign({},i),{WebkitLineClamp:$e?q:void 0}),component:m,ref:xa(ge,x,t),direction:v,onClick:P.includes("text")?D:void 0,"aria-label":Le==null?void 0:Le.toString(),title:h},w),d.createElement(IPe,{enableMeasure:re&&!he,text:l,rows:q,width:He,onEllipsis:qe,expanded:fe,miscDeps:[F,fe,M,E,A,y].concat(De(Rj.map(be=>e[be])))},(be,Re)=>APe(e,d.createElement(d.Fragment,null,be.length>0&&Re&&!fe&&Le?d.createElement("span",{key:"show-content","aria-hidden":!0},be):be,Me(Re)))))))}),VS=DPe;var jPe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{ellipsis:r,rel:n,children:a,navigate:i}=e,o=jPe(e,["ellipsis","rel","children","navigate"]),s=Object.assign(Object.assign({},o),{rel:n===void 0&&o.target==="_blank"?"noopener noreferrer":n});return d.createElement(VS,Object.assign({},s,{ref:t,ellipsis:!!r,component:"a"}),a)}),LPe=FPe;var BPe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{children:r}=e,n=BPe(e,["children"]);return d.createElement(VS,Object.assign({ref:t},n,{component:"div"}),r)}),HPe=zPe;var WPe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{ellipsis:r,children:n}=e,a=WPe(e,["ellipsis","children"]),i=d.useMemo(()=>r&&typeof r=="object"?Er(r,["expandable","rows"]):r,[r]);return d.createElement(VS,Object.assign({ref:t},a,{ellipsis:i,component:"span"}),n)},UPe=d.forwardRef(VPe);var KPe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{level:r=1,children:n}=e,a=KPe(e,["level","children"]),i=GPe.includes(r)?`h${r}`:"h1";return d.createElement(VS,Object.assign({ref:t},a,{component:i}),n)}),XPe=qPe,Nv=pK;Nv.Text=UPe;Nv.Link=LPe;Nv.Title=XPe;Nv.Paragraph=HPe;const US=Nv,J2=function(e,t){if(e&&t){var r=Array.isArray(t)?t:t.split(","),n=e.name||"",a=e.type||"",i=a.replace(/\/.*$/,"");return r.some(function(o){var s=o.trim();if(/^\*(\/\*)?$/.test(o))return!0;if(s.charAt(0)==="."){var l=n.toLowerCase(),c=s.toLowerCase(),u=[c];return(c===".jpg"||c===".jpeg")&&(u=[".jpg",".jpeg"]),u.some(function(f){return l.endsWith(f)})}return/\/\*$/.test(s)?i===s.replace(/\/.*$/,""):a===s?!0:/^\w+$/.test(s)?(Br(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function YPe(e,t){var r="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),n=new Error(r);return n.status=t.status,n.method=e.method,n.url=e.action,n}function Aj(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function Mj(e){var 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)});var r=new FormData;e.data&&Object.keys(e.data).forEach(function(a){var i=e.data[a];if(Array.isArray(i)){i.forEach(function(o){r.append("".concat(a,"[]"),o)});return}r.append(a,i)}),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(YPe(e,t),Aj(t)):e.onSuccess(Aj(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var n=e.headers||{};return n["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach(function(a){n[a]!==null&&t.setRequestHeader(a,n[a])}),t.send(r),{abort:function(){t.abort()}}}var QPe=function(){var e=xi(Or().mark(function t(r,n){var a,i,o,s,l,c,u,f;return Or().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:c=function(){return c=xi(Or().mark(function g(v){return Or().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.abrupt("return",new Promise(function(b){v.file(function(S){n(S)?(v.fullPath&&!S.webkitRelativePath&&(Object.defineProperties(S,{webkitRelativePath:{writable:!0}}),S.webkitRelativePath=v.fullPath.replace(/^\//,""),Object.defineProperties(S,{webkitRelativePath:{writable:!1}})),b(S)):b(null)})}));case 1:case"end":return x.stop()}},g)})),c.apply(this,arguments)},l=function(g){return c.apply(this,arguments)},s=function(){return s=xi(Or().mark(function g(v){var y,x,b,S,w;return Or().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:y=v.createReader(),x=[];case 2:return C.next=5,new Promise(function(O){y.readEntries(O,function(){return O([])})});case 5:if(b=C.sent,S=b.length,S){C.next=9;break}return C.abrupt("break",12);case 9:for(w=0;w0||g.some(function(S){return S.kind==="file"}))&&(u==null||u()),!p){b.next=11;break}return b.next=7,QPe(Array.prototype.slice.call(g),function(S){return J2(S,n.props.accept)});case 7:v=b.sent,n.uploadFiles(v),b.next=14;break;case 11:y=De(v).filter(function(S){return J2(S,h)}),m===!1&&(y=v.slice(0,1)),n.uploadFiles(y);case 14:case"end":return b.stop()}},l)}));return function(l,c){return s.apply(this,arguments)}}()),J(vt(n),"onFilePaste",function(){var s=xi(Or().mark(function l(c){var u,f;return Or().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(u=n.props.pastable,u){h.next=3;break}return h.abrupt("return");case 3:if(c.type!=="paste"){h.next=6;break}return f=c.clipboardData,h.abrupt("return",n.onDataTransferFiles(f,function(){c.preventDefault()}));case 6:case"end":return h.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),J(vt(n),"onFileDragOver",function(s){s.preventDefault()}),J(vt(n),"onFileDrop",function(){var s=xi(Or().mark(function l(c){var u;return Or().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(c.preventDefault(),c.type!=="drop"){m.next=4;break}return u=c.dataTransfer,m.abrupt("return",n.onDataTransferFiles(u));case 4:case"end":return m.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),J(vt(n),"uploadFiles",function(s){var l=De(s),c=l.map(function(u){return u.uid=eE(),n.processFile(u,l)});Promise.all(c).then(function(u){var f=n.props.onBatchStart;f==null||f(u.map(function(m){var h=m.origin,p=m.parsedFile;return{file:h,parsedFile:p}})),u.filter(function(m){return m.parsedFile!==null}).forEach(function(m){n.post(m)})})}),J(vt(n),"processFile",function(){var s=xi(Or().mark(function l(c,u){var f,m,h,p,g,v,y,x,b;return Or().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(f=n.props.beforeUpload,m=c,!f){w.next=14;break}return w.prev=3,w.next=6,f(c,u);case 6:m=w.sent,w.next=12;break;case 9:w.prev=9,w.t0=w.catch(3),m=!1;case 12:if(m!==!1){w.next=14;break}return w.abrupt("return",{origin:c,parsedFile:null,action:null,data:null});case 14:if(h=n.props.action,typeof h!="function"){w.next=21;break}return w.next=18,h(c);case 18:p=w.sent,w.next=22;break;case 21:p=h;case 22:if(g=n.props.data,typeof g!="function"){w.next=29;break}return w.next=26,g(c);case 26:v=w.sent,w.next=30;break;case 29:v=g;case 30:return y=(bt(m)==="object"||typeof m=="string")&&m?m:c,y instanceof File?x=y:x=new File([y],c.name,{type:c.type}),b=x,b.uid=c.uid,w.abrupt("return",{origin:c,data:v,parsedFile:b,action:p});case 35:case"end":return w.stop()}},l,null,[[3,9]])}));return function(l,c){return s.apply(this,arguments)}}()),J(vt(n),"saveFileInput",function(s){n.fileInput=s}),n}return Vr(r,[{key:"componentDidMount",value:function(){this._isMounted=!0;var a=this.props.pastable;a&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(a){var i=this.props.pastable;i&&!a.pastable?document.addEventListener("paste",this.onFilePaste):!i&&a.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(a){var i=this,o=a.data,s=a.origin,l=a.action,c=a.parsedFile;if(this._isMounted){var u=this.props,f=u.onStart,m=u.customRequest,h=u.name,p=u.headers,g=u.withCredentials,v=u.method,y=s.uid,x=m||Mj,b={action:l,filename:h,data:o,file:c,headers:p,withCredentials:g,method:v||"post",onProgress:function(w){var E=i.props.onProgress;E==null||E(w,c)},onSuccess:function(w,E){var C=i.props.onSuccess;C==null||C(w,c,E),delete i.reqs[y]},onError:function(w,E){var C=i.props.onError;C==null||C(w,E,c),delete i.reqs[y]}};f(s),this.reqs[y]=x(b,{defaultRequest:Mj})}}},{key:"reset",value:function(){this.setState({uid:eE()})}},{key:"abort",value:function(a){var i=this.reqs;if(a){var o=a.uid?a.uid:a;i[o]&&i[o].abort&&i[o].abort(),delete i[o]}else Object.keys(i).forEach(function(s){i[s]&&i[s].abort&&i[s].abort(),delete i[s]})}},{key:"render",value:function(){var a=this.props,i=a.component,o=a.prefixCls,s=a.className,l=a.classNames,c=l===void 0?{}:l,u=a.disabled,f=a.id,m=a.name,h=a.style,p=a.styles,g=p===void 0?{}:p,v=a.multiple,y=a.accept,x=a.capture,b=a.children,S=a.directory,w=a.folder,E=a.openFileDialogOnClick,C=a.onMouseEnter,O=a.onMouseLeave,_=a.hasControlInside,P=Rt(a,eIe),I=ce(J(J(J({},o,!0),"".concat(o,"-disabled"),u),s,s)),N=S||w?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},D=u?{}:{onClick:E?this.onClick:function(){},onKeyDown:E?this.onKeyDown:function(){},onMouseEnter:C,onMouseLeave:O,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:_?void 0:"0"};return ve.createElement(i,Oe({},D,{className:I,role:_?void 0:"button",style:h}),ve.createElement("input",Oe({},Dn(P,{aria:!0,data:!0}),{id:f,name:m,disabled:u,type:"file",ref:this.saveFileInput,onClick:function(R){return R.stopPropagation()},key:this.state.uid,style:ae({display:"none"},g.input),className:c.input,accept:y},N,{multiple:v,onChange:this.onChange},x!=null?{capture:x}:{})),b)}}]),r}(d.Component);function tE(){}var hO=function(e){yo(r,e);var t=Qo(r);function r(){var n;Wr(this,r);for(var a=arguments.length,i=new Array(a),o=0;o{const{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${le(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${le(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[` - &:not(${t}-disabled):hover, - &-hover:not(${t}-disabled) - `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${le(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${r}, - p${t}-text, - p${t}-hint - `]:{color:e.colorTextDisabled}}}}}},nIe=rIe,aIe=e=>{const{componentCls:t,iconCls:r,fontSize:n,lineHeight:a,calc:i}=e,o=`${t}-list-item`,s=`${o}-actions`,l=`${o}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},rl()),{lineHeight:e.lineHeight,[o]:{position:"relative",height:i(e.lineHeight).mul(n).equal(),marginTop:e.marginXS,fontSize:n,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${o}-name`]:Object.assign(Object.assign({},Uo),{padding:`0 ${le(e.paddingXS)}`,lineHeight:a,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[r]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[` - ${l}:focus-visible, - &.picture ${l} - `]:{opacity:1}},[`${t}-icon ${r}`]:{color:e.colorIcon,fontSize:n},[`${o}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(n).add(e.paddingXS).equal(),fontSize:n,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${o}:hover ${l}`]:{opacity:1},[`${o}-error`]:{color:e.colorError,[`${o}-name, ${t}-icon ${r}`]:{color:e.colorError},[s]:{[`${r}, ${r}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},iIe=aIe,oIe=e=>{const{componentCls:t}=e,r=new fr("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),n=new fr("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),a=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${a}-appear, ${a}-enter, ${a}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${a}-appear, ${a}-enter`]:{animationName:r},[`${a}-leave`]:{animationName:n}}},{[`${t}-wrapper`]:U9(e)},r,n]},sIe=oIe,lIe=e=>{const{componentCls:t,iconCls:r,uploadThumbnailSize:n,uploadProgressOffset:a,calc:i}=e,o=`${t}-list`,s=`${o}-item`;return{[`${t}-wrapper`]:{[` - ${o}${o}-picture, - ${o}${o}-picture-card, - ${o}${o}-picture-circle - `]:{[s]:{position:"relative",height:i(n).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},Uo),{width:n,height:n,lineHeight:le(i(n).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[r]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:a,width:`calc(100% - ${le(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(n).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${r}`]:{[`svg path[fill='${y0[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${y0.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:a}}},[`${o}${o}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},cIe=e=>{const{componentCls:t,iconCls:r,fontSizeLG:n,colorTextLightSolid:a,calc:i}=e,o=`${t}-list`,s=`${o}-item`,l=e.uploadPicCardSize;return{[` - ${t}-wrapper${t}-picture-card-wrapper, - ${t}-wrapper${t}-picture-circle-wrapper - `]:Object.assign(Object.assign({},rl()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${le(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${o}${o}-picture-card, ${o}${o}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${o}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${le(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${le(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[` - ${r}-eye, - ${r}-download, - ${r}-delete - `]:{zIndex:10,width:n,margin:`0 ${le(e.marginXXS)}`,fontSize:n,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:a,"&:hover":{color:a},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${le(i(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${le(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},uIe=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},dIe=uIe,fIe=e=>{const{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},dr(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}},mIe=e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55}),hIe=lr("Upload",e=>{const{fontSizeHeading3:t,fontHeight:r,lineWidth:n,pictureCardSize:a,calc:i}=e,o=Zt(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(r).div(2)).add(n).equal(),uploadPicCardSize:a});return[fIe(o),nIe(o),lIe(o),cIe(o),iIe(o),sIe(o),dIe(o),aS(o)]},mIe);var pIe={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:r}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"};const vIe=pIe;var gIe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:vIe}))},yIe=d.forwardRef(gIe);const xIe=yIe;var bIe={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"};const SIe=bIe;var wIe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:SIe}))},CIe=d.forwardRef(wIe);const EIe=CIe;var $Ie={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:r}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:r}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:r}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"};const _Ie=$Ie;var OIe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:_Ie}))},TIe=d.forwardRef(OIe);const PIe=TIe;function sy(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function ly(e,t){const r=De(t),n=r.findIndex(({uid:a})=>a===e.uid);return n===-1?r.push(e):r[n]=e,r}function rE(e,t){const r=e.uid!==void 0?"uid":"name";return t.filter(n=>n[r]===e[r])[0]}function IIe(e,t){const r=e.uid!==void 0?"uid":"name",n=t.filter(a=>a[r]!==e[r]);return n.length===t.length?null:n}const NIe=(e="")=>{const t=e.split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},vK=e=>e.indexOf("image/")===0,kIe=e=>{if(e.type&&!e.thumbUrl)return vK(e.type);const t=e.thumbUrl||e.url||"",r=NIe(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(r)?!0:!(/^data:/.test(t)||r)},rc=200;function RIe(e){return new Promise(t=>{if(!e.type||!vK(e.type)){t("");return}const r=document.createElement("canvas");r.width=rc,r.height=rc,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${rc}px; height: ${rc}px; z-index: 9999; display: none;`,document.body.appendChild(r);const n=r.getContext("2d"),a=new Image;if(a.onload=()=>{const{width:i,height:o}=a;let s=rc,l=rc,c=0,u=0;i>o?(l=o*(rc/i),u=-(l-s)/2):(s=i*(rc/o),c=-(s-l)/2),n.drawImage(a,c,u,s,l);const f=r.toDataURL();document.body.removeChild(r),window.URL.revokeObjectURL(a.src),t(f)},a.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(a.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else a.src=window.URL.createObjectURL(e)})}var AIe={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"};const MIe=AIe;var DIe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:MIe}))},jIe=d.forwardRef(DIe);const hN=jIe,FIe=d.forwardRef(({prefixCls:e,className:t,style:r,locale:n,listType:a,file:i,items:o,progress:s,iconRender:l,actionIconRender:c,itemRender:u,isImgUrl:f,showPreviewIcon:m,showRemoveIcon:h,showDownloadIcon:p,previewIcon:g,removeIcon:v,downloadIcon:y,extra:x,onPreview:b,onDownload:S,onClose:w},E)=>{var C,O;const{status:_}=i,[P,I]=d.useState(_);d.useEffect(()=>{_!=="removed"&&I(_)},[_]);const[N,D]=d.useState(!1);d.useEffect(()=>{const H=setTimeout(()=>{D(!0)},300);return()=>{clearTimeout(H)}},[]);const k=l(i);let R=d.createElement("div",{className:`${e}-icon`},k);if(a==="picture"||a==="picture-card"||a==="picture-circle")if(P==="uploading"||!i.thumbUrl&&!i.url){const H=ce(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:P!=="uploading"});R=d.createElement("div",{className:H},k)}else{const H=f!=null&&f(i)?d.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):k,fe=ce(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:f&&!f(i)});R=d.createElement("a",{className:fe,onClick:te=>b(i,te),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},H)}const A=ce(`${e}-list-item`,`${e}-list-item-${P}`),j=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,F=(typeof h=="function"?h(i):h)?c((typeof v=="function"?v(i):v)||d.createElement(fu,null),()=>w(i),e,n.removeFile,!0):null,M=(typeof p=="function"?p(i):p)&&P==="done"?c((typeof y=="function"?y(i):y)||d.createElement(hN,null),()=>S(i),e,n.downloadFile):null,V=a!=="picture-card"&&a!=="picture-circle"&&d.createElement("span",{key:"download-delete",className:ce(`${e}-list-item-actions`,{picture:a==="picture"})},M,F),K=typeof x=="function"?x(i):x,L=K&&d.createElement("span",{className:`${e}-list-item-extra`},K),B=ce(`${e}-list-item-name`),W=i.url?d.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:B,title:i.name},j,{href:i.url,onClick:H=>b(i,H)}),i.name,L):d.createElement("span",{key:"view",className:B,onClick:H=>b(i,H),title:i.name},i.name,L),z=(typeof m=="function"?m(i):m)&&(i.url||i.thumbUrl)?d.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:H=>b(i,H),title:n.previewFile},typeof g=="function"?g(i):g||d.createElement(Pv,null)):null,U=(a==="picture-card"||a==="picture-circle")&&P!=="uploading"&&d.createElement("span",{className:`${e}-list-item-actions`},z,P==="done"&&M,F),{getPrefixCls:X}=d.useContext(Nt),Y=X(),G=d.createElement("div",{className:A},R,W,V,U,N&&d.createElement(Vi,{motionName:`${Y}-fade`,visible:P==="uploading",motionDeadline:2e3},({className:H})=>{const fe="percent"in i?d.createElement(Sc,Object.assign({type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]},s)):null;return d.createElement("div",{className:ce(`${e}-list-item-progress`,H)},fe)})),Q=i.response&&typeof i.response=="string"?i.response:((C=i.error)===null||C===void 0?void 0:C.statusText)||((O=i.error)===null||O===void 0?void 0:O.message)||n.uploadError,ee=P==="error"?d.createElement(Os,{title:Q,getPopupContainer:H=>H.parentNode},G):G;return d.createElement("div",{className:ce(`${e}-list-item-container`,t),style:r,ref:E},u?u(ee,i,o,{download:S.bind(null,i),preview:b.bind(null,i),remove:w.bind(null,i)}):ee)}),LIe=FIe,BIe=(e,t)=>{const{listType:r="text",previewFile:n=RIe,onPreview:a,onDownload:i,onRemove:o,locale:s,iconRender:l,isImageUrl:c=kIe,prefixCls:u,items:f=[],showPreviewIcon:m=!0,showRemoveIcon:h=!0,showDownloadIcon:p=!1,removeIcon:g,previewIcon:v,downloadIcon:y,extra:x,progress:b={size:[-1,2],showInfo:!1},appendAction:S,appendActionVisible:w=!0,itemRender:E,disabled:C}=e,[,O]=WP(),[_,P]=d.useState(!1),I=["picture-card","picture-circle"].includes(r);d.useEffect(()=>{r.startsWith("picture")&&(f||[]).forEach(B=>{!(B.originFileObj instanceof File||B.originFileObj instanceof Blob)||B.thumbUrl!==void 0||(B.thumbUrl="",n==null||n(B.originFileObj).then(W=>{B.thumbUrl=W||"",O()}))})},[r,f,n]),d.useEffect(()=>{P(!0)},[]);const N=(B,W)=>{if(a)return W==null||W.preventDefault(),a(B)},D=B=>{typeof i=="function"?i(B):B.url&&window.open(B.url)},k=B=>{o==null||o(B)},R=B=>{if(l)return l(B,r);const W=B.status==="uploading";if(r.startsWith("picture")){const z=r==="picture"?d.createElement(Wc,null):s.uploading,U=c!=null&&c(B)?d.createElement(PIe,null):d.createElement(xIe,null);return W?z:U}return W?d.createElement(Wc,null):d.createElement(EIe,null)},A=(B,W,z,U,X)=>{const Y={type:"text",size:"small",title:U,onClick:G=>{var Q,ee;W(),d.isValidElement(B)&&((ee=(Q=B.props).onClick)===null||ee===void 0||ee.call(Q,G))},className:`${z}-list-item-action`,disabled:X?C:!1};return d.isValidElement(B)?d.createElement(kt,Object.assign({},Y,{icon:pa(B,Object.assign(Object.assign({},B.props),{onClick:()=>{}}))})):d.createElement(kt,Object.assign({},Y),d.createElement("span",null,B))};d.useImperativeHandle(t,()=>({handlePreview:N,handleDownload:D}));const{getPrefixCls:j}=d.useContext(Nt),F=j("upload",u),M=j(),V=ce(`${F}-list`,`${F}-list-${r}`),K=d.useMemo(()=>Er(vp(M),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[M]),L=Object.assign(Object.assign({},I?{}:K),{motionDeadline:2e3,motionName:`${F}-${I?"animate-inline":"animate"}`,keys:De(f.map(B=>({key:B.uid,file:B}))),motionAppear:_});return d.createElement("div",{className:V},d.createElement(LP,Object.assign({},L,{component:!1}),({key:B,file:W,className:z,style:U})=>d.createElement(LIe,{key:B,locale:s,prefixCls:F,className:z,style:U,file:W,items:f,progress:b,listType:r,isImgUrl:c,showPreviewIcon:m,showRemoveIcon:h,showDownloadIcon:p,removeIcon:g,previewIcon:v,downloadIcon:y,extra:x,iconRender:R,actionIconRender:A,itemRender:E,onPreview:N,onDownload:D,onClose:k})),S&&d.createElement(Vi,Object.assign({},L,{visible:w,forceRender:!0}),({className:B,style:W})=>pa(S,z=>({className:ce(z.className,B),style:Object.assign(Object.assign(Object.assign({},W),{pointerEvents:B?"none":void 0}),z.style)}))))},zIe=d.forwardRef(BIe),HIe=zIe;var WIe=globalThis&&globalThis.__awaiter||function(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(u){try{c(n.next(u))}catch(f){o(f)}}function l(u){try{c(n.throw(u))}catch(f){o(f)}}function c(u){u.done?i(u.value):a(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};const uh=`__LIST_IGNORE_${Date.now()}__`,VIe=(e,t)=>{const r=oa("upload"),{fileList:n,defaultFileList:a,onRemove:i,showUploadList:o=!0,listType:s="text",onPreview:l,onDownload:c,onChange:u,onDrop:f,previewFile:m,disabled:h,locale:p,iconRender:g,isImageUrl:v,progress:y,prefixCls:x,className:b,type:S="select",children:w,style:E,itemRender:C,maxCount:O,data:_={},multiple:P=!1,hasControlInside:I=!0,action:N="",accept:D="",supportServerRender:k=!0,rootClassName:R}=e,A=d.useContext(Wi),j=h??A,F=e.customRequest||r.customRequest,[M,V]=br(a||[],{value:n,postState:ge=>ge??[]}),[K,L]=d.useState("drop"),B=d.useRef(null),W=d.useRef(null);d.useMemo(()=>{const ge=Date.now();(n||[]).forEach((be,Re)=>{!be.uid&&!Object.isFrozen(be)&&(be.uid=`__AUTO__${ge}_${Re}__`)})},[n]);const z=(ge,be,Re)=>{let We=De(be),at=!1;O===1?We=We.slice(-1):O&&(at=We.length>O,We=We.slice(0,O)),wi.flushSync(()=>{V(We)});const yt={file:ge,fileList:We};Re&&(yt.event=Re),(!at||ge.status==="removed"||We.some(tt=>tt.uid===ge.uid))&&wi.flushSync(()=>{u==null||u(yt)})},U=(ge,be)=>WIe(void 0,void 0,void 0,function*(){const{beforeUpload:Re,transformFile:We}=e;let at=ge;if(Re){const yt=yield Re(ge,be);if(yt===!1)return!1;if(delete ge[uh],yt===uh)return Object.defineProperty(ge,uh,{value:!0,configurable:!0}),!1;typeof yt=="object"&&yt&&(at=yt)}return We&&(at=yield We(at)),at}),X=ge=>{const be=ge.filter(at=>!at.file[uh]);if(!be.length)return;const Re=be.map(at=>sy(at.file));let We=De(M);Re.forEach(at=>{We=ly(at,We)}),Re.forEach((at,yt)=>{let tt=at;if(be[yt].parsedFile)at.status="uploading";else{const{originFileObj:it}=at;let ft;try{ft=new File([it],it.name,{type:it.type})}catch{ft=new Blob([it],{type:it.type}),ft.name=it.name,ft.lastModifiedDate=new Date,ft.lastModified=new Date().getTime()}ft.uid=at.uid,tt=ft}z(tt,We)})},Y=(ge,be,Re)=>{try{typeof ge=="string"&&(ge=JSON.parse(ge))}catch{}if(!rE(be,M))return;const We=sy(be);We.status="done",We.percent=100,We.response=ge,We.xhr=Re;const at=ly(We,M);z(We,at)},G=(ge,be)=>{if(!rE(be,M))return;const Re=sy(be);Re.status="uploading",Re.percent=ge.percent;const We=ly(Re,M);z(Re,We,ge)},Q=(ge,be,Re)=>{if(!rE(Re,M))return;const We=sy(Re);We.error=ge,We.response=be,We.status="error";const at=ly(We,M);z(We,at)},ee=ge=>{let be;Promise.resolve(typeof i=="function"?i(ge):i).then(Re=>{var We;if(Re===!1)return;const at=IIe(ge,M);at&&(be=Object.assign(Object.assign({},ge),{status:"removed"}),M==null||M.forEach(yt=>{const tt=be.uid!==void 0?"uid":"name";yt[tt]===be[tt]&&!Object.isFrozen(yt)&&(yt.status="removed")}),(We=B.current)===null||We===void 0||We.abort(be),z(be,at))})},H=ge=>{L(ge.type),ge.type==="drop"&&(f==null||f(ge))};d.useImperativeHandle(t,()=>({onBatchStart:X,onSuccess:Y,onProgress:G,onError:Q,fileList:M,upload:B.current,nativeElement:W.current}));const{getPrefixCls:fe,direction:te,upload:re}=d.useContext(Nt),q=fe("upload",x),ne=Object.assign(Object.assign({onBatchStart:X,onError:Q,onProgress:G,onSuccess:Y},e),{customRequest:F,data:_,multiple:P,action:N,accept:D,supportServerRender:k,prefixCls:q,disabled:j,beforeUpload:U,onChange:void 0,hasControlInside:I});delete ne.className,delete ne.style,(!w||j)&&delete ne.id;const he=`${q}-wrapper`,[ye,xe,pe]=hIe(q,he),[Pe]=Hi("Upload",Vo.Upload),{showRemoveIcon:$e,showPreviewIcon:Ee,showDownloadIcon:He,removeIcon:Fe,previewIcon:nt,downloadIcon:qe,extra:Ge}=typeof o=="boolean"?{}:o,Le=typeof $e>"u"?!j:$e,Ne=(ge,be)=>o?d.createElement(HIe,{prefixCls:q,listType:s,items:M,previewFile:m,onPreview:l,onDownload:c,onRemove:ee,showRemoveIcon:Le,showPreviewIcon:Ee,showDownloadIcon:He,removeIcon:Fe,previewIcon:nt,downloadIcon:qe,iconRender:g,extra:Ge,locale:Object.assign(Object.assign({},Pe),p),isImageUrl:v,progress:y,appendAction:ge,appendActionVisible:be,itemRender:C,disabled:j}):ge,Se=ce(he,b,R,xe,pe,re==null?void 0:re.className,{[`${q}-rtl`]:te==="rtl",[`${q}-picture-card-wrapper`]:s==="picture-card",[`${q}-picture-circle-wrapper`]:s==="picture-circle"}),je=Object.assign(Object.assign({},re==null?void 0:re.style),E);if(S==="drag"){const ge=ce(xe,q,`${q}-drag`,{[`${q}-drag-uploading`]:M.some(be=>be.status==="uploading"),[`${q}-drag-hover`]:K==="dragover",[`${q}-disabled`]:j,[`${q}-rtl`]:te==="rtl"});return ye(d.createElement("span",{className:Se,ref:W},d.createElement("div",{className:ge,style:je,onDrop:H,onDragOver:H,onDragLeave:H},d.createElement(hO,Object.assign({},ne,{ref:B,className:`${q}-btn`}),d.createElement("div",{className:`${q}-drag-container`},w))),Ne()))}const _e=ce(q,`${q}-select`,{[`${q}-disabled`]:j,[`${q}-hidden`]:!w}),Me=d.createElement("div",{className:_e,style:je},d.createElement(hO,Object.assign({},ne,{ref:B})));return ye(s==="picture-card"||s==="picture-circle"?d.createElement("span",{className:Se,ref:W},Ne(Me,!!w)):d.createElement("span",{className:Se,ref:W},Me,Ne()))},UIe=d.forwardRef(VIe),gK=UIe;var KIe=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a{const{style:r,height:n,hasControlInside:a=!1,children:i}=e,o=KIe(e,["style","height","hasControlInside","children"]),s=Object.assign(Object.assign({},r),{height:n});return d.createElement(gK,Object.assign({ref:t,hasControlInside:a},o,{style:s,type:"drag"}),i)}),qIe=GIe,pN=gK;pN.Dragger=qIe;pN.LIST_IGNORE=uh;const vN=pN;var KS={},yK={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(yK);var GS=yK.exports,qS={};Object.defineProperty(qS,"__esModule",{value:!0});qS.default=void 0;var XIe={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};qS.default=XIe;var XS={},kv={},YS={},xK={exports:{}},bK={exports:{}},SK={exports:{}},wK={exports:{}};(function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(wK);var CK=wK.exports,EK={exports:{}};(function(e){var t=CK.default;function r(n,a){if(t(n)!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,a||"default");if(t(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(EK);var YIe=EK.exports;(function(e){var t=CK.default,r=YIe;function n(a){var i=r(a,"string");return t(i)=="symbol"?i:i+""}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(SK);var QIe=SK.exports;(function(e){var t=QIe;function r(n,a,i){return(a=t(a))in n?Object.defineProperty(n,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[a]=i,n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(bK);var ZIe=bK.exports;(function(e){var t=ZIe;function r(a,i){var o=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);i&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable})),o.push.apply(o,s)}return o}function n(a){for(var i=1;i{const[t,r]=d.useState(()=>{const i=localStorage.getItem("survey_user");return i?JSON.parse(i):null}),n=i=>{r(i),i?localStorage.setItem("survey_user",JSON.stringify(i)):localStorage.removeItem("survey_user")},a=()=>{n(null)};return T.jsx(OK.Provider,{value:{user:t,setUser:n,clearUser:a},children:e})},Av=()=>{const e=d.useContext(OK);if(!e)throw new Error("useUser必须在UserProvider内使用");return e},TK=d.createContext(void 0),gNe=({children:e})=>{const[t,r]=d.useState(()=>{const o=localStorage.getItem("survey_admin");return o?JSON.parse(o):null}),n=o=>{r(o),o?localStorage.setItem("survey_admin",JSON.stringify(o)):localStorage.removeItem("survey_admin")},a=()=>{n(null)},i=!!t;return T.jsx(TK.Provider,{value:{admin:t,setAdmin:n,clearAdmin:a,isAuthenticated:i},children:e})},gN=()=>{const e=d.useContext(TK);if(!e)throw new Error("useAdmin必须在AdminProvider内使用");return e},PK=d.createContext(void 0),yNe=({children:e})=>{const[t,r]=d.useState([]),[n,a]=d.useState(0),[i,o]=d.useState({}),s=(c,u)=>{o(f=>({...f,[c]:u}))},l=()=>{r([]),a(0),o({})};return T.jsx(PK.Provider,{value:{questions:t,setQuestions:r,currentQuestionIndex:n,setCurrentQuestionIndex:a,answers:i,setAnswer:s,setAnswers:o,clearQuiz:l},children:e})},xNe=()=>{const e=d.useContext(PK);if(!e)throw new Error("useQuiz必须在QuizProvider内使用");return e};function IK(e,t){return function(){return e.apply(t,arguments)}}const{toString:bNe}=Object.prototype,{getPrototypeOf:yN}=Object,{iterator:JS,toStringTag:NK}=Symbol,ew=(e=>t=>{const r=bNe.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),ks=e=>(e=e.toLowerCase(),t=>ew(t)===e),tw=e=>t=>typeof t===e,{isArray:fm}=Array,w0=tw("undefined");function Mv(e){return e!==null&&!w0(e)&&e.constructor!==null&&!w0(e.constructor)&&Bi(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const kK=ks("ArrayBuffer");function SNe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&kK(e.buffer),t}const wNe=tw("string"),Bi=tw("function"),RK=tw("number"),Dv=e=>e!==null&&typeof e=="object",CNe=e=>e===!0||e===!1,fx=e=>{if(ew(e)!=="object")return!1;const t=yN(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(NK in e)&&!(JS in e)},ENe=e=>{if(!Dv(e)||Mv(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},$Ne=ks("Date"),_Ne=ks("File"),ONe=ks("Blob"),TNe=ks("FileList"),PNe=e=>Dv(e)&&Bi(e.pipe),INe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Bi(e.append)&&((t=ew(e))==="formdata"||t==="object"&&Bi(e.toString)&&e.toString()==="[object FormData]"))},NNe=ks("URLSearchParams"),[kNe,RNe,ANe,MNe]=["ReadableStream","Request","Response","Headers"].map(ks),DNe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function jv(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),fm(e))for(n=0,a=e.length;n0;)if(a=r[n],t===a.toLowerCase())return a;return null}const Hu=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),MK=e=>!w0(e)&&e!==Hu;function pO(){const{caseless:e,skipUndefined:t}=MK(this)&&this||{},r={},n=(a,i)=>{const o=e&&AK(r,i)||i;fx(r[o])&&fx(a)?r[o]=pO(r[o],a):fx(a)?r[o]=pO({},a):fm(a)?r[o]=a.slice():(!t||!w0(a))&&(r[o]=a)};for(let a=0,i=arguments.length;a(jv(t,(a,i)=>{r&&Bi(a)?e[i]=IK(a,r):e[i]=a},{allOwnKeys:n}),e),FNe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),LNe=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},BNe=(e,t,r,n)=>{let a,i,o;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!n||n(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=r!==!1&&yN(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},zNe=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},HNe=e=>{if(!e)return null;if(fm(e))return e;let t=e.length;if(!RK(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},WNe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&yN(Uint8Array)),VNe=(e,t)=>{const n=(e&&e[JS]).call(e);let a;for(;(a=n.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},UNe=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},KNe=ks("HTMLFormElement"),GNe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),jj=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),qNe=ks("RegExp"),DK=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};jv(r,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(n[i]=o||a)}),Object.defineProperties(e,n)},XNe=e=>{DK(e,(t,r)=>{if(Bi(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Bi(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},YNe=(e,t)=>{const r={},n=a=>{a.forEach(i=>{r[i]=!0})};return fm(e)?n(e):n(String(e).split(t)),r},QNe=()=>{},ZNe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function JNe(e){return!!(e&&Bi(e.append)&&e[NK]==="FormData"&&e[JS])}const eke=e=>{const t=new Array(10),r=(n,a)=>{if(Dv(n)){if(t.indexOf(n)>=0)return;if(Mv(n))return n;if(!("toJSON"in n)){t[a]=n;const i=fm(n)?[]:{};return jv(n,(o,s)=>{const l=r(o,a+1);!w0(l)&&(i[s]=l)}),t[a]=void 0,i}}return n};return r(e,0)},tke=ks("AsyncFunction"),rke=e=>e&&(Dv(e)||Bi(e))&&Bi(e.then)&&Bi(e.catch),jK=((e,t)=>e?setImmediate:t?((r,n)=>(Hu.addEventListener("message",({source:a,data:i})=>{a===Hu&&i===r&&n.length&&n.shift()()},!1),a=>{n.push(a),Hu.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Bi(Hu.postMessage)),nke=typeof queueMicrotask<"u"?queueMicrotask.bind(Hu):typeof process<"u"&&process.nextTick||jK,ake=e=>e!=null&&Bi(e[JS]),Ke={isArray:fm,isArrayBuffer:kK,isBuffer:Mv,isFormData:INe,isArrayBufferView:SNe,isString:wNe,isNumber:RK,isBoolean:CNe,isObject:Dv,isPlainObject:fx,isEmptyObject:ENe,isReadableStream:kNe,isRequest:RNe,isResponse:ANe,isHeaders:MNe,isUndefined:w0,isDate:$Ne,isFile:_Ne,isBlob:ONe,isRegExp:qNe,isFunction:Bi,isStream:PNe,isURLSearchParams:NNe,isTypedArray:WNe,isFileList:TNe,forEach:jv,merge:pO,extend:jNe,trim:DNe,stripBOM:FNe,inherits:LNe,toFlatObject:BNe,kindOf:ew,kindOfTest:ks,endsWith:zNe,toArray:HNe,forEachEntry:VNe,matchAll:UNe,isHTMLForm:KNe,hasOwnProperty:jj,hasOwnProp:jj,reduceDescriptors:DK,freezeMethods:XNe,toObjectSet:YNe,toCamelCase:GNe,noop:QNe,toFiniteNumber:ZNe,findKey:AK,global:Hu,isContextDefined:MK,isSpecCompliantForm:JNe,toJSONObject:eke,isAsyncFn:tke,isThenable:rke,setImmediate:jK,asap:nke,isIterable:ake};function ar(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}Ke.inherits(ar,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ke.toJSONObject(this.config),code:this.code,status:this.status}}});const FK=ar.prototype,LK={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{LK[e]={value:e}});Object.defineProperties(ar,LK);Object.defineProperty(FK,"isAxiosError",{value:!0});ar.from=(e,t,r,n,a,i)=>{const o=Object.create(FK);Ke.toFlatObject(e,o,function(u){return u!==Error.prototype},c=>c!=="isAxiosError");const s=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return ar.call(o,s,l,r,n,a),e&&o.cause==null&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",i&&Object.assign(o,i),o};const ike=null;function vO(e){return Ke.isPlainObject(e)||Ke.isArray(e)}function BK(e){return Ke.endsWith(e,"[]")?e.slice(0,-2):e}function Fj(e,t,r){return e?e.concat(t).map(function(a,i){return a=BK(a),!r&&i?"["+a+"]":a}).join(r?".":""):t}function oke(e){return Ke.isArray(e)&&!e.some(vO)}const ske=Ke.toFlatObject(Ke,{},null,function(t){return/^is[A-Z]/.test(t)});function rw(e,t,r){if(!Ke.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=Ke.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!Ke.isUndefined(v[g])});const n=r.metaTokens,a=r.visitor||u,i=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&Ke.isSpecCompliantForm(t);if(!Ke.isFunction(a))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(Ke.isDate(p))return p.toISOString();if(Ke.isBoolean(p))return p.toString();if(!l&&Ke.isBlob(p))throw new ar("Blob is not supported. Use a Buffer instead.");return Ke.isArrayBuffer(p)||Ke.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function u(p,g,v){let y=p;if(p&&!v&&typeof p=="object"){if(Ke.endsWith(g,"{}"))g=n?g:g.slice(0,-2),p=JSON.stringify(p);else if(Ke.isArray(p)&&oke(p)||(Ke.isFileList(p)||Ke.endsWith(g,"[]"))&&(y=Ke.toArray(p)))return g=BK(g),y.forEach(function(b,S){!(Ke.isUndefined(b)||b===null)&&t.append(o===!0?Fj([g],S,i):o===null?g:g+"[]",c(b))}),!1}return vO(p)?!0:(t.append(Fj(v,g,i),c(p)),!1)}const f=[],m=Object.assign(ske,{defaultVisitor:u,convertValue:c,isVisitable:vO});function h(p,g){if(!Ke.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(p),Ke.forEach(p,function(y,x){(!(Ke.isUndefined(y)||y===null)&&a.call(t,y,Ke.isString(x)?x.trim():x,g,m))===!0&&h(y,g?g.concat(x):[x])}),f.pop()}}if(!Ke.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Lj(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function xN(e,t){this._pairs=[],e&&rw(e,this,t)}const zK=xN.prototype;zK.append=function(t,r){this._pairs.push([t,r])};zK.toString=function(t){const r=t?function(n){return t.call(this,n,Lj)}:Lj;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function lke(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function HK(e,t,r){if(!t)return e;const n=r&&r.encode||lke;Ke.isFunction(r)&&(r={serialize:r});const a=r&&r.serialize;let i;if(a?i=a(t,r):i=Ke.isURLSearchParams(t)?t.toString():new xN(t,r).toString(n),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class cke{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ke.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Bj=cke,WK={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uke=typeof URLSearchParams<"u"?URLSearchParams:xN,dke=typeof FormData<"u"?FormData:null,fke=typeof Blob<"u"?Blob:null,mke={isBrowser:!0,classes:{URLSearchParams:uke,FormData:dke,Blob:fke},protocols:["http","https","file","blob","url","data"]},bN=typeof window<"u"&&typeof document<"u",gO=typeof navigator=="object"&&navigator||void 0,hke=bN&&(!gO||["ReactNative","NativeScript","NS"].indexOf(gO.product)<0),pke=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),vke=bN&&window.location.href||"http://localhost",gke=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:bN,hasStandardBrowserEnv:hke,hasStandardBrowserWebWorkerEnv:pke,navigator:gO,origin:vke},Symbol.toStringTag,{value:"Module"})),ni={...gke,...mke};function yke(e,t){return rw(e,new ni.classes.URLSearchParams,{visitor:function(r,n,a,i){return ni.isNode&&Ke.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function xke(e){return Ke.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function bke(e){const t={},r=Object.keys(e);let n;const a=r.length;let i;for(n=0;n=r.length;return o=!o&&Ke.isArray(a)?a.length:o,l?(Ke.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!s):((!a[o]||!Ke.isObject(a[o]))&&(a[o]=[]),t(r,n,a[o],i)&&Ke.isArray(a[o])&&(a[o]=bke(a[o])),!s)}if(Ke.isFormData(e)&&Ke.isFunction(e.entries)){const r={};return Ke.forEachEntry(e,(n,a)=>{t(xke(n),a,r,0)}),r}return null}function Ske(e,t,r){if(Ke.isString(e))try{return(t||JSON.parse)(e),Ke.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const SN={transitional:WK,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,i=Ke.isObject(t);if(i&&Ke.isHTMLForm(t)&&(t=new FormData(t)),Ke.isFormData(t))return a?JSON.stringify(VK(t)):t;if(Ke.isArrayBuffer(t)||Ke.isBuffer(t)||Ke.isStream(t)||Ke.isFile(t)||Ke.isBlob(t)||Ke.isReadableStream(t))return t;if(Ke.isArrayBufferView(t))return t.buffer;if(Ke.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return yke(t,this.formSerializer).toString();if((s=Ke.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return rw(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||a?(r.setContentType("application/json",!1),Ske(t)):t}],transformResponse:[function(t){const r=this.transitional||SN.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(Ke.isResponse(t)||Ke.isReadableStream(t))return t;if(t&&Ke.isString(t)&&(n&&!this.responseType||a)){const o=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t,this.parseReviver)}catch(s){if(o)throw s.name==="SyntaxError"?ar.from(s,ar.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ni.classes.FormData,Blob:ni.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ke.forEach(["delete","get","head","post","put","patch"],e=>{SN.headers[e]={}});const wN=SN,wke=Ke.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Cke=e=>{const t={};let r,n,a;return e&&e.split(` -`).forEach(function(o){a=o.indexOf(":"),r=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!r||t[r]&&wke[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},zj=Symbol("internals");function Wm(e){return e&&String(e).trim().toLowerCase()}function mx(e){return e===!1||e==null?e:Ke.isArray(e)?e.map(mx):String(e)}function Eke(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const $ke=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function nE(e,t,r,n,a){if(Ke.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!Ke.isString(t)){if(Ke.isString(n))return t.indexOf(n)!==-1;if(Ke.isRegExp(n))return n.test(t)}}function _ke(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Oke(e,t){const r=Ke.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(a,i,o){return this[n].call(this,t,a,i,o)},configurable:!0})})}class nw{constructor(t){t&&this.set(t)}set(t,r,n){const a=this;function i(s,l,c){const u=Wm(l);if(!u)throw new Error("header name must be a non-empty string");const f=Ke.findKey(a,u);(!f||a[f]===void 0||c===!0||c===void 0&&a[f]!==!1)&&(a[f||l]=mx(s))}const o=(s,l)=>Ke.forEach(s,(c,u)=>i(c,u,l));if(Ke.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(Ke.isString(t)&&(t=t.trim())&&!$ke(t))o(Cke(t),r);else if(Ke.isObject(t)&&Ke.isIterable(t)){let s={},l,c;for(const u of t){if(!Ke.isArray(u))throw TypeError("Object iterator must return a key-value pair");s[c=u[0]]=(l=s[c])?Ke.isArray(l)?[...l,u[1]]:[l,u[1]]:u[1]}o(s,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=Wm(t),t){const n=Ke.findKey(this,t);if(n){const a=this[n];if(!r)return a;if(r===!0)return Eke(a);if(Ke.isFunction(r))return r.call(this,a,n);if(Ke.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Wm(t),t){const n=Ke.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||nE(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let a=!1;function i(o){if(o=Wm(o),o){const s=Ke.findKey(n,o);s&&(!r||nE(n,n[s],s,r))&&(delete n[s],a=!0)}}return Ke.isArray(t)?t.forEach(i):i(t),a}clear(t){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const i=r[n];(!t||nE(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const r=this,n={};return Ke.forEach(this,(a,i)=>{const o=Ke.findKey(n,i);if(o){r[o]=mx(a),delete r[i];return}const s=t?_ke(i):String(i).trim();s!==i&&delete r[i],r[s]=mx(a),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return Ke.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&Ke.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` -`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[zj]=this[zj]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=Wm(o);n[s]||(Oke(a,o),n[s]=!0)}return Ke.isArray(t)?t.forEach(i):i(t),this}}nw.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ke.reduceDescriptors(nw.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});Ke.freezeMethods(nw);const Ss=nw;function aE(e,t){const r=this||wN,n=t||r,a=Ss.from(n.headers);let i=n.data;return Ke.forEach(e,function(s){i=s.call(r,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function UK(e){return!!(e&&e.__CANCEL__)}function mm(e,t,r){ar.call(this,e??"canceled",ar.ERR_CANCELED,t,r),this.name="CanceledError"}Ke.inherits(mm,ar,{__CANCEL__:!0});function KK(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ar("Request failed with status code "+r.status,[ar.ERR_BAD_REQUEST,ar.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Tke(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Pke(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=n[i];o||(o=c),r[a]=l,n[a]=c;let f=i,m=0;for(;f!==a;)m+=r[f++],f=f%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),c-o{r=u,a=null,i&&(clearTimeout(i),i=null),e(...c)};return[(...c)=>{const u=Date.now(),f=u-r;f>=n?o(c,u):(a=c,i||(i=setTimeout(()=>{i=null,o(a)},n-f)))},()=>a&&o(a)]}const h1=(e,t,r=3)=>{let n=0;const a=Pke(50,250);return Ike(i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,l=o-n,c=a(l),u=o<=s;n=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-o)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},r)},Hj=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Wj=e=>(...t)=>Ke.asap(()=>e(...t)),Nke=ni.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,ni.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(ni.origin),ni.navigator&&/(msie|trident)/i.test(ni.navigator.userAgent)):()=>!0,kke=ni.hasStandardBrowserEnv?{write(e,t,r,n,a,i,o){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];Ke.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),Ke.isString(n)&&s.push(`path=${n}`),Ke.isString(a)&&s.push(`domain=${a}`),i===!0&&s.push("secure"),Ke.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Rke(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Ake(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function GK(e,t,r){let n=!Rke(t);return e&&(n||r==!1)?Ake(e,t):t}const Vj=e=>e instanceof Ss?{...e}:e;function xd(e,t){t=t||{};const r={};function n(c,u,f,m){return Ke.isPlainObject(c)&&Ke.isPlainObject(u)?Ke.merge.call({caseless:m},c,u):Ke.isPlainObject(u)?Ke.merge({},u):Ke.isArray(u)?u.slice():u}function a(c,u,f,m){if(Ke.isUndefined(u)){if(!Ke.isUndefined(c))return n(void 0,c,f,m)}else return n(c,u,f,m)}function i(c,u){if(!Ke.isUndefined(u))return n(void 0,u)}function o(c,u){if(Ke.isUndefined(u)){if(!Ke.isUndefined(c))return n(void 0,c)}else return n(void 0,u)}function s(c,u,f){if(f in t)return n(c,u);if(f in e)return n(void 0,c)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,u,f)=>a(Vj(c),Vj(u),f,!0)};return Ke.forEach(Object.keys({...e,...t}),function(u){const f=l[u]||a,m=f(e[u],t[u],u);Ke.isUndefined(m)&&f!==s||(r[u]=m)}),r}const qK=e=>{const t=xd({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:i,headers:o,auth:s}=t;if(t.headers=o=Ss.from(o),t.url=HK(GK(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),Ke.isFormData(r)){if(ni.hasStandardBrowserEnv||ni.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(Ke.isFunction(r.getHeaders)){const l=r.getHeaders(),c=["content-type","content-length"];Object.entries(l).forEach(([u,f])=>{c.includes(u.toLowerCase())&&o.set(u,f)})}}if(ni.hasStandardBrowserEnv&&(n&&Ke.isFunction(n)&&(n=n(t)),n||n!==!1&&Nke(t.url))){const l=a&&i&&kke.read(i);l&&o.set(a,l)}return t},Mke=typeof XMLHttpRequest<"u",Dke=Mke&&function(e){return new Promise(function(r,n){const a=qK(e);let i=a.data;const o=Ss.from(a.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=a,u,f,m,h,p;function g(){h&&h(),p&&p(),a.cancelToken&&a.cancelToken.unsubscribe(u),a.signal&&a.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(a.method.toUpperCase(),a.url,!0),v.timeout=a.timeout;function y(){if(!v)return;const b=Ss.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),w={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:b,config:e,request:v};KK(function(C){r(C),g()},function(C){n(C),g()},w),v=null}"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(y)},v.onabort=function(){v&&(n(new ar("Request aborted",ar.ECONNABORTED,e,v)),v=null)},v.onerror=function(S){const w=S&&S.message?S.message:"Network Error",E=new ar(w,ar.ERR_NETWORK,e,v);E.event=S||null,n(E),v=null},v.ontimeout=function(){let S=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const w=a.transitional||WK;a.timeoutErrorMessage&&(S=a.timeoutErrorMessage),n(new ar(S,w.clarifyTimeoutError?ar.ETIMEDOUT:ar.ECONNABORTED,e,v)),v=null},i===void 0&&o.setContentType(null),"setRequestHeader"in v&&Ke.forEach(o.toJSON(),function(S,w){v.setRequestHeader(w,S)}),Ke.isUndefined(a.withCredentials)||(v.withCredentials=!!a.withCredentials),s&&s!=="json"&&(v.responseType=a.responseType),c&&([m,p]=h1(c,!0),v.addEventListener("progress",m)),l&&v.upload&&([f,h]=h1(l),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",h)),(a.cancelToken||a.signal)&&(u=b=>{v&&(n(!b||b.type?new mm(null,e,v):b),v.abort(),v=null)},a.cancelToken&&a.cancelToken.subscribe(u),a.signal&&(a.signal.aborted?u():a.signal.addEventListener("abort",u)));const x=Tke(a.url);if(x&&ni.protocols.indexOf(x)===-1){n(new ar("Unsupported protocol "+x+":",ar.ERR_BAD_REQUEST,e));return}v.send(i||null)})},jke=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,a;const i=function(c){if(!a){a=!0,s();const u=c instanceof Error?c:this.reason;n.abort(u instanceof ar?u:new mm(u instanceof Error?u.message:u))}};let o=t&&setTimeout(()=>{o=null,i(new ar(`timeout ${t} of ms exceeded`,ar.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=n;return l.unsubscribe=()=>Ke.asap(s),l}},Fke=jke,Lke=function*(e,t){let r=e.byteLength;if(!t||r{const a=Bke(e,t);let i=0,o,s=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await a.next();if(c){s(),l.close();return}let f=u.byteLength;if(r){let m=i+=f;r(m)}l.enqueue(new Uint8Array(u))}catch(c){throw s(c),c}},cancel(l){return s(l),a.return()}},{highWaterMark:2})},Kj=64*1024,{isFunction:cy}=Ke,Hke=(({Request:e,Response:t})=>({Request:e,Response:t}))(Ke.global),{ReadableStream:Gj,TextEncoder:qj}=Ke.global,Xj=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Wke=e=>{e=Ke.merge.call({skipUndefined:!0},Hke,e);const{fetch:t,Request:r,Response:n}=e,a=t?cy(t):typeof fetch=="function",i=cy(r),o=cy(n);if(!a)return!1;const s=a&&cy(Gj),l=a&&(typeof qj=="function"?(p=>g=>p.encode(g))(new qj):async p=>new Uint8Array(await new r(p).arrayBuffer())),c=i&&s&&Xj(()=>{let p=!1;const g=new r(ni.origin,{body:new Gj,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!g}),u=o&&s&&Xj(()=>Ke.isReadableStream(new n("").body)),f={stream:u&&(p=>p.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!f[p]&&(f[p]=(g,v)=>{let y=g&&g[p];if(y)return y.call(g);throw new ar(`Response type '${p}' is not supported`,ar.ERR_NOT_SUPPORT,v)})});const m=async p=>{if(p==null)return 0;if(Ke.isBlob(p))return p.size;if(Ke.isSpecCompliantForm(p))return(await new r(ni.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(Ke.isArrayBufferView(p)||Ke.isArrayBuffer(p))return p.byteLength;if(Ke.isURLSearchParams(p)&&(p=p+""),Ke.isString(p))return(await l(p)).byteLength},h=async(p,g)=>{const v=Ke.toFiniteNumber(p.getContentLength());return v??m(g)};return async p=>{let{url:g,method:v,data:y,signal:x,cancelToken:b,timeout:S,onDownloadProgress:w,onUploadProgress:E,responseType:C,headers:O,withCredentials:_="same-origin",fetchOptions:P}=qK(p),I=t||fetch;C=C?(C+"").toLowerCase():"text";let N=Fke([x,b&&b.toAbortSignal()],S),D=null;const k=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let R;try{if(E&&c&&v!=="get"&&v!=="head"&&(R=await h(O,y))!==0){let K=new r(g,{method:"POST",body:y,duplex:"half"}),L;if(Ke.isFormData(y)&&(L=K.headers.get("content-type"))&&O.setContentType(L),K.body){const[B,W]=Hj(R,h1(Wj(E)));y=Uj(K.body,Kj,B,W)}}Ke.isString(_)||(_=_?"include":"omit");const A=i&&"credentials"in r.prototype,j={...P,signal:N,method:v.toUpperCase(),headers:O.normalize().toJSON(),body:y,duplex:"half",credentials:A?_:void 0};D=i&&new r(g,j);let F=await(i?I(D,P):I(g,j));const M=u&&(C==="stream"||C==="response");if(u&&(w||M&&k)){const K={};["status","statusText","headers"].forEach(z=>{K[z]=F[z]});const L=Ke.toFiniteNumber(F.headers.get("content-length")),[B,W]=w&&Hj(L,h1(Wj(w),!0))||[];F=new n(Uj(F.body,Kj,B,()=>{W&&W(),k&&k()}),K)}C=C||"text";let V=await f[Ke.findKey(f,C)||"text"](F,p);return!M&&k&&k(),await new Promise((K,L)=>{KK(K,L,{data:V,headers:Ss.from(F.headers),status:F.status,statusText:F.statusText,config:p,request:D})})}catch(A){throw k&&k(),A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)?Object.assign(new ar("Network Error",ar.ERR_NETWORK,p,D),{cause:A.cause||A}):ar.from(A,A&&A.code,p,D)}}},Vke=new Map,XK=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:a}=t,i=[n,a,r];let o=i.length,s=o,l,c,u=Vke;for(;s--;)l=i[s],c=u.get(l),c===void 0&&u.set(l,c=s?new Map:Wke(t)),u=c;return c};XK();const CN={http:ike,xhr:Dke,fetch:{get:XK}};Ke.forEach(CN,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Yj=e=>`- ${e}`,Uke=e=>Ke.isFunction(e)||e===null||e===!1;function Kke(e,t){e=Ke.isArray(e)?e:[e];const{length:r}=e;let n,a;const i={};for(let o=0;o`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=r?o.length>1?`since : -`+o.map(Yj).join(` -`):" "+Yj(o[0]):"as no adapter specified";throw new ar("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return a}const YK={getAdapter:Kke,adapters:CN};function iE(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new mm(null,e)}function Qj(e){return iE(e),e.headers=Ss.from(e.headers),e.data=aE.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),YK.getAdapter(e.adapter||wN.adapter,e)(e).then(function(n){return iE(e),n.data=aE.call(e,e.transformResponse,n),n.headers=Ss.from(n.headers),n},function(n){return UK(n)||(iE(e),n&&n.response&&(n.response.data=aE.call(e,e.transformResponse,n.response),n.response.headers=Ss.from(n.response.headers))),Promise.reject(n)})}const QK="1.13.2",aw={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{aw[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Zj={};aw.transitional=function(t,r,n){function a(i,o){return"[Axios v"+QK+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,s)=>{if(t===!1)throw new ar(a(o," has been removed"+(r?" in "+r:"")),ar.ERR_DEPRECATED);return r&&!Zj[o]&&(Zj[o]=!0,console.warn(a(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,o,s):!0}};aw.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function Gke(e,t,r){if(typeof e!="object")throw new ar("options must be an object",ar.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const i=n[a],o=t[i];if(o){const s=e[i],l=s===void 0||o(s,i,e);if(l!==!0)throw new ar("option "+i+" must be "+l,ar.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ar("Unknown option "+i,ar.ERR_BAD_OPTION)}}const hx={assertOptions:Gke,validators:aw},Ds=hx.validators;class p1{constructor(t){this.defaults=t||{},this.interceptors={request:new Bj,response:new Bj}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=` -`+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=xd(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:i}=r;n!==void 0&&hx.assertOptions(n,{silentJSONParsing:Ds.transitional(Ds.boolean),forcedJSONParsing:Ds.transitional(Ds.boolean),clarifyTimeoutError:Ds.transitional(Ds.boolean)},!1),a!=null&&(Ke.isFunction(a)?r.paramsSerializer={serialize:a}:hx.assertOptions(a,{encode:Ds.function,serialize:Ds.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),hx.assertOptions(r,{baseUrl:Ds.spelling("baseURL"),withXsrfToken:Ds.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=i&&Ke.merge(i.common,i[r.method]);i&&Ke.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),r.headers=Ss.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(r)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,f=0,m;if(!l){const p=[Qj.bind(this),void 0];for(p.unshift(...s),p.push(...c),m=p.length,u=Promise.resolve(r);f{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](a);n._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{n.subscribe(s),i=s}).then(a);return o.cancel=function(){n.unsubscribe(i)},o},t(function(i,o,s){n.reason||(n.reason=new mm(i,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new EN(function(a){t=a}),cancel:t}}}const qke=EN;function Xke(e){return function(r){return e.apply(null,r)}}function Yke(e){return Ke.isObject(e)&&e.isAxiosError===!0}const yO={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(yO).forEach(([e,t])=>{yO[t]=e});const Qke=yO;function ZK(e){const t=new px(e),r=IK(px.prototype.request,t);return Ke.extend(r,px.prototype,t,{allOwnKeys:!0}),Ke.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return ZK(xd(e,a))},r}const na=ZK(wN);na.Axios=px;na.CanceledError=mm;na.CancelToken=qke;na.isCancel=UK;na.VERSION=QK;na.toFormData=rw;na.AxiosError=ar;na.Cancel=na.CanceledError;na.all=function(t){return Promise.all(t)};na.spread=Xke;na.isAxiosError=Yke;na.mergeConfig=xd;na.AxiosHeaders=Ss;na.formToJSON=e=>VK(Ke.isHTMLForm(e)?new FormData(e):e);na.getAdapter=YK.getAdapter;na.HttpStatusCode=Qke;na.default=na;const Zke=na,Jke="/api",At=Zke.create({baseURL:Jke,timeout:3e4,headers:{"Content-Type":"application/json"}});At.interceptors.request.use(e=>{if(typeof window<"u"){const t=localStorage.getItem("survey_admin");if(t){const{token:r}=JSON.parse(t);e.headers.Authorization=`Bearer ${r}`}}return e},e=>Promise.reject(e));At.interceptors.response.use(e=>{if(e.config.responseType==="blob")return e.data;const{data:t}=e;if(t.success)return t;throw new Error(t.message||"请求失败")},e=>{var t;return((t=e.response)==null?void 0:t.status)===401&&typeof window<"u"&&(localStorage.removeItem("survey_admin"),window.location.href="/admin/login"),Promise.reject(e)});const Jj={createUser:e=>At.post("/users",e),getUser:e=>At.get(`/users/${e}`),validateUserInfo:e=>At.post("/users/validate",e),getUsersByName:e=>At.get(`/users/name/${e}`)},sc={getQuestions:e=>At.get("/questions",{params:e}),getQuestion:e=>At.get(`/questions/${e}`),createQuestion:e=>At.post("/questions",e),updateQuestion:(e,t)=>At.put(`/questions/${e}`,t),deleteQuestion:e=>At.delete(`/questions/${e}`),importQuestions:e=>{const t=new FormData;return t.append("file",e),At.post("/questions/import",t,{headers:{"Content-Type":"multipart/form-data"}})},importQuestionsFromText:e=>At.post("/questions/import-text",e),exportQuestions:e=>At.get("/questions/export",{params:e,responseType:"blob",headers:{"Content-Type":"application/json"}})},bd={generateQuiz:(e,t,r)=>At.post("/quiz/generate",{userId:e,subjectId:t,taskId:r}),submitQuiz:e=>At.post("/quiz/submit",e),getUserRecords:(e,t)=>At.get(`/quiz/records/${e}`,{params:t}),getRecordDetail:e=>At.get(`/quiz/records/detail/${e}`),getAllRecords:e=>At.get("/quiz/records",{params:e})},eRe={getSubjects:()=>At.get("/exam-subjects")},tRe={getTasks:()=>At.get("/exam-tasks"),getUserTasks:e=>At.get(`/exam-tasks/user/${e}`)},qs={login:e=>At.post("/admin/login",e),getQuizConfig:()=>At.get("/admin/config"),updateQuizConfig:e=>At.put("/admin/config",e),getStatistics:()=>At.get("/admin/statistics"),getActiveTasksStats:()=>At.get("/admin/active-tasks"),getDashboardOverview:()=>At.get("/admin/dashboard/overview"),getHistoryTaskStats:e=>At.get("/admin/tasks/history-stats",{params:e}),getUpcomingTaskStats:e=>At.get("/admin/tasks/upcoming-stats",{params:e}),getAllTaskStats:e=>At.get("/admin/tasks/all-stats",{params:e}),getUserStats:()=>At.get("/admin/statistics/users"),getSubjectStats:()=>At.get("/admin/statistics/subjects"),getTaskStats:()=>At.get("/admin/statistics/tasks"),updatePassword:e=>At.put("/admin/password",e)},Wu={getAll:()=>At.get("/admin/user-groups"),create:e=>At.post("/admin/user-groups",e),update:(e,t)=>At.put(`/admin/user-groups/${e}`,t),delete:e=>At.delete(`/admin/user-groups/${e}`),getMembers:e=>At.get(`/admin/user-groups/${e}/members`)},rRe=e=>!e||e.trim().length===0?{valid:!1,message:"请输入姓名"}:e.length<2||e.length>20?{valid:!1,message:"姓名长度必须在2-20个字符之间"}:/^[\u4e00-\u9fa5a-zA-Z\s]+$/.test(e)?{valid:!0,message:""}:{valid:!1,message:"姓名只能包含中文、英文和空格"},nRe=e=>!e||e.trim().length===0?{valid:!1,message:"请输入手机号"}:/^1[3-9]\d{9}$/.test(e)?{valid:!0,message:""}:{valid:!1,message:"请输入正确的中国手机号"},aRe=(e,t)=>{const r=rRe(e),n=nRe(t);return{valid:r.valid&&n.valid,nameError:r.message,phoneError:n.message}},iRe=e=>/([zZ]|[+-]\d{2}:?\d{2})$/.test(e.trim()),oRe=e=>{const t=e.trim();if(iRe(t))return t;if(/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}(:\d{2})?$/.test(t)){const r=t.replace(" ","T");return r.length===16?`${r}:00Z`:`${r}Z`}return/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d{1,3})?)?$/.test(t)?`${t}Z`:/^\d{4}-\d{2}-\d{2}$/.test(t)?`${t}T00:00:00Z`:t},hs=e=>{if(!e)return null;const t=oRe(String(e)),r=new Date(t);return Number.isNaN(r.getTime())?null:r},si=(e,t)=>{const r=hs(e);return r?t!=null&&t.dateOnly?r.toLocaleDateString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit"}):r.toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",...t!=null&&t.includeSeconds?{second:"2-digit"}:null}):e},Ou=e=>si(e,{dateOnly:!0}),v1={single:"单选题",multiple:"多选题",judgment:"判断题",text:"文字描述题"},sRe={single:"blue",multiple:"green",judgment:"orange",text:"purple"},iw="/assets/主要LOGO-b9927500.svg",{Header:lRe,Content:cRe,Footer:uRe}=Rl,{Title:dRe}=US,fRe=()=>{const e=Xo(),{setUser:t}=Av(),[r]=Ht.useForm(),[n,a]=d.useState(!1),[i,o]=d.useState([]),[s,l]=d.useState(!1);d.useEffect(()=>{const h=JSON.parse(localStorage.getItem("loginHistory")||"[]");o(h.map(p=>({value:p.name,label:p.name,phone:p.phone})))},[]);const c=(h,p)=>{const v=JSON.parse(localStorage.getItem("loginHistory")||"[]").filter(x=>x.name!==h);v.unshift({name:h,phone:p});const y=v.slice(0,5);localStorage.setItem("loginHistory",JSON.stringify(y)),o(y.map(x=>({value:x.name,label:x.name,phone:x.phone})))},u=(h,p)=>{p.phone&&r.setFieldsValue({phone:p.phone})},f=async h=>{if(!h)return;const p=i.find(g=>g.value===h);if(p&&p.phone){r.setFieldsValue({phone:p.phone});return}try{l(!0);const g=await Jj.getUsersByName(h);if(g.success&&g.data&&g.data.length>0){const v=g.data[0];v&&v.phone&&(r.setFieldsValue({phone:v.phone}),c(h,v.phone))}}catch(g){console.error("查询用户失败:",g)}finally{l(!1)}},m=async h=>{try{a(!0);const p=aRe(h.name,h.phone);if(!p.valid){ut.error(p.nameError||p.phoneError);return}const g=await Jj.validateUserInfo(h);g.success&&(t(g.data),c(h.name,h.phone),ut.success("登录成功,请选择考试科目"),setTimeout(()=>{e("/subjects")},1e3))}catch(p){ut.error(p.message||"登录失败")}finally{a(!1)}};return T.jsxs(Rl,{className:"min-h-screen bg-gray-50",children:[T.jsx(lRe,{className:"bg-white shadow-sm flex items-center px-4 h-12 sticky top-0 z-10",children:T.jsx("img",{src:iw,alt:"主要LOGO",style:{width:"120px",height:"48px"}})}),T.jsx(cRe,{className:"flex items-center justify-center p-2 bg-gradient-to-br from-mars-50 to-white",children:T.jsx("div",{className:"w-full max-w-md",children:T.jsxs(_r,{className:"shadow-xl border-t-4 border-t-mars-500 p-2",children:[T.jsxs("div",{className:"text-center mb-3",children:[T.jsx(dRe,{level:2,className:"text-mars-600 !mb-0.5 !text-lg",children:"宝来威考试平台"}),T.jsx("p",{className:"text-gray-500 text-xs",children:"请填写您的基本信息开始答题"})]}),T.jsxs(Ht,{form:r,layout:"vertical",onFinish:m,autoComplete:"off",children:[T.jsx(Ht.Item,{label:"姓名",name:"name",rules:[{required:!0,message:"请输入姓名"},{min:2,max:20,message:"姓名长度必须在2-20个字符之间"},{pattern:/^[\u4e00-\u9fa5a-zA-Z\s]+$/,message:"姓名只能包含中文、英文和空格"}],className:"mb-2",children:T.jsx(Zhe,{options:i,onSelect:u,onChange:f,placeholder:"请输入您的姓名",filterOption:(h,p)=>p.value.toUpperCase().indexOf(h.toUpperCase())!==-1})}),T.jsx(Ht.Item,{label:"手机号",name:"phone",rules:[{required:!0,message:"请输入手机号"},{pattern:/^1[3-9]\d{9}$/,message:"请输入正确的中国手机号"}],className:"mb-2",children:T.jsx(Ia,{placeholder:"请输入11位手机号",maxLength:11})}),T.jsx(Ht.Item,{label:"登录密码",name:"password",rules:[{required:!0,message:"请输入登录密码"}],className:"mb-2",children:T.jsx(Ia.Password,{placeholder:"请输入登录密码",autoComplete:"new-password",visibilityToggle:!0})}),T.jsx(Ht.Item,{className:"mb-2 mt-3",children:T.jsx(kt,{type:"primary",htmlType:"submit",loading:n,block:!0,className:"bg-mars-500 hover:!bg-mars-600 border-none shadow-md h-9 text-sm font-medium",children:"开始答题"})})]}),T.jsx("div",{className:"mt-3 text-center",children:T.jsx("a",{href:"/admin/login",className:"text-mars-600 hover:text-mars-800 text-xs transition-colors",children:"管理员登录"})})]})})}),T.jsx(uRe,{className:"bg-white border-t border-gray-100 py-1.5 px-2 flex flex-col md:flex-row justify-center items-center text-gray-400 text-xs",children:T.jsxs("div",{className:"mb-2 md:mb-0 whitespace-nowrap",children:["© ",new Date().getFullYear()," Boonlive OA System. All Rights Reserved."]})})]})},mRe=e=>{const t=e.minDistancePx??60,r=e.maxDurationMs??600,n=e.minHorizontalDominanceRatio??1.2;if(!Number.isFinite(e.startX)||!Number.isFinite(e.startY)||!Number.isFinite(e.endX)||!Number.isFinite(e.endY)||!Number.isFinite(e.elapsedMs)||e.elapsedMs<0||e.elapsedMs>r)return null;const a=e.endX-e.startX,i=e.endY-e.startY,o=Math.abs(a),s=Math.abs(i);return oT.jsxs(Rl,{className:"min-h-screen bg-gray-50",children:[T.jsx(hRe,{className:"bg-white shadow-sm flex items-center px-6 h-16 sticky top-0 z-10",children:T.jsx("img",{src:iw,alt:"主要LOGO",style:{width:"180px",height:"72px"}})}),T.jsx(pRe,{className:"flex flex-col",children:T.jsx("div",{className:"flex-1 p-4 md:p-8 bg-gradient-to-br from-mars-50/30 to-white",children:e})}),T.jsx(vRe,{className:"bg-white border-t border-gray-100 py-3 px-2 flex flex-col md:flex-row justify-center items-center text-gray-400 text-sm",children:T.jsxs("div",{className:"md:mb-0 whitespace-nowrap",children:["© ",new Date().getFullYear()," Boonlive OA System. All Rights Reserved."]})})]});var gRe={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"};const yRe=gRe;var xRe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:yRe}))},bRe=d.forwardRef(xRe);const SRe=bRe;var wRe={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"};const CRe=wRe;var ERe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:CRe}))},$Re=d.forwardRef(ERe);const _Re=$Re;var ORe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z"}}]},name:"bar-chart",theme:"outlined"};const TRe=ORe;var PRe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:TRe}))},IRe=d.forwardRef(PRe);const NRe=IRe;var kRe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"};const RRe=kRe;var ARe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:RRe}))},MRe=d.forwardRef(ARe);const wc=MRe;var DRe={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"};const jRe=DRe;var FRe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:jRe}))},LRe=d.forwardRef(FRe);const BRe=LRe;var zRe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"};const HRe=zRe;var WRe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:HRe}))},VRe=d.forwardRef(WRe);const JK=VRe;var URe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"};const KRe=URe;var GRe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:KRe}))},qRe=d.forwardRef(GRe);const XRe=qRe;var YRe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"};const QRe=YRe;var ZRe=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:QRe}))},JRe=d.forwardRef(ZRe);const eG=JRe;var e4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.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 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"};const t4e=e4e;var r4e=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:t4e}))},n4e=d.forwardRef(r4e);const a4e=n4e;var i4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"};const o4e=i4e;var s4e=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:o4e}))},l4e=d.forwardRef(s4e);const c4e=l4e;var u4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"};const d4e=u4e;var f4e=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:d4e}))},m4e=d.forwardRef(f4e);const h4e=m4e;var p4e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64L128 192v384c0 212.1 171.9 384 384 384s384-171.9 384-384V192L512 64zm312 512c0 172.3-139.7 312-312 312S200 748.3 200 576V246l312-110 312 110v330z"}},{tag:"path",attrs:{d:"M378.4 475.1a35.91 35.91 0 00-50.9 0 35.91 35.91 0 000 50.9l129.4 129.4 2.1 2.1a33.98 33.98 0 0048.1 0L730.6 434a33.98 33.98 0 000-48.1l-2.8-2.8a33.98 33.98 0 00-48.1 0L483 579.7 378.4 475.1z"}}]},name:"safety",theme:"outlined"};const v4e=p4e;var g4e=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:v4e}))},y4e=d.forwardRef(g4e);const x4e=y4e;var b4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M824.2 699.9a301.55 301.55 0 00-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 01612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 008-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 01612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z"}}]},name:"team",theme:"outlined"};const S4e=b4e;var w4e=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:S4e}))},C4e=d.forwardRef(w4e);const $N=C4e;var E4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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:"upload",theme:"outlined"};const $4e=E4e;var _4e=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:$4e}))},O4e=d.forwardRef(_4e);const tG=O4e;var T4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};const P4e=T4e;var I4e=function(t,r){return d.createElement(Wt,Oe({},t,{ref:r,icon:P4e}))},N4e=d.forwardRef(I4e);const k4e=N4e,R4e=({current:e,total:t,timeLeft:r,onGiveUp:n,taskName:a})=>{Xo();const i=o=>{const s=Math.floor(o/60),l=o%60;return`${s.toString().padStart(2,"0")}:${l.toString().padStart(2,"0")}`};return T.jsxs("div",{className:"bg-[#00897B] text-white px-2 h-10 flex items-center justify-between shadow-md sticky top-0 z-30",children:[T.jsxs("div",{className:"flex items-center gap-1",onClick:n,children:[T.jsx(vd,{className:"text-sm"}),T.jsx("span",{className:"text-xs",children:"返回"})]}),T.jsx("div",{className:"flex items-center gap-1 bg-[#00796B] px-1.5 py-0.5 rounded-full text-xs",children:T.jsx("span",{children:a||"监控中"})}),T.jsxs("div",{className:"flex items-center gap-1 text-xs font-medium tabular-nums",children:[T.jsx(Nh,{}),T.jsx("span",{children:r!==null?i(r):"--:--"})]})]})},A4e=({current:e,total:t})=>{const r=Math.round(e/t*100);return T.jsx("div",{className:"bg-white px-2 py-1.5 border-b border-gray-100",children:T.jsxs("div",{className:"flex items-center gap-2",children:[T.jsxs("span",{className:"text-gray-500 text-xs",children:[T.jsx("span",{className:"text-gray-900 text-sm font-medium",children:e}),"/",t]}),T.jsx(Sc,{percent:r,showInfo:!1,strokeColor:"#00897B",trailColor:"#E0F2F1",size:"small",className:"m-0 flex-1"})]})})},{TextArea:M4e}=Ia,D4e=({type:e,options:t,value:r,onChange:n,disabled:a})=>{const i=c=>String.fromCharCode(65+c),o=c=>Array.isArray(r)?r.includes(c):r===c,s=c=>{if(!a)if(e==="multiple"){const u=Array.isArray(r)?r:[],f=u.includes(c)?u.filter(m=>m!==c):[...u,c];n(f)}else n(c)};if(e==="text")return T.jsx("div",{className:"mt-3",children:T.jsx(M4e,{rows:4,value:r||"",onChange:c=>n(c.target.value),placeholder:"请输入您的答案...",disabled:a,className:"rounded-lg border-gray-300 focus:border-[#00897B] focus:ring-[#00897B] text-xs p-2"})});const l=()=>e==="judgment"?["正确","错误"].map((c,u)=>({label:c,value:c,key:u})):(t||[]).map((c,u)=>({label:c,value:c,key:u}));return T.jsx("div",{className:"space-y-1.5 mt-2",children:l().map((c,u)=>{const f=o(c.value);return T.jsxs("div",{onClick:()=>s(c.value),className:` - relative flex items-center p-1.5 rounded-xl border-2 transition-all duration-200 active:scale-[0.99] cursor-pointer - ${f?"border-[#00897B] bg-[#E0F2F1]":"border-transparent bg-white shadow-sm hover:border-gray-200"} - `,children:[T.jsx("div",{className:` - flex-shrink-0 w-5 h-5 rounded-full flex items-center justify-center text-xs font-medium border mr-1.5 transition-colors - ${f?"bg-[#00897B] border-[#00897B] text-white":"bg-white border-gray-300 text-gray-500"} - `,children:e==="judgment"?u===0?"T":"F":i(u)}),T.jsx("div",{className:`text-xs leading-tight select-none ${f?"text-[#00695C] font-medium":"text-gray-700"}`,children:c.label})]},c.key)})})},j4e=({current:e,total:t,onPrev:r,onNext:n,onSubmit:a,onOpenSheet:i,answeredCount:o})=>{const s=e===0,l=e===t-1;return T.jsx("div",{className:"fixed bottom-0 left-0 right-0 bg-white border-t border-gray-100 px-2 py-1.5 safe-area-bottom z-30 shadow-[0_-2px_10px_rgba(0,0,0,0.05)]",children:T.jsxs("div",{className:"max-w-md mx-auto flex items-center justify-between",children:[T.jsx(kt,{type:"text",icon:T.jsx(vd,{}),onClick:r,disabled:s,className:`flex items-center text-gray-600 hover:text-[#00897B] text-xs ${s?"opacity-30":""}`,children:"上一题"}),T.jsxs("div",{onClick:i,className:"flex flex-col items-center justify-center -mt-4 bg-white rounded-full h-11 w-11 shadow-lg border border-gray-100 cursor-pointer active:scale-95 transition-transform",children:[T.jsx(SRe,{className:"text-sm text-[#00897B] mb-0.5"}),T.jsxs("span",{className:"text-[10px] text-gray-500 scale-90",children:[o,"/",t]})]}),l?T.jsxs(kt,{type:"text",onClick:a,className:"flex items-center text-[#00897B] font-medium hover:bg-teal-50 text-xs",children:["提交 ",T.jsx(md,{})]}):T.jsxs(kt,{type:"text",onClick:n,className:"flex items-center text-gray-600 hover:text-[#00897B] text-xs",children:["下一题 ",T.jsx(md,{})]})]})})},F4e=()=>{const e=Xo(),t=H0(),{user:r}=Av(),{questions:n,setQuestions:a,currentQuestionIndex:i,setCurrentQuestionIndex:o,answers:s,setAnswer:l,setAnswers:c,clearQuiz:u}=xNe(),[f,m]=d.useState(!1),[h,p]=d.useState(!1),[g,v]=d.useState(!1),[y,x]=d.useState(null),[b,S]=d.useState(null),[w,E]=d.useState(""),[C,O]=d.useState(""),[_,P]=d.useState(""),I=d.useRef(0),N=d.useRef(null),[D,k]=d.useState("next"),[R,A]=d.useState(!1),j=d.useRef(null),F=d.useRef(null);d.useEffect(()=>{const te=F.current;te&&te.focus()},[i]),d.useEffect(()=>{const te=re=>{var pe;if(re.defaultPrevented)return;const q=document.activeElement,ne=((q==null?void 0:q.tagName)||"").toLowerCase(),he=ne==="input"?((q==null?void 0:q.type)||"").toLowerCase():"",ye=ne==="input"?he===""||he==="text"||he==="search"||he==="tel"||he==="url"||he==="email"||he==="password"||he==="number":!1;if(!(ne==="textarea"||(q==null?void 0:q.getAttribute("role"))==="textbox"||q!=null&&q.classList.contains("ant-input")||(pe=q==null?void 0:q.closest)!=null&&pe.call(q,".ant-input")||ye||q!=null&&q.isContentEditable)){if(re.key==="ArrowLeft"){re.preventDefault(),W();return}if(re.key==="ArrowRight"){re.preventDefault(),B();return}re.key==="Escape"&&g&&(re.preventDefault(),v(!1))}};return window.addEventListener("keydown",te),()=>window.removeEventListener("keydown",te)},[g,i,n.length]),d.useEffect(()=>{if(!r){ut.warning("请先填写个人信息"),e("/");return}const te=t.state;if(u(),te!=null&&te.questions){const q=te.subjectId||"",ne=te.taskId||"",he=te.taskName||"",ye=te.timeLimit||60;a(te.questions),c({}),o(0),S(ye),x(ye*60),E(q),O(ne),P(he);const xe=eF(r.id,q,ne);tF(r.id,xe),uy(xe,{questions:te.questions,answers:{},currentQuestionIndex:0,timeLeftSeconds:ye*60,timeLimitMinutes:ye,subjectId:q,taskId:ne});return}const re=z4e(r.id);if(re){a(re.questions),c(re.answers),o(re.currentQuestionIndex),S(re.timeLimitMinutes),x(re.timeLeftSeconds),E(re.subjectId),O(re.taskId);return}M()},[r,e,t]),d.useEffect(()=>{if(y===null||y<=0)return;const te=setInterval(()=>{x(re=>re===null||re<=1?(clearInterval(te),V(),0):re-1)},1e3);return()=>clearInterval(te)},[y]);const M=async()=>{try{m(!0);const te=await bd.generateQuiz(r.id);a(te.data.questions),o(0),c({}),S(60),x(60*60),E(""),O("");const re=eF(r.id,"","");tF(r.id,re),uy(re,{questions:te.data.questions,answers:{},currentQuestionIndex:0,timeLeftSeconds:60*60,timeLimitMinutes:60,subjectId:"",taskId:""})}catch(te){ut.error(te.message||"生成试卷失败")}finally{m(!1)}},V=()=>{ut.warning("考试时间已到,将自动提交答案"),setTimeout(()=>{X(!0)},1e3)},K=te=>{switch(te){case"single":return"bg-orange-100 text-orange-800 border-orange-200";case"multiple":return"bg-blue-100 text-blue-800 border-blue-200";case"judgment":return"bg-purple-100 text-purple-800 border-purple-200";case"text":return"bg-green-100 text-green-800 border-green-200";default:return"bg-gray-100 text-gray-800 border-gray-200"}},L=(te,re)=>{l(te,re)};d.useEffect(()=>{if(r&&n.length&&y!==null)return N.current!==null&&window.clearTimeout(N.current),N.current=window.setTimeout(()=>{const te=g1(r.id);te&&(uy(te,{questions:n,answers:s,currentQuestionIndex:i,timeLeftSeconds:y,timeLimitMinutes:b||60,subjectId:w,taskId:C}),N.current=null)},300),()=>{N.current!==null&&(window.clearTimeout(N.current),N.current=null)}},[r,n,s,i,w,C,y,b]),d.useEffect(()=>{if(!r||!n.length||y===null)return;const te=Date.now();if(te-I.current<5e3)return;I.current=te;const re=g1(r.id);re&&uy(re,{questions:n,answers:s,currentQuestionIndex:i,timeLeftSeconds:y,timeLimitMinutes:b||60,subjectId:w,taskId:C})},[r,n.length,y]);const B=()=>{i{i>0&&(k("prev"),o(i-1))},z=te=>{te<0||te>=n.length||te!==i&&(k(te>i?"next":"prev"),o(te))},U=()=>{const te=n.findIndex(re=>!s[re.id]);te!==-1&&z(te),v(!1)},X=async(te=!1)=>{try{if(p(!0),!te){const ye=n.filter(xe=>!s[xe.id]);if(ye.length>0){ut.warning(`还有 ${ye.length} 道题未作答`);return}}const re=n.map(ye=>{const xe=G(ye,s[ye.id]);return{questionId:ye.id,userAnswer:s[ye.id],score:xe?ye.score:0,isCorrect:xe}}),q=await bd.submitQuiz({userId:r.id,subjectId:w||void 0,taskId:C||void 0,answers:re}),ne=(q==null?void 0:q.data)??q,he=ne==null?void 0:ne.recordId;if(!he)throw new Error("提交成功但未返回记录ID");ut.success("答题提交成功!"),rF(r.id),e(`/result/${he}`)}catch(re){ut.error(re.message||"提交失败")}finally{p(!1)}},Y=()=>{r&&Ci.confirm({title:"确认弃考?",content:"弃考将清空本次答题进度与计时信息,且不计入考试次数。",okText:"确认弃考",cancelText:"继续答题",okButtonProps:{danger:!0},onOk:()=>{rF(r.id),u(),e("/tasks")}})},G=(te,re)=>{if(!re)return!1;if(te.type==="multiple"){const q=Array.isArray(te.answer)?te.answer:[te.answer],ne=Array.isArray(re)?re:[re];return q.length===ne.length&&q.every(he=>ne.includes(he))}else return re===te.answer},Q=d.useMemo(()=>n.reduce((te,re)=>s[re.id]?te+1:te,0),[n,s]);if(d.useEffect(()=>{if(!n.length)return;A(!1);const te=requestAnimationFrame(()=>A(!0));return()=>cancelAnimationFrame(te)},[i,n.length]),f||!n.length)return T.jsx(Fc,{children:T.jsx("div",{className:"flex items-center justify-center h-full min-h-[500px]",children:T.jsxs("div",{className:"text-center",children:[T.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-mars-600 mx-auto mb-4"}),T.jsx("p",{className:"text-gray-700",children:"正在生成试卷..."})]})})});const ee=n[i],H=te=>{if(te.touches.length!==1)return;const re=te.target;if(re!=null&&re.closest('textarea,input,[role="textbox"],.ant-input,.ant-checkbox-wrapper,.ant-radio-wrapper'))return;const q=te.touches[0];j.current={x:q.clientX,y:q.clientY,time:Date.now()}},fe=te=>{const re=j.current;if(j.current=null,!re)return;const q=te.changedTouches[0];if(!q)return;const ne=mRe({startX:re.x,startY:re.y,endX:q.clientX,endY:q.clientY,elapsedMs:Date.now()-re.time});if(ne==="left"){B();return}ne==="right"&&W()};return T.jsxs("div",{className:"min-h-screen bg-gray-50 flex flex-col",children:[T.jsx(R4e,{current:i+1,total:n.length,timeLeft:y,onGiveUp:Y,taskName:_}),T.jsx(A4e,{current:i+1,total:n.length}),T.jsx("div",{className:"flex-1 overflow-y-auto pb-24 safe-area-bottom",children:T.jsx("div",{className:"max-w-md mx-auto px-4",children:T.jsx("div",{onTouchStart:H,onTouchEnd:fe,className:` - transition-all duration-300 ease-out - ${R?"opacity-100 translate-x-0":D==="next"?"opacity-0 translate-x-4":"opacity-0 -translate-x-4"} - `,children:T.jsxs("div",{className:"bg-white rounded-xl shadow-sm border border-gray-100 p-2 min-h-[280px]",children:[T.jsxs("div",{className:"mb-2",children:[T.jsx("span",{className:`inline-block px-1 py-0.5 rounded-md text-xs font-medium border ${K(ee.type)}`,children:v1[ee.type]}),ee.category&&T.jsx("span",{className:"ml-2 inline-block px-1 py-0.5 bg-gray-50 text-gray-600 text-xs rounded border border-gray-100",children:ee.category})]}),T.jsx("h2",{ref:F,tabIndex:-1,className:"text-sm font-medium text-gray-900 leading-tight mb-3 outline-none",children:ee.content}),T.jsx(D4e,{type:ee.type,options:ee.options,value:s[ee.id],onChange:te=>L(ee.id,te)})]})})})}),T.jsx(j4e,{current:i,total:n.length,onPrev:W,onNext:B,onSubmit:()=>X(),onOpenSheet:()=>v(!0),answeredCount:Q}),T.jsxs(Ci,{title:"答题卡",open:g,onCancel:()=>v(!1),footer:null,centered:!0,width:340,destroyOnClose:!0,children:[T.jsxs("div",{className:"flex items-center justify-between mb-3",children:[T.jsxs("div",{className:"text-xs text-gray-700",children:["已答 ",T.jsx("span",{className:"text-[#00897B] font-medium",children:Q})," / ",n.length]}),T.jsx(kt,{type:"primary",onClick:U,className:"bg-[#00897B] hover:bg-[#00796B] text-xs h-7 px-3",children:"回到当前题"})]}),T.jsx("div",{className:"grid grid-cols-5 gap-2",children:n.map((te,re)=>{const q=re===i,ne=!!s[te.id];let he="h-9 w-9 rounded-full flex items-center justify-center text-xs font-medium border transition-colors ";return q?he+="border-[#00897B] bg-[#E0F2F1] text-[#00695C]":ne?he+="border-[#00897B] bg-[#00897B] text-white":he+="border-gray-200 text-gray-600 bg-white hover:border-[#00897B]",T.jsx("button",{type:"button",className:he,onClick:()=>{v(!1),z(re)},"aria-label":`跳转到第 ${re+1} 题`,children:re+1},te.id)})})]})]})},_N="quiz_progress_active_v1:",L4e="quiz_progress_v1:",eF=(e,t,r)=>{const n=r?`task:${r}`:`subject:${t||"none"}`;return`${L4e}${e}:${n}`},tF=(e,t)=>{localStorage.setItem(`${_N}${e}`,t)},B4e=e=>{localStorage.removeItem(`${_N}${e}`)},g1=e=>localStorage.getItem(`${_N}${e}`)||"",uy=(e,t)=>{const r={...t,savedAt:new Date().toISOString()};localStorage.setItem(e,JSON.stringify(r))},z4e=e=>{const t=g1(e);if(!t)return null;const r=localStorage.getItem(t);if(!r)return null;try{const n=JSON.parse(r);return!n||!Array.isArray(n.questions)||!n.answers||typeof n.answers!="object"||typeof n.currentQuestionIndex!="number"||typeof n.timeLeftSeconds!="number"||typeof n.timeLimitMinutes!="number"||typeof n.subjectId!="string"||typeof n.taskId!="string"?null:n}catch{return null}},rF=e=>{const t=g1(e);t&&localStorage.removeItem(t),B4e(e)},{Item:hf}=fU,H4e=({status:e})=>{const t=e==="优秀"?"text-green-500":e==="合格"?"text-blue-500":"text-red-500",r=()=>e==="优秀"?T.jsx("path",{d:"M12 3.6l2.63 5.33 5.89.86-4.26 4.15 1.01 5.86L12 17.69 6.73 19.8l1.01-5.86-4.26-4.15 5.89-.86L12 3.6z",fill:"currentColor",stroke:"none",className:"text-yellow-500"}):e==="合格"?T.jsx("path",{d:"M7.5 12.2l3 3L16.8 9"}):T.jsxs(T.Fragment,{children:[T.jsx("path",{d:"M12 7v6"}),T.jsx("path",{d:"M12 16.8h.01"})]});return T.jsxs("svg",{viewBox:"0 0 24 24",width:"32",height:"32",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:t,children:[T.jsx("circle",{cx:"12",cy:"12",r:"10"}),r()]})},W4e=()=>{const{id:e}=gne(),t=Xo();Av();const[r,n]=d.useState(null),[a,i]=d.useState([]),[o,s]=d.useState(!0);d.useEffect(()=>{if(!e){ut.error("无效的记录ID"),t("/");return}l()},[e,t]);const l=async()=>{try{s(!0);const v=await bd.getRecordDetail(e),y=(v==null?void 0:v.data)??v;n((y==null?void 0:y.record)??null),i(Array.isArray(y==null?void 0:y.answers)?y.answers:[])}catch(v){ut.error(v.message||"获取答题结果失败"),n(null),i([])}finally{s(!1)}},c=()=>{t("/tasks")},u=v=>{switch(v){case"single":return"bg-blue-100 text-blue-800";case"multiple":return"bg-purple-100 text-purple-800";case"judgment":return"bg-orange-100 text-orange-800";case"text":return"bg-green-100 text-green-800";default:return"bg-gray-100 text-gray-800"}},f=v=>{if(!v)return[];if(Array.isArray(v))return v;try{const y=JSON.parse(v);return Array.isArray(y)?y:[v]}catch{return[v]}},m=v=>{const y=f(v.userAnswer),x=f(v.correctAnswer),b=new Set(x);return v.questionType==="multiple"?T.jsx("span",{className:"font-medium",children:y.map((S,w)=>{const E=!b.has(S);return T.jsxs("span",{className:E?"text-red-600":"text-gray-800",children:[w>0&&", ",S]},w)})}):T.jsx("span",{className:v.isCorrect?"text-green-600 font-medium":"text-red-600 font-medium",children:Array.isArray(v.userAnswer)?v.userAnswer.join(", "):v.userAnswer})},h=v=>{const y=f(v.userAnswer),x=f(v.correctAnswer),b=new Set(y);return v.questionType==="multiple"?T.jsx("span",{className:"font-medium",children:x.map((S,w)=>{const E=!b.has(S);return T.jsxs("span",{className:E?"text-red-600":"text-green-600",children:[w>0&&", ",S]},w)})}):T.jsx("span",{className:"text-green-600 font-medium",children:Array.isArray(v.correctAnswer)?v.correctAnswer.join(", "):v.correctAnswer||"未知"})};if(o)return T.jsx(Fc,{children:T.jsx("div",{className:"flex justify-center items-center h-full min-h-[400px]",children:T.jsxs("div",{className:"text-center",children:[T.jsx("div",{className:"animate-spin rounded-full h-10 w-10 border-b-2 border-mars-600 mx-auto mb-3"}),T.jsx("p",{className:"text-gray-600 text-sm",children:"正在加载答题结果..."})]})})});if(!r)return T.jsx(Fc,{children:T.jsx("div",{className:"flex justify-center items-center h-full min-h-[400px]",children:T.jsxs("div",{className:"text-center",children:[T.jsx("p",{className:"text-gray-600 mb-4 text-sm",children:"答题记录不存在"}),T.jsx(kt,{type:"primary",onClick:c,className:"bg-mars-500 hover:bg-mars-600 text-sm",children:"返回首页"})]})})});const p=(r.correctCount/r.totalCount*100).toFixed(1),g=v=>{switch(v){case"不及格":return"bg-red-100 text-red-800 border-red-200";case"合格":return"bg-blue-100 text-blue-800 border-blue-200";case"优秀":return"bg-green-100 text-green-800 border-green-200";default:return"bg-gray-100 text-gray-800 border-gray-200"}};return T.jsx(Fc,{children:T.jsxs("div",{className:"max-w-md mx-auto px-4",children:[T.jsx(_r,{className:"shadow-lg mb-6 rounded-xl border-t-4 border-t-mars-500",bodyStyle:{padding:"12px"},children:T.jsxs("div",{className:"flex items-start gap-3",children:[T.jsx("div",{className:"flex-shrink-0 mt-0.5",children:T.jsx(H4e,{status:r.status})}),T.jsxs("div",{className:"flex-1 min-w-0",children:[T.jsxs("div",{className:"text-sm font-semibold text-gray-800 mb-0.5",children:["答题完成!您的得分是 ",r.totalScore," 分"]}),T.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[T.jsx("span",{className:`px-2 py-0.5 rounded text-xs font-medium border ${g(r.status)}`,children:r.status}),T.jsxs("span",{className:"text-xs text-gray-600",children:["正确率 ",p,"% (",r.correctCount,"/",r.totalCount,")"]})]}),T.jsx(kt,{type:"primary",onClick:c,className:"bg-mars-500 hover:bg-mars-600 border-none px-4 h-7 text-xs",children:"返回答题记录"})]})]})}),T.jsxs(_r,{className:"shadow-lg mb-6 rounded-xl",bodyStyle:{padding:"12px"},children:[T.jsx("h3",{className:"text-sm font-semibold mb-2 text-gray-800 border-l-4 border-mars-500 pl-3",children:"答题信息"}),T.jsxs(fU,{bordered:!0,column:1,size:"small",className:"text-xs",children:[T.jsx(hf,{label:"答题时间",children:si(r.createdAt)}),T.jsxs(hf,{label:"总题数",children:[r.totalCount," 题"]}),T.jsxs(hf,{label:"正确数",children:[r.correctCount," 题"]}),T.jsxs(hf,{label:"总得分",children:[r.totalScore," 分"]}),T.jsxs(hf,{label:"得分占比",children:[r.scorePercentage.toFixed(1),"%"]}),T.jsx(hf,{label:"考试状态",children:r.status})]})]}),T.jsxs(_r,{className:"shadow-lg rounded-xl",children:[T.jsx("h3",{className:"text-base font-semibold mb-3 text-gray-800 border-l-4 border-mars-500 pl-3",children:"答案详情"}),T.jsx("div",{className:"space-y-3",children:a.map((v,y)=>T.jsxs("div",{className:`p-3 rounded-lg border ${v.isCorrect?"border-green-200 bg-green-50/50":"border-red-200 bg-red-50/50"}`,children:[T.jsxs("div",{className:"flex justify-between items-start mb-1.5",children:[T.jsxs("div",{className:"flex items-center gap-1.5",children:[T.jsxs("span",{className:"font-medium text-gray-800 text-sm",children:["第 ",y+1," 题"]}),T.jsx("span",{className:`${u(v.questionType||"")} px-1.5 py-0.5 rounded text-xs`,children:v.questionType==="single"?"单选题":v.questionType==="multiple"?"多选题":v.questionType==="judgment"?"判断题":"简答题"})]}),T.jsx("span",{className:`px-1.5 py-0.5 rounded text-xs ${v.isCorrect?"bg-green-100 text-green-800":"bg-red-100 text-red-800"}`,children:v.isCorrect?"正确":"错误"})]}),T.jsxs("div",{className:"mb-1.5",children:[T.jsx("span",{className:"text-gray-600 text-xs",children:"题目:"}),T.jsx("span",{className:"text-gray-800 font-medium text-sm",children:v.questionContent||"题目内容加载失败"})]}),T.jsxs("div",{className:"mb-1.5",children:[T.jsx("span",{className:"text-gray-600 text-xs",children:"您的答案:"}),m(v)]}),!v.isCorrect&&T.jsxs("div",{className:"mb-1.5",children:[T.jsx("span",{className:"text-gray-600 text-xs",children:"正确答案:"}),h(v)]}),String(v.questionAnalysis??"").trim()?T.jsxs("div",{className:"mb-1.5",children:[T.jsx("span",{className:"text-gray-600 text-xs",children:"解析:"}),T.jsx("span",{className:"text-gray-800 whitespace-pre-wrap text-sm",children:v.questionAnalysis})]}):null,T.jsx("div",{className:"mb-1 pt-1.5 border-t border-gray-100 mt-1.5",children:T.jsxs("span",{className:"text-gray-500 text-xs",children:["本题分值:",v.questionScore||0," 分,你的得分:",T.jsx("span",{className:"font-medium text-gray-800",children:v.score})," 分"]})})]},v.id))})]})]})})},{Title:dy,Text:kn}=US,V4e=()=>{const[e,t]=d.useState([]),[r,n]=d.useState([]),[a,i]=d.useState(!0),o=Xo(),{user:s}=Av();d.useEffect(()=>{if(!(s!=null&&s.id)){ut.warning("请先填写个人信息"),o("/");return}l()},[s==null?void 0:s.id,o]);const l=async()=>{try{if(i(!0),!(s!=null&&s.id))return;const[m,h]=await Promise.all([eRe.getSubjects(),tRe.getUserTasks(s.id)]);t(m.data),n(h.data)}catch{ut.error("获取数据失败")}finally{i(!1)}},c=m=>{var x,b;const h=Date.now(),p=((x=hs(m.startAt))==null?void 0:x.getTime())??NaN,g=((b=hs(m.endAt))==null?void 0:b.getTime())??NaN,v=Number(m.usedAttempts)||0,y=Number(m.maxAttempts)||3;return!Number.isFinite(p)||!Number.isFinite(g)?"completed":hg||v>=y?"completed":"ongoing"},u=m=>r.filter(h=>c(h)===m),f=async m=>{if(!m){ut.warning("请选择考试任务");return}const h=r.find(y=>y.id===m),p=Number(h==null?void 0:h.usedAttempts)||0,g=Number(h==null?void 0:h.maxAttempts)||3,v=g-p;if(p>=g){ut.error("考试次数已用尽");return}Ci.confirm({title:"确认开始考试",content:`是否现在开始考试,你还有${v}次重试机会`,okText:"确认",cancelText:"取消",onOk:async()=>{try{const y=await bd.generateQuiz((s==null?void 0:s.id)||"",void 0,m),{questions:x,totalScore:b,timeLimit:S}=y.data;o("/quiz",{state:{questions:x,totalScore:b,timeLimit:S,taskId:m,taskName:(h==null?void 0:h.name)||""}})}catch(y){ut.error(y.message||"生成试卷失败")}}})};return a?T.jsx(Fc,{children:T.jsx("div",{className:"flex justify-center items-center h-full min-h-[500px]",children:T.jsx(JI,{size:"large"})})}):T.jsx(Fc,{children:T.jsxs("div",{className:"container mx-auto px-4 max-w-md",children:[T.jsx("div",{className:"grid grid-cols-1 gap-4",children:T.jsxs("div",{children:[T.jsxs("div",{className:"flex items-center mb-3 border-b border-gray-200 pb-1",children:[T.jsx(wc,{className:"text-lg mr-2 text-mars-400"}),T.jsxs("div",{children:[T.jsx(dy,{level:4,className:"!mb-0 !text-gray-700 !text-base",children:"我的考试任务"}),s&&T.jsxs(kn,{className:"text-sm text-gray-500",children:["欢迎,",s.name]})]}),T.jsx(kt,{type:"default",size:"small",icon:T.jsx(eN,{}),className:"ml-auto",onClick:l,children:"刷新"})]}),T.jsxs("div",{className:"space-y-4",children:[T.jsxs("div",{children:[T.jsxs("div",{className:"flex items-center mb-2",children:[T.jsx("span",{className:"inline-block w-2 h-2 bg-green-500 rounded-full mr-2"}),T.jsx(kn,{className:"text-sm font-medium text-gray-700",children:"进行中"}),T.jsx(la,{color:"green",className:"ml-2 text-xs",children:u("ongoing").length})]}),T.jsxs("div",{className:"space-y-2",children:[u("ongoing").map(m=>{const h=e.find(v=>v.id===m.subjectId),p=Number(m.usedAttempts)||0,g=Number(m.maxAttempts)||3;return T.jsx(kt,{type:"default",block:!0,className:"h-auto py-3 px-4 text-left border-l-4 border-l-green-500 hover:border-l-green-600 hover:shadow-md transition-all duration-300",onClick:()=>f(m.id),children:T.jsx("div",{className:"flex justify-between items-center w-full",children:T.jsxs("div",{className:"flex-1",children:[T.jsxs("div",{className:"flex items-center mb-1",children:[T.jsx(dy,{level:5,className:"mb-0 text-gray-800 !text-sm",children:m.name}),h&&T.jsxs("div",{className:"flex items-center ml-auto",children:[T.jsx("span",{className:"mr-1 text-gray-400 text-xs",children:"(时长:"}),T.jsxs(kn,{className:"text-gray-600 text-xs",children:[h.timeLimitMinutes,"分钟)"]})]})]}),T.jsxs("div",{className:"flex justify-between items-center mb-2",children:[T.jsxs("div",{className:"flex items-center",children:[T.jsx(wc,{className:"mr-1 text-gray-400 text-xs"}),T.jsx(kn,{className:"text-gray-600 text-xs",children:(h==null?void 0:h.name)||"未知科目"})]}),T.jsxs("div",{children:[T.jsxs(la,{color:"green",className:"text-xs",children:[p,"/",g]}),typeof m.bestScore=="number"?T.jsxs(la,{color:"green",className:"text-xs",children:["最高分 ",m.bestScore," 分"]}):null]})]}),T.jsxs("div",{className:"flex justify-between items-center mb-2",children:[T.jsxs("div",{className:"flex items-center",children:[T.jsx(Nh,{className:"mr-1 text-gray-400 text-xs"}),T.jsxs(kn,{className:"text-gray-600 text-xs",children:[Ou(m.startAt)," - ",Ou(m.endAt)]})]}),T.jsx("div",{className:"text-green-600",children:T.jsx(kn,{className:"text-xs px-2 py-1 rounded border border-green-200 bg-green-50",children:"点击开始考试"})})]})]})})},m.id)}),u("ongoing").length===0&&T.jsx("div",{className:"text-center py-4 bg-gray-50 border-dashed border-2 border-gray-200 rounded",children:T.jsx(kn,{type:"secondary",className:"text-sm",children:"暂无进行中的任务"})})]})]}),T.jsxs("div",{children:[T.jsxs("div",{className:"flex items-center mb-2",children:[T.jsx("span",{className:"inline-block w-2 h-2 bg-gray-400 rounded-full mr-2"}),T.jsx(kn,{className:"text-sm font-medium text-gray-700",children:"已完成"}),T.jsx(la,{color:"default",className:"ml-2 text-xs",children:u("completed").length})]}),T.jsxs("div",{className:"space-y-2",children:[u("completed").map(m=>{var S;const h=e.find(w=>w.id===m.subjectId),p=Number(m.usedAttempts)||0,g=Number(m.maxAttempts)||3,v=p>=g,y=((S=hs(m.endAt))==null?void 0:S.getTime())??NaN,x=Number.isFinite(y)?y!b&&f(m.id),children:T.jsx("div",{className:"flex justify-between items-center w-full",children:T.jsxs("div",{className:"flex-1",children:[T.jsxs("div",{className:"flex justify-between items-center mb-1",children:[T.jsx(dy,{level:5,className:"mb-0 text-gray-800 !text-sm",children:m.name}),h&&T.jsxs("div",{className:"flex items-center ml-auto",children:[T.jsx("span",{className:"mr-1 text-gray-400 text-xs",children:"(时长:"}),T.jsxs(kn,{className:"text-gray-600 text-xs",children:[h.timeLimitMinutes,"分钟)"]})]})]}),T.jsxs("div",{className:"flex justify-between items-center mb-2",children:[T.jsxs("div",{className:"flex items-center",children:[T.jsx(wc,{className:"mr-1 text-gray-400 text-xs"}),T.jsx(kn,{className:"text-gray-600 text-xs",children:(h==null?void 0:h.name)||"未知科目"})]}),T.jsxs("div",{children:[T.jsxs(la,{color:v?"red":"default",className:"text-xs",children:[p,"/",g]}),typeof m.bestScore=="number"?T.jsxs(la,{color:"green",className:"text-xs",children:["最高分 ",m.bestScore," 分"]}):null]})]}),T.jsxs("div",{className:"flex justify-between items-center mb-2",children:[T.jsxs("div",{className:"flex items-center",children:[T.jsx(Nh,{className:"mr-1 text-gray-400 text-xs"}),T.jsxs(kn,{className:"text-gray-600 text-xs",children:[Ou(m.startAt)," - ",Ou(m.endAt)]})]}),v?T.jsx("div",{className:"text-red-600",children:T.jsx(kn,{className:"text-xs px-2 py-1 rounded border border-red-200 bg-red-50",children:"次数用尽"})}):T.jsx("div",{className:"text-gray-400",children:T.jsx(kn,{className:"text-xs px-2 py-1 rounded border border-gray-200 bg-gray-50",children:"已结束"})})]})]})})},m.id)}),u("completed").length===0&&T.jsx("div",{className:"text-center py-4 bg-gray-50 border-dashed border-2 border-gray-200 rounded",children:T.jsx(kn,{type:"secondary",className:"text-sm",children:"暂无已完成的任务"})})]})]}),T.jsxs("div",{children:[T.jsxs("div",{className:"flex items-center mb-2",children:[T.jsx("span",{className:"inline-block w-2 h-2 bg-blue-400 rounded-full mr-2"}),T.jsx(kn,{className:"text-sm font-medium text-gray-700",children:"未开始"}),T.jsx(la,{color:"blue",className:"ml-2 text-xs",children:u("notStarted").length})]}),T.jsxs("div",{className:"space-y-2",children:[u("notStarted").map(m=>{const h=e.find(v=>v.id===m.subjectId),p=Number(m.usedAttempts)||0,g=Number(m.maxAttempts)||3;return T.jsx(kt,{type:"default",block:!0,disabled:!0,className:"h-auto py-3 px-4 text-left border-l-4 border-l-blue-400 opacity-75 cursor-not-allowed",children:T.jsx("div",{className:"flex justify-between items-center w-full",children:T.jsxs("div",{className:"flex-1",children:[T.jsxs("div",{className:"flex justify-between items-center mb-1",children:[T.jsx(dy,{level:5,className:"mb-0 text-gray-800 !text-sm",children:m.name}),h&&T.jsxs("div",{className:"flex items-center ml-auto",children:[T.jsx("span",{className:"mr-1 text-gray-400 text-xs",children:"(时长:"}),T.jsxs(kn,{className:"text-gray-600 text-xs",children:[h.timeLimitMinutes,"分钟)"]})]})]}),T.jsxs("div",{className:"flex justify-between items-center mb-2",children:[T.jsxs("div",{className:"flex items-center",children:[T.jsx(wc,{className:"mr-1 text-gray-400 text-xs"}),T.jsx(kn,{className:"text-gray-600 text-xs",children:(h==null?void 0:h.name)||"未知科目"})]}),T.jsxs("div",{children:[T.jsxs(la,{color:"blue",className:"text-xs",children:[p,"/",g]}),typeof m.bestScore=="number"?T.jsxs(la,{color:"green",className:"text-xs",children:["最高分 ",m.bestScore," 分"]}):null]})]}),T.jsxs("div",{className:"flex justify-between items-center mb-2",children:[T.jsxs("div",{className:"flex items-center",children:[T.jsx(Nh,{className:"mr-1 text-gray-400 text-xs"}),T.jsxs(kn,{className:"text-gray-600 text-xs",children:[Ou(m.startAt)," - ",Ou(m.endAt)]})]}),T.jsx("div",{className:"text-blue-600",children:T.jsx(kn,{className:"text-xs px-2 py-1 rounded border border-blue-200 bg-blue-50",children:"未开始"})})]})]})})},m.id)}),u("notStarted").length===0&&T.jsx("div",{className:"text-center py-4 bg-gray-50 border-dashed border-2 border-gray-200 rounded",children:T.jsx(kn,{type:"secondary",className:"text-sm",children:"暂无未开始的任务"})})]})]})]}),r.length===0&&T.jsx("div",{className:"text-center py-8 bg-gray-50 border-dashed border-2 border-gray-200 rounded",children:T.jsx(kn,{type:"secondary",className:"text-sm",children:"暂无可用考试任务"})})]})}),T.jsx("div",{className:"mt-6 text-center",children:T.jsx(kt,{type:"default",size:"large",className:"px-4 h-10 text-sm hover:border-mars-500 hover:text-mars-500",onClick:()=>o("/tasks"),children:"查看我的答题记录"})})]})})},{Title:Srt,Text:Vm}=US,U4e=()=>{const[e,t]=d.useState([]),[r,n]=d.useState(!0),a=Xo(),{user:i}=Av();d.useEffect(()=>{i&&o()},[i]);const o=async()=>{try{if(n(!0),!(i!=null&&i.id))return;const u=await bd.getUserRecords(i.id);t(u.data)}catch{ut.error("获取答题记录失败")}finally{n(!1)}},s=u=>{a(`/result/${u}`)},l=u=>{switch(u){case"不及格":return"red";case"合格":return"blue";case"优秀":return"green";default:return"default"}},c=[{title:"操作",key:"action",width:80,render:u=>T.jsx(kt,{type:"link",size:"small",icon:T.jsx(Pv,{}),onClick:()=>s(u.id),style:{fontSize:"12px",padding:0},children:"查看结果"})},{title:"任务名称",dataIndex:"taskName",key:"taskName",width:100,render:u=>T.jsx(Vm,{strong:!0,style:{fontSize:"12px"},children:u||"-"})},{title:"考试科目",dataIndex:"subjectName",key:"subjectName",width:90,render:u=>T.jsxs(En,{size:4,children:[T.jsx(wc,{style:{fontSize:"12px"},className:"text-mars-600"}),T.jsx(Vm,{style:{fontSize:"12px"},children:u||"-"})]})},{title:"得分",dataIndex:"totalScore",key:"totalScore",width:60,render:u=>T.jsxs(Vm,{strong:!0,style:{fontSize:"12px"},children:[u,"分"]})},{title:"状态",dataIndex:"status",key:"status",width:60,render:u=>T.jsx(la,{color:l(u),style:{fontSize:"11px"},children:u})},{title:"正确题数",key:"correctCount",width:80,render:u=>T.jsxs(Vm,{style:{fontSize:"12px"},children:[u.correctCount,"/",u.totalCount]})},{title:"答题时间",dataIndex:"createdAt",key:"createdAt",width:110,render:u=>T.jsxs(En,{size:4,children:[T.jsx(jS,{style:{fontSize:"11px"},className:"text-gray-500"}),T.jsx(Vm,{type:"secondary",style:{fontSize:"11px"},children:si(u)})]})}];return r?T.jsx(Fc,{children:T.jsx("div",{className:"flex justify-center items-center h-full min-h-[500px]",children:T.jsx(JI,{size:"large"})})}):T.jsx(Fc,{children:T.jsxs("div",{className:"container mx-auto px-2 max-w-md",children:[T.jsx(oi,{columns:c,dataSource:e,rowKey:"id",size:"small",pagination:{pageSize:5,showSizeChanger:!1,showTotal:u=>`共 ${u} 条`,size:"small"},locale:{emptyText:"暂无答题记录"},scroll:{x:"max-content"},className:"mobile-table",style:{fontSize:"12px"},rowClassName:()=>"mobile-table-row"}),T.jsx("div",{className:"mt-4 text-center",children:T.jsx(kt,{type:"default",size:"large",onClick:()=>a("/subjects"),icon:T.jsx(wc,{}),className:"px-6 h-10 text-sm hover:border-mars-500 hover:text-mars-500",children:"返回任务选择"})})]})})},{Header:K4e,Content:G4e,Footer:q4e}=Rl,rG="admin_login_records",X4e=5,xO=()=>{try{const e=localStorage.getItem(rG);return e?JSON.parse(e):[]}catch(e){return console.error("获取登录记录失败:",e),[]}},Y4e=e=>{try{const r=xO().filter(a=>a.username!==e.username),n=[e,...r].slice(0,X4e);localStorage.setItem(rG,JSON.stringify(n))}catch(t){console.error("保存登录记录失败:",t)}},Q4e=()=>{const e=Xo(),{setAdmin:t}=gN(),[r,n]=d.useState(!1),[a]=Ht.useForm(),[i,o]=d.useState([]);d.useEffect(()=>{o(xO())},[]);const s=async c=>{try{n(!0);const u=await qs.login(c);u.success&&(Y4e({username:c.username,timestamp:Date.now()}),o(xO()),t({username:c.username,token:u.data.token}),ut.success("登录成功"),e("/admin/dashboard"))}catch(u){ut.error(u.message||"登录失败")}finally{n(!1)}},l=c=>{a.setFieldsValue({username:c.username,password:""})};return T.jsxs(Rl,{className:"min-h-screen bg-gray-50",children:[T.jsx(K4e,{className:"bg-white shadow-sm flex items-center px-4 h-12 sticky top-0 z-10",children:T.jsx("img",{src:iw,alt:"主要LOGO",style:{width:"120px",height:"48px"}})}),T.jsx(G4e,{className:"flex items-center justify-center p-2 bg-gradient-to-br from-mars-50 to-white",children:T.jsx("div",{className:"w-full max-w-md",children:T.jsxs(_r,{className:"shadow-xl border-t-4 border-t-mars-500 p-2",children:[T.jsxs("div",{className:"text-center mb-3",children:[T.jsx("h1",{className:"text-2xl font-bold text-mars-600 mb-2",children:"管理员登录"}),T.jsx("p",{className:"text-gray-600 text-xs",children:"请输入管理员账号密码"})]}),T.jsxs(Ht,{layout:"vertical",onFinish:s,autoComplete:"off",form:a,children:[i.length>0&&T.jsx(Ht.Item,{label:"最近登录",className:"mb-2",children:T.jsx(Zn,{placeholder:"选择最近登录记录",className:"w-full",style:{height:"auto"},onSelect:c=>{const u=i.find(f=>`${f.username}-${f.timestamp}`===c);u&&l(u)},options:i.map(c=>({value:`${c.username}-${c.timestamp}`,label:T.jsxs("div",{className:"flex flex-col p-1",style:{minHeight:"40px",justifyContent:"center"},children:[T.jsx("span",{className:"font-medium block text-xs",children:c.username}),T.jsx("span",{className:"text-xs text-gray-500 block",children:new Date(c.timestamp).toLocaleString()})]})}))})}),T.jsx(Ht.Item,{label:"用户名",name:"username",rules:[{required:!0,message:"请输入用户名"},{min:3,message:"用户名至少3个字符"}],className:"mb-2",children:T.jsx(Ia,{placeholder:"请输入用户名",autoComplete:"username"})}),T.jsx(Ht.Item,{label:"密码",name:"password",rules:[{required:!0,message:"请输入密码"},{min:6,message:"密码至少6个字符"}],className:"mb-2",children:T.jsx(Ia.Password,{placeholder:"请输入密码",autoComplete:"new-password",allowClear:!0})}),T.jsx(Ht.Item,{className:"mb-0 mt-3",children:T.jsx(kt,{type:"primary",htmlType:"submit",loading:r,block:!0,className:"bg-mars-500 hover:!bg-mars-600 border-none shadow-md h-9 text-sm font-medium",children:"登录"})})]}),T.jsx("div",{className:"mt-3 text-center",children:T.jsx("a",{href:"/",className:"text-mars-600 hover:text-mars-800 text-xs transition-colors",children:"返回用户端"})})]})})}),T.jsx(q4e,{className:"bg-white border-t border-gray-100 py-1.5 px-2 flex flex-col md:flex-row justify-center items-center text-gray-400 text-xs",children:T.jsxs("div",{className:"mb-2 md:mb-0 whitespace-nowrap",children:["© ",new Date().getFullYear()," Boonlive OA System. All Rights Reserved."]})})]})};function nG(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t{var{children:r,width:n,height:a,viewBox:i,className:o,style:s,title:l,desc:c}=e,u=rAe(e,tAe),f=i||{width:n,height:a,x:0,y:0},m=jn("recharts-surface",o);return d.createElement("svg",SO({},Ko(u),{className:m,width:n,height:a,style:s,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),d.createElement("title",null,l),d.createElement("desc",null,c),r)}),aAe=["children","className"];function wO(){return wO=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:r,className:n}=e,a=iAe(e,aAe),i=jn("recharts-layer",n);return d.createElement("g",wO({className:i},Ko(a),{ref:t}),r)}),oG=d.createContext(null),sAe=()=>d.useContext(oG);function Gr(e){return function(){return e}}const sG=Math.cos,y1=Math.sin,Rs=Math.sqrt,x1=Math.PI,ow=2*x1,CO=Math.PI,EO=2*CO,Tu=1e-6,lAe=EO-Tu;function lG(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return lG;const r=10**t;return function(n){this._+=n[0];for(let a=1,i=n.length;aTu)if(!(Math.abs(f*l-c*u)>Tu)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,p=a-s,g=l*l+c*c,v=h*h+p*p,y=Math.sqrt(g),x=Math.sqrt(m),b=i*Math.tan((CO-Math.acos((g+m-v)/(2*y*x)))/2),S=b/x,w=b/y;Math.abs(S-1)>Tu&&this._append`L${t+S*u},${r+S*f}`,this._append`A${i},${i},0,0,${+(f*h>u*p)},${this._x1=t+w*l},${this._y1=r+w*c}`}}arc(t,r,n,a,i,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(a),l=n*Math.sin(a),c=t+s,u=r+l,f=1^o,m=o?a-i:i-a;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Tu||Math.abs(this._y1-u)>Tu)&&this._append`L${c},${u}`,n&&(m<0&&(m=m%EO+EO),m>lAe?this._append`A${n},${n},0,1,${f},${t-s},${r-l}A${n},${n},0,1,${f},${this._x1=c},${this._y1=u}`:m>Tu&&this._append`A${n},${n},0,${+(m>=CO)},${f},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+a}h${-n}Z`}toString(){return this._}}function PN(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new uAe(t)}function IN(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function cG(e){this._context=e}cG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function sw(e){return new cG(e)}function uG(e){return e[0]}function dG(e){return e[1]}function fG(e,t){var r=Gr(!0),n=null,a=sw,i=null,o=PN(s);e=typeof e=="function"?e:e===void 0?uG:Gr(e),t=typeof t=="function"?t:t===void 0?dG:Gr(t);function s(l){var c,u=(l=IN(l)).length,f,m=!1,h;for(n==null&&(i=a(h=o())),c=0;c<=u;++c)!(c=h;--p)s.point(b[p],S[p]);s.lineEnd(),s.areaEnd()}y&&(b[m]=+e(v,m,f),S[m]=+t(v,m,f),s.point(n?+n(v,m,f):b[m],r?+r(v,m,f):S[m]))}if(x)return s=null,x+""||null}function u(){return fG().defined(a).curve(o).context(i)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:Gr(+f),n=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Gr(+f),c):e},c.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Gr(+f),c):n},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:Gr(+f),r=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Gr(+f),c):t},c.y1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Gr(+f),c):r},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(r)},c.lineX1=function(){return u().x(n).y(t)},c.defined=function(f){return arguments.length?(a=typeof f=="function"?f:Gr(!!f),c):a},c.curve=function(f){return arguments.length?(o=f,i!=null&&(s=o(i)),c):o},c.context=function(f){return arguments.length?(f==null?i=s=null:s=o(i=f),c):i},c}class mG{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function dAe(e){return new mG(e,!0)}function fAe(e){return new mG(e,!1)}const NN={draw(e,t){const r=Rs(t/x1);e.moveTo(r,0),e.arc(0,0,r,0,ow)}},mAe={draw(e,t){const r=Rs(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},hG=Rs(1/3),hAe=hG*2,pAe={draw(e,t){const r=Rs(t/hAe),n=r*hG;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},vAe={draw(e,t){const r=Rs(t),n=-r/2;e.rect(n,n,r,r)}},gAe=.8908130915292852,pG=y1(x1/10)/y1(7*x1/10),yAe=y1(ow/10)*pG,xAe=-sG(ow/10)*pG,bAe={draw(e,t){const r=Rs(t*gAe),n=yAe*r,a=xAe*r;e.moveTo(0,-r),e.lineTo(n,a);for(let i=1;i<5;++i){const o=ow*i/5,s=sG(o),l=y1(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*a,l*n+s*a)}e.closePath()}},oE=Rs(3),SAe={draw(e,t){const r=-Rs(t/(oE*3));e.moveTo(0,r*2),e.lineTo(-oE*r,-r),e.lineTo(oE*r,-r),e.closePath()}},wo=-.5,Co=Rs(3)/2,$O=1/Rs(12),wAe=($O/2+1)*3,CAe={draw(e,t){const r=Rs(t/wAe),n=r/2,a=r*$O,i=n,o=r*$O+r,s=-i,l=o;e.moveTo(n,a),e.lineTo(i,o),e.lineTo(s,l),e.lineTo(wo*n-Co*a,Co*n+wo*a),e.lineTo(wo*i-Co*o,Co*i+wo*o),e.lineTo(wo*s-Co*l,Co*s+wo*l),e.lineTo(wo*n+Co*a,wo*a-Co*n),e.lineTo(wo*i+Co*o,wo*o-Co*i),e.lineTo(wo*s+Co*l,wo*l-Co*s),e.closePath()}};function EAe(e,t){let r=null,n=PN(a);e=typeof e=="function"?e:Gr(e||NN),t=typeof t=="function"?t:Gr(t===void 0?64:+t);function a(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:Gr(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:Gr(+i),a):t},a.context=function(i){return arguments.length?(r=i??null,a):r},a}function b1(){}function S1(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function vG(e){this._context=e}vG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:S1(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:S1(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $Ae(e){return new vG(e)}function gG(e){this._context=e}gG.prototype={areaStart:b1,areaEnd:b1,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:S1(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function _Ae(e){return new gG(e)}function yG(e){this._context=e}yG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:S1(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function OAe(e){return new yG(e)}function xG(e){this._context=e}xG.prototype={areaStart:b1,areaEnd:b1,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function TAe(e){return new xG(e)}function nF(e){return e<0?-1:1}function aF(e,t,r){var n=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(n||a<0&&-0),o=(r-e._y1)/(a||n<0&&-0),s=(i*a+o*n)/(n+a);return(nF(i)+nF(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function iF(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function sE(e,t,r){var n=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-n)/3;e._context.bezierCurveTo(n+s,a+s*t,i-s,o-s*r,i,o)}function w1(e){this._context=e}w1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:sE(this,this._t0,iF(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,sE(this,iF(this,r=aF(this,e,t)),r);break;default:sE(this,this._t0,r=aF(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function bG(e){this._context=new SG(e)}(bG.prototype=Object.create(w1.prototype)).point=function(e,t){w1.prototype.point.call(this,t,e)};function SG(e){this._context=e}SG.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,a,i){this._context.bezierCurveTo(t,e,n,r,i,a)}};function PAe(e){return new w1(e)}function IAe(e){return new bG(e)}function wG(e){this._context=e}wG.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=oF(e),a=oF(t),i=0,o=1;o=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[r-1]=(e[r]+a[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function kAe(e){return new lw(e,.5)}function RAe(e){return new lw(e,0)}function AAe(e){return new lw(e,1)}function Sd(e,t){if((o=e.length)>1)for(var r=1,n,a,i=e[t[0]],o,s=i.length;r=0;)r[t]=t;return r}function MAe(e,t){return e[t]}function DAe(e){const t=[];return t.key=e,t}function jAe(){var e=Gr([]),t=_O,r=Sd,n=MAe;function a(i){var o=Array.from(e.apply(this,arguments),DAe),s,l=o.length,c=-1,u;for(const f of i)for(s=0,++c;s0){for(var r,n,a=0,i=e[0].length,o;a0){for(var r=0,n=e[t[0]],a,i=n.length;r0)||!((i=(a=e[t[0]]).length)>0))){for(var r=0,n=1,a,i,o;n1&&arguments[1]!==void 0?arguments[1]:HAe,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function bn(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n{var s=r[o-1];return typeof s=="string"?a+s+i:s!==void 0?a+Cc(s)+i:a+i},"")}var Mi=e=>e===0?0:e>0?1:-1,Al=e=>typeof e=="number"&&e!=+e,Ml=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,er=e=>(typeof e=="number"||e instanceof Number)&&!Al(e),Dl=e=>er(e)||typeof e=="string",WAe=0,Op=e=>{var t=++WAe;return"".concat(e||"").concat(t)},so=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!er(t)&&typeof t!="string")return n;var i;if(Ml(t)){if(r==null)return n;var o=t.indexOf("%");i=r*parseFloat(t.slice(0,o))/100}else i=+t;return Al(i)&&(i=n),a&&r!=null&&i>r&&(i=r),i},$G=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;nn&&(typeof t=="function"?t(n):_p(n,t))===r)}var fo=e=>e===null||typeof e>"u",Fv=e=>fo(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function UAe(e){return e!=null}function Lv(){}var KAe=["type","size","sizeType"];function OO(){return OO=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var t="symbol".concat(Fv(e));return _G[t]||NN},eMe=(e,t,r)=>{if(t==="area")return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var n=18*ZAe;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*Math.tan(n)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},tMe=(e,t)=>{_G["symbol".concat(Fv(e))]=t},RN=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,a=YAe(e,KAe),i=lF(lF({},a),{},{type:t,size:r,sizeType:n}),o="circle";typeof t=="string"&&(o=t);var s=()=>{var m=JAe(o),h=EAe().type(m).size(eMe(r,n,o)),p=h();if(p!==null)return p},{className:l,cx:c,cy:u}=i,f=Ko(i);return er(c)&&er(u)&&er(r)?d.createElement("path",OO({},f,{className:jn("recharts-symbols",l),transform:"translate(".concat(c,", ").concat(u,")"),d:s()})):null};RN.registerSymbol=tMe;var OG=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,rMe=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(d.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(a=>{ON(a)&&(n[a]=t||(i=>r[a](r,i)))}),n},nMe=(e,t,r)=>n=>(e(t,r,n),null),TG=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(a=>{var i=e[a];ON(a)&&typeof i=="function"&&(n||(n={}),n[a]=nMe(i,t,r))}),n};function cF(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function aMe(e){for(var t=1;t(o[s]===void 0&&n[s]!==void 0&&(o[s]=n[s]),o),r);return i}function C1(){return C1=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var m=u.formatter||a,h=jn({"recharts-legend-item":!0,["legend-item-".concat(f)]:!0,inactive:u.inactive});if(u.type==="none")return null;var p=u.inactive?i:u.color,g=m?m(u.value,u,f):u.value;return d.createElement("li",C1({className:h,style:l,key:"legend-item-".concat(f)},TG(e,u,f)),d.createElement(TN,{width:r,height:r,viewBox:s,style:c,"aria-label":"".concat(g," legend icon")},d.createElement(mMe,{data:u,iconType:o,inactiveColor:i})),d.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},g))})}var pMe=e=>{var t=Zo(e,fMe),{payload:r,layout:n,align:a}=t;if(!r||!r.length)return null;var i={padding:0,margin:0,textAlign:n==="horizontal"?a:"left"};return d.createElement("ul",{className:"recharts-default-legend",style:i},d.createElement(hMe,C1({},t,{payload:r})))},PG={},IG={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){const a=new Map;for(let i=0;i=0}e.isLength=t})(kG);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=kG;function r(n){return n!=null&&typeof n!="function"&&t.isLength(n.length)}e.isArrayLike=r})(fw);var RG={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="object"&&r!==null}e.isObjectLike=t})(RG);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fw,r=RG;function n(a){return r.isObjectLike(a)&&t.isArrayLike(a)}e.isArrayLikeObject=n})(NG);var AG={},MG={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cw;function r(n){return function(a){return t.get(a,n)}}e.property=r})(MG);var DG={},MN={},jG={},DN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r!==null&&(typeof r=="object"||typeof r=="function")}e.isObject=t})(DN);var jN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null||typeof r!="object"&&typeof r!="function"}e.isPrimitive=t})(jN);var FN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n){return r===n||Number.isNaN(r)&&Number.isNaN(n)}e.eq=t})(FN);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=DN,r=jN,n=FN;function a(u,f,m){return typeof m!="function"?a(u,f,()=>{}):i(u,f,function h(p,g,v,y,x,b){const S=m(p,g,v,y,x,b);return S!==void 0?!!S:i(p,g,h,b)},new Map)}function i(u,f,m,h){if(f===u)return!0;switch(typeof f){case"object":return o(u,f,m,h);case"function":return Object.keys(f).length>0?i(u,{...f},m,h):n.eq(u,f);default:return t.isObject(u)?typeof f=="string"?f==="":!0:n.eq(u,f)}}function o(u,f,m,h){if(f==null)return!0;if(Array.isArray(f))return l(u,f,m,h);if(f instanceof Map)return s(u,f,m,h);if(f instanceof Set)return c(u,f,m,h);const p=Object.keys(f);if(u==null||r.isPrimitive(u))return p.length===0;if(p.length===0)return!0;if(h!=null&&h.has(f))return h.get(f)===u;h==null||h.set(f,u);try{for(let g=0;g{})}e.isMatch=r})(MN);var FG={},LN={},LG={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Object.getOwnPropertySymbols(r).filter(n=>Object.prototype.propertyIsEnumerable.call(r,n))}e.getSymbols=t})(LG);var BN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r==null?r===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(r)}e.getTag=t})(BN);var zN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",r="[object String]",n="[object Number]",a="[object Boolean]",i="[object Arguments]",o="[object Symbol]",s="[object Date]",l="[object Map]",c="[object Set]",u="[object Array]",f="[object Function]",m="[object ArrayBuffer]",h="[object Object]",p="[object Error]",g="[object DataView]",v="[object Uint8Array]",y="[object Uint8ClampedArray]",x="[object Uint16Array]",b="[object Uint32Array]",S="[object BigUint64Array]",w="[object Int8Array]",E="[object Int16Array]",C="[object Int32Array]",O="[object BigInt64Array]",_="[object Float32Array]",P="[object Float64Array]";e.argumentsTag=i,e.arrayBufferTag=m,e.arrayTag=u,e.bigInt64ArrayTag=O,e.bigUint64ArrayTag=S,e.booleanTag=a,e.dataViewTag=g,e.dateTag=s,e.errorTag=p,e.float32ArrayTag=_,e.float64ArrayTag=P,e.functionTag=f,e.int16ArrayTag=E,e.int32ArrayTag=C,e.int8ArrayTag=w,e.mapTag=l,e.numberTag=n,e.objectTag=h,e.regexpTag=t,e.setTag=c,e.stringTag=r,e.symbolTag=o,e.uint16ArrayTag=x,e.uint32ArrayTag=b,e.uint8ArrayTag=v,e.uint8ClampedArrayTag=y})(zN);var BG={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return ArrayBuffer.isView(r)&&!(r instanceof DataView)}e.isTypedArray=t})(BG);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=LG,r=BN,n=zN,a=jN,i=BG;function o(u,f){return s(u,void 0,u,new Map,f)}function s(u,f,m,h=new Map,p=void 0){const g=p==null?void 0:p(u,f,m,h);if(g!==void 0)return g;if(a.isPrimitive(u))return u;if(h.has(u))return h.get(u);if(Array.isArray(u)){const v=new Array(u.length);h.set(u,v);for(let y=0;yt.isMatch(i,a)}e.matches=n})(DG);var zG={},HG={},WG={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=LN,r=zN;function n(a,i){return t.cloneDeepWith(a,(o,s,l,c)=>{const u=i==null?void 0:i(o,s,l,c);if(u!==void 0)return u;if(typeof a=="object")switch(Object.prototype.toString.call(a)){case r.numberTag:case r.stringTag:case r.booleanTag:{const f=new a.constructor(a==null?void 0:a.valueOf());return t.copyProperties(f,a),f}case r.argumentsTag:{const f={};return t.copyProperties(f,a),f.length=a.length,f[Symbol.iterator]=a[Symbol.iterator],f}default:return}})}e.cloneDeepWith=n})(WG);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=WG;function r(n){return t.cloneDeepWith(n)}e.cloneDeep=r})(HG);var VG={},HN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function r(n,a=Number.MAX_SAFE_INTEGER){switch(typeof n){case"number":return Number.isInteger(n)&&n>=0&&n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?EMe:CMe;YG.useSyncExternalStore=E0.useSyncExternalStore!==void 0?E0.useSyncExternalStore:$Me;XG.exports=YG;var _Me=XG.exports;/** - * @license React - * use-sync-external-store-shim/with-selector.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var mw=d,OMe=_Me;function TMe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var PMe=typeof Object.is=="function"?Object.is:TMe,IMe=OMe.useSyncExternalStore,NMe=mw.useRef,kMe=mw.useEffect,RMe=mw.useMemo,AMe=mw.useDebugValue;qG.useSyncExternalStoreWithSelector=function(e,t,r,n,a){var i=NMe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=RMe(function(){function l(h){if(!c){if(c=!0,u=h,h=n(h),a!==void 0&&o.hasValue){var p=o.value;if(a(p,h))return f=p}return f=h}if(p=f,PMe(u,h))return p;var g=n(h);return a!==void 0&&a(p,g)?(u=h,p):(u=h,f=g)}var c=!1,u,f,m=r===void 0?null:r;return[function(){return l(t())},m===null?void 0:function(){return l(m())}]},[t,r,n,a]);var s=IMe(e,i[0],i[1]);return kMe(function(){o.hasValue=!0,o.value=s},[s]),AMe(s),s};GG.exports=qG;var MMe=GG.exports,WN=d.createContext(null),DMe=e=>e,Fn=()=>{var e=d.useContext(WN);return e?e.store.dispatch:DMe},vx=()=>{},jMe=()=>vx,FMe=(e,t)=>e===t;function rr(e){var t=d.useContext(WN);return MMe.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:jMe,t?t.store.getState:vx,t?t.store.getState:vx,t?e:vx,FMe)}function LMe(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function BMe(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function zMe(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var fF=e=>Array.isArray(e)?e:[e];function HMe(e){const t=Array.isArray(e[0])?e[0]:e;return zMe(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function WMe(e,t){const r=[],{length:n}=e;for(let a=0;a{r=my(),o.resetResultsCount()},o.resultsCount=()=>i,o.resetResultsCount=()=>{i=0},o}function GMe(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...a)=>{let i=0,o=0,s,l={},c=a.pop();typeof c=="object"&&(l=c,c=a.pop()),LMe(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const u={...r,...l},{memoize:f,memoizeOptions:m=[],argsMemoize:h=QG,argsMemoizeOptions:p=[],devModeChecks:g={}}=u,v=fF(m),y=fF(p),x=HMe(a),b=f(function(){return i++,c.apply(null,arguments)},...v),S=h(function(){o++;const E=WMe(x,arguments);return s=b.apply(null,E),s},...y);return Object.assign(S,{resultFunc:c,memoizedResultFunc:b,dependencies:x,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>s,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:f,argsMemoize:h})};return Object.assign(n,{withTypes:()=>n}),n}var Ue=GMe(QG),qMe=Object.assign((e,t=Ue)=>{BMe(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(i=>e[i]);return t(n,(...i)=>i.reduce((o,s,l)=>(o[r[l]]=s,o),{}))},{withTypes:()=>qMe}),ZG={},JG={},eq={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"?1:n===null?2:n===void 0?3:n!==n?4:0}const r=(n,a,i)=>{if(n!==a){const o=t(n),s=t(a);if(o===s&&o===0){if(na)return i==="desc"?-1:1}return i==="desc"?s-o:o-s}return 0};e.compareValues=r})(eq);var tq={},VN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"||r instanceof Symbol}e.isSymbol=t})(VN);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=VN,r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(i,o){return Array.isArray(i)?!1:typeof i=="number"||typeof i=="boolean"||i==null||t.isSymbol(i)?!0:typeof i=="string"&&(n.test(i)||!r.test(i))||o!=null&&Object.hasOwn(o,i)}e.isKey=a})(tq);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=eq,r=tq,n=dw;function a(i,o,s,l){if(i==null)return[];s=l?void 0:s,Array.isArray(i)||(i=Object.values(i)),Array.isArray(o)||(o=o==null?[null]:[o]),o.length===0&&(o=[null]),Array.isArray(s)||(s=s==null?[]:[s]),s=s.map(h=>String(h));const c=(h,p)=>{let g=h;for(let v=0;vp==null||h==null?p:typeof h=="object"&&"key"in h?Object.hasOwn(p,h.key)?p[h.key]:c(p,h.path):typeof h=="function"?h(p):Array.isArray(h)?c(p,h):typeof p=="object"?p[h]:p,f=o.map(h=>(Array.isArray(h)&&h.length===1&&(h=h[0]),h==null||typeof h=="function"||Array.isArray(h)||r.isKey(h)?h:{key:h,path:n.toPath(h)}));return i.map(h=>({original:h,criteria:f.map(p=>u(p,h))})).slice().sort((h,p)=>{for(let g=0;gh.original)}e.orderBy=a})(JG);var rq={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n=1){const a=[],i=Math.floor(n),o=(s,l)=>{for(let c=0;c1&&n.isIterateeCall(i,o[0],o[1])?o=[]:s>2&&n.isIterateeCall(o[0],o[1],o[2])&&(o=[o[0]]),t.orderBy(i,r.flatten(o),["asc"])}e.sortBy=a})(ZG);var XMe=ZG.sortBy;const hw=ia(XMe);var nq=e=>e.legend.settings,YMe=e=>e.legend.size,QMe=e=>e.legend.payload,ZMe=Ue([QMe,nq],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?hw(n,r):n});function JMe(){return rr(ZMe)}var hy=1;function aq(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,r]=d.useState({height:0,left:0,top:0,width:0}),n=d.useCallback(a=>{if(a!=null){var i=a.getBoundingClientRect(),o={height:i.height,left:i.left,top:i.top,width:i.width};(Math.abs(o.height-t.height)>hy||Math.abs(o.left-t.left)>hy||Math.abs(o.top-t.top)>hy||Math.abs(o.width-t.width)>hy)&&r({height:o.height,left:o.left,top:o.top,width:o.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,n]}function Ba(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var e3e=(()=>typeof Symbol=="function"&&Symbol.observable||"@@observable")(),hF=e3e,cE=()=>Math.random().toString(36).substring(7).split("").join("."),t3e={INIT:`@@redux/INIT${cE()}`,REPLACE:`@@redux/REPLACE${cE()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${cE()}`},E1=t3e;function KN(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function iq(e,t,r){if(typeof e!="function")throw new Error(Ba(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Ba(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Ba(1));return r(iq)(e,t)}let n=e,a=t,i=new Map,o=i,s=0,l=!1;function c(){o===i&&(o=new Map,i.forEach((v,y)=>{o.set(y,v)}))}function u(){if(l)throw new Error(Ba(3));return a}function f(v){if(typeof v!="function")throw new Error(Ba(4));if(l)throw new Error(Ba(5));let y=!0;c();const x=s++;return o.set(x,v),function(){if(y){if(l)throw new Error(Ba(6));y=!1,c(),o.delete(x),i=null}}}function m(v){if(!KN(v))throw new Error(Ba(7));if(typeof v.type>"u")throw new Error(Ba(8));if(typeof v.type!="string")throw new Error(Ba(17));if(l)throw new Error(Ba(9));try{l=!0,a=n(a,v)}finally{l=!1}return(i=o).forEach(x=>{x()}),v}function h(v){if(typeof v!="function")throw new Error(Ba(10));n=v,m({type:E1.REPLACE})}function p(){const v=f;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(Ba(11));function x(){const S=y;S.next&&S.next(u())}return x(),{unsubscribe:v(x)}},[hF](){return this}}}return m({type:E1.INIT}),{dispatch:m,subscribe:f,getState:u,replaceReducer:h,[hF]:p}}function r3e(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:E1.INIT})>"u")throw new Error(Ba(12));if(typeof r(void 0,{type:E1.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ba(13))})}function oq(e){const t=Object.keys(e),r={};for(let i=0;i"u")throw s&&s.type,new Error(Ba(14));c[f]=p,l=l||p!==h}return l=l||n.length!==Object.keys(o).length,l?c:o}}function $1(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function n3e(...e){return t=>(r,n)=>{const a=t(r,n);let i=()=>{throw new Error(Ba(15))};const o={getState:a.getState,dispatch:(l,...c)=>i(l,...c)},s=e.map(l=>l(o));return i=$1(...s)(a.dispatch),{...a,dispatch:i}}}function sq(e){return KN(e)&&"type"in e&&typeof e.type=="string"}var lq=Symbol.for("immer-nothing"),pF=Symbol.for("immer-draftable"),Ei=Symbol.for("immer-state");function ds(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var ao=Object,$0=ao.getPrototypeOf,_1="constructor",pw="prototype",TO="configurable",O1="enumerable",gx="writable",Tp="value",jl=e=>!!e&&!!e[Ei];function Ps(e){var t;return e?cq(e)||vw(e)||!!e[pF]||!!((t=e[_1])!=null&&t[pF])||gw(e)||yw(e):!1}var a3e=ao[pw][_1].toString(),vF=new WeakMap;function cq(e){if(!e||!GN(e))return!1;const t=$0(e);if(t===null||t===ao[pw])return!0;const r=ao.hasOwnProperty.call(t,_1)&&t[_1];if(r===Object)return!0;if(!Sf(r))return!1;let n=vF.get(r);return n===void 0&&(n=Function.toString.call(r),vF.set(r,n)),n===a3e}function Bv(e,t,r=!0){zv(e)===0?(r?Reflect.ownKeys(e):ao.keys(e)).forEach(a=>{t(a,e[a],e)}):e.forEach((n,a)=>t(a,n,e))}function zv(e){const t=e[Ei];return t?t.type_:vw(e)?1:gw(e)?2:yw(e)?3:0}var gF=(e,t,r=zv(e))=>r===2?e.has(t):ao[pw].hasOwnProperty.call(e,t),PO=(e,t,r=zv(e))=>r===2?e.get(t):e[t],T1=(e,t,r,n=zv(e))=>{n===2?e.set(t,r):n===3?e.add(r):e[t]=r};function i3e(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var vw=Array.isArray,gw=e=>e instanceof Map,yw=e=>e instanceof Set,GN=e=>typeof e=="object",Sf=e=>typeof e=="function",uE=e=>typeof e=="boolean",pl=e=>e.copy_||e.base_,qN=e=>e.modified_?e.copy_:e.base_;function IO(e,t){if(gw(e))return new Map(e);if(yw(e))return new Set(e);if(vw(e))return Array[pw].slice.call(e);const r=cq(e);if(t===!0||t==="class_only"&&!r){const n=ao.getOwnPropertyDescriptors(e);delete n[Ei];let a=Reflect.ownKeys(n);for(let i=0;i1&&ao.defineProperties(e,{set:py,add:py,clear:py,delete:py}),ao.freeze(e),t&&Bv(e,(r,n)=>{XN(n,!0)},!1)),e}function o3e(){ds(2)}var py={[Tp]:o3e};function xw(e){return e===null||!GN(e)?!0:ao.isFrozen(e)}var P1="MapSet",NO="Patches",uq={};function _0(e){const t=uq[e];return t||ds(0,e),t}var s3e=e=>!!uq[e],Pp,dq=()=>Pp,l3e=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:s3e(P1)?_0(P1):void 0});function yF(e,t){t&&(e.patchPlugin_=_0(NO),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function kO(e){RO(e),e.drafts_.forEach(c3e),e.drafts_=null}function RO(e){e===Pp&&(Pp=e.parent_)}var xF=e=>Pp=l3e(Pp,e);function c3e(e){const t=e[Ei];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function bF(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];if(e!==void 0&&e!==r){r[Ei].modified_&&(kO(t),ds(4)),Ps(e)&&(e=SF(t,e));const{patchPlugin_:a}=t;a&&a.generateReplacementPatches_(r[Ei].base_,e,t)}else e=SF(t,r);return u3e(t,e,!0),kO(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==lq?e:void 0}function SF(e,t){if(xw(t))return t;const r=t[Ei];if(!r)return YN(t,e.handledSet_,e);if(!bw(r,e))return t;if(!r.modified_)return r.base_;if(!r.finalized_){const{callbacks_:n}=r;if(n)for(;n.length>0;)n.pop()(e);hq(r,e)}return r.copy_}function u3e(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&XN(t,r)}function fq(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var bw=(e,t)=>e.scope_===t,d3e=[];function mq(e,t,r,n){const a=pl(e),i=e.type_;if(n!==void 0&&PO(a,n,i)===t){T1(a,n,r,i);return}if(!e.draftLocations_){const s=e.draftLocations_=new Map;Bv(a,(l,c)=>{if(jl(c)){const u=s.get(c)||[];u.push(l),s.set(c,u)}})}const o=e.draftLocations_.get(t)??d3e;for(const s of o)T1(a,s,r,i)}function f3e(e,t,r){e.callbacks_.push(function(a){var s;const i=t;if(!i||!bw(i,a))return;(s=a.mapSetPlugin_)==null||s.fixSetContents(i);const o=qN(i);mq(e,i.draft_??i,o,r),hq(i,a)})}function hq(e,t){var n;if(e.modified_&&!e.finalized_&&(e.type_===3||(((n=e.assigned_)==null?void 0:n.size)??0)>0)){const{patchPlugin_:a}=t;if(a){const i=a.getPath(e);i&&a.generatePatches_(e,i,t)}fq(e)}}function m3e(e,t,r){const{scope_:n}=e;if(jl(r)){const a=r[Ei];bw(a,n)&&a.callbacks_.push(function(){yx(e);const o=qN(a);mq(e,r,o,t)})}else Ps(r)&&e.callbacks_.push(function(){const i=pl(e);PO(i,t,e.type_)===r&&n.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&YN(PO(e.copy_,t,e.type_),n.handledSet_,n)})}function YN(e,t,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||jl(e)||t.has(e)||!Ps(e)||xw(e)||(t.add(e),Bv(e,(n,a)=>{if(jl(a)){const i=a[Ei];if(bw(i,r)){const o=qN(i);T1(e,n,o,e.type_),fq(i)}}else Ps(a)&&YN(a,t,r)})),e}function h3e(e,t){const r=vw(e),n={type_:r?1:0,scope_:t?t.scope_:dq(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let a=n,i=QN;r&&(a=[n],i=Ip);const{revoke:o,proxy:s}=Proxy.revocable(a,i);return n.draft_=s,n.revoke_=o,[s,n]}var QN={get(e,t){if(t===Ei)return e;const r=pl(e);if(!gF(r,t,e.type_))return p3e(e,r,t);const n=r[t];if(e.finalized_||!Ps(n))return n;if(n===dE(e.base_,t)){yx(e);const a=e.type_===1?+t:t,i=MO(e.scope_,n,e,a);return e.copy_[a]=i}return n},has(e,t){return t in pl(e)},ownKeys(e){return Reflect.ownKeys(pl(e))},set(e,t,r){const n=pq(pl(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const a=dE(pl(e),t),i=a==null?void 0:a[Ei];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_.set(t,!1),!0;if(i3e(r,a)&&(r!==void 0||gF(e.base_,t,e.type_)))return!0;yx(e),AO(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_.set(t,!0),m3e(e,t,r)),!0},deleteProperty(e,t){return yx(e),dE(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),AO(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=pl(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{[gx]:!0,[TO]:e.type_!==1||t!=="length",[O1]:n[O1],[Tp]:r[t]}},defineProperty(){ds(11)},getPrototypeOf(e){return $0(e.base_)},setPrototypeOf(){ds(12)}},Ip={};Bv(QN,(e,t)=>{Ip[e]=function(){const r=arguments;return r[0]=r[0][0],t.apply(this,r)}});Ip.deleteProperty=function(e,t){return Ip.set.call(this,e,t,void 0)};Ip.set=function(e,t,r){return QN.set.call(this,e[0],t,r,e[0])};function dE(e,t){const r=e[Ei];return(r?pl(r):e)[t]}function p3e(e,t,r){var a;const n=pq(t,r);return n?Tp in n?n[Tp]:(a=n.get)==null?void 0:a.call(e.draft_):void 0}function pq(e,t){if(!(t in e))return;let r=$0(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=$0(r)}}function AO(e){e.modified_||(e.modified_=!0,e.parent_&&AO(e.parent_))}function yx(e){e.copy_||(e.assigned_=new Map,e.copy_=IO(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var v3e=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(r,n,a)=>{if(Sf(r)&&!Sf(n)){const o=n;n=r;const s=this;return function(c=o,...u){return s.produce(c,f=>n.call(this,f,...u))}}Sf(n)||ds(6),a!==void 0&&!Sf(a)&&ds(7);let i;if(Ps(r)){const o=xF(this),s=MO(o,r,void 0);let l=!0;try{i=n(s),l=!1}finally{l?kO(o):RO(o)}return yF(o,a),bF(i,o)}else if(!r||!GN(r)){if(i=n(r),i===void 0&&(i=r),i===lq&&(i=void 0),this.autoFreeze_&&XN(i,!0),a){const o=[],s=[];_0(NO).generateReplacementPatches_(r,i,{patches_:o,inversePatches_:s}),a(o,s)}return i}else ds(1,r)},this.produceWithPatches=(r,n)=>{if(Sf(r))return(s,...l)=>this.produceWithPatches(s,c=>r(c,...l));let a,i;return[this.produce(r,n,(s,l)=>{a=s,i=l}),a,i]},uE(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),uE(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),uE(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Ps(t)||ds(8),jl(t)&&(t=ws(t));const r=xF(this),n=MO(r,t,void 0);return n[Ei].isManual_=!0,RO(r),n}finishDraft(t,r){const n=t&&t[Ei];(!n||!n.isManual_)&&ds(9);const{scope_:a}=n;return yF(a,r),bF(void 0,a)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,r){let n;for(n=r.length-1;n>=0;n--){const i=r[n];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}n>-1&&(r=r.slice(n+1));const a=_0(NO).applyPatches_;return jl(t)?a(t,r):this.produce(t,i=>a(i,r))}};function MO(e,t,r,n){const[a,i]=gw(t)?_0(P1).proxyMap_(t,r):yw(t)?_0(P1).proxySet_(t,r):h3e(t,r);return((r==null?void 0:r.scope_)??dq()).drafts_.push(a),i.callbacks_=(r==null?void 0:r.callbacks_)??[],i.key_=n,r&&n!==void 0?f3e(r,i,n):i.callbacks_.push(function(l){var u;(u=l.mapSetPlugin_)==null||u.fixSetContents(i);const{patchPlugin_:c}=l;i.modified_&&c&&c.generatePatches_(i,[],l)}),a}function ws(e){return jl(e)||ds(10,e),vq(e)}function vq(e){if(!Ps(e)||xw(e))return e;const t=e[Ei];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=IO(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=IO(e,!0);return Bv(r,(a,i)=>{T1(r,a,vq(i))},n),t&&(t.finalized_=!1),r}var g3e=new v3e,gq=g3e.produce;function yq(e){return({dispatch:r,getState:n})=>a=>i=>typeof i=="function"?i(r,n,e):a(i)}var y3e=yq(),x3e=yq,b3e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?$1:$1.apply(null,arguments)};function Go(e,t){function r(...n){if(t){let a=t(...n);if(!a)throw new Error(lo(0));return{type:e,payload:a.payload,..."meta"in a&&{meta:a.meta},..."error"in a&&{error:a.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>sq(n)&&n.type===e,r}var xq=class dh extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,dh.prototype)}static get[Symbol.species](){return dh}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new dh(...t[0].concat(this)):new dh(...t.concat(this))}};function wF(e){return Ps(e)?gq(e,()=>{}):e}function vy(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}function S3e(e){return typeof e=="boolean"}var w3e=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:a=!0,actionCreatorCheck:i=!0}=t??{};let o=new xq;return r&&(S3e(r)?o.push(y3e):o.push(x3e(r.extraArgument))),o},bq="RTK_autoBatch",sn=()=>e=>({payload:e,meta:{[bq]:!0}}),CF=e=>t=>{setTimeout(t,e)},Sq=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let a=!0,i=!1,o=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:CF(10):e.type==="callback"?e.queueNotification:CF(e.timeout),c=()=>{o=!1,i&&(i=!1,s.forEach(u=>u()))};return Object.assign({},n,{subscribe(u){const f=()=>a&&u(),m=n.subscribe(f);return s.add(u),()=>{m(),s.delete(u)}},dispatch(u){var f;try{return a=!((f=u==null?void 0:u.meta)!=null&&f[bq]),i=!a,i&&(o||(o=!0,l(c))),n.dispatch(u)}finally{a=!0}}})},C3e=e=>function(r){const{autoBatch:n=!0}=r??{};let a=new xq(e);return n&&a.push(Sq(typeof n=="object"?n:void 0)),a};function E3e(e){const t=w3e(),{reducer:r=void 0,middleware:n,devTools:a=!0,duplicateMiddlewareCheck:i=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{};let l;if(typeof r=="function")l=r;else if(KN(r))l=oq(r);else throw new Error(lo(1));let c;typeof n=="function"?c=n(t):c=t();let u=$1;a&&(u=b3e({trace:!1,...typeof a=="object"&&a}));const f=n3e(...c),m=C3e(f);let h=typeof s=="function"?s(m):m();const p=u(...h);return iq(l,o,p)}function wq(e){const t={},r=[];let n;const a={addCase(i,o){const s=typeof i=="string"?i:i.type;if(!s)throw new Error(lo(28));if(s in t)throw new Error(lo(29));return t[s]=o,a},addAsyncThunk(i,o){return o.pending&&(t[i.pending.type]=o.pending),o.rejected&&(t[i.rejected.type]=o.rejected),o.fulfilled&&(t[i.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:i.settled,reducer:o.settled}),a},addMatcher(i,o){return r.push({matcher:i,reducer:o}),a},addDefaultCase(i){return n=i,a}};return e(a),[t,r,n]}function $3e(e){return typeof e=="function"}function _3e(e,t){let[r,n,a]=wq(t),i;if($3e(e))i=()=>wF(e());else{const s=wF(e);i=()=>s}function o(s=i(),l){let c=[r[l.type],...n.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[a]),c.reduce((u,f)=>{if(f)if(jl(u)){const h=f(u,l);return h===void 0?u:h}else{if(Ps(u))return gq(u,m=>f(m,l));{const m=f(u,l);if(m===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return u},s)}return o.getInitialState=i,o}var O3e="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",T3e=(e=21)=>{let t="",r=e;for(;r--;)t+=O3e[Math.random()*64|0];return t},P3e=Symbol.for("rtk-slice-createasyncthunk");function I3e(e,t){return`${e}/${t}`}function N3e({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[P3e];return function(a){const{name:i,reducerPath:o=i}=a;if(!i)throw new Error(lo(11));typeof process<"u";const s=(typeof a.reducers=="function"?a.reducers(R3e()):a.reducers)||{},l=Object.keys(s),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},u={addCase(S,w){const E=typeof S=="string"?S:S.type;if(!E)throw new Error(lo(12));if(E in c.sliceCaseReducersByType)throw new Error(lo(13));return c.sliceCaseReducersByType[E]=w,u},addMatcher(S,w){return c.sliceMatchers.push({matcher:S,reducer:w}),u},exposeAction(S,w){return c.actionCreators[S]=w,u},exposeCaseReducer(S,w){return c.sliceCaseReducersByName[S]=w,u}};l.forEach(S=>{const w=s[S],E={reducerName:S,type:I3e(i,S),createNotation:typeof a.reducers=="function"};M3e(w)?j3e(E,w,u,t):A3e(E,w,u)});function f(){const[S={},w=[],E=void 0]=typeof a.extraReducers=="function"?wq(a.extraReducers):[a.extraReducers],C={...S,...c.sliceCaseReducersByType};return _3e(a.initialState,O=>{for(let _ in C)O.addCase(_,C[_]);for(let _ of c.sliceMatchers)O.addMatcher(_.matcher,_.reducer);for(let _ of w)O.addMatcher(_.matcher,_.reducer);E&&O.addDefaultCase(E)})}const m=S=>S,h=new Map,p=new WeakMap;let g;function v(S,w){return g||(g=f()),g(S,w)}function y(){return g||(g=f()),g.getInitialState()}function x(S,w=!1){function E(O){let _=O[S];return typeof _>"u"&&w&&(_=vy(p,E,y)),_}function C(O=m){const _=vy(h,w,()=>new WeakMap);return vy(_,O,()=>{const P={};for(const[I,N]of Object.entries(a.selectors??{}))P[I]=k3e(N,O,()=>vy(p,O,y),w);return P})}return{reducerPath:S,getSelectors:C,get selectors(){return C(E)},selectSlice:E}}const b={name:i,reducer:v,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:y,...x(o),injectInto(S,{reducerPath:w,...E}={}){const C=w??o;return S.inject({reducerPath:C,reducer:v},E),{...b,...x(C,!0)}}};return b}}function k3e(e,t,r,n){function a(i,...o){let s=t(i);return typeof s>"u"&&n&&(s=r()),e(s,...o)}return a.unwrapped=e,a}var Ui=N3e();function R3e(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function A3e({type:e,reducerName:t,createNotation:r},n,a){let i,o;if("reducer"in n){if(r&&!D3e(n))throw new Error(lo(17));i=n.reducer,o=n.prepare}else i=n;a.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,o?Go(e,o):Go(e))}function M3e(e){return e._reducerDefinitionType==="asyncThunk"}function D3e(e){return e._reducerDefinitionType==="reducerWithPrepare"}function j3e({type:e,reducerName:t},r,n,a){if(!a)throw new Error(lo(18));const{payloadCreator:i,fulfilled:o,pending:s,rejected:l,settled:c,options:u}=r,f=a(e,i,u);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),s&&n.addCase(f.pending,s),l&&n.addCase(f.rejected,l),c&&n.addMatcher(f.settled,c),n.exposeCaseReducer(t,{fulfilled:o||gy,pending:s||gy,rejected:l||gy,settled:c||gy})}function gy(){}var F3e="task",Cq="listener",Eq="completed",ZN="cancelled",L3e=`task-${ZN}`,B3e=`task-${Eq}`,DO=`${Cq}-${ZN}`,z3e=`${Cq}-${Eq}`,Sw=class{constructor(e){bC(this,"name","TaskAbortError");bC(this,"message");this.code=e,this.message=`${F3e} ${ZN} (reason: ${e})`}},JN=(e,t)=>{if(typeof e!="function")throw new TypeError(lo(32))},I1=()=>{},$q=(e,t=I1)=>(e.catch(t),e),_q=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Ju=e=>{if(e.aborted)throw new Sw(e.reason)};function Oq(e,t){let r=I1;return new Promise((n,a)=>{const i=()=>a(new Sw(e.reason));if(e.aborted){i();return}r=_q(e,i),t.finally(()=>r()).then(n,a)}).finally(()=>{r=I1})}var H3e=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(r){return{status:r instanceof Sw?"cancelled":"rejected",error:r}}finally{t==null||t()}},N1=e=>t=>$q(Oq(e,t).then(r=>(Ju(e),r))),Tq=e=>{const t=N1(e);return r=>t(new Promise(n=>setTimeout(n,r)))},{assign:t0}=Object,EF={},ww="listenerMiddleware",W3e=(e,t)=>{const r=n=>_q(e,()=>n.abort(e.reason));return(n,a)=>{JN(n);const i=new AbortController;r(i);const o=H3e(async()=>{Ju(e),Ju(i.signal);const s=await n({pause:N1(i.signal),delay:Tq(i.signal),signal:i.signal});return Ju(i.signal),s},()=>i.abort(B3e));return a!=null&&a.autoJoin&&t.push(o.catch(I1)),{result:N1(e)(o),cancel(){i.abort(L3e)}}}},V3e=(e,t)=>{const r=async(n,a)=>{Ju(t);let i=()=>{};const s=[new Promise((l,c)=>{let u=e({predicate:n,effect:(f,m)=>{m.unsubscribe(),l([f,m.getState(),m.getOriginalState()])}});i=()=>{u(),c()}})];a!=null&&s.push(new Promise(l=>setTimeout(l,a,null)));try{const l=await Oq(t,Promise.race(s));return Ju(t),l}finally{i()}};return(n,a)=>$q(r(n,a))},Pq=e=>{let{type:t,actionCreator:r,matcher:n,predicate:a,effect:i}=e;if(t)a=Go(t).match;else if(r)t=r.type,a=r.match;else if(n)a=n;else if(!a)throw new Error(lo(21));return JN(i),{predicate:a,type:t,effect:i}},Iq=t0(e=>{const{type:t,predicate:r,effect:n}=Pq(e);return{id:T3e(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(lo(22))}}},{withTypes:()=>Iq}),$F=(e,t)=>{const{type:r,effect:n,predicate:a}=Pq(t);return Array.from(e.values()).find(i=>(typeof r=="string"?i.type===r:i.predicate===a)&&i.effect===n)},jO=e=>{e.pending.forEach(t=>{t.abort(DO)})},U3e=(e,t)=>()=>{for(const r of t.keys())jO(r);e.clear()},_F=(e,t,r)=>{try{e(t,r)}catch(n){setTimeout(()=>{throw n},0)}},Nq=t0(Go(`${ww}/add`),{withTypes:()=>Nq}),K3e=Go(`${ww}/removeAll`),kq=t0(Go(`${ww}/remove`),{withTypes:()=>kq}),G3e=(...e)=>{console.error(`${ww}/error`,...e)},Hv=(e={})=>{const t=new Map,r=new Map,n=h=>{const p=r.get(h)??0;r.set(h,p+1)},a=h=>{const p=r.get(h)??1;p===1?r.delete(h):r.set(h,p-1)},{extra:i,onError:o=G3e}=e;JN(o);const s=h=>(h.unsubscribe=()=>t.delete(h.id),t.set(h.id,h),p=>{h.unsubscribe(),p!=null&&p.cancelActive&&jO(h)}),l=h=>{const p=$F(t,h)??Iq(h);return s(p)};t0(l,{withTypes:()=>l});const c=h=>{const p=$F(t,h);return p&&(p.unsubscribe(),h.cancelActive&&jO(p)),!!p};t0(c,{withTypes:()=>c});const u=async(h,p,g,v)=>{const y=new AbortController,x=V3e(l,y.signal),b=[];try{h.pending.add(y),n(h),await Promise.resolve(h.effect(p,t0({},g,{getOriginalState:v,condition:(S,w)=>x(S,w).then(Boolean),take:x,delay:Tq(y.signal),pause:N1(y.signal),extra:i,signal:y.signal,fork:W3e(y.signal,b),unsubscribe:h.unsubscribe,subscribe:()=>{t.set(h.id,h)},cancelActiveListeners:()=>{h.pending.forEach((S,w,E)=>{S!==y&&(S.abort(DO),E.delete(S))})},cancel:()=>{y.abort(DO),h.pending.delete(y)},throwIfCancelled:()=>{Ju(y.signal)}})))}catch(S){S instanceof Sw||_F(o,S,{raisedBy:"effect"})}finally{await Promise.all(b),y.abort(z3e),a(h),h.pending.delete(y)}},f=U3e(t,r);return{middleware:h=>p=>g=>{if(!sq(g))return p(g);if(Nq.match(g))return l(g.payload);if(K3e.match(g)){f();return}if(kq.match(g))return c(g.payload);let v=h.getState();const y=()=>{if(v===EF)throw new Error(lo(23));return v};let x;try{if(x=p(g),t.size>0){const b=h.getState(),S=Array.from(t.values());for(const w of S){let E=!1;try{E=w.predicate(g,b,v)}catch(C){E=!1,_F(o,C,{raisedBy:"predicate"})}E&&u(w,g,h,y)}}}finally{v=EF}return x},startListening:l,stopListening:c,clearListeners:f}};function lo(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var q3e={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},Rq=Ui({name:"chartLayout",initialState:q3e,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,a,i;e.margin.top=(r=t.payload.top)!==null&&r!==void 0?r:0,e.margin.right=(n=t.payload.right)!==null&&n!==void 0?n:0,e.margin.bottom=(a=t.payload.bottom)!==null&&a!==void 0?a:0,e.margin.left=(i=t.payload.left)!==null&&i!==void 0?i:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:X3e,setLayout:Y3e,setChartSize:Q3e,setScale:Z3e}=Rq.actions,J3e=Rq.reducer;function Aq(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function aa(e){return Number.isFinite(e)}function Xc(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function OF(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Lf(e){for(var t=1;t{if(t&&r){var{width:n,height:a}=r,{align:i,verticalAlign:o,layout:s}=t;if((s==="vertical"||s==="horizontal"&&o==="middle")&&i!=="center"&&er(e[i]))return Lf(Lf({},e),{},{[i]:e[i]+(n||0)});if((s==="horizontal"||s==="vertical"&&i==="center")&&o!=="middle"&&er(e[o]))return Lf(Lf({},e),{},{[o]:e[o]+(a||0)})}return e},Ud=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",TF=1e-4,aDe=e=>{var t=e.domain();if(!(!t||t.length<=2)){var r=t.length,n=e.range(),a=Math.min(n[0],n[1])-TF,i=Math.max(n[0],n[1])+TF,o=e(t[0]),s=e(t[r-1]);(oi||si)&&e.domain([t[0],t[r-1]])}},iDe=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var a=0;a=0?(c[0]=i,c[1]=i+m,i=u):(c[0]=o,c[1]=o+m,o=u)}}}},oDe=e=>{var t,r=e.length;if(!(r<=0)){var n=(t=e[0])===null||t===void 0?void 0:t.length;if(!(n==null||n<=0))for(var a=0;a=0?(l[0]=i,l[1]=i+c,i=l[1]):(l[0]=0,l[1]=0)}}}},sDe={sign:iDe,expand:FAe,none:Sd,silhouette:LAe,wiggle:BAe,positive:oDe},lDe=(e,t,r)=>{var n,a=(n=sDe[r])!==null&&n!==void 0?n:Sd,i=jAe().keys(t).value((s,l)=>Number($n(s,l,0))).order(_O).offset(a),o=i(e);return o.forEach((s,l)=>{s.forEach((c,u)=>{var f=$n(e[u],t[l],0);Array.isArray(f)&&f.length===2&&er(f[0])&&er(f[1])&&(c[0]=f[0],c[1]=f[1])})}),o},cDe=e=>{var t=e.flat(2).filter(er);return[Math.min(...t),Math.max(...t)]},uDe=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],dDe=(e,t,r)=>{if(e!=null)return uDe(Object.keys(e).reduce((n,a)=>{var i=e[a];if(!i)return n;var{stackedData:o}=i,s=o.reduce((l,c)=>{var u=Aq(c,t,r),f=cDe(u);return!aa(f[0])||!aa(f[1])?l:[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(s[0],n[0]),Math.max(s[1],n[1])]},[1/0,-1/0]))},PF=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,IF=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,NF=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var a=hw(t,u=>u.coordinate),i=1/0,o=1,s=a.length;o{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},mDe=(e,t)=>t==="centric"?e.angle:e.radius,Kl=e=>e.layout.width,Gl=e=>e.layout.height,hDe=e=>e.layout.scale,Dq=e=>e.layout.margin,Cw=Ue(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Ew=Ue(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),jq="data-recharts-item-index",Fq="data-recharts-item-id",Wv=60;function RF(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function yy(e){for(var t=1;te.brush.height;function xDe(e){var t=Ew(e);return t.reduce((r,n)=>{if(n.orientation==="left"&&!n.mirror&&!n.hide){var a=typeof n.width=="number"?n.width:Wv;return r+a}return r},0)}function bDe(e){var t=Ew(e);return t.reduce((r,n)=>{if(n.orientation==="right"&&!n.mirror&&!n.hide){var a=typeof n.width=="number"?n.width:Wv;return r+a}return r},0)}function SDe(e){var t=Cw(e);return t.reduce((r,n)=>n.orientation==="top"&&!n.mirror&&!n.hide?r+n.height:r,0)}function wDe(e){var t=Cw(e);return t.reduce((r,n)=>n.orientation==="bottom"&&!n.mirror&&!n.hide?r+n.height:r,0)}var ja=Ue([Kl,Gl,Dq,yDe,xDe,bDe,SDe,wDe,nq,YMe],(e,t,r,n,a,i,o,s,l,c)=>{var u={left:(r.left||0)+a,right:(r.right||0)+i},f={top:(r.top||0)+o,bottom:(r.bottom||0)+s},m=yy(yy({},f),u),h=m.bottom;m.bottom+=n,m=nDe(m,l,c);var p=e-m.left-m.right,g=t-m.top-m.bottom;return yy(yy({brushBottom:h},m),{},{width:Math.max(p,0),height:Math.max(g,0)})}),CDe=Ue(ja,e=>({x:e.left,y:e.top,width:e.width,height:e.height}));Ue(Kl,Gl,(e,t)=>({x:0,y:0,width:e,height:t}));var EDe=d.createContext(null),mu=()=>d.useContext(EDe)!=null,$w=e=>e.brush,_w=Ue([$w,ja,Dq],(e,t,r)=>({height:e.height,x:er(e.x)?e.x:t.left,y:er(e.y)?e.y:t.top+t.height+t.brushBottom-((r==null?void 0:r.bottom)||0),width:er(e.width)?e.width:t.width})),Lq={},Bq={},zq={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r,n,{signal:a,edges:i}={}){let o,s=null;const l=i!=null&&i.includes("leading"),c=i==null||i.includes("trailing"),u=()=>{s!==null&&(r.apply(o,s),o=void 0,s=null)},f=()=>{c&&u(),g()};let m=null;const h=()=>{m!=null&&clearTimeout(m),m=setTimeout(()=>{m=null,f()},n)},p=()=>{m!==null&&(clearTimeout(m),m=null)},g=()=>{p(),o=void 0,s=null},v=()=>{u()},y=function(...x){if(a!=null&&a.aborted)return;o=this,s=x;const b=m==null;h(),l&&b&&u()};return y.schedule=h,y.cancel=g,y.flush=v,a==null||a.addEventListener("abort",g,{once:!0}),y}e.debounce=t})(zq);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=zq;function r(n,a=0,i={}){typeof i!="object"&&(i={});const{leading:o=!1,trailing:s=!0,maxWait:l}=i,c=Array(2);o&&(c[0]="leading"),s&&(c[1]="trailing");let u,f=null;const m=t.debounce(function(...g){u=n.apply(this,g),f=null},a,{edges:c}),h=function(...g){return l!=null&&(f===null&&(f=Date.now()),Date.now()-f>=l)?(u=n.apply(this,g),f=Date.now(),m.cancel(),m.schedule(),u):(m.apply(this,g),u)},p=()=>(m.flush(),u);return h.cancel=m.cancel,h.flush=p,h}e.debounce=r})(Bq);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Bq;function r(n,a=0,i={}){const{leading:o=!0,trailing:s=!0}=i;return t.debounce(n,a,{leading:o,maxWait:a,trailing:s})}e.throttle=r})(Lq);var $De=Lq.throttle;const _De=ia($De);var AF=function(t,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;ia[o++]))}},Hq=(e,t,r)=>{var{width:n="100%",height:a="100%",aspect:i,maxHeight:o}=r,s=Ml(n)?e:Number(n),l=Ml(a)?t:Number(a);return i&&i>0&&(s?l=s/i:l&&(s=l*i),o&&l!=null&&l>o&&(l=o)),{calculatedWidth:s,calculatedHeight:l}},ODe={width:0,height:0,overflow:"visible"},TDe={width:0,overflowX:"visible"},PDe={height:0,overflowY:"visible"},IDe={},NDe=e=>{var{width:t,height:r}=e,n=Ml(t),a=Ml(r);return n&&a?ODe:n?TDe:a?PDe:IDe};function kDe(e){var{width:t,height:r,aspect:n}=e,a=t,i=r;return a===void 0&&i===void 0?(a="100%",i="100%"):a===void 0?a=n&&n>0?void 0:"100%":i===void 0&&(i=n&&n>0?void 0:"100%"),{width:a,height:i}}function FO(){return FO=Object.assign?Object.assign.bind():function(e){for(var t=1;t({width:r,height:n}),[r,n]);return DDe(a)?d.createElement(Wq.Provider,{value:a},t):null}var ek=()=>d.useContext(Wq),jDe=d.forwardRef((e,t)=>{var{aspect:r,initialDimension:n={width:-1,height:-1},width:a,height:i,minWidth:o=0,minHeight:s,maxHeight:l,children:c,debounce:u=0,id:f,className:m,onResize:h,style:p={}}=e,g=d.useRef(null),v=d.useRef();v.current=h,d.useImperativeHandle(t,()=>g.current);var[y,x]=d.useState({containerWidth:n.width,containerHeight:n.height}),b=d.useCallback((O,_)=>{x(P=>{var I=Math.round(O),N=Math.round(_);return P.containerWidth===I&&P.containerHeight===N?P:{containerWidth:I,containerHeight:N}})},[]);d.useEffect(()=>{if(g.current==null||typeof ResizeObserver>"u")return Lv;var O=N=>{var D,{width:k,height:R}=N[0].contentRect;b(k,R),(D=v.current)===null||D===void 0||D.call(v,k,R)};u>0&&(O=_De(O,u,{trailing:!0,leading:!1}));var _=new ResizeObserver(O),{width:P,height:I}=g.current.getBoundingClientRect();return b(P,I),_.observe(g.current),()=>{_.disconnect()}},[b,u]);var{containerWidth:S,containerHeight:w}=y;AF(!r||r>0,"The aspect(%s) must be greater than zero.",r);var{calculatedWidth:E,calculatedHeight:C}=Hq(S,w,{width:a,height:i,aspect:r,maxHeight:l});return AF(E!=null&&E>0||C!=null&&C>0,`The width(%s) and height(%s) of chart should be greater than 0, - please check the style of container, or the props width(%s) and height(%s), - or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the - height and width.`,E,C,a,i,o,s,r),d.createElement("div",{id:f?"".concat(f):void 0,className:jn("recharts-responsive-container",m),style:DF(DF({},p),{},{width:a,height:i,minWidth:o,minHeight:s,maxHeight:l}),ref:g},d.createElement("div",{style:NDe({width:a,height:i})},d.createElement(Vq,{width:E,height:C},c)))}),Uq=d.forwardRef((e,t)=>{var r=ek();if(Xc(r.width)&&Xc(r.height))return e.children;var{width:n,height:a}=kDe({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:i,calculatedHeight:o}=Hq(void 0,void 0,{width:n,height:a,aspect:e.aspect,maxHeight:e.maxHeight});return er(i)&&er(o)?d.createElement(Vq,{width:i,height:o},e.children):d.createElement(jDe,FO({},e,{width:n,height:a,ref:t}))});function Kq(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var Ow=()=>{var e,t=mu(),r=rr(CDe),n=rr(_w),a=(e=rr($w))===null||e===void 0?void 0:e.padding;return!t||!n||!a?r:{width:n.width-a.left-a.right,height:n.height-a.top-a.bottom,x:a.left,y:a.top}},FDe={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},LDe=()=>{var e;return(e=rr(ja))!==null&&e!==void 0?e:FDe},Gq=()=>rr(Kl),qq=()=>rr(Gl),BDe=()=>rr(e=>e.layout.margin),Xr=e=>e.layout.layoutType,Tw=()=>rr(Xr),zDe=()=>{var e=Tw();return e!==void 0},Pw=e=>{var t=Fn(),r=mu(),{width:n,height:a}=e,i=ek(),o=n,s=a;return i&&(o=i.width>0?i.width:n,s=i.height>0?i.height:a),d.useEffect(()=>{!r&&Xc(o)&&Xc(s)&&t(Q3e({width:o,height:s}))},[t,r,o,s]),null},Xq=Symbol.for("immer-nothing"),jF=Symbol.for("immer-draftable"),mo=Symbol.for("immer-state");function fs(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Np=Object.getPrototypeOf;function O0(e){return!!e&&!!e[mo]}function wd(e){var t;return e?Yq(e)||Array.isArray(e)||!!e[jF]||!!((t=e.constructor)!=null&&t[jF])||Vv(e)||Nw(e):!1}var HDe=Object.prototype.constructor.toString(),FF=new WeakMap;function Yq(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if(typeof r!="function")return!1;let n=FF.get(r);return n===void 0&&(n=Function.toString.call(r),FF.set(r,n)),n===HDe}function k1(e,t,r=!0){Iw(e)===0?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(a=>{t(a,e[a],e)}):e.forEach((n,a)=>t(a,n,e))}function Iw(e){const t=e[mo];return t?t.type_:Array.isArray(e)?1:Vv(e)?2:Nw(e)?3:0}function LO(e,t){return Iw(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Qq(e,t,r){const n=Iw(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function WDe(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Vv(e){return e instanceof Map}function Nw(e){return e instanceof Set}function Pu(e){return e.copy_||e.base_}function BO(e,t){if(Vv(e))return new Map(e);if(Nw(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=Yq(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[mo];let a=Reflect.ownKeys(n);for(let i=0;i1&&Object.defineProperties(e,{set:xy,add:xy,clear:xy,delete:xy}),Object.freeze(e),t&&Object.values(e).forEach(r=>tk(r,!0))),e}function VDe(){fs(2)}var xy={value:VDe};function kw(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var UDe={};function Cd(e){const t=UDe[e];return t||fs(0,e),t}var kp;function Zq(){return kp}function KDe(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function LF(e,t){t&&(Cd("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function zO(e){HO(e),e.drafts_.forEach(GDe),e.drafts_=null}function HO(e){e===kp&&(kp=e.parent_)}function BF(e){return kp=KDe(kp,e)}function GDe(e){const t=e[mo];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function zF(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[mo].modified_&&(zO(t),fs(4)),wd(e)&&(e=R1(t,e),t.parent_||A1(t,e)),t.patches_&&Cd("Patches").generateReplacementPatches_(r[mo].base_,e,t.patches_,t.inversePatches_)):e=R1(t,r,[]),zO(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Xq?e:void 0}function R1(e,t,r){if(kw(t))return t;const n=e.immer_.shouldUseStrictIteration(),a=t[mo];if(!a)return k1(t,(i,o)=>HF(e,a,t,i,o,r),n),t;if(a.scope_!==e)return t;if(!a.modified_)return A1(e,a.base_,!0),a.base_;if(!a.finalized_){a.finalized_=!0,a.scope_.unfinalizedDrafts_--;const i=a.copy_;let o=i,s=!1;a.type_===3&&(o=new Set(i),i.clear(),s=!0),k1(o,(l,c)=>HF(e,a,i,l,c,r,s),n),A1(e,i,!1),r&&e.patches_&&Cd("Patches").generatePatches_(a,r,e.patches_,e.inversePatches_)}return a.copy_}function HF(e,t,r,n,a,i,o){if(a==null||typeof a!="object"&&!o)return;const s=kw(a);if(!(s&&!o)){if(O0(a)){const l=i&&t&&t.type_!==3&&!LO(t.assigned_,n)?i.concat(n):void 0,c=R1(e,a,l);if(Qq(r,n,c),O0(c))e.canAutoFreeze_=!1;else return}else o&&r.add(a);if(wd(a)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===a&&s)return;R1(e,a),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&(Vv(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&A1(e,a)}}}function A1(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&tk(t,r)}function qDe(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:Zq(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=n,i=rk;r&&(a=[n],i=Rp);const{revoke:o,proxy:s}=Proxy.revocable(a,i);return n.draft_=s,n.revoke_=o,s}var rk={get(e,t){if(t===mo)return e;const r=Pu(e);if(!LO(r,t))return XDe(e,r,t);const n=r[t];return e.finalized_||!wd(n)?n:n===fE(e.base_,t)?(mE(e),e.copy_[t]=VO(n,e)):n},has(e,t){return t in Pu(e)},ownKeys(e){return Reflect.ownKeys(Pu(e))},set(e,t,r){const n=Jq(Pu(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const a=fE(Pu(e),t),i=a==null?void 0:a[mo];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(WDe(r,a)&&(r!==void 0||LO(e.base_,t)))return!0;mE(e),WO(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return fE(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,mE(e),WO(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Pu(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){fs(11)},getPrototypeOf(e){return Np(e.base_)},setPrototypeOf(){fs(12)}},Rp={};k1(rk,(e,t)=>{Rp[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Rp.deleteProperty=function(e,t){return Rp.set.call(this,e,t,void 0)};Rp.set=function(e,t,r){return rk.set.call(this,e[0],t,r,e[0])};function fE(e,t){const r=e[mo];return(r?Pu(r):e)[t]}function XDe(e,t,r){var a;const n=Jq(t,r);return n?"value"in n?n.value:(a=n.get)==null?void 0:a.call(e.draft_):void 0}function Jq(e,t){if(!(t in e))return;let r=Np(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Np(r)}}function WO(e){e.modified_||(e.modified_=!0,e.parent_&&WO(e.parent_))}function mE(e){e.copy_||(e.copy_=BO(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var YDe=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const i=r;r=t;const o=this;return function(l=i,...c){return o.produce(l,u=>r.call(this,u,...c))}}typeof r!="function"&&fs(6),n!==void 0&&typeof n!="function"&&fs(7);let a;if(wd(t)){const i=BF(this),o=VO(t,void 0);let s=!0;try{a=r(o),s=!1}finally{s?zO(i):HO(i)}return LF(i,n),zF(a,i)}else if(!t||typeof t!="object"){if(a=r(t),a===void 0&&(a=t),a===Xq&&(a=void 0),this.autoFreeze_&&tk(a,!0),n){const i=[],o=[];Cd("Patches").generateReplacementPatches_(t,a,i,o),n(i,o)}return a}else fs(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...s)=>this.produceWithPatches(o,l=>t(l,...s));let n,a;return[this.produce(t,r,(o,s)=>{n=o,a=s}),n,a]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){wd(e)||fs(8),O0(e)&&(e=QDe(e));const t=BF(this),r=VO(e,void 0);return r[mo].isManual_=!0,HO(t),r}finishDraft(e,t){const r=e&&e[mo];(!r||!r.isManual_)&&fs(9);const{scope_:n}=r;return LF(n,t),zF(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const a=t[r];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}r>-1&&(t=t.slice(r+1));const n=Cd("Patches").applyPatches_;return O0(e)?n(e,t):this.produce(e,a=>n(a,t))}};function VO(e,t){const r=Vv(e)?Cd("MapSet").proxyMap_(e,t):Nw(e)?Cd("MapSet").proxySet_(e,t):qDe(e,t);return(t?t.scope_:Zq()).drafts_.push(r),r}function QDe(e){return O0(e)||fs(10,e),eX(e)}function eX(e){if(!wd(e)||kw(e))return e;const t=e[mo];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=BO(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=BO(e,!0);return k1(r,(a,i)=>{Qq(r,a,eX(i))},n),t&&(t.finalized_=!1),r}var ZDe=new YDe;ZDe.produce;var JDe={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},tX=Ui({name:"legend",initialState:JDe,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:sn()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,a=ws(e).payload.indexOf(r);a>-1&&(e.payload[a]=n)},prepare:sn()},removeLegendPayload:{reducer(e,t){var r=ws(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:sn()}}}),{setLegendSize:WF,setLegendSettings:eje,addLegendPayload:tje,replaceLegendPayload:rje,removeLegendPayload:nje}=tX.actions,aje=tX.reducer,ije=["contextPayload"];function UO(){return UO=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t(eje(e))},[t,e]),null}function pje(e){var t=Fn();return d.useEffect(()=>(t(WF(e)),()=>{t(WF({width:0,height:0}))}),[t,e]),null}function vje(e,t,r,n){return e==="vertical"&&er(t)?{height:t}:e==="horizontal"?{width:r||n}:null}var gje={align:"center",iconSize:14,itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function rX(e){var t=Zo(e,gje),r=JMe(),n=sAe(),a=BDe(),{width:i,height:o,wrapperStyle:s,portal:l}=t,[c,u]=aq([r]),f=Gq(),m=qq();if(f==null||m==null)return null;var h=f-((a==null?void 0:a.left)||0)-((a==null?void 0:a.right)||0),p=vje(t.layout,o,i,h),g=l?s:T0(T0({position:"absolute",width:(p==null?void 0:p.width)||i||"auto",height:(p==null?void 0:p.height)||o||"auto"},mje(s,t,a,f,m,c)),s),v=l??n;if(v==null||r==null)return null;var y=d.createElement("div",{className:"recharts-legend-wrapper",style:g,ref:u},d.createElement(hje,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!l&&d.createElement(pje,{width:c.width,height:c.height}),d.createElement(fje,UO({},t,p,{margin:a,chartWidth:f,chartHeight:m,contextPayload:r})));return wi.createPortal(y,v)}rX.displayName="Legend";function KO(){return KO=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{separator:t=" : ",contentStyle:r={},itemStyle:n={},labelStyle:a={},payload:i,formatter:o,itemSorter:s,wrapperClassName:l,labelClassName:c,label:u,labelFormatter:f,accessibilityLayer:m=!1}=e,h=()=>{if(i&&i.length){var w={padding:0,margin:0},E=(s?hw(i,s):i).map((C,O)=>{if(C.type==="none")return null;var _=C.formatter||o||Sje,{value:P,name:I}=C,N=P,D=I;if(_){var k=_(P,I,C,O,i);if(Array.isArray(k))[N,D]=k;else if(k!=null)N=k;else return null}var R=hE({display:"block",paddingTop:4,paddingBottom:4,color:C.color||"#000"},n);return d.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(O),style:R},Dl(D)?d.createElement("span",{className:"recharts-tooltip-item-name"},D):null,Dl(D)?d.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,d.createElement("span",{className:"recharts-tooltip-item-value"},N),d.createElement("span",{className:"recharts-tooltip-item-unit"},C.unit||""))});return d.createElement("ul",{className:"recharts-tooltip-item-list",style:w},E)}return null},p=hE({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},r),g=hE({margin:0},a),v=!fo(u),y=v?u:"",x=jn("recharts-default-tooltip",l),b=jn("recharts-tooltip-label",c);v&&f&&i!==void 0&&i!==null&&(y=f(u,i));var S=m?{role:"status","aria-live":"assertive"}:{};return d.createElement("div",KO({className:x,style:p},S),d.createElement("p",{className:b,style:g},d.isValidElement(y)?y:"".concat(y)),h())},Um="recharts-tooltip-wrapper",Cje={visibility:"hidden"};function Eje(e){var{coordinate:t,translateX:r,translateY:n}=e;return jn(Um,{["".concat(Um,"-right")]:er(r)&&t&&er(t.x)&&r>=t.x,["".concat(Um,"-left")]:er(r)&&t&&er(t.x)&&r=t.y,["".concat(Um,"-top")]:er(n)&&t&&er(t.y)&&n0?a:0),f=r[n]+a;if(t[n])return o[n]?u:f;var m=l[n];if(m==null)return 0;if(o[n]){var h=u,p=m;return hv?Math.max(u,m):Math.max(f,m)}function $je(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function _je(e){var{allowEscapeViewBox:t,coordinate:r,offsetTopLeft:n,position:a,reverseDirection:i,tooltipBox:o,useTranslate3d:s,viewBox:l}=e,c,u,f;return o.height>0&&o.width>0&&r?(u=KF({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),f=KF({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),c=$je({translateX:u,translateY:f,useTranslate3d:s})):c=Cje,{cssProperties:c,cssClasses:Eje({translateX:u,translateY:f,coordinate:r})}}function GF(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function by(e){for(var t=1;t{if(t.key==="Escape"){var r,n,a,i;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(r=(n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==null&&r!==void 0?r:0,y:(a=(i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==null&&a!==void 0?a:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,r;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((r=this.props.coordinate)===null||r===void 0?void 0:r.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:r,animationDuration:n,animationEasing:a,children:i,coordinate:o,hasPayload:s,isAnimationActive:l,offset:c,position:u,reverseDirection:f,useTranslate3d:m,viewBox:h,wrapperStyle:p,lastBoundingBox:g,innerRef:v,hasPortalFromProps:y}=this.props,{cssClasses:x,cssProperties:b}=_je({allowEscapeViewBox:r,coordinate:o,offsetTopLeft:c,position:u,reverseDirection:f,tooltipBox:{height:g.height,width:g.width},useTranslate3d:m,viewBox:h}),S=y?{}:by(by({transition:l&&t?"transform ".concat(n,"ms ").concat(a):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&s?"visible":"hidden",position:"absolute",top:0,left:0}),w=by(by({},S),{},{visibility:!this.state.dismissed&&t&&s?"visible":"hidden"},p);return d.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:x,style:w,ref:v},i)}}var nX=()=>{var e;return(e=rr(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function qO(){return qO=Object.assign?Object.assign.bind():function(e){for(var t=1;taa(e.x)&&aa(e.y),QF=e=>e.base!=null&&M1(e.base)&&M1(e),Km=e=>e.x,Gm=e=>e.y,Rje=(e,t)=>{if(typeof e=="function")return e;var r="curve".concat(Fv(e));return(r==="curveMonotone"||r==="curveBump")&&t?YF["".concat(r).concat(t==="vertical"?"Y":"X")]:YF[r]||sw},Aje=e=>{var{type:t="linear",points:r=[],baseLine:n,layout:a,connectNulls:i=!1}=e,o=Rje(t,a),s=i?r.filter(M1):r,l;if(Array.isArray(n)){var c=r.map((h,p)=>XF(XF({},h),{},{base:n[p]}));a==="vertical"?l=fy().y(Gm).x1(Km).x0(h=>h.base.x):l=fy().x(Km).y1(Gm).y0(h=>h.base.y);var u=l.defined(QF).curve(o),f=i?c.filter(QF):c;return u(f)}a==="vertical"&&er(n)?l=fy().y(Gm).x1(Km).x0(n):er(n)?l=fy().x(Km).y1(Gm).y0(n):l=fG().x(Km).y(Gm);var m=l.defined(M1).curve(o);return m(s)},nk=e=>{var{className:t,points:r,path:n,pathRef:a}=e,i=Tw();if((!r||!r.length)&&!n)return null;var o={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||i,connectNulls:e.connectNulls},s=r&&r.length?Aje(o):n;return d.createElement("path",qO({},C0(e),rMe(e),{className:jn("recharts-curve",t),d:s===null?void 0:s,ref:a}))},Mje=["x","y","top","left","width","height","className"];function XO(){return XO=Object.assign?Object.assign.bind():function(e){for(var t=1;t"M".concat(e,",").concat(a,"v").concat(n,"M").concat(i,",").concat(t,"h").concat(r),Wje=e=>{var{x:t=0,y:r=0,top:n=0,left:a=0,width:i=0,height:o=0,className:s}=e,l=Bje(e,Mje),c=Dje({x:t,y:r,top:n,left:a,width:i,height:o},l);return!er(t)||!er(r)||!er(i)||!er(o)||!er(n)||!er(a)?null:d.createElement("path",XO({},Ko(c),{className:jn("recharts-cross",s),d:Hje(t,r,i,o,n,a)}))};function Vje(e,t,r,n){var a=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-a,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function JF(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function e6(e){for(var t=1;te.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),aX=(e,t,r)=>e.map(n=>"".concat(qje(n)," ").concat(t,"ms ").concat(r)).join(","),Xje=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((r,n)=>r.filter(a=>n.includes(a))),Ap=(e,t)=>Object.keys(t).reduce((r,n)=>e6(e6({},r),{},{[n]:e(n,t[n])}),{});function t6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function ua(e){for(var t=1;te+(t-e)*r,YO=e=>{var{from:t,to:r}=e;return t!==r},iX=(e,t,r)=>{var n=Ap((a,i)=>{if(YO(i)){var[o,s]=e(i.from,i.to,i.velocity);return ua(ua({},i),{},{from:o,velocity:s})}return i},t);return r<1?Ap((a,i)=>YO(i)&&n[a]!=null?ua(ua({},i),{},{velocity:D1(i.velocity,n[a].velocity,r),from:D1(i.from,n[a].from,r)}):i,t):iX(e,n,r-1)};function Jje(e,t,r,n,a,i){var o,s=n.reduce((m,h)=>ua(ua({},m),{},{[h]:{from:e[h],velocity:0,to:t[h]}}),{}),l=()=>Ap((m,h)=>h.from,s),c=()=>!Object.values(s).filter(YO).length,u=null,f=m=>{o||(o=m);var h=m-o,p=h/r.dt;s=iX(r,s,p),a(ua(ua(ua({},e),t),l())),o=m,c()||(u=i.setTimeout(f))};return()=>(u=i.setTimeout(f),()=>{var m;(m=u)===null||m===void 0||m()})}function eFe(e,t,r,n,a,i,o){var s=null,l=a.reduce((f,m)=>{var h=e[m],p=t[m];return h==null||p==null?f:ua(ua({},f),{},{[m]:[h,p]})},{}),c,u=f=>{c||(c=f);var m=(f-c)/n,h=Ap((g,v)=>D1(...v,r(m)),l);if(i(ua(ua(ua({},e),t),h)),m<1)s=o.setTimeout(u);else{var p=Ap((g,v)=>D1(...v,r(1)),l);i(ua(ua(ua({},e),t),p))}};return()=>(s=o.setTimeout(u),()=>{var f;(f=s)===null||f===void 0||f()})}const tFe=(e,t,r,n,a,i)=>{var o=Xje(e,t);return r==null?()=>(a(ua(ua({},e),t)),()=>{}):r.isStepper===!0?Jje(e,t,r,o,a,i):eFe(e,t,r,n,o,a,i)};var j1=1e-4,oX=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],sX=(e,t)=>e.map((r,n)=>r*t**n).reduce((r,n)=>r+n),r6=(e,t)=>r=>{var n=oX(e,t);return sX(n,r)},rFe=(e,t)=>r=>{var n=oX(e,t),a=[...n.map((i,o)=>i*o).slice(1),0];return sX(a,r)},nFe=e=>{var t,r=e.split("(");if(r.length!==2||r[0]!=="cubic-bezier")return null;var n=(t=r[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(n==null||n.length!==4)return null;var a=n.map(i=>parseFloat(i));return[a[0],a[1],a[2],a[3]]},aFe=function(){for(var t=arguments.length,r=new Array(t),n=0;n{var a=r6(e,r),i=r6(t,n),o=rFe(e,r),s=c=>c>1?1:c<0?0:c,l=c=>{for(var u=c>1?1:c,f=u,m=0;m<8;++m){var h=a(f)-u,p=o(f);if(Math.abs(h-u)0&&arguments[0]!==void 0?arguments[0]:{},{stiff:r=100,damping:n=8,dt:a=17}=t,i=(o,s,l)=>{var c=-(o-s)*r,u=l*n,f=l+(c-u)*a/1e3,m=l*a/1e3+o;return Math.abs(m-s){if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return n6(e);case"spring":return oFe();default:if(e.split("(")[0]==="cubic-bezier")return n6(e)}return typeof e=="function"?e:null};function lFe(e){var t,r=()=>null,n=!1,a=null,i=o=>{if(!n){if(Array.isArray(o)){if(!o.length)return;var s=o,[l,...c]=s;if(typeof l=="number"){a=e.setTimeout(i.bind(null,c),l);return}i(l),a=e.setTimeout(i.bind(null,c));return}typeof o=="string"&&(t=o,r(t)),typeof o=="object"&&(t=o,r(t)),typeof o=="function"&&o()}};return{stop:()=>{n=!0},start:o=>{n=!1,a&&(a(),a=null),i(o)},subscribe:o=>(r=o,()=>{r=()=>null}),getTimeoutController:()=>e}}class cFe{setTimeout(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),a=null,i=o=>{o-n>=r?t(o):typeof requestAnimationFrame=="function"&&(a=requestAnimationFrame(i))};return a=requestAnimationFrame(i),()=>{a!=null&&cancelAnimationFrame(a)}}}function uFe(){return lFe(new cFe)}var dFe=d.createContext(uFe);function fFe(e,t){var r=d.useContext(dFe);return d.useMemo(()=>t??r(e),[e,t,r])}var mFe=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),ak={devToolsEnabled:!0,isSsr:mFe()},hFe={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},a6={t:0},pE={t:1};function ik(e){var t=Zo(e,hFe),{isActive:r,canBegin:n,duration:a,easing:i,begin:o,onAnimationEnd:s,onAnimationStart:l,children:c}=t,u=r==="auto"?!ak.isSsr:r,f=fFe(t.animationId,t.animationManager),[m,h]=d.useState(u?a6:pE),p=d.useRef(null);return d.useEffect(()=>{u||h(pE)},[u]),d.useEffect(()=>{if(!u||!n)return Lv;var g=tFe(a6,pE,sFe(i),a,h,f.getTimeoutController()),v=()=>{p.current=g()};return f.start([l,o,v,a,s]),()=>{f.stop(),p.current&&p.current(),s()}},[u,n,a,i,o,l,s,f]),c(m.t)}function ok(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",r=d.useRef(Op(t)),n=d.useRef(e);return n.current!==e&&(r.current=Op(t),n.current=e),r.current}var pFe=["radius"],vFe=["radius"],i6,o6,s6,l6,c6,u6,d6,f6,m6,h6;function p6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function v6(e){for(var t=1;t{var i=Cc(r),o=Cc(n),s=Math.min(Math.abs(i)/2,Math.abs(o)/2),l=o>=0?1:-1,c=i>=0?1:-1,u=o>=0&&i>=0||o<0&&i<0?1:0,f;if(s>0&&a instanceof Array){for(var m=[0,0,0,0],h=0,p=4;hs?s:a[h];f=bn(i6||(i6=js(["M",",",""])),e,t+l*m[0]),m[0]>0&&(f+=bn(o6||(o6=js(["A ",",",",0,0,",",",",",""])),m[0],m[0],u,e+c*m[0],t)),f+=bn(s6||(s6=js(["L ",",",""])),e+r-c*m[1],t),m[1]>0&&(f+=bn(l6||(l6=js(["A ",",",",0,0,",`, - `,",",""])),m[1],m[1],u,e+r,t+l*m[1])),f+=bn(c6||(c6=js(["L ",",",""])),e+r,t+n-l*m[2]),m[2]>0&&(f+=bn(u6||(u6=js(["A ",",",",0,0,",`, - `,",",""])),m[2],m[2],u,e+r-c*m[2],t+n)),f+=bn(d6||(d6=js(["L ",",",""])),e+c*m[3],t+n),m[3]>0&&(f+=bn(f6||(f6=js(["A ",",",",0,0,",`, - `,",",""])),m[3],m[3],u,e,t+n-l*m[3])),f+="Z"}else if(s>0&&a===+a&&a>0){var g=Math.min(s,a);f=bn(m6||(m6=js(["M ",",",` - A `,",",",0,0,",",",",",` - L `,",",` - A `,",",",0,0,",",",",",` - L `,",",` - A `,",",",0,0,",",",",",` - L `,",",` - A `,",",",0,0,",",",","," Z"])),e,t+l*g,g,g,u,e+c*g,t,e+r-c*g,t,g,g,u,e+r,t+l*g,e+r,t+n-l*g,g,g,u,e+r-c*g,t+n,e+c*g,t+n,g,g,u,e,t+n-l*g)}else f=bn(h6||(h6=js(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return f},x6={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},lX=e=>{var t=Zo(e,x6),r=d.useRef(null),[n,a]=d.useState(-1);d.useEffect(()=>{if(r.current&&r.current.getTotalLength)try{var A=r.current.getTotalLength();A&&a(A)}catch{}},[]);var{x:i,y:o,width:s,height:l,radius:c,className:u}=t,{animationEasing:f,animationDuration:m,animationBegin:h,isAnimationActive:p,isUpdateAnimationActive:g}=t,v=d.useRef(s),y=d.useRef(l),x=d.useRef(i),b=d.useRef(o),S=d.useMemo(()=>({x:i,y:o,width:s,height:l,radius:c}),[i,o,s,l,c]),w=ok(S,"rectangle-");if(i!==+i||o!==+o||s!==+s||l!==+l||s===0||l===0)return null;var E=jn("recharts-rectangle",u);if(!g){var C=Ko(t),O=g6(C,pFe);return d.createElement("path",F1({},O,{x:Cc(i),y:Cc(o),width:Cc(s),height:Cc(l),radius:typeof c=="number"?c:void 0,className:E,d:y6(i,o,s,l,c)}))}var _=v.current,P=y.current,I=x.current,N=b.current,D="0px ".concat(n===-1?1:n,"px"),k="".concat(n,"px 0px"),R=aX(["strokeDasharray"],m,typeof f=="string"?f:x6.animationEasing);return d.createElement(ik,{animationId:w,key:w,canBegin:n>0,duration:m,easing:f,isActive:g,begin:h},A=>{var j=us(_,s,A),F=us(P,l,A),M=us(I,i,A),V=us(N,o,A);r.current&&(v.current=j,y.current=F,x.current=M,b.current=V);var K;p?A>0?K={transition:R,strokeDasharray:k}:K={strokeDasharray:D}:K={strokeDasharray:k};var L=Ko(t),B=g6(L,vFe);return d.createElement("path",F1({},B,{radius:typeof c=="number"?c:void 0,className:E,d:y6(M,V,j,F,c),ref:r,style:v6(v6({},K),t.style)}))})};function b6(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function S6(e){for(var t=1;te*180/Math.PI,ea=(e,t,r,n)=>({x:e+Math.cos(-L1*n)*r,y:t+Math.sin(-L1*n)*r}),cX=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},$Fe=(e,t)=>{var{x:r,y:n}=e,{x:a,y:i}=t;return Math.sqrt((r-a)**2+(n-i)**2)},_Fe=(e,t)=>{var{x:r,y:n}=e,{cx:a,cy:i}=t,o=$Fe({x:r,y:n},{x:a,y:i});if(o<=0)return{radius:o,angle:0};var s=(r-a)/o,l=Math.acos(s);return n>i&&(l=2*Math.PI-l),{radius:o,angle:EFe(l),angleInRadian:l}},OFe=e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),a=Math.floor(r/360),i=Math.min(n,a);return{startAngle:t-i*360,endAngle:r-i*360}},TFe=(e,t)=>{var{startAngle:r,endAngle:n}=t,a=Math.floor(r/360),i=Math.floor(n/360),o=Math.min(a,i);return e+o*360},PFe=(e,t)=>{var{chartX:r,chartY:n}=e,{radius:a,angle:i}=_Fe({x:r,y:n},t),{innerRadius:o,outerRadius:s}=t;if(as||a===0)return null;var{startAngle:l,endAngle:c}=OFe(t),u=i,f;if(l<=c){for(;u>c;)u-=360;for(;u=l&&u<=c}else{for(;u>l;)u-=360;for(;u=c&&u<=l}return f?S6(S6({},t),{},{radius:a,angle:TFe(u,t)}):null};function uX(e){var{cx:t,cy:r,radius:n,startAngle:a,endAngle:i}=e,o=ea(t,r,n,a),s=ea(t,r,n,i);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:a,endAngle:i}}var w6,C6,E6,$6,_6,O6,T6;function QO(){return QO=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var r=Mi(t-e),n=Math.min(Math.abs(t-e),359.999);return r*n},Sy=e=>{var{cx:t,cy:r,radius:n,angle:a,sign:i,isExternal:o,cornerRadius:s,cornerIsExternal:l}=e,c=s*(o?1:-1)+n,u=Math.asin(s/c)/L1,f=l?a:a+i*u,m=ea(t,r,c,f),h=ea(t,r,n,f),p=l?a-i*u:a,g=ea(t,r,c*Math.cos(u*L1),p);return{center:m,circleTangency:h,lineTangency:g,theta:u}},dX=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:a,startAngle:i,endAngle:o}=e,s=IFe(i,o),l=i+s,c=ea(t,r,a,i),u=ea(t,r,a,l),f=bn(w6||(w6=Vu(["M ",",",` - A `,",",`,0, - `,",",`, - `,",",` - `])),c.x,c.y,a,a,+(Math.abs(s)>180),+(i>l),u.x,u.y);if(n>0){var m=ea(t,r,n,i),h=ea(t,r,n,l);f+=bn(C6||(C6=Vu(["L ",",",` - A `,",",`,0, - `,",",`, - `,","," Z"])),h.x,h.y,n,n,+(Math.abs(s)>180),+(i<=l),m.x,m.y)}else f+=bn(E6||(E6=Vu(["L ",","," Z"])),t,r);return f},NFe=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:a,cornerRadius:i,forceCornerRadius:o,cornerIsExternal:s,startAngle:l,endAngle:c}=e,u=Mi(c-l),{circleTangency:f,lineTangency:m,theta:h}=Sy({cx:t,cy:r,radius:a,angle:l,sign:u,cornerRadius:i,cornerIsExternal:s}),{circleTangency:p,lineTangency:g,theta:v}=Sy({cx:t,cy:r,radius:a,angle:c,sign:-u,cornerRadius:i,cornerIsExternal:s}),y=s?Math.abs(l-c):Math.abs(l-c)-h-v;if(y<0)return o?bn($6||($6=Vu(["M ",",",` - a`,",",",0,0,1,",`,0 - a`,",",",0,0,1,",`,0 - `])),m.x,m.y,i,i,i*2,i,i,-i*2):dX({cx:t,cy:r,innerRadius:n,outerRadius:a,startAngle:l,endAngle:c});var x=bn(_6||(_6=Vu(["M ",",",` - A`,",",",0,0,",",",",",` - A`,",",",0,",",",",",",",` - A`,",",",0,0,",",",",",` - `])),m.x,m.y,i,i,+(u<0),f.x,f.y,a,a,+(y>180),+(u<0),p.x,p.y,i,i,+(u<0),g.x,g.y);if(n>0){var{circleTangency:b,lineTangency:S,theta:w}=Sy({cx:t,cy:r,radius:n,angle:l,sign:u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),{circleTangency:E,lineTangency:C,theta:O}=Sy({cx:t,cy:r,radius:n,angle:c,sign:-u,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),_=s?Math.abs(l-c):Math.abs(l-c)-w-O;if(_<0&&i===0)return"".concat(x,"L").concat(t,",").concat(r,"Z");x+=bn(O6||(O6=Vu(["L",",",` - A`,",",",0,0,",",",",",` - A`,",",",0,",",",",",",",` - A`,",",",0,0,",",",",","Z"])),C.x,C.y,i,i,+(u<0),E.x,E.y,n,n,+(_>180),+(u>0),b.x,b.y,i,i,+(u<0),S.x,S.y)}else x+=bn(T6||(T6=Vu(["L",",","Z"])),t,r);return x},kFe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},fX=e=>{var t=Zo(e,kFe),{cx:r,cy:n,innerRadius:a,outerRadius:i,cornerRadius:o,forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u,className:f}=t;if(i0&&Math.abs(c-u)<360?g=NFe({cx:r,cy:n,innerRadius:a,outerRadius:i,cornerRadius:Math.min(p,h/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:c,endAngle:u}):g=dX({cx:r,cy:n,innerRadius:a,outerRadius:i,startAngle:c,endAngle:u}),d.createElement("path",QO({},Ko(t),{className:m,d:g}))};function RFe(e,t,r){if(e==="horizontal")return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if(e==="vertical")return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(OG(t)){if(e==="centric"){var{cx:n,cy:a,innerRadius:i,outerRadius:o,angle:s}=t,l=ea(n,a,i,s),c=ea(n,a,o,s);return[{x:l.x,y:l.y},{x:c.x,y:c.y}]}return uX(t)}}var mX={},hX={},pX={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=VN;function r(n){return t.isSymbol(n)?NaN:Number(n)}e.toNumber=r})(pX);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=pX;function r(n){return n?(n=t.toNumber(n),n===1/0||n===-1/0?(n<0?-1:1)*Number.MAX_VALUE:n===n?n:0):n===0?n:0}e.toFinite=r})(hX);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=UN,r=hX;function n(a,i,o){o&&typeof o!="number"&&t.isIterateeCall(a,i,o)&&(i=o=void 0),a=r.toFinite(a),i===void 0?(i=a,a=0):i=r.toFinite(i),o=o===void 0?at?1:e>=t?0:NaN}function MFe(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function sk(e){let t,r,n;e.length!==2?(t=Lc,r=(s,l)=>Lc(e(s),l),n=(s,l)=>e(s)-l):(t=e===Lc||e===MFe?e:DFe,r=e,n=e);function a(s,l,c=0,u=s.length){if(c>>1;r(s[f],l)<0?c=f+1:u=f}while(c>>1;r(s[f],l)<=0?c=f+1:u=f}while(cc&&n(s[f-1],l)>-n(s[f],l)?f-1:f}return{left:a,center:o,right:i}}function DFe(){return 0}function gX(e){return e===null?NaN:+e}function*jFe(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)(n=t(n,++r,e))!=null&&(n=+n)>=n&&(yield n)}}const FFe=sk(Lc),LFe=FFe.right;sk(gX).center;const Uv=LFe;class P6 extends Map{constructor(t,r=HFe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,a]of t)this.set(n,a)}get(t){return super.get(I6(this,t))}has(t){return super.has(I6(this,t))}set(t,r){return super.set(BFe(this,t),r)}delete(t){return super.delete(zFe(this,t))}}function I6({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function BFe({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function zFe({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function HFe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function WFe(e=Lc){if(e===Lc)return yX;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function yX(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const VFe=Math.sqrt(50),UFe=Math.sqrt(10),KFe=Math.sqrt(2);function B1(e,t,r){const n=(t-e)/Math.max(0,r),a=Math.floor(Math.log10(n)),i=n/Math.pow(10,a),o=i>=VFe?10:i>=UFe?5:i>=KFe?2:1;let s,l,c;return a<0?(c=Math.pow(10,-a)/o,s=Math.round(e*c),l=Math.round(t*c),s/ct&&--l,c=-c):(c=Math.pow(10,a)*o,s=Math.round(e/c),l=Math.round(t/c),s*ct&&--l),l0))return[];if(e===t)return[e];const n=t=a))return[];const s=i-a+1,l=new Array(s);if(n)if(o<0)for(let c=0;c=n)&&(r=n);else{let n=-1;for(let a of e)(a=t(a,++n,e))!=null&&(r=a)&&(r=a)}return r}function k6(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let a of e)(a=t(a,++n,e))!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}return r}function xX(e,t,r=0,n=1/0,a){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(a=a===void 0?yX:WFe(a);n>r;){if(n-r>600){const l=n-r+1,c=t-r+1,u=Math.log(l),f=.5*Math.exp(2*u/3),m=.5*Math.sqrt(u*f*(l-f)/l)*(c-l/2<0?-1:1),h=Math.max(r,Math.floor(t-c*f/l+m)),p=Math.min(n,Math.floor(t+(l-c)*f/l+m));xX(e,t,h,p,a)}const i=e[t];let o=r,s=n;for(qm(e,r,t),a(e[n],i)>0&&qm(e,r,n);o0;)--s}a(e[r],i)===0?qm(e,r,s):(++s,qm(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function qm(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function GFe(e,t,r){if(e=Float64Array.from(jFe(e,r)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return k6(e);if(t>=1)return N6(e);var n,a=(n-1)*t,i=Math.floor(a),o=N6(xX(e,i).subarray(0,i+1)),s=k6(e.subarray(i+1));return o+(s-o)*(a-i)}}function qFe(e,t,r=gX){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,a=(n-1)*t,i=Math.floor(a),o=+r(e[i],i,e),s=+r(e[i+1],i+1,e);return o+(s-o)*(a-i)}}function XFe(e,t,r){e=+e,t=+t,r=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+r;for(var n=-1,a=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(a);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?wy(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?wy(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=ZFe.exec(e))?new Di(t[1],t[2],t[3],1):(t=JFe.exec(e))?new Di(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=e6e.exec(e))?wy(t[1],t[2],t[3],t[4]):(t=t6e.exec(e))?wy(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=r6e.exec(e))?L6(t[1],t[2]/100,t[3]/100,1):(t=n6e.exec(e))?L6(t[1],t[2]/100,t[3]/100,t[4]):R6.hasOwnProperty(e)?D6(R6[e]):e==="transparent"?new Di(NaN,NaN,NaN,0):null}function D6(e){return new Di(e>>16&255,e>>8&255,e&255,1)}function wy(e,t,r,n){return n<=0&&(e=t=r=NaN),new Di(e,t,r,n)}function o6e(e){return e instanceof Kv||(e=jp(e)),e?(e=e.rgb(),new Di(e.r,e.g,e.b,e.opacity)):new Di}function rT(e,t,r,n){return arguments.length===1?o6e(e):new Di(e,t,r,n??1)}function Di(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}uk(Di,rT,SX(Kv,{brighter(e){return e=e==null?z1:Math.pow(z1,e),new Di(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Mp:Math.pow(Mp,e),new Di(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Di(ed(this.r),ed(this.g),ed(this.b),H1(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:j6,formatHex:j6,formatHex8:s6e,formatRgb:F6,toString:F6}));function j6(){return`#${Uu(this.r)}${Uu(this.g)}${Uu(this.b)}`}function s6e(){return`#${Uu(this.r)}${Uu(this.g)}${Uu(this.b)}${Uu((isNaN(this.opacity)?1:this.opacity)*255)}`}function F6(){const e=H1(this.opacity);return`${e===1?"rgb(":"rgba("}${ed(this.r)}, ${ed(this.g)}, ${ed(this.b)}${e===1?")":`, ${e})`}`}function H1(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ed(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Uu(e){return e=ed(e),(e<16?"0":"")+e.toString(16)}function L6(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new ms(e,t,r,n)}function wX(e){if(e instanceof ms)return new ms(e.h,e.s,e.l,e.opacity);if(e instanceof Kv||(e=jp(e)),!e)return new ms;if(e instanceof ms)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=NaN,s=i-a,l=(i+a)/2;return s?(t===i?o=(r-n)/s+(r0&&l<1?0:o,new ms(o,s,l,e.opacity)}function l6e(e,t,r,n){return arguments.length===1?wX(e):new ms(e,t,r,n??1)}function ms(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}uk(ms,l6e,SX(Kv,{brighter(e){return e=e==null?z1:Math.pow(z1,e),new ms(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Mp:Math.pow(Mp,e),new ms(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,a=2*r-n;return new Di(vE(e>=240?e-240:e+120,a,n),vE(e,a,n),vE(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new ms(B6(this.h),Cy(this.s),Cy(this.l),H1(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=H1(this.opacity);return`${e===1?"hsl(":"hsla("}${B6(this.h)}, ${Cy(this.s)*100}%, ${Cy(this.l)*100}%${e===1?")":`, ${e})`}`}}));function B6(e){return e=(e||0)%360,e<0?e+360:e}function Cy(e){return Math.max(0,Math.min(1,e||0))}function vE(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const dk=e=>()=>e;function c6e(e,t){return function(r){return e+r*t}}function u6e(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function d6e(e){return(e=+e)==1?CX:function(t,r){return r-t?u6e(t,r,e):dk(isNaN(t)?r:t)}}function CX(e,t){var r=t-e;return r?c6e(e,r):dk(isNaN(e)?t:e)}const z6=function e(t){var r=d6e(t);function n(a,i){var o=r((a=rT(a)).r,(i=rT(i)).r),s=r(a.g,i.g),l=r(a.b,i.b),c=CX(a.opacity,i.opacity);return function(u){return a.r=o(u),a.g=s(u),a.b=l(u),a.opacity=c(u),a+""}}return n.gamma=e,n}(1);function f6e(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),a;return function(i){for(a=0;ar&&(i=t.slice(r,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,l.push({i:o,x:W1(n,a)})),r=gE.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function C6e(e,t,r){var n=e[0],a=e[1],i=t[0],o=t[1];return a2?E6e:C6e,l=c=null,f}function f(m){return m==null||isNaN(m=+m)?i:(l||(l=s(e.map(n),t,r)))(n(o(m)))}return f.invert=function(m){return o(a((c||(c=s(t,e.map(n),W1)))(m)))},f.domain=function(m){return arguments.length?(e=Array.from(m,V1),u()):e.slice()},f.range=function(m){return arguments.length?(t=Array.from(m),u()):t.slice()},f.rangeRound=function(m){return t=Array.from(m),r=fk,u()},f.clamp=function(m){return arguments.length?(o=m?!0:bi,u()):o!==bi},f.interpolate=function(m){return arguments.length?(r=m,u()):r},f.unknown=function(m){return arguments.length?(i=m,f):i},function(m,h){return n=m,a=h,u()}}function mk(){return Rw()(bi,bi)}function $6e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function U1(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function P0(e){return e=U1(Math.abs(e)),e?e[1]:NaN}function _6e(e,t){return function(r,n){for(var a=r.length,i=[],o=0,s=e[0],l=0;a>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),i.push(r.substring(a-=s,a+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function O6e(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var T6e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Fp(e){if(!(t=T6e.exec(e)))throw new Error("invalid format: "+e);var t;return new hk({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Fp.prototype=hk.prototype;function hk(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}hk.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function P6e(e){e:for(var t=e.length,r=1,n=-1,a;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(a+1):e}var EX;function I6e(e,t){var r=U1(e,t);if(!r)return e+"";var n=r[0],a=r[1],i=a-(EX=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=n.length;return i===o?n:i>o?n+new Array(i-o+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+U1(e,Math.max(0,t+i-1))[0]}function W6(e,t){var r=U1(e,t);if(!r)return e+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const V6={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:$6e,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>W6(e*100,t),r:W6,s:I6e,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function U6(e){return e}var K6=Array.prototype.map,G6=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function N6e(e){var t=e.grouping===void 0||e.thousands===void 0?U6:_6e(K6.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?U6:O6e(K6.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(f){f=Fp(f);var m=f.fill,h=f.align,p=f.sign,g=f.symbol,v=f.zero,y=f.width,x=f.comma,b=f.precision,S=f.trim,w=f.type;w==="n"?(x=!0,w="g"):V6[w]||(b===void 0&&(b=12),S=!0,w="g"),(v||m==="0"&&h==="=")&&(v=!0,m="0",h="=");var E=g==="$"?r:g==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",C=g==="$"?n:/[%p]/.test(w)?o:"",O=V6[w],_=/[defgprs%]/.test(w);b=b===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function P(I){var N=E,D=C,k,R,A;if(w==="c")D=O(I)+D,I="";else{I=+I;var j=I<0||1/I<0;if(I=isNaN(I)?l:O(Math.abs(I),b),S&&(I=P6e(I)),j&&+I==0&&p!=="+"&&(j=!1),N=(j?p==="("?p:s:p==="-"||p==="("?"":p)+N,D=(w==="s"?G6[8+EX/3]:"")+D+(j&&p==="("?")":""),_){for(k=-1,R=I.length;++kA||A>57){D=(A===46?a+I.slice(k+1):I.slice(k))+D,I=I.slice(0,k);break}}}x&&!v&&(I=t(I,1/0));var F=N.length+I.length+D.length,M=F>1)+N+I+D+M.slice(F);break;default:I=M+N+I+D;break}return i(I)}return P.toString=function(){return f+""},P}function u(f,m){var h=c((f=Fp(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(P0(m)/3)))*3,g=Math.pow(10,-p),v=G6[8+p/3];return function(y){return h(g*y)+v}}return{format:c,formatPrefix:u}}var Ey,pk,$X;k6e({thousands:",",grouping:[3],currency:["$",""]});function k6e(e){return Ey=N6e(e),pk=Ey.format,$X=Ey.formatPrefix,Ey}function R6e(e){return Math.max(0,-P0(Math.abs(e)))}function A6e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(P0(t)/3)))*3-P0(Math.abs(e)))}function M6e(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,P0(t)-P0(e))+1}function _X(e,t,r,n){var a=eT(e,t,r),i;switch(n=Fp(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=A6e(a,o))&&(n.precision=i),$X(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=M6e(a,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=R6e(a))&&(n.precision=i-(n.type==="%")*2);break}}return pk(n)}function hu(e){var t=e.domain;return e.ticks=function(r){var n=t();return ZO(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var a=t();return _X(a[0],a[a.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),a=0,i=n.length-1,o=n[a],s=n[i],l,c,u=10;for(s0;){if(c=JO(o,s,r),c===l)return n[a]=o,n[i]=s,t(n);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function OX(){var e=mk();return e.copy=function(){return Gv(e,OX())},Jo.apply(e,arguments),hu(e)}function TX(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,V1),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return TX(e).unknown(t)},e=arguments.length?Array.from(e,V1):[0,1],hu(r)}function PX(e,t){e=e.slice();var r=0,n=e.length-1,a=e[r],i=e[n],o;return iMath.pow(e,t)}function B6e(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Y6(e){return(t,r)=>-e(-t,r)}function vk(e){const t=e(q6,X6),r=t.domain;let n=10,a,i;function o(){return a=B6e(n),i=L6e(n),r()[0]<0?(a=Y6(a),i=Y6(i),e(D6e,j6e)):e(q6,X6),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let c=l[0],u=l[l.length-1];const f=u0){for(;m<=h;++m)for(p=1;pu)break;y.push(g)}}else for(;m<=h;++m)for(p=n-1;p>=1;--p)if(g=m>0?p/i(-m):p*i(m),!(gu)break;y.push(g)}y.length*2{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=Fp(l)).precision==null&&(l.trim=!0),l=pk(l)),s===1/0)return l;const c=Math.max(1,n*s/t.ticks().length);return u=>{let f=u/i(Math.round(a(u)));return f*nr(PX(r(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function IX(){const e=vk(Rw()).domain([1,10]);return e.copy=()=>Gv(e,IX()).base(e.base()),Jo.apply(e,arguments),e}function Q6(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Z6(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function gk(e){var t=1,r=e(Q6(t),Z6(t));return r.constant=function(n){return arguments.length?e(Q6(t=+n),Z6(t)):t},hu(r)}function NX(){var e=gk(Rw());return e.copy=function(){return Gv(e,NX()).constant(e.constant())},Jo.apply(e,arguments)}function J6(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function z6e(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function H6e(e){return e<0?-e*e:e*e}function yk(e){var t=e(bi,bi),r=1;function n(){return r===1?e(bi,bi):r===.5?e(z6e,H6e):e(J6(r),J6(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},hu(t)}function xk(){var e=yk(Rw());return e.copy=function(){return Gv(e,xk()).exponent(e.exponent())},Jo.apply(e,arguments),e}function W6e(){return xk.apply(null,arguments).exponent(.5)}function e8(e){return Math.sign(e)*e*e}function V6e(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function kX(){var e=mk(),t=[0,1],r=!1,n;function a(i){var o=V6e(e(i));return isNaN(o)?n:r?Math.round(o):o}return a.invert=function(i){return e.invert(e8(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,V1)).map(e8)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(r=!!i,a):r},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return kX(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Jo.apply(a,arguments),hu(a)}function RX(){var e=[],t=[],r=[],n;function a(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o0?r[s-1]:e[0],s=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(l){return arguments.length&&(i=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return AX().domain([e,t]).range(a).unknown(i)},Jo.apply(hu(o),arguments)}function MX(){var e=[.5],t=[0,1],r,n=1;function a(i){return i!=null&&i<=i?t[Uv(e,i,0,n)]:r}return a.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return MX().domain(e).range(t).unknown(r)},Jo.apply(a,arguments)}const yE=new Date,xE=new Date;function ba(e,t,r,n){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),s=a.ceil(i);return i-o(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const l=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i0))return l;let c;do l.push(c=new Date(+i)),t(i,s),e(i);while(cba(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),r&&(a.count=(i,o)=>(yE.setTime(+i),xE.setTime(+o),e(yE),e(xE),Math.floor(r(yE,xE))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(n?o=>n(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const K1=ba(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);K1.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?ba(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):K1);K1.range;const xl=1e3,jo=xl*60,bl=jo*60,Fl=bl*24,bk=Fl*7,t8=Fl*30,bE=Fl*365,Ku=ba(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*xl)},(e,t)=>(t-e)/xl,e=>e.getUTCSeconds());Ku.range;const Sk=ba(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*xl)},(e,t)=>{e.setTime(+e+t*jo)},(e,t)=>(t-e)/jo,e=>e.getMinutes());Sk.range;const wk=ba(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*jo)},(e,t)=>(t-e)/jo,e=>e.getUTCMinutes());wk.range;const Ck=ba(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*xl-e.getMinutes()*jo)},(e,t)=>{e.setTime(+e+t*bl)},(e,t)=>(t-e)/bl,e=>e.getHours());Ck.range;const Ek=ba(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*bl)},(e,t)=>(t-e)/bl,e=>e.getUTCHours());Ek.range;const qv=ba(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*jo)/Fl,e=>e.getDate()-1);qv.range;const Aw=ba(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Fl,e=>e.getUTCDate()-1);Aw.range;const DX=ba(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Fl,e=>Math.floor(e/Fl));DX.range;function Kd(e){return ba(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*jo)/bk)}const Mw=Kd(0),G1=Kd(1),U6e=Kd(2),K6e=Kd(3),I0=Kd(4),G6e=Kd(5),q6e=Kd(6);Mw.range;G1.range;U6e.range;K6e.range;I0.range;G6e.range;q6e.range;function Gd(e){return ba(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/bk)}const Dw=Gd(0),q1=Gd(1),X6e=Gd(2),Y6e=Gd(3),N0=Gd(4),Q6e=Gd(5),Z6e=Gd(6);Dw.range;q1.range;X6e.range;Y6e.range;N0.range;Q6e.range;Z6e.range;const $k=ba(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());$k.range;const _k=ba(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());_k.range;const Ll=ba(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Ll.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ba(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Ll.range;const Bl=ba(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Bl.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:ba(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});Bl.range;function jX(e,t,r,n,a,i){const o=[[Ku,1,xl],[Ku,5,5*xl],[Ku,15,15*xl],[Ku,30,30*xl],[i,1,jo],[i,5,5*jo],[i,15,15*jo],[i,30,30*jo],[a,1,bl],[a,3,3*bl],[a,6,6*bl],[a,12,12*bl],[n,1,Fl],[n,2,2*Fl],[r,1,bk],[t,1,t8],[t,3,3*t8],[e,1,bE]];function s(c,u,f){const m=uv).right(o,m);if(h===o.length)return e.every(eT(c/bE,u/bE,f));if(h===0)return K1.every(Math.max(eT(c,u,f),1));const[p,g]=o[m/o[h-1][2]53)return null;"w"in H||(H.w=1),"Z"in H?(te=wE(Xm(H.y,0,1)),re=te.getUTCDay(),te=re>4||re===0?q1.ceil(te):q1(te),te=Aw.offset(te,(H.V-1)*7),H.y=te.getUTCFullYear(),H.m=te.getUTCMonth(),H.d=te.getUTCDate()+(H.w+6)%7):(te=SE(Xm(H.y,0,1)),re=te.getDay(),te=re>4||re===0?G1.ceil(te):G1(te),te=qv.offset(te,(H.V-1)*7),H.y=te.getFullYear(),H.m=te.getMonth(),H.d=te.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),re="Z"in H?wE(Xm(H.y,0,1)).getUTCDay():SE(Xm(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(re+5)%7:H.w+H.U*7-(re+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,wE(H)):SE(H)}}function O(G,Q,ee,H){for(var fe=0,te=Q.length,re=ee.length,q,ne;fe=re)return-1;if(q=Q.charCodeAt(fe++),q===37){if(q=Q.charAt(fe++),ne=w[q in r8?Q.charAt(fe++):q],!ne||(H=ne(G,ee,H))<0)return-1}else if(q!=ee.charCodeAt(H++))return-1}return H}function _(G,Q,ee){var H=c.exec(Q.slice(ee));return H?(G.p=u.get(H[0].toLowerCase()),ee+H[0].length):-1}function P(G,Q,ee){var H=h.exec(Q.slice(ee));return H?(G.w=p.get(H[0].toLowerCase()),ee+H[0].length):-1}function I(G,Q,ee){var H=f.exec(Q.slice(ee));return H?(G.w=m.get(H[0].toLowerCase()),ee+H[0].length):-1}function N(G,Q,ee){var H=y.exec(Q.slice(ee));return H?(G.m=x.get(H[0].toLowerCase()),ee+H[0].length):-1}function D(G,Q,ee){var H=g.exec(Q.slice(ee));return H?(G.m=v.get(H[0].toLowerCase()),ee+H[0].length):-1}function k(G,Q,ee){return O(G,t,Q,ee)}function R(G,Q,ee){return O(G,r,Q,ee)}function A(G,Q,ee){return O(G,n,Q,ee)}function j(G){return o[G.getDay()]}function F(G){return i[G.getDay()]}function M(G){return l[G.getMonth()]}function V(G){return s[G.getMonth()]}function K(G){return a[+(G.getHours()>=12)]}function L(G){return 1+~~(G.getMonth()/3)}function B(G){return o[G.getUTCDay()]}function W(G){return i[G.getUTCDay()]}function z(G){return l[G.getUTCMonth()]}function U(G){return s[G.getUTCMonth()]}function X(G){return a[+(G.getUTCHours()>=12)]}function Y(G){return 1+~~(G.getUTCMonth()/3)}return{format:function(G){var Q=E(G+="",b);return Q.toString=function(){return G},Q},parse:function(G){var Q=C(G+="",!1);return Q.toString=function(){return G},Q},utcFormat:function(G){var Q=E(G+="",S);return Q.toString=function(){return G},Q},utcParse:function(G){var Q=C(G+="",!0);return Q.toString=function(){return G},Q}}}var r8={"-":"",_:" ",0:"0"},Fa=/^\s*\d+/,a8e=/^%/,i8e=/[\\^$*+?|[\]().{}]/g;function Tr(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i[t.toLowerCase(),r]))}function s8e(e,t,r){var n=Fa.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function l8e(e,t,r){var n=Fa.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function c8e(e,t,r){var n=Fa.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function u8e(e,t,r){var n=Fa.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function d8e(e,t,r){var n=Fa.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function n8(e,t,r){var n=Fa.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function a8(e,t,r){var n=Fa.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function f8e(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function m8e(e,t,r){var n=Fa.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function h8e(e,t,r){var n=Fa.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function i8(e,t,r){var n=Fa.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function p8e(e,t,r){var n=Fa.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function o8(e,t,r){var n=Fa.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function v8e(e,t,r){var n=Fa.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function g8e(e,t,r){var n=Fa.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function y8e(e,t,r){var n=Fa.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function x8e(e,t,r){var n=Fa.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function b8e(e,t,r){var n=a8e.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function S8e(e,t,r){var n=Fa.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function w8e(e,t,r){var n=Fa.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function s8(e,t){return Tr(e.getDate(),t,2)}function C8e(e,t){return Tr(e.getHours(),t,2)}function E8e(e,t){return Tr(e.getHours()%12||12,t,2)}function $8e(e,t){return Tr(1+qv.count(Ll(e),e),t,3)}function FX(e,t){return Tr(e.getMilliseconds(),t,3)}function _8e(e,t){return FX(e,t)+"000"}function O8e(e,t){return Tr(e.getMonth()+1,t,2)}function T8e(e,t){return Tr(e.getMinutes(),t,2)}function P8e(e,t){return Tr(e.getSeconds(),t,2)}function I8e(e){var t=e.getDay();return t===0?7:t}function N8e(e,t){return Tr(Mw.count(Ll(e)-1,e),t,2)}function LX(e){var t=e.getDay();return t>=4||t===0?I0(e):I0.ceil(e)}function k8e(e,t){return e=LX(e),Tr(I0.count(Ll(e),e)+(Ll(e).getDay()===4),t,2)}function R8e(e){return e.getDay()}function A8e(e,t){return Tr(G1.count(Ll(e)-1,e),t,2)}function M8e(e,t){return Tr(e.getFullYear()%100,t,2)}function D8e(e,t){return e=LX(e),Tr(e.getFullYear()%100,t,2)}function j8e(e,t){return Tr(e.getFullYear()%1e4,t,4)}function F8e(e,t){var r=e.getDay();return e=r>=4||r===0?I0(e):I0.ceil(e),Tr(e.getFullYear()%1e4,t,4)}function L8e(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Tr(t/60|0,"0",2)+Tr(t%60,"0",2)}function l8(e,t){return Tr(e.getUTCDate(),t,2)}function B8e(e,t){return Tr(e.getUTCHours(),t,2)}function z8e(e,t){return Tr(e.getUTCHours()%12||12,t,2)}function H8e(e,t){return Tr(1+Aw.count(Bl(e),e),t,3)}function BX(e,t){return Tr(e.getUTCMilliseconds(),t,3)}function W8e(e,t){return BX(e,t)+"000"}function V8e(e,t){return Tr(e.getUTCMonth()+1,t,2)}function U8e(e,t){return Tr(e.getUTCMinutes(),t,2)}function K8e(e,t){return Tr(e.getUTCSeconds(),t,2)}function G8e(e){var t=e.getUTCDay();return t===0?7:t}function q8e(e,t){return Tr(Dw.count(Bl(e)-1,e),t,2)}function zX(e){var t=e.getUTCDay();return t>=4||t===0?N0(e):N0.ceil(e)}function X8e(e,t){return e=zX(e),Tr(N0.count(Bl(e),e)+(Bl(e).getUTCDay()===4),t,2)}function Y8e(e){return e.getUTCDay()}function Q8e(e,t){return Tr(q1.count(Bl(e)-1,e),t,2)}function Z8e(e,t){return Tr(e.getUTCFullYear()%100,t,2)}function J8e(e,t){return e=zX(e),Tr(e.getUTCFullYear()%100,t,2)}function e5e(e,t){return Tr(e.getUTCFullYear()%1e4,t,4)}function t5e(e,t){var r=e.getUTCDay();return e=r>=4||r===0?N0(e):N0.ceil(e),Tr(e.getUTCFullYear()%1e4,t,4)}function r5e(){return"+0000"}function c8(){return"%"}function u8(e){return+e}function d8(e){return Math.floor(+e/1e3)}var pf,HX,WX;n5e({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function n5e(e){return pf=n8e(e),HX=pf.format,pf.parse,WX=pf.utcFormat,pf.utcParse,pf}function a5e(e){return new Date(e)}function i5e(e){return e instanceof Date?+e:+new Date(+e)}function Ok(e,t,r,n,a,i,o,s,l,c){var u=mk(),f=u.invert,m=u.domain,h=c(".%L"),p=c(":%S"),g=c("%I:%M"),v=c("%I %p"),y=c("%a %d"),x=c("%b %d"),b=c("%B"),S=c("%Y");function w(E){return(l(E)t(a/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,i)=>GFe(e,i/n))},r.copy=function(){return GX(t).domain(e)},ql.apply(r,arguments)}function Fw(){var e=0,t=.5,r=1,n=1,a,i,o,s,l,c=bi,u,f=!1,m;function h(g){return isNaN(g=+g)?m:(g=.5+((g=+u(g))-i)*(n*ge.chartData,Ik=Ue([vu],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),QX=(e,t,r,n)=>n?Ik(e):vu(e);function Yc(e){if(Array.isArray(e)&&e.length===2){var[t,r]=e;if(aa(t)&&aa(r))return!0}return!1}function f8(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function ZX(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[r,n]=e,a,i;if(aa(r))a=r;else if(typeof r=="function")return;if(aa(n))i=n;else if(typeof n=="function")return;var o=[a,i];if(Yc(o))return o}}function u5e(e,t,r){if(!(!r&&t==null)){if(typeof e=="function"&&t!=null)try{var n=e(t,r);if(Yc(n))return f8(n,t,r)}catch{}if(Array.isArray(e)&&e.length===2){var[a,i]=e,o,s;if(a==="auto")t!=null&&(o=Math.min(...t));else if(er(a))o=a;else if(typeof a=="function")try{t!=null&&(o=a(t==null?void 0:t[0]))}catch{}else if(typeof a=="string"&&PF.test(a)){var l=PF.exec(a);if(l==null||l[1]==null||t==null)o=void 0;else{var c=+l[1];o=t[0]-c}}else o=t==null?void 0:t[0];if(i==="auto")t!=null&&(s=Math.max(...t));else if(er(i))s=i;else if(typeof i=="function")try{t!=null&&(s=i(t==null?void 0:t[1]))}catch{}else if(typeof i=="string"&&IF.test(i)){var u=IF.exec(i);if(u==null||u[1]==null||t==null)s=void 0;else{var f=+u[1];s=t[1]+f}}else s=t==null?void 0:t[1];var m=[o,s];if(Yc(m))return t==null?m:f8(m,t,r)}}}var pm=1e9,d5e={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},kk,cn=!0,qo="[DecimalError] ",td=qo+"Invalid argument: ",Nk=qo+"Exponent out of range: ",vm=Math.floor,Iu=Math.pow,f5e=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ji,$a=1e7,Zr=7,JX=9007199254740991,X1=vm(JX/Zr),jt={};jt.absoluteValue=jt.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};jt.comparedTo=jt.cmp=function(e){var t,r,n,a,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(n=i.d.length,a=e.d.length,t=0,r=ne.d[t]^i.s<0?1:-1;return n===a?0:n>a^i.s<0?1:-1};jt.decimalPlaces=jt.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*Zr;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};jt.dividedBy=jt.div=function(e){return El(this,new this.constructor(e))};jt.dividedToIntegerBy=jt.idiv=function(e){var t=this,r=t.constructor;return zr(El(t,new r(e),0,1),r.precision)};jt.equals=jt.eq=function(e){return!this.cmp(e)};jt.exponent=function(){return ra(this)};jt.greaterThan=jt.gt=function(e){return this.cmp(e)>0};jt.greaterThanOrEqualTo=jt.gte=function(e){return this.cmp(e)>=0};jt.isInteger=jt.isint=function(){return this.e>this.d.length-2};jt.isNegative=jt.isneg=function(){return this.s<0};jt.isPositive=jt.ispos=function(){return this.s>0};jt.isZero=function(){return this.s===0};jt.lessThan=jt.lt=function(e){return this.cmp(e)<0};jt.lessThanOrEqualTo=jt.lte=function(e){return this.cmp(e)<1};jt.logarithm=jt.log=function(e){var t,r=this,n=r.constructor,a=n.precision,i=a+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Ji))throw Error(qo+"NaN");if(r.s<1)throw Error(qo+(r.s?"NaN":"-Infinity"));return r.eq(Ji)?new n(0):(cn=!1,t=El(Lp(r,i),Lp(e,i),i),cn=!0,zr(t,a))};jt.minus=jt.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?rY(t,e):eY(t,(e.s=-e.s,e))};jt.modulo=jt.mod=function(e){var t,r=this,n=r.constructor,a=n.precision;if(e=new n(e),!e.s)throw Error(qo+"NaN");return r.s?(cn=!1,t=El(r,e,0,1).times(e),cn=!0,r.minus(t)):zr(new n(r),a)};jt.naturalExponential=jt.exp=function(){return tY(this)};jt.naturalLogarithm=jt.ln=function(){return Lp(this)};jt.negated=jt.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};jt.plus=jt.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?eY(t,e):rY(t,(e.s=-e.s,e))};jt.precision=jt.sd=function(e){var t,r,n,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(td+e);if(t=ra(a)+1,n=a.d.length-1,r=n*Zr+1,n=a.d[n],n){for(;n%10==0;n/=10)r--;for(n=a.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};jt.squareRoot=jt.sqrt=function(){var e,t,r,n,a,i,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(qo+"NaN")}for(e=ra(s),cn=!1,a=Math.sqrt(+s),a==0||a==1/0?(t=Xs(s.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=vm((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(a.toString()),r=l.precision,a=o=r+3;;)if(i=n,n=i.plus(El(s,i,o+2)).times(.5),Xs(i.d).slice(0,o)===(t=Xs(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(zr(i,r+1,0),i.times(i).eq(s)){n=i;break}}else if(t!="9999")break;o+=4}return cn=!0,zr(n,r)};jt.times=jt.mul=function(e){var t,r,n,a,i,o,s,l,c,u=this,f=u.constructor,m=u.d,h=(e=new f(e)).d;if(!u.s||!e.s)return new f(0);for(e.s*=u.s,r=u.e+e.e,l=m.length,c=h.length,l=0;){for(t=0,a=l+n;a>n;)s=i[a]+h[n]*m[a-n-1]+t,i[a--]=s%$a|0,t=s/$a|0;i[a]=(i[a]+t)%$a|0}for(;!i[--o];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,cn?zr(e,f.precision):e};jt.toDecimalPlaces=jt.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(sl(e,0,pm),t===void 0?t=n.rounding:sl(t,0,8),zr(r,e+ra(r)+1,t))};jt.toExponential=function(e,t){var r,n=this,a=n.constructor;return e===void 0?r=Ed(n,!0):(sl(e,0,pm),t===void 0?t=a.rounding:sl(t,0,8),n=zr(new a(n),e+1,t),r=Ed(n,!0,e+1)),r};jt.toFixed=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?Ed(a):(sl(e,0,pm),t===void 0?t=i.rounding:sl(t,0,8),n=zr(new i(a),e+ra(a)+1,t),r=Ed(n.abs(),!1,e+ra(n)+1),a.isneg()&&!a.isZero()?"-"+r:r)};jt.toInteger=jt.toint=function(){var e=this,t=e.constructor;return zr(new t(e),ra(e)+1,t.rounding)};jt.toNumber=function(){return+this};jt.toPower=jt.pow=function(e){var t,r,n,a,i,o,s=this,l=s.constructor,c=12,u=+(e=new l(e));if(!e.s)return new l(Ji);if(s=new l(s),!s.s){if(e.s<1)throw Error(qo+"Infinity");return s}if(s.eq(Ji))return s;if(n=l.precision,e.eq(Ji))return zr(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,i=s.s,o){if((r=u<0?-u:u)<=JX){for(a=new l(Ji),t=Math.ceil(n/Zr+4),cn=!1;r%2&&(a=a.times(s),h8(a.d,t)),r=vm(r/2),r!==0;)s=s.times(s),h8(s.d,t);return cn=!0,e.s<0?new l(Ji).div(a):zr(a,n)}}else if(i<0)throw Error(qo+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,cn=!1,a=e.times(Lp(s,n+c)),cn=!0,a=tY(a),a.s=i,a};jt.toPrecision=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?(r=ra(a),n=Ed(a,r<=i.toExpNeg||r>=i.toExpPos)):(sl(e,1,pm),t===void 0?t=i.rounding:sl(t,0,8),a=zr(new i(a),e,t),r=ra(a),n=Ed(a,e<=r||r<=i.toExpNeg,e)),n};jt.toSignificantDigits=jt.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(sl(e,1,pm),t===void 0?t=n.rounding:sl(t,0,8)),zr(new n(r),e,t)};jt.toString=jt.valueOf=jt.val=jt.toJSON=jt[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=ra(e),r=e.constructor;return Ed(e,t<=r.toExpNeg||t>=r.toExpPos)};function eY(e,t){var r,n,a,i,o,s,l,c,u=e.constructor,f=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),cn?zr(t,f):t;if(l=e.d,c=t.d,o=e.e,a=t.e,l=l.slice(),i=o-a,i){for(i<0?(n=l,i=-i,s=c.length):(n=c,a=o,s=l.length),o=Math.ceil(f/Zr),s=o>s?o+1:s+1,i>s&&(i=s,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(s=l.length,i=c.length,s-i<0&&(i=s,n=c,c=l,l=n),r=0;i;)r=(l[--i]=l[i]+c[i]+r)/$a|0,l[i]%=$a;for(r&&(l.unshift(r),++a),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=a,cn?zr(t,f):t}function sl(e,t,r){if(e!==~~e||er)throw Error(td+e)}function Xs(e){var t,r,n,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;to?1:-1;else for(s=l=0;sa[s]?1:-1;break}return l}function r(n,a,i){for(var o=0;i--;)n[i]-=o,o=n[i]1;)n.shift()}return function(n,a,i,o){var s,l,c,u,f,m,h,p,g,v,y,x,b,S,w,E,C,O,_=n.constructor,P=n.s==a.s?1:-1,I=n.d,N=a.d;if(!n.s)return new _(n);if(!a.s)throw Error(qo+"Division by zero");for(l=n.e-a.e,C=N.length,w=I.length,h=new _(P),p=h.d=[],c=0;N[c]==(I[c]||0);)++c;if(N[c]>(I[c]||0)&&--l,i==null?x=i=_.precision:o?x=i+(ra(n)-ra(a))+1:x=i,x<0)return new _(0);if(x=x/Zr+2|0,c=0,C==1)for(u=0,N=N[0],x++;(c1&&(N=e(N,u),I=e(I,u),C=N.length,w=I.length),S=C,g=I.slice(0,C),v=g.length;v=$a/2&&++E;do u=0,s=t(N,g,C,v),s<0?(y=g[0],C!=v&&(y=y*$a+(g[1]||0)),u=y/E|0,u>1?(u>=$a&&(u=$a-1),f=e(N,u),m=f.length,v=g.length,s=t(f,g,m,v),s==1&&(u--,r(f,C16)throw Error(Nk+ra(e));if(!e.s)return new u(Ji);for(t==null?(cn=!1,s=f):s=t,o=new u(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(Iu(2,c))/Math.LN10*2+5|0,s+=n,r=a=i=new u(Ji),u.precision=s;;){if(a=zr(a.times(e),s),r=r.times(++l),o=i.plus(El(a,r,s)),Xs(o.d).slice(0,s)===Xs(i.d).slice(0,s)){for(;c--;)i=zr(i.times(i),s);return u.precision=f,t==null?(cn=!0,zr(i,f)):i}i=o}}function ra(e){for(var t=e.e*Zr,r=e.d[0];r>=10;r/=10)t++;return t}function CE(e,t,r){if(t>e.LN10.sd())throw cn=!0,r&&(e.precision=r),Error(qo+"LN10 precision limit exceeded");return zr(new e(e.LN10),t)}function dc(e){for(var t="";e--;)t+="0";return t}function Lp(e,t){var r,n,a,i,o,s,l,c,u,f=1,m=10,h=e,p=h.d,g=h.constructor,v=g.precision;if(h.s<1)throw Error(qo+(h.s?"NaN":"-Infinity"));if(h.eq(Ji))return new g(0);if(t==null?(cn=!1,c=v):c=t,h.eq(10))return t==null&&(cn=!0),CE(g,c);if(c+=m,g.precision=c,r=Xs(p),n=r.charAt(0),i=ra(h),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=Xs(h.d),n=r.charAt(0),f++;i=ra(h),n>1?(h=new g("0."+r),i++):h=new g(n+"."+r.slice(1))}else return l=CE(g,c+2,v).times(i+""),h=Lp(new g(n+"."+r.slice(1)),c-m).plus(l),g.precision=v,t==null?(cn=!0,zr(h,v)):h;for(s=o=h=El(h.minus(Ji),h.plus(Ji),c),u=zr(h.times(h),c),a=3;;){if(o=zr(o.times(u),c),l=s.plus(El(o,new g(a),c)),Xs(l.d).slice(0,c)===Xs(s.d).slice(0,c))return s=s.times(2),i!==0&&(s=s.plus(CE(g,c+2,v).times(i+""))),s=El(s,new g(f),c),g.precision=v,t==null?(cn=!0,zr(s,v)):s;s=l,a+=2}}function m8(e,t){var r,n,a;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(n,a),t){if(a-=n,r=r-n-1,e.e=vm(r/Zr),e.d=[],n=(r+1)%Zr,r<0&&(n+=Zr),nX1||e.e<-X1))throw Error(Nk+r)}else e.s=0,e.e=0,e.d=[0];return e}function zr(e,t,r){var n,a,i,o,s,l,c,u,f=e.d;for(o=1,i=f[0];i>=10;i/=10)o++;if(n=t-o,n<0)n+=Zr,a=t,c=f[u=0];else{if(u=Math.ceil((n+1)/Zr),i=f.length,u>=i)return e;for(c=i=f[u],o=1;i>=10;i/=10)o++;n%=Zr,a=n-Zr+o}if(r!==void 0&&(i=Iu(10,o-a-1),s=c/i%10|0,l=t<0||f[u+1]!==void 0||c%i,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?a>0?c/Iu(10,o-a):0:f[u-1])%10&1||r==(e.s<0?8:7))),t<1||!f[0])return l?(i=ra(e),f.length=1,t=t-i-1,f[0]=Iu(10,(Zr-t%Zr)%Zr),e.e=vm(-t/Zr)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(n==0?(f.length=u,i=1,u--):(f.length=u+1,i=Iu(10,Zr-n),f[u]=a>0?(c/Iu(10,o-a)%Iu(10,a)|0)*i:0),l)for(;;)if(u==0){(f[0]+=i)==$a&&(f[0]=1,++e.e);break}else{if(f[u]+=i,f[u]!=$a)break;f[u--]=0,i=1}for(n=f.length;f[--n]===0;)f.pop();if(cn&&(e.e>X1||e.e<-X1))throw Error(Nk+ra(e));return e}function rY(e,t){var r,n,a,i,o,s,l,c,u,f,m=e.constructor,h=m.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new m(e),cn?zr(t,h):t;if(l=e.d,f=t.d,n=t.e,c=e.e,l=l.slice(),o=c-n,o){for(u=o<0,u?(r=l,o=-o,s=f.length):(r=f,n=c,s=l.length),a=Math.max(Math.ceil(h/Zr),s)+2,o>a&&(o=a,r.length=1),r.reverse(),a=o;a--;)r.push(0);r.reverse()}else{for(a=l.length,s=f.length,u=a0;--a)l[s++]=0;for(a=f.length;a>o;){if(l[--a]0?i=i.charAt(0)+"."+i.slice(1)+dc(n):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+dc(-a-1)+i,r&&(n=r-o)>0&&(i+=dc(n))):a>=o?(i+=dc(a+1-o),r&&(n=r-a-1)>0&&(i=i+"."+dc(n))):((n=a+1)0&&(a+1===o&&(i+="."),i+=dc(n))),e.s<0?"-"+i:i}function h8(e,t){if(e.length>t)return e.length=t,!0}function nY(e){var t,r,n;function a(i){var o=this;if(!(o instanceof a))return new a(i);if(o.constructor=a,i instanceof a){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(td+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return m8(o,i.toString())}else if(typeof i!="string")throw Error(td+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,f5e.test(i))m8(o,i);else throw Error(td+i)}if(a.prototype=jt,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=nY,a.config=a.set=m5e,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(td+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(td+r+": "+n);return this}var kk=nY(d5e);Ji=new kk(1);const Ar=kk;var h5e=e=>e,aY={"@@functional/placeholder":!0},iY=e=>e===aY,p8=e=>function t(){return arguments.length===0||arguments.length===1&&iY(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},oY=(e,t)=>e===1?t:p8(function(){for(var r=arguments.length,n=new Array(r),a=0;ao!==aY).length;return i>=e?t(...n):oY(e-i,p8(function(){for(var o=arguments.length,s=new Array(o),l=0;liY(u)?s.shift():u);return t(...c,...s)}))}),p5e=e=>oY(e.length,e),iT=(e,t)=>{for(var r=[],n=e;nArray.isArray(t)?t.map(e):Object.keys(t).map(r=>t[r]).map(e)),g5e=function(){for(var t=arguments.length,r=new Array(t),n=0;nl(s),i(...arguments))}};function sY(e){var t;return e===0?t=1:t=Math.floor(new Ar(e).abs().log(10).toNumber())+1,t}function lY(e,t,r){for(var n=new Ar(e),a=0,i=[];n.lt(t)&&a<1e5;)i.push(n.toNumber()),n=n.add(r),a++;return i}var cY=e=>{var[t,r]=e,[n,a]=[t,r];return t>r&&([n,a]=[r,t]),[n,a]},uY=(e,t,r)=>{if(e.lte(0))return new Ar(0);var n=sY(e.toNumber()),a=new Ar(10).pow(n),i=e.div(a),o=n!==1?.05:.1,s=new Ar(Math.ceil(i.div(o).toNumber())).add(r).mul(o),l=s.mul(a);return t?new Ar(l.toNumber()):new Ar(Math.ceil(l.toNumber()))},y5e=(e,t,r)=>{var n=new Ar(1),a=new Ar(e);if(!a.isint()&&r){var i=Math.abs(e);i<1?(n=new Ar(10).pow(sY(e)-1),a=new Ar(Math.floor(a.div(n).toNumber())).mul(n)):i>1&&(a=new Ar(Math.floor(e)))}else e===0?a=new Ar(Math.floor((t-1)/2)):r||(a=new Ar(Math.floor(e)));var o=Math.floor((t-1)/2),s=g5e(v5e(l=>a.add(new Ar(l-o).mul(n)).toNumber()),iT);return s(0,t)},dY=function(t,r,n,a){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((r-t)/(n-1)))return{step:new Ar(0),tickMin:new Ar(0),tickMax:new Ar(0)};var o=uY(new Ar(r).sub(t).div(n-1),a,i),s;t<=0&&r>=0?s=new Ar(0):(s=new Ar(t).add(r).div(2),s=s.sub(new Ar(s).mod(o)));var l=Math.ceil(s.sub(t).div(o).toNumber()),c=Math.ceil(new Ar(r).sub(s).div(o).toNumber()),u=l+c+1;return u>n?dY(t,r,n,a,i+1):(u0?c+(n-u):c,l=r>0?l:l+(n-u)),{step:o,tickMin:s.sub(new Ar(l).mul(o)),tickMax:s.add(new Ar(c).mul(o))})},x5e=function(t){var[r,n]=t,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(a,2),[s,l]=cY([r,n]);if(s===-1/0||l===1/0){var c=l===1/0?[s,...iT(0,a-1).map(()=>1/0)]:[...iT(0,a-1).map(()=>-1/0),l];return r>n?c.reverse():c}if(s===l)return y5e(s,a,i);var{step:u,tickMin:f,tickMax:m}=dY(s,l,o,i,0),h=lY(f,m.add(new Ar(.1).mul(u)),u);return r>n?h.reverse():h},b5e=function(t,r){var[n,a]=t,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[o,s]=cY([n,a]);if(o===-1/0||s===1/0)return[n,a];if(o===s)return[o];var l=Math.max(r,2),c=uY(new Ar(s).sub(o).div(l-1),i,0),u=[...lY(new Ar(o),new Ar(s),c),s];return i===!1&&(u=u.map(f=>Math.round(f))),n>a?u.reverse():u},S5e=e=>e.rootProps.barCategoryGap,Xv=e=>e.rootProps.stackOffset,fY=e=>e.rootProps.reverseStackOrder,Rk=e=>e.options.chartName,Ak=e=>e.rootProps.syncId,mY=e=>e.rootProps.syncMethod,Mk=e=>e.options.eventEmitter,io={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},vl={allowDecimals:!1,allowDuplicatedCategory:!0,angleAxisId:0,axisLine:!0,axisLineType:"polygon",cx:0,cy:0,orientation:"outer",reversed:!1,scale:"auto",tick:!0,tickLine:!0,tickSize:8,type:"category",zIndex:io.axis},Qi={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,angle:0,axisLine:!0,includeHidden:!1,hide:!1,label:!1,orientation:"right",radiusAxisId:0,reversed:!1,scale:"auto",stroke:"#ccc",tick:!0,tickCount:5,type:"number",zIndex:io.axis},Lw=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},w5e={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:vl.angleAxisId,includeHidden:!1,name:void 0,reversed:vl.reversed,scale:vl.scale,tick:vl.tick,tickCount:void 0,ticks:void 0,type:vl.type,unit:void 0},C5e={allowDataOverflow:Qi.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Qi.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Qi.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Qi.scale,tick:Qi.tick,tickCount:Qi.tickCount,ticks:void 0,type:Qi.type,unit:void 0},E5e={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:vl.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:vl.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:vl.scale,tick:vl.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},$5e={allowDataOverflow:Qi.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:Qi.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Qi.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Qi.scale,tick:Qi.tick,tickCount:Qi.tickCount,ticks:void 0,type:"category",unit:void 0},Dk=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?E5e:w5e,jk=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?$5e:C5e,Bw=e=>e.polarOptions,Fk=Ue([Kl,Gl,ja],cX),hY=Ue([Bw,Fk],(e,t)=>{if(e!=null)return so(e.innerRadius,t,0)}),pY=Ue([Bw,Fk],(e,t)=>{if(e!=null)return so(e.outerRadius,t,t*.8)}),_5e=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]},vY=Ue([Bw],_5e);Ue([Dk,vY],Lw);var gY=Ue([Fk,hY,pY],(e,t,r)=>{if(!(e==null||t==null||r==null))return[t,r]});Ue([jk,gY],Lw);var yY=Ue([Xr,Bw,hY,pY,Kl,Gl],(e,t,r,n,a,i)=>{if(!(e!=="centric"&&e!=="radial"||t==null||r==null||n==null)){var{cx:o,cy:s,startAngle:l,endAngle:c}=t;return{cx:so(o,a,a/2),cy:so(s,i,i/2),innerRadius:r,outerRadius:n,startAngle:l,endAngle:c,clockWise:!1}}}),un=(e,t)=>t,Yv=(e,t,r)=>r;function xY(e){return e==null?void 0:e.id}function bY(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:a,dataKey:i}=r,o=new Map;return e.forEach(s=>{var l,c=(l=s.data)!==null&&l!==void 0?l:n;if(!(c==null||c.length===0)){var u=xY(s);c.forEach((f,m)=>{var h=i==null||a?m:String($n(f,i,null)),p=$n(f,s.dataKey,0),g;o.has(h)?g=o.get(h):g={},Object.assign(g,{[u]:p}),o.set(h,g)})}}),Array.from(o.values())}function Lk(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var zw=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function Hw(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function O5e(e,t){if(e.length===t.length){for(var r=0;r{var t=Xr(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},gm=e=>e.tooltip.settings.axisId;function v8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Y1(e){for(var t=1;te.cartesianAxis.xAxis[t],gu=(e,t)=>{var r=k5e(e,t);return r??N5e},R5e={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:oT,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:Wv},A5e=(e,t)=>e.cartesianAxis.yAxis[t],yu=(e,t)=>{var r=A5e(e,t);return r??R5e},M5e={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},Bk=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return r??M5e},gn=(e,t,r)=>{switch(t){case"xAxis":return gu(e,r);case"yAxis":return yu(e,r);case"zAxis":return Bk(e,r);case"angleAxis":return Dk(e,r);case"radiusAxis":return jk(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},D5e=(e,t,r)=>{switch(t){case"xAxis":return gu(e,r);case"yAxis":return yu(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},Qv=(e,t,r)=>{switch(t){case"xAxis":return gu(e,r);case"yAxis":return yu(e,r);case"angleAxis":return Dk(e,r);case"radiusAxis":return jk(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},SY=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function zk(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var j5e=e=>e.graphicalItems.cartesianItems,F5e=Ue([un,Yv],zk),Hk=(e,t,r)=>e.filter(r).filter(n=>(t==null?void 0:t.includeHidden)===!0?!0:!n.hide),Zv=Ue([j5e,gn,F5e],Hk,{memoizeOptions:{resultEqualityCheck:Hw}}),wY=Ue([Zv],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(Lk)),CY=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),L5e=Ue([Zv],CY),Wk=e=>e.map(t=>t.data).filter(Boolean).flat(1),B5e=Ue([Zv],Wk,{memoizeOptions:{resultEqualityCheck:Hw}}),Vk=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:a}=t;return e.length>0?e:r.slice(n,a+1)},Uk=Ue([B5e,QX],Vk),Kk=(e,t,r)=>(t==null?void 0:t.dataKey)!=null?e.map(n=>({value:$n(n,t.dataKey)})):r.length>0?r.map(n=>n.dataKey).flatMap(n=>e.map(a=>({value:$n(a,n)}))):e.map(n=>({value:n})),Ww=Ue([Uk,gn,Zv],Kk);function EY(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function xx(e){if(Dl(e)||e instanceof Date){var t=Number(e);if(aa(t))return t}}function g8(e){if(Array.isArray(e)){var t=[xx(e[0]),xx(e[1])];return Yc(t)?t:void 0}var r=xx(e);if(r!=null)return[r,r]}function zl(e){return e.map(xx).filter(UAe)}function z5e(e,t,r){return!r||typeof t!="number"||Al(t)?[]:r.length?zl(r.flatMap(n=>{var a=$n(e,n.dataKey),i,o;if(Array.isArray(a)?[i,o]=a:i=o=a,!(!aa(i)||!aa(o)))return[t-i,t+o]})):[]}var wa=e=>{var t=Sa(e),r=gm(e);return Qv(e,t,r)},Jv=Ue([wa],e=>e==null?void 0:e.dataKey),H5e=Ue([wY,QX,wa],bY),$Y=(e,t,r,n)=>{var a={},i=t.reduce((o,s)=>{if(s.stackId==null)return o;var l=o[s.stackId];return l==null&&(l=[]),l.push(s),o[s.stackId]=l,o},a);return Object.fromEntries(Object.entries(i).map(o=>{var[s,l]=o,c=n?[...l].reverse():l,u=c.map(xY);return[s,{stackedData:lDe(e,u,r),graphicalItems:c}]}))},W5e=Ue([H5e,wY,Xv,fY],$Y),_Y=(e,t,r,n)=>{var{dataStartIndex:a,dataEndIndex:i}=t;if(n==null&&r!=="zAxis"){var o=dDe(e,a,i);if(!(o!=null&&o[0]===0&&o[1]===0))return o}},V5e=Ue([gn],e=>e.allowDataOverflow),Gk=e=>{var t;if(e==null||!("domain"in e))return oT;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var r=zl(e.ticks);return[Math.min(...r),Math.max(...r)]}if(e.type==="category")return e.ticks.map(String)}return(t=e==null?void 0:e.domain)!==null&&t!==void 0?t:oT},qk=Ue([gn],Gk),Xk=Ue([qk,V5e],ZX),U5e=Ue([W5e,vu,un,Xk],_Y,{memoizeOptions:{resultEqualityCheck:zw}}),Vw=e=>e.errorBars,K5e=(e,t,r)=>e.flatMap(n=>t[n.id]).filter(Boolean).filter(n=>EY(r,n)),Q1=function(){for(var t=arguments.length,r=new Array(t),n=0;n{var i,o;if(r.length>0&&e.forEach(s=>{r.forEach(l=>{var c,u,f=(c=n[l.id])===null||c===void 0?void 0:c.filter(y=>EY(a,y)),m=$n(s,(u=t.dataKey)!==null&&u!==void 0?u:l.dataKey),h=z5e(s,m,f);if(h.length>=2){var p=Math.min(...h),g=Math.max(...h);(i==null||po)&&(o=g)}var v=g8(m);v!=null&&(i=i==null?v[0]:Math.min(i,v[0]),o=o==null?v[1]:Math.max(o,v[1]))})}),(t==null?void 0:t.dataKey)!=null&&e.forEach(s=>{var l=g8($n(s,t.dataKey));l!=null&&(i=i==null?l[0]:Math.min(i,l[0]),o=o==null?l[1]:Math.max(o,l[1]))}),aa(i)&&aa(o))return[i,o]},G5e=Ue([Uk,gn,L5e,Vw,un],Yk,{memoizeOptions:{resultEqualityCheck:zw}});function q5e(e){var{value:t}=e;if(Dl(t)||t instanceof Date)return t}var X5e=(e,t,r)=>{var n=e.map(q5e).filter(a=>a!=null);return r&&(t.dataKey==null||t.allowDuplicatedCategory&&$G(n))?vX(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))},OY=e=>e.referenceElements.dots,ym=(e,t,r)=>e.filter(n=>n.ifOverflow==="extendDomain").filter(n=>t==="xAxis"?n.xAxisId===r:n.yAxisId===r),Y5e=Ue([OY,un,Yv],ym),TY=e=>e.referenceElements.areas,Q5e=Ue([TY,un,Yv],ym),PY=e=>e.referenceElements.lines,Z5e=Ue([PY,un,Yv],ym),IY=(e,t)=>{if(e!=null){var r=zl(e.map(n=>t==="xAxis"?n.x:n.y));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},J5e=Ue(Y5e,un,IY),NY=(e,t)=>{if(e!=null){var r=zl(e.flatMap(n=>[t==="xAxis"?n.x1:n.y1,t==="xAxis"?n.x2:n.y2]));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},eLe=Ue([Q5e,un],NY);function tLe(e){var t;if(e.x!=null)return zl([e.x]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.x);return r==null||r.length===0?[]:zl(r)}function rLe(e){var t;if(e.y!=null)return zl([e.y]);var r=(t=e.segment)===null||t===void 0?void 0:t.map(n=>n.y);return r==null||r.length===0?[]:zl(r)}var kY=(e,t)=>{if(e!=null){var r=e.flatMap(n=>t==="xAxis"?tLe(n):rLe(n));if(r.length!==0)return[Math.min(...r),Math.max(...r)]}},nLe=Ue([Z5e,un],kY),aLe=Ue(J5e,nLe,eLe,(e,t,r)=>Q1(e,r,t)),Qk=(e,t,r,n,a,i,o,s)=>{if(r!=null)return r;var l=o==="vertical"&&s==="xAxis"||o==="horizontal"&&s==="yAxis",c=l?Q1(n,i,a):Q1(i,a);return u5e(t,c,e.allowDataOverflow)},iLe=Ue([gn,qk,Xk,U5e,G5e,aLe,Xr,un],Qk,{memoizeOptions:{resultEqualityCheck:zw}}),oLe=[0,1],Zk=(e,t,r,n,a,i,o)=>{if(!((e==null||r==null||r.length===0)&&o===void 0)){var{dataKey:s,type:l}=e,c=Ud(t,i);if(c&&s==null){var u;return vX(0,(u=r==null?void 0:r.length)!==null&&u!==void 0?u:0)}return l==="category"?X5e(n,e,c):a==="expand"?oLe:o}},Jk=Ue([gn,Xr,Uk,Ww,Xv,un,iLe],Zk),RY=(e,t,r,n,a)=>{if(e!=null){var{scale:i,type:o}=e;if(i==="auto")return t==="radial"&&a==="radiusAxis"?"band":t==="radial"&&a==="angleAxis"?"linear":o==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?"point":o==="category"?"band":"linear";if(typeof i=="string"){var s="scale".concat(Fv(i));return s in fh?s:"point"}}},xm=Ue([gn,Xr,SY,Rk,un],RY);function sLe(e){if(e!=null){if(e in fh)return fh[e]();var t="scale".concat(Fv(e));if(t in fh)return fh[t]()}}function eR(e,t,r,n){if(!(r==null||n==null)){if(typeof e.scale=="function")return e.scale.copy().domain(r).range(n);var a=sLe(t);if(a!=null){var i=a.domain(r).range(n);return aDe(i),i}}}var tR=(e,t,r)=>{var n=Gk(t);if(!(r!=="auto"&&r!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(n)&&(n[0]==="auto"||n[1]==="auto")&&Yc(e))return x5e(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&Yc(e))return b5e(e,t.tickCount,t.allowDecimals)}},rR=Ue([Jk,Qv,xm],tR),nR=(e,t,r,n)=>{if(n!=="angleAxis"&&(e==null?void 0:e.type)==="number"&&Yc(t)&&Array.isArray(r)&&r.length>0){var a=t[0],i=r[0],o=t[1],s=r[r.length-1];return[Math.min(a,i),Math.max(o,s)]}return t},lLe=Ue([gn,Jk,rR,un],nR),cLe=Ue(Ww,gn,(e,t)=>{if(!(!t||t.type!=="number")){var r=1/0,n=Array.from(zl(e.map(f=>f.value))).sort((f,m)=>f-m),a=n[0],i=n[n.length-1];if(a==null||i==null)return 1/0;var o=i-a;if(o===0)return 1/0;for(var s=0;sa,(e,t,r,n,a)=>{if(!aa(e))return 0;var i=t==="vertical"?n.height:n.width;if(a==="gap")return e*i/2;if(a==="no-gap"){var o=so(r,e*i),s=e*i/2;return s-o-(s-o)/i*o}return 0}),uLe=(e,t,r)=>{var n=gu(e,t);return n==null||typeof n.padding!="string"?0:AY(e,"xAxis",t,r,n.padding)},dLe=(e,t,r)=>{var n=yu(e,t);return n==null||typeof n.padding!="string"?0:AY(e,"yAxis",t,r,n.padding)},fLe=Ue(gu,uLe,(e,t)=>{var r,n;if(e==null)return{left:0,right:0};var{padding:a}=e;return typeof a=="string"?{left:t,right:t}:{left:((r=a.left)!==null&&r!==void 0?r:0)+t,right:((n=a.right)!==null&&n!==void 0?n:0)+t}}),mLe=Ue(yu,dLe,(e,t)=>{var r,n;if(e==null)return{top:0,bottom:0};var{padding:a}=e;return typeof a=="string"?{top:t,bottom:t}:{top:((r=a.top)!==null&&r!==void 0?r:0)+t,bottom:((n=a.bottom)!==null&&n!==void 0?n:0)+t}}),hLe=Ue([ja,fLe,_w,$w,(e,t,r)=>r],(e,t,r,n,a)=>{var{padding:i}=n;return a?[i.left,r.width-i.right]:[e.left+t.left,e.left+e.width-t.right]}),pLe=Ue([ja,Xr,mLe,_w,$w,(e,t,r)=>r],(e,t,r,n,a,i)=>{var{padding:o}=a;return i?[n.height-o.bottom,o.top]:t==="horizontal"?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),eg=(e,t,r,n)=>{var a;switch(t){case"xAxis":return hLe(e,r,n);case"yAxis":return pLe(e,r,n);case"zAxis":return(a=Bk(e,r))===null||a===void 0?void 0:a.range;case"angleAxis":return vY(e);case"radiusAxis":return gY(e,r);default:return}},MY=Ue([gn,eg],Lw),Uw=Ue([gn,xm,lLe,MY],eR);Ue([Zv,Vw,un],K5e);function DY(e,t){return e.idt.id?1:0}var Kw=(e,t)=>t,Gw=(e,t,r)=>r,vLe=Ue(Cw,Kw,Gw,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(DY)),gLe=Ue(Ew,Kw,Gw,(e,t,r)=>e.filter(n=>n.orientation===t).filter(n=>n.mirror===r).sort(DY)),jY=(e,t)=>({width:e.width,height:t.height}),yLe=(e,t)=>{var r=typeof t.width=="number"?t.width:Wv;return{width:r,height:e.height}};Ue(ja,gu,jY);var xLe=(e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}},bLe=(e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}},SLe=Ue(Gl,ja,vLe,Kw,Gw,(e,t,r,n,a)=>{var i={},o;return r.forEach(s=>{var l=jY(t,s);o==null&&(o=xLe(t,n,e));var c=n==="top"&&!a||n==="bottom"&&a;i[s.id]=o-Number(c)*l.height,o+=(c?-1:1)*l.height}),i}),wLe=Ue(Kl,ja,gLe,Kw,Gw,(e,t,r,n,a)=>{var i={},o;return r.forEach(s=>{var l=yLe(t,s);o==null&&(o=bLe(t,n,e));var c=n==="left"&&!a||n==="right"&&a;i[s.id]=o-Number(c)*l.width,o+=(c?-1:1)*l.width}),i}),CLe=(e,t)=>{var r=gu(e,t);if(r!=null)return SLe(e,r.orientation,r.mirror)};Ue([ja,gu,CLe,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var a=r==null?void 0:r[n];return a==null?{x:e.left,y:0}:{x:e.left,y:a}}});var ELe=(e,t)=>{var r=yu(e,t);if(r!=null)return wLe(e,r.orientation,r.mirror)};Ue([ja,yu,ELe,(e,t)=>t],(e,t,r,n)=>{if(t!=null){var a=r==null?void 0:r[n];return a==null?{x:0,y:e.top}:{x:a,y:e.top}}});Ue(ja,yu,(e,t)=>{var r=typeof t.width=="number"?t.width:Wv;return{width:r,height:e.height}});var FY=(e,t,r,n)=>{if(r!=null){var{allowDuplicatedCategory:a,type:i,dataKey:o}=r,s=Ud(e,n),l=t.map(c=>c.value);if(o&&s&&i==="category"&&a&&$G(l))return l}},aR=Ue([Xr,Ww,gn,un],FY),LY=(e,t,r,n)=>{if(!(r==null||r.dataKey==null)){var{type:a,scale:i}=r,o=Ud(e,n);if(o&&(a==="number"||i!=="auto"))return t.map(s=>s.value)}},iR=Ue([Xr,Ww,Qv,un],LY);Ue([Xr,D5e,xm,Uw,aR,iR,eg,rR,un],(e,t,r,n,a,i,o,s,l)=>{if(t!=null){var c=Ud(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:i,duplicateDomain:a,isCategorical:c,niceTicks:s,range:o,realScaleType:r,scale:n}}});var $Le=(e,t,r,n,a,i,o,s,l)=>{if(!(t==null||n==null)){var c=Ud(e,l),{type:u,ticks:f,tickCount:m}=t,h=r==="scaleBand"&&typeof n.bandwidth=="function"?n.bandwidth()/2:2,p=u==="category"&&n.bandwidth?n.bandwidth()/h:0;p=l==="angleAxis"&&i!=null&&i.length>=2?Mi(i[0]-i[1])*2*p:p;var g=f||a;if(g){var v=g.map((y,x)=>{var b=o?o.indexOf(y):y;return{index:x,coordinate:n(b)+p,value:y,offset:p}});return v.filter(y=>aa(y.coordinate))}return c&&s?s.map((y,x)=>({coordinate:n(y)+p,value:y,index:x,offset:p})).filter(y=>aa(y.coordinate)):n.ticks?n.ticks(m).map(y=>({coordinate:n(y)+p,value:y,offset:p})):n.domain().map((y,x)=>({coordinate:n(y)+p,value:o?o[y]:y,index:x,offset:p}))}};Ue([Xr,Qv,xm,Uw,rR,eg,aR,iR,un],$Le);var _Le=(e,t,r,n,a,i,o)=>{if(!(t==null||r==null||n==null||n[0]===n[1])){var s=Ud(e,o),{tickCount:l}=t,c=0;return c=o==="angleAxis"&&(n==null?void 0:n.length)>=2?Mi(n[0]-n[1])*2*c:c,s&&i?i.map((u,f)=>({coordinate:r(u)+c,value:u,index:f,offset:c})):r.ticks?r.ticks(l).map(u=>({coordinate:r(u)+c,value:u,offset:c})):r.domain().map((u,f)=>({coordinate:r(u)+c,value:a?a[u]:u,index:f,offset:c}))}};Ue([Xr,Qv,Uw,eg,aR,iR,un],_Le);Ue(gn,Uw,(e,t)=>{if(!(e==null||t==null))return Y1(Y1({},e),{},{scale:t})});var OLe=Ue([gn,xm,Jk,MY],eR);Ue((e,t,r)=>Bk(e,r),OLe,(e,t)=>{if(!(e==null||t==null))return Y1(Y1({},e),{},{scale:t})});var TLe=Ue([Xr,Cw,Ew],(e,t,r)=>{switch(e){case"horizontal":return t.some(n=>n.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(n=>n.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),BY=e=>e.options.defaultTooltipEventType,zY=e=>e.options.validateTooltipEventTypes;function HY(e,t,r){if(e==null)return t;var n=e?"axis":"item";return r==null?t:r.includes(n)?n:t}function oR(e,t){var r=BY(e),n=zY(e);return HY(t,r,n)}function PLe(e){return rr(t=>oR(t,e))}var WY=(e,t)=>{var r,n=Number(t);if(!(Al(n)||t==null))return n>=0?e==null||(r=e[n])===null||r===void 0?void 0:r.value:void 0},ILe=e=>e.tooltip.settings,hc={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},NLe={itemInteraction:{click:hc,hover:hc},axisInteraction:{click:hc,hover:hc},keyboardInteraction:hc,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},VY=Ui({name:"tooltip",initialState:NLe,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:sn()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,a=ws(e).tooltipItemPayloads.indexOf(r);a>-1&&(e.tooltipItemPayloads[a]=n)},prepare:sn()},removeTooltipEntrySettings:{reducer(e,t){var r=ws(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:sn()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:kLe,replaceTooltipEntrySettings:RLe,removeTooltipEntrySettings:ALe,setTooltipSettingsState:MLe,setActiveMouseOverItemIndex:UY,mouseLeaveItem:DLe,mouseLeaveChart:KY,setActiveClickItemIndex:jLe,setMouseOverAxisIndex:GY,setMouseClickAxisIndex:FLe,setSyncInteraction:sT,setKeyboardInteraction:lT}=VY.actions,LLe=VY.reducer;function y8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function $y(e){for(var t=1;t{if(t==null)return hc;var a=WLe(e,t,r);if(a==null)return hc;if(a.active)return a;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var i=e.settings.active===!0;if(VLe(a)){if(i)return $y($y({},a),{},{active:!0})}else if(n!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return $y($y({},hc),{},{coordinate:a.coordinate})};function ULe(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}function KLe(e,t){var r=ULe(e),n=t[0],a=t[1];if(r===void 0)return!1;var i=Math.min(n,a),o=Math.max(n,a);return r>=i&&r<=o}function GLe(e,t,r){if(r==null||t==null)return!0;var n=$n(e,t);return n==null||!Yc(r)?!0:KLe(n,r)}var sR=(e,t,r,n)=>{var a=e==null?void 0:e.index;if(a==null)return null;var i=Number(a);if(!aa(i))return a;var o=0,s=1/0;t.length>0&&(s=t.length-1);var l=Math.max(o,Math.min(i,s)),c=t[l];return c==null||GLe(c,r,n)?String(l):null},XY=(e,t,r,n,a,i,o,s)=>{if(!(i==null||s==null)){var l=o[0],c=l==null?void 0:s(l.positions,i);if(c!=null)return c;var u=a==null?void 0:a[Number(i)];if(u)switch(r){case"horizontal":return{x:u.coordinate,y:(n.top+t)/2};default:return{x:(n.left+e)/2,y:u.coordinate}}}},YY=(e,t,r,n)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var a;if(r==="hover"?a=e.itemInteraction.hover.graphicalItemId:a=e.itemInteraction.click.graphicalItemId,a==null&&n!=null){var i=e.tooltipItemPayloads[0];return i!=null?[i]:[]}return e.tooltipItemPayloads.filter(o=>{var s;return((s=o.settings)===null||s===void 0?void 0:s.graphicalItemId)===a})},tg=e=>e.options.tooltipPayloadSearcher,bm=e=>e.tooltip;function x8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function b8(e){for(var t=1;t{if(!(t==null||i==null)){var{chartData:s,computedData:l,dataStartIndex:c,dataEndIndex:u}=r,f=[];return e.reduce((m,h)=>{var p,{dataDefinedOnItem:g,settings:v}=h,y=QLe(g,s),x=Array.isArray(y)?Aq(y,c,u):y,b=(p=v==null?void 0:v.dataKey)!==null&&p!==void 0?p:n,S=v==null?void 0:v.nameKey,w;if(n&&Array.isArray(x)&&!Array.isArray(x[0])&&o==="axis"?w=VAe(x,n,a):w=i(x,t,l,S),Array.isArray(w))w.forEach(C=>{var O=b8(b8({},v),{},{name:C.name,unit:C.unit,color:void 0,fill:void 0});m.push(kF({tooltipEntrySettings:O,dataKey:C.dataKey,payload:C.payload,value:$n(C.payload,C.dataKey),name:C.name}))});else{var E;m.push(kF({tooltipEntrySettings:v,dataKey:b,payload:w,value:$n(w,b),name:(E=$n(w,S))!==null&&E!==void 0?E:v==null?void 0:v.name}))}return m},f)}},lR=Ue([wa,Xr,SY,Rk,Sa],RY),ZLe=Ue([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),JLe=Ue([Sa,gm],zk),Sm=Ue([ZLe,wa,JLe],Hk,{memoizeOptions:{resultEqualityCheck:Hw}}),eBe=Ue([Sm],e=>e.filter(Lk)),tBe=Ue([Sm],Wk,{memoizeOptions:{resultEqualityCheck:Hw}}),wm=Ue([tBe,vu],Vk),rBe=Ue([eBe,vu,wa],bY),cR=Ue([wm,wa,Sm],Kk),ZY=Ue([wa],Gk),nBe=Ue([wa],e=>e.allowDataOverflow),JY=Ue([ZY,nBe],ZX),aBe=Ue([Sm],e=>e.filter(Lk)),iBe=Ue([rBe,aBe,Xv,fY],$Y),oBe=Ue([iBe,vu,Sa,JY],_Y),sBe=Ue([Sm],CY),lBe=Ue([wm,wa,sBe,Vw,Sa],Yk,{memoizeOptions:{resultEqualityCheck:zw}}),cBe=Ue([OY,Sa,gm],ym),uBe=Ue([cBe,Sa],IY),dBe=Ue([TY,Sa,gm],ym),fBe=Ue([dBe,Sa],NY),mBe=Ue([PY,Sa,gm],ym),hBe=Ue([mBe,Sa],kY),pBe=Ue([uBe,hBe,fBe],Q1),vBe=Ue([wa,ZY,JY,oBe,lBe,pBe,Xr,Sa],Qk),rg=Ue([wa,Xr,wm,cR,Xv,Sa,vBe],Zk),gBe=Ue([rg,wa,lR],tR),yBe=Ue([wa,rg,gBe,Sa],nR),eQ=e=>{var t=Sa(e),r=gm(e),n=!1;return eg(e,t,r,n)},tQ=Ue([wa,eQ],Lw),rQ=Ue([wa,lR,yBe,tQ],eR),xBe=Ue([Xr,cR,wa,Sa],FY),bBe=Ue([Xr,cR,wa,Sa],LY),SBe=(e,t,r,n,a,i,o,s)=>{if(t){var{type:l}=t,c=Ud(e,s);if(n){var u=r==="scaleBand"&&n.bandwidth?n.bandwidth()/2:2,f=l==="category"&&n.bandwidth?n.bandwidth()/u:0;return f=s==="angleAxis"&&a!=null&&(a==null?void 0:a.length)>=2?Mi(a[0]-a[1])*2*f:f,c&&o?o.map((m,h)=>({coordinate:n(m)+f,value:m,index:h,offset:f})):n.domain().map((m,h)=>({coordinate:n(m)+f,value:i?i[m]:m,index:h,offset:f}))}}},Xl=Ue([Xr,wa,lR,rQ,eQ,xBe,bBe,Sa],SBe),uR=Ue([BY,zY,ILe],(e,t,r)=>HY(r.shared,e,t)),nQ=e=>e.tooltip.settings.trigger,dR=e=>e.tooltip.settings.defaultIndex,ng=Ue([bm,uR,nQ,dR],qY),Bp=Ue([ng,wm,Jv,rg],sR),aQ=Ue([Xl,Bp],WY),iQ=Ue([ng],e=>{if(e)return e.dataKey}),wBe=Ue([ng],e=>{if(e)return e.graphicalItemId}),oQ=Ue([bm,uR,nQ,dR],YY),CBe=Ue([Kl,Gl,Xr,ja,Xl,dR,oQ,tg],XY),EBe=Ue([ng,CBe],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),$Be=Ue([ng],e=>{var t;return(t=e==null?void 0:e.active)!==null&&t!==void 0?t:!1}),_Be=Ue([oQ,Bp,vu,Jv,aQ,tg,uR],QY);Ue([_Be],e=>{if(e!=null){var t=e.map(r=>r.payload).filter(r=>r!=null);return Array.from(new Set(t))}});function S8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function w8(e){for(var t=1;trr(wa),NBe=()=>{var e=IBe(),t=rr(Xl),r=rr(rQ);return NF(!e||!r?void 0:w8(w8({},e),{},{scale:r}),t)};function C8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function vf(e){for(var t=1;t{var a=t.find(i=>i&&i.index===r);if(a){if(e==="horizontal")return{x:a.coordinate,y:n.chartY};if(e==="vertical")return{x:n.chartX,y:a.coordinate}}return{x:0,y:0}},DBe=(e,t,r,n)=>{var a=t.find(c=>c&&c.index===r);if(a){if(e==="centric"){var i=a.coordinate,{radius:o}=n;return vf(vf(vf({},n),ea(n.cx,n.cy,o,i)),{},{angle:i,radius:o})}var s=a.coordinate,{angle:l}=n;return vf(vf(vf({},n),ea(n.cx,n.cy,s,l)),{},{angle:l,radius:s})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function jBe(e,t){var{chartX:r,chartY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}var sQ=(e,t,r,n,a)=>{var i,o=(i=t==null?void 0:t.length)!==null&&i!==void 0?i:0;if(o<=1||e==null)return 0;if(n==="angleAxis"&&a!=null&&Math.abs(Math.abs(a[1]-a[0])-360)<=1e-6)for(var s=0;s0?(l=r[s-1])===null||l===void 0?void 0:l.coordinate:(c=r[o-1])===null||c===void 0?void 0:c.coordinate,p=(u=r[s])===null||u===void 0?void 0:u.coordinate,g=s>=o-1?(f=r[0])===null||f===void 0?void 0:f.coordinate:(m=r[s+1])===null||m===void 0?void 0:m.coordinate,v=void 0;if(!(h==null||p==null||g==null))if(Mi(p-h)!==Mi(g-p)){var y=[];if(Mi(g-p)===Mi(a[1]-a[0])){v=g;var x=p+a[1]-a[0];y[0]=Math.min(x,(x+h)/2),y[1]=Math.max(x,(x+h)/2)}else{v=h;var b=g+a[1]-a[0];y[0]=Math.min(p,(b+p)/2),y[1]=Math.max(p,(b+p)/2)}var S=[Math.min(p,(v+p)/2),Math.max(p,(v+p)/2)];if(e>S[0]&&e<=S[1]||e>=y[0]&&e<=y[1]){var w;return(w=r[s])===null||w===void 0?void 0:w.index}}else{var E=Math.min(h,g),C=Math.max(h,g);if(e>(E+p)/2&&e<=(C+p)/2){var O;return(O=r[s])===null||O===void 0?void 0:O.index}}}else if(t)for(var _=0;_(P.coordinate+N.coordinate)/2||_>0&&_(P.coordinate+N.coordinate)/2&&e<=(P.coordinate+I.coordinate)/2)return P.index}}return-1},FBe=()=>rr(Rk),fR=(e,t)=>t,lQ=(e,t,r)=>r,mR=(e,t,r,n)=>n,LBe=Ue(Xl,e=>hw(e,t=>t.coordinate)),hR=Ue([bm,fR,lQ,mR],qY),pR=Ue([hR,wm,Jv,rg],sR),BBe=(e,t,r)=>{if(t!=null){var n=bm(e);return t==="axis"?r==="hover"?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:r==="hover"?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}},cQ=Ue([bm,fR,lQ,mR],YY),Z1=Ue([Kl,Gl,Xr,ja,Xl,mR,cQ,tg],XY),zBe=Ue([hR,Z1],(e,t)=>{var r;return(r=e.coordinate)!==null&&r!==void 0?r:t}),uQ=Ue([Xl,pR],WY),HBe=Ue([cQ,pR,vu,Jv,uQ,tg,fR],QY),WBe=Ue([hR,pR],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),VBe=(e,t,r,n,a,i,o)=>{if(!(!e||!r||!n||!a)&&jBe(e,o)){var s=fDe(e,t),l=sQ(s,i,a,r,n),c=MBe(t,a,l,e);return{activeIndex:String(l),activeCoordinate:c}}},UBe=(e,t,r,n,a,i,o)=>{if(!(!e||!n||!a||!i||!r)){var s=PFe(e,r);if(s){var l=mDe(s,t),c=sQ(l,o,i,n,a),u=DBe(t,i,c,s);return{activeIndex:String(c),activeCoordinate:u}}}},KBe=(e,t,r,n,a,i,o,s)=>{if(!(!e||!t||!n||!a||!i))return t==="horizontal"||t==="vertical"?VBe(e,t,n,a,i,o,s):UBe(e,t,r,n,a,i,o)},GBe=Ue(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(t!=null){var n=e[t];if(n!=null)return r?n.panoramaElement:n.element}}),qBe=Ue(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(n=>parseInt(n,10)).concat(Object.values(io)),r=Array.from(new Set(t));return r.sort((n,a)=>n-a)},{memoizeOptions:{resultEqualityCheck:O5e}});function E8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function $8(e){for(var t=1;t$8($8({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),ZBe)},eze=new Set(Object.values(io));function tze(e){return eze.has(e)}var dQ=Ui({name:"zIndex",initialState:JBe,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:sn()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!tze(r)&&delete e.zIndexMap[r])},prepare:sn()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:n,isPanorama:a}=t.payload;e.zIndexMap[r]?a?e.zIndexMap[r].panoramaElement=n:e.zIndexMap[r].element=n:e.zIndexMap[r]={consumers:0,element:a?void 0:n,panoramaElement:a?n:void 0}},prepare:sn()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:sn()}}}),{registerZIndexPortal:rze,unregisterZIndexPortal:nze,registerZIndexPortalElement:aze,unregisterZIndexPortalElement:ize}=dQ.actions,oze=dQ.reducer;function ag(e){var{zIndex:t,children:r}=e,n=zDe(),a=n&&t!==void 0&&t!==0,i=mu(),o=Fn();d.useLayoutEffect(()=>a?(o(rze({zIndex:t})),()=>{o(nze({zIndex:t}))}):Lv,[o,t,a]);var s=rr(l=>GBe(l,t,i));return a?s?wi.createPortal(r,s):null:r}function cT(){return cT=Object.assign?Object.assign.bind():function(e){for(var t=1;td.useContext(fQ),mQ={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function a(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function i(l,c,u,f,m){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new a(u,f||l,m),p=r?r+c:c;return l._events[p]?l._events[p].fn?l._events[p]=[l._events[p],h]:l._events[p].push(h):(l._events[p]=h,l._eventsCount++),l}function o(l,c){--l._eventsCount===0?l._events=new n:delete l._events[c]}function s(){this._events=new n,this._eventsCount=0}s.prototype.eventNames=function(){var c=[],u,f;if(this._eventsCount===0)return c;for(f in u=this._events)t.call(u,f)&&c.push(r?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},s.prototype.listeners=function(c){var u=r?r+c:c,f=this._events[u];if(!f)return[];if(f.fn)return[f.fn];for(var m=0,h=f.length,p=new Array(h);m{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),yze=hQ.reducer,{createEventEmitter:xze}=hQ.actions;function bze(e){return e.tooltip.syncInteraction}var Sze={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},pQ=Ui({name:"chartData",initialState:Sze,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;r!=null&&(e.dataStartIndex=r),n!=null&&(e.dataEndIndex=n)}}}),{setChartData:T8,setDataStartEndIndexes:wze,setComputedData:Crt}=pQ.actions,Cze=pQ.reducer,Eze=["x","y"];function P8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function gf(e){for(var t=1;tl.rootProps.className);d.useEffect(()=>{if(e==null)return Lv;var l=(c,u,f)=>{if(t!==f&&e===c){if(n==="index"){var m;if(o&&u!==null&&u!==void 0&&(m=u.payload)!==null&&m!==void 0&&m.coordinate&&u.payload.sourceViewBox){var h=u.payload.coordinate,{x:p,y:g}=h,v=Tze(h,Eze),{x:y,y:x,width:b,height:S}=u.payload.sourceViewBox,w=gf(gf({},v),{},{x:o.x+(b?(p-y)/b:0)*o.width,y:o.y+(S?(g-x)/S:0)*o.height});r(gf(gf({},u),{},{payload:gf(gf({},u.payload),{},{coordinate:w})}))}else r(u);return}if(a!=null){var E;if(typeof n=="function"){var C={activeTooltipIndex:u.payload.index==null?void 0:Number(u.payload.index),isTooltipActive:u.payload.active,activeIndex:u.payload.index==null?void 0:Number(u.payload.index),activeLabel:u.payload.label,activeDataKey:u.payload.dataKey,activeCoordinate:u.payload.coordinate},O=n(a,C);E=a[O]}else n==="value"&&(E=a.find(A=>String(A.value)===u.payload.label));var{coordinate:_}=u.payload;if(E==null||u.payload.active===!1||_==null||o==null){r(sT({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:P,y:I}=_,N=Math.min(P,o.x+o.width),D=Math.min(I,o.y+o.height),k={x:i==="horizontal"?E.coordinate:N,y:i==="horizontal"?D:E.coordinate},R=sT({active:u.payload.active,coordinate:k,dataKey:u.payload.dataKey,index:String(E.index),label:u.payload.label,sourceViewBox:u.payload.sourceViewBox,graphicalItemId:u.payload.graphicalItemId});r(R)}}};return zp.on(uT,l),()=>{zp.off(uT,l)}},[s,r,t,e,n,a,i,o])}function Nze(){var e=rr(Ak),t=rr(Mk),r=Fn();d.useEffect(()=>{if(e==null)return Lv;var n=(a,i,o)=>{t!==o&&e===a&&r(wze(i))};return zp.on(O8,n),()=>{zp.off(O8,n)}},[r,t,e])}function kze(){var e=Fn();d.useEffect(()=>{e(xze())},[e]),Ize(),Nze()}function Rze(e,t,r,n,a,i){var o=rr(h=>BBe(h,e,t)),s=rr(Mk),l=rr(Ak),c=rr(mY),u=rr(bze),f=u==null?void 0:u.active,m=Ow();d.useEffect(()=>{if(!f&&l!=null&&s!=null){var h=sT({active:i,coordinate:r,dataKey:o,index:a,label:typeof n=="number"?String(n):n,sourceViewBox:m,graphicalItemId:void 0});zp.emit(uT,l,h,s)}},[f,r,o,a,n,s,l,c,i,m])}function I8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function N8(e){for(var t=1;t{C(MLe({shared:x,trigger:b,axisId:E,active:a,defaultIndex:O}))},[C,x,b,E,a,O]);var _=Ow(),P=nX(),I=PLe(x),{activeIndex:N,isActive:D}=(t=rr(X=>WBe(X,I,b,O)))!==null&&t!==void 0?t:{},k=rr(X=>HBe(X,I,b,O)),R=rr(X=>uQ(X,I,b,O)),A=rr(X=>zBe(X,I,b,O)),j=k,F=mze(),M=(r=a??D)!==null&&r!==void 0?r:!1,[V,K]=aq([j,M]),L=I==="axis"?R:void 0;Rze(I,b,A,L,N,M);var B=w??F;if(B==null||_==null||I==null)return null;var W=j??k8;M||(W=k8),c&&W.length&&(W=KG(W.filter(X=>X.value!=null&&(X.hide!==!0||n.includeHidden)),m,jze));var z=W.length>0,U=d.createElement(Pje,{allowEscapeViewBox:i,animationDuration:o,animationEasing:s,isAnimationActive:u,active:M,coordinate:A,hasPayload:z,offset:f,position:h,reverseDirection:p,useTranslate3d:g,viewBox:_,wrapperStyle:v,lastBoundingBox:V,innerRef:K,hasPortalFromProps:!!w},Fze(l,N8(N8({},n),{},{payload:W,label:L,active:M,activeIndex:N,coordinate:A,accessibilityLayer:P})));return d.createElement(d.Fragment,null,wi.createPortal(U,B),M&&d.createElement(fze,{cursor:y,tooltipEventType:I,coordinate:A,payload:W,index:N}))}var ig=e=>null;ig.displayName="Cell";function Bze(e,t,r){return(t=zze(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zze(e){var t=Hze(e,"string");return typeof t=="symbol"?t:t+""}function Hze(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Wze{constructor(t){Bze(this,"cache",new Map),this.maxSize=t}get(t){var r=this.cache.get(t);return r!==void 0&&(this.cache.delete(t),this.cache.set(t,r)),r}set(t,r){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(t,r)}clear(){this.cache.clear()}size(){return this.cache.size}}function R8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Vze(e){for(var t=1;t{try{var r=document.getElementById(M8);r||(r=document.createElement("span"),r.setAttribute("id",M8),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,Xze,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch{return{width:0,height:0}}},j8=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||ak.isSsr)return{width:0,height:0};if(!gQ.enableCache)return D8(t,r);var n=Yze(t,r),a=A8.get(n);if(a)return a;var i=D8(t,r);return A8.set(n,i),i},yQ;function Qze(e,t,r){return(t=Zze(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zze(e){var t=Jze(e,"string");return typeof t=="symbol"?t:t+""}function Jze(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var F8=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,L8=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,e7e=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,t7e=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,r7e={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},n7e=["cm","mm","pt","pc","in","Q","px"];function a7e(e){return n7e.includes(e)}var Bf="NaN";function i7e(e,t){return e*r7e[t]}class Ha{static parse(t){var r,[,n,a]=(r=t7e.exec(t))!==null&&r!==void 0?r:[];return n==null?Ha.NaN:new Ha(parseFloat(n),a??"")}constructor(t,r){this.num=t,this.unit=r,this.num=t,this.unit=r,Al(t)&&(this.unit=""),r!==""&&!e7e.test(r)&&(this.num=NaN,this.unit=""),a7e(r)&&(this.num=i7e(t,r),this.unit="px")}add(t){return this.unit!==t.unit?new Ha(NaN,""):new Ha(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new Ha(NaN,""):new Ha(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Ha(NaN,""):new Ha(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new Ha(NaN,""):new Ha(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Al(this.num)}}yQ=Ha;Qze(Ha,"NaN",new yQ(NaN,""));function xQ(e){if(e==null||e.includes(Bf))return Bf;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,a,i]=(r=F8.exec(t))!==null&&r!==void 0?r:[],o=Ha.parse(n??""),s=Ha.parse(i??""),l=a==="*"?o.multiply(s):o.divide(s);if(l.isNaN())return Bf;t=t.replace(F8,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,[,u,f,m]=(c=L8.exec(t))!==null&&c!==void 0?c:[],h=Ha.parse(u??""),p=Ha.parse(m??""),g=f==="+"?h.add(p):h.subtract(p);if(g.isNaN())return Bf;t=t.replace(L8,g.toString())}return t}var B8=/\(([^()]*)\)/;function o7e(e){for(var t=e,r;(r=B8.exec(t))!=null;){var[,n]=r;t=t.replace(B8,xQ(n))}return t}function s7e(e){var t=e.replace(/\s+/g,"");return t=o7e(t),t=xQ(t),t}function l7e(e){try{return s7e(e)}catch{return Bf}}function EE(e){var t=l7e(e.slice(5,-1));return t===Bf?"":t}var c7e=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],u7e=["dx","dy","angle","className","breakAll"];function dT(){return dT=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var{children:t,breakAll:r,style:n}=e;try{var a=[];fo(t)||(r?a=t.toString().split(""):a=t.toString().split(bQ));var i=a.map(s=>({word:s,width:j8(s,n).width})),o=r?0:j8(" ",n).width;return{wordsWithComputedWidth:i,spaceWidth:o}}catch{return null}};function f7e(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var wQ=(e,t,r,n)=>e.reduce((a,i)=>{var{word:o,width:s}=i,l=a[a.length-1];if(l&&s!=null&&(t==null||n||l.width+s+re.reduce((t,r)=>t.width>r.width?t:r),m7e="…",H8=(e,t,r,n,a,i,o,s)=>{var l=e.slice(0,t),c=SQ({breakAll:r,style:n,children:l+m7e});if(!c)return[!1,[]];var u=wQ(c.wordsWithComputedWidth,i,o,s),f=u.length>a||CQ(u).width>Number(i);return[f,u]},h7e=(e,t,r,n,a)=>{var{maxLines:i,children:o,style:s,breakAll:l}=e,c=er(i),u=String(o),f=wQ(t,n,r,a);if(!c||a)return f;var m=f.length>i||CQ(f).width>Number(n);if(!m)return f;for(var h=0,p=u.length-1,g=0,v;h<=p&&g<=u.length-1;){var y=Math.floor((h+p)/2),x=y-1,[b,S]=H8(u,x,l,s,i,n,r,a),[w]=H8(u,y,l,s,i,n,r,a);if(!b&&!w&&(h=y+1),b&&w&&(p=y-1),!b&&w){v=S;break}g++}return v||f},W8=e=>{var t=fo(e)?[]:e.toString().split(bQ);return[{words:t,width:void 0}]},p7e=e=>{var{width:t,scaleToFit:r,children:n,style:a,breakAll:i,maxLines:o}=e;if((t||r)&&!ak.isSsr){var s,l,c=SQ({breakAll:i,children:n,style:a});if(c){var{wordsWithComputedWidth:u,spaceWidth:f}=c;s=u,l=f}else return W8(n);return h7e({breakAll:i,children:n,maxLines:o,style:a},s,l,t,!!r)}return W8(n)},EQ="#808080",v7e={angle:0,breakAll:!1,capHeight:"0.71em",fill:EQ,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},vR=d.forwardRef((e,t)=>{var r=Zo(e,v7e),{x:n,y:a,lineHeight:i,capHeight:o,fill:s,scaleToFit:l,textAnchor:c,verticalAnchor:u}=r,f=z8(r,c7e),m=d.useMemo(()=>p7e({breakAll:f.breakAll,children:f.children,maxLines:f.maxLines,scaleToFit:l,style:f.style,width:f.width}),[f.breakAll,f.children,f.maxLines,l,f.style,f.width]),{dx:h,dy:p,angle:g,className:v,breakAll:y}=f,x=z8(f,u7e);if(!Dl(n)||!Dl(a)||m.length===0)return null;var b=Number(n)+(er(h)?h:0),S=Number(a)+(er(p)?p:0);if(!aa(b)||!aa(S))return null;var w;switch(u){case"start":w=EE("calc(".concat(o,")"));break;case"middle":w=EE("calc(".concat((m.length-1)/2," * -").concat(i," + (").concat(o," / 2))"));break;default:w=EE("calc(".concat(m.length-1," * -").concat(i,")"));break}var E=[];if(l){var C=m[0].width,{width:O}=f;E.push("scale(".concat(er(O)&&er(C)?O/C:1,")"))}return g&&E.push("rotate(".concat(g,", ").concat(b,", ").concat(S,")")),E.length&&(x.transform=E.join(" ")),d.createElement("text",dT({},Ko(x),{ref:t,x:b,y:S,className:jn("recharts-text",v),textAnchor:c,fill:s.includes("url")?EQ:s}),m.map((_,P)=>{var I=_.words.join(y?"":" ");return d.createElement("tspan",{x:b,dy:P===0?w:i,key:"".concat(I,"-").concat(P)},I)}))});vR.displayName="Text";var g7e=["labelRef"],y7e=["content"];function V8(e,t){if(e==null)return{};var r,n,a=x7e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{var e=d.useContext(C7e),t=Ow();return e||Kq(t)},$7e=d.createContext(null),_7e=()=>{var e=d.useContext($7e),t=rr(yY);return e||t},O7e=e=>{var{value:t,formatter:r}=e,n=fo(e.children)?t:e.children;return typeof r=="function"?r(n):n},T7e=e=>e!=null&&typeof e=="function",P7e=(e,t)=>{var r=Mi(t-e),n=Math.min(Math.abs(t-e),360);return r*n},I7e=(e,t,r,n,a)=>{var{offset:i,className:o}=e,{cx:s,cy:l,innerRadius:c,outerRadius:u,startAngle:f,endAngle:m,clockWise:h}=a,p=(c+u)/2,g=P7e(f,m),v=g>=0?1:-1,y,x;switch(t){case"insideStart":y=f+v*i,x=h;break;case"insideEnd":y=m-v*i,x=!h;break;case"end":y=m+v*i,x=h;break;default:throw new Error("Unsupported position ".concat(t))}x=g<=0?x:!x;var b=ea(s,l,p,y),S=ea(s,l,p,y+(x?1:-1)*359),w="M".concat(b.x,",").concat(b.y,` - A`).concat(p,",").concat(p,",0,1,").concat(x?0:1,`, - `).concat(S.x,",").concat(S.y),E=fo(e.id)?Op("recharts-radial-line-"):e.id;return d.createElement("text",J1({},n,{dominantBaseline:"central",className:jn("recharts-radial-bar-label",o)}),d.createElement("defs",null,d.createElement("path",{id:E,d:w})),d.createElement("textPath",{xlinkHref:"#".concat(E)},r))},N7e=(e,t,r)=>{var{cx:n,cy:a,innerRadius:i,outerRadius:o,startAngle:s,endAngle:l}=e,c=(s+l)/2;if(r==="outside"){var{x:u,y:f}=ea(n,a,o+t,c);return{x:u,y:f,textAnchor:u>=n?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:n,y:a,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:n,y:a,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:n,y:a,textAnchor:"middle",verticalAnchor:"end"};var m=(i+o)/2,{x:h,y:p}=ea(n,a,m,c);return{x:h,y:p,textAnchor:"middle",verticalAnchor:"middle"}},fT=e=>"cx"in e&&er(e.cx),k7e=(e,t)=>{var{parentViewBox:r,offset:n,position:a}=e,i;r!=null&&!fT(r)&&(i=r);var{x:o,y:s,upperWidth:l,lowerWidth:c,height:u}=t,f=o,m=o+(l-c)/2,h=(f+m)/2,p=(l+c)/2,g=f+l/2,v=u>=0?1:-1,y=v*n,x=v>0?"end":"start",b=v>0?"start":"end",S=l>=0?1:-1,w=S*n,E=S>0?"end":"start",C=S>0?"start":"end";if(a==="top"){var O={x:f+l/2,y:s-y,textAnchor:"middle",verticalAnchor:x};return Kn(Kn({},O),i?{height:Math.max(s-i.y,0),width:l}:{})}if(a==="bottom"){var _={x:m+c/2,y:s+u+y,textAnchor:"middle",verticalAnchor:b};return Kn(Kn({},_),i?{height:Math.max(i.y+i.height-(s+u),0),width:c}:{})}if(a==="left"){var P={x:h-w,y:s+u/2,textAnchor:E,verticalAnchor:"middle"};return Kn(Kn({},P),i?{width:Math.max(P.x-i.x,0),height:u}:{})}if(a==="right"){var I={x:h+p+w,y:s+u/2,textAnchor:C,verticalAnchor:"middle"};return Kn(Kn({},I),i?{width:Math.max(i.x+i.width-I.x,0),height:u}:{})}var N=i?{width:p,height:u}:{};return a==="insideLeft"?Kn({x:h+w,y:s+u/2,textAnchor:C,verticalAnchor:"middle"},N):a==="insideRight"?Kn({x:h+p-w,y:s+u/2,textAnchor:E,verticalAnchor:"middle"},N):a==="insideTop"?Kn({x:f+l/2,y:s+y,textAnchor:"middle",verticalAnchor:b},N):a==="insideBottom"?Kn({x:m+c/2,y:s+u-y,textAnchor:"middle",verticalAnchor:x},N):a==="insideTopLeft"?Kn({x:f+w,y:s+y,textAnchor:C,verticalAnchor:b},N):a==="insideTopRight"?Kn({x:f+l-w,y:s+y,textAnchor:E,verticalAnchor:b},N):a==="insideBottomLeft"?Kn({x:m+w,y:s+u-y,textAnchor:C,verticalAnchor:x},N):a==="insideBottomRight"?Kn({x:m+c-w,y:s+u-y,textAnchor:E,verticalAnchor:x},N):a&&typeof a=="object"&&(er(a.x)||Ml(a.x))&&(er(a.y)||Ml(a.y))?Kn({x:o+so(a.x,p),y:s+so(a.y,u),textAnchor:"end",verticalAnchor:"end"},N):Kn({x:g,y:s+u/2,textAnchor:"middle",verticalAnchor:"middle"},N)},R7e={angle:0,offset:5,zIndex:io.label,position:"middle",textBreakAll:!1};function gR(e){var t=Zo(e,R7e),{viewBox:r,position:n,value:a,children:i,content:o,className:s="",textBreakAll:l,labelRef:c}=t,u=_7e(),f=E7e(),m=n==="center"?f:u??f,h,p,g;if(r==null?h=m:fT(r)?h=r:h=Kq(r),!h||fo(a)&&fo(i)&&!d.isValidElement(o)&&typeof o!="function")return null;var v=Kn(Kn({},t),{},{viewBox:h});if(d.isValidElement(o)){var y=V8(v,g7e);return d.cloneElement(o,y)}if(typeof o=="function"){var x=V8(v,y7e);if(p=d.createElement(o,x),d.isValidElement(p))return p}else p=O7e(t);var b=Ko(t);if(fT(h)){if(n==="insideStart"||n==="insideEnd"||n==="end")return I7e(t,n,p,b,h);g=N7e(h,t.offset,t.position)}else g=k7e(t,h);return d.createElement(ag,{zIndex:t.zIndex},d.createElement(vR,J1({ref:c,className:jn("recharts-label",s)},b,g,{textAnchor:f7e(b.textAnchor)?b.textAnchor:g.textAnchor,breakAll:l}),p))}gR.displayName="Label";var $Q={},_Q={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return r[r.length-1]}e.last=t})(_Q);var OQ={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return Array.isArray(r)?r:Array.from(r)}e.toArray=t})(OQ);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=_Q,r=OQ,n=fw;function a(i){if(n.isArrayLike(i))return t.last(r.toArray(i))}e.last=a})($Q);var A7e=$Q.last;const M7e=ia(A7e);var D7e=["valueAccessor"],j7e=["dataKey","clockWise","id","textBreakAll","zIndex"];function eb(){return eb=Object.assign?Object.assign.bind():function(e){for(var t=1;tArray.isArray(e.value)?M7e(e.value):e.value,TQ=d.createContext(void 0);TQ.Provider;var PQ=d.createContext(void 0),B7e=PQ.Provider;function z7e(){return d.useContext(TQ)}function H7e(){return d.useContext(PQ)}function bx(e){var{valueAccessor:t=L7e}=e,r=K8(e,D7e),{dataKey:n,clockWise:a,id:i,textBreakAll:o,zIndex:s}=r,l=K8(r,j7e),c=z7e(),u=H7e(),f=c||u;return!f||!f.length?null:d.createElement(ag,{zIndex:s??io.label},d.createElement(qc,{className:"recharts-label-list"},f.map((m,h)=>{var p,g=fo(n)?t(m,h):$n(m&&m.payload,n),v=fo(i)?{}:{id:"".concat(i,"-").concat(h)};return d.createElement(gR,eb({key:"label-".concat(h)},Ko(m),l,v,{fill:(p=r.fill)!==null&&p!==void 0?p:m.fill,parentViewBox:m.parentViewBox,value:g,textBreakAll:o,viewBox:m.viewBox,index:h,zIndex:0}))})))}bx.displayName="LabelList";function W7e(e){var{label:t}=e;return t?t===!0?d.createElement(bx,{key:"labelList-implicit"}):d.isValidElement(t)||T7e(t)?d.createElement(bx,{key:"labelList-implicit",content:t}):typeof t=="object"?d.createElement(bx,eb({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}var IQ=e=>e.graphicalItems.polarItems,V7e=Ue([un,Yv],zk),qw=Ue([IQ,gn,V7e],Hk),U7e=Ue([qw],Wk),Xw=Ue([U7e,Ik],Vk),K7e=Ue([Xw,gn,qw],Kk);Ue([Xw,gn,qw],(e,t,r)=>r.length>0?e.flatMap(n=>r.flatMap(a=>{var i,o=$n(n,(i=t.dataKey)!==null&&i!==void 0?i:a.dataKey);return{value:o,errorDomain:[]}})).filter(Boolean):(t==null?void 0:t.dataKey)!=null?e.map(n=>({value:$n(n,t.dataKey),errorDomain:[]})):e.map(n=>({value:n,errorDomain:[]})));var G8=()=>{},G7e=Ue([Xw,gn,qw,Vw,un],Yk),q7e=Ue([gn,qk,Xk,G8,G7e,G8,Xr,un],Qk),NQ=Ue([gn,Xr,Xw,K7e,Xv,un,q7e],Zk),X7e=Ue([NQ,gn,xm],tR);Ue([gn,NQ,X7e,un],nR);var Y7e={radiusAxis:{},angleAxis:{}},kQ=Ui({name:"polarAxis",initialState:Y7e,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}});kQ.actions;var Q7e=kQ.reducer;function q8(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function X8(e){for(var t=1;tt,yR=Ue([IQ,t9e],(e,t)=>e.filter(r=>r.type==="pie").find(r=>r.id===t)),r9e=[],xR=(e,t,r)=>(r==null?void 0:r.length)===0?r9e:r,RQ=Ue([Ik,yR,xR],(e,t,r)=>{var{chartData:n}=e;if(t!=null){var a;if((t==null?void 0:t.data)!=null&&t.data.length>0?a=t.data:a=n,(!a||!a.length)&&r!=null&&(a=r.map(i=>X8(X8({},t.presentationProps),i.props))),a!=null)return a}}),n9e=Ue([RQ,yR,xR],(e,t,r)=>{if(!(e==null||t==null))return e.map((n,a)=>{var i,o=$n(n,t.nameKey,t.name),s;return r!=null&&(i=r[a])!==null&&i!==void 0&&(i=i.props)!==null&&i!==void 0&&i.fill?s=r[a].props.fill:typeof n=="object"&&n!=null&&"fill"in n?s=n.fill:s=t.fill,{value:Mq(o,t.dataKey),color:s,payload:n,type:t.legendType}})}),a9e=Ue([RQ,yR,xR,ja],(e,t,r,n)=>{if(!(t==null||e==null))return oHe({offset:n,pieSettings:t,displayedData:e,cells:r})}),AQ={exports:{}},Ur={};/** - * @license React - * react-is.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var bR=Symbol.for("react.transitional.element"),SR=Symbol.for("react.portal"),Yw=Symbol.for("react.fragment"),Qw=Symbol.for("react.strict_mode"),Zw=Symbol.for("react.profiler"),Jw=Symbol.for("react.consumer"),eC=Symbol.for("react.context"),tC=Symbol.for("react.forward_ref"),rC=Symbol.for("react.suspense"),nC=Symbol.for("react.suspense_list"),aC=Symbol.for("react.memo"),iC=Symbol.for("react.lazy"),i9e=Symbol.for("react.view_transition"),o9e=Symbol.for("react.client.reference");function es(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case bR:switch(e=e.type,e){case Yw:case Zw:case Qw:case rC:case nC:case i9e:return e;default:switch(e=e&&e.$$typeof,e){case eC:case tC:case iC:case aC:return e;case Jw:return e;default:return t}}case SR:return t}}}Ur.ContextConsumer=Jw;Ur.ContextProvider=eC;Ur.Element=bR;Ur.ForwardRef=tC;Ur.Fragment=Yw;Ur.Lazy=iC;Ur.Memo=aC;Ur.Portal=SR;Ur.Profiler=Zw;Ur.StrictMode=Qw;Ur.Suspense=rC;Ur.SuspenseList=nC;Ur.isContextConsumer=function(e){return es(e)===Jw};Ur.isContextProvider=function(e){return es(e)===eC};Ur.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===bR};Ur.isForwardRef=function(e){return es(e)===tC};Ur.isFragment=function(e){return es(e)===Yw};Ur.isLazy=function(e){return es(e)===iC};Ur.isMemo=function(e){return es(e)===aC};Ur.isPortal=function(e){return es(e)===SR};Ur.isProfiler=function(e){return es(e)===Zw};Ur.isStrictMode=function(e){return es(e)===Qw};Ur.isSuspense=function(e){return es(e)===rC};Ur.isSuspenseList=function(e){return es(e)===nC};Ur.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Yw||e===Zw||e===Qw||e===rC||e===nC||typeof e=="object"&&e!==null&&(e.$$typeof===iC||e.$$typeof===aC||e.$$typeof===eC||e.$$typeof===Jw||e.$$typeof===tC||e.$$typeof===o9e||e.getModuleId!==void 0)};Ur.typeOf=es;AQ.exports=Ur;var s9e=AQ.exports,Y8=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",Q8=null,$E=null,MQ=e=>{if(e===Q8&&Array.isArray($E))return $E;var t=[];return d.Children.forEach(e,r=>{fo(r)||(s9e.isFragment(r)?t=t.concat(MQ(r.props.children)):t.push(r))}),$E=t,Q8=e,t};function DQ(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(a=>Y8(a)):n=[Y8(t)],MQ(e).forEach(a=>{var i=_p(a,"type.displayName")||_p(a,"type.name");i&&n.indexOf(i)!==-1&&r.push(a)}),r}var jQ={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){var a;if(typeof r!="object"||r==null)return!1;if(Object.getPrototypeOf(r)===null)return!0;if(Object.prototype.toString.call(r)!=="[object Object]"){const i=r[Symbol.toStringTag];return i==null||!((a=Object.getOwnPropertyDescriptor(r,Symbol.toStringTag))!=null&&a.writable)?!1:r.toString()===`[object ${i}]`}let n=r;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(r)===n}e.isPlainObject=t})(jQ);var l9e=jQ.isPlainObject;const c9e=ia(l9e);var Z8,J8,e5,t5,r5;function n5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function a5(e){for(var t=1;t{var i=r-n,o;return o=bn(Z8||(Z8=Zm(["M ",",",""])),e,t),o+=bn(J8||(J8=Zm(["L ",",",""])),e+r,t),o+=bn(e5||(e5=Zm(["L ",",",""])),e+r-i/2,t+a),o+=bn(t5||(t5=Zm(["L ",",",""])),e+r-i/2-n,t+a),o+=bn(r5||(r5=Zm(["L ",","," Z"])),e,t),o},m9e={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},h9e=e=>{var t=Zo(e,m9e),{x:r,y:n,upperWidth:a,lowerWidth:i,height:o,className:s}=t,{animationEasing:l,animationDuration:c,animationBegin:u,isUpdateAnimationActive:f}=t,m=d.useRef(null),[h,p]=d.useState(-1),g=d.useRef(a),v=d.useRef(i),y=d.useRef(o),x=d.useRef(r),b=d.useRef(n),S=ok(e,"trapezoid-");if(d.useEffect(()=>{if(m.current&&m.current.getTotalLength)try{var k=m.current.getTotalLength();k&&p(k)}catch{}},[]),r!==+r||n!==+n||a!==+a||i!==+i||o!==+o||a===0&&i===0||o===0)return null;var w=jn("recharts-trapezoid",s);if(!f)return d.createElement("g",null,d.createElement("path",tb({},Ko(t),{className:w,d:i5(r,n,a,i,o)})));var E=g.current,C=v.current,O=y.current,_=x.current,P=b.current,I="0px ".concat(h===-1?1:h,"px"),N="".concat(h,"px 0px"),D=aX(["strokeDasharray"],c,l);return d.createElement(ik,{animationId:S,key:S,canBegin:h>0,duration:c,easing:l,isActive:f,begin:u},k=>{var R=us(E,a,k),A=us(C,i,k),j=us(O,o,k),F=us(_,r,k),M=us(P,n,k);m.current&&(g.current=R,v.current=A,y.current=j,x.current=F,b.current=M);var V=k>0?{transition:D,strokeDasharray:N}:{strokeDasharray:I};return d.createElement("path",tb({},Ko(t),{className:w,d:i5(F,M,R,A,j),ref:m,style:a5(a5({},V),t.style)}))})},p9e=["option","shapeType","activeClassName"];function v9e(e,t){if(e==null)return{};var r,n,a=g9e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{var n=Fn();return(a,i)=>o=>{e==null||e(a,i,o),n(UY({activeIndex:String(i),activeDataKey:t,activeCoordinate:a.tooltipPosition,activeGraphicalItemId:r}))}},_9e=e=>{var t=Fn();return(r,n)=>a=>{e==null||e(r,n,a),t(DLe())}},O9e=(e,t,r)=>{var n=Fn();return(a,i)=>o=>{e==null||e(a,i,o),n(jLe({activeIndex:String(i),activeDataKey:t,activeCoordinate:a.tooltipPosition,activeGraphicalItemId:r}))}};function T9e(e){var{tooltipEntrySettings:t}=e,r=Fn(),n=mu(),a=d.useRef(null);return d.useLayoutEffect(()=>{n||(a.current===null?r(kLe(t)):a.current!==t&&r(RLe({prev:a.current,next:t})),a.current=t)},[t,r,n]),d.useLayoutEffect(()=>()=>{a.current&&(r(ALe(a.current)),a.current=null)},[r]),null}function P9e(e){var{legendPayload:t}=e,r=Fn(),n=rr(Xr),a=d.useRef(null);return d.useLayoutEffect(()=>{n!=="centric"&&n!=="radial"||(a.current===null?r(tje(t)):a.current!==t&&r(rje({prev:a.current,next:t})),a.current=t)},[r,n,t]),d.useLayoutEffect(()=>()=>{a.current&&(r(nje(a.current)),a.current=null)},[r]),null}var _E,I9e=()=>{var[e]=d.useState(()=>Op("uid-"));return e},N9e=(_E=F0["useId".toString()])!==null&&_E!==void 0?_E:I9e;function k9e(e,t){var r=N9e();return t||(e?"".concat(e,"-").concat(r):r)}var R9e=d.createContext(void 0),A9e=e=>{var{id:t,type:r,children:n}=e,a=k9e("recharts-".concat(r),t);return d.createElement(R9e.Provider,{value:a},n(a))},M9e={cartesianItems:[],polarItems:[]},FQ=Ui({name:"graphicalItems",initialState:M9e,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:sn()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,a=ws(e).cartesianItems.indexOf(r);a>-1&&(e.cartesianItems[a]=n)},prepare:sn()},removeCartesianGraphicalItem:{reducer(e,t){var r=ws(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:sn()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:sn()},removePolarGraphicalItem:{reducer(e,t){var r=ws(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:sn()}}}),{addCartesianGraphicalItem:Ert,replaceCartesianGraphicalItem:$rt,removeCartesianGraphicalItem:_rt,addPolarGraphicalItem:D9e,removePolarGraphicalItem:j9e}=FQ.actions,F9e=FQ.reducer;function L9e(e){var t=Fn();return d.useLayoutEffect(()=>(t(D9e(e)),()=>{t(j9e(e))}),[t,e]),null}var B9e=["key"],z9e=["onMouseEnter","onClick","onMouseLeave"],H9e=["id"],W9e=["id"];function l5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function wn(e){for(var t=1;tDQ(e.children,ig),[e.children]),r=rr(n=>n9e(n,e.id,t));return r==null?null:d.createElement(P9e,{legendPayload:r})}var X9e=d.memo(e=>{var{dataKey:t,nameKey:r,sectors:n,stroke:a,strokeWidth:i,fill:o,name:s,hide:l,tooltipType:c,id:u}=e,f={dataDefinedOnItem:n.map(m=>m.tooltipPayload),positions:n.map(m=>m.tooltipPosition),settings:{stroke:a,strokeWidth:i,fill:o,dataKey:t,nameKey:r,name:Mq(s,t),hide:l,type:c,color:o,unit:"",graphicalItemId:u}};return d.createElement(T9e,{tooltipEntrySettings:f})}),Y9e=(e,t)=>e>t?"start":eso(typeof t=="function"?t(e):t,r,r*.8),Z9e=(e,t,r)=>{var{top:n,left:a,width:i,height:o}=t,s=cX(i,o),l=a+so(e.cx,i,i/2),c=n+so(e.cy,o,o/2),u=so(e.innerRadius,s,0),f=Q9e(r,e.outerRadius,s),m=e.maxRadius||Math.sqrt(i*i+o*o)/2;return{cx:l,cy:c,innerRadius:u,outerRadius:f,maxRadius:m}},J9e=(e,t)=>{var r=Mi(t-e),n=Math.min(Math.abs(t-e),360);return r*n};function eHe(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var tHe=(e,t)=>{if(d.isValidElement(e))return d.cloneElement(e,t);if(typeof e=="function")return e(t);var r=jn("recharts-pie-label-line",typeof e!="boolean"?e.className:""),n=oC(t,B9e);return d.createElement(nk,Qc({},n,{type:"linear",className:r}))},rHe=(e,t,r)=>{if(d.isValidElement(e))return d.cloneElement(e,t);var n=r;if(typeof e=="function"&&(n=e(t),d.isValidElement(n)))return n;var a=jn("recharts-pie-label-text",eHe(e));return d.createElement(vR,Qc({},t,{alignmentBaseline:"middle",className:a}),n)};function nHe(e){var{sectors:t,props:r,showLabels:n}=e,{label:a,labelLine:i,dataKey:o}=r;if(!n||!a||!t)return null;var s=C0(r),l=bO(a),c=bO(i),u=typeof a=="object"&&"offsetRadius"in a&&typeof a.offsetRadius=="number"&&a.offsetRadius||20,f=t.map((m,h)=>{var p=(m.startAngle+m.endAngle)/2,g=ea(m.cx,m.cy,m.outerRadius+u,p),v=wn(wn(wn(wn({},s),m),{},{stroke:"none"},l),{},{index:h,textAnchor:Y9e(g.x,m.cx)},g),y=wn(wn(wn(wn({},s),m),{},{fill:"none",stroke:m.fill},c),{},{index:h,points:[ea(m.cx,m.cy,m.outerRadius,p),g],key:"line"});return d.createElement(ag,{zIndex:io.label,key:"label-".concat(m.startAngle,"-").concat(m.endAngle,"-").concat(m.midAngle,"-").concat(h)},d.createElement(qc,null,i&&tHe(i,y),rHe(a,v,$n(m,o))))});return d.createElement(qc,{className:"recharts-pie-labels"},f)}function aHe(e){var{sectors:t,props:r,showLabels:n}=e,{label:a}=r;return typeof a=="object"&&a!=null&&"position"in a?d.createElement(W7e,{label:a}):d.createElement(nHe,{sectors:t,props:r,showLabels:n})}function iHe(e){var{sectors:t,activeShape:r,inactiveShape:n,allOtherPieProps:a,shape:i,id:o}=e,s=rr(Bp),l=rr(iQ),c=rr(wBe),{onMouseEnter:u,onClick:f,onMouseLeave:m}=a,h=oC(a,z9e),p=$9e(u,a.dataKey,o),g=_9e(m),v=O9e(f,a.dataKey,o);return t==null||t.length===0?null:d.createElement(d.Fragment,null,t.map((y,x)=>{if((y==null?void 0:y.startAngle)===0&&(y==null?void 0:y.endAngle)===0&&t.length!==1)return null;var b=c==null||c===o,S=String(x)===s&&(l==null||a.dataKey===l)&&b,w=s?n:null,E=r&&S?r:w,C=wn(wn({},y),{},{stroke:y.stroke,tabIndex:-1,[jq]:x,[Fq]:o});return d.createElement(qc,Qc({key:"sector-".concat(y==null?void 0:y.startAngle,"-").concat(y==null?void 0:y.endAngle,"-").concat(y.midAngle,"-").concat(x),tabIndex:-1,className:"recharts-pie-sector"},TG(h,y,x),{onMouseEnter:p(y,x),onMouseLeave:g(y,x),onClick:v(y,x)}),d.createElement(E9e,Qc({option:i??E,index:x,shapeType:"sector",isActive:S},C)))}))}function oHe(e){var t,{pieSettings:r,displayedData:n,cells:a,offset:i}=e,{cornerRadius:o,startAngle:s,endAngle:l,dataKey:c,nameKey:u,tooltipType:f}=r,m=Math.abs(r.minAngle),h=J9e(s,l),p=Math.abs(h),g=n.length<=1?0:(t=r.paddingAngle)!==null&&t!==void 0?t:0,v=n.filter(E=>$n(E,c,0)!==0).length,y=(p>=360?v:v-1)*g,x=p-v*m-y,b=n.reduce((E,C)=>{var O=$n(C,c,0);return E+(er(O)?O:0)},0),S;if(b>0){var w;S=n.map((E,C)=>{var O=$n(E,c,0),_=$n(E,u,C),P=Z9e(r,i,E),I=(er(O)?O:0)/b,N,D=wn(wn({},E),a&&a[C]&&a[C].props);C?N=w.endAngle+Mi(h)*g*(O!==0?1:0):N=s;var k=N+Mi(h)*((O!==0?m:0)+I*x),R=(N+k)/2,A=(P.innerRadius+P.outerRadius)/2,j=[{name:_,value:O,payload:D,dataKey:c,type:f,graphicalItemId:r.id}],F=ea(P.cx,P.cy,A,R);return w=wn(wn(wn(wn({},r.presentationProps),{},{percent:I,cornerRadius:typeof o=="string"?parseFloat(o):o,name:_,tooltipPayload:j,midAngle:R,middleRadius:A,tooltipPosition:F},D),P),{},{value:O,dataKey:c,startAngle:N,endAngle:k,payload:D,paddingAngle:Mi(h)*g}),w})}return S}function sHe(e){var{showLabels:t,sectors:r,children:n}=e,a=d.useMemo(()=>!t||!r?[]:r.map(i=>({value:i.value,payload:i.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:i.cx,cy:i.cy,innerRadius:i.innerRadius,outerRadius:i.outerRadius,startAngle:i.startAngle,endAngle:i.endAngle,clockWise:!1},fill:i.fill})),[r,t]);return d.createElement(B7e,{value:t?a:void 0},n)}function lHe(e){var{props:t,previousSectorsRef:r,id:n}=e,{sectors:a,isAnimationActive:i,animationBegin:o,animationDuration:s,animationEasing:l,activeShape:c,inactiveShape:u,onAnimationStart:f,onAnimationEnd:m}=t,h=ok(t,"recharts-pie-"),p=r.current,[g,v]=d.useState(!1),y=d.useCallback(()=>{typeof m=="function"&&m(),v(!1)},[m]),x=d.useCallback(()=>{typeof f=="function"&&f(),v(!0)},[f]);return d.createElement(sHe,{showLabels:!g,sectors:a},d.createElement(ik,{animationId:h,begin:o,duration:s,isActive:i,easing:l,onAnimationStart:x,onAnimationEnd:y,key:h},b=>{var S=[],w=a&&a[0],E=w==null?void 0:w.startAngle;return a==null||a.forEach((C,O)=>{var _=p&&p[O],P=O>0?_p(C,"paddingAngle",0):0;if(_){var I=us(_.endAngle-_.startAngle,C.endAngle-C.startAngle,b),N=wn(wn({},C),{},{startAngle:E+P,endAngle:E+I+P});S.push(N),E=N.endAngle}else{var{endAngle:D,startAngle:k}=C,R=us(0,D-k,b),A=wn(wn({},C),{},{startAngle:E+P,endAngle:E+R+P});S.push(A),E=A.endAngle}}),r.current=S,d.createElement(qc,null,d.createElement(iHe,{sectors:S,activeShape:c,inactiveShape:u,allOtherPieProps:t,shape:t.shape,id:n}))}),d.createElement(aHe,{showLabels:!g,sectors:a,props:t}),t.children)}var cHe={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:"auto",label:!1,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff",zIndex:io.area};function uHe(e){var{id:t}=e,r=oC(e,H9e),{hide:n,className:a,rootTabIndex:i}=e,o=d.useMemo(()=>DQ(e.children,ig),[e.children]),s=rr(u=>a9e(u,t,o)),l=d.useRef(null),c=jn("recharts-pie",a);return n||s==null?(l.current=null,d.createElement(qc,{tabIndex:i,className:c})):d.createElement(ag,{zIndex:e.zIndex},d.createElement(X9e,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:s,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t}),d.createElement(qc,{tabIndex:i,className:c},d.createElement(lHe,{props:wn(wn({},r),{},{sectors:s}),previousSectorsRef:l,id:t})))}function wR(e){var t=Zo(e,cHe),{id:r}=t,n=oC(t,W9e),a=C0(n);return d.createElement(A9e,{id:r,type:"pie"},i=>d.createElement(d.Fragment,null,d.createElement(L9e,{type:"pie",id:i,data:n.data,dataKey:n.dataKey,hide:n.hide,angleAxisId:0,radiusAxisId:0,name:n.name,nameKey:n.nameKey,tooltipType:n.tooltipType,legendType:n.legendType,fill:n.fill,cx:n.cx,cy:n.cy,startAngle:n.startAngle,endAngle:n.endAngle,paddingAngle:n.paddingAngle,minAngle:n.minAngle,innerRadius:n.innerRadius,outerRadius:n.outerRadius,cornerRadius:n.cornerRadius,presentationProps:a,maxRadius:t.maxRadius}),d.createElement(q9e,Qc({},n,{id:i})),d.createElement(uHe,Qc({},n,{id:i}))))}wR.displayName="Pie";function c5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function u5(e){for(var t=1;t({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),gHe=Ue([vHe,Kl,Gl],(e,t,r)=>{if(!(!e||t==null||r==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}}),yHe=()=>rr(gHe),xHe=e=>{var{chartData:t}=e,r=Fn(),n=mu();return d.useEffect(()=>n?()=>{}:(r(T8(t)),()=>{r(T8(void 0))}),[t,r,n]),null},d5={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},BQ=Ui({name:"brush",initialState:d5,reducers:{setBrushSettings(e,t){return t.payload==null?d5:t.payload}}});BQ.actions;var bHe=BQ.reducer,SHe={dots:[],areas:[],lines:[]},zQ=Ui({name:"referenceElements",initialState:SHe,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=ws(e).dots.findIndex(n=>n===t.payload);r!==-1&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=ws(e).areas.findIndex(n=>n===t.payload);r!==-1&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=ws(e).lines.findIndex(n=>n===t.payload);r!==-1&&e.lines.splice(r,1)}}});zQ.actions;var wHe=zQ.reducer,CHe=d.createContext(void 0),EHe=e=>{var{children:t}=e,[r]=d.useState("".concat(Op("recharts"),"-clip")),n=yHe();if(n==null)return null;var{x:a,y:i,width:o,height:s}=n;return d.createElement(CHe.Provider,{value:r},d.createElement("defs",null,d.createElement("clipPath",{id:r},d.createElement("rect",{x:a,y:i,height:s,width:o}))),t)},$He={},HQ=Ui({name:"errorBars",initialState:$He,reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:a}=t.payload;e[r]&&(e[r]=e[r].map(i=>i.dataKey===n.dataKey&&i.direction===n.direction?a:i))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(a=>a.dataKey!==n.dataKey||a.direction!==n.direction))}}});HQ.actions;var _He=HQ.reducer,OHe={};/** - * @license React - * use-sync-external-store-with-selector.production.js - * - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var og=d;function THe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var PHe=typeof Object.is=="function"?Object.is:THe,IHe=og.useSyncExternalStore,NHe=og.useRef,kHe=og.useEffect,RHe=og.useMemo,AHe=og.useDebugValue;OHe.useSyncExternalStoreWithSelector=function(e,t,r,n,a){var i=NHe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=RHe(function(){function l(h){if(!c){if(c=!0,u=h,h=n(h),a!==void 0&&o.hasValue){var p=o.value;if(a(p,h))return f=p}return f=h}if(p=f,PHe(u,h))return p;var g=n(h);return a!==void 0&&a(p,g)?(u=h,p):(u=h,f=g)}var c=!1,u,f,m=r===void 0?null:r;return[function(){return l(t())},m===null?void 0:function(){return l(m())}]},[t,r,n,a]);var s=IHe(e,i[0],i[1]);return kHe(function(){o.hasValue=!0,o.value=s},[s]),AHe(s),s};function MHe(e){e()}function DHe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){MHe(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const a=t={callback:r,next:null,prev:t};return a.prev?a.prev.next=a:e=a,function(){!n||e===null||(n=!1,a.next?a.next.prev=a.prev:t=a.prev,a.prev?a.prev.next=a.next:e=a.next)}}}}var f5={notify(){},get:()=>[]};function jHe(e,t){let r,n=f5,a=0,i=!1;function o(g){u();const v=n.subscribe(g);let y=!1;return()=>{y||(y=!0,v(),f())}}function s(){n.notify()}function l(){p.onStateChange&&p.onStateChange()}function c(){return i}function u(){a++,r||(r=t?t.addNestedSub(l):e.subscribe(l),n=DHe())}function f(){a--,r&&a===0&&(r(),r=void 0,n.clear(),n=f5)}function m(){i||(i=!0,u())}function h(){i&&(i=!1,f())}const p={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:m,tryUnsubscribe:h,getListeners:()=>n};return p}var FHe=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",LHe=FHe(),BHe=()=>typeof navigator<"u"&&navigator.product==="ReactNative",zHe=BHe(),HHe=()=>LHe||zHe?d.useLayoutEffect:d.useEffect,WHe=HHe();function m5(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function VHe(e,t){if(m5(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let a=0;a{const l=jHe(a);return{store:a,subscription:l,getServerState:n?()=>n:void 0}},[a,n]),o=d.useMemo(()=>a.getState(),[a]);WHe(()=>{const{subscription:l}=i;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),o!==a.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[i,o]);const s=r||KHe;return d.createElement(s.Provider,{value:i},t)}var qHe=GHe,XHe=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function YHe(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function QHe(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(XHe.has(n)){if(e[n]==null&&t[n]==null)continue;if(!VHe(e[n],t[n]))return!1}else if(!YHe(e[n],t[n]))return!1;return!0}var ZHe=(e,t)=>t,CR=Ue([ZHe,Xr,yY,Sa,tQ,Xl,LBe,ja],KBe),ER=e=>{var t=e.currentTarget.getBoundingClientRect(),r=t.width/e.currentTarget.offsetWidth,n=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/r),chartY:Math.round((e.clientY-t.top)/n)}},WQ=Go("mouseClick"),VQ=Hv();VQ.startListening({actionCreator:WQ,effect:(e,t)=>{var r=e.payload,n=CR(t.getState(),ER(r));(n==null?void 0:n.activeIndex)!=null&&t.dispatch(FLe({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var mT=Go("mouseMove"),UQ=Hv(),Oy=null;UQ.startListening({actionCreator:mT,effect:(e,t)=>{var r=e.payload;Oy!==null&&cancelAnimationFrame(Oy);var n=ER(r);Oy=requestAnimationFrame(()=>{var a=t.getState(),i=oR(a,a.tooltip.settings.shared);if(i==="axis"){var o=CR(a,n);(o==null?void 0:o.activeIndex)!=null?t.dispatch(GY({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate})):t.dispatch(KY())}Oy=null})}});function JHe(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<>":t}var h5={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},KQ=Ui({name:"rootProps",initialState:h5,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(r=t.payload.barGap)!==null&&r!==void 0?r:h5.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),eWe=KQ.reducer,{updateOptions:tWe}=KQ.actions,GQ=Ui({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:rWe}=GQ.actions,nWe=GQ.reducer,qQ=Go("keyDown"),XQ=Go("focus"),$R=Hv();$R.startListening({actionCreator:qQ,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:a}=r.tooltip,i=e.payload;if(!(i!=="ArrowRight"&&i!=="ArrowLeft"&&i!=="Enter")){var o=sR(a,wm(r),Jv(r),rg(r)),s=o==null?-1:Number(o);if(!(!Number.isFinite(s)||s<0)){var l=Xl(r);if(i==="Enter"){var c=Z1(r,"axis","hover",String(a.index));t.dispatch(lT({active:!a.active,activeIndex:a.index,activeCoordinate:c}));return}var u=TLe(r),f=u==="left-to-right"?1:-1,m=i==="ArrowRight"?1:-1,h=s+m*f;if(!(l==null||h>=l.length||h<0)){var p=Z1(r,"axis","hover",String(h));t.dispatch(lT({active:!0,activeIndex:h.toString(),activeCoordinate:p}))}}}}}});$R.startListening({actionCreator:XQ,effect:(e,t)=>{var r=t.getState(),n=r.rootProps.accessibilityLayer!==!1;if(n){var{keyboardInteraction:a}=r.tooltip;if(!a.active&&a.index==null){var i="0",o=Z1(r,"axis","hover",String(i));t.dispatch(lT({active:!0,activeIndex:i,activeCoordinate:o}))}}}});var $o=Go("externalEvent"),YQ=Hv(),PE=new Map;YQ.startListening({actionCreator:$o,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(r!=null){n.persist();var a=n.type,i=PE.get(a);i!==void 0&&cancelAnimationFrame(i);var o=requestAnimationFrame(()=>{try{var s=t.getState(),l={activeCoordinate:EBe(s),activeDataKey:iQ(s),activeIndex:Bp(s),activeLabel:aQ(s),activeTooltipIndex:Bp(s),isTooltipActive:$Be(s)};r(l,n)}finally{PE.delete(a)}});PE.set(a,o)}}});var aWe=Ue([bm],e=>e.tooltipItemPayloads),iWe=Ue([aWe,tg,(e,t)=>t,(e,t,r)=>r],(e,t,r,n)=>{var a=e.find(s=>s.settings.graphicalItemId===n);if(a!=null){var{positions:i}=a;if(i!=null){var o=t(i,r);return o}}}),QQ=Go("touchMove"),ZQ=Hv();ZQ.startListening({actionCreator:QQ,effect:(e,t)=>{var r=e.payload;if(!(r.touches==null||r.touches.length===0)){var n=t.getState(),a=oR(n,n.tooltip.settings.shared);if(a==="axis"){var i=r.touches[0];if(i==null)return;var o=CR(n,ER({clientX:i.clientX,clientY:i.clientY,currentTarget:r.currentTarget}));(o==null?void 0:o.activeIndex)!=null&&t.dispatch(GY({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate}))}else if(a==="item"){var s,l=r.touches[0];if(document.elementFromPoint==null||l==null)return;var c=document.elementFromPoint(l.clientX,l.clientY);if(!c||!c.getAttribute)return;var u=c.getAttribute(jq),f=(s=c.getAttribute(Fq))!==null&&s!==void 0?s:void 0,m=Sm(n).find(g=>g.id===f);if(u==null||m==null||f==null)return;var{dataKey:h}=m,p=iWe(n,u,f);t.dispatch(UY({activeDataKey:h,activeIndex:u,activeCoordinate:p,activeGraphicalItemId:f}))}}}});var oWe=oq({brush:bHe,cartesianAxis:pHe,chartData:Cze,errorBars:_He,graphicalItems:F9e,layout:J3e,legend:aje,options:yze,polarAxis:Q7e,polarOptions:nWe,referenceElements:wHe,rootProps:eWe,tooltip:LLe,zIndex:oze}),sWe=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return E3e({reducer:oWe,preloadedState:t,middleware:n=>{var a;return n({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((a="es6")!==null&&a!==void 0?a:"")}).concat([VQ.middleware,UQ.middleware,$R.middleware,YQ.middleware,ZQ.middleware])},enhancers:n=>{var a=n;return typeof n=="function"&&(a=n()),a.concat(Sq({type:"raf"}))},devTools:{serialize:{replacer:JHe},name:"recharts-".concat(r)}})};function lWe(e){var{preloadedState:t,children:r,reduxStoreName:n}=e,a=mu(),i=d.useRef(null);if(a)return r;i.current==null&&(i.current=sWe(t,n));var o=WN;return d.createElement(qHe,{context:o,store:i.current},r)}function cWe(e){var{layout:t,margin:r}=e,n=Fn(),a=mu();return d.useEffect(()=>{a||(n(Y3e(t)),n(X3e(r)))},[n,a,t,r]),null}var uWe=d.memo(cWe,QHe);function dWe(e){var t=Fn();return d.useEffect(()=>{t(tWe(e))},[t,e]),null}function p5(e){var{zIndex:t,isPanorama:r}=e,n=d.useRef(null),a=Fn();return d.useLayoutEffect(()=>(n.current&&a(aze({zIndex:t,element:n.current,isPanorama:r})),()=>{a(ize({zIndex:t,isPanorama:r}))}),[a,t,r]),d.createElement("g",{tabIndex:-1,ref:n})}function v5(e){var{children:t,isPanorama:r}=e,n=rr(qBe);if(!n||n.length===0)return t;var a=n.filter(o=>o<0),i=n.filter(o=>o>0);return d.createElement(d.Fragment,null,a.map(o=>d.createElement(p5,{key:o,zIndex:o,isPanorama:r})),t,i.map(o=>d.createElement(p5,{key:o,zIndex:o,isPanorama:r})))}var fWe=["children"];function mWe(e,t){if(e==null)return{};var r,n,a=hWe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{var r=Gq(),n=qq(),a=nX();if(!Xc(r)||!Xc(n))return null;var{children:i,otherAttributes:o,title:s,desc:l}=e,c,u;return o!=null&&(typeof o.tabIndex=="number"?c=o.tabIndex:c=a?0:void 0,typeof o.role=="string"?u=o.role:u=a?"application":void 0),d.createElement(TN,nb({},o,{title:s,desc:l,role:u,tabIndex:c,width:r,height:n,style:pWe,ref:t}),i)}),gWe=e=>{var{children:t}=e,r=rr(_w);if(!r)return null;var{width:n,height:a,y:i,x:o}=r;return d.createElement(TN,{width:n,height:a,x:o,y:i},t)},g5=d.forwardRef((e,t)=>{var{children:r}=e,n=mWe(e,fWe),a=mu();return a?d.createElement(gWe,null,d.createElement(v5,{isPanorama:!0},r)):d.createElement(vWe,nb({ref:t},n),d.createElement(v5,{isPanorama:!1},r))});function yWe(){var e=Fn(),[t,r]=d.useState(null),n=rr(hDe);return d.useEffect(()=>{if(t!=null){var a=t.getBoundingClientRect(),i=a.width/t.offsetWidth;aa(i)&&i!==n&&e(Z3e(i))}},[t,e,n]),r}function y5(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function xWe(e){for(var t=1;t(kze(),null);function ab(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var EWe=d.forwardRef((e,t)=>{var r,n,a=d.useRef(null),[i,o]=d.useState({containerWidth:ab((r=e.style)===null||r===void 0?void 0:r.width),containerHeight:ab((n=e.style)===null||n===void 0?void 0:n.height)}),s=d.useCallback((c,u)=>{o(f=>{var m=Math.round(c),h=Math.round(u);return f.containerWidth===m&&f.containerHeight===h?f:{containerWidth:m,containerHeight:h}})},[]),l=d.useCallback(c=>{if(typeof t=="function"&&t(c),c!=null&&typeof ResizeObserver<"u"){var{width:u,height:f}=c.getBoundingClientRect();s(u,f);var m=p=>{var{width:g,height:v}=p[0].contentRect;s(g,v)},h=new ResizeObserver(m);h.observe(c),a.current=h}},[t,s]);return d.useEffect(()=>()=>{var c=a.current;c!=null&&c.disconnect()},[s]),d.createElement(d.Fragment,null,d.createElement(Pw,{width:i.containerWidth,height:i.containerHeight}),d.createElement("div",$d({ref:l},e)))}),$We=d.forwardRef((e,t)=>{var{width:r,height:n}=e,[a,i]=d.useState({containerWidth:ab(r),containerHeight:ab(n)}),o=d.useCallback((l,c)=>{i(u=>{var f=Math.round(l),m=Math.round(c);return u.containerWidth===f&&u.containerHeight===m?u:{containerWidth:f,containerHeight:m}})},[]),s=d.useCallback(l=>{if(typeof t=="function"&&t(l),l!=null){var{width:c,height:u}=l.getBoundingClientRect();o(c,u)}},[t,o]);return d.createElement(d.Fragment,null,d.createElement(Pw,{width:a.containerWidth,height:a.containerHeight}),d.createElement("div",$d({ref:s},e)))}),_We=d.forwardRef((e,t)=>{var{width:r,height:n}=e;return d.createElement(d.Fragment,null,d.createElement(Pw,{width:r,height:n}),d.createElement("div",$d({ref:t},e)))}),OWe=d.forwardRef((e,t)=>{var{width:r,height:n}=e;return Ml(r)||Ml(n)?d.createElement($We,$d({},e,{ref:t})):d.createElement(_We,$d({},e,{ref:t}))});function TWe(e){return e===!0?EWe:OWe}var PWe=d.forwardRef((e,t)=>{var{children:r,className:n,height:a,onClick:i,onContextMenu:o,onDoubleClick:s,onMouseDown:l,onMouseEnter:c,onMouseLeave:u,onMouseMove:f,onMouseUp:m,onTouchEnd:h,onTouchMove:p,onTouchStart:g,style:v,width:y,responsive:x,dispatchTouchEvents:b=!0}=e,S=d.useRef(null),w=Fn(),[E,C]=d.useState(null),[O,_]=d.useState(null),P=yWe(),I=ek(),N=(I==null?void 0:I.width)>0?I.width:y,D=(I==null?void 0:I.height)>0?I.height:a,k=d.useCallback(G=>{P(G),typeof t=="function"&&t(G),C(G),_(G),G!=null&&(S.current=G)},[P,t,C,_]),R=d.useCallback(G=>{w(WQ(G)),w($o({handler:i,reactEvent:G}))},[w,i]),A=d.useCallback(G=>{w(mT(G)),w($o({handler:c,reactEvent:G}))},[w,c]),j=d.useCallback(G=>{w(KY()),w($o({handler:u,reactEvent:G}))},[w,u]),F=d.useCallback(G=>{w(mT(G)),w($o({handler:f,reactEvent:G}))},[w,f]),M=d.useCallback(()=>{w(XQ())},[w]),V=d.useCallback(G=>{w(qQ(G.key))},[w]),K=d.useCallback(G=>{w($o({handler:o,reactEvent:G}))},[w,o]),L=d.useCallback(G=>{w($o({handler:s,reactEvent:G}))},[w,s]),B=d.useCallback(G=>{w($o({handler:l,reactEvent:G}))},[w,l]),W=d.useCallback(G=>{w($o({handler:m,reactEvent:G}))},[w,m]),z=d.useCallback(G=>{w($o({handler:g,reactEvent:G}))},[w,g]),U=d.useCallback(G=>{b&&w(QQ(G)),w($o({handler:p,reactEvent:G}))},[w,b,p]),X=d.useCallback(G=>{w($o({handler:h,reactEvent:G}))},[w,h]),Y=TWe(x);return d.createElement(fQ.Provider,{value:E},d.createElement(oG.Provider,{value:O},d.createElement(Y,{width:N??(v==null?void 0:v.width),height:D??(v==null?void 0:v.height),className:jn("recharts-wrapper",n),style:xWe({position:"relative",cursor:"default",width:N,height:D},v),onClick:R,onContextMenu:K,onDoubleClick:L,onFocus:M,onKeyDown:V,onMouseDown:B,onMouseEnter:A,onMouseLeave:j,onMouseMove:F,onMouseUp:W,onTouchEnd:X,onTouchMove:U,onTouchStart:z,ref:k},d.createElement(CWe,null),r)))}),IWe=["width","height","responsive","children","className","style","compact","title","desc"];function NWe(e,t){if(e==null)return{};var r,n,a=kWe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{var{width:r,height:n,responsive:a,children:i,className:o,style:s,compact:l,title:c,desc:u}=e,f=NWe(e,IWe),m=C0(f);return l?d.createElement(d.Fragment,null,d.createElement(Pw,{width:r,height:n}),d.createElement(g5,{otherAttributes:m,title:c,desc:u},i)):d.createElement(PWe,{className:o,style:s,width:r,height:n,responsive:a??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},d.createElement(g5,{otherAttributes:m,title:c,desc:u,ref:t},d.createElement(EHe,null,i)))});function AWe(e){var t=Fn();return d.useEffect(()=>{t(rWe(e))},[t,e]),null}var MWe=["layout"];function hT(){return hT=Object.assign?Object.assign.bind():function(e){for(var t=1;t{var r=Zo(e,VWe);return d.createElement(LWe,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:WWe,tooltipPayloadSearcher:vze,categoricalChartProps:r,ref:t})});const UWe=()=>{var O;const e=Xo(),[t,r]=d.useState(null),[n,a]=d.useState([]),[i,o]=d.useState([]),[s,l]=d.useState({page:1,limit:5,total:0}),[c,u]=d.useState(""),[f,m]=d.useState(null),[h,p]=d.useState(!1);d.useEffect(()=>{v()},[]);const g=(_,P,I)=>{const N={page:_,limit:5};(P==="completed"||P==="ongoing"||P==="notStarted")&&(N.status=P);const D=(I==null?void 0:I[0])??null,k=(I==null?void 0:I[1])??null;return D&&(N.endAtStart=D.startOf("day").toISOString()),k&&(N.endAtEnd=k.endOf("day").toISOString()),N},v=async()=>{try{p(!0);const[_,P,I]=await Promise.all([qs.getDashboardOverview(),x(),qs.getAllTaskStats(g(1,c,f))]);r(_.data),a(P),o(I.data||[]),I.pagination&&l({page:I.pagination.page,limit:I.pagination.limit,total:I.pagination.total})}catch(_){ut.error(_.message||"获取数据失败")}finally{p(!1)}},y=async(_,P={})=>{try{p(!0);const I=P.status??c,N=P.range??f,D=await qs.getAllTaskStats(g(_,I,N));o(D.data||[]),D.pagination&&l({page:D.pagination.page,limit:D.pagination.limit,total:D.pagination.total})}catch(I){ut.error(I.message||"获取考试任务统计失败")}finally{p(!1)}},x=async()=>(await bd.getAllRecords({page:1,limit:10})).data||[],b=((O=t==null?void 0:t.questionCategoryStats)==null?void 0:O.reduce((_,P)=>_+(Number(P.count)||0),0))||0,S=t?Number(t.taskStatusDistribution.completed||0)+Number(t.taskStatusDistribution.ongoing||0)+Number(t.taskStatusDistribution.notStarted||0):0,w=_=>{switch(_){case"不及格":return"red";case"合格":return"blue";case"优秀":return"green";default:return"default"}},E=[{title:"姓名",dataIndex:"userName",key:"userName"},{title:"手机号",dataIndex:"userPhone",key:"userPhone"},{title:"得分",dataIndex:"totalScore",key:"totalScore",render:_=>T.jsxs("span",{className:"font-semibold text-mars-600",children:[_," 分"]})},{title:"状态",dataIndex:"status",key:"status",render:_=>{const P=w(_);return T.jsx("span",{className:`px-2 py-1 rounded text-xs font-medium bg-${P}-100 text-${P}-800`,children:_})}},{title:"正确率",key:"correctRate",render:(_,P)=>{const I=P.totalCount>0?(P.correctCount/P.totalCount*100).toFixed(1):"0.0";return T.jsxs("span",{children:[I,"%"]})}},{title:"考试科目",dataIndex:"subjectName",key:"subjectName",render:_=>_||""},{title:"考试人数",dataIndex:"examCount",key:"examCount",render:_=>_||""},{title:"答题时间",dataIndex:"createdAt",key:"createdAt",render:_=>si(_)}],C=[{title:"状态",dataIndex:"status",key:"status"},{title:"任务名称",dataIndex:"taskName",key:"taskName"},{title:"科目",dataIndex:"subjectName",key:"subjectName"},{title:"指定考试人数",dataIndex:"totalUsers",key:"totalUsers"},{title:"考试进度",key:"progress",render:(_,P)=>{const I=new Date,N=hs(P.startAt)??new Date(P.startAt),k=(hs(P.endAt)??new Date(P.endAt)).getTime()-N.getTime(),R=I.getTime()-N.getTime(),A=k>0?Math.max(0,Math.min(100,Math.round(R/k*100))):0;return T.jsxs("div",{className:"flex items-center",children:[T.jsx("div",{className:"w-32 h-4 bg-gray-200 rounded-full mr-2 overflow-hidden",children:T.jsx("div",{className:"h-full bg-mars-500 rounded-full transition-all duration-300",style:{width:`${A}%`}})}),T.jsxs("span",{className:"font-semibold text-mars-600",children:[A,"%"]})]})}},{title:"考试人数统计",key:"statistics",render:(_,P)=>{const I=P.totalUsers,N=P.completedUsers,D=Math.round(N*(P.passRate/100)),k=Math.round(N*(P.excellentRate/100)),R=I-N,A=N-D,j=D-k,V=[{name:"优秀",value:k,color:"#008C8C"},{name:"合格",value:j,color:"#00A3A3"},{name:"不及格",value:A,color:"#ff4d4f"},{name:"未完成",value:R,color:"#f0f0f0"}].filter(L=>L.value>0),K=I>0?Math.round(N/I*100):0;return T.jsx("div",{className:"w-full h-20",children:T.jsx(Uq,{width:"100%",height:"100%",children:T.jsxs(eZ,{children:[T.jsxs(wR,{data:V,cx:"50%",cy:"50%",innerRadius:25,outerRadius:35,paddingAngle:2,dataKey:"value",children:[V.map((L,B)=>T.jsx(ig,{fill:L.color,stroke:"none"},`cell-${B}`)),T.jsx(gR,{value:`${K}%`,position:"center",className:"text-sm font-bold fill-gray-700"})]}),T.jsx(vQ,{formatter:L=>[`${L} 人`,"数量"],contentStyle:{borderRadius:"8px",border:"none",boxShadow:"0 2px 8px rgba(0,0,0,0.15)",fontSize:"12px",padding:"8px"}}),T.jsx(rX,{layout:"vertical",verticalAlign:"middle",align:"right",iconType:"circle",iconSize:8,wrapperStyle:{fontSize:"12px"},formatter:(L,B)=>T.jsxs("span",{className:"text-xs text-gray-600 ml-1",children:[L," ",B.payload.value]})})]})})})}}];return T.jsxs("div",{children:[T.jsxs("div",{className:"flex justify-between items-center mb-6",children:[T.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"管理仪表盘"}),T.jsx(kt,{type:"primary",icon:T.jsx(eN,{}),onClick:v,loading:h,className:"bg-mars-500 hover:bg-mars-600",children:"刷新数据"})]}),T.jsxs(cs,{gutter:16,className:"mb-8",children:[T.jsx(Qr,{span:6,children:T.jsx(_r,{className:"shadow-sm hover:shadow-md transition-shadow cursor-pointer",onClick:()=>e("/admin/users"),styles:{body:{padding:16}},children:T.jsx(Ai,{title:"总用户数",value:(t==null?void 0:t.totalUsers)||0,prefix:T.jsx($N,{className:"text-mars-400"}),valueStyle:{color:"#008C8C"}})})}),T.jsx(Qr,{span:6,children:T.jsx(_r,{className:"shadow-sm hover:shadow-md transition-shadow cursor-pointer",onClick:()=>e("/admin/question-bank"),styles:{body:{padding:16}},children:T.jsx(Ai,{title:"题库统计",value:b,prefix:T.jsx(JK,{className:"text-mars-400"}),valueStyle:{color:"#008C8C"},suffix:"题"})})}),T.jsx(Qr,{span:6,children:T.jsx(_r,{className:"shadow-sm hover:shadow-md transition-shadow cursor-pointer",onClick:()=>e("/admin/subjects"),styles:{body:{padding:16}},children:T.jsx(Ai,{title:"考试科目",value:(t==null?void 0:t.activeSubjectCount)||0,prefix:T.jsx(wc,{className:"text-mars-400"}),valueStyle:{color:"#008C8C"},suffix:"个"})})}),T.jsx(Qr,{span:6,children:T.jsx(_r,{className:"shadow-sm hover:shadow-md transition-shadow cursor-pointer",onClick:()=>e("/admin/exam-tasks"),styles:{body:{padding:16}},children:T.jsx(Ai,{title:"考试任务",value:S,prefix:T.jsx(jS,{className:"text-mars-400"}),valueStyle:{color:"#008C8C"},suffix:"个"})})})]}),T.jsx(_r,{title:"考试任务统计",className:"mb-8 shadow-sm",extra:T.jsxs(En,{children:[T.jsx(Zn,{style:{width:140},value:c,onChange:_=>{u(_),y(1,{status:_})},options:[{value:"",label:"全部状态"},{value:"completed",label:"已完成"},{value:"ongoing",label:"进行中"},{value:"notStarted",label:"未开始"}]}),T.jsx(wp.RangePicker,{value:f,placeholder:["结束时间开始","结束时间结束"],format:"YYYY-MM-DD",onChange:_=>{m(_),y(1,{range:_})},allowClear:!0})]}),children:T.jsx(oi,{columns:C,dataSource:i,rowKey:"taskId",loading:h,size:"small",pagination:{current:s.page,pageSize:5,total:s.total,showSizeChanger:!1,onChange:_=>y(_),size:"small"}})}),T.jsx(_r,{title:"最近答题记录",className:"shadow-sm",children:T.jsx(oi,{columns:E,dataSource:n,rowKey:"id",loading:h,pagination:!1,size:"small"})})]})};/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Hp={};Hp.version="0.18.5";var co=1200,_d=1252,KWe=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],_R={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},sC=function(e){KWe.indexOf(e)!=-1&&(_d=_R[0]=e)};function GWe(){sC(1252)}var Fo=function(e){co=e,sC(e)};function lC(){Fo(1200),GWe()}function ib(e){for(var t=[],r=0,n=e.length;r>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r)+(e.charCodeAt(2*r+1)<<8));return t.join("")}function tZ(e){for(var t=[],r=0;r>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return t.join("")}var zf=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return t==255&&r==254?qWe(e.slice(2)):t==254&&r==255?tZ(e.slice(2)):t==65279?e.slice(1):e},mh=function(t){return String.fromCharCode(t)},pT=function(t){return String.fromCharCode(t)},xr;function XWe(e){xr=e,Fo=function(t){co=t,sC(t)},zf=function(t){return t.charCodeAt(0)===255&&t.charCodeAt(1)===254?xr.utils.decode(1200,ib(t.slice(2))):t},mh=function(r){return co===1200?String.fromCharCode(r):xr.utils.decode(co,[r&255,r>>8])[0]},pT=function(r){return xr.utils.decode(_d,[r])[0]},NZ()}var Ec="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Wp(e){for(var t="",r=0,n=0,a=0,i=0,o=0,s=0,l=0,c=0;c>2,n=e.charCodeAt(c++),o=(r&3)<<4|n>>4,a=e.charCodeAt(c++),s=(n&15)<<2|a>>6,l=a&63,isNaN(n)?s=l=64:isNaN(a)&&(l=64),t+=Ec.charAt(i)+Ec.charAt(o)+Ec.charAt(s)+Ec.charAt(l);return t}function ho(e){var t="",r=0,n=0,a=0,i=0,o=0,s=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var c=0;c>4,t+=String.fromCharCode(r),s=Ec.indexOf(e.charAt(c++)),n=(o&15)<<4|s>>2,s!==64&&(t+=String.fromCharCode(n)),l=Ec.indexOf(e.charAt(c++)),a=(s&3)<<6|l,l!==64&&(t+=String.fromCharCode(a));return t}var ur=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),Yl=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,r){return r?new Buffer(t,r):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}();function Zc(e){return ur?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function S5(e){return ur?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var eo=function(t){return ur?Yl(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function sg(e){if(typeof ArrayBuffer>"u")return eo(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n!=e.length;++n)r[n]=e.charCodeAt(n)&255;return t}function xu(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var t=[],r=0;r"u")throw new Error("Unsupported");return new Uint8Array(e)}function OR(e){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return OR(new Uint8Array(e));for(var t=new Array(e.length),r=0;r>6&31,a[r++]=128|o&63;else if(o>=55296&&o<57344){o=(o&1023)+64;var s=e.charCodeAt(++i)&1023;a[r++]=240|o>>8&7,a[r++]=128|o>>2&63,a[r++]=128|s>>6&15|(o&3)<<4,a[r++]=128|s&63}else a[r++]=224|o>>12&15,a[r++]=128|o>>6&63,a[r++]=128|o&63;r>n&&(t.push(a.slice(0,r)),r=0,a=Zc(65535),n=65530)}return t.push(a.slice(0,r)),Pa(t)}var li=/\u0000/g,hh=/[\u0001-\u0006]/g;function n0(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function ps(e,t){var r=""+e;return r.length>=t?r:Cn("0",t-r.length)+r}function TR(e,t){var r=""+e;return r.length>=t?r:Cn(" ",t-r.length)+r}function ob(e,t){var r=""+e;return r.length>=t?r:r+Cn(" ",t-r.length)}function ZWe(e,t){var r=""+Math.round(e);return r.length>=t?r:Cn("0",t-r.length)+r}function JWe(e,t){var r=""+e;return r.length>=t?r:Cn("0",t-r.length)+r}var w5=Math.pow(2,32);function yf(e,t){if(e>w5||e<-w5)return ZWe(e,t);var r=Math.round(e);return JWe(r,t)}function sb(e,t){return t=t||0,e.length>=7+t&&(e.charCodeAt(t)|32)===103&&(e.charCodeAt(t+1)|32)===101&&(e.charCodeAt(t+2)|32)===110&&(e.charCodeAt(t+3)|32)===101&&(e.charCodeAt(t+4)|32)===114&&(e.charCodeAt(t+5)|32)===97&&(e.charCodeAt(t+6)|32)===108}var C5=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],IE=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function eVe(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',e}var Kt={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},E5={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},tVe={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function lb(e,t,r){for(var n=e<0?-1:1,a=e*n,i=0,o=1,s=0,l=1,c=0,u=0,f=Math.floor(a);ct&&(c>t?(u=l,s=i):(u=c,s=o)),!r)return[0,n*s,u];var m=Math.floor(n*s/u);return[m,n*s-m*u,u]}function $c(e,t,r){if(e>2958465||e<0)return null;var n=e|0,a=Math.floor(86400*(e-n)),i=0,o=[],s={D:n,T:a,u:86400*(e-n)-a,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),t&&t.date1904&&(n+=1462),s.u>.9999&&(s.u=0,++a==86400&&(s.T=a=0,++n,++s.D)),n===60)o=r?[1317,10,29]:[1900,2,29],i=3;else if(n===0)o=r?[1317,8,29]:[1900,1,0],i=6;else{n>60&&--n;var l=new Date(1900,0,1);l.setDate(l.getDate()+n-1),o=[l.getFullYear(),l.getMonth()+1,l.getDate()],i=l.getDay(),n<60&&(i=(i+6)%7),r&&(i=sVe(l,o))}return s.y=o[0],s.m=o[1],s.d=o[2],s.S=a%60,a=Math.floor(a/60),s.M=a%60,a=Math.floor(a/60),s.H=a,s.q=i,s}var rZ=new Date(1899,11,31,0,0,0),rVe=rZ.getTime(),nVe=new Date(1900,2,1,0,0,0);function nZ(e,t){var r=e.getTime();return t?r-=1461*24*60*60*1e3:e>=nVe&&(r+=24*60*60*1e3),(r-(rVe+(e.getTimezoneOffset()-rZ.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function PR(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function aVe(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function iVe(e){var t=e<0?12:11,r=PR(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10),r.length<=t)?r:e.toExponential(5)}function oVe(e){var t=PR(e.toFixed(11));return t.length>(e<0?12:11)||t==="0"||t==="-0"?e.toPrecision(6):t}function Vp(e){var t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),r;return t>=-4&&t<=-1?r=e.toPrecision(10+t):Math.abs(t)<=9?r=iVe(e):t===10?r=e.toFixed(10).substr(0,12):r=oVe(e),PR(aVe(r.toUpperCase()))}function Od(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):Vp(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return po(14,nZ(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function sVe(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}function lVe(e,t,r,n){var a="",i=0,o=0,s=r.y,l,c=0;switch(e){case 98:s=r.y+543;case 121:switch(t.length){case 1:case 2:l=s%100,c=2;break;default:l=s%1e4,c=4;break}break;case 109:switch(t.length){case 1:case 2:l=r.m,c=t.length;break;case 3:return IE[r.m-1][1];case 5:return IE[r.m-1][0];default:return IE[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:l=r.d,c=t.length;break;case 3:return C5[r.q][0];default:return C5[r.q][1]}break;case 104:switch(t.length){case 1:case 2:l=1+(r.H+11)%12,c=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:l=r.H,c=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:l=r.M,c=t.length;break;default:throw"bad minute format: "+t}break;case 115:if(t!="s"&&t!="ss"&&t!=".0"&&t!=".00"&&t!=".000")throw"bad second format: "+t;return r.u===0&&(t=="s"||t=="ss")?ps(r.S,t.length):(n>=2?o=n===3?1e3:100:o=n===1?10:1,i=Math.round(o*(r.S+r.u)),i>=60*o&&(i=0),t==="s"?i===0?"0":""+i/o:(a=ps(i,2+n),t==="ss"?a.substr(0,2):"."+a.substr(2,t.length-1)));case 90:switch(t){case"[h]":case"[hh]":l=r.D*24+r.H;break;case"[m]":case"[mm]":l=(r.D*24+r.H)*60+r.M;break;case"[s]":case"[ss]":l=((r.D*24+r.H)*60+r.M)*60+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}c=t.length===3?1:2;break;case 101:l=s,c=1;break}var u=c>0?ps(l,c):"";return u}function _c(e){var t=3;if(e.length<=t)return e;for(var r=e.length%t,n=e.substr(0,r);r!=e.length;r+=t)n+=(n.length>0?",":"")+e.substr(r,t);return n}var aZ=/%/g;function cVe(e,t,r){var n=t.replace(aZ,""),a=t.length-n.length;return $l(e,n,r*Math.pow(10,2*a))+Cn("%",a)}function uVe(e,t,r){for(var n=t.length-1;t.charCodeAt(n-1)===44;)--n;return $l(e,t.substr(0,n),r/Math.pow(10,3*(t.length-n)))}function iZ(e,t){var r,n=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(t==0)return"0.0E+0";if(t<0)return"-"+iZ(e,-t);var a=e.indexOf(".");a===-1&&(a=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%a;if(i<0&&(i+=a),r=(t/Math.pow(10,i)).toPrecision(n+1+(a+i)%a),r.indexOf("e")===-1){var o=Math.floor(Math.log(t)*Math.LOG10E);for(r.indexOf(".")===-1?r=r.charAt(0)+"."+r.substr(1)+"E+"+(o-r.length+i):r+="E+"+(o-i);r.substr(0,2)==="0.";)r=r.charAt(0)+r.substr(2,a)+"."+r.substr(2+a),r=r.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,c,u){return l+c+u.substr(0,(a+i)%a)+"."+u.substr(i)+"E"})}else r=t.toExponential(n);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var oZ=/# (\?+)( ?)\/( ?)(\d+)/;function dVe(e,t,r){var n=parseInt(e[4],10),a=Math.round(t*n),i=Math.floor(a/n),o=a-i*n,s=n;return r+(i===0?"":""+i)+" "+(o===0?Cn(" ",e[1].length+1+e[4].length):TR(o,e[1].length)+e[2]+"/"+e[3]+ps(s,e[4].length))}function fVe(e,t,r){return r+(t===0?"":""+t)+Cn(" ",e[1].length+2+e[4].length)}var sZ=/^#*0*\.([0#]+)/,lZ=/\).*[0#]/,cZ=/\(###\) ###\\?-####/;function vi(e){for(var t="",r,n=0;n!=e.length;++n)switch(r=e.charCodeAt(n)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function $5(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function _5(e,t){var r=e-Math.floor(e),n=Math.pow(10,t);return t<(""+Math.round(r*n)).length?0:Math.round(r*n)}function mVe(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}function hVe(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function _o(e,t,r){if(e.charCodeAt(0)===40&&!t.match(lZ)){var n=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?_o("n",n,r):"("+_o("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return uVe(e,t,r);if(t.indexOf("%")!==-1)return cVe(e,t,r);if(t.indexOf("E")!==-1)return iZ(t,r);if(t.charCodeAt(0)===36)return"$"+_o(e,t.substr(t.charAt(1)==" "?2:1),r);var a,i,o,s,l=Math.abs(r),c=r<0?"-":"";if(t.match(/^00+$/))return c+yf(l,t.length);if(t.match(/^[#?]+$/))return a=yf(r,0),a==="0"&&(a=""),a.length>t.length?a:vi(t.substr(0,t.length-a.length))+a;if(i=t.match(oZ))return dVe(i,l,c);if(t.match(/^#+0+$/))return c+yf(l,t.length-t.indexOf("0"));if(i=t.match(sZ))return a=$5(r,i[1].length).replace(/^([^\.]+)$/,"$1."+vi(i[1])).replace(/\.$/,"."+vi(i[1])).replace(/\.(\d*)$/,function(p,g){return"."+g+Cn("0",vi(i[1]).length-g.length)}),t.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return c+$5(l,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return c+_c(yf(l,0));if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+_o(e,t,-r):_c(""+(Math.floor(r)+mVe(r,i[1].length)))+"."+ps(_5(r,i[1].length),i[1].length);if(i=t.match(/^#,#*,#0/))return _o(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=n0(_o(e,t.replace(/[\\-]/g,""),r)),o=0,n0(n0(t.replace(/\\/g,"")).replace(/[0#]/g,function(p){return o=0?zs("n",n,r):"("+zs("n",n,-r)+")"}if(t.charCodeAt(t.length-1)===44)return pVe(e,t,r);if(t.indexOf("%")!==-1)return vVe(e,t,r);if(t.indexOf("E")!==-1)return uZ(t,r);if(t.charCodeAt(0)===36)return"$"+zs(e,t.substr(t.charAt(1)==" "?2:1),r);var a,i,o,s,l=Math.abs(r),c=r<0?"-":"";if(t.match(/^00+$/))return c+ps(l,t.length);if(t.match(/^[#?]+$/))return a=""+r,r===0&&(a=""),a.length>t.length?a:vi(t.substr(0,t.length-a.length))+a;if(i=t.match(oZ))return fVe(i,l,c);if(t.match(/^#+0+$/))return c+ps(l,t.length-t.indexOf("0"));if(i=t.match(sZ))return a=(""+r).replace(/^([^\.]+)$/,"$1."+vi(i[1])).replace(/\.$/,"."+vi(i[1])),a=a.replace(/\.(\d*)$/,function(p,g){return"."+g+Cn("0",vi(i[1]).length-g.length)}),t.indexOf("0.")!==-1?a:a.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return c+_c(""+l);if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+zs(e,t,-r):_c(""+r)+"."+Cn("0",i[1].length);if(i=t.match(/^#,#*,#0/))return zs(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return a=n0(zs(e,t.replace(/[\\-]/g,""),r)),o=0,n0(n0(t.replace(/\\/g,"")).replace(/[0#]/g,function(p){return o-1||r=="\\"&&e.charAt(t+1)=="-"&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t,(e.charAt(t)==" "||e.charAt(t)=="*")&&++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t-1;);break;case" ":++t;break;default:++t;break}return!1}function yVe(e,t,r,n){for(var a=[],i="",o=0,s="",l="t",c,u,f,m="H";o=12?"P":"A"),g.t="T",m="h",o+=3):e.substr(o,5).toUpperCase()==="AM/PM"?(c!=null&&(g.v=c.H>=12?"PM":"AM"),g.t="T",o+=5,m="h"):e.substr(o,5).toUpperCase()==="上午/下午"?(c!=null&&(g.v=c.H>=12?"下午":"上午"),g.t="T",o+=5,m="h"):(g.t="t",++o),c==null&&g.t==="T")return"";a[a.length]=g,l=s;break;case"[":for(i=s;e.charAt(o++)!=="]"&&o-1&&(i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$",qd(e)||(a[a.length]={t:"t",v:i}));break;case".":if(c!=null){for(i=s;++o-1;)i+=s;a[a.length]={t:"n",v:i};break;case"?":for(i=s;e.charAt(++o)===s;)i+=s;a[a.length]={t:s,v:i},l=s;break;case"*":++o,(e.charAt(o)==" "||e.charAt(o)=="*")&&++o;break;case"(":case")":a[a.length]={t:n===1?"t":s,v:s},++o;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(i=s;o-1;)i+=e.charAt(o);a[a.length]={t:"D",v:i};break;case" ":a[a.length]={t:s,v:s},++o;break;case"$":a[a.length]={t:"t",v:"$"},++o;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(s)===-1)throw new Error("unrecognized character "+s+" in "+e);a[a.length]={t:"t",v:s},++o;break}var v=0,y=0,x;for(o=a.length-1,l="t";o>=0;--o)switch(a[o].t){case"h":case"H":a[o].t=m,l="h",v<1&&(v=1);break;case"s":(x=a[o].v.match(/\.0+$/))&&(y=Math.max(y,x[0].length-1)),v<3&&(v=3);case"d":case"y":case"M":case"e":l=a[o].t;break;case"m":l==="s"&&(a[o].t="M",v<2&&(v=2));break;case"X":break;case"Z":v<1&&a[o].v.match(/[Hh]/)&&(v=1),v<2&&a[o].v.match(/[Mm]/)&&(v=2),v<3&&a[o].v.match(/[Ss]/)&&(v=3)}switch(v){case 0:break;case 1:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M),c.M>=60&&(c.M=0,++c.H);break;case 2:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M);break}var b="",S;for(o=0;o0){b.charCodeAt(0)==40?(E=t<0&&b.charCodeAt(0)===45?-t:t,C=$l("n",b,E)):(E=t<0&&n>1?-t:t,C=$l("n",b,E),E<0&&a[0]&&a[0].t=="t"&&(C=C.substr(1),a[0].v="-"+a[0].v)),S=C.length-1;var O=a.length;for(o=0;o-1){O=o;break}var _=a.length;if(O===a.length&&C.indexOf("E")===-1){for(o=a.length-1;o>=0;--o)a[o]==null||"n?".indexOf(a[o].t)===-1||(S>=a[o].v.length-1?(S-=a[o].v.length,a[o].v=C.substr(S+1,a[o].v.length)):S<0?a[o].v="":(a[o].v=C.substr(0,S+1),S=-1),a[o].t="t",_=o);S>=0&&_=0;--o)if(!(a[o]==null||"n?".indexOf(a[o].t)===-1)){for(u=a[o].v.indexOf(".")>-1&&o===O?a[o].v.indexOf(".")-1:a[o].v.length-1,w=a[o].v.substr(u+1);u>=0;--u)S>=0&&(a[o].v.charAt(u)==="0"||a[o].v.charAt(u)==="#")&&(w=C.charAt(S--)+w);a[o].v=w,a[o].t="t",_=o}for(S>=0&&_-1&&o===O?a[o].v.indexOf(".")+1:0,w=a[o].v.substr(0,u);u-1&&(E=n>1&&t<0&&o>0&&a[o-1].v==="-"?-t:t,a[o].v=$l(a[o].t,a[o].v,E),a[o].t="t");var P="";for(o=0;o!==a.length;++o)a[o]!=null&&(P+=a[o].v);return P}var O5=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function T5(e,t){if(t==null)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0;break}return!1}function xVe(e,t){var r=gVe(e),n=r.length,a=r[n-1].indexOf("@");if(n<4&&a>-1&&--n,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if(typeof t!="number")return[4,r.length===4||a>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=a>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=a>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=a>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"];break}var i=t>0?r[0]:t<0?r[1]:r[2];if(r[0].indexOf("[")===-1&&r[1].indexOf("[")===-1)return[n,i];if(r[0].match(/\[[=<>]/)!=null||r[1].match(/\[[=<>]/)!=null){var o=r[0].match(O5),s=r[1].match(O5);return T5(t,o)?[n,r[0]]:T5(t,s)?[n,r[1]]:[n,r[o!=null&&s!=null?2:1]]}return[n,i]}function po(e,t,r){r==null&&(r={});var n="";switch(typeof e){case"string":e=="m/d/yy"&&r.dateNF?n=r.dateNF:n=e;break;case"number":e==14&&r.dateNF?n=r.dateNF:n=(r.table!=null?r.table:Kt)[e],n==null&&(n=r.table&&r.table[E5[e]]||Kt[E5[e]]),n==null&&(n=tVe[e]||"General");break}if(sb(n,0))return Od(t,r);t instanceof Date&&(t=nZ(t,r.date1904));var a=xVe(n,t);if(sb(a[1]))return Od(t,r);if(t===!0)t="TRUE";else if(t===!1)t="FALSE";else if(t===""||t==null)return"";return yVe(a[1],t,r,a[0])}function el(e,t){if(typeof t!="number"){t=+t||-1;for(var r=0;r<392;++r){if(Kt[r]==null){t<0&&(t=r);continue}if(Kt[r]==e){t=r;break}}t<0&&(t=391)}return Kt[t]=e,t}function lg(e){for(var t=0;t!=392;++t)e[t]!==void 0&&el(e[t],t)}function Cm(){Kt=eVe()}var fZ={format:po,load:el,_table:Kt,load_table:lg,parse_date_code:$c,is_date:qd,get_table:function(){return fZ._table=Kt}},bVe={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},mZ=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function SVe(e){var t=typeof e=="number"?Kt[e]:e;return t=t.replace(mZ,"(\\d+)"),new RegExp("^"+t+"$")}function wVe(e,t,r){var n=-1,a=-1,i=-1,o=-1,s=-1,l=-1;(t.match(mZ)||[]).forEach(function(f,m){var h=parseInt(r[m+1],10);switch(f.toLowerCase().charAt(0)){case"y":n=h;break;case"d":i=h;break;case"h":o=h;break;case"s":l=h;break;case"m":o>=0?s=h:a=h;break}}),l>=0&&s==-1&&a>=0&&(s=a,a=-1);var c=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(a>=1?a:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);c.length==7&&(c="0"+c),c.length==8&&(c="20"+c);var u=("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return o==-1&&s==-1&&l==-1?c:n==-1&&a==-1&&i==-1?u:c+"T"+u}var CVe=function(){var e={};e.version="1.2.0";function t(){for(var C=0,O=new Array(256),_=0;_!=256;++_)C=_,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,C=C&1?-306674912^C>>>1:C>>>1,O[_]=C;return typeof Int32Array<"u"?new Int32Array(O):O}var r=t();function n(C){var O=0,_=0,P=0,I=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(P=0;P!=256;++P)I[P]=C[P];for(P=0;P!=256;++P)for(_=C[P],O=256+P;O<4096;O+=256)_=I[O]=_>>>8^C[_&255];var N=[];for(P=1;P!=16;++P)N[P-1]=typeof Int32Array<"u"?I.subarray(P*256,P*256+256):I.slice(P*256,P*256+256);return N}var a=n(r),i=a[0],o=a[1],s=a[2],l=a[3],c=a[4],u=a[5],f=a[6],m=a[7],h=a[8],p=a[9],g=a[10],v=a[11],y=a[12],x=a[13],b=a[14];function S(C,O){for(var _=O^-1,P=0,I=C.length;P>>8^r[(_^C.charCodeAt(P++))&255];return~_}function w(C,O){for(var _=O^-1,P=C.length-15,I=0;I>8&255]^y[C[I++]^_>>16&255]^v[C[I++]^_>>>24]^g[C[I++]]^p[C[I++]]^h[C[I++]]^m[C[I++]]^f[C[I++]]^u[C[I++]]^c[C[I++]]^l[C[I++]]^s[C[I++]]^o[C[I++]]^i[C[I++]]^r[C[I++]];for(P+=15;I>>8^r[(_^C[I++])&255];return~_}function E(C,O){for(var _=O^-1,P=0,I=C.length,N=0,D=0;P>>8^r[(_^N)&255]:N<2048?(_=_>>>8^r[(_^(192|N>>6&31))&255],_=_>>>8^r[(_^(128|N&63))&255]):N>=55296&&N<57344?(N=(N&1023)+64,D=C.charCodeAt(P++)&1023,_=_>>>8^r[(_^(240|N>>8&7))&255],_=_>>>8^r[(_^(128|N>>2&63))&255],_=_>>>8^r[(_^(128|D>>6&15|(N&3)<<4))&255],_=_>>>8^r[(_^(128|D&63))&255]):(_=_>>>8^r[(_^(224|N>>12&15))&255],_=_>>>8^r[(_^(128|N>>6&63))&255],_=_>>>8^r[(_^(128|N&63))&255]);return~_}return e.table=r,e.bstr=S,e.buf=w,e.str=E,e}(),Vt=function(){var t={};t.version="1.2.1";function r(Z,ue){for(var se=Z.split("/"),ie=ue.split("/"),oe=0,de=0,we=Math.min(se.length,ie.length);oe>>1,Z.write_shift(2,se);var ie=ue.getFullYear()-1980;ie=ie<<4|ue.getMonth()+1,ie=ie<<5|ue.getDate(),Z.write_shift(2,ie)}function o(Z){var ue=Z.read_shift(2)&65535,se=Z.read_shift(2)&65535,ie=new Date,oe=se&31;se>>>=5;var de=se&15;se>>>=4,ie.setMilliseconds(0),ie.setFullYear(se+1980),ie.setMonth(de-1),ie.setDate(oe);var we=ue&31;ue>>>=5;var Ae=ue&63;return ue>>>=6,ie.setHours(ue),ie.setMinutes(Ae),ie.setSeconds(we<<1),ie}function s(Z){Wa(Z,0);for(var ue={},se=0;Z.l<=Z.length-4;){var ie=Z.read_shift(2),oe=Z.read_shift(2),de=Z.l+oe,we={};switch(ie){case 21589:se=Z.read_shift(1),se&1&&(we.mtime=Z.read_shift(4)),oe>5&&(se&2&&(we.atime=Z.read_shift(4)),se&4&&(we.ctime=Z.read_shift(4))),we.mtime&&(we.mt=new Date(we.mtime*1e3));break}Z.l=de,ue[ie]=we}return ue}var l;function c(){return l||(l={})}function u(Z,ue){if(Z[0]==80&&Z[1]==75)return at(Z,ue);if((Z[0]|32)==109&&(Z[1]|32)==105)return ht(Z,ue);if(Z.length<512)throw new Error("CFB file size "+Z.length+" < 512");var se=3,ie=512,oe=0,de=0,we=0,Ae=0,Ce=0,Ie=[],Te=Z.slice(0,512);Wa(Te,0);var Xe=f(Te);switch(se=Xe[0],se){case 3:ie=512;break;case 4:ie=4096;break;case 0:if(Xe[1]==0)return at(Z,ue);default:throw new Error("Major Version: Expected 3 or 4 saw "+se)}ie!==512&&(Te=Z.slice(0,ie),Wa(Te,28));var ke=Z.slice(0,ie);m(Te,se);var Be=Te.read_shift(4,"i");if(se===3&&Be!==0)throw new Error("# Directory Sectors: Expected 0 saw "+Be);Te.l+=4,we=Te.read_shift(4,"i"),Te.l+=4,Te.chk("00100000","Mini Stream Cutoff Size: "),Ae=Te.read_shift(4,"i"),oe=Te.read_shift(4,"i"),Ce=Te.read_shift(4,"i"),de=Te.read_shift(4,"i");for(var ze=-1,Ve=0;Ve<109&&(ze=Te.read_shift(4,"i"),!(ze<0));++Ve)Ie[Ve]=ze;var et=h(Z,ie);v(Ce,de,et,ie,Ie);var ot=x(et,we,Ie,ie);ot[we].name="!Directory",oe>0&&Ae!==D&&(ot[Ae].name="!MiniFAT"),ot[Ie[0]].name="!FAT",ot.fat_addrs=Ie,ot.ssz=ie;var wt={},Lt=[],pt=[],Ot=[];b(we,ot,et,Lt,oe,wt,pt,Ae),p(pt,Ot,Lt),Lt.shift();var zt={FileIndex:pt,FullPaths:Ot};return ue&&ue.raw&&(zt.raw={header:ke,sectors:et}),zt}function f(Z){if(Z[Z.l]==80&&Z[Z.l+1]==75)return[0,0];Z.chk(k,"Header Signature: "),Z.l+=16;var ue=Z.read_shift(2,"u");return[Z.read_shift(2,"u"),ue]}function m(Z,ue){var se=9;switch(Z.l+=2,se=Z.read_shift(2)){case 9:if(ue!=3)throw new Error("Sector Shift: Expected 9 saw "+se);break;case 12:if(ue!=4)throw new Error("Sector Shift: Expected 12 saw "+se);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+se)}Z.chk("0600","Mini Sector Shift: "),Z.chk("000000000000","Reserved: ")}function h(Z,ue){for(var se=Math.ceil(Z.length/ue)-1,ie=[],oe=1;oe0&&we>=0;)de.push(ue.slice(we*N,we*N+N)),oe-=N,we=Au(se,we*4);return de.length===0?Je(0):Pa(de).slice(0,Z.size)}function v(Z,ue,se,ie,oe){var de=D;if(Z===D){if(ue!==0)throw new Error("DIFAT chain shorter than expected")}else if(Z!==-1){var we=se[Z],Ae=(ie>>>2)-1;if(!we)return;for(var Ce=0;Ce=0;){oe[Ce]=!0,de[de.length]=Ce,we.push(Z[Ce]);var Te=se[Math.floor(Ce*4/ie)];if(Ie=Ce*4&Ae,ie<4+Ie)throw new Error("FAT boundary crossed: "+Ce+" 4 "+ie);if(!Z[Te])break;Ce=Au(Z[Te],Ie)}return{nodes:de,data:B5([we])}}function x(Z,ue,se,ie){var oe=Z.length,de=[],we=[],Ae=[],Ce=[],Ie=ie-1,Te=0,Xe=0,ke=0,Be=0;for(Te=0;Te=oe&&(ke-=oe),!we[ke]){Ce=[];var ze=[];for(Xe=ke;Xe>=0;){ze[Xe]=!0,we[Xe]=!0,Ae[Ae.length]=Xe,Ce.push(Z[Xe]);var Ve=se[Math.floor(Xe*4/ie)];if(Be=Xe*4&Ie,ie<4+Be)throw new Error("FAT boundary crossed: "+Xe+" 4 "+ie);if(!Z[Ve]||(Xe=Au(Z[Ve],Be),ze[Xe]))break}de[ke]={nodes:Ae,data:B5([Ce])}}return de}function b(Z,ue,se,ie,oe,de,we,Ae){for(var Ce=0,Ie=ie.length?2:0,Te=ue[Z].data,Xe=0,ke=0,Be;Xe0&&Ce!==D&&(ue[Ce].name="!StreamData")):Ve.size>=4096?(Ve.storage="fat",ue[Ve.start]===void 0&&(ue[Ve.start]=y(se,Ve.start,ue.fat_addrs,ue.ssz)),ue[Ve.start].name=Ve.name,Ve.content=ue[Ve.start].data.slice(0,Ve.size)):(Ve.storage="minifat",Ve.size<0?Ve.size=0:Ce!==D&&Ve.start!==D&&ue[Ce]&&(Ve.content=g(Ve,ue[Ce].data,(ue[Ae]||{}).data))),Ve.content&&Wa(Ve.content,0),de[Be]=Ve,we.push(Ve)}}function S(Z,ue){return new Date((Ta(Z,ue+4)/1e7*Math.pow(2,32)+Ta(Z,ue)/1e7-11644473600)*1e3)}function w(Z,ue){return c(),u(l.readFileSync(Z),ue)}function E(Z,ue){var se=ue&&ue.type;switch(se||ur&&Buffer.isBuffer(Z)&&(se="buffer"),se||"base64"){case"file":return w(Z,ue);case"base64":return u(eo(ho(Z)),ue);case"binary":return u(eo(Z),ue)}return u(Z,ue)}function C(Z,ue){var se=ue||{},ie=se.root||"Root Entry";if(Z.FullPaths||(Z.FullPaths=[]),Z.FileIndex||(Z.FileIndex=[]),Z.FullPaths.length!==Z.FileIndex.length)throw new Error("inconsistent CFB structure");Z.FullPaths.length===0&&(Z.FullPaths[0]=ie+"/",Z.FileIndex[0]={name:ie,type:5}),se.CLSID&&(Z.FileIndex[0].clsid=se.CLSID),O(Z)}function O(Z){var ue="Sh33tJ5";if(!Vt.find(Z,"/"+ue)){var se=Je(4);se[0]=55,se[1]=se[3]=50,se[2]=54,Z.FileIndex.push({name:ue,type:2,content:se,size:4,L:69,R:69,C:69}),Z.FullPaths.push(Z.FullPaths[0]+ue),_(Z)}}function _(Z,ue){C(Z);for(var se=!1,ie=!1,oe=Z.FullPaths.length-1;oe>=0;--oe){var de=Z.FileIndex[oe];switch(de.type){case 0:ie?se=!0:(Z.FileIndex.pop(),Z.FullPaths.pop());break;case 1:case 2:case 5:ie=!0,isNaN(de.R*de.L*de.C)&&(se=!0),de.R>-1&&de.L>-1&&de.R==de.L&&(se=!0);break;default:se=!0;break}}if(!(!se&&!ue)){var we=new Date(1987,1,19),Ae=0,Ce=Object.create?Object.create(null):{},Ie=[];for(oe=0;oe1?1:-1,Xe.size=0,Xe.type=5;else if(ke.slice(-1)=="/"){for(Ae=oe+1;Ae=Ie.length?-1:Ae,Ae=oe+1;Ae=Ie.length?-1:Ae,Xe.type=1}else n(Z.FullPaths[oe+1]||"")==n(ke)&&(Xe.R=oe+1),Xe.type=2}}}function P(Z,ue){var se=ue||{};if(se.fileType=="mad")return St(Z,se);switch(_(Z),se.fileType){case"zip":return tt(Z,se)}var ie=function(Be){for(var ze=0,Ve=0,et=0;et0&&(wt<4096?ze+=wt+63>>6:Ve+=wt+511>>9)}}for(var Lt=Be.FullPaths.length+3>>2,pt=ze+7>>3,Ot=ze+127>>7,zt=pt+Ve+Lt+Ot,pr=zt+127>>7,Ir=pr<=109?0:Math.ceil((pr-109)/127);zt+pr+Ir+127>>7>pr;)Ir=++pr<=109?0:Math.ceil((pr-109)/127);var Pr=[1,Ir,pr,Ot,Lt,Ve,ze,0];return Be.FileIndex[0].size=ze<<6,Pr[7]=(Be.FileIndex[0].start=Pr[0]+Pr[1]+Pr[2]+Pr[3]+Pr[4]+Pr[5])+(Pr[6]+7>>3),Pr}(Z),oe=Je(ie[7]<<9),de=0,we=0;{for(de=0;de<8;++de)oe.write_shift(1,R[de]);for(de=0;de<8;++de)oe.write_shift(2,0);for(oe.write_shift(2,62),oe.write_shift(2,3),oe.write_shift(2,65534),oe.write_shift(2,9),oe.write_shift(2,6),de=0;de<3;++de)oe.write_shift(2,0);for(oe.write_shift(4,0),oe.write_shift(4,ie[2]),oe.write_shift(4,ie[0]+ie[1]+ie[2]+ie[3]-1),oe.write_shift(4,0),oe.write_shift(4,4096),oe.write_shift(4,ie[3]?ie[0]+ie[1]+ie[2]-1:D),oe.write_shift(4,ie[3]),oe.write_shift(-4,ie[1]?ie[0]-1:D),oe.write_shift(4,ie[1]),de=0;de<109;++de)oe.write_shift(-4,de>9)));for(Ae(ie[6]+7>>3);oe.l&511;)oe.write_shift(-4,j.ENDOFCHAIN);for(we=de=0,Ce=0;Ce=4096)&&(Te.start=we,Ae(Ie+63>>6)));for(;oe.l&511;)oe.write_shift(-4,j.ENDOFCHAIN);for(de=0;de=4096)if(oe.l=Te.start+1<<9,ur&&Buffer.isBuffer(Te.content))Te.content.copy(oe,oe.l,0,Te.size),oe.l+=Te.size+511&-512;else{for(Ce=0;Ce0&&Te.size<4096)if(ur&&Buffer.isBuffer(Te.content))Te.content.copy(oe,oe.l,0,Te.size),oe.l+=Te.size+63&-64;else{for(Ce=0;Ce>16|ue>>8|ue)&255}for(var G=typeof Uint8Array<"u",Q=G?new Uint8Array(256):[],ee=0;ee<256;++ee)Q[ee]=Y(ee);function H(Z,ue){var se=Q[Z&255];return ue<=8?se>>>8-ue:(se=se<<8|Q[Z>>8&255],ue<=16?se>>>16-ue:(se=se<<8|Q[Z>>16&255],se>>>24-ue))}function fe(Z,ue){var se=ue&7,ie=ue>>>3;return(Z[ie]|(se<=6?0:Z[ie+1]<<8))>>>se&3}function te(Z,ue){var se=ue&7,ie=ue>>>3;return(Z[ie]|(se<=5?0:Z[ie+1]<<8))>>>se&7}function re(Z,ue){var se=ue&7,ie=ue>>>3;return(Z[ie]|(se<=4?0:Z[ie+1]<<8))>>>se&15}function q(Z,ue){var se=ue&7,ie=ue>>>3;return(Z[ie]|(se<=3?0:Z[ie+1]<<8))>>>se&31}function ne(Z,ue){var se=ue&7,ie=ue>>>3;return(Z[ie]|(se<=1?0:Z[ie+1]<<8))>>>se&127}function he(Z,ue,se){var ie=ue&7,oe=ue>>>3,de=(1<>>ie;return se<8-ie||(we|=Z[oe+1]<<8-ie,se<16-ie)||(we|=Z[oe+2]<<16-ie,se<24-ie)||(we|=Z[oe+3]<<24-ie),we&de}function ye(Z,ue,se){var ie=ue&7,oe=ue>>>3;return ie<=5?Z[oe]|=(se&7)<>8-ie),ue+3}function xe(Z,ue,se){var ie=ue&7,oe=ue>>>3;return se=(se&1)<>>3;return se<<=ie,Z[oe]|=se&255,se>>>=8,Z[oe+1]=se,ue+8}function Pe(Z,ue,se){var ie=ue&7,oe=ue>>>3;return se<<=ie,Z[oe]|=se&255,se>>>=8,Z[oe+1]=se&255,Z[oe+2]=se>>>8,ue+16}function $e(Z,ue){var se=Z.length,ie=2*se>ue?2*se:ue+5,oe=0;if(se>=ue)return Z;if(ur){var de=S5(ie);if(Z.copy)Z.copy(de);else for(;oe>ie-Xe,we=(1<=0;--we)ue[Ae|we<0;)Ce[Ce.l++]=Ae[Ie++]}return Ce.l}function we(Ae,Ce){for(var Ie=0,Te=0,Xe=G?new Uint16Array(32768):[];Te0;)Ce[Ce.l++]=Ae[Te++];Ie=Ce.l*8;continue}Ie=ye(Ce,Ie,+(Te+ke==Ae.length)+2);for(var Be=0;ke-- >0;){var ze=Ae[Te];Be=(Be<<5^ze)&32767;var Ve=-1,et=0;if((Ve=Xe[Be])&&(Ve|=Te&-32768,Ve>Te&&(Ve-=32768),Ve2){ze=oe[et],ze<=22?Ie=pe(Ce,Ie,Q[ze+1]>>1)-1:(pe(Ce,Ie,3),Ie+=5,pe(Ce,Ie,Q[ze-23]>>5),Ie+=3);var ot=ze<8?0:ze-4>>2;ot>0&&(Pe(Ce,Ie,et-U[ze]),Ie+=ot),ze=ue[Te-Ve],Ie=pe(Ce,Ie,Q[ze]>>3),Ie-=3;var wt=ze<4?0:ze-2>>1;wt>0&&(Pe(Ce,Ie,Te-Ve-X[ze]),Ie+=wt);for(var Lt=0;Lt>8-ze;for(var Ve=(1<<7-ze)-1;Ve>=0;--Ve)je[Be|Ve<>>=3){case 16:for(de=3+fe(Z,ue),ue+=2,Be=et[et.length-1];de-- >0;)et.push(Be);break;case 17:for(de=3+te(Z,ue),ue+=3;de-- >0;)et.push(0);break;case 18:for(de=11+ne(Z,ue),ue+=7;de-- >0;)et.push(0);break;default:et.push(Be),Ce>>0,Ae=0,Ce=0;!(ie&1);){if(ie=te(Z,se),se+=3,ie>>>1)ie>>1==1?(Ae=9,Ce=5):(se=ge(Z,se),Ae=_e,Ce=Me);else{se&7&&(se+=8-(se&7));var Ie=Z[se>>>3]|Z[(se>>>3)+1]<<8;if(se+=32,Ie>0)for(!ue&&we0;)oe[de++]=Z[se>>>3],se+=8;continue}for(;;){!ue&&we>>1==1?Fe[Te]:Ne[Te];if(se+=Xe&15,Xe>>>=4,!(Xe>>>8&255))oe[de++]=Xe;else{if(Xe==256)break;Xe-=257;var ke=Xe<8?0:Xe-4>>2;ke>5&&(ke=0);var Be=de+U[Xe];ke>0&&(Be+=he(Z,se,ke),se+=ke),Te=he(Z,se,Ce),Xe=ie>>>1==1?nt[Te]:Se[Te],se+=Xe&15,Xe>>>=4;var ze=Xe<4?0:Xe-2>>1,Ve=X[Xe];for(ze>0&&(Ve+=he(Z,se,ze),se+=ze),!ue&&we>>3]:[oe.slice(0,de),se+7>>>3]}function Re(Z,ue){var se=Z.slice(Z.l||0),ie=be(se,ue);return Z.l+=ie[1],ie[0]}function We(Z,ue){if(Z)typeof console<"u"&&console.error(ue);else throw new Error(ue)}function at(Z,ue){var se=Z;Wa(se,0);var ie=[],oe=[],de={FileIndex:ie,FullPaths:oe};C(de,{root:ue.root});for(var we=se.length-4;(se[we]!=80||se[we+1]!=75||se[we+2]!=5||se[we+3]!=6)&&we>=0;)--we;se.l=we+4,se.l+=4;var Ae=se.read_shift(2);se.l+=6;var Ce=se.read_shift(4);for(se.l=Ce,we=0;we0&&(se=se.slice(0,se.length-1),se=se.slice(0,se.lastIndexOf("/")+1),de.slice(0,se.length)!=se););var we=(ie[1]||"").match(/boundary="(.*?)"/);if(!we)throw new Error("MAD cannot find boundary");var Ae="--"+(we[1]||""),Ce=[],Ie=[],Te={FileIndex:Ce,FullPaths:Ie};C(Te);var Xe,ke=0;for(oe=0;oe=32&&Be<128&&++Xe;var Ve=Xe>=ke*4/5;oe.push(ie),oe.push("Content-Location: "+(se.root||"file:///C:/SheetJS/")+we),oe.push("Content-Transfer-Encoding: "+(Ve?"quoted-printable":"base64")),oe.push("Content-Type: "+ft(Ae,we)),oe.push(""),oe.push(Ve?mt(Te):lt(Te))}return oe.push(ie+`--\r -`),oe.join(`\r -`)}function xt(Z){var ue={};return C(ue,Z),ue}function rt(Z,ue,se,ie){var oe=ie&&ie.unsafe;oe||C(Z);var de=!oe&&Vt.find(Z,ue);if(!de){var we=Z.FullPaths[0];ue.slice(0,we.length)==we?we=ue:(we.slice(-1)!="/"&&(we+="/"),we=(we+ue).replace("//","/")),de={name:a(ue),type:2},Z.FileIndex.push(de),Z.FullPaths.push(we),oe||Vt.utils.cfb_gc(Z)}return de.content=se,de.size=se?se.length:0,ie&&(ie.CLSID&&(de.clsid=ie.CLSID),ie.mt&&(de.mt=ie.mt),ie.ct&&(de.ct=ie.ct)),de}function Ye(Z,ue){C(Z);var se=Vt.find(Z,ue);if(se){for(var ie=0;ie3&&(n=!0),a[i].slice(a[i].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+a[i].slice(a[i].length-1));case"D":r*=24;case"H":r*=60;case"M":if(n)r*=60;else throw new Error("Unsupported ISO Duration Field: M")}t+=r*parseInt(a[i],10)}return t}var N5=new Date("2017-02-19T19:06:09.000Z"),pZ=isNaN(N5.getFullYear())?new Date("2/19/17"):N5,IVe=pZ.getFullYear()==2017;function rn(e,t){var r=new Date(e);if(IVe)return t>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):t<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(pZ.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var a=e.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+a[0],+a[1]-1,+a[2],+a[3]||0,+a[4]||0,+a[5]||0);return e.indexOf("Z")>-1&&(i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3)),i}function Td(e,t){if(ur&&Buffer.isBuffer(e)){if(t){if(e[0]==255&&e[1]==254)return Ys(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return Ys(tZ(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(t){if(e[0]==255&&e[1]==254)return Ys(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return Ys(new TextDecoder("utf-16be").decode(e.slice(2)))}var r={"€":"€","‚":"‚",ƒ:"ƒ","„":"„","…":"…","†":"†","‡":"‡","ˆ":"ˆ","‰":"‰",Š:"Š","‹":"‹",Œ:"Œ",Ž:"Ž","‘":"‘","’":"’","“":"“","”":"”","•":"•","–":"–","—":"—","˜":"˜","™":"™",š:"š","›":"›",œ:"œ",ž:"ž",Ÿ:"Ÿ"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(i){return r[i]||i})}catch{}for(var n=[],a=0;a!=e.length;++a)n.push(String.fromCharCode(e[a]));return n.join("")}function Hr(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=Hr(e[r]));return t}function Cn(e,t){for(var r="";r.length3&&NVe.indexOf(o)==-1)return r}else if(o.match(/[a-z]/))return r;return n<0||n>8099?r:(a>0||i>1)&&n!=101?t:e.match(/[^-0-9:,\/\\]/)?r:t}var kVe=function(){var e="abacaba".split(/(:?b)/i).length==5;return function(r,n,a){if(e||typeof n=="string")return r.split(n);for(var i=r.split(n),o=[i[0]],s=1;s\r -`,AVe=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,R5=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,MVe=/<[^>]*>/g,mi=Ln.match(R5)?R5:MVe,DVe=/<\w*:/,jVe=/<(\/?)\w+:/;function Qt(e,t,r){for(var n={},a=0,i=0;a!==e.length&&!((i=e.charCodeAt(a))===32||i===10||i===13);++a);if(t||(n[0]=e.slice(0,a)),a===e.length)return n;var o=e.match(AVe),s=0,l="",c=0,u="",f="",m=1;if(o)for(c=0;c!=o.length;++c){for(f=o[c],i=0;i!=f.length&&f.charCodeAt(i)!==61;++i);for(u=f.slice(0,i).trim();f.charCodeAt(i+1)==32;)++i;for(m=(a=f.charCodeAt(i+1))==34||a==39?1:0,l=f.slice(i+1+m,f.length-m),s=0;s!=u.length&&u.charCodeAt(s)!==58;++s);if(s===u.length)u.indexOf("_")>0&&(u=u.slice(0,u.indexOf("_"))),n[u]=l,r||(n[u.toLowerCase()]=l);else{var h=(s===5&&u.slice(0,5)==="xmlns"?"xmlns":"")+u.slice(s+1);if(n[h]&&u.slice(s-3,s)=="ext")continue;n[h]=l,r||(n[h.toLowerCase()]=l)}}return n}function ul(e){return e.replace(jVe,"<$1")}var bZ={""":'"',"'":"'",">":">","<":"<","&":"&"},kR=cC(bZ),Cr=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig,t=/_x([\da-fA-F]{4})_/ig;return function r(n){var a=n+"",i=a.indexOf("-1?16:10))||s}).replace(t,function(s,l){return String.fromCharCode(parseInt(l,16))});var o=a.indexOf("]]>");return r(a.slice(0,i))+a.slice(i+9,o)+r(a.slice(o+3))}}(),RR=/[&<>'"]/g,FVe=/[\u0000-\u0008\u000b-\u001f]/g;function Mr(e){var t=e+"";return t.replace(RR,function(r){return kR[r]}).replace(FVe,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function A5(e){return Mr(e).replace(/ /g,"_x0020_")}var SZ=/[\u0000-\u001f]/g;function AR(e){var t=e+"";return t.replace(RR,function(r){return kR[r]}).replace(/\n/g,"
").replace(SZ,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function LVe(e){var t=e+"";return t.replace(RR,function(r){return kR[r]}).replace(SZ,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}var M5=function(){var e=/&#(\d+);/g;function t(r,n){return String.fromCharCode(parseInt(n,10))}return function(n){return n.replace(e,t)}}();function BVe(e){return e.replace(/(\r\n|[\r\n])/g," ")}function Jr(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function NE(e){for(var t="",r=0,n=0,a=0,i=0,o=0,s=0;r191&&n<224){o=(n&31)<<6,o|=a&63,t+=String.fromCharCode(o);continue}if(i=e.charCodeAt(r++),n<240){t+=String.fromCharCode((n&15)<<12|(a&63)<<6|i&63);continue}o=e.charCodeAt(r++),s=((n&7)<<18|(a&63)<<12|(i&63)<<6|o&63)-65536,t+=String.fromCharCode(55296+(s>>>10&1023)),t+=String.fromCharCode(56320+(s&1023))}return t}function D5(e){var t=Zc(2*e.length),r,n,a=1,i=0,o=0,s;for(n=0;n>>10&1023),r=56320+(r&1023)),o!==0&&(t[i++]=o&255,t[i++]=o>>>8,o=0),t[i++]=r%256,t[i++]=r>>>8;return t.slice(0,i).toString("ucs2")}function j5(e){return Yl(e,"binary").toString("utf8")}var Ty="foo bar baz☃🍣",Lr=ur&&(j5(Ty)==NE(Ty)&&j5||D5(Ty)==NE(Ty)&&D5)||NE,Ys=ur?function(e){return Yl(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,a=0;r>6))),t.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,a=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(a>>18&7))),t.push(String.fromCharCode(144+(a>>12&63))),t.push(String.fromCharCode(128+(a>>6&63))),t.push(String.fromCharCode(128+(a&63)));break;default:t.push(String.fromCharCode(224+(n>>12))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(n&63)))}return t.join("")},Up=function(){var e={};return function(r,n){var a=r+"|"+(n||"");return e[a]?e[a]:e[a]=new RegExp("<(?:\\w+:)?"+r+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)",n||"")}}(),wZ=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(r){for(var n=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+/g,` -`).replace(/<[^>]*>/g,""),a=0;a([\\s\\S]*?)","g")}}(),HVe=/<\/?(?:vt:)?variant>/g,WVe=/<(?:vt:)([^>]*)>([\s\S]*)"+t+""}function Kp(e){return Tn(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function Ct(e,t,r){return"<"+e+(r!=null?Kp(r):"")+(t!=null?(t.match(CZ)?' xml:space="preserve"':"")+">"+t+""}function vT(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function VVe(e,t){switch(typeof e){case"string":var r=Ct("vt:lpwstr",Mr(e));return t&&(r=r.replace(/"/g,"_x0022_")),r;case"number":return Ct((e|0)==e?"vt:i4":"vt:r8",Mr(String(e)));case"boolean":return Ct("vt:bool",e?"true":"false")}if(e instanceof Date)return Ct("vt:filetime",vT(e));throw new Error("Unable to serialize "+e)}function MR(e){if(ur&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e=="string")return e;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return Lr(xu(OR(e)));throw new Error("Bad input format: expected Buffer or string")}var Gp=/<(\/?)([^\s?>:\/]+)(?:[\s?:\/][^>]*)?>/mg,da={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Xd=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],Zi={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function UVe(e,t){for(var r=1-2*(e[t+7]>>>7),n=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),a=e[t+6]&15,i=5;i>=0;--i)a=a*256+e[t+i];return n==2047?a==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,a+=Math.pow(2,52)),r*Math.pow(2,n-52)*a)}function KVe(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,a=0,i=0,o=n?-t:t;isFinite(o)?o==0?a=i=0:(a=Math.floor(Math.log(o)/Math.LN2),i=o*Math.pow(2,52-a),a<=-1023&&(!isFinite(i)||i>4|n}var L5=function(e){for(var t=[],r=10240,n=0;n0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:Yl(t)})):L5(e)}:L5,z5=function(e,t,r){for(var n=[],a=t;a0?Em(e,t+4,t+4+r-1):""},DR=$Z,_Z=function(e,t){var r=Ta(e,t);return r>0?Em(e,t+4,t+4+r-1):""},jR=_Z,OZ=function(e,t){var r=2*Ta(e,t);return r>0?Em(e,t+4,t+4+r-1):""},FR=OZ,TZ=function(t,r){var n=Ta(t,r);return n>0?fC(t,r+4,r+4+n):""},LR=TZ,PZ=function(e,t){var r=Ta(e,t);return r>0?Em(e,t+4,t+4+r):""},BR=PZ,IZ=function(e,t){return UVe(e,t)},ub=IZ,zR=function(t){return Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array};ur&&(DR=function(t,r){if(!Buffer.isBuffer(t))return $Z(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},jR=function(t,r){if(!Buffer.isBuffer(t))return _Z(t,r);var n=t.readUInt32LE(r);return n>0?t.toString("utf8",r+4,r+4+n-1):""},FR=function(t,r){if(!Buffer.isBuffer(t))return OZ(t,r);var n=2*t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n-1)},LR=function(t,r){if(!Buffer.isBuffer(t))return TZ(t,r);var n=t.readUInt32LE(r);return t.toString("utf16le",r+4,r+4+n)},BR=function(t,r){if(!Buffer.isBuffer(t))return PZ(t,r);var n=t.readUInt32LE(r);return t.toString("utf8",r+4,r+4+n)},ub=function(t,r){return Buffer.isBuffer(t)?t.readDoubleLE(r):IZ(t,r)},zR=function(t){return Buffer.isBuffer(t)||Array.isArray(t)||typeof Uint8Array<"u"&&t instanceof Uint8Array});function NZ(){fC=function(e,t,r){return xr.utils.decode(1200,e.slice(t,r)).replace(li,"")},Em=function(e,t,r){return xr.utils.decode(65001,e.slice(t,r))},DR=function(e,t){var r=Ta(e,t);return r>0?xr.utils.decode(_d,e.slice(t+4,t+4+r-1)):""},jR=function(e,t){var r=Ta(e,t);return r>0?xr.utils.decode(co,e.slice(t+4,t+4+r-1)):""},FR=function(e,t){var r=2*Ta(e,t);return r>0?xr.utils.decode(1200,e.slice(t+4,t+4+r-1)):""},LR=function(e,t){var r=Ta(e,t);return r>0?xr.utils.decode(1200,e.slice(t+4,t+4+r)):""},BR=function(e,t){var r=Ta(e,t);return r>0?xr.utils.decode(65001,e.slice(t+4,t+4+r)):""}}typeof xr<"u"&&NZ();var wf=function(e,t){return e[t]},Sl=function(e,t){return e[t+1]*256+e[t]},GVe=function(e,t){var r=e[t+1]*256+e[t];return r<32768?r:(65535-r+1)*-1},Ta=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Au=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},qVe=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Rh(e,t){var r="",n,a,i=[],o,s,l,c;switch(t){case"dbcs":if(c=this.l,ur&&Buffer.isBuffer(this))r=this.slice(this.l,this.l+2*e).toString("utf16le");else for(l=0;l0?Au:qVe)(this,this.l),this.l+=4,n):(a=Ta(this,this.l),this.l+=4,a);case 8:case-8:if(t==="f")return e==8?a=ub(this,this.l):a=ub([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,a;e=8;case 16:r=EZ(this,this.l,e);break}}return this.l+=e,r}var XVe=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},YVe=function(e,t,r){e[r]=t&255,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},QVe=function(e,t,r){e[r]=t&255,e[r+1]=t>>>8&255};function ZVe(e,t,r){var n=0,a=0;if(r==="dbcs"){for(a=0;a!=t.length;++a)QVe(this,t.charCodeAt(a),this.l+2*a);n=2*t.length}else if(r==="sbcs"){if(typeof xr<"u"&&_d==874)for(a=0;a!=t.length;++a){var i=xr.utils.encode(_d,t.charAt(a));this[this.l+a]=i[0]}else for(t=t.replace(/[^\x00-\x7F]/g,"_"),a=0;a!=t.length;++a)this[this.l+a]=t.charCodeAt(a)&255;n=t.length}else if(r==="hex"){for(;a>8}for(;this.l>>=8,this[this.l+1]=t&255;break;case 3:n=3,this[this.l]=t&255,t>>>=8,this[this.l+1]=t&255,t>>>=8,this[this.l+2]=t&255;break;case 4:n=4,XVe(this,t,this.l);break;case 8:if(n=8,r==="f"){KVe(this,t,this.l);break}case 16:break;case-4:n=4,YVe(this,t,this.l);break}return this.l+=n,this}function kZ(e,t){var r=EZ(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function Wa(e,t){e.l=t,e.read_shift=Rh,e.chk=kZ,e.write_shift=ZVe}function di(e,t){e.l+=t}function Je(e){var t=Zc(e);return Wa(t,0),t}function Ql(e,t,r){if(e){var n,a,i;Wa(e,e.l||0);for(var o=e.length,s=0,l=0;e.ln.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&e.push(n),n=null)},i=function(c){return n&&c=128?1:0)+1,n>=128&&++i,n>=16384&&++i,n>=2097152&&++i;var o=e.next(i);a<=127?o.write_shift(1,a):(o.write_shift(1,(a&127)+128),o.write_shift(1,a>>7));for(var s=0;s!=4;++s)if(n>=128)o.write_shift(1,(n&127)+128),n>>=7;else{o.write_shift(1,n);break}n>0&&zR(r)&&e.push(r)}}function Ah(e,t,r){var n=Hr(e);if(t.s?(n.cRel&&(n.c+=t.s.c),n.rRel&&(n.r+=t.s.r)):(n.cRel&&(n.c+=t.c),n.rRel&&(n.r+=t.r)),!r||r.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function V5(e,t,r){var n=Hr(e);return n.s=Ah(n.s,t.s,r),n.e=Ah(n.e,t.s,r),n}function Mh(e,t){if(e.cRel&&e.c<0)for(e=Hr(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=Hr(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=Xt(e);return!e.cRel&&e.cRel!=null&&(r=tUe(r)),!e.rRel&&e.rRel!=null&&(r=JVe(r)),r}function kE(e,t){return e.s.r==0&&!e.s.rRel&&e.e.r==(t.biff>=12?1048575:t.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+tn(e.s.c)+":"+(e.e.cRel?"":"$")+tn(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(t.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+_n(e.s.r)+":"+(e.e.rRel?"":"$")+_n(e.e.r):Mh(e.s,t.biff)+":"+Mh(e.e,t.biff)}function HR(e){return parseInt(eUe(e),10)-1}function _n(e){return""+(e+1)}function JVe(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function eUe(e){return e.replace(/\$(\d+)$/,"$1")}function WR(e){for(var t=rUe(e),r=0,n=0;n!==t.length;++n)r=26*r+t.charCodeAt(n)-64;return r-1}function tn(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function tUe(e){return e.replace(/^([A-Z])/,"$$$1")}function rUe(e){return e.replace(/^\$([A-Z])/,"$1")}function nUe(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function mn(e){for(var t=0,r=0,n=0;n=48&&a<=57?t=10*t+(a-48):a>=65&&a<=90&&(r=26*r+(a-64))}return{c:r-1,r:t-1}}function Xt(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function $i(e){var t=e.indexOf(":");return t==-1?{s:mn(e),e:mn(e)}:{s:mn(e.slice(0,t)),e:mn(e.slice(t+1))}}function ir(e,t){return typeof t>"u"||typeof t=="number"?ir(e.s,e.e):(typeof e!="string"&&(e=Xt(e)),typeof t!="string"&&(t=Xt(t)),e==t?e:e+":"+t)}function yr(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,n=0,a=0,i=e.length;for(r=0;n26);++n)r=26*r+a;for(t.s.c=--r,r=0;n9);++n)r=10*r+a;if(t.s.r=--r,n===i||a!=10)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++n,r=0;n!=i&&!((a=e.charCodeAt(n)-64)<1||a>26);++n)r=26*r+a;for(t.e.c=--r,r=0;n!=i&&!((a=e.charCodeAt(n)-48)<0||a>9);++n)r=10*r+a;return t.e.r=--r,t}function U5(e,t){var r=e.t=="d"&&t instanceof Date;if(e.z!=null)try{return e.w=po(e.z,r?ya(t):t)}catch{}try{return e.w=po((e.XF||{}).numFmtId||(r?14:0),r?ya(t):t)}catch{return""+t}}function ll(e,t,r){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),e.t=="e"?Zl[e.v]||e.v:t==null?U5(e,e.v):U5(e,t))}function bu(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",n={};return n[r]=e,{SheetNames:[r],Sheets:n}}function RZ(e,t,r){var n=r||{},a=e?Array.isArray(e):n.dense,i=e||(a?[]:{}),o=0,s=0;if(i&&n.origin!=null){if(typeof n.origin=="number")o=n.origin;else{var l=typeof n.origin=="string"?mn(n.origin):n.origin;o=l.r,s=l.c}i["!ref"]||(i["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var u=yr(i["!ref"]);c.s.c=u.s.c,c.s.r=u.s.r,c.e.c=Math.max(c.e.c,u.e.c),c.e.r=Math.max(c.e.r,u.e.r),o==-1&&(c.e.r=o=u.e.r+1)}for(var f=0;f!=t.length;++f)if(t[f]){if(!Array.isArray(t[f]))throw new Error("aoa_to_sheet expects an array of arrays");for(var m=0;m!=t[f].length;++m)if(!(typeof t[f][m]>"u")){var h={v:t[f][m]},p=o+f,g=s+m;if(c.s.r>p&&(c.s.r=p),c.s.c>g&&(c.s.c=g),c.e.r0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}function iUe(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function oUe(e,t){return t||(t=Je(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0),t}function VR(e,t){var r=e.l,n=e.read_shift(1),a=ci(e),i=[],o={t:a,h:a};if(n&1){for(var s=e.read_shift(4),l=0;l!=s;++l)i.push(iUe(e));o.r=i}else o.r=[{ich:0,ifnt:0}];return e.l=r+t,o}function sUe(e,t){var r=!1;return t==null&&(r=!0,t=Je(15+4*e.t.length)),t.write_shift(1,0),Na(e.t,t),r?t.slice(0,t.l):t}var lUe=VR;function cUe(e,t){var r=!1;return t==null&&(r=!0,t=Je(23+4*e.t.length)),t.write_shift(1,1),Na(e.t,t),t.write_shift(4,1),oUe({ich:0,ifnt:0},t),r?t.slice(0,t.l):t}function ts(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:r}}function Yd(e,t){return t==null&&(t=Je(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function Qd(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function Zd(e,t){return t==null&&(t=Je(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var uUe=ci,AZ=Na;function UR(e){var t=e.read_shift(4);return t===0||t===4294967295?"":e.read_shift(t,"dbcs")}function db(e,t){var r=!1;return t==null&&(r=!0,t=Je(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}var dUe=ci,gT=UR,KR=db;function GR(e){var t=e.slice(e.l,e.l+4),r=t[0]&1,n=t[0]&2;e.l+=4;var a=n===0?ub([0,0,0,0,t[0]&252,t[1],t[2],t[3]],0):Au(t,0)>>2;return r?a/100:a}function MZ(e,t){t==null&&(t=Je(4));var r=0,n=0,a=e*100;if(e==(e|0)&&e>=-(1<<29)&&e<1<<29?n=1:a==(a|0)&&a>=-(1<<29)&&a<1<<29&&(n=1,r=1),n)t.write_shift(-4,((r?a:e)<<2)+(r+2));else throw new Error("unsupported RkNumber "+e)}function DZ(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}function fUe(e,t){return t||(t=Je(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t}var Jd=DZ,_m=fUe;function ai(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Pd(e,t){return(t||Je(8)).write_shift(8,e,"f")}function mUe(e){var t={},r=e.read_shift(1),n=r>>>1,a=e.read_shift(1),i=e.read_shift(2,"i"),o=e.read_shift(1),s=e.read_shift(1),l=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=a;var c=rd[a];c&&(t.rgb=Xp(c));break;case 2:t.rgb=Xp([o,s,l]);break;case 3:t.theme=a;break}return i!=0&&(t.tint=i>0?i/32767:i/32768),t}function fb(e,t){if(t||(t=Je(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;e.index!=null?(t.write_shift(1,2),t.write_shift(1,e.index)):e.theme!=null?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t.write_shift(2,r),!e.rgb||e.theme!=null)t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);else{var n=e.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),t.write_shift(1,parseInt(n.slice(0,2),16)),t.write_shift(1,parseInt(n.slice(2,4),16)),t.write_shift(1,parseInt(n.slice(4,6),16)),t.write_shift(1,255)}return t}function hUe(e){var t=e.read_shift(1);e.l++;var r={fBold:t&1,fItalic:t&2,fUnderline:t&4,fStrikeout:t&8,fOutline:t&16,fShadow:t&32,fCondense:t&64,fExtend:t&128};return r}function pUe(e,t){t||(t=Je(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return t.write_shift(1,r),t.write_shift(1,0),t}function jZ(e,t){var r={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"},n=e.read_shift(4);switch(n){case 0:return"";case 4294967295:case 4294967294:return r[e.read_shift(4)]||""}if(n>400)throw new Error("Unsupported Clipboard: "+n.toString(16));return e.l-=4,e.read_shift(0,t==1?"lpstr":"lpwstr")}function vUe(e){return jZ(e,1)}function gUe(e){return jZ(e,2)}var qR=2,Ii=3,Py=11,K5=12,mb=19,Iy=64,yUe=65,xUe=71,bUe=4108,SUe=4126,_a=80,FZ=81,wUe=[_a,FZ],yT={1:{n:"CodePage",t:qR},2:{n:"Category",t:_a},3:{n:"PresentationFormat",t:_a},4:{n:"ByteCount",t:Ii},5:{n:"LineCount",t:Ii},6:{n:"ParagraphCount",t:Ii},7:{n:"SlideCount",t:Ii},8:{n:"NoteCount",t:Ii},9:{n:"HiddenCount",t:Ii},10:{n:"MultimediaClipCount",t:Ii},11:{n:"ScaleCrop",t:Py},12:{n:"HeadingPairs",t:bUe},13:{n:"TitlesOfParts",t:SUe},14:{n:"Manager",t:_a},15:{n:"Company",t:_a},16:{n:"LinksUpToDate",t:Py},17:{n:"CharacterCount",t:Ii},19:{n:"SharedDoc",t:Py},22:{n:"HyperlinksChanged",t:Py},23:{n:"AppVersion",t:Ii,p:"version"},24:{n:"DigSig",t:yUe},26:{n:"ContentType",t:_a},27:{n:"ContentStatus",t:_a},28:{n:"Language",t:_a},29:{n:"Version",t:_a},255:{},2147483648:{n:"Locale",t:mb},2147483651:{n:"Behavior",t:mb},1919054434:{}},xT={1:{n:"CodePage",t:qR},2:{n:"Title",t:_a},3:{n:"Subject",t:_a},4:{n:"Author",t:_a},5:{n:"Keywords",t:_a},6:{n:"Comments",t:_a},7:{n:"Template",t:_a},8:{n:"LastAuthor",t:_a},9:{n:"RevNumber",t:_a},10:{n:"EditTime",t:Iy},11:{n:"LastPrinted",t:Iy},12:{n:"CreatedDate",t:Iy},13:{n:"ModifiedDate",t:Iy},14:{n:"PageCount",t:Ii},15:{n:"WordCount",t:Ii},16:{n:"CharCount",t:Ii},17:{n:"Thumbnail",t:xUe},18:{n:"Application",t:_a},19:{n:"DocSecurity",t:Ii},255:{},2147483648:{n:"Locale",t:mb},2147483651:{n:"Behavior",t:mb},1919054434:{}},G5={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},CUe=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function EUe(e){return e.map(function(t){return[t>>16&255,t>>8&255,t&255]})}var $Ue=EUe([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),rd=Hr($Ue),Zl={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},LZ={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},bT={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Ny={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function XR(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function _Ue(e){var t=XR();if(!e||!e.match)return t;var r={};if((e.match(mi)||[]).forEach(function(n){var a=Qt(n);switch(a[0].replace(DVe,"<")){case"0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=r,delete t.calcchains,t}function BZ(e,t){var r=OVe(bT),n=[],a;n[n.length]=Ln,n[n.length]=Ct("Types",null,{xmlns:da.CT,"xmlns:xsd":da.xsd,"xmlns:xsi":da.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(l){return Ct("Default",null,{Extension:l[0],ContentType:l[1]})}));var i=function(l){e[l]&&e[l].length>0&&(a=e[l][0],n[n.length]=Ct("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:Ny[l][t.bookType]||Ny[l].xlsx}))},o=function(l){(e[l]||[]).forEach(function(c){n[n.length]=Ct("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:Ny[l][t.bookType]||Ny[l].xlsx})})},s=function(l){(e[l]||[]).forEach(function(c){n[n.length]=Ct("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:r[l][0]})})};return i("workbooks"),o("sheets"),o("charts"),s("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(s),s("vba"),s("comments"),s("threadedcomments"),s("drawings"),o("metadata"),s("people"),n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var hr={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function qp(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function Dh(e,t){var r={"!id":{}};if(!e)return r;t.charAt(0)!=="/"&&(t="/"+t);var n={};return(e.match(mi)||[]).forEach(function(a){var i=Qt(a);if(i[0]==="2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function Rr(e,t,r,n,a,i){if(a||(a={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,a.Id="rId"+t,a.Type=n,a.Target=r,i?a.TargetMode=i:[hr.HLINK,hr.XPATH,hr.XMISS].indexOf(a.Type)>-1&&(a.TargetMode="External"),e["!id"][a.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][a.Id]=a,e[("/"+a.Target).replace("//","/")]=a,t}var OUe="application/vnd.oasis.opendocument.spreadsheet";function TUe(e,t){for(var r=MR(e),n,a;n=Gp.exec(r);)switch(n[3]){case"manifest":break;case"file-entry":if(a=Qt(n[0],!1),a.path=="/"&&a.type!==OUe)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(t&&t.WTF)throw n}}function PUe(e){var t=[Ln];t.push(` -`),t.push(` -`);for(var r=0;r -`);return t.push(""),t.join("")}function q5(e,t,r){return[' -`,' -`,` -`].join("")}function IUe(e,t){return[' -`,' -`,` -`].join("")}function NUe(e){var t=[Ln];t.push(` -`);for(var r=0;r!=e.length;++r)t.push(q5(e[r][0],e[r][1])),t.push(IUe("",e[r][0]));return t.push(q5("","Document","pkg")),t.push(""),t.join("")}function zZ(){return'SheetJS '+Hp.version+""}var Bo=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],kUe=function(){for(var e=new Array(Bo.length),t=0;t]*>([\\s\\S]*?)")}return e}();function HZ(e){var t={};e=Lr(e);for(var r=0;r0&&(t[n[1]]=Cr(a[1])),n[2]==="date"&&t[n[1]]&&(t[n[1]]=rn(t[n[1]]))}return t}function RE(e,t,r,n,a){a[e]!=null||t==null||t===""||(a[e]=t,t=Mr(t),n[n.length]=r?Ct(e,t,r):Va(e,t))}function WZ(e,t){var r=t||{},n=[Ln,Ct("cp:coreProperties",null,{"xmlns:cp":da.CORE_PROPS,"xmlns:dc":da.dc,"xmlns:dcterms":da.dcterms,"xmlns:dcmitype":da.dcmitype,"xmlns:xsi":da.xsi})],a={};if(!e&&!r.Props)return n.join("");e&&(e.CreatedDate!=null&&RE("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:vT(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a),e.ModifiedDate!=null&&RE("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:vT(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a));for(var i=0;i!=Bo.length;++i){var o=Bo[i],s=r.Props&&r.Props[o[1]]!=null?r.Props[o[1]]:e?e[o[1]]:null;s===!0?s="1":s===!1?s="0":typeof s=="number"&&(s=String(s)),s!=null&&RE(o[0],s,null,n,a)}return n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var nd=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],VZ=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function UZ(e,t,r,n){var a=[];if(typeof e=="string")a=F5(e,n);else for(var i=0;i0)for(var c=0;c!==a.length;c+=2){switch(l=+a[c+1].v,a[c].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":r.Worksheets=l,r.SheetNames=o.slice(s,s+l);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":r.NamedRanges=l,r.DefinedNames=o.slice(s,s+l);break;case"Charts":case"Diagramme":r.Chartsheets=l,r.ChartNames=o.slice(s,s+l);break}s+=l}}function RUe(e,t,r){var n={};return t||(t={}),e=Lr(e),nd.forEach(function(a){var i=(e.match(Up(a[0]))||[])[1];switch(a[2]){case"string":i&&(t[a[1]]=Cr(i));break;case"bool":t[a[1]]=i==="true";break;case"raw":var o=e.match(new RegExp("<"+a[0]+"[^>]*>([\\s\\S]*?)"));o&&o.length>0&&(n[a[1]]=o[1]);break}}),n.HeadingPairs&&n.TitlesOfParts&&UZ(n.HeadingPairs,n.TitlesOfParts,t,r),t}function KZ(e){var t=[],r=Ct;return e||(e={}),e.Application="SheetJS",t[t.length]=Ln,t[t.length]=Ct("Properties",null,{xmlns:da.EXT_PROPS,"xmlns:vt":da.vt}),nd.forEach(function(n){if(e[n[1]]!==void 0){var a;switch(n[2]){case"string":a=Mr(String(e[n[1]]));break;case"bool":a=e[n[1]]?"true":"false";break}a!==void 0&&(t[t.length]=r(n[0],a))}}),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","Worksheets")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map(function(n){return""+Mr(n)+""}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}var AUe=/<[^>]+>[^<]*/g;function MUe(e,t){var r={},n="",a=e.match(AUe);if(a)for(var i=0;i!=a.length;++i){var o=a[i],s=Qt(o);switch(s[0]){case"":n=null;break;default:if(o.indexOf(""),c=l[0].slice(4),u=l[1];switch(c){case"lpstr":case"bstr":case"lpwstr":r[n]=Cr(u);break;case"bool":r[n]=Jr(u);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":r[n]=parseInt(u,10);break;case"r4":case"r8":case"decimal":r[n]=parseFloat(u);break;case"filetime":case"date":r[n]=rn(u);break;case"cy":case"error":r[n]=Cr(u);break;default:if(c.slice(-1)=="/")break;t.WTF&&typeof console<"u"&&console.warn("Unexpected",o,c,l)}}else if(o.slice(0,2)!=="2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}var ST={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"},AE;function DUe(e,t,r){AE||(AE=cC(ST)),t=AE[t]||t,e[t]=r}function jUe(e,t){var r=[];return Tn(ST).map(function(n){for(var a=0;a'+a.join("")+""}function YR(e){var t=e.read_shift(4),r=e.read_shift(4);return new Date((r/1e7*Math.pow(2,32)+t/1e7-11644473600)*1e3).toISOString().replace(/\.000/,"")}function LUe(e){var t=typeof e=="string"?new Date(Date.parse(e)):e,r=t.getTime()/1e3+11644473600,n=r%Math.pow(2,32),a=(r-n)/Math.pow(2,32);n*=1e7,a*=1e7;var i=n/Math.pow(2,32)|0;i>0&&(n=n%Math.pow(2,32),a+=i);var o=Je(8);return o.write_shift(4,n),o.write_shift(4,a),o}function qZ(e,t,r){var n=e.l,a=e.read_shift(0,"lpstr-cp");if(r)for(;e.l-n&3;)++e.l;return a}function XZ(e,t,r){var n=e.read_shift(0,"lpwstr");return r&&(e.l+=4-(n.length+1&3)&3),n}function YZ(e,t,r){return t===31?XZ(e):qZ(e,t,r)}function wT(e,t,r){return YZ(e,t,r===!1?0:4)}function BUe(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return YZ(e,t,0)}function zUe(e){for(var t=e.read_shift(4),r=[],n=0;n!=t;++n){var a=e.l;r[n]=e.read_shift(0,"lpwstr").replace(li,""),e.l-a&2&&(e.l+=2)}return r}function HUe(e){for(var t=e.read_shift(4),r=[],n=0;n!=t;++n)r[n]=e.read_shift(0,"lpstr-cp").replace(li,"");return r}function WUe(e){var t=e.l,r=hb(e,FZ);e[e.l]==0&&e[e.l+1]==0&&e.l-t&2&&(e.l+=2);var n=hb(e,Ii);return[r,n]}function VUe(e){for(var t=e.read_shift(4),r=[],n=0;n>2+1<<2),n}function QZ(e){var t=e.read_shift(4),r=e.slice(e.l,e.l+t);return e.l+=t,(t&3)>0&&(e.l+=4-(t&3)&3),r}function UUe(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}function hb(e,t,r){var n=e.read_shift(2),a,i=r||{};if(e.l+=2,t!==K5&&n!==t&&wUe.indexOf(t)===-1&&!((t&65534)==4126&&(n&65534)==4126))throw new Error("Expected type "+t+" saw "+n);switch(t===K5?n:t){case 2:return a=e.read_shift(2,"i"),i.raw||(e.l+=2),a;case 3:return a=e.read_shift(4,"i"),a;case 11:return e.read_shift(4)!==0;case 19:return a=e.read_shift(4),a;case 30:return qZ(e,n,4).replace(li,"");case 31:return XZ(e);case 64:return YR(e);case 65:return QZ(e);case 71:return UUe(e);case 80:return wT(e,n,!i.raw).replace(li,"");case 81:return BUe(e,n).replace(li,"");case 4108:return VUe(e);case 4126:case 4127:return n==4127?zUe(e):HUe(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+n)}}function Y5(e,t){var r=Je(4),n=Je(4);switch(r.write_shift(4,e==80?31:e),e){case 3:n.write_shift(-4,t);break;case 5:n=Je(8),n.write_shift(8,t,"f");break;case 11:n.write_shift(4,t?1:0);break;case 64:n=LUe(t);break;case 31:case 80:for(n=Je(4+2*(t.length+1)+(t.length%2?0:2)),n.write_shift(4,t.length+1),n.write_shift(0,t,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return Pa([r,n])}function Q5(e,t){var r=e.l,n=e.read_shift(4),a=e.read_shift(4),i=[],o=0,s=0,l=-1,c={};for(o=0;o!=a;++o){var u=e.read_shift(4),f=e.read_shift(4);i[o]=[u,f+r]}i.sort(function(x,b){return x[1]-b[1]});var m={};for(o=0;o!=a;++o){if(e.l!==i[o][1]){var h=!0;if(o>0&&t)switch(t[i[o-1][0]].t){case 2:e.l+2===i[o][1]&&(e.l+=2,h=!1);break;case 80:e.l<=i[o][1]&&(e.l=i[o][1],h=!1);break;case 4108:e.l<=i[o][1]&&(e.l=i[o][1],h=!1);break}if((!t||o==0)&&e.l<=i[o][1]&&(h=!1,e.l=i[o][1]),h)throw new Error("Read Error: Expected address "+i[o][1]+" at "+e.l+" :"+o)}if(t){var p=t[i[o][0]];if(m[p.n]=hb(e,p.t,{raw:!0}),p.p==="version"&&(m[p.n]=String(m[p.n]>>16)+"."+("0000"+String(m[p.n]&65535)).slice(-4)),p.n=="CodePage")switch(m[p.n]){case 0:m[p.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:Fo(s=m[p.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+m[p.n])}}else if(i[o][0]===1){if(s=m.CodePage=hb(e,qR),Fo(s),l!==-1){var g=e.l;e.l=i[l][1],c=X5(e,s),e.l=g}}else if(i[o][0]===0){if(s===0){l=o,e.l=i[o+1][1];continue}c=X5(e,s)}else{var v=c[i[o][0]],y;switch(e[e.l]){case 65:e.l+=4,y=QZ(e);break;case 30:e.l+=4,y=wT(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 31:e.l+=4,y=wT(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,y=e.read_shift(4,"i");break;case 19:e.l+=4,y=e.read_shift(4);break;case 5:e.l+=4,y=e.read_shift(8,"f");break;case 11:e.l+=4,y=Rn(e,4);break;case 64:e.l+=4,y=rn(YR(e));break;default:throw new Error("unparsed value: "+e[e.l])}m[v]=y}}return e.l=r+n,m}var ZZ=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function KUe(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function Z5(e,t,r){var n=Je(8),a=[],i=[],o=8,s=0,l=Je(8),c=Je(8);if(l.write_shift(4,2),l.write_shift(4,1200),c.write_shift(4,1),i.push(l),a.push(c),o+=8+l.length,!t){c=Je(8),c.write_shift(4,0),a.unshift(c);var u=[Je(4)];for(u[0].write_shift(4,e.length),s=0;s-1||VZ.indexOf(e[s][0])>-1)&&e[s][1]!=null){var m=e[s][1],h=0;if(t){h=+t[e[s][0]];var p=r[h];if(p.p=="version"&&typeof m=="string"){var g=m.split(".");m=(+g[0]<<16)+(+g[1]||0)}l=Y5(p.t,m)}else{var v=KUe(m);v==-1&&(v=31,m=String(m)),l=Y5(v,m)}i.push(l),c=Je(8),c.write_shift(4,t?h:2+s),a.push(c),o+=8+l.length}var y=8*(i.length+1);for(s=0;s=12?2:1),a="sbcs-cont",i=co;if(r&&r.biff>=8&&(co=1200),!r||r.biff==8){var o=e.read_shift(1);o&&(a="dbcs-cont")}else r.biff==12&&(a="wstr");r.biff>=2&&r.biff<=5&&(a="cpstr");var s=n?e.read_shift(n,a):"";return co=i,s}function YUe(e){var t=co;co=1200;var r=e.read_shift(2),n=e.read_shift(1),a=n&4,i=n&8,o=1+(n&1),s=0,l,c={};i&&(s=e.read_shift(2)),a&&(l=e.read_shift(4));var u=o==2?"dbcs-cont":"sbcs-cont",f=r===0?"":e.read_shift(r,u);return i&&(e.l+=4*s),a&&(e.l+=l),c.t=f,i||(c.raw=""+c.t+"",c.r=c.t),co=t,c}function QUe(e){var t=e.t||"",r=Je(3+0);r.write_shift(2,t.length),r.write_shift(1,1);var n=Je(2*t.length);n.write_shift(2*t.length,t,"utf16le");var a=[r,n];return Pa(a)}function Id(e,t,r){var n;if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}var a=e.read_shift(1);return a===0?n=e.read_shift(t,"sbcs-cont"):n=e.read_shift(t,"dbcs-cont"),n}function dg(e,t,r){var n=e.read_shift(r&&r.biff==2?1:2);return n===0?(e.l++,""):Id(e,n,r)}function ef(e,t,r){if(r.biff>5)return dg(e,t,r);var n=e.read_shift(1);return n===0?(e.l++,""):e.read_shift(n,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function tJ(e,t,r){return r||(r=Je(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function ZUe(e){var t=e.read_shift(1);e.l++;var r=e.read_shift(2);return e.l+=2,[t,r]}function JUe(e){var t=e.read_shift(4),r=e.l,n=!1;t>24&&(e.l+=t-24,e.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(n=!0),e.l=r);var a=e.read_shift((n?t-24:t)>>1,"utf16le").replace(li,"");return n&&(e.l+=24),a}function eKe(e){for(var t=e.read_shift(2),r="";t-- >0;)r+="../";var n=e.read_shift(0,"lpstr-ansi");if(e.l+=2,e.read_shift(2)!=57005)throw new Error("Bad FileMoniker");var a=e.read_shift(4);if(a===0)return r+n.replace(/\\/g,"/");var i=e.read_shift(4);if(e.read_shift(2)!=3)throw new Error("Bad FileMoniker");var o=e.read_shift(i>>1,"utf16le").replace(li,"");return r+o}function tKe(e,t){var r=e.read_shift(16);switch(r){case"e0c9ea79f9bace118c8200aa004ba90b":return JUe(e);case"0303000000000000c000000000000046":return eKe(e);default:throw new Error("Unsupported Moniker "+r)}}function ky(e){var t=e.read_shift(4),r=t>0?e.read_shift(t,"utf16le").replace(li,""):"";return r}function tL(e,t){t||(t=Je(6+e.length*2)),t.write_shift(4,1+e.length);for(var r=0;r-1?31:23;switch(n.charAt(0)){case"#":i=28;break;case".":i&=-3;break}t.write_shift(4,2),t.write_shift(4,i);var o=[8,6815827,6619237,4849780,83];for(r=0;r-1?n.slice(0,a):n;for(t.write_shift(4,2*(s.length+1)),r=0;r-1?n.slice(a+1):"",t)}else{for(o="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r8?4:2,a=e.read_shift(n),i=e.read_shift(n,"i"),o=e.read_shift(n,"i");return[a,i,o]}function aJ(e){var t=e.read_shift(2),r=GR(e);return[t,r]}function sKe(e,t,r){e.l+=4,t-=4;var n=e.l+t,a=ug(e,t,r),i=e.read_shift(2);if(n-=e.l,i!==n)throw new Error("Malformed AddinUdf: padding = "+n+" != "+i);return e.l+=i,a}function mC(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),a=e.read_shift(2);return{s:{c:n,r:t},e:{c:a,r}}}function iJ(e,t){return t||(t=Je(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function oJ(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(1),a=e.read_shift(1);return{s:{c:n,r:t},e:{c:a,r}}}var lKe=oJ;function sJ(e){e.l+=4;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2);return e.l+=12,[r,t,n]}function cKe(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t}function uKe(e){var t={};return e.l+=4,e.cf=e.read_shift(2),t}function Ya(e){e.l+=2,e.l+=e.read_shift(2)}var dKe={0:Ya,4:Ya,5:Ya,6:Ya,7:uKe,8:Ya,9:Ya,10:Ya,11:Ya,12:Ya,13:cKe,14:Ya,15:Ya,16:Ya,17:Ya,18:Ya,19:Ya,20:Ya,21:sJ};function fKe(e,t){for(var r=e.l+t,n=[];e.l=2&&(r.dt=e.read_shift(2),e.l-=2),r.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+r.BIFFVer)}return e.read_shift(t),r}function QR(e,t,r){var n=1536,a=16;switch(r.bookType){case"biff8":break;case"biff5":n=1280,a=8;break;case"biff4":n=4,a=6;break;case"biff3":n=3,a=6;break;case"biff2":n=2,a=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var i=Je(a);return i.write_shift(2,n),i.write_shift(2,t),a>4&&i.write_shift(2,29282),a>6&&i.write_shift(2,1997),a>8&&(i.write_shift(2,49161),i.write_shift(2,1),i.write_shift(2,1798),i.write_shift(2,0)),i}function mKe(e,t){return t===0||e.read_shift(2),1200}function hKe(e,t,r){if(r.enc)return e.l+=t,"";var n=e.l,a=ef(e,0,r);return e.read_shift(t+n-e.l),a}function pKe(e,t){var r=!t||t.biff==8,n=Je(r?112:54);for(n.write_shift(t.biff==8?2:1,7),r&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(r?0:536870912));n.l=8?2:1,n=Je(8+r*e.name.length);n.write_shift(4,e.pos),n.write_shift(1,e.hs||0),n.write_shift(1,e.dt),n.write_shift(1,e.name.length),t.biff>=8&&n.write_shift(1,1),n.write_shift(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var a=n.slice(0,n.l);return a.l=n.l,a}function xKe(e,t){for(var r=e.l+t,n=e.read_shift(4),a=e.read_shift(4),i=[],o=0;o!=a&&e.l>15),a&=32767);var i={Unsynced:n&1,DyZero:(n&2)>>1,ExAsc:(n&4)>>2,ExDsc:(n&8)>>3};return[i,a]}function $Ke(e){var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(2),a=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2),s=e.read_shift(2),l=e.read_shift(2),c=e.read_shift(2);return{Pos:[t,r],Dim:[n,a],Flags:i,CurTab:o,FirstTab:s,Selected:l,TabRatio:c}}function _Ke(){var e=Je(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function OKe(e,t,r){if(r&&r.biff>=2&&r.biff<5)return{};var n=e.read_shift(2);return{RTL:n&64}}function TKe(e){var t=Je(18),r=1718;return e&&e.RTL&&(r|=64),t.write_shift(2,r),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}function PKe(){}function IKe(e,t,r){var n={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(r&&r.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10;break}return n.name=ug(e,0,r),n}function NKe(e,t){var r=e.name||"Arial",n=t&&t.biff==5,a=n?15+r.length:16+2*r.length,i=Je(a);return i.write_shift(2,(e.sz||12)*20),i.write_shift(4,0),i.write_shift(2,400),i.write_shift(4,0),i.write_shift(2,0),i.write_shift(1,r.length),n||i.write_shift(1,1),i.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le"),i}function kKe(e){var t=dl(e);return t.isst=e.read_shift(4),t}function RKe(e,t,r,n){var a=Je(10);return Nd(e,t,n,a),a.write_shift(4,r),a}function AKe(e,t,r){r.biffguess&&r.biff==2&&(r.biff=5);var n=e.l+t,a=dl(e);r.biff==2&&e.l++;var i=dg(e,n-e.l,r);return a.val=i,a}function MKe(e,t,r,n,a){var i=!a||a.biff==8,o=Je(6+2+ +i+(1+i)*r.length);return Nd(e,t,n,o),o.write_shift(2,r.length),i&&o.write_shift(1,1),o.write_shift((1+i)*r.length,r,i?"utf16le":"sbcs"),o}function DKe(e,t,r){var n=e.read_shift(2),a=ef(e,0,r);return[n,a]}function jKe(e,t,r,n){var a=r&&r.biff==5;n||(n=Je(a?3+t.length:5+2*t.length)),n.write_shift(2,e),n.write_shift(a?1:2,t.length),a||n.write_shift(1,1),n.write_shift((a?1:2)*t.length,t,a?"sbcs":"utf16le");var i=n.length>n.l?n.slice(0,n.l):n;return i.l==null&&(i.l=i.length),i}var FKe=ef;function nL(e,t,r){var n=e.l+t,a=r.biff==8||!r.biff?4:2,i=e.read_shift(a),o=e.read_shift(a),s=e.read_shift(2),l=e.read_shift(2);return e.l=n,{s:{r:i,c:s},e:{r:o,c:l}}}function LKe(e,t){var r=t.biff==8||!t.biff?4:2,n=Je(2*r+6);return n.write_shift(r,e.s.r),n.write_shift(r,e.e.r+1),n.write_shift(2,e.s.c),n.write_shift(2,e.e.c+1),n.write_shift(2,0),n}function BKe(e){var t=e.read_shift(2),r=e.read_shift(2),n=aJ(e);return{r:t,c:r,ixfe:n[0],rknum:n[1]}}function zKe(e,t){for(var r=e.l+t-2,n=e.read_shift(2),a=e.read_shift(2),i=[];e.l>26],n.cellStyles&&(a.alc=i&7,a.fWrap=i>>3&1,a.alcV=i>>4&7,a.fJustLast=i>>7&1,a.trot=i>>8&255,a.cIndent=i>>16&15,a.fShrinkToFit=i>>20&1,a.iReadOrder=i>>22&2,a.fAtrNum=i>>26&1,a.fAtrFnt=i>>27&1,a.fAtrAlc=i>>28&1,a.fAtrBdr=i>>29&1,a.fAtrPat=i>>30&1,a.fAtrProt=i>>31&1,a.dgLeft=o&15,a.dgRight=o>>4&15,a.dgTop=o>>8&15,a.dgBottom=o>>12&15,a.icvLeft=o>>16&127,a.icvRight=o>>23&127,a.grbitDiag=o>>30&3,a.icvTop=s&127,a.icvBottom=s>>7&127,a.icvDiag=s>>14&127,a.dgDiag=s>>21&15,a.icvFore=l&127,a.icvBack=l>>7&127,a.fsxButton=l>>14&1),a}function VKe(e,t,r){var n={};return n.ifnt=e.read_shift(2),n.numFmtId=e.read_shift(2),n.flags=e.read_shift(2),n.fStyle=n.flags>>2&1,t-=6,n.data=WKe(e,t,n.fStyle,r),n}function aL(e,t,r,n){var a=r&&r.biff==5;n||(n=Je(a?16:20)),n.write_shift(2,0),e.style?(n.write_shift(2,e.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,e.numFmtId||0),n.write_shift(2,t<<4));var i=0;return e.numFmtId>0&&a&&(i|=1024),n.write_shift(4,i),n.write_shift(4,0),a||n.write_shift(4,0),n.write_shift(2,0),n}function UKe(e){e.l+=4;var t=[e.read_shift(2),e.read_shift(2)];if(t[0]!==0&&t[0]--,t[1]!==0&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}function KKe(e){var t=Je(8);return t.write_shift(4,0),t.write_shift(2,e[0]?e[0]+1:0),t.write_shift(2,e[1]?e[1]+1:0),t}function iL(e,t,r){var n=dl(e);(r.biff==2||t==9)&&++e.l;var a=XUe(e);return n.val=a,n.t=a===!0||a===!1?"b":"e",n}function GKe(e,t,r,n,a,i){var o=Je(8);return Nd(e,t,n,o),eJ(r,i,o),o}function qKe(e,t,r){r.biffguess&&r.biff==2&&(r.biff=5);var n=dl(e),a=ai(e);return n.val=a,n}function XKe(e,t,r,n){var a=Je(14);return Nd(e,t,n,a),Pd(r,a),a}var oL=iKe;function YKe(e,t,r){var n=e.l+t,a=e.read_shift(2),i=e.read_shift(2);if(r.sbcch=i,i==1025||i==14849)return[i,a];if(i<1||i>255)throw new Error("Unexpected SupBook type: "+i);for(var o=Id(e,i),s=[];n>e.l;)s.push(dg(e));return[i,a,o,s]}function sL(e,t,r){var n=e.read_shift(2),a,i={fBuiltIn:n&1,fWantAdvise:n>>>1&1,fWantPict:n>>>2&1,fOle:n>>>3&1,fOleLink:n>>>4&1,cf:n>>>5&1023,fIcon:n>>>15&1};return r.sbcch===14849&&(a=sKe(e,t-2,r)),i.body=a||e.read_shift(t-2),typeof a=="string"&&(i.Name=a),i}var QKe=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function lL(e,t,r){var n=e.l+t,a=e.read_shift(2),i=e.read_shift(1),o=e.read_shift(1),s=e.read_shift(r&&r.biff==2?1:2),l=0;(!r||r.biff>=5)&&(r.biff!=5&&(e.l+=2),l=e.read_shift(2),r.biff==5&&(e.l+=2),e.l+=4);var c=Id(e,o,r);a&32&&(c=QKe[c.charCodeAt(0)]);var u=n-e.l;r&&r.biff==2&&--u;var f=n==e.l||s===0||!(u>0)?[]:fQe(e,u,r,s);return{chKey:i,Name:c,itab:l,rgce:f}}function lJ(e,t,r){if(r.biff<8)return ZKe(e,t,r);for(var n=[],a=e.l+t,i=e.read_shift(r.biff>8?4:2);i--!==0;)n.push(oKe(e,r.biff>8?12:6,r));if(e.l!=a)throw new Error("Bad ExternSheet: "+e.l+" != "+a);return n}function ZKe(e,t,r){e[e.l+1]==3&&e[e.l]++;var n=ug(e,t,r);return n.charCodeAt(0)==3?n.slice(1):n}function JKe(e,t,r){if(r.biff<8){e.l+=t;return}var n=e.read_shift(2),a=e.read_shift(2),i=Id(e,n,r),o=Id(e,a,r);return[i,o]}function eGe(e,t,r){var n=oJ(e);e.l++;var a=e.read_shift(1);return t-=8,[mQe(e,t,r),a,n]}function cL(e,t,r){var n=lKe(e);switch(r.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[n,uQe(e,t,r)]}function tGe(e){var t=e.read_shift(4)!==0,r=e.read_shift(4)!==0,n=e.read_shift(4);return[t,r,n]}function rGe(e,t,r){if(!(r.biff<8)){var n=e.read_shift(2),a=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2),s=ef(e,0,r);return r.biff<8&&e.read_shift(1),[{r:n,c:a},s,o,i]}}function nGe(e,t,r){return rGe(e,t,r)}function aGe(e,t){for(var r=[],n=e.read_shift(2);n--;)r.push(mC(e));return r}function iGe(e){var t=Je(2+e.length*8);t.write_shift(2,e.length);for(var r=0;r=(u?s:2*s))break}if(a.length!==s&&a.length!==s*2)throw new Error("cchText: "+s+" != "+a.length);return e.l=n+t,{t:a}}catch{return e.l=n+t,{t:a}}}function uGe(e,t){var r=mC(e);e.l+=16;var n=rKe(e,t-24);return[r,n]}function dGe(e){var t=Je(24),r=mn(e[0]);t.write_shift(2,r.r),t.write_shift(2,r.r),t.write_shift(2,r.c),t.write_shift(2,r.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),a=0;a<16;++a)t.write_shift(1,parseInt(n[a],16));return Pa([t,nKe(e[1])])}function fGe(e,t){e.read_shift(2);var r=mC(e),n=e.read_shift((t-10)/2,"dbcs-cont");return n=n.replace(li,""),[r,n]}function mGe(e){var t=e[1].Tooltip,r=Je(10+2*(t.length+1));r.write_shift(2,2048);var n=mn(e[0]);r.write_shift(2,n.r),r.write_shift(2,n.r),r.write_shift(2,n.c),r.write_shift(2,n.c);for(var a=0;a0;)r.push(nJ(e));return r}function gGe(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(nJ(e));return r}function yGe(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t}function cJ(e,t,r){if(!r.cellStyles)return di(e,t);var n=r&&r.biff>=12?4:2,a=e.read_shift(n),i=e.read_shift(n),o=e.read_shift(n),s=e.read_shift(n),l=e.read_shift(2);n==2&&(e.l+=2);var c={s:a,e:i,w:o,ixfe:s,flags:l};return(r.biff>=5||!r.biff)&&(c.level=l>>8&7),c}function xGe(e,t){var r=Je(12);r.write_shift(2,t),r.write_shift(2,t),r.write_shift(2,e.width*256),r.write_shift(2,0);var n=0;return e.hidden&&(n|=1),r.write_shift(1,n),n=e.level||0,r.write_shift(1,n),r.write_shift(2,0),r}function bGe(e,t){var r={};return t<32||(e.l+=16,r.header=ai(e),r.footer=ai(e),e.l+=2),r}function SGe(e,t,r){var n={area:!1};if(r.biff!=5)return e.l+=t,n;var a=e.read_shift(1);return e.l+=3,a&16&&(n.area=!0),n}function wGe(e){for(var t=Je(2*e),r=0;r1048576&&(g=1e6),f!=2&&(v=u.read_shift(2));var y=u.read_shift(2),x=l.codepage||1252;f!=2&&(u.l+=16,u.read_shift(1),u[u.l]!==0&&(x=e[u[u.l]]),u.l+=1,u.l+=2),p&&(u.l+=36);for(var b=[],S={},w=Math.min(u.length,f==2?521:v-10-(h?264:0)),E=p?32:11;u.l0;){if(u[u.l]===42){u.l+=y;continue}for(++u.l,c[++C]=[],O=0,O=0;O!=b.length;++O){var _=u.slice(u.l,u.l+b[O].len);u.l+=b[O].len,Wa(_,0);var P=xr.utils.decode(x,_);switch(b[O].type){case"C":P.trim().length&&(c[C][O]=P.replace(/\s+$/,""));break;case"D":P.length===8?c[C][O]=new Date(+P.slice(0,4),+P.slice(4,6)-1,+P.slice(6,8)):c[C][O]=P;break;case"F":c[C][O]=parseFloat(P.trim());break;case"+":case"I":c[C][O]=p?_.read_shift(-4,"i")^2147483648:_.read_shift(4,"i");break;case"L":switch(P.trim().toUpperCase()){case"Y":case"T":c[C][O]=!0;break;case"N":case"F":c[C][O]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+P+"|")}break;case"M":if(!m)throw new Error("DBF Unexpected MEMO for type "+f.toString(16));c[C][O]="##MEMO##"+(p?parseInt(P.trim(),10):_.read_shift(4));break;case"N":P=P.replace(/\u0000/g,"").trim(),P&&P!="."&&(c[C][O]=+P||0);break;case"@":c[C][O]=new Date(_.read_shift(-8,"f")-621356832e5);break;case"T":c[C][O]=new Date((_.read_shift(4)-2440588)*864e5+_.read_shift(4));break;case"Y":c[C][O]=_.read_shift(4,"i")/1e4+_.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":c[C][O]=-_.read_shift(-8,"f");break;case"B":if(h&&b[O].len==8){c[C][O]=_.read_shift(8,"f");break}case"G":case"P":_.l+=b[O].len;break;case"0":if(b[O].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+b[O].type)}}}if(f!=2&&u.l=0&&Fo(+c.codepage),c.type=="string")throw new Error("Cannot write DBF to JS string");var u=zi(),f=gb(s,{header:1,raw:!0,cellDates:!0}),m=f[0],h=f.slice(1),p=s["!cols"]||[],g=0,v=0,y=0,x=1;for(g=0;g250&&(_=250),O=((p[g]||{}).DBF||{}).type,O=="C"&&p[g].DBF.len>_&&(_=p[g].DBF.len),C=="B"&&O=="N"&&(C="N",E[g]=p[g].DBF.dec,_=p[g].DBF.len),w[g]=C=="C"||O=="N"?_:i[C]||0,x+=w[g],S[g]=C}var I=u.next(32);for(I.write_shift(4,318902576),I.write_shift(4,h.length),I.write_shift(2,296+32*y),I.write_shift(2,x),g=0;g<4;++g)I.write_shift(4,0);for(I.write_shift(4,0|(+t[_d]||3)<<8),g=0,v=0;g":190,"?":191,"{":223},t=new RegExp("\x1BN("+Tn(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),r=function(m,h){var p=e[h];return typeof p=="number"?pT(p):p},n=function(m,h,p){var g=h.charCodeAt(0)-32<<4|p.charCodeAt(0)-48;return g==59?m:pT(g)};e["|"]=254;function a(m,h){switch(h.type){case"base64":return i(ho(m),h);case"binary":return i(m,h);case"buffer":return i(ur&&Buffer.isBuffer(m)?m.toString("binary"):xu(m),h);case"array":return i(Td(m),h)}throw new Error("Unrecognized type "+h.type)}function i(m,h){var p=m.split(/[\n\r]+/),g=-1,v=-1,y=0,x=0,b=[],S=[],w=null,E={},C=[],O=[],_=[],P=0,I;for(+h.codepage>=0&&Fo(+h.codepage);y!==p.length;++y){P=0;var N=p[y].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),D=N.replace(/;;/g,"\0").split(";").map(function(z){return z.replace(/\u0000/g,";")}),k=D[0],R;if(N.length>0)switch(k){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":D[1].charAt(0)=="P"&&S.push(N.slice(3).replace(/;;/g,";"));break;case"C":var A=!1,j=!1,F=!1,M=!1,V=-1,K=-1;for(x=1;x-1&&b[V][K];if(!B||!B[1])throw new Error("SYLK shared formula cannot find base");b[g][v][1]=TJ(B[1],{r:g-V,c:v-K})}break;case"F":var W=0;for(x=1;x0?(C[g].hpt=P,C[g].hpx=A0(P)):P===0&&(C[g].hidden=!0);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+N)}W<1&&(w=null);break;default:if(h&&h.WTF)throw new Error("SYLK bad record "+N)}}return C.length>0&&(E["!rows"]=C),O.length>0&&(E["!cols"]=O),h&&h.sheetRows&&(b=b.slice(0,h.sheetRows)),[b,E]}function o(m,h){var p=a(m,h),g=p[0],v=p[1],y=$m(g,h);return Tn(v).forEach(function(x){y[x]=v[x]}),y}function s(m,h){return bu(o(m,h),h)}function l(m,h,p,g){var v="C;Y"+(p+1)+";X"+(g+1)+";K";switch(m.t){case"n":v+=m.v||0,m.f&&!m.F&&(v+=";E"+n4(m.f,{r:p,c:g}));break;case"b":v+=m.v?"TRUE":"FALSE";break;case"e":v+=m.w||m.v;break;case"d":v+='"'+(m.w||m.v)+'"';break;case"s":v+='"'+m.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return v}function c(m,h){h.forEach(function(p,g){var v="F;W"+(g+1)+" "+(g+1)+" ";p.hidden?v+="0":(typeof p.width=="number"&&!p.wpx&&(p.wpx=Yp(p.width)),typeof p.wpx=="number"&&!p.wch&&(p.wch=Qp(p.wpx)),typeof p.wch=="number"&&(v+=Math.round(p.wch))),v.charAt(v.length-1)!=" "&&m.push(v)})}function u(m,h){h.forEach(function(p,g){var v="F;";p.hidden?v+="M0;":p.hpt?v+="M"+20*p.hpt+";":p.hpx&&(v+="M"+20*Zp(p.hpx)+";"),v.length>2&&m.push(v+"R"+(g+1))})}function f(m,h){var p=["ID;PWXL;N;E"],g=[],v=yr(m["!ref"]),y,x=Array.isArray(m),b=`\r -`;p.push("P;PGeneral"),p.push("F;P0;DG0G8;M255"),m["!cols"]&&c(p,m["!cols"]),m["!rows"]&&u(p,m["!rows"]),p.push("B;Y"+(v.e.r-v.s.r+1)+";X"+(v.e.c-v.s.c+1)+";D"+[v.s.c,v.s.r,v.e.c,v.e.r].join(" "));for(var S=v.s.r;S<=v.e.r;++S)for(var w=v.s.c;w<=v.e.c;++w){var E=Xt({r:S,c:w});y=x?(m[S]||[])[w]:m[E],!(!y||y.v==null&&(!y.f||y.F))&&g.push(l(y,m,S,w))}return p.join(b)+b+g.join(b)+b+"E"+b}return{to_workbook:s,to_sheet:o,from_sheet:f}}(),dJ=function(){function e(i,o){switch(o.type){case"base64":return t(ho(i),o);case"binary":return t(i,o);case"buffer":return t(ur&&Buffer.isBuffer(i)?i.toString("binary"):xu(i),o);case"array":return t(Td(i),o)}throw new Error("Unrecognized type "+o.type)}function t(i,o){for(var s=i.split(` -`),l=-1,c=-1,u=0,f=[];u!==s.length;++u){if(s[u].trim()==="BOT"){f[++l]=[],c=0;continue}if(!(l<0)){var m=s[u].trim().split(","),h=m[0],p=m[1];++u;for(var g=s[u]||"";(g.match(/["]/g)||[]).length&1&&u=0&&p[g].length===0;)--g;for(var v=10,y=0,x=0;x<=g;++x)y=p[x].indexOf(" "),y==-1?y=p[x].length:y++,v=Math.max(v,y);for(x=0;x<=g;++x){h[x]=[];var b=0;for(e(p[x].slice(0,v).trim(),h,x,b,m),b=1;b<=(p[x].length-v)/10+1;++b)e(p[x].slice(v+(b-1)*10,v+b*10).trim(),h,x,b,m)}return m.sheetRows&&(h=h.slice(0,m.sheetRows)),h}var r={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function a(u){for(var f={},m=!1,h=0,p=0;h0&&P(),p["!ref"]=ir(g),p}function o(u,f){return!(f&&f.PRN)||f.FS||u.slice(0,4)=="sep="||u.indexOf(" ")>=0||u.indexOf(",")>=0||u.indexOf(";")>=0?i(u,f):$m(t(u,f),f)}function s(u,f){var m="",h=f.type=="string"?[0,0,0,0]:f4(u,f);switch(f.type){case"base64":m=ho(u);break;case"binary":m=u;break;case"buffer":f.codepage==65001?m=u.toString("utf8"):f.codepage&&typeof xr<"u"?m=xr.utils.decode(f.codepage,u):m=ur&&Buffer.isBuffer(u)?u.toString("binary"):xu(u);break;case"array":m=Td(u);break;case"string":m=u;break;default:throw new Error("Unrecognized type "+f.type)}return h[0]==239&&h[1]==187&&h[2]==191?m=Lr(m.slice(3)):f.type!="string"&&f.type!="buffer"&&f.codepage==65001?m=Lr(m):f.type=="binary"&&typeof xr<"u"&&f.codepage&&(m=xr.utils.decode(f.codepage,xr.utils.encode(28591,m))),m.slice(0,19)=="socialcalc:version:"?fJ.to_sheet(f.type=="string"?m:Lr(m),f):o(m,f)}function l(u,f){return bu(s(u,f),f)}function c(u){for(var f=[],m=yr(u["!ref"]),h,p=Array.isArray(u),g=m.s.r;g<=m.e.r;++g){for(var v=[],y=m.s.c;y<=m.e.c;++y){var x=Xt({r:g,c:y});if(h=p?(u[g]||[])[y]:u[x],!h||h.v==null){v.push(" ");continue}for(var b=(h.w||(ll(h),h.w)||"").slice(0,10);b.length<10;)b+=" ";v.push(b+(y===0?" ":""))}f.push(v.join(""))}return f.join(` -`)}return{to_workbook:l,to_sheet:s,from_sheet:c}}();function DGe(e,t){var r=t||{},n=!!r.WTF;r.WTF=!0;try{var a=uJ.to_workbook(e,r);return r.WTF=n,a}catch(i){if(r.WTF=n,!i.message.match(/SYLK bad record ID/)&&n)throw i;return R0.to_workbook(e,t)}}var ad=function(){function e(L,B,W){if(L){Wa(L,L.l||0);for(var z=W.Enum||V;L.l=16&&L[14]==5&&L[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(L[2]==2)W.Enum=V,e(L,function(ne,he,ye){switch(ye){case 0:W.vers=ne,ne>=4096&&(W.qpro=!0);break;case 6:H=ne;break;case 204:ne&&(X=ne);break;case 222:X=ne;break;case 15:case 51:W.qpro||(ne[1].v=ne[1].v.slice(1));case 13:case 14:case 16:ye==14&&(ne[2]&112)==112&&(ne[2]&15)>1&&(ne[2]&15)<15&&(ne[1].z=W.dateNF||Kt[14],W.cellDates&&(ne[1].t="d",ne[1].v=dC(ne[1].v))),W.qpro&&ne[3]>Y&&(z["!ref"]=ir(H),G[U]=z,Q.push(U),z=W.dense?[]:{},H={s:{r:0,c:0},e:{r:0,c:0}},Y=ne[3],U=X||"Sheet"+(Y+1),X="");var xe=W.dense?(z[ne[0].r]||[])[ne[0].c]:z[Xt(ne[0])];if(xe){xe.t=ne[1].t,xe.v=ne[1].v,ne[1].z!=null&&(xe.z=ne[1].z),ne[1].f!=null&&(xe.f=ne[1].f);break}W.dense?(z[ne[0].r]||(z[ne[0].r]=[]),z[ne[0].r][ne[0].c]=ne[1]):z[Xt(ne[0])]=ne[1];break}},W);else if(L[2]==26||L[2]==14)W.Enum=K,L[2]==14&&(W.qpro=!0,L.l=0),e(L,function(ne,he,ye){switch(ye){case 204:U=ne;break;case 22:ne[1].v=ne[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(ne[3]>Y&&(z["!ref"]=ir(H),G[U]=z,Q.push(U),z=W.dense?[]:{},H={s:{r:0,c:0},e:{r:0,c:0}},Y=ne[3],U="Sheet"+(Y+1)),fe>0&&ne[0].r>=fe)break;W.dense?(z[ne[0].r]||(z[ne[0].r]=[]),z[ne[0].r][ne[0].c]=ne[1]):z[Xt(ne[0])]=ne[1],H.e.c=0&&Fo(+W.codepage),W.type=="string")throw new Error("Cannot write WK1 to JS string");var z=zi(),U=yr(L["!ref"]),X=Array.isArray(L),Y=[];Et(z,0,i(1030)),Et(z,6,l(U));for(var G=Math.min(U.e.r,8191),Q=U.s.r;Q<=G;++Q)for(var ee=_n(Q),H=U.s.c;H<=U.e.c;++H){Q===U.s.r&&(Y[H]=tn(H));var fe=Y[H]+ee,te=X?(L[Q]||[])[H]:L[fe];if(!(!te||te.t=="z"))if(te.t=="n")(te.v|0)==te.v&&te.v>=-32768&&te.v<=32767?Et(z,13,h(Q,H,te.v)):Et(z,14,g(Q,H,te.v));else{var re=ll(te);Et(z,15,f(Q,H,re.slice(0,239)))}}return Et(z,1),z.end()}function a(L,B){var W=B||{};if(+W.codepage>=0&&Fo(+W.codepage),W.type=="string")throw new Error("Cannot write WK3 to JS string");var z=zi();Et(z,0,o(L));for(var U=0,X=0;U8191&&(W=8191),B.write_shift(2,W),B.write_shift(1,U),B.write_shift(1,z),B.write_shift(2,0),B.write_shift(2,0),B.write_shift(1,1),B.write_shift(1,2),B.write_shift(4,0),B.write_shift(4,0),B}function s(L,B,W){var z={s:{c:0,r:0},e:{c:0,r:0}};return B==8&&W.qpro?(z.s.c=L.read_shift(1),L.l++,z.s.r=L.read_shift(2),z.e.c=L.read_shift(1),L.l++,z.e.r=L.read_shift(2),z):(z.s.c=L.read_shift(2),z.s.r=L.read_shift(2),B==12&&W.qpro&&(L.l+=2),z.e.c=L.read_shift(2),z.e.r=L.read_shift(2),B==12&&W.qpro&&(L.l+=2),z.s.c==65535&&(z.s.c=z.e.c=z.s.r=z.e.r=0),z)}function l(L){var B=Je(8);return B.write_shift(2,L.s.c),B.write_shift(2,L.s.r),B.write_shift(2,L.e.c),B.write_shift(2,L.e.r),B}function c(L,B,W){var z=[{c:0,r:0},{t:"n",v:0},0,0];return W.qpro&&W.vers!=20768?(z[0].c=L.read_shift(1),z[3]=L.read_shift(1),z[0].r=L.read_shift(2),L.l+=2):(z[2]=L.read_shift(1),z[0].c=L.read_shift(2),z[0].r=L.read_shift(2)),z}function u(L,B,W){var z=L.l+B,U=c(L,B,W);if(U[1].t="s",W.vers==20768){L.l++;var X=L.read_shift(1);return U[1].v=L.read_shift(X,"utf8"),U}return W.qpro&&L.l++,U[1].v=L.read_shift(z-L.l,"cstr"),U}function f(L,B,W){var z=Je(7+W.length);z.write_shift(1,255),z.write_shift(2,B),z.write_shift(2,L),z.write_shift(1,39);for(var U=0;U=128?95:X)}return z.write_shift(1,0),z}function m(L,B,W){var z=c(L,B,W);return z[1].v=L.read_shift(2,"i"),z}function h(L,B,W){var z=Je(7);return z.write_shift(1,255),z.write_shift(2,B),z.write_shift(2,L),z.write_shift(2,W,"i"),z}function p(L,B,W){var z=c(L,B,W);return z[1].v=L.read_shift(8,"f"),z}function g(L,B,W){var z=Je(13);return z.write_shift(1,255),z.write_shift(2,B),z.write_shift(2,L),z.write_shift(8,W,"f"),z}function v(L,B,W){var z=L.l+B,U=c(L,B,W);if(U[1].v=L.read_shift(8,"f"),W.qpro)L.l=z;else{var X=L.read_shift(2);S(L.slice(L.l,L.l+X),U),L.l+=X}return U}function y(L,B,W){var z=B&32768;return B&=-32769,B=(z?L:0)+(B>=8192?B-16384:B),(z?"":"$")+(W?tn(B):_n(B))}var x={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},b=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function S(L,B){Wa(L,0);for(var W=[],z=0,U="",X="",Y="",G="";L.lW.length){console.error("WK1 bad formula parse 0x"+Q.toString(16)+":|"+W.join("|")+"|");return}var te=W.slice(-z);W.length-=z,W.push(x[Q][0]+"("+te.join(",")+")")}else return Q<=7?console.error("WK1 invalid opcode "+Q.toString(16)):Q<=24?console.error("WK1 unsupported op "+Q.toString(16)):Q<=30?console.error("WK1 invalid opcode "+Q.toString(16)):Q<=115?console.error("WK1 unsupported function opcode "+Q.toString(16)):console.error("WK1 unrecognized opcode "+Q.toString(16))}}W.length==1?B[1].f=""+W[0]:console.error("WK1 bad formula parse |"+W.join("|")+"|")}function w(L){var B=[{c:0,r:0},{t:"n",v:0},0];return B[0].r=L.read_shift(2),B[3]=L[L.l++],B[0].c=L[L.l++],B}function E(L,B){var W=w(L);return W[1].t="s",W[1].v=L.read_shift(B-4,"cstr"),W}function C(L,B,W,z){var U=Je(6+z.length);U.write_shift(2,L),U.write_shift(1,W),U.write_shift(1,B),U.write_shift(1,39);for(var X=0;X=128?95:Y)}return U.write_shift(1,0),U}function O(L,B){var W=w(L);W[1].v=L.read_shift(2);var z=W[1].v>>1;if(W[1].v&1)switch(z&7){case 0:z=(z>>3)*5e3;break;case 1:z=(z>>3)*500;break;case 2:z=(z>>3)/20;break;case 3:z=(z>>3)/200;break;case 4:z=(z>>3)/2e3;break;case 5:z=(z>>3)/2e4;break;case 6:z=(z>>3)/16;break;case 7:z=(z>>3)/64;break}return W[1].v=z,W}function _(L,B){var W=w(L),z=L.read_shift(4),U=L.read_shift(4),X=L.read_shift(2);if(X==65535)return z===0&&U===3221225472?(W[1].t="e",W[1].v=15):z===0&&U===3489660928?(W[1].t="e",W[1].v=42):W[1].v=0,W;var Y=X&32768;return X=(X&32767)-16446,W[1].v=(1-Y*2)*(U*Math.pow(2,X+32)+z*Math.pow(2,X)),W}function P(L,B,W,z){var U=Je(14);if(U.write_shift(2,L),U.write_shift(1,W),U.write_shift(1,B),z==0)return U.write_shift(4,0),U.write_shift(4,0),U.write_shift(2,65535),U;var X=0,Y=0,G=0,Q=0;return z<0&&(X=1,z=-z),Y=Math.log2(z)|0,z/=Math.pow(2,Y-31),Q=z>>>0,Q&2147483648||(z/=2,++Y,Q=z>>>0),z-=Q,Q|=2147483648,Q>>>=0,z*=Math.pow(2,32),G=z>>>0,U.write_shift(4,G),U.write_shift(4,Q),Y+=16383+(X?32768:0),U.write_shift(2,Y),U}function I(L,B){var W=_(L);return L.l+=B-14,W}function N(L,B){var W=w(L),z=L.read_shift(4);return W[1].v=z>>6,W}function D(L,B){var W=w(L),z=L.read_shift(8,"f");return W[1].v=z,W}function k(L,B){var W=D(L);return L.l+=B-10,W}function R(L,B){return L[L.l+B-1]==0?L.read_shift(B,"cstr"):""}function A(L,B){var W=L[L.l++];W>B-1&&(W=B-1);for(var z="";z.length127?95:U}return W[W.l++]=0,W}var V={0:{n:"BOF",f:qn},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:s},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:m},14:{n:"NUMBER",f:p},15:{n:"LABEL",f:u},16:{n:"FORMULA",f:v},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:u},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:R},222:{n:"SHEETNAMELP",f:A},65535:{n:""}},K={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:E},23:{n:"NUMBER17",f:_},24:{n:"NUMBER18",f:O},25:{n:"FORMULA19",f:I},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:F},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:N},38:{n:"??"},39:{n:"NUMBER27",f:D},40:{n:"FORMULA28",f:k},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:R},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:j},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:a,to_workbook:t}}();function jGe(e){var t={},r=e.match(mi),n=0,a=!1;if(r)for(;n!=r.length;++n){var i=Qt(r[n]);switch(i[0].replace(/\w*:/g,"")){case"":case"":t.shadow=1;break;case"":break;case"":case"":t.outline=1;break;case"":break;case"":case"":t.strike=1;break;case"":break;case"":case"":t.u=1;break;case"":break;case"":case"":t.b=1;break;case"":break;case"":case"":t.i=1;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"
":break;case"":a=!1;break;default:if(i[0].charCodeAt(1)!==47&&!a)throw new Error("Unrecognized rich format "+i[0])}}return t}var FGe=function(){var e=Up("t"),t=Up("rPr");function r(i){var o=i.match(e);if(!o)return{t:"s",v:""};var s={t:"s",v:Cr(o[1])},l=i.match(t);return l&&(s.s=jGe(l[1])),s}var n=/<(?:\w+:)?r>/g,a=/<\/(?:\w+:)?r>/;return function(o){return o.replace(n,"").split(a).map(r).filter(function(s){return s.v})}}(),LGe=function(){var t=/(\r\n|\n)/g;function r(a,i,o){var s=[];a.u&&s.push("text-decoration: underline;"),a.uval&&s.push("text-underline-style:"+a.uval+";"),a.sz&&s.push("font-size:"+a.sz+"pt;"),a.outline&&s.push("text-effect: outline;"),a.shadow&&s.push("text-shadow: auto;"),i.push(''),a.b&&(i.push(""),o.push("")),a.i&&(i.push(""),o.push("")),a.strike&&(i.push(""),o.push(""));var l=a.valign||"";return l=="superscript"||l=="super"?l="sup":l=="subscript"&&(l="sub"),l!=""&&(i.push("<"+l+">"),o.push("")),o.push(""),a}function n(a){var i=[[],a.v,[]];return a.v?(a.s&&r(a.s,i[0],i[2]),i[0].join("")+i[1].replace(t,"
")+i[2].join("")):""}return function(i){return i.map(n).join("")}}(),BGe=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,zGe=/<(?:\w+:)?r>/,HGe=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function ZR(e,t){var r=t?t.cellHTML:!0,n={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(n.t=Cr(Lr(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),n.r=Lr(e),r&&(n.h=AR(n.t))):e.match(zGe)&&(n.r=Lr(e),n.t=Cr(Lr((e.replace(HGe,"").match(BGe)||[]).join("").replace(mi,""))),r&&(n.h=LGe(FGe(n.r)))),n):{t:""}}var WGe=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,VGe=/<(?:\w+:)?(?:si|sstItem)>/g,UGe=/<\/(?:\w+:)?(?:si|sstItem)>/;function KGe(e,t){var r=[],n="";if(!e)return r;var a=e.match(WGe);if(a){n=a[2].replace(VGe,"").split(UGe);for(var i=0;i!=n.length;++i){var o=ZR(n[i].trim(),t);o!=null&&(r[r.length]=o)}a=Qt(a[1]),r.Count=a.count,r.Unique=a.uniqueCount}return r}var GGe=/^\s|\s$|[\t\n\r]/;function mJ(e,t){if(!t.bookSST)return"";var r=[Ln];r[r.length]=Ct("sst",null,{xmlns:Xd[0],count:e.Count,uniqueCount:e.Unique});for(var n=0;n!=e.length;++n)if(e[n]!=null){var a=e[n],i="";a.r?i+=a.r:(i+=""),i+="",r[r.length]=i}return r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function qGe(e){return[e.read_shift(4),e.read_shift(4)]}function XGe(e,t){var r=[],n=!1;return Ql(e,function(i,o,s){switch(s){case 159:r.Count=i[0],r.Unique=i[1];break;case 19:r.push(i);break;case 160:return!0;case 35:n=!0;break;case 36:n=!1;break;default:if(o.T,!n||t.WTF)throw new Error("Unexpected record 0x"+s.toString(16))}}),r}function YGe(e,t){return t||(t=Je(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}var QGe=sUe;function ZGe(e){var t=zi();st(t,159,YGe(e));for(var r=0;r=4&&(e.l+=t-4),r}function JGe(e){var t={};return t.id=e.read_shift(0,"lpp4"),t.R=_l(e,4),t.U=_l(e,4),t.W=_l(e,4),t}function eqe(e){for(var t=e.read_shift(4),r=e.l+t-4,n={},a=e.read_shift(4),i=[];a-- >0;)i.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(n.name=e.read_shift(0,"lpp4"),n.comps=i,e.l!=r)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+r);return n}function tqe(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(eqe(e));return t}function rqe(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(e.read_shift(0,"lpp4"));return t}function nqe(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=_l(e,4),t.U=_l(e,4),t.W=_l(e,4),t}function aqe(e){var t=nqe(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),e.read_shift(4)!=4)throw new Error("Bad !Primary record");return t}function pJ(e,t){var r=e.l+t,n={};n.Flags=e.read_shift(4)&63,e.l+=4,n.AlgID=e.read_shift(4);var a=!1;switch(n.AlgID){case 26126:case 26127:case 26128:a=n.Flags==36;break;case 26625:a=n.Flags==4;break;case 0:a=n.Flags==16||n.Flags==4||n.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+n.AlgID}if(!a)throw new Error("Encryption Flags/AlgID mismatch");return n.AlgIDHash=e.read_shift(4),n.KeySize=e.read_shift(4),n.ProviderType=e.read_shift(4),e.l+=8,n.CSPName=e.read_shift(r-e.l>>1,"utf16le"),e.l=r,n}function vJ(e,t){var r={},n=e.l+t;return e.l+=4,r.Salt=e.slice(e.l,e.l+16),e.l+=16,r.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),r.VerifierHash=e.slice(e.l,n),e.l=n,r}function iqe(e){var t=_l(e);switch(t.Minor){case 2:return[t.Minor,oqe(e)];case 3:return[t.Minor,sqe()];case 4:return[t.Minor,lqe(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}function oqe(e){var t=e.read_shift(4);if((t&63)!=36)throw new Error("EncryptionInfo mismatch");var r=e.read_shift(4),n=pJ(e,r),a=vJ(e,e.length-e.l);return{t:"Std",h:n,v:a}}function sqe(){throw new Error("File is password-protected: ECMA-376 Extensible")}function lqe(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var r=e.read_shift(e.length-e.l,"utf8"),n={};return r.replace(mi,function(i){var o=Qt(i);switch(ul(o[0])){case"":break;case"":case"":break;case"":break;case"4||n.Major<2)throw new Error("unrecognized major version code: "+n.Major);r.Flags=e.read_shift(4),t-=4;var a=e.read_shift(4);return t-=4,r.EncryptionHeader=pJ(e,a),t-=a,r.EncryptionVerifier=vJ(e,t),r}function uqe(e){var t={},r=t.EncryptionVersionInfo=_l(e,4);if(r.Major!=1||r.Minor!=1)throw"unrecognized version code "+r.Major+" : "+r.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}function JR(e){var t=0,r,n=hJ(e),a=n.length+1,i,o,s,l,c;for(r=Zc(a),r[0]=n.length,i=1;i!=a;++i)r[i]=n[i-1];for(i=a-1;i>=0;--i)o=r[i],s=t&16384?1:0,l=t<<1&32767,c=s|l,t=c^o;return t^52811}var gJ=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],r=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],n=function(o){return(o/2|o*128)&255},a=function(o,s){return n(o^s)},i=function(o){for(var s=t[o.length-1],l=104,c=o.length-1;c>=0;--c)for(var u=o[c],f=0;f!=7;++f)u&64&&(s^=r[l]),u*=2,--l;return s};return function(o){for(var s=hJ(o),l=i(s),c=s.length,u=Zc(16),f=0;f!=16;++f)u[f]=0;var m,h,p;for((c&1)===1&&(m=l>>8,u[c]=a(e[0],m),--c,m=l&255,h=s[s.length-1],u[c]=a(h,m));c>0;)--c,m=l>>8,u[c]=a(s[c],m),--c,m=l&255,u[c]=a(s[c],m);for(c=15,p=15-s.length;p>0;)m=l>>8,u[c]=a(e[p],m),--c,--p,m=l&255,u[c]=a(s[c],m),--c,--p;return u}}(),dqe=function(e,t,r,n,a){a||(a=t),n||(n=gJ(e));var i,o;for(i=0;i!=t.length;++i)o=t[i],o^=n[r],o=(o>>5|o<<3)&255,a[i]=o,++r;return[a,r,n]},fqe=function(e){var t=0,r=gJ(e);return function(n){var a=dqe("",n,t,r);return t=a[1],a[0]}};function mqe(e,t,r,n){var a={key:qn(e),verificationBytes:qn(e)};return r.password&&(a.verifier=JR(r.password)),n.valid=a.verificationBytes===a.verifier,n.valid&&(n.insitu=fqe(r.password)),a}function hqe(e,t,r){var n=r||{};return n.Info=e.read_shift(2),e.l-=2,n.Info===1?n.Data=uqe(e):n.Data=cqe(e,t),n}function pqe(e,t,r){var n={Type:r.biff>=8?e.read_shift(2):0};return n.Type?hqe(e,t-2,n):mqe(e,r.biff>=8?t:t-2,r,n),n}var yJ=function(){function e(a,i){switch(i.type){case"base64":return t(ho(a),i);case"binary":return t(a,i);case"buffer":return t(ur&&Buffer.isBuffer(a)?a.toString("binary"):xu(a),i);case"array":return t(Td(a),i)}throw new Error("Unrecognized type "+i.type)}function t(a,i){var o=i||{},s=o.dense?[]:{},l=a.match(/\\trowd.*?\\row\b/g);if(!l.length)throw new Error("RTF missing table");var c={s:{c:0,r:0},e:{c:0,r:l.length-1}};return l.forEach(function(u,f){Array.isArray(s)&&(s[f]=[]);for(var m=/\\\w+\b/g,h=0,p,g=-1;p=m.exec(u);){switch(p[0]){case"\\cell":var v=u.slice(h,m.lastIndex-p[0].length);if(v[0]==" "&&(v=v.slice(1)),++g,v.length){var y={v,t:"s"};Array.isArray(s)?s[f][g]=y:s[Xt({r:f,c:g})]=y}break}h=m.lastIndex}g>c.e.c&&(c.e.c=g)}),s["!ref"]=ir(c),s}function r(a,i){return bu(e(a,i),i)}function n(a){for(var i=["{\\rtf1\\ansi"],o=yr(a["!ref"]),s,l=Array.isArray(a),c=o.s.r;c<=o.e.r;++c){i.push("\\trowd\\trautofit1");for(var u=o.s.c;u<=o.e.c;++u)i.push("\\cellx"+(u+1));for(i.push("\\pard\\intbl"),u=o.s.c;u<=o.e.c;++u){var f=Xt({r:c,c:u});s=l?(a[c]||[])[u]:a[f],!(!s||s.v==null&&(!s.f||s.F))&&(i.push(" "+(s.w||(ll(s),s.w))),i.push("\\cell"))}i.push("\\pard\\intbl\\row")}return i.join("")+"}"}return{to_workbook:r,to_sheet:e,from_sheet:n}}();function vqe(e){var t=e.slice(e[0]==="#"?1:0).slice(0,6);return[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]}function Xp(e){for(var t=0,r=1;t!=3;++t)r=r*256+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}function gqe(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,a=Math.max(t,r,n),i=Math.min(t,r,n),o=a-i;if(o===0)return[0,0,t];var s=0,l=0,c=a+i;switch(l=o/(c>1?2-c:c),a){case t:s=((r-n)/o+6)%6;break;case r:s=(n-t)/o+2;break;case n:s=(t-r)/o+4;break}return[s/6,l,c/2]}function yqe(e){var t=e[0],r=e[1],n=e[2],a=r*2*(n<.5?n:1-n),i=n-a/2,o=[i,i,i],s=6*t,l;if(r!==0)switch(s|0){case 0:case 6:l=a*s,o[0]+=a,o[1]+=l;break;case 1:l=a*(2-s),o[0]+=l,o[1]+=a;break;case 2:l=a*(s-2),o[1]+=a,o[2]+=l;break;case 3:l=a*(4-s),o[1]+=l,o[2]+=a;break;case 4:l=a*(s-4),o[2]+=a,o[0]+=l;break;case 5:l=a*(6-s),o[2]+=l,o[0]+=a;break}for(var c=0;c!=3;++c)o[c]=Math.round(o[c]*255);return o}function pb(e,t){if(t===0)return e;var r=gqe(vqe(e));return t<0?r[2]=r[2]*(1+t):r[2]=1-(1-r[2])*(1-t),Xp(yqe(r))}var xJ=6,xqe=15,bqe=1,ri=xJ;function Yp(e){return Math.floor((e+Math.round(128/ri)/256)*ri)}function Qp(e){return Math.floor((e-5)/ri*100+.5)/100}function vb(e){return Math.round((e*ri+5)/ri*256)/256}function ME(e){return vb(Qp(Yp(e)))}function e4(e){var t=Math.abs(e-ME(e)),r=ri;if(t>.005)for(ri=bqe;ri":case"":break;case"":case"":a={},s.diagonalUp&&(a.diagonalUp=Jr(s.diagonalUp)),s.diagonalDown&&(a.diagonalDown=Jr(s.diagonalDown)),t.Borders.push(a);break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":break;case"":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+s[0]+" in borders")}})}function Eqe(e,t,r,n){t.Fills=[];var a={},i=!1;(e[0].match(mi)||[]).forEach(function(o){var s=Qt(o);switch(ul(s[0])){case"":case"":break;case"":case"":a={},t.Fills.push(a);break;case"":break;case"":break;case"":t.Fills.push(a),a={};break;case"":s.patternType&&(a.patternType=s.patternType);break;case"":case"":break;case"":case"":break;case"":case"":break;case"":break;case"":break;case"":break;case"":break;case"":case"":break;case"":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+s[0]+" in fills")}})}function $qe(e,t,r,n){t.Fonts=[];var a={},i=!1;(e[0].match(mi)||[]).forEach(function(o){var s=Qt(o);switch(ul(s[0])){case"":case"":break;case"":break;case"
":case"":t.Fonts.push(a),a={};break;case"":case"":break;case"":a.bold=1;break;case"":a.italic=1;break;case"":a.underline=1;break;case"":a.strike=1;break;case"":a.outline=1;break;case"":a.shadow=1;break;case"":a.condense=1;break;case"":a.extend=1;break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":i=!1;break;case"":case"":break;case"":i=!1;break;default:if(n&&n.WTF&&!i)throw new Error("unrecognized "+s[0]+" in fonts")}})}function _qe(e,t,r){t.NumberFmt=[];for(var n=Tn(Kt),a=0;a":case"":case"":break;case"0){if(l>392){for(l=392;l>60&&t.NumberFmt[l]!=null;--l);t.NumberFmt[l]=s}el(s,l)}}break;case"":break;default:if(r.WTF)throw new Error("unrecognized "+o[0]+" in numFmts")}}}function Oqe(e){var t=[""];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(var n=r[0];n<=r[1];++n)e[n]!=null&&(t[t.length]=Ct("numFmt",null,{numFmtId:n,formatCode:Mr(e[n])}))}),t.length===1?"":(t[t.length]="",t[0]=Ct("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}var Ay=["numFmtId","fillId","fontId","borderId","xfId"],My=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function Tqe(e,t,r){t.CellXf=[];var n,a=!1;(e[0].match(mi)||[]).forEach(function(i){var o=Qt(i),s=0;switch(ul(o[0])){case"":case"":case"":break;case"":for(n=o,delete n[0],s=0;s392){for(s=392;s>60;--s)if(t.NumberFmt[n.numFmtId]==t.NumberFmt[s]){n.numFmtId=s;break}}t.CellXf.push(n);break;case"":break;case"":var l={};o.vertical&&(l.vertical=o.vertical),o.horizontal&&(l.horizontal=o.horizontal),o.textRotation!=null&&(l.textRotation=o.textRotation),o.indent&&(l.indent=o.indent),o.wrapText&&(l.wrapText=Jr(o.wrapText)),n.alignment=l;break;case"":break;case"":case"":break;case"":a=!1;break;case"":case"":break;case"":a=!1;break;default:if(r&&r.WTF&&!a)throw new Error("unrecognized "+o[0]+" in cellXfs")}})}function Pqe(e){var t=[];return t[t.length]=Ct("cellXfs",null),e.forEach(function(r){t[t.length]=Ct("xf",null,r)}),t[t.length]="",t.length===2?"":(t[0]=Ct("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}var Iqe=function(){var t=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,r=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,n=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,a=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,i=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(s,l,c){var u={};if(!s)return u;s=s.replace(//mg,"").replace(//gm,"");var f;return(f=s.match(t))&&_qe(f,u,c),(f=s.match(a))&&$qe(f,u,l,c),(f=s.match(n))&&Eqe(f,u,l,c),(f=s.match(i))&&Cqe(f,u,l,c),(f=s.match(r))&&Tqe(f,u,c),u}}();function SJ(e,t){var r=[Ln,Ct("styleSheet",null,{xmlns:Xd[0],"xmlns:vt":da.vt})],n;return e.SSF&&(n=Oqe(e.SSF))!=null&&(r[r.length]=n),r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',(n=Pqe(t.cellXfs))&&(r[r.length]=n),r[r.length]='',r[r.length]='',r[r.length]='',r.length>2&&(r[r.length]="",r[1]=r[1].replace("/>",">")),r.join("")}function Nqe(e,t){var r=e.read_shift(2),n=ci(e);return[r,n]}function kqe(e,t,r){r||(r=Je(6+4*t.length)),r.write_shift(2,e),Na(t,r);var n=r.length>r.l?r.slice(0,r.l):r;return r.l==null&&(r.l=r.length),n}function Rqe(e,t,r){var n={};n.sz=e.read_shift(2)/20;var a=hUe(e);a.fItalic&&(n.italic=1),a.fCondense&&(n.condense=1),a.fExtend&&(n.extend=1),a.fShadow&&(n.shadow=1),a.fOutline&&(n.outline=1),a.fStrikeout&&(n.strike=1);var i=e.read_shift(2);switch(i===700&&(n.bold=1),e.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var o=e.read_shift(1);o!=0&&(n.underline=o);var s=e.read_shift(1);s>0&&(n.family=s);var l=e.read_shift(1);switch(l>0&&(n.charset=l),e.l++,n.color=mUe(e),e.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=ci(e),n}function Aqe(e,t){t||(t=Je(25+4*32)),t.write_shift(2,e.sz*20),pUe(e,t),t.write_shift(2,e.bold?700:400);var r=0;e.vertAlign=="superscript"?r=1:e.vertAlign=="subscript"&&(r=2),t.write_shift(2,r),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),fb(e.color,t);var n=0;return e.scheme=="major"&&(n=1),e.scheme=="minor"&&(n=2),t.write_shift(1,n),Na(e.name,t),t.length>t.l?t.slice(0,t.l):t}var Mqe=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],DE,Dqe=di;function uL(e,t){t||(t=Je(4*3+8*7+16*1)),DE||(DE=cC(Mqe));var r=DE[e.patternType];r==null&&(r=40),t.write_shift(4,r);var n=0;if(r!=40)for(fb({auto:1},t),fb({auto:1},t);n<12;++n)t.write_shift(4,0);else{for(;n<4;++n)t.write_shift(4,0);for(;n<12;++n)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function jqe(e,t){var r=e.l+t,n=e.read_shift(2),a=e.read_shift(2);return e.l=r,{ixfe:n,numFmtId:a}}function wJ(e,t,r){r||(r=Je(16)),r.write_shift(2,t||0),r.write_shift(2,e.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);var n=0;return r.write_shift(1,n),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function Jm(e,t){return t||(t=Je(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var Fqe=di;function Lqe(e,t){return t||(t=Je(51)),t.write_shift(1,0),Jm(null,t),Jm(null,t),Jm(null,t),Jm(null,t),Jm(null,t),t.length>t.l?t.slice(0,t.l):t}function Bqe(e,t){return t||(t=Je(12+4*10)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,+e.builtinId),t.write_shift(1,0),db(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}function zqe(e,t,r){var n=Je(2052);return n.write_shift(4,e),db(t,n),db(r,n),n.length>n.l?n.slice(0,n.l):n}function Hqe(e,t,r){var n={};n.NumberFmt=[];for(var a in Kt)n.NumberFmt[a]=Kt[a];n.CellXf=[],n.Fonts=[];var i=[],o=!1;return Ql(e,function(l,c,u){switch(u){case 44:n.NumberFmt[l[0]]=l[1],el(l[1],l[0]);break;case 43:n.Fonts.push(l),l.color.theme!=null&&t&&t.themeElements&&t.themeElements.clrScheme&&(l.color.rgb=pb(t.themeElements.clrScheme[l.color.theme].rgb,l.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:i[i.length-1]==617&&n.CellXf.push(l);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:i.push(u),o=!0;break;case 38:i.pop(),o=!1;break;default:if(c.T>0)i.push(u);else if(c.T<0)i.pop();else if(!o||r.WTF&&i[i.length-1]!=37)throw new Error("Unexpected record 0x"+u.toString(16))}}),n}function Wqe(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&++r}),r!=0&&(st(e,615,Es(r)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var a=n[0];a<=n[1];++a)t[a]!=null&&st(e,44,kqe(a,t[a]))}),st(e,616))}}function Vqe(e){var t=1;st(e,611,Es(t)),st(e,43,Aqe({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),st(e,612)}function Uqe(e){var t=2;st(e,603,Es(t)),st(e,45,uL({patternType:"none"})),st(e,45,uL({patternType:"gray125"})),st(e,604)}function Kqe(e){var t=1;st(e,613,Es(t)),st(e,46,Lqe()),st(e,614)}function Gqe(e){var t=1;st(e,626,Es(t)),st(e,47,wJ({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),st(e,627)}function qqe(e,t){st(e,617,Es(t.length)),t.forEach(function(r){st(e,47,wJ(r,0))}),st(e,618)}function Xqe(e){var t=1;st(e,619,Es(t)),st(e,48,Bqe({xfId:0,builtinId:0,name:"Normal"})),st(e,620)}function Yqe(e){var t=0;st(e,505,Es(t)),st(e,506)}function Qqe(e){var t=0;st(e,508,zqe(t,"TableStyleMedium9","PivotStyleMedium4")),st(e,509)}function Zqe(e,t){var r=zi();return st(r,278),Wqe(r,e.SSF),Vqe(r),Uqe(r),Kqe(r),Gqe(r),qqe(r,t.cellXfs),Xqe(r),Yqe(r),Qqe(r),st(r,279),r.end()}var Jqe=["","","","","","","","","","","",""];function eXe(e,t,r){t.themeElements.clrScheme=[];var n={};(e[0].match(mi)||[]).forEach(function(a){var i=Qt(a);switch(i[0]){case"":break;case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":i[0].charAt(1)==="/"?(t.themeElements.clrScheme[Jqe.indexOf(i[0])]=n,n={}):n.name=i[0].slice(3,i[0].length-1);break;default:if(r&&r.WTF)throw new Error("Unrecognized "+i[0]+" in clrScheme")}})}function tXe(){}function rXe(){}var nXe=/]*)>[\s\S]*<\/a:clrScheme>/,aXe=/]*)>[\s\S]*<\/a:fontScheme>/,iXe=/]*)>[\s\S]*<\/a:fmtScheme>/;function oXe(e,t,r){t.themeElements={};var n;[["clrScheme",nXe,eXe],["fontScheme",aXe,tXe],["fmtScheme",iXe,rXe]].forEach(function(a){if(!(n=e.match(a[1])))throw new Error(a[0]+" not found in themeElements");a[2](n,t,r)})}var sXe=/]*)>[\s\S]*<\/a:themeElements>/;function CJ(e,t){(!e||e.length===0)&&(e=t4());var r,n={};if(!(r=e.match(sXe)))throw new Error("themeElements not found in theme");return oXe(r[0],n,t),n.raw=e,n}function t4(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var r=[Ln];return r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]='',r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]='',r[r.length]="",r[r.length]="",r[r.length]="",r[r.length]="",r.join("")}function lXe(e,t,r){var n=e.l+t,a=e.read_shift(4);if(a!==124226){if(!r.cellStyles){e.l=n;return}var i=e.slice(e.l);e.l=n;var o;try{o=xZ(i,{type:"array"})}catch{return}var s=to(o,"theme/theme/theme1.xml",!0);if(s)return CJ(s,r)}}function cXe(e){return e.read_shift(4)}function uXe(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:e.l+=4;break;case 1:t.xclrValue=dXe(e,4);break;case 2:t.xclrValue=rJ(e);break;case 3:t.xclrValue=cXe(e);break;case 4:e.l+=4;break}return e.l+=8,t}function dXe(e,t){return di(e,t)}function fXe(e,t){return di(e,t)}function mXe(e){var t=e.read_shift(2),r=e.read_shift(2)-4,n=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:n[1]=uXe(e);break;case 6:n[1]=fXe(e,r);break;case 14:case 15:n[1]=e.read_shift(r===1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+r)}return n}function hXe(e,t){var r=e.l+t;e.l+=2;var n=e.read_shift(2);e.l+=2;for(var a=e.read_shift(2),i=[];a-- >0;)i.push(mXe(e,r-e.l));return{ixfe:n,ext:i}}function pXe(e,t){t.forEach(function(r){switch(r[0]){}})}function vXe(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:ci(e)}}function gXe(e){var t=Je(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),Na(e.name,t),t.slice(0,t.l)}function yXe(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}function xXe(e){var t=Je(4+8*e.length);t.write_shift(4,e.length);for(var r=0;r":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":break;case"":i=2;break;case"":i=2;break;case"":case"":case"":break;case"":a=!1;break;case" - - - - - - - - - - - - - - - - - -`),e.join("")}function _Xe(e){var t=[];if(!e)return t;var r=1;return(e.match(mi)||[]).forEach(function(n){var a=Qt(n);switch(a[0]){case"":case"":break;case"]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][r].Target}var Hf=1024;function $J(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),a=[Ct("xml",null,{"xmlns:v":Zi.v,"xmlns:o":Zi.o,"xmlns:x":Zi.x,"xmlns:mv":Zi.mv}).replace(/\/>/,">"),Ct("o:shapelayout",Ct("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),Ct("v:shapetype",[Ct("v:stroke",null,{joinstyle:"miter"}),Ct("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];Hf",c,Ct("v:shadow",null,u),Ct("v:path",null,{"o:connecttype":"none"}),'
','',"","",Va("x:Anchor",[o.c+1,0,o.r+1,0,o.c+3,20,o.r+5,20].join(",")),Va("x:AutoFill","False"),Va("x:Row",String(o.r)),Va("x:Column",String(o.c)),i[1].hidden?"":"","",""])}),a.push(""),a.join("")}function dL(e,t,r,n){var a=Array.isArray(e),i;t.forEach(function(o){var s=mn(o.ref);if(a?(e[s.r]||(e[s.r]=[]),i=e[s.r][s.c]):i=e[o.ref],!i){i={t:"z"},a?e[s.r][s.c]=i:e[o.ref]=i;var l=yr(e["!ref"]||"BDWGO1000001:A1");l.s.r>s.r&&(l.s.r=s.r),l.e.rs.c&&(l.s.c=s.c),l.e.c=0;--f){if(!r&&i.c[f].T)return;r&&!i.c[f].T&&i.c.splice(f,1)}if(r&&n){for(f=0;f/))return[];var r=[],n=[],a=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);a&&a[1]&&a[1].split(/<\/\w*:?author>/).forEach(function(o){if(!(o===""||o.trim()==="")){var s=o.match(/<(?:\w+:)?author[^>]*>(.*)/);s&&r.push(s[1])}});var i=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return i&&i[1]&&i[1].split(/<\/\w*:?comment>/).forEach(function(o){if(!(o===""||o.trim()==="")){var s=o.match(/<(?:\w+:)?comment[^>]*>/);if(s){var l=Qt(s[0]),c={author:l.authorId&&r[l.authorId]||"sheetjsghost",ref:l.ref,guid:l.guid},u=mn(l.ref);if(!(t.sheetRows&&t.sheetRows<=u.r)){var f=o.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),m=!!f&&!!f[1]&&ZR(f[1])||{r:"",t:"",h:""};c.r=m.r,m.r==""&&(m.t=m.h=""),c.t=(m.t||"").replace(/\r\n/g,` -`).replace(/\r/g,` -`),t.cellHTML&&(c.h=m.h),n.push(c)}}}}),n}function _J(e){var t=[Ln,Ct("comments",null,{xmlns:Xd[0]})],r=[];return t.push(""),e.forEach(function(n){n[1].forEach(function(a){var i=Mr(a.a);r.indexOf(i)==-1&&(r.push(i),t.push(""+i+"")),a.T&&a.ID&&r.indexOf("tc="+a.ID)==-1&&(r.push("tc="+a.ID),t.push("tc="+a.ID+""))})}),r.length==0&&(r.push("SheetJ5"),t.push("SheetJ5")),t.push(""),t.push(""),e.forEach(function(n){var a=0,i=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?a=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(l){l.a&&(a=r.indexOf(Mr(l.a))),i.push(l.t||"")}),t.push(''),i.length<=1)t.push(Va("t",Mr(i[0]||"")));else{for(var o=`Comment: - `+i[0]+` -`,s=1;s")}),t.push(""),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function kXe(e,t){var r=[],n=!1,a={},i=0;return e.replace(mi,function(s,l){var c=Qt(s);switch(ul(c[0])){case"":break;case"":a.t!=null&&r.push(a);break;case"":case"":a.t=e.slice(i,l).replace(/\r\n/g,` -`).replace(/\r/g,` -`);break;case"":n=!0;break;case"":n=!1;break;case"":case"
":case"":break;case"":n=!1;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+c[0]+" in threaded comments")}return s}),r}function RXe(e,t,r){var n=[Ln,Ct("ThreadedComments",null,{xmlns:da.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(a){var i="";(a[1]||[]).forEach(function(o,s){if(!o.T){delete o.ID;return}o.a&&t.indexOf(o.a)==-1&&t.push(o.a);var l={ref:a[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};s==0?i=l.id:l.parentId=i,o.ID=l.id,o.a&&(l.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(o.a)).slice(-12)+"}"),n.push(Ct("threadedComment",Va("text",o.t||""),l))})}),n.push(""),n.join("")}function AXe(e,t){var r=[],n=!1;return e.replace(mi,function(i){var o=Qt(i);switch(ul(o[0])){case"":break;case"":break;case"":case"":case"":break;case"":n=!1;break;default:if(!n&&t.WTF)throw new Error("unrecognized "+o[0]+" in threaded comments")}return i}),r}function MXe(e){var t=[Ln,Ct("personList",null,{xmlns:da.TCMNT,"xmlns:x":Xd[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,n){t.push(Ct("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push(""),t.join("")}function DXe(e){var t={};t.iauthor=e.read_shift(4);var r=Jd(e);return t.rfx=r.s,t.ref=Xt(r.s),e.l+=16,t}function jXe(e,t){return t==null&&(t=Je(36)),t.write_shift(4,e[1].iauthor),_m(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var FXe=ci;function LXe(e){return Na(e.slice(0,54))}function BXe(e,t){var r=[],n=[],a={},i=!1;return Ql(e,function(s,l,c){switch(c){case 632:n.push(s);break;case 635:a=s;break;case 637:a.t=s.t,a.h=s.h,a.r=s.r;break;case 636:if(a.author=n[a.iauthor],delete a.iauthor,t.sheetRows&&a.rfx&&t.sheetRows<=a.rfx.r)break;a.t||(a.t=""),delete a.rfx,r.push(a);break;case 3072:break;case 35:i=!0;break;case 36:i=!1;break;case 37:break;case 38:break;default:if(!l.T){if(!i||t.WTF)throw new Error("Unexpected record 0x"+c.toString(16))}}}),r}function zXe(e){var t=zi(),r=[];return st(t,628),st(t,630),e.forEach(function(n){n[1].forEach(function(a){r.indexOf(a.a)>-1||(r.push(a.a.slice(0,54)),st(t,632,LXe(a.a)))})}),st(t,631),st(t,633),e.forEach(function(n){n[1].forEach(function(a){a.iauthor=r.indexOf(a.a);var i={s:mn(n[0]),e:mn(n[0])};st(t,635,jXe([i,a])),a.t&&a.t.length>0&&st(t,637,cUe(a)),st(t,636),delete a.iauthor})}),st(t,634),st(t,629),t.end()}var HXe="application/vnd.ms-office.vbaProject";function WXe(e){var t=Vt.utils.cfb_new({root:"R"});return e.FullPaths.forEach(function(r,n){if(!(r.slice(-1)==="/"||!r.match(/_VBA_PROJECT_CUR/))){var a=r.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");Vt.utils.cfb_add(t,a,e.FileIndex[n].content)}}),Vt.write(t)}function VXe(e,t){t.FullPaths.forEach(function(r,n){if(n!=0){var a=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");a.slice(-1)!=="/"&&Vt.utils.cfb_add(e,a,t.FileIndex[n].content)}})}var OJ=["xlsb","xlsm","xlam","biff8","xla"];function UXe(){return{"!type":"dialog"}}function KXe(){return{"!type":"dialog"}}function GXe(){return{"!type":"macro"}}function qXe(){return{"!type":"macro"}}var i0=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(n,a,i,o){var s=!1,l=!1;i.length==0?l=!0:i.charAt(0)=="["&&(l=!0,i=i.slice(1,-1)),o.length==0?s=!0:o.charAt(0)=="["&&(s=!0,o=o.slice(1,-1));var c=i.length>0?parseInt(i,10)|0:0,u=o.length>0?parseInt(o,10)|0:0;return s?u+=t.c:--u,l?c+=t.r:--c,a+(s?"":"$")+tn(u)+(l?"":"$")+_n(c)}return function(a,i){return t=i,a.replace(e,r)}}(),r4=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,n4=function(){return function(t,r){return t.replace(r4,function(n,a,i,o,s,l){var c=WR(o)-(i?0:r.c),u=HR(l)-(s?0:r.r),f=u==0?"":s?u+1:"["+u+"]",m=c==0?"":i?c+1:"["+c+"]";return a+"R"+f+"C"+m})}}();function TJ(e,t){return e.replace(r4,function(r,n,a,i,o,s){return n+(a=="$"?a+i:tn(WR(i)+t.c))+(o=="$"?o+s:_n(HR(s)+t.r))})}function XXe(e,t,r){var n=$i(t),a=n.s,i=mn(r),o={r:i.r-a.r,c:i.c-a.c};return TJ(e,o)}function YXe(e){return e.length!=1}function fL(e){return e.replace(/_xlfn\./g,"")}function Un(e){e.l+=1}function eu(e,t){var r=e.read_shift(t==1?1:2);return[r&16383,r>>14&1,r>>15&1]}function PJ(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return IJ(e);r.biff==12&&(n=4)}var a=e.read_shift(n),i=e.read_shift(n),o=eu(e,2),s=eu(e,2);return{s:{r:a,c:o[0],cRel:o[1],rRel:o[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function IJ(e){var t=eu(e,2),r=eu(e,2),n=e.read_shift(1),a=e.read_shift(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:a,cRel:r[1],rRel:r[2]}}}function QXe(e,t,r){if(r.biff<8)return IJ(e);var n=e.read_shift(r.biff==12?4:2),a=e.read_shift(r.biff==12?4:2),i=eu(e,2),o=eu(e,2);return{s:{r:n,c:i[0],cRel:i[1],rRel:i[2]},e:{r:a,c:o[0],cRel:o[1],rRel:o[2]}}}function NJ(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return ZXe(e);var n=e.read_shift(r&&r.biff==12?4:2),a=eu(e,2);return{r:n,c:a[0],cRel:a[1],rRel:a[2]}}function ZXe(e){var t=eu(e,2),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function JXe(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function eYe(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return tYe(e);var a=e.read_shift(n>=12?4:2),i=e.read_shift(2),o=(i&16384)>>14,s=(i&32768)>>15;if(i&=16383,s==1)for(;a>524287;)a-=1048576;if(o==1)for(;i>8191;)i=i-16384;return{r:a,c:i,cRel:o,rRel:s}}function tYe(e){var t=e.read_shift(2),r=e.read_shift(1),n=(t&32768)>>15,a=(t&16384)>>14;return t&=16383,n==1&&t>=8192&&(t=t-16384),a==1&&r>=128&&(r=r-256),{r:t,c:r,cRel:a,rRel:n}}function rYe(e,t,r){var n=(e[e.l++]&96)>>5,a=PJ(e,r.biff>=2&&r.biff<=5?6:8,r);return[n,a]}function nYe(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2,"i"),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12;break}var o=PJ(e,i,r);return[n,a,o]}function aYe(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[n]}function iYe(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2),i=8;if(r)switch(r.biff){case 5:e.l+=12,i=6;break;case 12:i=12;break}return e.l+=i,[n,a]}function oYe(e,t,r){var n=(e[e.l++]&96)>>5,a=QXe(e,t-1,r);return[n,a]}function sYe(e,t,r){var n=(e[e.l++]&96)>>5;return e.l+=r.biff==2?6:r.biff==12?14:7,[n]}function mL(e){var t=e[e.l+1]&1,r=1;return e.l+=4,[t,r]}function lYe(e,t,r){e.l+=2;for(var n=e.read_shift(r&&r.biff==2?1:2),a=[],i=0;i<=n;++i)a.push(e.read_shift(r&&r.biff==2?1:2));return a}function cYe(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function uYe(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=2,[n,e.read_shift(r&&r.biff==2?1:2)]}function dYe(e){var t=e[e.l+1]&255?1:0;return e.l+=2,[t,e.read_shift(2)]}function fYe(e,t,r){var n=e[e.l+1]&255?1:0;return e.l+=r&&r.biff==2?3:4,[n]}function kJ(e){var t=e.read_shift(1),r=e.read_shift(1);return[t,r]}function mYe(e){return e.read_shift(2),kJ(e)}function hYe(e){return e.read_shift(2),kJ(e)}function pYe(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=NJ(e,0,r);return[n,a]}function vYe(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=eYe(e,0,r);return[n,a]}function gYe(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=e.read_shift(2);r&&r.biff==5&&(e.l+=12);var i=NJ(e,0,r);return[n,a,i]}function yYe(e,t,r){var n=(e[e.l]&96)>>5;e.l+=1;var a=e.read_shift(r&&r.biff<=3?1:2);return[SQe[a],MJ[a],n]}function xYe(e,t,r){var n=e[e.l++],a=e.read_shift(1),i=r&&r.biff<=3?[n==88?-1:0,e.read_shift(1)]:bYe(e);return[a,(i[0]===0?MJ:bQe)[i[1]]]}function bYe(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function SYe(e,t,r){e.l+=r&&r.biff==2?3:4}function wYe(e,t,r){if(e.l++,r&&r.biff==12)return[e.read_shift(4,"i"),0];var n=e.read_shift(2),a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function CYe(e){return e.l++,Zl[e.read_shift(1)]}function EYe(e){return e.l++,e.read_shift(2)}function $Ye(e){return e.l++,e.read_shift(1)!==0}function _Ye(e){return e.l++,ai(e)}function OYe(e,t,r){return e.l++,ug(e,t-1,r)}function TYe(e,t){var r=[e.read_shift(1)];if(t==12)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2;break}switch(r[0]){case 4:r[1]=Rn(e,1)?"TRUE":"FALSE",t!=12&&(e.l+=7);break;case 37:case 16:r[1]=Zl[e[e.l]],e.l+=t==12?4:8;break;case 0:e.l+=8;break;case 1:r[1]=ai(e);break;case 2:r[1]=ef(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function PYe(e,t,r){for(var n=e.read_shift(r.biff==12?4:2),a=[],i=0;i!=n;++i)a.push((r.biff==12?Jd:mC)(e));return a}function IYe(e,t,r){var n=0,a=0;r.biff==12?(n=e.read_shift(4),a=e.read_shift(4)):(a=1+e.read_shift(1),n=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--n,--a==0&&(a=256));for(var i=0,o=[];i!=n&&(o[i]=[]);++i)for(var s=0;s!=a;++s)o[i][s]=TYe(e,r.biff);return o}function NYe(e,t,r){var n=e.read_shift(1)>>>5&3,a=!r||r.biff>=8?4:2,i=e.read_shift(a);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[n,0,i]}function kYe(e,t,r){if(r.biff==5)return RYe(e);var n=e.read_shift(1)>>>5&3,a=e.read_shift(2),i=e.read_shift(4);return[n,a,i]}function RYe(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var n=e.read_shift(2);return e.l+=12,[t,r,n]}function AYe(e,t,r){var n=e.read_shift(1)>>>5&3;e.l+=r&&r.biff==2?3:4;var a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function MYe(e,t,r){var n=e.read_shift(1)>>>5&3,a=e.read_shift(r&&r.biff==2?1:2);return[n,a]}function DYe(e,t,r){var n=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,r.biff==12&&(e.l+=2),[n]}function jYe(e,t,r){var n=(e[e.l++]&96)>>5,a=e.read_shift(2),i=4;if(r)switch(r.biff){case 5:i=15;break;case 12:i=6;break}return e.l+=i,[n,a]}var FYe=di,LYe=di,BYe=di;function fg(e,t,r){return e.l+=2,[JXe(e)]}function a4(e){return e.l+=6,[]}var zYe=fg,HYe=a4,WYe=a4,VYe=fg;function RJ(e){return e.l+=2,[qn(e),e.read_shift(2)&1]}var UYe=fg,KYe=RJ,GYe=a4,qYe=fg,XYe=fg,YYe=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function QYe(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),n=e.read_shift(4),a=e.read_shift(2),i=e.read_shift(2),o=YYe[r>>2&31];return{ixti:t,coltype:r&3,rt:o,idx:n,c:a,C:i}}function ZYe(e){return e.l+=2,[e.read_shift(4)]}function JYe(e,t,r){return e.l+=5,e.l+=2,e.l+=r.biff==2?1:4,["PTGSHEET"]}function eQe(e,t,r){return e.l+=r.biff==2?4:5,["PTGENDSHEET"]}function tQe(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function rQe(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2);return[t,r]}function nQe(e){return e.l+=4,[0,0]}var hL={1:{n:"PtgExp",f:wYe},2:{n:"PtgTbl",f:BYe},3:{n:"PtgAdd",f:Un},4:{n:"PtgSub",f:Un},5:{n:"PtgMul",f:Un},6:{n:"PtgDiv",f:Un},7:{n:"PtgPower",f:Un},8:{n:"PtgConcat",f:Un},9:{n:"PtgLt",f:Un},10:{n:"PtgLe",f:Un},11:{n:"PtgEq",f:Un},12:{n:"PtgGe",f:Un},13:{n:"PtgGt",f:Un},14:{n:"PtgNe",f:Un},15:{n:"PtgIsect",f:Un},16:{n:"PtgUnion",f:Un},17:{n:"PtgRange",f:Un},18:{n:"PtgUplus",f:Un},19:{n:"PtgUminus",f:Un},20:{n:"PtgPercent",f:Un},21:{n:"PtgParen",f:Un},22:{n:"PtgMissArg",f:Un},23:{n:"PtgStr",f:OYe},26:{n:"PtgSheet",f:JYe},27:{n:"PtgEndSheet",f:eQe},28:{n:"PtgErr",f:CYe},29:{n:"PtgBool",f:$Ye},30:{n:"PtgInt",f:EYe},31:{n:"PtgNum",f:_Ye},32:{n:"PtgArray",f:sYe},33:{n:"PtgFunc",f:yYe},34:{n:"PtgFuncVar",f:xYe},35:{n:"PtgName",f:NYe},36:{n:"PtgRef",f:pYe},37:{n:"PtgArea",f:rYe},38:{n:"PtgMemArea",f:AYe},39:{n:"PtgMemErr",f:FYe},40:{n:"PtgMemNoMem",f:LYe},41:{n:"PtgMemFunc",f:MYe},42:{n:"PtgRefErr",f:DYe},43:{n:"PtgAreaErr",f:aYe},44:{n:"PtgRefN",f:vYe},45:{n:"PtgAreaN",f:oYe},46:{n:"PtgMemAreaN",f:tQe},47:{n:"PtgMemNoMemN",f:rQe},57:{n:"PtgNameX",f:kYe},58:{n:"PtgRef3d",f:gYe},59:{n:"PtgArea3d",f:nYe},60:{n:"PtgRefErr3d",f:jYe},61:{n:"PtgAreaErr3d",f:iYe},255:{}},aQe={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},iQe={1:{n:"PtgElfLel",f:RJ},2:{n:"PtgElfRw",f:qYe},3:{n:"PtgElfCol",f:zYe},6:{n:"PtgElfRwV",f:XYe},7:{n:"PtgElfColV",f:VYe},10:{n:"PtgElfRadical",f:UYe},11:{n:"PtgElfRadicalS",f:GYe},13:{n:"PtgElfColS",f:HYe},15:{n:"PtgElfColSV",f:WYe},16:{n:"PtgElfRadicalLel",f:KYe},25:{n:"PtgList",f:QYe},29:{n:"PtgSxName",f:ZYe},255:{}},oQe={0:{n:"PtgAttrNoop",f:nQe},1:{n:"PtgAttrSemi",f:fYe},2:{n:"PtgAttrIf",f:uYe},4:{n:"PtgAttrChoose",f:lYe},8:{n:"PtgAttrGoto",f:cYe},16:{n:"PtgAttrSum",f:SYe},32:{n:"PtgAttrBaxcel",f:mL},33:{n:"PtgAttrBaxcel",f:mL},64:{n:"PtgAttrSpace",f:mYe},65:{n:"PtgAttrSpaceSemi",f:hYe},128:{n:"PtgAttrIfError",f:dYe},255:{}};function mg(e,t,r,n){if(n.biff<8)return di(e,t);for(var a=e.l+t,i=[],o=0;o!==r.length;++o)switch(r[o][0]){case"PtgArray":r[o][1]=IYe(e,0,n),i.push(r[o][1]);break;case"PtgMemArea":r[o][2]=PYe(e,r[o][1],n),i.push(r[o][2]);break;case"PtgExp":n&&n.biff==12&&(r[o][1][1]=e.read_shift(4),i.push(r[o][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[o][0]}return t=a-e.l,t!==0&&i.push(di(e,t)),i}function hg(e,t,r){for(var n=e.l+t,a,i,o=[];n!=e.l;)t=n-e.l,i=e[e.l],a=hL[i]||hL[aQe[i]],(i===24||i===25)&&(a=(i===24?iQe:oQe)[e[e.l+1]]),!a||!a.f?di(e,t):o.push([a.n,a.f(e,t,r)]);return o}function sQe(e){for(var t=[],r=0;r=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function cQe(e,t){if(!e&&!(t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function AJ(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var n=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),t==0?"":e.XTI[t-1];if(!n)return"SH33TJSERR1";var a="";if(r.biff>8)switch(e[n[0]][0]){case 357:return a=n[1]==-1?"#REF":e.SheetNames[n[1]],n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 358:return r.SID!=null?e.SheetNames[r.SID]:"SH33TJSSAME"+e[n[0]][0];case 355:default:return"SH33TJSSRC"+e[n[0]][0]}switch(e[n[0]][0][0]){case 1025:return a=n[1]==-1?"#REF":e.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?a:a+":"+e.SheetNames[n[2]];case 14849:return e[n[0]].slice(1).map(function(i){return i.Name}).join(";;");default:return e[n[0]][0][3]?(a=n[1]==-1?"#REF":e[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?a:a+":"+e[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function pL(e,t,r){var n=AJ(e,t,r);return n=="#REF"?n:cQe(n,r)}function ei(e,t,r,n,a){var i=a&&a.biff||8,o={s:{c:0,r:0},e:{c:0,r:0}},s=[],l,c,u,f=0,m=0,h,p="";if(!e[0]||!e[0][0])return"";for(var g=-1,v="",y=0,x=e[0].length;y=0){switch(e[0][g][1][0]){case 0:v=Cn(" ",e[0][g][1][1]);break;case 1:v=Cn("\r",e[0][g][1][1]);break;default:if(v="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][g][1][0])}c=c+v,g=-1}s.push(c+lQe[b[0]]+l);break;case"PtgIsect":l=s.pop(),c=s.pop(),s.push(c+" "+l);break;case"PtgUnion":l=s.pop(),c=s.pop(),s.push(c+","+l);break;case"PtgRange":l=s.pop(),c=s.pop(),s.push(c+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":u=Ah(b[1][1],o,a),s.push(Mh(u,i));break;case"PtgRefN":u=r?Ah(b[1][1],r,a):b[1][1],s.push(Mh(u,i));break;case"PtgRef3d":f=b[1][1],u=Ah(b[1][2],o,a),p=pL(n,f,a),s.push(p+"!"+Mh(u,i));break;case"PtgFunc":case"PtgFuncVar":var S=b[1][0],w=b[1][1];S||(S=0),S&=127;var E=S==0?[]:s.slice(-S);s.length-=S,w==="User"&&(w=E.shift()),s.push(w+"("+E.join(",")+")");break;case"PtgBool":s.push(b[1]?"TRUE":"FALSE");break;case"PtgInt":s.push(b[1]);break;case"PtgNum":s.push(String(b[1]));break;case"PtgStr":s.push('"'+b[1].replace(/"/g,'""')+'"');break;case"PtgErr":s.push(b[1]);break;case"PtgAreaN":h=V5(b[1][1],r?{s:r}:o,a),s.push(kE(h,a));break;case"PtgArea":h=V5(b[1][1],o,a),s.push(kE(h,a));break;case"PtgArea3d":f=b[1][1],h=b[1][2],p=pL(n,f,a),s.push(p+"!"+kE(h,a));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":m=b[1][2];var C=(n.names||[])[m-1]||(n[0]||[])[m],O=C?C.Name:"SH33TJSNAME"+String(m);O&&O.slice(0,6)=="_xlfn."&&!a.xlfn&&(O=O.slice(6)),s.push(O);break;case"PtgNameX":var _=b[1][1];m=b[1][2];var P;if(a.biff<=5)_<0&&(_=-_),n[_]&&(P=n[_][m]);else{var I="";if(((n[_]||[])[0]||[])[0]==14849||(((n[_]||[])[0]||[])[0]==1025?n[_][m]&&n[_][m].itab>0&&(I=n.SheetNames[n[_][m].itab-1]+"!"):I=n.SheetNames[m-1]+"!"),n[_]&&n[_][m])I+=n[_][m].Name;else if(n[0]&&n[0][m])I+=n[0][m].Name;else{var N=(AJ(n,_,a)||"").split(";;");N[m-1]?I=N[m-1]:I+="SH33TJSERRX"}s.push(I);break}P||(P={Name:"SH33TJSERRY"}),s.push(P.Name);break;case"PtgParen":var D="(",k=")";if(g>=0){switch(v="",e[0][g][1][0]){case 2:D=Cn(" ",e[0][g][1][1])+D;break;case 3:D=Cn("\r",e[0][g][1][1])+D;break;case 4:k=Cn(" ",e[0][g][1][1])+k;break;case 5:k=Cn("\r",e[0][g][1][1])+k;break;default:if(a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][g][1][0])}g=-1}s.push(D+s.pop()+k);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":u={c:b[1][1],r:b[1][0]};var R={c:r.c,r:r.r};if(n.sharedf[Xt(u)]){var A=n.sharedf[Xt(u)];s.push(ei(A,o,R,n,a))}else{var j=!1;for(l=0;l!=n.arrayf.length;++l)if(c=n.arrayf[l],!(u.cc[0].e.c)&&!(u.rc[0].e.r)){s.push(ei(c[1],o,R,n,a)),j=!0;break}j||s.push(b[1])}break;case"PtgArray":s.push("{"+sQe(b[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":g=y;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":s.push("");break;case"PtgAreaErr":s.push("#REF!");break;case"PtgAreaErr3d":s.push("#REF!");break;case"PtgList":s.push("Table"+b[1].idx+"[#"+b[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(b));default:throw new Error("Unrecognized Formula Token: "+String(b))}var F=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(a.biff!=3&&g>=0&&F.indexOf(e[0][y][0])==-1){b=e[0][g];var M=!0;switch(b[1][0]){case 4:M=!1;case 0:v=Cn(" ",b[1][1]);break;case 5:M=!1;case 1:v=Cn("\r",b[1][1]);break;default:if(v="",a.WTF)throw new Error("Unexpected PtgAttrSpaceType "+b[1][0])}s.push((M?v:"")+s.pop()+(M?"":v)),g=-1}}if(s.length>1&&a.WTF)throw new Error("bad formula stack");return s[0]}function uQe(e,t,r){var n=e.l+t,a=r.biff==2?1:2,i,o=e.read_shift(a);if(o==65535)return[[],di(e,t-2)];var s=hg(e,o,r);return t!==o+a&&(i=mg(e,t-o-a,s,r)),e.l=n,[s,i]}function dQe(e,t,r){var n=e.l+t,a=r.biff==2?1:2,i,o=e.read_shift(a);if(o==65535)return[[],di(e,t-2)];var s=hg(e,o,r);return t!==o+a&&(i=mg(e,t-o-a,s,r)),e.l=n,[s,i]}function fQe(e,t,r,n){var a=e.l+t,i=hg(e,n,r),o;return a!==e.l&&(o=mg(e,a-e.l,i,r)),[i,o]}function mQe(e,t,r){var n=e.l+t,a,i=e.read_shift(2),o=hg(e,i,r);return i==65535?[[],di(e,t-2)]:(t!==i+2&&(a=mg(e,n-i-2,o,r)),[o,a])}function hQe(e){var t;if(Sl(e,e.l+6)!==65535)return[ai(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=e[e.l+2]===1,e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}function pQe(e){if(e==null){var t=Je(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}else if(typeof e=="number")return Pd(e);return Pd(0)}function jE(e,t,r){var n=e.l+t,a=dl(e);r.biff==2&&++e.l;var i=hQe(e),o=e.read_shift(1);r.biff!=2&&(e.read_shift(1),r.biff>=5&&e.read_shift(4));var s=dQe(e,n-e.l,r);return{cell:a,val:i[0],formula:s,shared:o>>3&1,tt:i[1]}}function vQe(e,t,r,n,a){var i=Nd(t,r,a),o=pQe(e.v),s=Je(6),l=33;s.write_shift(2,l),s.write_shift(4,0);for(var c=Je(e.bf.length),u=0;u0?mg(e,i,a,r):null;return[a,o]}var gQe=hC,pC=hC,yQe=hC,xQe=hC,bQe={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},MJ={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},SQe={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function vL(e){return e.slice(0,3)=="of:"&&(e=e.slice(3)),e.charCodeAt(0)==61&&(e=e.slice(1),e.charCodeAt(0)==61&&(e=e.slice(1))),e=e.replace(/COM\.MICROSOFT\./g,""),e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(t,r){return r.replace(/\./g,"")}),e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1"),e.replace(/[;~]/g,",").replace(/\|/g,";")}function wQe(e){var t="of:="+e.replace(r4,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return t.replace(/;/g,"|").replace(/,/g,";")}function FE(e){var t=e.split(":"),r=t[0].split(".")[0];return[r,t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}function CQe(e){return e.replace(/\./,"!")}var jh={},o0={},Fh=typeof Map<"u";function i4(e,t,r){var n=0,a=e.length;if(r){if(Fh?r.has(t):Object.prototype.hasOwnProperty.call(r,t)){for(var i=Fh?r.get(t):r[t];n-1?(r.width=vb(n),r.customWidth=1):t.width!=null&&(r.width=t.width),t.hidden&&(r.hidden=!0),t.level!=null&&(r.outlineLevel=r.level=t.level),r}function id(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];t=="xlml"&&(r=[1,1,1,1,.5,.5]),e.left==null&&(e.left=r[0]),e.right==null&&(e.right=r[1]),e.top==null&&(e.top=r[2]),e.bottom==null&&(e.bottom=r[3]),e.header==null&&(e.header=r[4]),e.footer==null&&(e.footer=r[5])}}function Su(e,t,r){var n=r.revssf[t.z!=null?t.z:"General"],a=60,i=e.length;if(n==null&&r.ssf){for(;a<392;++a)if(r.ssf[a]==null){el(t.z,a),r.ssf[a]=t.z,r.revssf[t.z]=n=a;break}}for(a=0;a!=i;++a)if(e[a].numFmtId===n)return a;return e[i]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function DJ(e,t,r,n,a,i){try{n.cellNF&&(e.z=Kt[t])}catch(s){if(n.WTF)throw s}if(!(e.t==="z"&&!n.cellStyles)){if(e.t==="d"&&typeof e.v=="string"&&(e.v=rn(e.v)),(!n||n.cellText!==!1)&&e.t!=="z")try{if(Kt[t]==null&&el(bVe[t]||"General",t),e.t==="e")e.w=e.w||Zl[e.v];else if(t===0)if(e.t==="n")(e.v|0)===e.v?e.w=e.v.toString(10):e.w=Vp(e.v);else if(e.t==="d"){var o=ya(e.v);(o|0)===o?e.w=o.toString(10):e.w=Vp(o)}else{if(e.v===void 0)return"";e.w=Od(e.v,o0)}else e.t==="d"?e.w=po(t,ya(e.v),o0):e.w=po(t,e.v,o0)}catch(s){if(n.WTF)throw s}if(n.cellStyles&&r!=null)try{e.s=i.Fills[r],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=pb(a.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),n.WTF&&(e.s.fgColor.raw_rgb=a.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=pb(a.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),n.WTF&&(e.s.bgColor.raw_rgb=a.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(s){if(n.WTF&&i.Fills)throw s}}}function EQe(e,t,r){if(e&&e["!ref"]){var n=yr(e["!ref"]);if(n.e.c=0&&r.s.c>=0&&(e["!ref"]=ir(r))}var _Qe=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,OQe=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,TQe=/<(?:\w:)?hyperlink [^>]*>/mg,PQe=/"(\w*:\w*)"/,IQe=/<(?:\w:)?col\b[^>]*[\/]?>/g,NQe=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,kQe=/<(?:\w:)?pageMargins[^>]*\/>/g,jJ=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,RQe=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,AQe=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function MQe(e,t,r,n,a,i,o){if(!e)return e;n||(n={"!id":{}});var s=t.dense?[]:{},l={s:{r:2e6,c:2e6},e:{r:0,c:0}},c="",u="",f=e.match(OQe);f?(c=e.slice(0,f.index),u=e.slice(f.index+f[0].length)):c=u=e;var m=c.match(jJ);m?o4(m[0],s,a,r):(m=c.match(RQe))&&jQe(m[0],m[1]||"",s,a,r);var h=(c.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(h>0){var p=c.slice(h,h+50).match(PQe);p&&$Qe(s,p[1])}var g=c.match(AQe);g&&g[1]&&YQe(g[1],a);var v=[];if(t.cellStyles){var y=c.match(IQe);y&&UQe(v,y)}f&&JQe(f[1],s,t,l,i,o);var x=u.match(NQe);x&&(s["!autofilter"]=GQe(x[0]));var b=[],S=u.match(_Qe);if(S)for(h=0;h!=S.length;++h)b[h]=yr(S[h].slice(S[h].indexOf('"')+1));var w=u.match(TQe);w&&HQe(s,w,n);var E=u.match(kQe);if(E&&(s["!margins"]=WQe(Qt(E[0]))),!s["!ref"]&&l.e.c>=l.s.c&&l.e.r>=l.s.r&&(s["!ref"]=ir(l)),t.sheetRows>0&&s["!ref"]){var C=yr(s["!ref"]);t.sheetRows<=+C.e.r&&(C.e.r=t.sheetRows-1,C.e.r>l.e.r&&(C.e.r=l.e.r),C.e.rl.e.c&&(C.e.c=l.e.c),C.e.c0&&(s["!cols"]=v),b.length>0&&(s["!merges"]=b),s}function DQe(e){if(e.length===0)return"";for(var t='',r=0;r!=e.length;++r)t+='';return t+""}function o4(e,t,r,n){var a=Qt(e);r.Sheets[n]||(r.Sheets[n]={}),a.codeName&&(r.Sheets[n].CodeName=Cr(Lr(a.codeName)))}function jQe(e,t,r,n,a){o4(e.slice(0,e.indexOf(">")),r,n,a)}function FQe(e,t,r,n,a){var i=!1,o={},s=null;if(n.bookType!=="xlsx"&&t.vbaraw){var l=t.SheetNames[r];try{t.Workbook&&(l=t.Workbook.Sheets[r].CodeName||l)}catch{}i=!0,o.codeName=Ys(Mr(l))}if(e&&e["!outline"]){var c={summaryBelow:1,summaryRight:1};e["!outline"].above&&(c.summaryBelow=0),e["!outline"].left&&(c.summaryRight=0),s=(s||"")+Ct("outlinePr",null,c)}!i&&!s||(a[a.length]=Ct("sheetPr",s,o))}var LQe=["objects","scenarios","selectLockedCells","selectUnlockedCells"],BQe=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function zQe(e){var t={sheet:1};return LQe.forEach(function(r){e[r]!=null&&e[r]&&(t[r]="1")}),BQe.forEach(function(r){e[r]!=null&&!e[r]&&(t[r]="0")}),e.password&&(t.password=JR(e.password).toString(16).toUpperCase()),Ct("sheetProtection",null,t)}function HQe(e,t,r){for(var n=Array.isArray(e),a=0;a!=t.length;++a){var i=Qt(Lr(t[a]),!0);if(!i.ref)return;var o=((r||{})["!id"]||[])[i.id];o?(i.Target=o.Target,i.location&&(i.Target+="#"+Cr(i.location))):(i.Target="#"+Cr(i.location),o={Target:i.Target,TargetMode:"Internal"}),i.Rel=o,i.tooltip&&(i.Tooltip=i.tooltip,delete i.tooltip);for(var s=yr(i.ref),l=s.s.r;l<=s.e.r;++l)for(var c=s.s.c;c<=s.e.c;++c){var u=Xt({c,r:l});n?(e[l]||(e[l]=[]),e[l][c]||(e[l][c]={t:"z",v:void 0}),e[l][c].l=i):(e[u]||(e[u]={t:"z",v:void 0}),e[u].l=i)}}}function WQe(e){var t={};return["left","right","top","bottom","header","footer"].forEach(function(r){e[r]&&(t[r]=parseFloat(e[r]))}),t}function VQe(e){return id(e),Ct("pageMargins",null,e)}function UQe(e,t){for(var r=!1,n=0;n!=t.length;++n){var a=Qt(t[n],!0);a.hidden&&(a.hidden=Jr(a.hidden));var i=parseInt(a.min,10)-1,o=parseInt(a.max,10)-1;for(a.outlineLevel&&(a.level=+a.outlineLevel||0),delete a.min,delete a.max,a.width=+a.width,!r&&a.width&&(r=!0,e4(a.width)),Jc(a);i<=o;)e[i++]=Hr(a)}}function KQe(e,t){for(var r=[""],n,a=0;a!=t.length;++a)(n=t[a])&&(r[r.length]=Ct("col",null,vC(a,n)));return r[r.length]="",r.join("")}function GQe(e){var t={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return t}function qQe(e,t,r,n){var a=typeof e.ref=="string"?e.ref:ir(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var i=r.Workbook.Names,o=$i(a);o.s.r==o.e.r&&(o.e.r=$i(t["!ref"]).e.r,a=ir(o));for(var s=0;sa-z][^>]*)?\/?>/;function YQe(e,t){t.Views||(t.Views=[{}]),(e.match(XQe)||[]).forEach(function(r,n){var a=Qt(r);t.Views[n]||(t.Views[n]={}),+a.zoomScale&&(t.Views[n].zoom=+a.zoomScale),Jr(a.rightToLeft)&&(t.Views[n].RTL=!0)})}function QQe(e,t,r,n){var a={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(a.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),Ct("sheetViews",Ct("sheetView",null,a),{})}function ZQe(e,t,r,n){if(e.c&&r["!comments"].push([t,e.c]),e.v===void 0&&typeof e.f!="string"||e.t==="z"&&!e.f)return"";var a="",i=e.t,o=e.v;if(e.t!=="z")switch(e.t){case"b":a=e.v?"1":"0";break;case"n":a=""+e.v;break;case"e":a=Zl[e.v];break;case"d":n&&n.cellDates?a=rn(e.v,-1).toISOString():(e=Hr(e),e.t="n",a=""+(e.v=ya(rn(e.v)))),typeof e.z>"u"&&(e.z=Kt[14]);break;default:a=e.v;break}var s=Va("v",Mr(a)),l={r:t},c=Su(n.cellXfs,e,n);switch(c!==0&&(l.s=c),e.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){s=Va("v",""+i4(n.Strings,e.v,n.revStrings)),l.t="s";break}l.t="str";break}if(e.t!=i&&(e.t=i,e.v=o),typeof e.f=="string"&&e.f){var u=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;s=Ct("f",Mr(e.f),u)+(e.v!=null?s:"")}return e.l&&r["!links"].push([t,e.l]),e.D&&(l.cm=1),Ct("c",s,l)}var JQe=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,r=/r=["']([^"']*)["']/,n=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,a=/ref=["']([^"']*)["']/,i=Up("v"),o=Up("f");return function(l,c,u,f,m,h){for(var p=0,g="",v=[],y=[],x=0,b=0,S=0,w="",E,C,O=0,_=0,P,I,N=0,D=0,k=Array.isArray(h.CellXf),R,A=[],j=[],F=Array.isArray(c),M=[],V={},K=!1,L=!!u.sheetStubs,B=l.split(t),W=0,z=B.length;W!=z;++W){g=B[W].trim();var U=g.length;if(U!==0){var X=0;e:for(p=0;p":if(g[p-1]!="/"){++p;break e}if(u&&u.cellStyles){if(C=Qt(g.slice(X,p),!0),O=C.r!=null?parseInt(C.r,10):O+1,_=-1,u.sheetRows&&u.sheetRows=p)break;if(C=Qt(g.slice(X,p),!0),O=C.r!=null?parseInt(C.r,10):O+1,_=-1,!(u.sheetRows&&u.sheetRowsO-1&&(f.s.r=O-1),f.e.r":"")+g,y!=null&&y.length===2){for(x=0,w=y[1],b=0;b!=w.length&&!((S=w.charCodeAt(b)-64)<1||S>26);++b)x=26*x+S;--x,_=x}else++_;for(b=0;b!=g.length&&g.charCodeAt(b)!==62;++b);if(++b,C=Qt(g.slice(0,b),!0),C.r||(C.r=Xt({r:O-1,c:_})),w=g.slice(b),E={t:""},(y=w.match(i))!=null&&y[1]!==""&&(E.v=Cr(y[1])),u.cellFormula){if((y=w.match(o))!=null&&y[1]!==""){if(E.f=Cr(Lr(y[1])).replace(/\r\n/g,` -`),u.xlfn||(E.f=fL(E.f)),y[0].indexOf('t="array"')>-1)E.F=(w.match(a)||[])[1],E.F.indexOf(":")>-1&&A.push([yr(E.F),E.F]);else if(y[0].indexOf('t="shared"')>-1){I=Qt(y[0]);var G=Cr(Lr(y[1]));u.xlfn||(G=fL(G)),j[parseInt(I.si,10)]=[I,G,C.r]}}else(y=w.match(/]*\/>/))&&(I=Qt(y[0]),j[I.si]&&(E.f=XXe(j[I.si][1],j[I.si][2],C.r)));var Q=mn(C.r);for(b=0;b=A[b][0].s.r&&Q.r<=A[b][0].e.r&&Q.c>=A[b][0].s.c&&Q.c<=A[b][0].e.c&&(E.F=A[b][1])}if(C.t==null&&E.v===void 0)if(E.f||E.F)E.v=0,E.t="n";else if(L)E.t="z";else continue;else E.t=C.t||"n";switch(f.s.c>_&&(f.s.c=_),f.e.c<_&&(f.e.c=_),E.t){case"n":if(E.v==""||E.v==null){if(!L)continue;E.t="z"}else E.v=parseFloat(E.v);break;case"s":if(typeof E.v>"u"){if(!L)continue;E.t="z"}else P=jh[parseInt(E.v,10)],E.v=P.t,E.r=P.r,u.cellHTML&&(E.h=P.h);break;case"str":E.t="s",E.v=E.v!=null?Lr(E.v):"",u.cellHTML&&(E.h=AR(E.v));break;case"inlineStr":y=w.match(n),E.t="s",y!=null&&(P=ZR(y[1]))?(E.v=P.t,u.cellHTML&&(E.h=P.h)):E.v="";break;case"b":E.v=Jr(E.v);break;case"d":u.cellDates?E.v=rn(E.v,1):(E.v=ya(rn(E.v,1)),E.t="n");break;case"e":(!u||u.cellText!==!1)&&(E.w=E.v),E.v=LZ[E.v];break}if(N=D=0,R=null,k&&C.s!==void 0&&(R=h.CellXf[C.s],R!=null&&(R.numFmtId!=null&&(N=R.numFmtId),u.cellStyles&&R.fillId!=null&&(D=R.fillId))),DJ(E,N,D,u,m,h),u.cellDates&&k&&E.t=="n"&&qd(Kt[N])&&(E.t="d",E.v=dC(E.v)),C.cm&&u.xlmeta){var ee=(u.xlmeta.Cell||[])[+C.cm-1];ee&&ee.type=="XLDAPR"&&(E.D=!0)}if(F){var H=mn(C.r);c[H.r]||(c[H.r]=[]),c[H.r][H.c]=E}else c[C.r]=E}}}}M.length>0&&(c["!rows"]=M)}}();function eZe(e,t,r,n){var a=[],i=[],o=yr(e["!ref"]),s="",l,c="",u=[],f=0,m=0,h=e["!rows"],p=Array.isArray(e),g={r:c},v,y=-1;for(m=o.s.c;m<=o.e.c;++m)u[m]=tn(m);for(f=o.s.r;f<=o.e.r;++f){for(i=[],c=_n(f),m=o.s.c;m<=o.e.c;++m){l=u[m]+c;var x=p?(e[f]||[])[m]:e[l];x!==void 0&&(s=ZQe(x,l,e,t))!=null&&i.push(s)}(i.length>0||h&&h[f])&&(g={r:c},h&&h[f]&&(v=h[f],v.hidden&&(g.hidden=1),y=-1,v.hpx?y=Zp(v.hpx):v.hpt&&(y=v.hpt),y>-1&&(g.ht=y,g.customHeight=1),v.level&&(g.outlineLevel=v.level)),a[a.length]=Ct("row",i.join(""),g))}if(h)for(;f-1&&(g.ht=y,g.customHeight=1),v.level&&(g.outlineLevel=v.level),a[a.length]=Ct("row","",g));return a.join("")}function FJ(e,t,r,n){var a=[Ln,Ct("worksheet",null,{xmlns:Xd[0],"xmlns:r":da.r})],i=r.SheetNames[e],o=0,s="",l=r.Sheets[i];l==null&&(l={});var c=l["!ref"]||"A1",u=yr(c);if(u.e.c>16383||u.e.r>1048575){if(t.WTF)throw new Error("Range "+c+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575),c=ir(u)}n||(n={}),l["!comments"]=[];var f=[];FQe(l,r,e,t,a),a[a.length]=Ct("dimension",null,{ref:c}),a[a.length]=QQe(l,t,e,r),t.sheetFormat&&(a[a.length]=Ct("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),l["!cols"]!=null&&l["!cols"].length>0&&(a[a.length]=KQe(l,l["!cols"])),a[o=a.length]="",l["!links"]=[],l["!ref"]!=null&&(s=eZe(l,t),s.length>0&&(a[a.length]=s)),a.length>o+1&&(a[a.length]="",a[o]=a[o].replace("/>",">")),l["!protect"]&&(a[a.length]=zQe(l["!protect"])),l["!autofilter"]!=null&&(a[a.length]=qQe(l["!autofilter"],l,r,e)),l["!merges"]!=null&&l["!merges"].length>0&&(a[a.length]=DQe(l["!merges"]));var m=-1,h,p=-1;return l["!links"].length>0&&(a[a.length]="",l["!links"].forEach(function(g){g[1].Target&&(h={ref:g[0]},g[1].Target.charAt(0)!="#"&&(p=Rr(n,-1,Mr(g[1].Target).replace(/#.*$/,""),hr.HLINK),h["r:id"]="rId"+p),(m=g[1].Target.indexOf("#"))>-1&&(h.location=Mr(g[1].Target.slice(m+1))),g[1].Tooltip&&(h.tooltip=Mr(g[1].Tooltip)),a[a.length]=Ct("hyperlink",null,h))}),a[a.length]=""),delete l["!links"],l["!margins"]!=null&&(a[a.length]=VQe(l["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&(a[a.length]=Va("ignoredErrors",Ct("ignoredError",null,{numberStoredAsText:1,sqref:c}))),f.length>0&&(p=Rr(n,-1,"../drawings/drawing"+(e+1)+".xml",hr.DRAW),a[a.length]=Ct("drawing",null,{"r:id":"rId"+p}),l["!drawing"]=f),l["!comments"].length>0&&(p=Rr(n,-1,"../drawings/vmlDrawing"+(e+1)+".vml",hr.VML),a[a.length]=Ct("legacyDrawing",null,{"r:id":"rId"+p}),l["!legacy"]=p),a.length>1&&(a[a.length]="",a[1]=a[1].replace("/>",">")),a.join("")}function tZe(e,t){var r={},n=e.l+t;r.r=e.read_shift(4),e.l+=4;var a=e.read_shift(2);e.l+=1;var i=e.read_shift(1);return e.l=n,i&7&&(r.level=i&7),i&16&&(r.hidden=!0),i&32&&(r.hpt=a/20),r}function rZe(e,t,r){var n=Je(145),a=(r["!rows"]||[])[e]||{};n.write_shift(4,e),n.write_shift(4,0);var i=320;a.hpx?i=Zp(a.hpx)*20:a.hpt&&(i=a.hpt*20),n.write_shift(2,i),n.write_shift(1,0);var o=0;a.level&&(o|=a.level),a.hidden&&(o|=16),(a.hpx||a.hpt)&&(o|=32),n.write_shift(1,o),n.write_shift(1,0);var s=0,l=n.l;n.l+=4;for(var c={r:e,c:0},u=0;u<16;++u)if(!(t.s.c>u+1<<10||t.e.cn.l?n.slice(0,n.l):n}function nZe(e,t,r,n){var a=rZe(n,r,t);(a.length>17||(t["!rows"]||[])[n])&&st(e,0,a)}var aZe=Jd,iZe=_m;function oZe(){}function sZe(e,t){var r={},n=e[e.l];return++e.l,r.above=!(n&64),r.left=!(n&128),e.l+=18,r.name=uUe(e),r}function lZe(e,t,r){r==null&&(r=Je(84+4*e.length));var n=192;t&&(t.above&&(n&=-65),t.left&&(n&=-129)),r.write_shift(1,n);for(var a=1;a<3;++a)r.write_shift(1,0);return fb({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),AZ(e,r),r.slice(0,r.l)}function cZe(e){var t=ts(e);return[t]}function uZe(e,t,r){return r==null&&(r=Je(8)),Yd(t,r)}function dZe(e){var t=Qd(e);return[t]}function fZe(e,t,r){return r==null&&(r=Je(4)),Zd(t,r)}function mZe(e){var t=ts(e),r=e.read_shift(1);return[t,r,"b"]}function hZe(e,t,r){return r==null&&(r=Je(9)),Yd(t,r),r.write_shift(1,e.v?1:0),r}function pZe(e){var t=Qd(e),r=e.read_shift(1);return[t,r,"b"]}function vZe(e,t,r){return r==null&&(r=Je(5)),Zd(t,r),r.write_shift(1,e.v?1:0),r}function gZe(e){var t=ts(e),r=e.read_shift(1);return[t,r,"e"]}function yZe(e,t,r){return r==null&&(r=Je(9)),Yd(t,r),r.write_shift(1,e.v),r}function xZe(e){var t=Qd(e),r=e.read_shift(1);return[t,r,"e"]}function bZe(e,t,r){return r==null&&(r=Je(8)),Zd(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function SZe(e){var t=ts(e),r=e.read_shift(4);return[t,r,"s"]}function wZe(e,t,r){return r==null&&(r=Je(12)),Yd(t,r),r.write_shift(4,t.v),r}function CZe(e){var t=Qd(e),r=e.read_shift(4);return[t,r,"s"]}function EZe(e,t,r){return r==null&&(r=Je(8)),Zd(t,r),r.write_shift(4,t.v),r}function $Ze(e){var t=ts(e),r=ai(e);return[t,r,"n"]}function _Ze(e,t,r){return r==null&&(r=Je(16)),Yd(t,r),Pd(e.v,r),r}function LJ(e){var t=Qd(e),r=ai(e);return[t,r,"n"]}function OZe(e,t,r){return r==null&&(r=Je(12)),Zd(t,r),Pd(e.v,r),r}function TZe(e){var t=ts(e),r=GR(e);return[t,r,"n"]}function PZe(e,t,r){return r==null&&(r=Je(12)),Yd(t,r),MZ(e.v,r),r}function IZe(e){var t=Qd(e),r=GR(e);return[t,r,"n"]}function NZe(e,t,r){return r==null&&(r=Je(8)),Zd(t,r),MZ(e.v,r),r}function kZe(e){var t=ts(e),r=VR(e);return[t,r,"is"]}function RZe(e){var t=ts(e),r=ci(e);return[t,r,"str"]}function AZe(e,t,r){return r==null&&(r=Je(12+4*e.v.length)),Yd(t,r),Na(e.v,r),r.length>r.l?r.slice(0,r.l):r}function MZe(e){var t=Qd(e),r=ci(e);return[t,r,"str"]}function DZe(e,t,r){return r==null&&(r=Je(8+4*e.v.length)),Zd(t,r),Na(e.v,r),r.length>r.l?r.slice(0,r.l):r}function jZe(e,t,r){var n=e.l+t,a=ts(e);a.r=r["!row"];var i=e.read_shift(1),o=[a,i,"b"];if(r.cellFormula){e.l+=2;var s=pC(e,n-e.l,r);o[3]=ei(s,null,a,r.supbooks,r)}else e.l=n;return o}function FZe(e,t,r){var n=e.l+t,a=ts(e);a.r=r["!row"];var i=e.read_shift(1),o=[a,i,"e"];if(r.cellFormula){e.l+=2;var s=pC(e,n-e.l,r);o[3]=ei(s,null,a,r.supbooks,r)}else e.l=n;return o}function LZe(e,t,r){var n=e.l+t,a=ts(e);a.r=r["!row"];var i=ai(e),o=[a,i,"n"];if(r.cellFormula){e.l+=2;var s=pC(e,n-e.l,r);o[3]=ei(s,null,a,r.supbooks,r)}else e.l=n;return o}function BZe(e,t,r){var n=e.l+t,a=ts(e);a.r=r["!row"];var i=ci(e),o=[a,i,"str"];if(r.cellFormula){e.l+=2;var s=pC(e,n-e.l,r);o[3]=ei(s,null,a,r.supbooks,r)}else e.l=n;return o}var zZe=Jd,HZe=_m;function WZe(e,t){return t==null&&(t=Je(4)),t.write_shift(4,e),t}function VZe(e,t){var r=e.l+t,n=Jd(e),a=UR(e),i=ci(e),o=ci(e),s=ci(e);e.l=r;var l={rfx:n,relId:a,loc:i,display:s};return o&&(l.Tooltip=o),l}function UZe(e,t){var r=Je(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));_m({s:mn(e[0]),e:mn(e[0])},r),KR("rId"+t,r);var n=e[1].Target.indexOf("#"),a=n==-1?"":e[1].Target.slice(n+1);return Na(a||"",r),Na(e[1].Tooltip||"",r),Na("",r),r.slice(0,r.l)}function KZe(){}function GZe(e,t,r){var n=e.l+t,a=DZ(e),i=e.read_shift(1),o=[a];if(o[2]=i,r.cellFormula){var s=gQe(e,n-e.l,r);o[1]=s}else e.l=n;return o}function qZe(e,t,r){var n=e.l+t,a=Jd(e),i=[a];if(r.cellFormula){var o=xQe(e,n-e.l,r);i[1]=o,e.l=n}else e.l=n;return i}function XZe(e,t,r){r==null&&(r=Je(18));var n=vC(e,t);r.write_shift(-4,e),r.write_shift(-4,e),r.write_shift(4,(n.width||10)*256),r.write_shift(4,0);var a=0;return t.hidden&&(a|=1),typeof n.width=="number"&&(a|=2),t.level&&(a|=t.level<<8),r.write_shift(2,a),r}var BJ=["left","right","top","bottom","header","footer"];function YZe(e){var t={};return BJ.forEach(function(r){t[r]=ai(e)}),t}function QZe(e,t){return t==null&&(t=Je(6*8)),id(e),BJ.forEach(function(r){Pd(e[r],t)}),t}function ZZe(e){var t=e.read_shift(2);return e.l+=28,{RTL:t&32}}function JZe(e,t,r){r==null&&(r=Je(30));var n=924;return(((t||{}).Views||[])[0]||{}).RTL&&(n|=32),r.write_shift(2,n),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}function eJe(e){var t=Je(24);return t.write_shift(4,4),t.write_shift(4,1),_m(e,t),t}function tJe(e,t){return t==null&&(t=Je(16*4+2)),t.write_shift(2,e.password?JR(e.password):0),t.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(r){r[1]?t.write_shift(4,e[r[0]]!=null&&!e[r[0]]?1:0):t.write_shift(4,e[r[0]]!=null&&e[r[0]]?0:1)}),t}function rJe(){}function nJe(){}function aJe(e,t,r,n,a,i,o){if(!e)return e;var s=t||{};n||(n={"!id":{}});var l=s.dense?[]:{},c,u={s:{r:2e6,c:2e6},e:{r:0,c:0}},f=!1,m=!1,h,p,g,v,y,x,b,S,w,E=[];s.biff=12,s["!row"]=0;var C=0,O=!1,_=[],P={},I=s.supbooks||a.supbooks||[[]];if(I.sharedf=P,I.arrayf=_,I.SheetNames=a.SheetNames||a.Sheets.map(function(F){return F.name}),!s.supbooks&&(s.supbooks=I,a.Names))for(var N=0;N=L[0].s.r&&h.r<=L[0].e.r&&y>=L[0].s.c&&y<=L[0].e.c&&(p.F=ir(L[0]),O=!0)}!O&&M.length>3&&(p.f=M[3])}if(u.s.r>h.r&&(u.s.r=h.r),u.s.c>y&&(u.s.c=y),u.e.rh.r&&(u.s.r=h.r),u.s.c>y&&(u.s.c=y),u.e.r=M.s;)D[M.e--]={width:M.w/256,hidden:!!(M.flags&1),level:M.level},R||(R=!0,e4(M.w/256)),Jc(D[M.e+1]);break;case 161:l["!autofilter"]={ref:ir(M)};break;case 476:l["!margins"]=M;break;case 147:a.Sheets[r]||(a.Sheets[r]={}),M.name&&(a.Sheets[r].CodeName=M.name),(M.above||M.left)&&(l["!outline"]={above:M.above,left:M.left});break;case 137:a.Views||(a.Views=[{}]),a.Views[0]||(a.Views[0]={}),M.RTL&&(a.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:break;case 151:break;case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:f=!0;break;case 36:f=!1;break;case 37:f=!0;break;case 38:f=!1;break;default:if(!V.T){if(!f||s.WTF)throw new Error("Unexpected record 0x"+K.toString(16))}}},s),delete s.supbooks,delete s["!row"],!l["!ref"]&&(u.s.r<2e6||c&&(c.e.r>0||c.e.c>0||c.s.r>0||c.s.c>0))&&(l["!ref"]=ir(c||u)),s.sheetRows&&l["!ref"]){var j=yr(l["!ref"]);s.sheetRows<=+j.e.r&&(j.e.r=s.sheetRows-1,j.e.r>u.e.r&&(j.e.r=u.e.r),j.e.ru.e.c&&(j.e.c=u.e.c),j.e.c0&&(l["!merges"]=E),D.length>0&&(l["!cols"]=D),k.length>0&&(l["!rows"]=k),l}function iJe(e,t,r,n,a,i,o){if(t.v===void 0)return!1;var s="";switch(t.t){case"b":s=t.v?"1":"0";break;case"d":t=Hr(t),t.z=t.z||Kt[14],t.v=ya(rn(t.v)),t.t="n";break;case"n":case"e":s=""+t.v;break;default:s=t.v;break}var l={r,c:n};switch(l.s=Su(a.cellXfs,t,a),t.l&&i["!links"].push([Xt(l),t.l]),t.c&&i["!comments"].push([Xt(l),t.c]),t.t){case"s":case"str":return a.bookSST?(s=i4(a.Strings,t.v,a.revStrings),l.t="s",l.v=s,o?st(e,18,EZe(t,l)):st(e,7,wZe(t,l))):(l.t="str",o?st(e,17,DZe(t,l)):st(e,6,AZe(t,l))),!0;case"n":return t.v==(t.v|0)&&t.v>-1e3&&t.v<1e3?o?st(e,13,NZe(t,l)):st(e,2,PZe(t,l)):o?st(e,16,OZe(t,l)):st(e,5,_Ze(t,l)),!0;case"b":return l.t="b",o?st(e,15,vZe(t,l)):st(e,4,hZe(t,l)),!0;case"e":return l.t="e",o?st(e,14,bZe(t,l)):st(e,3,yZe(t,l)),!0}return o?st(e,12,fZe(t,l)):st(e,1,uZe(t,l)),!0}function oJe(e,t,r,n){var a=yr(t["!ref"]||"A1"),i,o="",s=[];st(e,145);var l=Array.isArray(t),c=a.e.r;t["!rows"]&&(c=Math.max(a.e.r,t["!rows"].length-1));for(var u=a.s.r;u<=c;++u){o=_n(u),nZe(e,t,a,u);var f=!1;if(u<=a.e.r)for(var m=a.s.c;m<=a.e.c;++m){u===a.s.r&&(s[m]=tn(m)),i=s[m]+o;var h=l?(t[u]||[])[m]:t[i];if(!h){f=!1;continue}f=iJe(e,h,u,m,n,t,f)}}st(e,146)}function sJe(e,t){!t||!t["!merges"]||(st(e,177,WZe(t["!merges"].length)),t["!merges"].forEach(function(r){st(e,176,HZe(r))}),st(e,178))}function lJe(e,t){!t||!t["!cols"]||(st(e,390),t["!cols"].forEach(function(r,n){r&&st(e,60,XZe(n,r))}),st(e,391))}function cJe(e,t){!t||!t["!ref"]||(st(e,648),st(e,649,eJe(yr(t["!ref"]))),st(e,650))}function uJe(e,t,r){t["!links"].forEach(function(n){if(n[1].Target){var a=Rr(r,-1,n[1].Target.replace(/#.*$/,""),hr.HLINK);st(e,494,UZe(n,a))}}),delete t["!links"]}function dJe(e,t,r,n){if(t["!comments"].length>0){var a=Rr(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",hr.VML);st(e,551,KR("rId"+a)),t["!legacy"]=a}}function fJe(e,t,r,n){if(t["!autofilter"]){var a=t["!autofilter"],i=typeof a.ref=="string"?a.ref:ir(a.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var o=r.Workbook.Names,s=$i(i);s.s.r==s.e.r&&(s.e.r=$i(t["!ref"]).e.r,i=ir(s));for(var l=0;l16383||l.e.r>1048575){if(t.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return o["!links"]=[],o["!comments"]=[],st(a,129),(r.vbaraw||o["!outline"])&&st(a,147,lZe(s,o["!outline"])),st(a,148,iZe(l)),mJe(a,o,r.Workbook),lJe(a,o),oJe(a,o,e,t),hJe(a,o),fJe(a,o,r,e),sJe(a,o),uJe(a,o,n),o["!margins"]&&st(a,476,QZe(o["!margins"])),(!t||t.ignoreEC||t.ignoreEC==null)&&cJe(a,o),dJe(a,o,e,n),st(a,130),a.end()}function vJe(e){var t=[],r=e.match(/^/),n;(e.match(/(.*?)<\/c:pt>/mg)||[]).forEach(function(i){var o=i.match(/(.*)<\/c:v><\/c:pt>/);o&&(t[+o[1]]=r?+o[2]:o[2])});var a=Cr((e.match(/([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/(.*?)<\/c:f>/mg)||[]).forEach(function(i){n=i.replace(/<.*?>/g,"")}),[t,a,n]}function gJe(e,t,r,n,a,i){var o=i||{"!type":"chart"};if(!e)return i;var s=0,l=0,c="A",u={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(f){var m=vJe(f);u.s.r=u.s.c=0,u.e.c=s,c=tn(s),m[0].forEach(function(h,p){o[c+_n(p)]={t:"n",v:h,z:m[1]},l=p}),u.e.r0&&(o["!ref"]=ir(u)),o}function yJe(e,t,r,n,a){if(!e)return e;n||(n={"!id":{}});var i={"!type":"chart","!drawel":null,"!rel":""},o,s=e.match(jJ);return s&&o4(s[0],i,a,r),(o=e.match(/drawing r:id="(.*?)"/))&&(i["!rel"]=o[1]),n["!id"][i["!rel"]]&&(i["!drawel"]=n["!id"][i["!rel"]]),i}function xJe(e,t){e.l+=10;var r=ci(e);return{name:r}}function bJe(e,t,r,n,a){if(!e)return e;n||(n={"!id":{}});var i={"!type":"chart","!drawel":null,"!rel":""},o=!1;return Ql(e,function(l,c,u){switch(u){case 550:i["!rel"]=l;break;case 651:a.Sheets[r]||(a.Sheets[r]={}),l.name&&(a.Sheets[r].CodeName=l.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:break;case 38:break;default:if(!(c.T>0)){if(!(c.T<0)){if(!o||t.WTF)throw new Error("Unexpected record 0x"+u.toString(16))}}}},t),n["!id"][i["!rel"]]&&(i["!drawel"]=n["!id"][i["!rel"]]),i}var s4=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],SJe=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],wJe=[],CJe=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function gL(e,t){for(var r=0;r!=e.length;++r)for(var n=e[r],a=0;a!=t.length;++a){var i=t[a];if(n[i[0]]==null)n[i[0]]=i[1];else switch(i[2]){case"bool":typeof n[i[0]]=="string"&&(n[i[0]]=Jr(n[i[0]]));break;case"int":typeof n[i[0]]=="string"&&(n[i[0]]=parseInt(n[i[0]],10));break}}}function yL(e,t){for(var r=0;r!=t.length;++r){var n=t[r];if(e[n[0]]==null)e[n[0]]=n[1];else switch(n[2]){case"bool":typeof e[n[0]]=="string"&&(e[n[0]]=Jr(e[n[0]]));break;case"int":typeof e[n[0]]=="string"&&(e[n[0]]=parseInt(e[n[0]],10));break}}}function zJ(e){yL(e.WBProps,s4),yL(e.CalcPr,CJe),gL(e.WBView,SJe),gL(e.Sheets,wJe),o0.date1904=Jr(e.WBProps.date1904)}function EJe(e){return!e.Workbook||!e.Workbook.WBProps?"false":Jr(e.Workbook.WBProps.date1904)?"true":"false"}var $Je="][*?/\\".split("");function HJ(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var r=!0;return $Je.forEach(function(n){if(e.indexOf(n)!=-1){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");r=!1}}),r}function _Je(e,t,r){e.forEach(function(n,a){HJ(n);for(var i=0;i22)throw new Error("Bad Code Name: Worksheet"+o)}})}function WJ(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t=e.Workbook&&e.Workbook.Sheets||[];_Je(e.SheetNames,t,!!e.vbaraw);for(var r=0;r":break;case"":case"":break;case"":break;case"":s4.forEach(function(f){if(u[f[0]]!=null)switch(f[2]){case"bool":r.WBProps[f[0]]=Jr(u[f[0]]);break;case"int":r.WBProps[f[0]]=parseInt(u[f[0]],10);break;default:r.WBProps[f[0]]=u[f[0]]}}),u.codeName&&(r.WBProps.CodeName=Lr(u.codeName));break;case"":break;case"":break;case"":case"":break;case"":delete u[0],r.WBView.push(u);break;case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":break;case"":case"":n=!1;break;case"":i.Ref=Cr(Lr(e.slice(o,c))),r.Names.push(i);break;case"":break;case"":delete u[0],r.CalcPr=u;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":break;case"":break;case"":case"":break;case"":case"":case"":break;case"":n=!1;break;case"":n=!0;break;case"":n=!1;break;case"0,n={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(s4.forEach(function(s){e.Workbook.WBProps[s[0]]!=null&&e.Workbook.WBProps[s[0]]!=s[1]&&(n[s[0]]=e.Workbook.WBProps[s[0]])}),e.Workbook.WBProps.CodeName&&(n.codeName=e.Workbook.WBProps.CodeName,delete n.CodeName)),t[t.length]=Ct("workbookPr",null,n);var a=e.Workbook&&e.Workbook.Sheets||[],i=0;if(a&&a[0]&&a[0].Hidden){for(t[t.length]="",i=0;i!=e.SheetNames.length&&!(!a[i]||!a[i].Hidden);++i);i==e.SheetNames.length&&(i=0),t[t.length]='',t[t.length]=""}for(t[t.length]="",i=0;i!=e.SheetNames.length;++i){var o={name:Mr(e.SheetNames[i].slice(0,31))};if(o.sheetId=""+(i+1),o["r:id"]="rId"+(i+1),a[i])switch(a[i].Hidden){case 1:o.state="hidden";break;case 2:o.state="veryHidden";break}t[t.length]=Ct("sheet",null,o)}return t[t.length]="",r&&(t[t.length]="",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(s){var l={name:s.Name};s.Comment&&(l.comment=s.Comment),s.Sheet!=null&&(l.localSheetId=""+s.Sheet),s.Hidden&&(l.hidden="1"),s.Ref&&(t[t.length]=Ct("definedName",Mr(s.Ref),l))}),t[t.length]=""),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function PJe(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=gT(e),r.name=ci(e),r}function IJe(e,t){return t||(t=Je(127)),t.write_shift(4,e.Hidden),t.write_shift(4,e.iTabID),KR(e.strRelID,t),Na(e.name.slice(0,31),t),t.length>t.l?t.slice(0,t.l):t}function NJe(e,t){var r={},n=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var a=t>8?ci(e):"";return a.length>0&&(r.CodeName=a),r.autoCompressPictures=!!(n&65536),r.backupFile=!!(n&64),r.checkCompatibility=!!(n&4096),r.date1904=!!(n&1),r.filterPrivacy=!!(n&8),r.hidePivotFieldList=!!(n&1024),r.promptedSolutions=!!(n&16),r.publishItems=!!(n&2048),r.refreshAllConnections=!!(n&262144),r.saveExternalLinkValues=!!(n&128),r.showBorderUnselectedTables=!!(n&4),r.showInkAnnotation=!!(n&32),r.showObjects=["all","placeholders","none"][n>>13&3],r.showPivotChartFilter=!!(n&32768),r.updateLinks=["userSet","never","always"][n>>8&3],r}function kJe(e,t){t||(t=Je(72));var r=0;return e&&e.filterPrivacy&&(r|=8),t.write_shift(4,r),t.write_shift(4,0),AZ(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}function RJe(e,t){var r={};return e.read_shift(4),r.ArchID=e.read_shift(4),e.l+=t-8,r}function AJe(e,t,r){var n=e.l+t;e.l+=4,e.l+=1;var a=e.read_shift(4),i=dUe(e),o=yQe(e,0,r),s=UR(e);e.l=n;var l={Name:i,Ptg:o};return a<268435455&&(l.Sheet=a),s&&(l.Comment=s),l}function MJe(e,t){var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},n=[],a=!1;t||(t={}),t.biff=12;var i=[],o=[[]];return o.SheetNames=[],o.XTI=[],Jp[16]={n:"BrtFRTArchID$",f:RJe},Ql(e,function(l,c,u){switch(u){case 156:o.SheetNames.push(l.name),r.Sheets.push(l);break;case 153:r.WBProps=l;break;case 39:l.Sheet!=null&&(t.SID=l.Sheet),l.Ref=ei(l.Ptg,null,null,o,t),delete t.SID,delete l.Ptg,i.push(l);break;case 1036:break;case 357:case 358:case 355:case 667:o[0].length?o.push([u,l]):o[0]=[u,l],o[o.length-1].XTI=[];break;case 362:o.length===0&&(o[0]=[],o[0].XTI=[]),o[o.length-1].XTI=o[o.length-1].XTI.concat(l),o.XTI=o.XTI.concat(l);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:n.push(u),a=!0;break;case 36:n.pop(),a=!1;break;case 37:n.push(u),a=!0;break;case 38:n.pop(),a=!1;break;case 16:break;default:if(!c.T){if(!a||t.WTF&&n[n.length-1]!=37&&n[n.length-1]!=35)throw new Error("Unexpected record 0x"+u.toString(16))}}},t),zJ(r),r.Names=i,r.supbooks=o,r}function DJe(e,t){st(e,143);for(var r=0;r!=t.SheetNames.length;++r){var n=t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[r]&&t.Workbook.Sheets[r].Hidden||0,a={Hidden:n,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]};st(e,156,IJe(a))}st(e,144)}function jJe(e,t){t||(t=Je(127));for(var r=0;r!=4;++r)t.write_shift(4,0);return Na("SheetJS",t),Na(Hp.version,t),Na(Hp.version,t),Na("7262",t),t.length>t.l?t.slice(0,t.l):t}function FJe(e,t){t||(t=Je(29)),t.write_shift(-4,0),t.write_shift(-4,460),t.write_shift(4,28800),t.write_shift(4,17600),t.write_shift(4,500),t.write_shift(4,e),t.write_shift(4,e);var r=120;return t.write_shift(1,r),t.length>t.l?t.slice(0,t.l):t}function LJe(e,t){if(!(!t.Workbook||!t.Workbook.Sheets)){for(var r=t.Workbook.Sheets,n=0,a=-1,i=-1;na||(st(e,135),st(e,158,FJe(a)),st(e,136))}}function BJe(e,t){var r=zi();return st(r,131),st(r,128,jJe()),st(r,153,kJe(e.Workbook&&e.Workbook.WBProps||null)),LJe(r,e),DJe(r,e),st(r,132),r.end()}function zJe(e,t,r){return t.slice(-4)===".bin"?MJe(e,r):TJe(e,r)}function HJe(e,t,r,n,a,i,o,s){return t.slice(-4)===".bin"?aJe(e,n,r,a,i,o,s):MQe(e,n,r,a,i,o,s)}function WJe(e,t,r,n,a,i,o,s){return t.slice(-4)===".bin"?bJe(e,n,r,a,i):yJe(e,n,r,a,i)}function VJe(e,t,r,n,a,i,o,s){return t.slice(-4)===".bin"?GXe():qXe()}function UJe(e,t,r,n,a,i,o,s){return t.slice(-4)===".bin"?UXe():KXe()}function KJe(e,t,r,n){return t.slice(-4)===".bin"?Hqe(e,r,n):Iqe(e,r,n)}function GJe(e,t,r){return CJ(e,r)}function qJe(e,t,r){return t.slice(-4)===".bin"?XGe(e,r):KGe(e,r)}function XJe(e,t,r){return t.slice(-4)===".bin"?BXe(e,r):NXe(e,r)}function YJe(e,t,r){return t.slice(-4)===".bin"?TXe(e):_Xe(e)}function QJe(e,t,r,n){return r.slice(-4)===".bin"?PXe(e,t,r,n):void 0}function ZJe(e,t,r){return t.slice(-4)===".bin"?CXe(e,t,r):$Xe(e,t,r)}function JJe(e,t,r){return(t.slice(-4)===".bin"?BJe:VJ)(e)}function eet(e,t,r,n,a){return(t.slice(-4)===".bin"?pJe:FJ)(e,r,n,a)}function tet(e,t,r){return(t.slice(-4)===".bin"?Zqe:SJ)(e,r)}function ret(e,t,r){return(t.slice(-4)===".bin"?ZGe:mJ)(e,r)}function net(e,t,r){return(t.slice(-4)===".bin"?zXe:_J)(e)}function aet(e){return(e.slice(-4)===".bin"?EXe:EJ)()}var UJ=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,KJ=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function ns(e,t){var r=e.split(/\s+/),n=[];if(t||(n[0]=r[0]),r.length===1)return n;var a=e.match(UJ),i,o,s,l;if(a)for(l=0;l!=a.length;++l)i=a[l].match(KJ),(o=i[1].indexOf(":"))===-1?n[i[1]]=i[2].slice(1,i[2].length-1):(i[1].slice(0,6)==="xmlns:"?s="xmlns"+i[1].slice(6):s=i[1].slice(o+1),n[s]=i[2].slice(1,i[2].length-1));return n}function iet(e){var t=e.split(/\s+/),r={};if(t.length===1)return r;var n=e.match(UJ),a,i,o,s;if(n)for(s=0;s!=n.length;++s)a=n[s].match(KJ),(i=a[1].indexOf(":"))===-1?r[a[1]]=a[2].slice(1,a[2].length-1):(a[1].slice(0,6)==="xmlns:"?o="xmlns"+a[1].slice(6):o=a[1].slice(i+1),r[o]=a[2].slice(1,a[2].length-1));return r}var Lh;function oet(e,t){var r=Lh[e]||Cr(e);return r==="General"?Od(t):po(r,t)}function set(e,t,r,n){var a=n;switch((r[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":a=Jr(n);break;case"i2":case"int":a=parseInt(n,10);break;case"r4":case"float":a=parseFloat(n);break;case"date":case"dateTime.tz":a=rn(n);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+r[0])}e[Cr(t)]=a}function cet(e,t,r){if(e.t!=="z"){if(!r||r.cellText!==!1)try{e.t==="e"?e.w=e.w||Zl[e.v]:t==="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=Vp(e.v):e.w=Od(e.v):e.w=oet(t||"General",e.v)}catch(i){if(r.WTF)throw i}try{var n=Lh[t]||t||"General";if(r.cellNF&&(e.z=n),r.cellDates&&e.t=="n"&&qd(n)){var a=$c(e.v);a&&(e.t="d",e.v=new Date(a.y,a.m-1,a.d,a.H,a.M,a.S,a.u))}}catch(i){if(r.WTF)throw i}}}function uet(e,t,r){if(r.cellStyles&&t.Interior){var n=t.Interior;n.Pattern&&(n.patternType=wqe[n.Pattern]||n.Pattern)}e[t.ID]=t}function det(e,t,r,n,a,i,o,s,l,c){var u="General",f=n.StyleID,m={};c=c||{};var h=[],p=0;for(f===void 0&&s&&(f=s.StyleID),f===void 0&&o&&(f=o.StyleID);i[f]!==void 0&&(i[f].nf&&(u=i[f].nf),i[f].Interior&&h.push(i[f].Interior),!!i[f].Parent);)f=i[f].Parent;switch(r.Type){case"Boolean":n.t="b",n.v=Jr(e);break;case"String":n.t="s",n.r=M5(Cr(e)),n.v=e.indexOf("<")>-1?Cr(t||e).replace(/<.*?>/g,""):n.r;break;case"DateTime":e.slice(-1)!="Z"&&(e+="Z"),n.v=(rn(e)-new Date(Date.UTC(1899,11,30)))/(24*60*60*1e3),n.v!==n.v?n.v=Cr(e):n.v<60&&(n.v=n.v-1),(!u||u=="General")&&(u="yyyy-mm-dd");case"Number":n.v===void 0&&(n.v=+e),n.t||(n.t="n");break;case"Error":n.t="e",n.v=LZ[e],c.cellText!==!1&&(n.w=e);break;default:e==""&&t==""?n.t="z":(n.t="s",n.v=M5(t||e));break}if(cet(n,u,c),c.cellFormula!==!1)if(n.Formula){var g=Cr(n.Formula);g.charCodeAt(0)==61&&(g=g.slice(1)),n.f=i0(g,a),delete n.Formula,n.ArrayRange=="RC"?n.F=i0("RC:RC",a):n.ArrayRange&&(n.F=i0(n.ArrayRange,a),l.push([yr(n.F),n.F]))}else for(p=0;p=l[p][0].s.r&&a.r<=l[p][0].e.r&&a.c>=l[p][0].s.c&&a.c<=l[p][0].e.c&&(n.F=l[p][1]);c.cellStyles&&(h.forEach(function(v){!m.patternType&&v.patternType&&(m.patternType=v.patternType)}),n.s=m),n.StyleID!==void 0&&(n.ixfe=n.StyleID)}function fet(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,` -`).replace(/\r/g,` -`),e.v=e.w=e.ixfe=void 0}function LE(e,t){var r=t||{};Cm();var n=zf(MR(e));(r.type=="binary"||r.type=="array"||r.type=="base64")&&(typeof xr<"u"?n=xr.utils.decode(65001,ib(n)):n=Lr(n));var a=n.slice(0,1024).toLowerCase(),i=!1;if(a=a.replace(/".*?"/g,""),(a.indexOf(">")&1023)>Math.min(a.indexOf(",")&1023,a.indexOf(";")&1023)){var o=Hr(r);return o.type="string",R0.to_workbook(n,o)}if(a.indexOf("=0&&(i=!0)}),i)return Xet(n,r);Lh={"General Number":"General","General Date":Kt[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":Kt[15],"Short Date":Kt[14],"Long Time":Kt[19],"Medium Time":Kt[18],"Short Time":Kt[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:Kt[2],Standard:Kt[4],Percent:Kt[10],Scientific:Kt[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var s,l=[],c,u={},f=[],m=r.dense?[]:{},h="",p={},g={},v=ns(''),y=0,x=0,b=0,S={s:{r:2e6,c:2e6},e:{r:0,c:0}},w={},E={},C="",O=0,_=[],P={},I={},N=0,D=[],k=[],R={},A=[],j,F=!1,M=[],V=[],K={},L=0,B=0,W={Sheets:[],WBProps:{date1904:!1}},z={};Gp.lastIndex=0,n=n.replace(//mg,"");for(var U="";s=Gp.exec(n);)switch(s[3]=(U=s[3]).toLowerCase()){case"data":if(U=="data"){if(s[1]==="/"){if((c=l.pop())[0]!==s[3])throw new Error("Bad state: "+c.join("|"))}else s[0].charAt(s[0].length-2)!=="/"&&l.push([s[3],!0]);break}if(l[l.length-1][1])break;s[1]==="/"?det(n.slice(y,s.index),C,v,l[l.length-1][0]=="comment"?R:p,{c:x,r:b},w,A[x],g,M,r):(C="",v=ns(s[0]),y=s.index+s[0].length);break;case"cell":if(s[1]==="/")if(k.length>0&&(p.c=k),(!r.sheetRows||r.sheetRows>b)&&p.v!==void 0&&(r.dense?(m[b]||(m[b]=[]),m[b][x]=p):m[tn(x)+_n(b)]=p),p.HRef&&(p.l={Target:Cr(p.HRef)},p.HRefScreenTip&&(p.l.Tooltip=p.HRefScreenTip),delete p.HRef,delete p.HRefScreenTip),(p.MergeAcross||p.MergeDown)&&(L=x+(parseInt(p.MergeAcross,10)|0),B=b+(parseInt(p.MergeDown,10)|0),_.push({s:{c:x,r:b},e:{c:L,r:B}})),!r.sheetStubs)p.MergeAcross?x=L+1:++x;else if(p.MergeAcross||p.MergeDown){for(var X=x;X<=L;++X)for(var Y=b;Y<=B;++Y)(X>x||Y>b)&&(r.dense?(m[Y]||(m[Y]=[]),m[Y][X]={t:"z"}):m[tn(X)+_n(Y)]={t:"z"});x=L+1}else++x;else p=iet(s[0]),p.Index&&(x=+p.Index-1),xS.e.c&&(S.e.c=x),s[0].slice(-2)==="/>"&&++x,k=[];break;case"row":s[1]==="/"||s[0].slice(-2)==="/>"?(bS.e.r&&(S.e.r=b),s[0].slice(-2)==="/>"&&(g=ns(s[0]),g.Index&&(b=+g.Index-1)),x=0,++b):(g=ns(s[0]),g.Index&&(b=+g.Index-1),K={},(g.AutoFitHeight=="0"||g.Height)&&(K.hpx=parseInt(g.Height,10),K.hpt=Zp(K.hpx),V[b]=K),g.Hidden=="1"&&(K.hidden=!0,V[b]=K));break;case"worksheet":if(s[1]==="/"){if((c=l.pop())[0]!==s[3])throw new Error("Bad state: "+c.join("|"));f.push(h),S.s.r<=S.e.r&&S.s.c<=S.e.c&&(m["!ref"]=ir(S),r.sheetRows&&r.sheetRows<=S.e.r&&(m["!fullref"]=m["!ref"],S.e.r=r.sheetRows-1,m["!ref"]=ir(S))),_.length&&(m["!merges"]=_),A.length>0&&(m["!cols"]=A),V.length>0&&(m["!rows"]=V),u[h]=m}else S={s:{r:2e6,c:2e6},e:{r:0,c:0}},b=x=0,l.push([s[3],!1]),c=ns(s[0]),h=Cr(c.Name),m=r.dense?[]:{},_=[],M=[],V=[],z={name:h,Hidden:0},W.Sheets.push(z);break;case"table":if(s[1]==="/"){if((c=l.pop())[0]!==s[3])throw new Error("Bad state: "+c.join("|"))}else{if(s[0].slice(-2)=="/>")break;l.push([s[3],!1]),A=[],F=!1}break;case"style":s[1]==="/"?uet(w,E,r):E=ns(s[0]);break;case"numberformat":E.nf=Cr(ns(s[0]).Format||"General"),Lh[E.nf]&&(E.nf=Lh[E.nf]);for(var G=0;G!=392&&Kt[G]!=E.nf;++G);if(G==392){for(G=57;G!=392;++G)if(Kt[G]==null){el(E.nf,G);break}}break;case"column":if(l[l.length-1][0]!=="table")break;if(j=ns(s[0]),j.Hidden&&(j.hidden=!0,delete j.Hidden),j.Width&&(j.wpx=parseInt(j.Width,10)),!F&&j.wpx>10){F=!0,ri=xJ;for(var Q=0;Q0&&(fe.Sheet=W.Sheets.length-1),W.Names.push(fe);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if(s[0].slice(-2)==="/>")break;s[1]==="/"?C+=n.slice(O,s.index):O=s.index+s[0].length;break;case"interior":if(!r.cellStyles)break;E.Interior=ns(s[0]);break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if(s[0].slice(-2)==="/>")break;s[1]==="/"?DUe(P,U,n.slice(N,s.index)):N=s.index+s[0].length;break;case"paragraphs":break;case"styles":case"workbook":if(s[1]==="/"){if((c=l.pop())[0]!==s[3])throw new Error("Bad state: "+c.join("|"))}else l.push([s[3],!1]);break;case"comment":if(s[1]==="/"){if((c=l.pop())[0]!==s[3])throw new Error("Bad state: "+c.join("|"));fet(R),k.push(R)}else l.push([s[3],!1]),c=ns(s[0]),R={a:c.Author};break;case"autofilter":if(s[1]==="/"){if((c=l.pop())[0]!==s[3])throw new Error("Bad state: "+c.join("|"))}else if(s[0].charAt(s[0].length-2)!=="/"){var te=ns(s[0]);m["!autofilter"]={ref:i0(te.Range).replace(/\$/g,"")},l.push([s[3],!0])}break;case"name":break;case"datavalidation":if(s[1]==="/"){if((c=l.pop())[0]!==s[3])throw new Error("Bad state: "+c.join("|"))}else s[0].charAt(s[0].length-2)!=="/"&&l.push([s[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if(s[1]==="/"){if((c=l.pop())[0]!==s[3])throw new Error("Bad state: "+c.join("|"))}else s[0].charAt(s[0].length-2)!=="/"&&l.push([s[3],!0]);break;case"null":break;default:if(l.length==0&&s[3]=="document"||l.length==0&&s[3]=="uof")return CL(n,r);var re=!0;switch(l[l.length-1][0]){case"officedocumentsettings":switch(s[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:re=!1}break;case"componentoptions":switch(s[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:re=!1}break;case"excelworkbook":switch(s[3]){case"date1904":W.WBProps.date1904=!0;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:re=!1}break;case"workbookoptions":switch(s[3]){case"owcversion":break;case"height":break;case"width":break;default:re=!1}break;case"worksheetoptions":switch(s[3]){case"visible":if(s[0].slice(-2)!=="/>")if(s[1]==="/")switch(n.slice(N,s.index)){case"SheetHidden":z.Hidden=1;break;case"SheetVeryHidden":z.Hidden=2;break}else N=s.index+s[0].length;break;case"header":m["!margins"]||id(m["!margins"]={},"xlml"),isNaN(+Qt(s[0]).Margin)||(m["!margins"].header=+Qt(s[0]).Margin);break;case"footer":m["!margins"]||id(m["!margins"]={},"xlml"),isNaN(+Qt(s[0]).Margin)||(m["!margins"].footer=+Qt(s[0]).Margin);break;case"pagemargins":var q=Qt(s[0]);m["!margins"]||id(m["!margins"]={},"xlml"),isNaN(+q.Top)||(m["!margins"].top=+q.Top),isNaN(+q.Left)||(m["!margins"].left=+q.Left),isNaN(+q.Right)||(m["!margins"].right=+q.Right),isNaN(+q.Bottom)||(m["!margins"].bottom=+q.Bottom);break;case"displayrighttoleft":W.Views||(W.Views=[]),W.Views[0]||(W.Views[0]={}),W.Views[0].RTL=!0;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows":break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":m["!outline"]||(m["!outline"]={}),m["!outline"].above=!0;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":m["!outline"]||(m["!outline"]={}),m["!outline"].left=!0;break;case"blackandwhite":break;case"donotdisplayzeros":break;case"displaypagebreak":break;case"rowcolheadings":break;case"donotdisplayoutline":break;case"noorientation":break;case"allowusepivottables":break;case"zeroheight":break;case"viewablerange":break;case"selection":break;case"protectcontents":break;default:re=!1}break;case"pivottable":case"pivotcache":switch(s[3]){case"immediateitemsondrop":break;case"showpagemultipleitemlabel":break;case"compactrowindent":break;case"location":break;case"pivotfield":break;case"orientation":break;case"layoutform":break;case"layoutsubtotallocation":break;case"layoutcompactrow":break;case"position":break;case"pivotitem":break;case"datatype":break;case"datafield":break;case"sourcename":break;case"parentfield":break;case"ptlineitems":break;case"ptlineitem":break;case"countofsameitems":break;case"item":break;case"itemtype":break;case"ptsource":break;case"cacheindex":break;case"consolidationreference":break;case"filename":break;case"reference":break;case"nocolumngrand":break;case"norowgrand":break;case"blanklineafteritems":break;case"hidden":break;case"subtotal":break;case"basefield":break;case"mapchilditems":break;case"function":break;case"refreshonfileopen":break;case"printsettitles":break;case"mergelabels":break;case"defaultversion":break;case"refreshname":break;case"refreshdate":break;case"refreshdatecopy":break;case"versionlastrefresh":break;case"versionlastupdate":break;case"versionupdateablemin":break;case"versionrefreshablemin":break;case"calculation":break;default:re=!1}break;case"pagebreaks":switch(s[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:re=!1}break;case"autofilter":switch(s[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:re=!1}break;case"querytable":switch(s[3]){case"id":break;case"autoformatfont":break;case"autoformatpattern":break;case"querysource":break;case"querytype":break;case"enableredirections":break;case"refreshedinxl9":break;case"urlstring":break;case"htmltables":break;case"connection":break;case"commandtext":break;case"refreshinfo":break;case"notitles":break;case"nextid":break;case"columninfo":break;case"overwritecells":break;case"donotpromptforfile":break;case"textwizardsettings":break;case"source":break;case"number":break;case"decimal":break;case"thousandseparator":break;case"trailingminusnumbers":break;case"formatsettings":break;case"fieldtype":break;case"delimiters":break;case"tab":break;case"comma":break;case"autoformatname":break;case"versionlastedit":break;case"versionlastrefresh":break;default:re=!1}break;case"datavalidation":switch(s[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;case"cellrangelist":break;default:re=!1}break;case"sorting":case"conditionalformatting":switch(s[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"cellrangelist":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;default:re=!1}break;case"mapinfo":case"schema":case"data":switch(s[3]){case"map":break;case"entry":break;case"range":break;case"xpath":break;case"field":break;case"xsdtype":break;case"filteron":break;case"aggregate":break;case"elementtype":break;case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":break;case"row":break;default:re=!1}break;case"smarttags":break;default:re=!1;break}if(re||s[3].match(/!\[CDATA/))break;if(!l[l.length-1][1])throw"Unrecognized tag: "+s[3]+"|"+l.join("|");if(l[l.length-1][0]==="customdocumentproperties"){if(s[0].slice(-2)==="/>")break;s[1]==="/"?set(I,U,D,n.slice(N,s.index)):(D=s,N=s.index+s[0].length);break}if(r.WTF)throw"Unrecognized tag: "+s[3]+"|"+l.join("|")}var ne={};return!r.bookSheets&&!r.bookProps&&(ne.Sheets=u),ne.SheetNames=f,ne.Workbook=W,ne.SSF=Hr(Kt),ne.Props=P,ne.Custprops=I,ne}function ET(e,t){switch(u4(t=t||{}),t.type||"base64"){case"base64":return LE(ho(e),t);case"binary":case"buffer":case"file":return LE(e,t);case"array":return LE(xu(e),t)}}function met(e,t){var r=[];return e.Props&&r.push(jUe(e.Props,t)),e.Custprops&&r.push(FUe(e.Props,e.Custprops)),r.join("")}function het(){return""}function pet(e,t){var r=[''];return t.cellXfs.forEach(function(n,a){var i=[];i.push(Ct("NumberFormat",null,{"ss:Format":Mr(Kt[n.numFmtId])}));var o={"ss:ID":"s"+(21+a)};r.push(Ct("Style",i.join(""),o))}),Ct("Styles",r.join(""))}function GJ(e){return Ct("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+n4(e.Ref,{r:0,c:0})})}function vet(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],n=0;n"),e["!margins"].header&&a.push(Ct("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&a.push(Ct("Footer",null,{"x:Margin":e["!margins"].footer})),a.push(Ct("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),a.push("")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[r])if(n.Workbook.Sheets[r].Hidden)a.push(Ct("Visible",n.Workbook.Sheets[r].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&a.push(""),e["!protect"]&&(a.push(Va("ProtectContents","True")),e["!protect"].objects&&a.push(Va("ProtectObjects","True")),e["!protect"].scenarios&&a.push(Va("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?a.push(Va("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&a.push(Va("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(o){e["!protect"][o[0]]&&a.push("<"+o[1]+"/>")})),a.length==0?"":Ct("WorksheetOptions",a.join(""),{xmlns:Zi.x})}function xet(e){return e.map(function(t){var r=BVe(t.t||""),n=Ct("ss:Data",r,{xmlns:"http://www.w3.org/TR/REC-html40"});return Ct("Comment",n,{"ss:Author":t.a})}).join("")}function bet(e,t,r,n,a,i,o){if(!e||e.v==null&&e.f==null)return"";var s={};if(e.f&&(s["ss:Formula"]="="+Mr(n4(e.f,o))),e.F&&e.F.slice(0,t.length)==t){var l=mn(e.F.slice(t.length+1));s["ss:ArrayRange"]="RC:R"+(l.r==o.r?"":"["+(l.r-o.r)+"]")+"C"+(l.c==o.c?"":"["+(l.c-o.c)+"]")}if(e.l&&e.l.Target&&(s["ss:HRef"]=Mr(e.l.Target),e.l.Tooltip&&(s["x:HRefScreenTip"]=Mr(e.l.Tooltip))),r["!merges"])for(var c=r["!merges"],u=0;u!=c.length;++u)c[u].s.c!=o.c||c[u].s.r!=o.r||(c[u].e.c>c[u].s.c&&(s["ss:MergeAcross"]=c[u].e.c-c[u].s.c),c[u].e.r>c[u].s.r&&(s["ss:MergeDown"]=c[u].e.r-c[u].s.r));var f="",m="";switch(e.t){case"z":if(!n.sheetStubs)return"";break;case"n":f="Number",m=String(e.v);break;case"b":f="Boolean",m=e.v?"1":"0";break;case"e":f="Error",m=Zl[e.v];break;case"d":f="DateTime",m=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||Kt[14]);break;case"s":f="String",m=LVe(e.v||"");break}var h=Su(n.cellXfs,e,n);s["ss:StyleID"]="s"+(21+h),s["ss:Index"]=o.c+1;var p=e.v!=null?m:"",g=e.t=="z"?"":''+p+"";return(e.c||[]).length>0&&(g+=xet(e.c)),Ct("Cell",g,s)}function wet(e,t){var r='"}function Cet(e,t,r,n){if(!e["!ref"])return"";var a=yr(e["!ref"]),i=e["!merges"]||[],o=0,s=[];e["!cols"]&&e["!cols"].forEach(function(v,y){Jc(v);var x=!!v.width,b=vC(y,v),S={"ss:Index":y+1};x&&(S["ss:Width"]=Yp(b.width)),v.hidden&&(S["ss:Hidden"]="1"),s.push(Ct("Column",null,S))});for(var l=Array.isArray(e),c=a.s.r;c<=a.e.r;++c){for(var u=[wet(c,(e["!rows"]||[])[c])],f=a.s.c;f<=a.e.c;++f){var m=!1;for(o=0;o!=i.length;++o)if(!(i[o].s.c>f)&&!(i[o].s.r>c)&&!(i[o].e.c"),u.length>2&&s.push(u.join(""))}return s.join("")}function Eet(e,t,r){var n=[],a=r.SheetNames[e],i=r.Sheets[a],o=i?get(i,t,e,r):"";return o.length>0&&n.push(""+o+""),o=i?Cet(i,t,e,r):"",o.length>0&&n.push(""+o+"
"),n.push(yet(i,t,e,r)),n.join("")}function $et(e,t){t||(t={}),e.SSF||(e.SSF=Hr(Kt)),e.SSF&&(Cm(),lg(e.SSF),t.revssf=uC(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],Su(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(met(e,t)),r.push(het()),r.push(""),r.push("");for(var n=0;n40||(r.l-=4,t.Reserved1=r.read_shift(0,"lpstr-ansi"),r.length-r.l<=4)||(n=r.read_shift(4),n!==1907505652)||(t.UnicodeClipboardFormat=gUe(r),n=r.read_shift(4),n==0||n>40))return t;r.l-=4,t.Reserved2=r.read_shift(0,"lpwstr")}var Oet=[60,1084,2066,2165,2175];function Tet(e,t,r,n,a){var i=n,o=[],s=r.slice(r.l,r.l+i);if(a&&a.enc&&a.enc.insitu&&s.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:break;case 133:break;default:a.enc.insitu(s)}o.push(s),r.l+=i;for(var l=Sl(r,r.l),c=$T[l],u=0;c!=null&&Oet.indexOf(l)>-1;)i=Sl(r,r.l+2),u=r.l+4,l==2066?u+=4:(l==2165||l==2175)&&(u+=12),s=r.slice(u,r.l+4+i),o.push(s),r.l+=4+i,c=$T[l=Sl(r,r.l)];var f=Pa(o);Wa(f,0);var m=0;f.lens=[];for(var h=0;h1)&&!(Se.sheetRows&&Le.r>=Se.sheetRows)){if(Se.cellStyles&&Ne.XF&&Ne.XF.data&&P(Le,Ne,Se),delete Ne.ixfe,delete Ne.XF,f=Le,m=Xt(Le),(!o||!o.s||!o.e)&&(o={s:{r:0,c:0},e:{r:0,c:0}}),Le.ro.e.r&&(o.e.r=Le.r+1),Le.c+1>o.e.c&&(o.e.c=Le.c+1),Se.cellFormula&&Ne.f){for(var je=0;jeLe.c||x[je][0].s.r>Le.r)&&!(x[je][0].e.c>8)!==Y)throw new Error("rt mismatch: "+ee+"!="+Y);Q.r==12&&(e.l+=10,G-=10)}var H={};if(Y===10?H=Q.f(e,G,N):H=Tet(Y,Q,e,G,N),K==0&&[9,521,1033,2057].indexOf(V)===-1)continue;switch(Y){case 34:r.opts.Date1904=C.WBProps.date1904=H;break;case 134:r.opts.WriteProtect=!0;break;case 47:if(N.enc||(e.l=0),N.enc=H,!t.password)throw new Error("File is password-protected");if(H.valid==null)throw new Error("Encryption scheme unsupported");if(!H.valid)throw new Error("Password is incorrect");break;case 92:N.lastuser=H;break;case 66:var fe=Number(H);switch(fe){case 21010:fe=1200;break;case 32768:fe=1e4;break;case 32769:fe=1252;break}Fo(N.codepage=fe),U=!0;break;case 317:N.rrtabid=H;break;case 25:N.winlocked=H;break;case 439:r.opts.RefreshAll=H;break;case 12:r.opts.CalcCount=H;break;case 16:r.opts.CalcDelta=H;break;case 17:r.opts.CalcIter=H;break;case 13:r.opts.CalcMode=H;break;case 14:r.opts.CalcPrecision=H;break;case 95:r.opts.CalcSaveRecalc=H;break;case 15:N.CalcRefMode=H;break;case 2211:r.opts.FullCalc=H;break;case 129:H.fDialog&&(a["!type"]="dialog"),H.fBelow||((a["!outline"]||(a["!outline"]={})).above=!0),H.fRight||((a["!outline"]||(a["!outline"]={})).left=!0);break;case 224:w.push(H);break;case 430:M.push([H]),M[M.length-1].XTI=[];break;case 35:case 547:M[M.length-1].push(H);break;case 24:case 536:z={Name:H.Name,Ref:ei(H.rgce,o,null,M,N)},H.itab>0&&(z.Sheet=H.itab-1),M.names.push(z),M[0]||(M[0]=[],M[0].XTI=[]),M[M.length-1].push(H),H.Name=="_xlnm._FilterDatabase"&&H.itab>0&&H.rgce&&H.rgce[0]&&H.rgce[0][0]&&H.rgce[0][0][0]=="PtgArea3d"&&(W[H.itab-1]={ref:ir(H.rgce[0][0][1][2])});break;case 22:N.ExternCount=H;break;case 23:M.length==0&&(M[0]=[],M[0].XTI=[]),M[M.length-1].XTI=M[M.length-1].XTI.concat(H),M.XTI=M.XTI.concat(H);break;case 2196:if(N.biff<8)break;z!=null&&(z.Comment=H[1]);break;case 18:a["!protect"]=H;break;case 19:H!==0&&N.WTF&&console.error("Password verifier: "+H);break;case 133:i[H.pos]=H,N.snames.push(H.name);break;case 10:{if(--K)break;if(o.e){if(o.e.r>0&&o.e.c>0){if(o.e.r--,o.e.c--,a["!ref"]=ir(o),t.sheetRows&&t.sheetRows<=o.e.r){var te=o.e.r;o.e.r=t.sheetRows-1,a["!fullref"]=a["!ref"],a["!ref"]=ir(o),o.e.r=te}o.e.r++,o.e.c++}k.length>0&&(a["!merges"]=k),R.length>0&&(a["!objects"]=R),A.length>0&&(a["!cols"]=A),j.length>0&&(a["!rows"]=j),C.Sheets.push(O)}c===""?u=a:n[c]=a,a=t.dense?[]:{}}break;case 9:case 521:case 1033:case 2057:{if(N.biff===8&&(N.biff={9:2,521:3,1033:4}[Y]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[H.BIFFVer]||8),N.biffguess=H.BIFFVer==0,H.BIFFVer==0&&H.dt==4096&&(N.biff=5,U=!0,Fo(N.codepage=28591)),N.biff==8&&H.BIFFVer==0&&H.dt==16&&(N.biff=2),K++)break;if(a=t.dense?[]:{},N.biff<8&&!U&&(U=!0,Fo(N.codepage=t.codepage||1252)),N.biff<5||H.BIFFVer==0&&H.dt==4096){c===""&&(c="Sheet1"),o={s:{r:0,c:0},e:{r:0,c:0}};var re={pos:e.l-G,name:c};i[re.pos]=re,N.snames.push(c)}else c=(i[X]||{name:""}).name;H.dt==32&&(a["!type"]="chart"),H.dt==64&&(a["!type"]="macro"),k=[],R=[],N.arrayf=x=[],A=[],j=[],F=!1,O={Hidden:(i[X]||{hs:0}).hs,name:c}}break;case 515:case 3:case 2:a["!type"]=="chart"&&(t.dense?(a[H.r]||[])[H.c]:a[Xt({c:H.c,r:H.r})])&&++H.c,b={ixfe:H.ixfe,XF:w[H.ixfe]||{},v:H.val,t:"n"},L>0&&(b.z=B[b.ixfe>>8&63]),Fs(b,t,r.opts.Date1904),I({c:H.c,r:H.r},b,t);break;case 5:case 517:b={ixfe:H.ixfe,XF:w[H.ixfe],v:H.val,t:H.t},L>0&&(b.z=B[b.ixfe>>8&63]),Fs(b,t,r.opts.Date1904),I({c:H.c,r:H.r},b,t);break;case 638:b={ixfe:H.ixfe,XF:w[H.ixfe],v:H.rknum,t:"n"},L>0&&(b.z=B[b.ixfe>>8&63]),Fs(b,t,r.opts.Date1904),I({c:H.c,r:H.r},b,t);break;case 189:for(var q=H.c;q<=H.C;++q){var ne=H.rkrec[q-H.c][0];b={ixfe:ne,XF:w[ne],v:H.rkrec[q-H.c][1],t:"n"},L>0&&(b.z=B[b.ixfe>>8&63]),Fs(b,t,r.opts.Date1904),I({c:q,r:H.r},b,t)}break;case 6:case 518:case 1030:{if(H.val=="String"){s=H;break}if(b=Dy(H.val,H.cell.ixfe,H.tt),b.XF=w[b.ixfe],t.cellFormula){var he=H.formula;if(he&&he[0]&&he[0][0]&&he[0][0][0]=="PtgExp"){var ye=he[0][0][1][0],xe=he[0][0][1][1],pe=Xt({r:ye,c:xe});y[pe]?b.f=""+ei(H.formula,o,H.cell,M,N):b.F=((t.dense?(a[ye]||[])[xe]:a[pe])||{}).F}else b.f=""+ei(H.formula,o,H.cell,M,N)}L>0&&(b.z=B[b.ixfe>>8&63]),Fs(b,t,r.opts.Date1904),I(H.cell,b,t),s=H}break;case 7:case 519:if(s)s.val=H,b=Dy(H,s.cell.ixfe,"s"),b.XF=w[b.ixfe],t.cellFormula&&(b.f=""+ei(s.formula,o,s.cell,M,N)),L>0&&(b.z=B[b.ixfe>>8&63]),Fs(b,t,r.opts.Date1904),I(s.cell,b,t),s=null;else throw new Error("String record expects Formula");break;case 33:case 545:{x.push(H);var Pe=Xt(H[0].s);if(h=t.dense?(a[H[0].s.r]||[])[H[0].s.c]:a[Pe],t.cellFormula&&h){if(!s||!Pe||!h)break;h.f=""+ei(H[1],o,H[0],M,N),h.F=ir(H[0])}}break;case 1212:{if(!t.cellFormula)break;if(m){if(!s)break;y[Xt(s.cell)]=H[0],h=t.dense?(a[s.cell.r]||[])[s.cell.c]:a[Xt(s.cell)],(h||{}).f=""+ei(H[0],o,f,M,N)}}break;case 253:b=Dy(l[H.isst].t,H.ixfe,"s"),l[H.isst].h&&(b.h=l[H.isst].h),b.XF=w[b.ixfe],L>0&&(b.z=B[b.ixfe>>8&63]),Fs(b,t,r.opts.Date1904),I({c:H.c,r:H.r},b,t);break;case 513:t.sheetStubs&&(b={ixfe:H.ixfe,XF:w[H.ixfe],t:"z"},L>0&&(b.z=B[b.ixfe>>8&63]),Fs(b,t,r.opts.Date1904),I({c:H.c,r:H.r},b,t));break;case 190:if(t.sheetStubs)for(var $e=H.c;$e<=H.C;++$e){var Ee=H.ixfe[$e-H.c];b={ixfe:Ee,XF:w[Ee],t:"z"},L>0&&(b.z=B[b.ixfe>>8&63]),Fs(b,t,r.opts.Date1904),I({c:$e,r:H.r},b,t)}break;case 214:case 516:case 4:b=Dy(H.val,H.ixfe,"s"),b.XF=w[b.ixfe],L>0&&(b.z=B[b.ixfe>>8&63]),Fs(b,t,r.opts.Date1904),I({c:H.c,r:H.r},b,t);break;case 0:case 512:K===1&&(o=H);break;case 252:l=H;break;case 1054:if(N.biff==4){B[L++]=H[1];for(var He=0;He=163&&el(H[1],L+163)}else el(H[1],H[0]);break;case 30:{B[L++]=H;for(var Fe=0;Fe=163&&el(H,L+163)}break;case 229:k=k.concat(H);break;case 93:R[H.cmo[0]]=N.lastobj=H;break;case 438:N.lastobj.TxO=H;break;case 127:N.lastobj.ImData=H;break;case 440:for(v=H[0].s.r;v<=H[0].e.r;++v)for(g=H[0].s.c;g<=H[0].e.c;++g)h=t.dense?(a[v]||[])[g]:a[Xt({c:g,r:v})],h&&(h.l=H[1]);break;case 2048:for(v=H[0].s.r;v<=H[0].e.r;++v)for(g=H[0].s.c;g<=H[0].e.c;++g)h=t.dense?(a[v]||[])[g]:a[Xt({c:g,r:v})],h&&h.l&&(h.l.Tooltip=H[1]);break;case 28:{if(N.biff<=5&&N.biff>=2)break;h=t.dense?(a[H[0].r]||[])[H[0].c]:a[Xt(H[0])];var nt=R[H[2]];h||(t.dense?(a[H[0].r]||(a[H[0].r]=[]),h=a[H[0].r][H[0].c]={t:"z"}):h=a[Xt(H[0])]={t:"z"},o.e.r=Math.max(o.e.r,H[0].r),o.s.r=Math.min(o.s.r,H[0].r),o.e.c=Math.max(o.e.c,H[0].c),o.s.c=Math.min(o.s.c,H[0].c)),h.c||(h.c=[]),p={a:H[1],t:nt.TxO.t},h.c.push(p)}break;case 2173:pXe(w[H.ixfe],H.ext);break;case 125:{if(!N.cellStyles)break;for(;H.e>=H.s;)A[H.e--]={width:H.w/256,level:H.level||0,hidden:!!(H.flags&1)},F||(F=!0,e4(H.w/256)),Jc(A[H.e+1])}break;case 520:{var qe={};H.level!=null&&(j[H.r]=qe,qe.level=H.level),H.hidden&&(j[H.r]=qe,qe.hidden=!0),H.hpt&&(j[H.r]=qe,qe.hpt=H.hpt,qe.hpx=A0(H.hpt))}break;case 38:case 39:case 40:case 41:a["!margins"]||id(a["!margins"]={}),a["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[Y]]=H;break;case 161:a["!margins"]||id(a["!margins"]={}),a["!margins"].header=H.header,a["!margins"].footer=H.footer;break;case 574:H.RTL&&(C.Views[0].RTL=!0);break;case 146:E=H;break;case 2198:D=H;break;case 140:S=H;break;case 442:c?O.CodeName=H||O.name:C.WBProps.CodeName=H||"ThisWorkbook";break}}else Q||console.error("Missing Info for XLS Record 0x"+Y.toString(16)),e.l+=G}return r.SheetNames=Tn(i).sort(function(Ge,Le){return Number(Ge)-Number(Le)}).map(function(Ge){return i[Ge].name}),t.bookSheets||(r.Sheets=n),!r.SheetNames.length&&u["!ref"]?(r.SheetNames.push("Sheet1"),r.Sheets&&(r.Sheets.Sheet1=u)):r.Preamble=u,r.Sheets&&W.forEach(function(Ge,Le){r.Sheets[r.SheetNames[Le]]["!autofilter"]=Ge}),r.Strings=l,r.SSF=Hr(Kt),N.enc&&(r.Encryption=N.enc),D&&(r.Themes=D),r.Metadata={},S!==void 0&&(r.Metadata.Country=S),M.names.length>0&&(C.Names=M.names),r.Workbook=C,r}var Bh={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function Iet(e,t,r){var n=Vt.find(e,"/!DocumentSummaryInformation");if(n&&n.size>0)try{var a=J5(n,yT,Bh.DSI);for(var i in a)t[i]=a[i]}catch(c){if(r.WTF)throw c}var o=Vt.find(e,"/!SummaryInformation");if(o&&o.size>0)try{var s=J5(o,xT,Bh.SI);for(var l in s)t[l]==null&&(t[l]=s[l])}catch(c){if(r.WTF)throw c}t.HeadingPairs&&t.TitlesOfParts&&(UZ(t.HeadingPairs,t.TitlesOfParts,t,r),delete t.HeadingPairs,delete t.TitlesOfParts)}function Net(e,t){var r=[],n=[],a=[],i=0,o,s=P5(yT,"n"),l=P5(xT,"n");if(e.Props)for(o=Tn(e.Props),i=0;i-1||VZ.indexOf(a[i][0])>-1||a[i][1]!=null&&c.push(a[i]);n.length&&Vt.utils.cfb_add(t,"/SummaryInformation",eL(n,Bh.SI,l,xT)),(r.length||c.length)&&Vt.utils.cfb_add(t,"/DocumentSummaryInformation",eL(r,Bh.DSI,s,yT,c.length?c:null,Bh.UDI))}function l4(e,t){t||(t={}),u4(t),lC(),t.codepage&&sC(t.codepage);var r,n;if(e.FullPaths){if(Vt.find(e,"/encryption"))throw new Error("File is password-protected");r=Vt.find(e,"!CompObj"),n=Vt.find(e,"/Workbook")||Vt.find(e,"/Book")}else{switch(t.type){case"base64":e=eo(ho(e));break;case"binary":e=eo(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e));break}Wa(e,0),n={content:e}}var a,i;if(r&&_et(r),t.bookProps&&!t.bookSheets)a={};else{var o=ur?"buffer":"array";if(n&&n.content)a=Pet(n.content,t);else if((i=Vt.find(e,"PerfectOffice_MAIN"))&&i.content)a=ad.to_workbook(i.content,(t.type=o,t));else if((i=Vt.find(e,"NativeContent_MAIN"))&&i.content)a=ad.to_workbook(i.content,(t.type=o,t));else throw(i=Vt.find(e,"MN0"))&&i.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");t.bookVBA&&e.FullPaths&&Vt.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(a.vbaraw=WXe(e))}var s={};return e.FullPaths&&Iet(e,s,t),a.Props=a.Custprops=s,t.bookFiles&&(a.cfb=e),a}function ket(e,t){var r=t||{},n=Vt.utils.cfb_new({root:"R"}),a="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":a="/Workbook",r.biff=8;break;case"biff5":a="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return Vt.utils.cfb_add(n,a,qJ(e,r)),r.biff==8&&(e.Props||e.Custprops)&&Net(e,n),r.biff==8&&e.vbaraw&&VXe(n,Vt.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),n}var Jp={0:{f:tZe},1:{f:cZe},2:{f:TZe},3:{f:gZe},4:{f:mZe},5:{f:$Ze},6:{f:RZe},7:{f:SZe},8:{f:BZe},9:{f:LZe},10:{f:jZe},11:{f:FZe},12:{f:dZe},13:{f:IZe},14:{f:xZe},15:{f:pZe},16:{f:LJ},17:{f:MZe},18:{f:CZe},19:{f:VR},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:AJe},40:{},42:{},43:{f:Rqe},44:{f:Nqe},45:{f:Dqe},46:{f:Fqe},47:{f:jqe},48:{},49:{f:aUe},50:{},51:{f:yXe},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:cJ},62:{f:kZe},63:{f:OXe},64:{f:rJe},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:di,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:ZZe},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:sZe},148:{f:aZe,p:16},151:{f:KZe},152:{},153:{f:NJe},154:{},155:{},156:{f:PJe},157:{},158:{},159:{T:1,f:qGe},160:{T:-1},161:{T:1,f:Jd},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:zZe},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:vXe},336:{T:-1},337:{f:SXe,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:gT},357:{},358:{},359:{},360:{T:1},361:{},362:{f:lJ},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:GZe},427:{f:qZe},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:YZe},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:oZe},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:VZe},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:gT},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:FXe},633:{T:1},634:{T:-1},635:{T:1,f:DXe},636:{T:-1},637:{f:lUe},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:xJe},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:nJe},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},$T={6:{f:jE},10:{f:nc},12:{f:qn},13:{f:qn},14:{f:Rn},15:{f:Rn},16:{f:ai},17:{f:Rn},18:{f:Rn},19:{f:qn},20:{f:oL},21:{f:oL},23:{f:lJ},24:{f:lL},25:{f:Rn},26:{},27:{},28:{f:nGe},29:{},34:{f:Rn},35:{f:sL},38:{f:ai},39:{f:ai},40:{f:ai},41:{f:ai},42:{f:Rn},43:{f:Rn},47:{f:pqe},49:{f:IKe},51:{f:qn},60:{},61:{f:$Ke},64:{f:Rn},65:{f:PKe},66:{f:qn},77:{},80:{},81:{},82:{},85:{f:qn},89:{},90:{},91:{},92:{f:hKe},93:{f:oGe},94:{},95:{f:Rn},96:{},97:{},99:{f:Rn},125:{f:cJ},128:{f:UKe},129:{f:vKe},130:{f:qn},131:{f:Rn},132:{f:Rn},133:{f:gKe},134:{},140:{f:hGe},141:{f:qn},144:{},146:{f:gGe},151:{},152:{},153:{},154:{},155:{},156:{f:qn},157:{},158:{},160:{f:EGe},161:{f:bGe},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:zKe},190:{f:HKe},193:{f:nc},197:{},198:{},199:{},200:{},201:{},202:{f:Rn},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:qn},220:{},221:{f:Rn},222:{},224:{f:VKe},225:{f:mKe},226:{f:nc},227:{},229:{f:aGe},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:xKe},253:{f:kKe},255:{f:SKe},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:JZ},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:Rn},353:{f:nc},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:YKe},431:{f:Rn},432:{},433:{},434:{},437:{},438:{f:cGe},439:{f:Rn},440:{f:uGe},441:{},442:{f:dg},443:{},444:{f:qn},445:{},446:{},448:{f:nc},449:{f:EKe,r:2},450:{f:nc},512:{f:nL},513:{f:CGe},515:{f:qKe},516:{f:AKe},517:{f:iL},519:{f:$Ge},520:{f:wKe},523:{},545:{f:cL},549:{f:rL},566:{},574:{f:OKe},638:{f:BKe},659:{},1048:{},1054:{f:DKe},1084:{},1212:{f:eGe},2048:{f:fGe},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:Ry},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:nc},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:yGe,r:12},2173:{f:hXe,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:Rn,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:JKe,r:12},2197:{},2198:{f:lXe,r:12},2199:{},2200:{},2201:{},2202:{f:tGe,r:12},2203:{f:nc},2204:{},2205:{},2206:{},2207:{},2211:{f:CKe},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:qn},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:SGe},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:vGe},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:nL},1:{},2:{f:IGe},3:{f:TGe},4:{f:OGe},5:{f:iL},7:{f:kGe},8:{},9:{f:Ry},11:{},22:{f:qn},30:{f:FKe},31:{},32:{},33:{f:cL},36:{},37:{f:rL},50:{f:RGe},62:{},52:{},67:{},68:{f:qn},69:{},86:{},126:{},127:{f:_Ge},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:AGe},223:{},234:{},354:{},421:{},518:{f:jE},521:{f:Ry},536:{f:lL},547:{f:sL},561:{},579:{},1030:{f:jE},1033:{f:Ry},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function Et(e,t,r,n){var a=t;if(!isNaN(a)){var i=n||(r||[]).length||0,o=e.next(4);o.write_shift(2,a),o.write_shift(2,i),i>0&&zR(r)&&e.push(r)}}function Ret(e,t,r,n){var a=n||(r||[]).length||0;if(a<=8224)return Et(e,t,r,a);var i=t;if(!isNaN(i)){for(var o=r.parts||[],s=0,l=0,c=0;c+(o[s]||8224)<=8224;)c+=o[s]||8224,s++;var u=e.next(4);for(u.write_shift(2,i),u.write_shift(2,c),e.push(r.slice(l,l+c)),l+=c;l=0&&a<65536?Et(e,2,NGe(r,n,a)):Et(e,3,PGe(r,n,a));return;case"b":case"e":Et(e,5,Aet(r,n,t.v,t.t));return;case"s":case"str":Et(e,4,Met(r,n,(t.v||"").slice(0,255)));return}Et(e,1,pg(null,r,n))}function jet(e,t,r,n){var a=Array.isArray(t),i=yr(t["!ref"]||"A1"),o,s="",l=[];if(i.e.c>255||i.e.r>16383){if(n.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");i.e.c=Math.min(i.e.c,255),i.e.r=Math.min(i.e.c,16383),o=ir(i)}for(var c=i.s.r;c<=i.e.r;++c){s=_n(c);for(var u=i.s.c;u<=i.e.c;++u){c===i.s.r&&(l[u]=tn(u)),o=l[u]+s;var f=a?(t[c]||[])[u]:t[o];f&&Det(e,f,c,u)}}}function Fet(e,t){for(var r=t||{},n=zi(),a=0,i=0;i255||h.e.r>=p){if(t.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV16384");h.e.c=Math.min(h.e.c,255),h.e.r=Math.min(h.e.c,p-1)}Et(n,2057,QR(r,16,t)),Et(n,13,ko(1)),Et(n,12,ko(100)),Et(n,15,gi(!0)),Et(n,17,gi(!1)),Et(n,16,Pd(.001)),Et(n,95,gi(!0)),Et(n,42,gi(!1)),Et(n,43,gi(!1)),Et(n,130,ko(1)),Et(n,128,KKe([0,0])),Et(n,131,gi(!1)),Et(n,132,gi(!1)),c&&Vet(n,i["!cols"]),Et(n,512,LKe(h,t)),c&&(i["!links"]=[]);for(var g=h.s.r;g<=h.e.r;++g){f=_n(g);for(var v=h.s.c;v<=h.e.c;++v){g===h.s.r&&(m[v]=tn(v)),u=m[v]+f;var y=l?(i[g]||[])[v]:i[u];y&&(Uet(n,y,g,v,t),c&&y.l&&i["!links"].push([u,y.l]))}}var x=s.CodeName||s.name||a;return c&&Et(n,574,TKe((o.Views||[])[0])),c&&(i["!merges"]||[]).length&&Et(n,229,iGe(i["!merges"])),c&&Wet(n,i),Et(n,442,tJ(x)),c&&zet(n,i),Et(n,10),n.end()}function Get(e,t,r){var n=zi(),a=(e||{}).Workbook||{},i=a.Sheets||[],o=a.WBProps||{},s=r.biff==8,l=r.biff==5;if(Et(n,2057,QR(e,5,r)),r.bookType=="xla"&&Et(n,135),Et(n,225,s?ko(1200):null),Et(n,193,GUe(2)),l&&Et(n,191),l&&Et(n,192),Et(n,226),Et(n,92,pKe("SheetJS",r)),Et(n,66,ko(s?1200:1252)),s&&Et(n,353,ko(0)),s&&Et(n,448),Et(n,317,wGe(e.SheetNames.length)),s&&e.vbaraw&&Et(n,211),s&&e.vbaraw){var c=o.CodeName||"ThisWorkbook";Et(n,442,tJ(c))}Et(n,156,ko(17)),Et(n,25,gi(!1)),Et(n,18,gi(!1)),Et(n,19,ko(0)),s&&Et(n,431,gi(!1)),s&&Et(n,444,ko(0)),Et(n,61,_Ke()),Et(n,64,gi(!1)),Et(n,141,ko(0)),Et(n,34,gi(EJe(e)=="true")),Et(n,14,gi(!0)),s&&Et(n,439,gi(!1)),Et(n,218,ko(0)),Let(n,e,r),Bet(n,e.SSF,r),Het(n,r),s&&Et(n,352,gi(!1));var u=n.end(),f=zi();s&&Et(f,140,pGe()),s&&r.Strings&&Ret(f,252,bKe(r.Strings)),Et(f,10);var m=f.end(),h=zi(),p=0,g=0;for(g=0;g255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255). Data may be lost.")}}var i=t||{};switch(i.biff||2){case 8:case 5:return qet(e,t);case 4:case 3:case 2:return Fet(e,t)}throw new Error("invalid type "+i.bookType+" for BIFF")}function xL(e,t){var r=t||{},n=r.dense?[]:{};e=e.replace(//g,"");var a=e.match(/");var i=e.match(/<\/table/i),o=a.index,s=i&&i.index||e.length,l=kVe(e.slice(o,s),/(:?]*>)/i,""),c=-1,u=0,f=0,m=0,h={s:{r:1e7,c:1e7},e:{r:0,c:0}},p=[];for(o=0;o/i);for(s=0;s"))>-1;)b=b.slice(S+1);for(var w=0;w")));m=C.colspan?+C.colspan:1,((f=+C.rowspan)>1||m>1)&&p.push({s:{r:c,c:u},e:{r:c+(f||1)-1,c:u+m-1}});var O=C.t||C["data-t"]||"";if(!b.length){u+=m;continue}if(b=wZ(b),h.s.r>c&&(h.s.r=c),h.e.ru&&(h.s.c=u),h.e.cr||a[c].s.c>o)&&!(a[c].e.r1&&(h.rowspan=s),l>1&&(h.colspan=l),n.editable?m=''+m+"":f&&(h["data-t"]=f&&f.t||"z",f.v!=null&&(h["data-v"]=f.v),f.z!=null&&(h["data-z"]=f.z),f.l&&(f.l.Target||"#").charAt(0)!="#"&&(m=''+m+"")),h.id=(n.id||"sjs")+"-"+u,i.push(Ct("td",m,h))}}var p="";return p+i.join("")+""}var YJ='SheetJS Table Export',QJ="";function Xet(e,t){var r=e.match(/[\s\S]*?<\/table>/gi);if(!r||r.length==0)throw new Error("Invalid HTML: could not find
");if(r.length==1)return bu(xL(r[0],t),t);var n=v4();return r.forEach(function(a,i){g4(n,xL(a,t),"Sheet"+(i+1))}),n}function ZJ(e,t,r){var n=[];return n.join("")+""}function JJ(e,t){var r=t||{},n=r.header!=null?r.header:YJ,a=r.footer!=null?r.footer:QJ,i=[n],o=$i(e["!ref"]);r.dense=Array.isArray(e),i.push(ZJ(e,o,r));for(var s=o.s.r;s<=o.e.r;++s)i.push(XJ(e,o,s,r));return i.push("
"+a),i.join("")}function eee(e,t,r){var n=r||{},a=0,i=0;if(n.origin!=null)if(typeof n.origin=="number")a=n.origin;else{var o=typeof n.origin=="string"?mn(n.origin):n.origin;a=o.r,i=o.c}var s=t.getElementsByTagName("tr"),l=Math.min(n.sheetRows||1e7,s.length),c={s:{r:0,c:0},e:{r:a,c:i}};if(e["!ref"]){var u=$i(e["!ref"]);c.s.r=Math.min(c.s.r,u.s.r),c.s.c=Math.min(c.s.c,u.s.c),c.e.r=Math.max(c.e.r,u.e.r),c.e.c=Math.max(c.e.c,u.e.c),a==-1&&(c.e.r=a=u.e.r+1)}var f=[],m=0,h=e["!rows"]||(e["!rows"]=[]),p=0,g=0,v=0,y=0,x=0,b=0;for(e["!cols"]||(e["!cols"]=[]);p1||b>1)&&f.push({s:{r:g+a,c:y+i},e:{r:g+a+(x||1)-1,c:y+i+(b||1)-1}});var P={t:"s",v:C},I=E.getAttribute("data-t")||E.getAttribute("t")||"";C!=null&&(C.length==0?P.t=I||"z":n.raw||C.trim().length==0||I=="s"||(C==="TRUE"?P={t:"b",v:!0}:C==="FALSE"?P={t:"b",v:!1}:isNaN(Cs(C))?isNaN(k0(C).getDate())||(P={t:"d",v:rn(C)},n.cellDates||(P={t:"n",v:ya(P.v)}),P.z=n.dateNF||Kt[14]):P={t:"n",v:Cs(C)})),P.z===void 0&&O!=null&&(P.z=O);var N="",D=E.getElementsByTagName("A");if(D&&D.length)for(var k=0;k=l&&(e["!fullref"]=ir((c.e.r=s.length-p+g-1+a,c))),e}function tee(e,t){var r=t||{},n=r.dense?[]:{};return eee(n,e,t)}function Yet(e,t){return bu(tee(e,t),t)}function bL(e){var t="",r=Qet(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),t==="none"}function Qet(e){return e.ownerDocument.defaultView&&typeof e.ownerDocument.defaultView.getComputedStyle=="function"?e.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}function Zet(e){var t=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(//g," ").replace(//g,function(n,a){return Array(parseInt(a,10)+1).join(" ")}).replace(/]*\/>/g," ").replace(//g,` -`),r=Cr(t.replace(/<[^>]*>/g,""));return[r]}var SL={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function ree(e,t){var r=t||{},n=MR(e),a=[],i,o,s={name:""},l="",c=0,u,f,m={},h=[],p=r.dense?[]:{},g,v,y={value:""},x="",b=0,S=[],w=-1,E=-1,C={s:{r:1e6,c:1e7},e:{r:0,c:0}},O=0,_={},P=[],I={},N=0,D=0,k=[],R=1,A=1,j=[],F={Names:[]},M={},V=["",""],K=[],L={},B="",W=0,z=!1,U=!1,X=0;for(Gp.lastIndex=0,n=n.replace(//mg,"").replace(//gm,"");g=Gp.exec(n);)switch(g[3]=g[3].replace(/_.*$/,"")){case"table":case"工作表":g[1]==="/"?(C.e.c>=C.s.c&&C.e.r>=C.s.r?p["!ref"]=ir(C):p["!ref"]="A1:A1",r.sheetRows>0&&r.sheetRows<=C.e.r&&(p["!fullref"]=p["!ref"],C.e.r=r.sheetRows-1,p["!ref"]=ir(C)),P.length&&(p["!merges"]=P),k.length&&(p["!rows"]=k),u.name=u.名称||u.name,typeof JSON<"u"&&JSON.stringify(u),h.push(u.name),m[u.name]=p,U=!1):g[0].charAt(g[0].length-2)!=="/"&&(u=Qt(g[0],!1),w=E=-1,C.s.r=C.s.c=1e7,C.e.r=C.e.c=0,p=r.dense?[]:{},P=[],k=[],U=!0);break;case"table-row-group":g[1]==="/"?--O:++O;break;case"table-row":case"行":if(g[1]==="/"){w+=R,R=1;break}if(f=Qt(g[0],!1),f.行号?w=f.行号-1:w==-1&&(w=0),R=+f["number-rows-repeated"]||1,R<10)for(X=0;X0&&(k[w+X]={level:O});E=-1;break;case"covered-table-cell":g[1]!=="/"&&++E,r.sheetStubs&&(r.dense?(p[w]||(p[w]=[]),p[w][E]={t:"z"}):p[Xt({r:w,c:E})]={t:"z"}),x="",S=[];break;case"table-cell":case"数据":if(g[0].charAt(g[0].length-2)==="/")++E,y=Qt(g[0],!1),A=parseInt(y["number-columns-repeated"]||"1",10),v={t:"z",v:null},y.formula&&r.cellFormula!=!1&&(v.f=vL(Cr(y.formula))),(y.数据类型||y["value-type"])=="string"&&(v.t="s",v.v=Cr(y["string-value"]||""),r.dense?(p[w]||(p[w]=[]),p[w][E]=v):p[Xt({r:w,c:E})]=v),E+=A-1;else if(g[1]!=="/"){++E,x="",b=0,S=[],A=1;var Y=R?w+R-1:w;if(E>C.e.c&&(C.e.c=E),EC.e.r&&(C.e.r=Y),y=Qt(g[0],!1),K=[],L={},v={t:y.数据类型||y["value-type"],v:null},r.cellFormula)if(y.formula&&(y.formula=Cr(y.formula)),y["number-matrix-columns-spanned"]&&y["number-matrix-rows-spanned"]&&(N=parseInt(y["number-matrix-rows-spanned"],10)||0,D=parseInt(y["number-matrix-columns-spanned"],10)||0,I={s:{r:w,c:E},e:{r:w+N-1,c:E+D-1}},v.F=ir(I),j.push([I,v.F])),y.formula)v.f=vL(y.formula);else for(X=0;X=j[X][0].s.r&&w<=j[X][0].e.r&&E>=j[X][0].s.c&&E<=j[X][0].e.c&&(v.F=j[X][1]);switch((y["number-columns-spanned"]||y["number-rows-spanned"])&&(N=parseInt(y["number-rows-spanned"],10)||0,D=parseInt(y["number-columns-spanned"],10)||0,I={s:{r:w,c:E},e:{r:w+N-1,c:E+D-1}},P.push(I)),y["number-columns-repeated"]&&(A=parseInt(y["number-columns-repeated"],10)),v.t){case"boolean":v.t="b",v.v=Jr(y["boolean-value"]);break;case"float":v.t="n",v.v=parseFloat(y.value);break;case"percentage":v.t="n",v.v=parseFloat(y.value);break;case"currency":v.t="n",v.v=parseFloat(y.value);break;case"date":v.t="d",v.v=rn(y["date-value"]),r.cellDates||(v.t="n",v.v=ya(v.v)),v.z="m/d/yy";break;case"time":v.t="n",v.v=PVe(y["time-value"])/86400,r.cellDates&&(v.t="d",v.v=dC(v.v)),v.z="HH:MM:SS";break;case"number":v.t="n",v.v=parseFloat(y.数据数值);break;default:if(v.t==="string"||v.t==="text"||!v.t)v.t="s",y["string-value"]!=null&&(x=Cr(y["string-value"]),S=[]);else throw new Error("Unsupported value type "+v.t)}}else{if(z=!1,v.t==="s"&&(v.v=x||"",S.length&&(v.R=S),z=b==0),M.Target&&(v.l=M),K.length>0&&(v.c=K,K=[]),x&&r.cellText!==!1&&(v.w=x),z&&(v.t="z",delete v.v),(!z||r.sheetStubs)&&!(r.sheetRows&&r.sheetRows<=w))for(var G=0;G0;)p[w+G][E+A]=Hr(v);else for(p[Xt({r:w+G,c:E})]=v;--A>0;)p[Xt({r:w+G,c:E+A})]=Hr(v);C.e.c<=E&&(C.e.c=E)}A=parseInt(y["number-columns-repeated"]||"1",10),E+=A-1,A=0,v={},x="",S=[]}M={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(g[1]==="/"){if((i=a.pop())[0]!==g[3])throw"Bad state: "+i}else g[0].charAt(g[0].length-2)!=="/"&&a.push([g[3],!0]);break;case"annotation":if(g[1]==="/"){if((i=a.pop())[0]!==g[3])throw"Bad state: "+i;L.t=x,S.length&&(L.R=S),L.a=B,K.push(L)}else g[0].charAt(g[0].length-2)!=="/"&&a.push([g[3],!1]);B="",W=0,x="",b=0,S=[];break;case"creator":g[1]==="/"?B=n.slice(W,g.index):W=g.index+g[0].length;break;case"meta":case"元数据":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if(g[1]==="/"){if((i=a.pop())[0]!==g[3])throw"Bad state: "+i}else g[0].charAt(g[0].length-2)!=="/"&&a.push([g[3],!1]);x="",b=0,S=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(g[1]==="/"){if(_[s.name]=l,(i=a.pop())[0]!==g[3])throw"Bad state: "+i}else g[0].charAt(g[0].length-2)!=="/"&&(l="",s=Qt(g[0],!1),a.push([g[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(a[a.length-1][0]){case"time-style":case"date-style":o=Qt(g[0],!1),l+=SL[g[3]][o.style==="long"?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(a[a.length-1][0]){case"time-style":case"date-style":o=Qt(g[0],!1),l+=SL[g[3]][o.style==="long"?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(g[0].slice(-2)==="/>")break;if(g[1]==="/")switch(a[a.length-1][0]){case"number-style":case"date-style":case"time-style":l+=n.slice(c,g.index);break}else c=g.index+g[0].length;break;case"named-range":o=Qt(g[0],!1),V=FE(o["cell-range-address"]);var Q={Name:o.name,Ref:V[0]+"!"+V[1]};U&&(Q.Sheet=h.length),F.Names.push(Q);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"电子表格":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"文本串":if(["master-styles"].indexOf(a[a.length-1][0])>-1)break;if(g[1]==="/"&&(!y||!y["string-value"])){var ee=Zet(n.slice(b,g.index));x=(x.length>0?x+` -`:"")+ee[0]}else Qt(g[0],!1),b=g.index+g[0].length;break;case"s":break;case"database-range":if(g[1]==="/")break;try{V=FE(Qt(g[0])["target-range-address"]),m[V[0]]["!autofilter"]={ref:V[1]}}catch{}break;case"date":break;case"object":break;case"title":case"标题":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if(g[1]!=="/"){if(M=Qt(g[0],!1),!M.href)break;M.Target=Cr(M.href),delete M.href,M.Target.charAt(0)=="#"&&M.Target.indexOf(".")>-1?(V=FE(M.Target.slice(1)),M.Target="#"+V[0]+"!"+V[1]):M.Target.match(/^\.\.[\\\/]/)&&(M.Target=M.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(g[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(r.WTF)throw new Error(g)}}var H={Sheets:m,SheetNames:h,Workbook:F};return r.bookSheets&&delete H.Sheets,H}function wL(e,t){t=t||{},Io(e,"META-INF/manifest.xml")&&TUe(Gn(e,"META-INF/manifest.xml"),t);var r=to(e,"content.xml");if(!r)throw new Error("Missing content.xml in ODS / UOF file");var n=ree(Lr(r),t);return Io(e,"meta.xml")&&(n.Props=HZ(Gn(e,"meta.xml"))),n}function CL(e,t){return ree(e,t)}var Jet=function(){var e=["",'',"",'',"",'',"",""].join(""),t=""+e+"";return function(){return Ln+t}}(),EL=function(){var e=function(i){return Mr(i).replace(/ +/g,function(o){return''}).replace(/\t/g,"").replace(/\n/g,"").replace(/^ /,"").replace(/ $/,"")},t=` -`,r=` -`,n=function(i,o,s){var l=[];l.push(' -`);var c=0,u=0,f=$i(i["!ref"]||"A1"),m=i["!merges"]||[],h=0,p=Array.isArray(i);if(i["!cols"])for(u=0;u<=f.e.c;++u)l.push(" -`);var g="",v=i["!rows"]||[];for(c=0;c -`);for(;c<=f.e.r;++c){for(g=v[c]?' table:style-name="ro'+v[c].ods+'"':"",l.push(" -`),u=0;uu)&&!(m[h].s.r>c)&&!(m[h].e.c -`)}return l.push(` -`),l.join("")},a=function(i,o){i.push(` -`),i.push(` -`),i.push(` -`),i.push(` / -`),i.push(` -`),i.push(` / -`),i.push(` -`),i.push(` -`);var s=0;o.SheetNames.map(function(c){return o.Sheets[c]}).forEach(function(c){if(c&&c["!cols"]){for(var u=0;u -`),i.push(' -`),i.push(` -`),++s}}});var l=0;o.SheetNames.map(function(c){return o.Sheets[c]}).forEach(function(c){if(c&&c["!rows"]){for(var u=0;u -`),i.push(' -`),i.push(` -`),++l}}}),i.push(` -`),i.push(` -`),i.push(` -`),i.push(` -`),i.push(` -`)};return function(o,s){var l=[Ln],c=Kp({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),u=Kp({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});s.bookType=="fods"?(l.push(" -`),l.push(zZ().replace(/office:document-meta/g,"office:meta"))):l.push(" -`),a(l,o),l.push(` -`),l.push(` -`);for(var f=0;f!=o.SheetNames.length;++f)l.push(n(o.Sheets[o.SheetNames[f]],o,f));return l.push(` -`),l.push(` -`),s.bookType=="fods"?l.push(""):l.push(""),l.join("")}}();function nee(e,t){if(t.bookType=="fods")return EL(e,t);var r=NR(),n="",a=[],i=[];return n="mimetype",or(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",or(r,n,EL(e,t)),a.push([n,"text/xml"]),i.push([n,"ContentFile"]),n="styles.xml",or(r,n,Jet(e,t)),a.push([n,"text/xml"]),i.push([n,"StylesFile"]),n="meta.xml",or(r,n,Ln+zZ()),a.push([n,"text/xml"]),i.push([n,"MetadataFile"]),n="manifest.rdf",or(r,n,NUe(i)),a.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",or(r,n,PUe(a)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function kd(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function _T(e){return typeof TextDecoder<"u"?new TextDecoder().decode(e):Lr(xu(e))}function ett(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):eo(Ys(e))}function ttt(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var n=0;n>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>>24}function rtt(e,t){for(var r=(e[t+15]&127)<<7|e[t+14]>>1,n=e[t+14]&1,a=t+13;a>=t;--a)n=n*256+e[a];return(e[t+15]&128?-n:n)*Math.pow(10,r-6176)}function ntt(e,t,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,a=r/Math.pow(10,n-6176);e[t+15]|=n>>7,e[t+14]|=(n&127)<<1;for(var i=0;a>=1;++i,a/=256)e[t+i]=a&255;e[t+15]|=r>=0?0:128}function ev(e,t){var r=t?t[0]:0,n=e[r]&127;e:if(e[r++]>=128&&(n|=(e[r]&127)<<7,e[r++]<128||(n|=(e[r]&127)<<14,e[r++]<128)||(n|=(e[r]&127)<<21,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return t&&(t[0]=r),n}function kr(e){var t=new Uint8Array(7);t[0]=e&127;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383||(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)||(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)||(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)||(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103))break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function On(e){var t=0,r=e[t]&127;e:if(e[t++]>=128){if(r|=(e[t]&127)<<7,e[t++]<128||(r|=(e[t]&127)<<14,e[t++]<128)||(r|=(e[t]&127)<<21,e[t++]<128))break e;r|=(e[t]&127)<<28}return r}function $r(e){for(var t=[],r=[0];r[0]=128;);s=e.slice(l,r[0])}break;case 5:o=4,s=e.slice(r[0],r[0]+o),r[0]+=o;break;case 1:o=8,s=e.slice(r[0],r[0]+o),r[0]+=o;break;case 2:o=ev(e,r),s=e.slice(r[0],r[0]+o),r[0]+=o;break;case 3:case 4:default:throw new Error("PB Type ".concat(i," for Field ").concat(a," at offset ").concat(n))}var c={data:s,type:i};t[a]==null?t[a]=[c]:t[a].push(c)}return t}function La(e){var t=[];return e.forEach(function(r,n){r.forEach(function(a){a.data&&(t.push(kr(n*8+a.type)),a.type==2&&t.push(kr(a.data.length)),t.push(a.data))})}),tu(t)}function c4(e,t){return(e==null?void 0:e.map(function(r){return t(r.data)}))||[]}function Oo(e){for(var t,r=[],n=[0];n[0]>>0>0),r.push(o)}return r}function xf(e){var t=[];return e.forEach(function(r){var n=[];n[1]=[{data:kr(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:kr(+!!r.merge),type:0}]);var a=[];r.messages.forEach(function(o){a.push(o.data),o.meta[3]=[{type:0,data:kr(o.data.length)}],n[2].push({data:La(o.meta),type:2})});var i=La(n);t.push(kr(i.length)),t.push(i),a.forEach(function(o){return t.push(o)})}),tu(t)}function att(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=ev(t,r),a=[];r[0]>2;if(o<60)++o;else{var s=o-59;o=t[r[0]],s>1&&(o|=t[r[0]+1]<<8),s>2&&(o|=t[r[0]+2]<<16),s>3&&(o|=t[r[0]+3]<<24),o>>>=0,o++,r[0]+=s}a.push(t.slice(r[0],r[0]+o)),r[0]+=o;continue}else{var l=0,c=0;if(i==1?(c=(t[r[0]]>>2&7)+4,l=(t[r[0]++]&224)<<3,l|=t[r[0]++]):(c=(t[r[0]++]>>2)+1,i==2?(l=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(l=(t[r[0]]|t[r[0]+1]<<8|t[r[0]+2]<<16|t[r[0]+3]<<24)>>>0,r[0]+=4)),a=[tu(a)],l==0)throw new Error("Invalid offset 0");if(l>a[0].length)throw new Error("Invalid offset beyond length");if(c>=l)for(a.push(a[0].slice(-l)),c-=l;c>=a[a.length-1].length;)a.push(a[a.length-1]),c-=a[a.length-1].length;a.push(a[0].slice(-l,-l+c))}}var u=tu(a);if(u.length!=n)throw new Error("Unexpected length: ".concat(u.length," != ").concat(n));return u}function To(e){for(var t=[],r=0;r>8&255]))):n<=16777216?(o+=4,t.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(o+=5,t.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),t.push(e.slice(r,r+n)),o+=n,a[0]=0,a[1]=o&255,a[2]=o>>8&255,a[3]=o>>16&255,r+=n}return tu(t)}function itt(e,t,r,n){var a=kd(e),i=a.getUint32(4,!0),o=(n>1?12:8)+$L(i&(n>1?3470:398))*4,s=-1,l=-1,c=NaN,u=new Date(2001,0,1);i&512&&(s=a.getUint32(o,!0),o+=4),o+=$L(i&(n>1?12288:4096))*4,i&16&&(l=a.getUint32(o,!0),o+=4),i&32&&(c=a.getFloat64(o,!0),o+=8),i&64&&(u.setTime(u.getTime()+a.getFloat64(o,!0)*1e3),o+=8);var f;switch(e[2]){case 0:break;case 2:f={t:"n",v:c};break;case 3:f={t:"s",v:t[l]};break;case 5:f={t:"d",v:u};break;case 6:f={t:"b",v:c>0};break;case 7:f={t:"n",v:c/86400};break;case 8:f={t:"e",v:0};break;case 9:if(s>-1)f={t:"s",v:r[s]};else if(l>-1)f={t:"s",v:t[l]};else if(!isNaN(c))f={t:"n",v:c};else throw new Error("Unsupported cell type ".concat(e.slice(0,4)));break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return f}function ott(e,t,r){var n=kd(e),a=n.getUint32(8,!0),i=12,o=-1,s=-1,l=NaN,c=NaN,u=new Date(2001,0,1);a&1&&(l=rtt(e,i),i+=16),a&2&&(c=n.getFloat64(i,!0),i+=8),a&4&&(u.setTime(u.getTime()+n.getFloat64(i,!0)*1e3),i+=8),a&8&&(s=n.getUint32(i,!0),i+=4),a&16&&(o=n.getUint32(i,!0),i+=4);var f;switch(e[1]){case 0:break;case 2:f={t:"n",v:l};break;case 3:f={t:"s",v:t[s]};break;case 5:f={t:"d",v:u};break;case 6:f={t:"b",v:c>0};break;case 7:f={t:"n",v:c/86400};break;case 8:f={t:"e",v:0};break;case 9:if(o>-1)f={t:"s",v:r[o]};else throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(a&31," : ").concat(e.slice(0,4)));break;case 10:f={t:"n",v:l};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(a&31," : ").concat(e.slice(0,4)))}return f}function BE(e,t){var r=new Uint8Array(32),n=kd(r),a=12,i=0;switch(r[0]=5,e.t){case"n":r[1]=2,ntt(r,a,e.v),i|=1,a+=16;break;case"b":r[1]=6,n.setFloat64(a,e.v?1:0,!0),i|=2,a+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[1]=3,n.setUint32(a,t.indexOf(e.v),!0),i|=8,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(8,i,!0),r.slice(0,a)}function zE(e,t){var r=new Uint8Array(32),n=kd(r),a=12,i=0;switch(r[0]=3,e.t){case"n":r[2]=2,n.setFloat64(a,e.v,!0),i|=32,a+=8;break;case"b":r[2]=6,n.setFloat64(a,e.v?1:0,!0),i|=32,a+=8;break;case"s":if(t.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));r[2]=3,n.setUint32(a,t.indexOf(e.v),!0),i|=16,a+=4;break;default:throw"unsupported cell type "+e.t}return n.setUint32(4,i,!0),r.slice(0,a)}function stt(e,t,r){switch(e[0]){case 0:case 1:case 2:case 3:return itt(e,t,r,e[0]);case 5:return ott(e,t,r);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function Ja(e){var t=$r(e);return ev(t[1][0].data)}function _L(e,t){var r=$r(t.data),n=On(r[1][0].data),a=r[3],i=[];return(a||[]).forEach(function(o){var s=$r(o.data),l=On(s[1][0].data)>>>0;switch(n){case 1:i[l]=_T(s[3][0].data);break;case 8:{var c=e[Ja(s[9][0].data)][0],u=$r(c.data),f=e[Ja(u[1][0].data)][0],m=On(f.meta[1][0].data);if(m!=2001)throw new Error("2000 unexpected reference to ".concat(m));var h=$r(f.data);i[l]=h[3].map(function(p){return _T(p.data)}).join("")}break}}),i}function ltt(e,t){var r,n,a,i,o,s,l,c,u,f,m,h,p,g,v=$r(e),y=On(v[1][0].data)>>>0,x=On(v[2][0].data)>>>0,b=((n=(r=v[8])==null?void 0:r[0])==null?void 0:n.data)&&On(v[8][0].data)>0||!1,S,w;if((i=(a=v[7])==null?void 0:a[0])!=null&&i.data&&t!=0)S=(s=(o=v[7])==null?void 0:o[0])==null?void 0:s.data,w=(c=(l=v[6])==null?void 0:l[0])==null?void 0:c.data;else if((f=(u=v[4])==null?void 0:u[0])!=null&&f.data&&t!=1)S=(h=(m=v[4])==null?void 0:m[0])==null?void 0:h.data,w=(g=(p=v[3])==null?void 0:p[0])==null?void 0:g.data;else throw"NUMBERS Tile missing ".concat(t," cell storage");for(var E=b?4:1,C=kd(S),O=[],_=0;_=1&&(I[O[O.length-1][0]]=w.subarray(O[O.length-1][1]*E)),{R:y,cells:I}}function ctt(e,t){var r,n=$r(t.data),a=(r=n==null?void 0:n[7])!=null&&r[0]?On(n[7][0].data)>>>0>0?1:0:-1,i=c4(n[5],function(o){return ltt(o,a)});return{nrows:On(n[4][0].data)>>>0,data:i.reduce(function(o,s){return o[s.R]||(o[s.R]=[]),s.cells.forEach(function(l,c){if(o[s.R][c])throw new Error("Duplicate cell r=".concat(s.R," c=").concat(c));o[s.R][c]=l}),o},[])}}function utt(e,t,r){var n,a=$r(t.data),i={s:{r:0,c:0},e:{r:0,c:0}};if(i.e.r=(On(a[6][0].data)>>>0)-1,i.e.r<0)throw new Error("Invalid row varint ".concat(a[6][0].data));if(i.e.c=(On(a[7][0].data)>>>0)-1,i.e.c<0)throw new Error("Invalid col varint ".concat(a[7][0].data));r["!ref"]=ir(i);var o=$r(a[4][0].data),s=_L(e,e[Ja(o[4][0].data)][0]),l=(n=o[17])!=null&&n[0]?_L(e,e[Ja(o[17][0].data)][0]):[],c=$r(o[3][0].data),u=0;c[1].forEach(function(f){var m=$r(f.data),h=e[Ja(m[2][0].data)][0],p=On(h.meta[1][0].data);if(p!=6002)throw new Error("6001 unexpected reference to ".concat(p));var g=ctt(e,h);g.data.forEach(function(v,y){v.forEach(function(x,b){var S=Xt({r:u+y,c:b}),w=stt(x,s,l);w&&(r[S]=w)})}),u+=g.nrows})}function dtt(e,t){var r=$r(t.data),n={"!ref":"A1"},a=e[Ja(r[2][0].data)],i=On(a[0].meta[1][0].data);if(i!=6001)throw new Error("6000 unexpected reference to ".concat(i));return utt(e,a[0],n),n}function ftt(e,t){var r,n=$r(t.data),a={name:(r=n[1])!=null&&r[0]?_T(n[1][0].data):"",sheets:[]},i=c4(n[2],Ja);return i.forEach(function(o){e[o].forEach(function(s){var l=On(s.meta[1][0].data);l==6e3&&a.sheets.push(dtt(e,s))})}),a}function mtt(e,t){var r=v4(),n=$r(t.data),a=c4(n[1],Ja);if(a.forEach(function(i){e[i].forEach(function(o){var s=On(o.meta[1][0].data);if(s==2){var l=ftt(e,o);l.sheets.forEach(function(c,u){g4(r,c,u==0?l.name:l.name+"_"+u,!0)})}})}),r.SheetNames.length==0)throw new Error("Empty NUMBERS file");return r}function HE(e){var t,r,n,a,i={},o=[];if(e.FullPaths.forEach(function(l){if(l.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),e.FileIndex.forEach(function(l){if(l.name.match(/\.iwa$/)){var c;try{c=To(l.content)}catch(f){return console.log("?? "+l.content.length+" "+(f.message||f))}var u;try{u=Oo(c)}catch(f){return console.log("## "+(f.message||f))}u.forEach(function(f){i[f.id]=f.messages,o.push(f.id)})}}),!o.length)throw new Error("File has no messages");var s=((a=(n=(r=(t=i==null?void 0:i[1])==null?void 0:t[0])==null?void 0:r.meta)==null?void 0:n[1])==null?void 0:a[0].data)&&On(i[1][0].meta[1][0].data)==1&&i[1][0];if(s||o.forEach(function(l){i[l].forEach(function(c){var u=On(c.meta[1][0].data)>>>0;if(u==1)if(!s)s=c;else throw new Error("Document has multiple roots")})}),!s)throw new Error("Cannot find Document root");return mtt(i,s)}function htt(e,t,r){var n,a,i,o;if(!((n=e[6])!=null&&n[0])||!((a=e[7])!=null&&a[0]))throw"Mutation only works on post-BNC storages!";var s=((o=(i=e[8])==null?void 0:i[0])==null?void 0:o.data)&&On(e[8][0].data)>0||!1;if(s)throw"Math only works with normal offsets";for(var l=0,c=kd(e[7][0].data),u=0,f=[],m=kd(e[4][0].data),h=0,p=[],g=0;g1&&console.error("The Numbers writer currently writes only the first table");var n=$i(r["!ref"]);n.s.r=n.s.c=0;var a=!1;n.e.c>9&&(a=!0,n.e.c=9),n.e.r>49&&(a=!0,n.e.r=49),a&&console.error("The Numbers writer is currently limited to ".concat(ir(n)));var i=gb(r,{range:n,header:1}),o=["~Sh33tJ5~"];i.forEach(function(B){return B.forEach(function(W){typeof W=="string"&&o.push(W)})});var s={},l=[],c=Vt.read(t.numbers,{type:"base64"});c.FileIndex.map(function(B,W){return[B,c.FullPaths[W]]}).forEach(function(B){var W=B[0],z=B[1];if(W.type==2&&W.name.match(/\.iwa/)){var U=W.content,X=To(U),Y=Oo(X);Y.forEach(function(G){l.push(G.id),s[G.id]={deps:[],location:z,type:On(G.messages[0].meta[1][0].data)}})}}),l.sort(function(B,W){return B-W});var u=l.filter(function(B){return B>1}).map(function(B){return[B,kr(B)]});c.FileIndex.map(function(B,W){return[B,c.FullPaths[W]]}).forEach(function(B){var W=B[0];if(B[1],!!W.name.match(/\.iwa/)){var z=Oo(To(W.content));z.forEach(function(U){U.messages.forEach(function(X){u.forEach(function(Y){U.messages.some(function(G){return On(G.meta[1][0].data)!=11006&&ttt(G.data,Y[1])})&&s[Y[0]].deps.push(U.id)})})})}});for(var f=Vt.find(c,s[1].location),m=Oo(To(f.content)),h,p=0;p-1?"sheet":e==hr.CS?"chart":e==hr.DS?"dialog":e==hr.MS?"macro":e&&e.length?e:"sheet"}function gtt(e,t){if(!e)return 0;try{e=t.map(function(n){return n.id||(n.id=n.strRelID),[n.name,e["!id"][n.id].Target,vtt(e["!id"][n.id].Type)]})}catch{return null}return!e||e.length===0?null:e}function ytt(e,t,r,n,a,i,o,s,l,c,u,f){try{i[n]=Dh(to(e,r,!0),t);var m=Gn(e,t),h;switch(s){case"sheet":h=HJe(m,t,a,l,i[n],c,u,f);break;case"chart":if(h=WJe(m,t,a,l,i[n],c,u,f),!h||!h["!drawel"])break;var p=ph(h["!drawel"].Target,t),g=qp(p),v=IXe(to(e,p,!0),Dh(to(e,g,!0),p)),y=ph(v,p),x=qp(y);h=gJe(to(e,y,!0),y,l,Dh(to(e,x,!0),y),c,h);break;case"macro":h=VJe(m,t,a,l,i[n],c,u,f);break;case"dialog":h=UJe(m,t,a,l,i[n],c,u,f);break;default:throw new Error("Unrecognized sheet type "+s)}o[n]=h;var b=[];i&&i[n]&&Tn(i[n]).forEach(function(S){var w="";if(i[n][S].Type==hr.CMNT){w=ph(i[n][S].Target,t);var E=XJe(Gn(e,w,!0),w,l);if(!E||!E.length)return;dL(h,E,!1)}i[n][S].Type==hr.TCMNT&&(w=ph(i[n][S].Target,t),b=b.concat(kXe(Gn(e,w,!0),l)))}),b&&b.length&&dL(h,b,!0,l.people||[])}catch(S){if(l.WTF)throw S}}function Eo(e){return e.charAt(0)=="/"?e.slice(1):e}function iee(e,t){if(Cm(),t=t||{},u4(t),Io(e,"META-INF/manifest.xml")||Io(e,"objectdata.xml"))return wL(e,t);if(Io(e,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof HE<"u"){if(e.FileIndex)return HE(e);var r=Vt.utils.cfb_new();return k5(e).forEach(function(k){or(r,k,yZ(e,k))}),HE(r)}throw new Error("Unsupported NUMBERS file")}if(!Io(e,"[Content_Types].xml"))throw Io(e,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):Io(e,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var n=k5(e),a=_Ue(to(e,"[Content_Types].xml")),i=!1,o,s;if(a.workbooks.length===0&&(s="xl/workbook.xml",Gn(e,s,!0)&&a.workbooks.push(s)),a.workbooks.length===0){if(s="xl/workbook.bin",!Gn(e,s,!0))throw new Error("Could not find workbook");a.workbooks.push(s),i=!0}a.workbooks[0].slice(-3)=="bin"&&(i=!0);var l={},c={};if(!t.bookSheets&&!t.bookProps){if(jh=[],a.sst)try{jh=qJe(Gn(e,Eo(a.sst)),a.sst,t)}catch(k){if(t.WTF)throw k}t.cellStyles&&a.themes.length&&(l=GJe(to(e,a.themes[0].replace(/^\//,""),!0)||"",a.themes[0],t)),a.style&&(c=KJe(Gn(e,Eo(a.style)),a.style,l,t))}a.links.map(function(k){try{var R=Dh(to(e,qp(Eo(k))),k);return QJe(Gn(e,Eo(k)),R,k,t)}catch{}});var u=zJe(Gn(e,Eo(a.workbooks[0])),a.workbooks[0],t),f={},m="";a.coreprops.length&&(m=Gn(e,Eo(a.coreprops[0]),!0),m&&(f=HZ(m)),a.extprops.length!==0&&(m=Gn(e,Eo(a.extprops[0]),!0),m&&RUe(m,f,t)));var h={};(!t.bookSheets||t.bookProps)&&a.custprops.length!==0&&(m=to(e,Eo(a.custprops[0]),!0),m&&(h=MUe(m,t)));var p={};if((t.bookSheets||t.bookProps)&&(u.Sheets?o=u.Sheets.map(function(R){return R.name}):f.Worksheets&&f.SheetNames.length>0&&(o=f.SheetNames),t.bookProps&&(p.Props=f,p.Custprops=h),t.bookSheets&&typeof o<"u"&&(p.SheetNames=o),t.bookSheets?p.SheetNames:t.bookProps))return p;o={};var g={};t.bookDeps&&a.calcchain&&(g=YJe(Gn(e,Eo(a.calcchain)),a.calcchain));var v=0,y={},x,b;{var S=u.Sheets;f.Worksheets=S.length,f.SheetNames=[];for(var w=0;w!=S.length;++w)f.SheetNames[w]=S[w].name}var E=i?"bin":"xml",C=a.workbooks[0].lastIndexOf("/"),O=(a.workbooks[0].slice(0,C+1)+"_rels/"+a.workbooks[0].slice(C+1)+".rels").replace(/^\//,"");Io(e,O)||(O="xl/_rels/workbook."+E+".rels");var _=Dh(to(e,O,!0),O.replace(/_rels.*/,"s5s"));(a.metadata||[]).length>=1&&(t.xlmeta=ZJe(Gn(e,Eo(a.metadata[0])),a.metadata[0],t)),(a.people||[]).length>=1&&(t.people=AXe(Gn(e,Eo(a.people[0])),t)),_&&(_=gtt(_,u.Sheets));var P=Gn(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(v=0;v!=f.Worksheets;++v){var I="sheet";if(_&&_[v]?(x="xl/"+_[v][1].replace(/[\/]?xl\//,""),Io(e,x)||(x=_[v][1]),Io(e,x)||(x=O.replace(/_rels\/.*$/,"")+_[v][1]),I=_[v][2]):(x="xl/worksheets/sheet"+(v+1-P)+"."+E,x=x.replace(/sheet0\./,"sheet.")),b=x.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&t.sheets!=null)switch(typeof t.sheets){case"number":if(v!=t.sheets)continue e;break;case"string":if(f.SheetNames[v].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var N=!1,D=0;D!=t.sheets.length;++D)typeof t.sheets[D]=="number"&&t.sheets[D]==v&&(N=1),typeof t.sheets[D]=="string"&&t.sheets[D].toLowerCase()==f.SheetNames[v].toLowerCase()&&(N=1);if(!N)continue e}}ytt(e,x,b,f.SheetNames[v],v,y,o,I,t,u,l,c)}return p={Directory:a,Workbook:u,Props:f,Custprops:h,Deps:g,Sheets:o,SheetNames:f.SheetNames,Strings:jh,Styles:c,Themes:l,SSF:Hr(Kt)},t&&t.bookFiles&&(e.files?(p.keys=n,p.files=e.files):(p.keys=[],p.files={},e.FullPaths.forEach(function(k,R){k=k.replace(/^Root Entry[\/]/,""),p.keys.push(k),p.files[k]=e.FileIndex[R]}))),t&&t.bookVBA&&(a.vba.length>0?p.vbaraw=Gn(e,Eo(a.vba[0]),!0):a.defaults&&a.defaults.bin===HXe&&(p.vbaraw=Gn(e,"xl/vbaProject.bin",!0))),p}function xtt(e,t){var r=t||{},n="Workbook",a=Vt.find(e,n);try{if(n="/!DataSpaces/Version",a=Vt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(JGe(a.content),n="/!DataSpaces/DataSpaceMap",a=Vt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);var i=tqe(a.content);if(i.length!==1||i[0].comps.length!==1||i[0].comps[0].t!==0||i[0].name!=="StrongEncryptionDataSpace"||i[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",a=Vt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);var o=rqe(a.content);if(o.length!=1||o[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",a=Vt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);aqe(a.content)}catch{}if(n="/EncryptionInfo",a=Vt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);var s=iqe(a.content);if(n="/EncryptedPackage",a=Vt.find(e,n),!a||!a.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(s[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(s[1],a.content,r.password||"",r);if(s[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(s[1],a.content,r.password||"",r);throw new Error("File is password-protected")}function btt(e,t){return t.bookType=="ods"?nee(e,t):t.bookType=="numbers"?ptt(e,t):t.bookType=="xlsb"?Stt(e,t):oee(e,t)}function Stt(e,t){Hf=1024,e&&!e.SSF&&(e.SSF=Hr(Kt)),e&&e.SSF&&(Cm(),lg(e.SSF),t.revssf=uC(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Fh?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r=t.bookType=="xlsb"?"bin":"xml",n=OJ.indexOf(t.bookType)>-1,a=XR();d4(t=t||{});var i=NR(),o="",s=0;if(t.cellXfs=[],Su(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),o="docProps/core.xml",or(i,o,WZ(e.Props,t)),a.coreprops.push(o),Rr(t.rels,2,o,hr.CORE_PROPS),o="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],c=0;c0&&(o="docProps/custom.xml",or(i,o,GZ(e.Custprops)),a.custprops.push(o),Rr(t.rels,4,o,hr.CUST_PROPS)),s=1;s<=e.SheetNames.length;++s){var u={"!id":{}},f=e.Sheets[e.SheetNames[s-1]],m=(f||{})["!type"]||"sheet";switch(m){case"chart":default:o="xl/worksheets/sheet"+s+"."+r,or(i,o,eet(s-1,o,t,e,u)),a.sheets.push(o),Rr(t.wbrels,-1,"worksheets/sheet"+s+"."+r,hr.WS[0])}if(f){var h=f["!comments"],p=!1,g="";h&&h.length>0&&(g="xl/comments"+s+"."+r,or(i,g,net(h,g)),a.comments.push(g),Rr(u,-1,"../comments"+s+"."+r,hr.CMNT),p=!0),f["!legacy"]&&p&&or(i,"xl/drawings/vmlDrawing"+s+".vml",$J(s,f["!comments"])),delete f["!comments"],delete f["!legacy"]}u["!id"].rId1&&or(i,qp(o),a0(u))}return t.Strings!=null&&t.Strings.length>0&&(o="xl/sharedStrings."+r,or(i,o,ret(t.Strings,o,t)),a.strs.push(o),Rr(t.wbrels,-1,"sharedStrings."+r,hr.SST)),o="xl/workbook."+r,or(i,o,JJe(e,o)),a.workbooks.push(o),Rr(t.rels,1,o,hr.WB),o="xl/theme/theme1.xml",or(i,o,t4(e.Themes,t)),a.themes.push(o),Rr(t.wbrels,-1,"theme/theme1.xml",hr.THEME),o="xl/styles."+r,or(i,o,tet(e,o,t)),a.styles.push(o),Rr(t.wbrels,-1,"styles."+r,hr.STY),e.vbaraw&&n&&(o="xl/vbaProject.bin",or(i,o,e.vbaraw),a.vba.push(o),Rr(t.wbrels,-1,"vbaProject.bin",hr.VBA)),o="xl/metadata."+r,or(i,o,aet(o)),a.metadata.push(o),Rr(t.wbrels,-1,"metadata."+r,hr.XLMETA),or(i,"[Content_Types].xml",BZ(a,t)),or(i,"_rels/.rels",a0(t.rels)),or(i,"xl/_rels/workbook."+r+".rels",a0(t.wbrels)),delete t.revssf,delete t.ssf,i}function oee(e,t){Hf=1024,e&&!e.SSF&&(e.SSF=Hr(Kt)),e&&e.SSF&&(Cm(),lg(e.SSF),t.revssf=uC(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,Fh?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",n=OJ.indexOf(t.bookType)>-1,a=XR();d4(t=t||{});var i=NR(),o="",s=0;if(t.cellXfs=[],Su(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),o="docProps/core.xml",or(i,o,WZ(e.Props,t)),a.coreprops.push(o),Rr(t.rels,2,o,hr.CORE_PROPS),o="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],c=0;c0&&(o="docProps/custom.xml",or(i,o,GZ(e.Custprops)),a.custprops.push(o),Rr(t.rels,4,o,hr.CUST_PROPS));var u=["SheetJ5"];for(t.tcid=0,s=1;s<=e.SheetNames.length;++s){var f={"!id":{}},m=e.Sheets[e.SheetNames[s-1]],h=(m||{})["!type"]||"sheet";switch(h){case"chart":default:o="xl/worksheets/sheet"+s+"."+r,or(i,o,FJ(s-1,t,e,f)),a.sheets.push(o),Rr(t.wbrels,-1,"worksheets/sheet"+s+"."+r,hr.WS[0])}if(m){var p=m["!comments"],g=!1,v="";if(p&&p.length>0){var y=!1;p.forEach(function(x){x[1].forEach(function(b){b.T==!0&&(y=!0)})}),y&&(v="xl/threadedComments/threadedComment"+s+"."+r,or(i,v,RXe(p,u,t)),a.threadedcomments.push(v),Rr(f,-1,"../threadedComments/threadedComment"+s+"."+r,hr.TCMNT)),v="xl/comments"+s+"."+r,or(i,v,_J(p)),a.comments.push(v),Rr(f,-1,"../comments"+s+"."+r,hr.CMNT),g=!0}m["!legacy"]&&g&&or(i,"xl/drawings/vmlDrawing"+s+".vml",$J(s,m["!comments"])),delete m["!comments"],delete m["!legacy"]}f["!id"].rId1&&or(i,qp(o),a0(f))}return t.Strings!=null&&t.Strings.length>0&&(o="xl/sharedStrings."+r,or(i,o,mJ(t.Strings,t)),a.strs.push(o),Rr(t.wbrels,-1,"sharedStrings."+r,hr.SST)),o="xl/workbook."+r,or(i,o,VJ(e)),a.workbooks.push(o),Rr(t.rels,1,o,hr.WB),o="xl/theme/theme1.xml",or(i,o,t4(e.Themes,t)),a.themes.push(o),Rr(t.wbrels,-1,"theme/theme1.xml",hr.THEME),o="xl/styles."+r,or(i,o,SJ(e,t)),a.styles.push(o),Rr(t.wbrels,-1,"styles."+r,hr.STY),e.vbaraw&&n&&(o="xl/vbaProject.bin",or(i,o,e.vbaraw),a.vba.push(o),Rr(t.wbrels,-1,"vbaProject.bin",hr.VBA)),o="xl/metadata."+r,or(i,o,EJ()),a.metadata.push(o),Rr(t.wbrels,-1,"metadata."+r,hr.XLMETA),u.length>1&&(o="xl/persons/person.xml",or(i,o,MXe(u)),a.people.push(o),Rr(t.wbrels,-1,"persons/person.xml",hr.PEOPLE)),or(i,"[Content_Types].xml",BZ(a,t)),or(i,"_rels/.rels",a0(t.rels)),or(i,"xl/_rels/workbook."+r+".rels",a0(t.wbrels)),delete t.revssf,delete t.ssf,i}function f4(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=ho(e.slice(0,12));break;case"binary":r=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function wtt(e,t){return Vt.find(e,"EncryptedPackage")?xtt(e,t):l4(e,t)}function Ctt(e,t){var r,n=e,a=t||{};return a.type||(a.type=ur&&Buffer.isBuffer(e)?"buffer":"base64"),r=xZ(n,a),iee(r,a)}function see(e,t){var r=0;e:for(;r=2&&a[3]===0||a[2]===0&&(a[3]===8||a[3]===9)))return ad.to_workbook(n,r);break;case 3:case 131:case 139:case 140:return CT.to_workbook(n,r);case 123:if(a[1]===92&&a[2]===114&&a[3]===116)return yJ.to_workbook(n,r);break;case 10:case 13:case 32:return Ett(n,r);case 137:if(a[1]===80&&a[2]===78&&a[3]===71)throw new Error("PNG Image File is not a spreadsheet");break}return MGe.indexOf(a[0])>-1&&a[2]<=12&&a[3]<=31?CT.to_workbook(n,r):WE(e,n,r,i)}function OL(e,t){var r=t||{};return r.type="file",M0(e,r)}function lee(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return cg(t.file,Vt.write(e,{type:ur?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return Vt.write(e,t)}function Ott(e,t){var r=Hr(t||{}),n=btt(e,r);return cee(n,r)}function Ttt(e,t){var r=Hr(t||{}),n=oee(e,r);return cee(n,r)}function cee(e,t){var r={},n=ur?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=n;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=n;break;default:throw new Error("Unrecognized type "+t.type)}var a=e.FullPaths?Vt.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if(typeof Deno<"u"&&typeof a=="string"){if(t.type=="binary"||t.type=="base64")return a;a=new Uint8Array(sg(a))}return t.password&&typeof encrypt_agile<"u"?lee(encrypt_agile(a,t.password),t):t.type==="file"?cg(t.file,a):t.type=="string"?Lr(a):a}function Ptt(e,t){var r=t||{},n=ket(e,r);return lee(n,r)}function Hs(e,t,r){r||(r="");var n=r+e;switch(t.type){case"base64":return Wp(Ys(n));case"binary":return Ys(n);case"string":return e;case"file":return cg(t.file,n,"utf8");case"buffer":return ur?Yl(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):Hs(n,{type:"binary"}).split("").map(function(a){return a.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function Itt(e,t){switch(t.type){case"base64":return Wp(e);case"binary":return e;case"string":return e;case"file":return cg(t.file,e,"binary");case"buffer":return ur?Yl(e,"binary"):e.split("").map(function(r){return r.charCodeAt(0)})}throw new Error("Unrecognized type "+t.type)}function jy(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",n=0;n0&&(a=0);var f=_n(l.s.r),m=[],h=[],p=0,g=0,v=Array.isArray(e),y=l.s.r,x=0,b={};v&&!e[y]&&(e[y]=[]);var S=c.skipHidden&&e["!cols"]||[],w=c.skipHidden&&e["!rows"]||[];for(x=l.s.c;x<=l.e.c;++x)if(!(S[x]||{}).hidden)switch(m[x]=tn(x),r=v?e[y][x]:e[m[x]+f],n){case 1:i[x]=x-l.s.c;break;case 2:i[x]=m[x];break;case 3:i[x]=c.header[x-l.s.c];break;default:if(r==null&&(r={w:"__EMPTY",t:"s"}),s=o=ll(r,null,c),g=b[o]||0,!g)b[o]=1;else{do s=o+"_"+g++;while(b[s]);b[o]=g,b[s]=1}i[x]=s}for(y=l.s.r+a;y<=l.e.r;++y)if(!(w[y]||{}).hidden){var E=uee(e,l,y,m,n,i,v,c);(E.isempty===!1||(n===1?c.blankrows!==!1:c.blankrows))&&(h[p++]=E.row)}return h.length=p,h}var TL=/"/g;function dee(e,t,r,n,a,i,o,s){for(var l=!0,c=[],u="",f=_n(r),m=t.s.c;m<=t.e.c;++m)if(n[m]){var h=s.dense?(e[r]||[])[m]:e[n[m]+f];if(h==null)u="";else if(h.v!=null){l=!1,u=""+(s.rawNumbers&&h.t=="n"?h.v:ll(h,null,s));for(var p=0,g=0;p!==u.length;++p)if((g=u.charCodeAt(p))===a||g===i||g===34||s.forceQuotes){u='"'+u.replace(TL,'""')+'"';break}u=="ID"&&(u='"ID"')}else h.f!=null&&!h.F?(l=!1,u="="+h.f,u.indexOf(",")>=0&&(u='"'+u.replace(TL,'""')+'"')):u="";c.push(u)}return s.blankrows===!1&&l?null:c.join(o)}function p4(e,t){var r=[],n=t??{};if(e==null||e["!ref"]==null)return"";var a=yr(e["!ref"]),i=n.FS!==void 0?n.FS:",",o=i.charCodeAt(0),s=n.RS!==void 0?n.RS:` -`,l=s.charCodeAt(0),c=new RegExp((i=="|"?"\\|":i)+"+$"),u="",f=[];n.dense=Array.isArray(e);for(var m=n.skipHidden&&e["!cols"]||[],h=n.skipHidden&&e["!rows"]||[],p=a.s.c;p<=a.e.c;++p)(m[p]||{}).hidden||(f[p]=tn(p));for(var g=0,v=a.s.r;v<=a.e.r;++v)(h[v]||{}).hidden||(u=dee(e,a,v,f,o,l,i,n),u!=null&&(n.strip&&(u=u.replace(c,"")),(u||n.blankrows!==!1)&&r.push((g++?s:"")+u)));return delete n.dense,r.join("")}function fee(e,t){t||(t={}),t.FS=" ",t.RS=` -`;var r=p4(e,t);if(typeof xr>"u"||t.type=="string")return r;var n=xr.utils.encode(1200,r,"str");return String.fromCharCode(255)+String.fromCharCode(254)+n}function Rtt(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var a=yr(e["!ref"]),i="",o=[],s,l=[],c=Array.isArray(e);for(s=a.s.c;s<=a.e.c;++s)o[s]=tn(s);for(var u=a.s.r;u<=a.e.r;++u)for(i=_n(u),s=a.s.c;s<=a.e.c;++s)if(t=o[s]+i,r=c?(e[u]||[])[s]:e[t],n="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;n=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}l[l.length]=t+"="+n}return l}function mee(e,t,r){var n=r||{},a=+!n.skipHeader,i=e||{},o=0,s=0;if(i&&n.origin!=null)if(typeof n.origin=="number")o=n.origin;else{var l=typeof n.origin=="string"?mn(n.origin):n.origin;o=l.r,s=l.c}var c,u={s:{c:0,r:0},e:{c:s,r:o+t.length-1+a}};if(i["!ref"]){var f=yr(i["!ref"]);u.e.c=Math.max(u.e.c,f.e.c),u.e.r=Math.max(u.e.r,f.e.r),o==-1&&(o=f.e.r+1,u.e.r=o+t.length-1+a)}else o==-1&&(o=0,u.e.r=t.length-1+a);var m=n.header||[],h=0;t.forEach(function(g,v){Tn(g).forEach(function(y){(h=m.indexOf(y))==-1&&(m[h=m.length]=y);var x=g[y],b="z",S="",w=Xt({c:s+h,r:o+v+a});c=tv(i,w),x&&typeof x=="object"&&!(x instanceof Date)?i[w]=x:(typeof x=="number"?b="n":typeof x=="boolean"?b="b":typeof x=="string"?b="s":x instanceof Date?(b="d",n.cellDates||(b="n",x=ya(x)),S=n.dateNF||Kt[14]):x===null&&n.nullError&&(b="e",x=0),c?(c.t=b,c.v=x,delete c.w,delete c.R,S&&(c.z=S)):i[w]=c={t:b,v:x},S&&(c.z=S))})}),u.e.c=Math.max(u.e.c,s+m.length-1);var p=_n(o);if(a)for(h=0;h=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function v4(){return{SheetNames:[],Sheets:{}}}function g4(e,t,r,n){var a=1;if(!r)for(;a<=65535&&e.SheetNames.indexOf(r="Sheet"+a)!=-1;++a,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var i=r.match(/(^.*?)(\d+)$/);a=i&&+i[2]||0;var o=i&&i[1]||r;for(++a;a<=65535&&e.SheetNames.indexOf(r=o+a)!=-1;++a);}if(HJ(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function Dtt(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=Mtt(e,t);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[n].Hidden=r}function jtt(e,t){return e.z=t,e}function hee(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function Ftt(e,t,r){return hee(e,"#"+t,r)}function Ltt(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function Btt(e,t,r,n){for(var a=typeof t!="string"?t:yr(t),i=typeof t=="string"?t:ir(t),o=a.s.r;o<=a.e.r;++o)for(var s=a.s.c;s<=a.e.c;++s){var l=tv(e,o,s);l.t="n",l.F=i,delete l.v,o==a.s.r&&s==a.s.c&&(l.f=r,n&&(l.D=!0))}return e}var Ea={encode_col:tn,encode_row:_n,encode_cell:Xt,encode_range:ir,decode_col:WR,decode_row:HR,split_cell:nUe,decode_cell:mn,decode_range:$i,format_cell:ll,sheet_add_aoa:RZ,sheet_add_json:mee,sheet_add_dom:eee,aoa_to_sheet:$m,json_to_sheet:Att,table_to_sheet:tee,table_to_book:Yet,sheet_to_csv:p4,sheet_to_txt:fee,sheet_to_json:gb,sheet_to_html:JJ,sheet_to_formulae:Rtt,sheet_to_row_object_array:gb,sheet_get_cell:tv,book_new:v4,book_append_sheet:g4,book_set_sheet_visibility:Dtt,cell_set_number_format:jtt,cell_set_hyperlink:hee,cell_set_internal_link:Ftt,cell_add_comment:Ltt,sheet_set_array_formula:Btt,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}},gC;function ztt(e){gC=e}function Htt(e,t){var r=gC(),n=t??{};if(e==null||e["!ref"]==null)return r.push(null),r;var a=yr(e["!ref"]),i=n.FS!==void 0?n.FS:",",o=i.charCodeAt(0),s=n.RS!==void 0?n.RS:` -`,l=s.charCodeAt(0),c=new RegExp((i=="|"?"\\|":i)+"+$"),u="",f=[];n.dense=Array.isArray(e);for(var m=n.skipHidden&&e["!cols"]||[],h=n.skipHidden&&e["!rows"]||[],p=a.s.c;p<=a.e.c;++p)(m[p]||{}).hidden||(f[p]=tn(p));var g=a.s.r,v=!1,y=0;return r._read=function(){if(!v)return v=!0,r.push("\uFEFF");for(;g<=a.e.r;)if(++g,!(h[g-1]||{}).hidden&&(u=dee(e,a,g-1,f,o,l,i,n),u!=null&&(n.strip&&(u=u.replace(c,"")),u||n.blankrows!==!1)))return r.push((y++?s:"")+u);return r.push(null)},r}function Wtt(e,t){var r=gC(),n=t||{},a=n.header!=null?n.header:YJ,i=n.footer!=null?n.footer:QJ;r.push(a);var o=$i(e["!ref"]);n.dense=Array.isArray(e),r.push(ZJ(e,o,n));var s=o.s.r,l=!1;return r._read=function(){if(s>o.e.r)return l||(l=!0,r.push(""+i)),r.push(null);for(;s<=o.e.r;){r.push(XJ(e,o,s,n)),++s;break}},r}function Vtt(e,t){var r=gC({objectMode:!0});if(e==null||e["!ref"]==null)return r.push(null),r;var n={t:"n",v:0},a=0,i=1,o=[],s=0,l="",c={s:{r:0,c:0},e:{r:0,c:0}},u=t||{},f=u.range!=null?u.range:e["!ref"];switch(u.header===1?a=1:u.header==="A"?a=2:Array.isArray(u.header)&&(a=3),typeof f){case"string":c=yr(f);break;case"number":c=yr(e["!ref"]),c.s.r=f;break;default:c=f}a>0&&(i=0);var m=_n(c.s.r),h=[],p=0,g=Array.isArray(e),v=c.s.r,y=0,x={};g&&!e[v]&&(e[v]=[]);var b=u.skipHidden&&e["!cols"]||[],S=u.skipHidden&&e["!rows"]||[];for(y=c.s.c;y<=c.e.c;++y)if(!(b[y]||{}).hidden)switch(h[y]=tn(y),n=g?e[v][y]:e[h[y]+m],a){case 1:o[y]=y-c.s.c;break;case 2:o[y]=h[y];break;case 3:o[y]=u.header[y-c.s.c];break;default:if(n==null&&(n={w:"__EMPTY",t:"s"}),l=s=ll(n,null,u),p=x[s]||0,!p)x[s]=1;else{do l=s+"_"+p++;while(x[l]);x[s]=p,x[l]=1}o[y]=l}return v=c.s.r+i,r._read=function(){for(;v<=c.e.r;)if(!(S[v-1]||{}).hidden){var w=uee(e,c,v,h,a,o,g,u);if(++v,w.isempty===!1||(a===1?u.blankrows!==!1:u.blankrows)){r.push(w.row);return}}return r.push(null)},r}var Utt={to_json:Vtt,to_html:Wtt,to_csv:Htt,set_readable:ztt};const Ktt=Hp.version,PL=Object.freeze(Object.defineProperty({__proto__:null,CFB:Vt,SSF:fZ,parse_xlscfb:l4,parse_zip:iee,read:M0,readFile:OL,readFileSync:OL,set_cptable:XWe,set_fs:EVe,stream:Utt,utils:Ea,version:Ktt,write:D0,writeFile:OT,writeFileAsync:ktt,writeFileSync:OT,writeFileXLSX:Ntt,writeXLSX:m4},Symbol.toStringTag,{value:"Module"})),IL={通用:{hex:"#607D8B",rgb:{r:96,g:125,b:139},name:"蓝灰色",contrastRatio:4.65,meetsWCAGAA:!0,meetsWCAGAAA:!1},语文:{hex:"#E91E63",rgb:{r:233,g:30,b:99},name:"粉红色",contrastRatio:4.82,meetsWCAGAA:!0,meetsWCAGAAA:!1},数学:{hex:"#2196F3",rgb:{r:33,g:150,b:243},name:"蓝色",contrastRatio:4.5,meetsWCAGAA:!0,meetsWCAGAAA:!1},英语:{hex:"#4CAF50",rgb:{r:76,g:175,b:80},name:"绿色",contrastRatio:4.55,meetsWCAGAA:!0,meetsWCAGAAA:!1},物理:{hex:"#FF9800",rgb:{r:255,g:152,b:0},name:"橙色",contrastRatio:4.62,meetsWCAGAA:!0,meetsWCAGAAA:!1},化学:{hex:"#9C27B0",rgb:{r:156,g:39,b:176},name:"紫色",contrastRatio:4.78,meetsWCAGAA:!0,meetsWCAGAAA:!1},生物:{hex:"#8BC34A",rgb:{r:139,g:195,b:74},name:"浅绿色",contrastRatio:4.58,meetsWCAGAA:!0,meetsWCAGAAA:!1},历史:{hex:"#FF5722",rgb:{r:255,g:87,b:34},name:"深橙色",contrastRatio:4.51,meetsWCAGAA:!0,meetsWCAGAAA:!1},地理:{hex:"#00BCD4",rgb:{r:0,g:188,b:212},name:"青色",contrastRatio:4.57,meetsWCAGAA:!0,meetsWCAGAAA:!1},政治:{hex:"#795548",rgb:{r:121,g:85,b:72},name:"棕色",contrastRatio:4.89,meetsWCAGAA:!0,meetsWCAGAAA:!1},计算机:{hex:"#3F51B5",rgb:{r:63,g:81,b:181},name:"靛蓝色",contrastRatio:4.59,meetsWCAGAA:!0,meetsWCAGAAA:!1},艺术:{hex:"#FFC107",rgb:{r:255,g:193,b:7},name:"琥珀色",contrastRatio:4.61,meetsWCAGAA:!0,meetsWCAGAAA:!1},体育:{hex:"#009688",rgb:{r:0,g:150,b:136},name:"蓝绿色",contrastRatio:4.53,meetsWCAGAA:!0,meetsWCAGAAA:!1},音乐:{hex:"#FF4081",rgb:{r:255,g:64,b:129},name:"亮粉色",contrastRatio:4.74,meetsWCAGAA:!0,meetsWCAGAAA:!1},其他:{hex:"#757575",rgb:{r:117,g:117,b:117},name:"灰色",contrastRatio:4.57,meetsWCAGAA:!0,meetsWCAGAAA:!1}},NL=[{hex:"#D81B60",rgb:{r:216,g:27,b:96},name:"深红色",contrastRatio:4.85,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#1E88E5",rgb:{r:30,g:136,b:229},name:"深蓝色",contrastRatio:4.52,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#43A047",rgb:{r:67,g:160,b:71},name:"深绿色",contrastRatio:4.6,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#FB8C00",rgb:{r:251,g:140,b:0},name:"暗橙色",contrastRatio:4.58,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#8E24AA",rgb:{r:142,g:36,b:170},name:"深紫色",contrastRatio:4.83,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#00ACC1",rgb:{r:0,g:172,b:193},name:"青色",contrastRatio:4.56,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#7CB342",rgb:{r:124,g:179,b:66},name:"浅绿色",contrastRatio:4.53,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#FF7043",rgb:{r:255,g:112,b:67},name:"亮橙色",contrastRatio:4.52,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#5C6BC0",rgb:{r:92,g:107,b:192},name:"靛蓝色",contrastRatio:4.61,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#EC407A",rgb:{r:236,g:64,b:122},name:"亮粉色",contrastRatio:4.76,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#26A69A",rgb:{r:38,g:166,b:154},name:"蓝绿色",contrastRatio:4.54,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#FDD835",rgb:{r:253,g:216,b:53},name:"亮黄色",contrastRatio:4.59,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#AB47BC",rgb:{r:171,g:71,b:188},name:"紫色",contrastRatio:4.81,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#FFA726",rgb:{r:255,g:167,b:38},name:"琥珀色",contrastRatio:4.63,meetsWCAGAA:!0,meetsWCAGAAA:!1},{hex:"#66BB6A",rgb:{r:102,g:187,b:106},name:"绿色",contrastRatio:4.57,meetsWCAGAA:!0,meetsWCAGAAA:!1}],Gtt=e=>{if(IL[e])return IL[e];const t=e.split("").reduce((n,a)=>a.charCodeAt(0)+((n<<5)-n),0),r=Math.abs(t)%NL.length;return NL[r]},rv=e=>Gtt(e).hex,{Option:Ls}=Zn,{TextArea:VE}=Ia,kL=()=>{const e=Xo(),[t,r]=d.useState([]),[n,a]=d.useState(!1),[i,o]=d.useState(!1),[s,l]=d.useState(null),[c]=Ht.useForm(),[u,f]=d.useState(""),[m,h]=d.useState(""),[p,g]=d.useState(""),[v,y]=d.useState(null),[x,b]=d.useState({current:1,pageSize:10,total:0,size:"small"}),[S,w]=d.useState([]),[E,C]=d.useState([]);d.useEffect(()=>{O()},[x.current,x.pageSize,u,m,p,v]);const O=async()=>{var j,F;try{a(!0);const M=await sc.getQuestions({type:u,category:m,keyword:p,startDate:(j=v==null?void 0:v[0])==null?void 0:j.format("YYYY-MM-DD"),endDate:(F=v==null?void 0:v[1])==null?void 0:F.format("YYYY-MM-DD"),page:x.current,limit:x.pageSize});r(M.data),b(W=>{var z;return{...W,total:((z=M.pagination)==null?void 0:z.total)||M.data.length}});const K=(await sc.getQuestions({limit:1e4})).data||[],L=[...new Set(K.map(W=>String(W.type)))],B=[...new Set(K.map(W=>String(W.category||"通用")))];w(L),C(B)}catch(M){ut.error(M.message||"获取题目列表失败")}finally{a(!1)}},_=()=>{l(null),c.resetFields(),o(!0)},P=j=>{var F;l(j),c.setFieldsValue({...j,options:(F=j.options)==null?void 0:F.join(` -`),analysis:j.analysis||""}),o(!0)},I=async j=>{try{await sc.deleteQuestion(j),ut.success("删除成功"),O()}catch(F){ut.error(F.message||"删除失败")}},N=async j=>{try{const F={...j,options:j.options?j.options.split(` -`).filter(M=>M.trim()):void 0};s?(await sc.updateQuestion(s.id,F),ut.success("更新成功")):(await sc.createQuestion(F),ut.success("创建成功")),o(!1),O()}catch(F){ut.error(F.message||"操作失败")}},D=async j=>{try{const F=new FileReader;F.onload=async M=>{var V;try{const K=new Uint8Array((V=M.target)==null?void 0:V.result),L=M0(K,{type:"array"}),B=L.SheetNames[0],W=L.Sheets[B],U=Ea.sheet_to_json(W).map(ee=>({content:ee.题目内容||ee.content,type:ee.题型||ee.type,category:ee.题目类别||ee.category||"通用",answer:ee.标准答案||ee.answer,score:parseInt(ee.分值||ee.score)||0,options:ee.选项||ee.options})),X=await Promise.all(U.map(async ee=>{try{const fe=(await sc.getQuestions({limit:1e4})).data.find(te=>te.content===ee.content);return{...ee,existing:fe}}catch{return{...ee,existing:null}}})),Y=X.filter(ee=>ee.existing),G=X.filter(ee=>!ee.existing);if(Y.length===0){await k(X);return}const Q=Ci.confirm({title:"导入确认",content:T.jsxs("div",{children:[T.jsxs("p",{children:["发现 ",Y.length," 道题目已存在,",G.length," 道新题目"]}),T.jsx("p",{children:"请选择处理方式:"}),T.jsxs(Gs.Group,{defaultValue:"skip",children:[T.jsx(Gs,{value:"skip",children:"跳过已存在的题目"}),T.jsx(Gs,{value:"overwrite",children:"覆盖已存在的题目"}),T.jsx(Gs,{value:"cancel",children:"放弃导入"})]}),T.jsx(Sp,{defaultChecked:!1,id:"applyAll",children:"应用本次导入所有题目"})]}),onOk:async()=>{try{const ee=document.getElementById("applyAll"),H=(ee==null?void 0:ee.checked)||!1,fe=document.querySelectorAll('input[type="radio"]');let te="skip";if(fe.forEach(q=>{q.checked&&(te=q.value)}),te==="cancel"){ut.info("已取消导入");return}let re=X;te==="skip"&&(re=G),await k(re),Q.destroy()}catch{Q.destroy()}},onCancel:()=>{ut.info("已取消导入")}})}catch(K){console.error("导入失败:",K),ut.error(K.message||"导入失败")}},F.readAsArrayBuffer(j)}catch(F){ut.error(F.message||"导入失败")}return!1},k=async j=>{try{const F=new FormData,M=Ea.book_new(),V=Ea.json_to_sheet(j);Ea.book_append_sheet(M,V,"题目列表");const K=D0(M,{bookType:"xlsx",type:"array"}),L=new Blob([K],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),B=new File([L],"temp_import.xlsx",{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});F.append("file",B);const W=await sc.importQuestions(B);ut.success(`成功导入 ${W.data.imported} 道题`),W.data.errors.length>0&&ut.warning(`有 ${W.data.errors.length} 道题导入失败`),O()}catch(F){ut.error(F.message||"导入失败"),console.error("导入失败:",F)}},R=async()=>{try{a(!0);let j="/api/admin/export/questions";u&&(j+=`?type=${encodeURIComponent(u)}`);const F=await fetch(j,{method:"GET",headers:{Authorization:localStorage.getItem("survey_admin")?`Bearer ${JSON.parse(localStorage.getItem("survey_admin")||"{}").token}`:"","Content-Type":"application/json"},credentials:"include"});if(!F.ok)throw new Error("导出失败");const M=await F.json();if(!M||!M.success||!M.data)throw new Error("导出失败:数据格式错误");const V=M.data,K=Ea.book_new(),L=Ea.json_to_sheet(V),B=[{wch:10},{wch:60},{wch:10},{wch:15},{wch:80},{wch:20},{wch:8},{wch:20}];L["!cols"]=B,Ea.book_append_sheet(K,L,"题目列表");const W=D0(K,{bookType:"xlsx",type:"array"}),z=new Blob([W],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),U=window.URL.createObjectURL(z),X=document.createElement("a");X.href=U,X.setAttribute("download",`题库导出_${new Date().getTime()}.xlsx`),document.body.appendChild(X),X.click(),window.URL.revokeObjectURL(U),document.body.removeChild(X),ut.success("导出成功")}catch(j){console.error("导出失败:",j),ut.error(j.message||"导出失败")}finally{a(!1)}},A=[{title:"序号",key:"index",width:60,render:(j,F,M)=>M+1},{title:"题目内容",dataIndex:"content",key:"content",width:"30%",ellipsis:!0},{title:"题型",dataIndex:"type",key:"type",width:100,render:j=>T.jsx(la,{color:sRe[j],children:v1[j]})},{title:"题目类别",dataIndex:"category",key:"category",width:120,render:j=>{const F=j||"通用";return T.jsx(la,{color:rv(F),children:F})}},{title:"分值",dataIndex:"score",key:"score",width:80,render:j=>T.jsxs("span",{className:"font-semibold",children:[j," 分"]})},{title:"创建时间",dataIndex:"createdAt",key:"createdAt",width:160,render:j=>Ou(j)},{title:T.jsx("div",{style:{textAlign:"center"},children:"操作"}),key:"action",width:120,render:(j,F)=>T.jsxs(En,{size:"small",children:[T.jsx(kt,{type:"text",icon:T.jsx(Gc,{}),onClick:()=>P(F),size:"small"}),T.jsx(sm,{title:"确定删除这道题吗?",onConfirm:()=>I(F.id),okText:"确定",cancelText:"取消",children:T.jsx(kt,{type:"text",danger:!0,icon:T.jsx(fu,{}),size:"small"})})]})}];return T.jsxs("div",{children:[T.jsxs("div",{className:"mb-6",children:[T.jsx("h1",{className:"text-2xl font-bold text-gray-800 mb-4",children:"题库管理"}),T.jsxs("div",{className:"flex flex-wrap gap-4 items-center",children:[T.jsxs(Zn,{placeholder:"筛选题型",allowClear:!0,style:{width:120},value:u,onChange:f,children:[T.jsx(Ls,{value:"",children:"全部"}),S.map(j=>T.jsx(Ls,{value:j,children:v1[j]||j},j))]}),T.jsxs(Zn,{placeholder:"筛选类别",allowClear:!0,style:{width:120},value:m,onChange:h,children:[T.jsx(Ls,{value:"",children:"全部"}),E.map(j=>T.jsx(Ls,{value:j,children:j},j))]}),T.jsx(wp.RangePicker,{placeholder:["开始时间","结束时间"],value:v,onChange:y,format:"YYYY-MM-DD"}),T.jsx(Ia,{placeholder:"关键字搜索",style:{width:200},value:p,onChange:j=>g(j.target.value),onPressEnter:O}),T.jsx(kt,{icon:T.jsx(eN,{}),onClick:O,children:"刷新"}),T.jsxs(En,{children:[T.jsx(vN,{accept:".xlsx,.xls",showUploadList:!1,beforeUpload:D,children:T.jsx(kt,{icon:T.jsx(hN,{}),children:"Excel导入"})}),T.jsx(kt,{icon:T.jsx(YI,{}),onClick:()=>e("/admin/questions/text-import"),children:"文本导入"}),T.jsx(kt,{icon:T.jsx(tG,{}),onClick:R,children:"Excel导出"})]}),T.jsx(kt,{type:"primary",icon:T.jsx(Vd,{}),onClick:_,children:"新增题目"})]})]}),T.jsx(oi,{columns:A,dataSource:t,rowKey:"id",size:"small",loading:n,pagination:{...x,showSizeChanger:!0,showQuickJumper:!0,showTotal:j=>`共 ${j} 条`},onChange:j=>b(j)}),T.jsx(Ci,{title:s?"编辑题目":"新增题目",open:i,onCancel:()=>o(!1),footer:null,width:800,children:T.jsxs(Ht,{form:c,layout:"vertical",onFinish:N,initialValues:{score:10},children:[T.jsxs(cs,{gutter:16,children:[T.jsx(Qr,{span:12,children:T.jsx(Ht.Item,{name:"type",label:"题型",rules:[{required:!0,message:"请选择题型"}],children:T.jsxs(Zn,{placeholder:"选择题型",children:[T.jsx(Ls,{value:"single",children:"单选题"}),T.jsx(Ls,{value:"multiple",children:"多选题"}),T.jsx(Ls,{value:"judgment",children:"判断题"}),T.jsx(Ls,{value:"text",children:"文字描述题"})]})})}),T.jsx(Qr,{span:12,children:T.jsx(Ht.Item,{name:"score",label:"分值",rules:[{required:!0,message:"请输入分值"}],children:T.jsx(Ks,{min:1,max:100,style:{width:"100%"}})})})]}),T.jsx(Ht.Item,{name:"content",label:"题目内容",rules:[{required:!0,message:"请输入题目内容"}],children:T.jsx(VE,{rows:3,placeholder:"请输入题目内容"})}),T.jsx(Ht.Item,{noStyle:!0,shouldUpdate:(j,F)=>j.type!==F.type,children:({getFieldValue:j})=>{const F=j("type");return F==="single"||F==="multiple"?T.jsx(Ht.Item,{name:"options",label:"选项(每行一个)",rules:[{required:!0,message:"请输入选项"}],children:T.jsx(VE,{rows:6,placeholder:"请输入选项,每行一个,例如:\\n选项A\\n选项B\\n选项C\\n选项D"})}):null}}),T.jsx(Ht.Item,{noStyle:!0,shouldUpdate:(j,F)=>j.type!==F.type,children:({getFieldValue:j})=>{const F=j("type");return F==="judgment"?T.jsx(Ht.Item,{name:"answer",label:"正确答案",rules:[{required:!0,message:"请选择正确答案"}],children:T.jsxs(Zn,{placeholder:"选择正确答案",children:[T.jsx(Ls,{value:"正确",children:"正确"}),T.jsx(Ls,{value:"错误",children:"错误"})]})}):T.jsx(Ht.Item,{name:"answer",label:"正确答案",rules:[{required:!0,message:"请输入正确答案"}],children:T.jsx(Ia,{placeholder:F==="multiple"?"多个答案用逗号分隔":"请输入正确答案"})})}}),T.jsx(Ht.Item,{name:"analysis",label:"解析",children:T.jsx(VE,{rows:3,maxLength:255,showCount:!0,placeholder:"请输入解析(可为空)"})}),T.jsx(Ht.Item,{className:"mb-0",children:T.jsxs(En,{className:"flex justify-end",children:[T.jsx(kt,{onClick:()=>o(!1),children:"取消"}),T.jsx(kt,{type:"primary",htmlType:"submit",children:s?"更新":"创建"})]})})]})})]})},qtt=e=>{const t=String(e||"").trim();return t?{单选:"single",单选题:"single",single:"single",多选:"multiple",多选题:"multiple",multiple:"multiple",判断:"judgment",判断题:"judgment",judgment:"judgment",文本:"text",文字:"text",文字题:"text",文字描述:"text",文字描述题:"text",简答:"text",问答:"text",text:"text"}[t]??null:null},RL=e=>String(e||"").split(/[|,,、\s]+/g).map(t=>t.trim()).filter(Boolean),Xtt=e=>{const t=String(e||"").trim();if(!t)return"";const r=new Set(["正确","对","是","true","True","TRUE","1","Y","y","yes","YES"]),n=new Set(["错误","错","否","不是","false","False","FALSE","0","N","n","no","NO"]);return r.has(t)?"正确":n.has(t)?"错误":t},Ytt=e=>{const t=e.trim();if(!t||t.startsWith("#")||t.startsWith("题型"))return null;const r=t.includes("|"),n=/\t|,|,/g.test(t),a=r?t.split("|").map(v=>v.trim()):n?t.split(/\t|,|,/g).map(v=>v.trim()):[];if(a.length<4)return{error:`字段不足:${t}`};const i=qtt(a[0]);if(!i)return{error:`题型无法识别:${t}`};const o=a[1]||"通用",s=Number(a[2]);if(!Number.isFinite(s)||s<=0)return{error:`分值必须是正数:${t}`};const l=a[3];if(!l)return{error:`题目内容不能为空:${t}`};const c=()=>{if(!r&&n)return{optionsRaw:a[4]??"",answerRaw:a[5]??"",analysisRaw:a[6]??"",optionsTokens:[]};if(!r)return{optionsRaw:"",answerRaw:"",analysisRaw:"",optionsTokens:[]};if(a.length===5)return{optionsRaw:"",answerRaw:a[4]??"",analysisRaw:"",optionsTokens:[]};const v=a[a.length-1]??"",y=a[a.length-2]??"",x=a.slice(4,Math.max(4,a.length-2));return{optionsRaw:x.join("|"),answerRaw:y,analysisRaw:v,optionsTokens:x}},{optionsRaw:u,answerRaw:f,analysisRaw:m,optionsTokens:h}=c(),p={type:i,category:o,score:s,content:l,answer:"",analysis:String(m||"").trim().slice(0,255)};if(i==="single"||i==="multiple"){const v=r&&!n?h.map(S=>S.trim()).filter(Boolean):RL(u);if(v.length<2)return{error:`选项至少2个:${t}`};const y=RL(f);if(y.length===0)return{error:`答案不能为空:${t}`};const x=S=>{const w=S.trim().match(/^([A-Za-z])$/);if(!w)return S;const E=w[1].toUpperCase().charCodeAt(0)-65;return v[E]??S};p.options=v;const b=y.map(x).filter(Boolean);return p.answer=i==="multiple"?b:b[0],{question:p}}if(i==="judgment"){const v=Xtt(f);return v?(p.answer=v,{question:p}):{error:`答案不能为空:${t}`}}const g=String(f||"").trim();return g?(p.answer=g,{question:p}):{error:`答案不能为空:${t}`}},Qtt=e=>{const t=String(e||"").split(/\r?\n/g).map(i=>i.trim()).filter(i=>i.length>0),r=[],n=[];for(let i=0;i{const e=Xo(),[t,r]=d.useState(""),[n,a]=d.useState("incremental"),[i,o]=d.useState([]),[s,l]=d.useState([]),[c,u]=d.useState(!1),[f,m]=d.useState({current:1,pageSize:10,size:"small"}),h=["题型|题目类别|分值|题目内容|选项|答案|解析","单选|通用|5|我国首都是哪里?|北京|上海|广州|深圳|A|我国首都为北京","多选|通用|5|以下哪些是水果?|苹果|白菜|香蕉|西红柿|A,C,D|水果包括苹果/香蕉/西红柿","判断|通用|2|地球是圆的||正确|地球接近球体","文字描述|通用|10|请简述你对该岗位的理解||可自由作答|仅用于人工评阅"].join(` -`),p=()=>{const E=Qtt(t);if(o(E.errors),l(E.questions),m(C=>({...C,current:1})),E.questions.length===0){ut.error(E.errors.length?"解析失败,请检查格式":"未解析到任何题目");return}if(E.errors.length>0){ut.warning(`解析成功 ${E.questions.length} 条,忽略 ${E.errors.length} 条错误`);return}ut.success(`解析成功 ${E.questions.length} 条`)},g=E=>{l(C=>C.filter((O,_)=>_!==E))},v=(f.current-1)*f.pageSize,y=s.length+i.length,x=s.length,b=i.length,S=async()=>{s.length!==0&&Ci.confirm({title:"确认导入",content:n==="overwrite"?"覆盖式导入将清空现有题库并导入当前列表":"增量导入将按题目内容重复覆盖",okText:"开始导入",cancelText:"取消",onOk:async()=>{var E;u(!0);try{const O=(await sc.importQuestionsFromText({mode:n,questions:s})).data;ut.success(`导入完成:新增${O.inserted},覆盖${O.updated},失败${((E=O.errors)==null?void 0:E.length)??0}`),e("/admin/questions")}catch(C){ut.error(C.message||"导入失败")}finally{u(!1)}}})},w=[{title:"序号",key:"index",width:60,render:(E,C,O)=>v+O+1},{title:"题目内容",dataIndex:"content",key:"content",width:850,ellipsis:!0,onHeaderCell:()=>({className:"qt-text-import-th-content"}),onCell:()=>({className:"qt-text-import-td-content"})},{title:"题型",dataIndex:"type",key:"type",width:100,render:E=>T.jsx(la,{color:"#008C8C",children:v1[E]})},{title:"题目类别",dataIndex:"category",key:"category",width:120,render:E=>{const C=E||"通用";return T.jsx(la,{color:rv(C),children:C})}},{title:"分值",dataIndex:"score",key:"score",width:90,render:E=>`${E} 分`},{title:"答案",dataIndex:"answer",key:"answer",width:160,ellipsis:!0,render:E=>Array.isArray(E)?E.join(" | "):E},{title:"解析",dataIndex:"analysis",key:"analysis",width:320,ellipsis:!0,onHeaderCell:()=>({className:"qt-text-import-th-analysis"}),onCell:()=>({className:"qt-text-import-td-analysis"}),render:E=>T.jsxs("span",{children:[T.jsx(la,{color:"blue",children:"解析"}),E||"无"]})},{title:"操作",key:"action",width:80,render:(E,C,O)=>T.jsx(kt,{type:"text",danger:!0,icon:T.jsx(fu,{}),onClick:()=>g(v+O)})}];return T.jsxs("div",{children:[T.jsxs("div",{className:"mb-6 flex items-center justify-between",children:[T.jsxs(En,{children:[T.jsx(kt,{icon:T.jsx(_Re,{}),onClick:()=>e("/admin/questions"),children:"返回"}),T.jsx(US.Title,{level:3,style:{margin:0},children:"文本导入题库"})]}),T.jsxs(En,{children:[T.jsxs(Gs.Group,{value:n,onChange:E=>a(E.target.value),children:[T.jsx(Gs.Button,{value:"incremental",children:"增量导入"}),T.jsx(Gs.Button,{value:"overwrite",children:"覆盖式导入"})]}),T.jsx(kt,{type:"primary",icon:T.jsx(eG,{}),disabled:s.length===0,loading:c,onClick:S,children:"一键导入"})]})]}),T.jsx(_r,{className:"shadow-sm mb-4",children:T.jsxs(En,{direction:"vertical",style:{width:"100%"},size:"middle",children:[T.jsxs("div",{className:"flex items-center justify-between",children:[T.jsxs(En,{children:[T.jsx(kt,{icon:T.jsx(YI,{}),onClick:()=>r(h),children:"填充示例"}),T.jsx(kt,{type:"primary",onClick:p,disabled:!t.trim(),children:"解析文本"})]}),T.jsxs(En,{size:"large",children:[T.jsx(Ai,{title:"本次导入题目总数",value:y,valueStyle:{color:"#1677ff",fontWeight:700}}),T.jsx(Ai,{title:"有效题目数量",value:x,valueStyle:{color:"#52c41a",fontWeight:700}}),T.jsx(Ai,{title:"无效题目数量",value:b,valueStyle:{color:b>0?"#ff4d4f":"#8c8c8c",fontWeight:700}})]})]}),T.jsx(Ztt,{value:t,onChange:E=>r(E.target.value),placeholder:h,rows:12}),i.length>0&&T.jsx(ule,{type:"warning",message:"解析错误(已忽略对应行)",description:T.jsx("div",{style:{maxHeight:160,overflow:"auto"},children:i.map(E=>T.jsx("div",{children:E},E))}),showIcon:!0})]})}),T.jsx(_r,{className:"shadow-sm",children:T.jsx(oi,{columns:w,dataSource:s.map((E,C)=>({...E,key:`${E.content}-${C}`})),pagination:{...f,showSizeChanger:!0},tableLayout:"fixed",scroll:{x:1800},size:"small",onChange:E=>m({current:E.current??1,pageSize:E.pageSize??10,size:"small"})})})]})},ert=()=>{const[e]=Ht.useForm(),[t,r]=d.useState(!1),[n,a]=d.useState(!1),[i,o]=d.useState({singleRatio:40,multipleRatio:30,judgmentRatio:20,textRatio:10,totalScore:100});d.useEffect(()=>{s()},[]);const s=async()=>{try{r(!0);const m=(await qs.getQuizConfig()).data;e.setFieldsValue(m),o(m)}catch(f){ut.error(f.message||"获取配置失败")}finally{r(!1)}},l=async f=>{try{a(!0);const m=f.singleRatio+f.multipleRatio+f.judgmentRatio+f.textRatio;if(console.log("题型比例总和:",m),Math.abs(m-100)>.01){ut.error("题型比例总和必须为100%");return}if(f.totalScore<=0){ut.error("总分必须大于0");return}await qs.updateQuizConfig(f),ut.success("配置更新成功"),o(f)}catch(m){ut.error(m.message||"更新配置失败"),console.error("更新配置失败:",m)}finally{a(!1)}},c=(f,m)=>{o(m)},u=f=>f>=40?"#52c41a":f>=20?"#faad14":"#ff4d4f";return T.jsxs("div",{children:[T.jsxs("div",{className:"mb-6",children:[T.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"抽题配置"}),T.jsx("p",{className:"text-gray-600 mt-2",children:"设置各题型的比例和试卷总分"})]}),T.jsx(_r,{className:"shadow-sm",loading:t,title:T.jsxs("div",{className:"flex items-center justify-between",children:[T.jsx("span",{children:"抽题配置"}),T.jsxs("span",{className:`text-sm ${i.singleRatio+i.multipleRatio+i.judgmentRatio+i.textRatio===100?"text-green-600":"text-red-600"}`,children:["比例总和:",i.singleRatio+i.multipleRatio+i.judgmentRatio+i.textRatio,"%"]})]}),children:T.jsxs(Ht,{form:e,layout:"vertical",onFinish:l,onValuesChange:c,initialValues:{singleRatio:40,multipleRatio:30,judgmentRatio:20,textRatio:10,totalScore:100},children:[T.jsxs(cs,{gutter:24,children:[T.jsx(Qr,{span:12,children:T.jsx(Ht.Item,{label:"单选题比例 (%)",name:"singleRatio",rules:[{required:!0,message:"请输入单选题比例"}],children:T.jsx(Ks,{min:0,max:100,style:{width:"100%"},formatter:f=>`${f}%`,parser:f=>f.replace("%","")})})}),T.jsx(Qr,{span:12,children:T.jsx(Sc,{percent:i.singleRatio,strokeColor:u(i.singleRatio),showInfo:!1})})]}),T.jsxs(cs,{gutter:24,children:[T.jsx(Qr,{span:12,children:T.jsx(Ht.Item,{label:"多选题比例 (%)",name:"multipleRatio",rules:[{required:!0,message:"请输入多选题比例"}],children:T.jsx(Ks,{min:0,max:100,style:{width:"100%"},formatter:f=>`${f}%`,parser:f=>f.replace("%","")})})}),T.jsx(Qr,{span:12,children:T.jsx(Sc,{percent:i.multipleRatio,strokeColor:u(i.multipleRatio),showInfo:!1})})]}),T.jsxs(cs,{gutter:24,children:[T.jsx(Qr,{span:12,children:T.jsx(Ht.Item,{label:"判断题比例 (%)",name:"judgmentRatio",rules:[{required:!0,message:"请输入判断题比例"}],children:T.jsx(Ks,{min:0,max:100,style:{width:"100%"},formatter:f=>`${f}%`,parser:f=>f.replace("%","")})})}),T.jsx(Qr,{span:12,children:T.jsx(Sc,{percent:i.judgmentRatio,strokeColor:u(i.judgmentRatio),showInfo:!1})})]}),T.jsxs(cs,{gutter:24,children:[T.jsx(Qr,{span:12,children:T.jsx(Ht.Item,{label:"文字题比例 (%)",name:"textRatio",rules:[{required:!0,message:"请输入文字题比例"}],children:T.jsx(Ks,{min:0,max:100,style:{width:"100%"},formatter:f=>`${f}%`,parser:f=>f.replace("%","")})})}),T.jsx(Qr,{span:12,children:T.jsx(Sc,{percent:i.textRatio,strokeColor:u(i.textRatio),showInfo:!1})})]}),T.jsxs(cs,{gutter:24,children:[T.jsx(Qr,{span:12,children:T.jsx(Ht.Item,{label:"试卷总分",name:"totalScore",rules:[{required:!0,message:"请输入试卷总分"}],children:T.jsx(Ks,{min:1,max:200,style:{width:"100%"},formatter:f=>`${f}分`,parser:f=>f.replace("分","")})})}),T.jsx(Qr,{span:12,children:T.jsx("div",{className:"h-8 flex items-center text-gray-600",children:"建议设置:100-150分"})})]}),T.jsx(Ht.Item,{className:"mb-0",children:T.jsx(kt,{type:"primary",htmlType:"submit",loading:n,className:"rounded-lg",children:"保存配置"})})]})}),T.jsx(_r,{title:"配置说明",className:"mt-6 shadow-sm",children:T.jsxs("div",{className:"space-y-3 text-gray-600",children:[T.jsx("p",{children:"• 各题型比例总和必须为100%"}),T.jsx("p",{children:"• 系统会根据比例和总分自动计算各题型的题目数量"}),T.jsx("p",{children:"• 建议单选题比例不低于30%,确保试卷的覆盖面"}),T.jsx("p",{children:"• 文字题比例建议不超过20%,避免评分主观性过强"}),T.jsx("p",{children:"• 总分设置建议为100分,便于成绩统计和分析"})]})})]})},{RangePicker:trt}=wp,{TabPane:Fy}=MS,AL=["#1890ff","#52c41a","#faad14","#f5222d","#722ed1","#13c2c2"],rrt=e=>{switch(e){case"不及格":return"red";case"合格":return"blue";case"优秀":return"green";default:return"default"}},nrt=()=>{const[e,t]=d.useState(null),[r,n]=d.useState([]),[a,i]=d.useState([]),[o,s]=d.useState([]),[l,c]=d.useState([]),[u,f]=d.useState(!1),[m,h]=d.useState(null),[p,g]=d.useState("overview");d.useState(""),d.useState("");const[v,y]=d.useState([]),[x,b]=d.useState([]);d.useEffect(()=>{S()},[]);const S=async()=>{await Promise.all([w(),E(),C(),O(),_(),P(),I()])},w=async()=>{try{f(!0);const M=await qs.getStatistics();t(M.data)}catch(M){ut.error(M.message||"获取统计数据失败")}finally{f(!1)}},E=async()=>{try{const M=await bd.getAllRecords({page:1,limit:100});n(M.data||[])}catch(M){console.error("获取答题记录失败:",M)}},C=async()=>{try{const M=await qs.getUserStats();i(M.data||[])}catch(M){console.error("获取用户统计失败:",M)}},O=async()=>{try{const M=await qs.getSubjectStats();s(M.data||[])}catch(M){console.error("获取科目统计失败:",M)}},_=async()=>{try{const M=await qs.getTaskStats();c(M.data||[])}catch(M){console.error("获取任务统计失败:",M)}},P=async()=>{try{const M=await At.get("/exam-subjects");y(M.data||[])}catch(M){console.error("获取科目列表失败:",M)}},I=async()=>{try{const M=await At.get("/exam-tasks");b(M.data||[])}catch(M){console.error("获取任务列表失败:",M)}},N=M=>{h(M)},D=()=>{const M=[["姓名","手机号","科目","任务","得分","正确数","总题数","答题时间"],...r.map(B=>[B.userName,B.userPhone,B.subjectName||"",B.taskName||"",B.totalScore,B.correctCount,B.totalCount,si(B.createdAt)])].map(B=>B.join(",")).join(` -`),V=new Blob([M],{type:"text/csv"}),K=window.URL.createObjectURL(V),L=document.createElement("a");L.href=K,L.download=`答题记录_${new Date().toISOString().split("T")[0]}.csv`,L.click(),window.URL.revokeObjectURL(K),ut.success("数据导出成功")},k=[{range:"不及格",count:r.filter(M=>M.status==="不及格").length},{range:"合格",count:r.filter(M=>M.status==="合格").length},{range:"优秀",count:r.filter(M=>M.status==="优秀").length}].filter(M=>M.count>0),R=[{title:"姓名",dataIndex:"userName",key:"userName"},{title:"手机号",dataIndex:"userPhone",key:"userPhone"},{title:"科目",dataIndex:"subjectName",key:"subjectName"},{title:"任务",dataIndex:"taskName",key:"taskName"},{title:"状态",dataIndex:"status",key:"status",render:M=>{const V=rrt(M);return T.jsx("span",{className:`px-2 py-1 rounded text-xs font-medium bg-${V}-100 text-${V}-800`,children:M})}},{title:"得分",dataIndex:"totalScore",key:"totalScore",render:M=>T.jsxs("span",{className:"font-semibold text-blue-600",children:[M," 分"]})},{title:"正确率",key:"correctRate",render:M=>{const V=(M.correctCount/M.totalCount*100).toFixed(1);return T.jsxs("span",{children:[V,"%"]})}},{title:"答题时间",dataIndex:"createdAt",key:"createdAt",render:M=>si(M)}],A=[{title:"用户姓名",dataIndex:"userName",key:"userName"},{title:"答题次数",dataIndex:"totalRecords",key:"totalRecords"},{title:"平均分",dataIndex:"averageScore",key:"averageScore",render:M=>`${M.toFixed(1)} 分`},{title:"最高分",dataIndex:"highestScore",key:"highestScore",render:M=>`${M} 分`},{title:"最低分",dataIndex:"lowestScore",key:"lowestScore",render:M=>`${M} 分`}],j=[{title:"科目名称",dataIndex:"subjectName",key:"subjectName"},{title:"答题次数",dataIndex:"totalRecords",key:"totalRecords"},{title:"平均分",dataIndex:"averageScore",key:"averageScore",render:M=>`${M.toFixed(1)} 分`},{title:"平均正确率",dataIndex:"averageCorrectRate",key:"averageCorrectRate",render:M=>`${M.toFixed(1)}%`}],F=[{title:"任务名称",dataIndex:"taskName",key:"taskName"},{title:"答题次数",dataIndex:"totalRecords",key:"totalRecords"},{title:"平均分",dataIndex:"averageScore",key:"averageScore",render:M=>`${M.toFixed(1)} 分`},{title:"完成率",dataIndex:"completionRate",key:"completionRate",render:M=>`${M.toFixed(1)}%`}];return T.jsxs("div",{children:[T.jsxs("div",{className:"flex justify-between items-center mb-6",children:[T.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"数据统计分析"}),T.jsxs("div",{className:"space-x-4",children:[T.jsx(trt,{onChange:N}),T.jsx(kt,{type:"primary",onClick:D,children:"导出数据"})]})]}),T.jsxs(cs,{gutter:16,className:"mb-8",children:[T.jsx(Qr,{span:6,children:T.jsx(_r,{children:T.jsx(Ai,{title:"总用户数",value:(e==null?void 0:e.totalUsers)||0,valueStyle:{color:"#1890ff"}})})}),T.jsx(Qr,{span:6,children:T.jsx(_r,{children:T.jsx(Ai,{title:"总答题数",value:(e==null?void 0:e.totalRecords)||0,valueStyle:{color:"#52c41a"}})})}),T.jsx(Qr,{span:6,children:T.jsx(_r,{children:T.jsx(Ai,{title:"平均分",value:(e==null?void 0:e.averageScore)||0,precision:1,valueStyle:{color:"#faad14"},suffix:"分"})})}),T.jsx(Qr,{span:6,children:T.jsx(_r,{children:T.jsx(Ai,{title:"活跃率",value:e!=null&&e.totalUsers?(e.totalRecords/e.totalUsers*100).toFixed(1):0,precision:1,valueStyle:{color:"#f5222d"},suffix:"%"})})})]}),T.jsxs(MS,{activeKey:p,onChange:g,children:[T.jsxs(Fy,{tab:"总体概览",children:[T.jsx(cs,{gutter:16,className:"mb-8",children:T.jsx(Qr,{span:24,children:T.jsx(_r,{title:"分数分布",className:"shadow-sm",children:T.jsx(Uq,{width:"100%",height:300,children:T.jsxs(eZ,{children:[T.jsx(wR,{data:k,cx:"50%",cy:"50%",labelLine:!1,label:({name:M,percent:V})=>`${M} ${(V*100).toFixed(0)}%`,outerRadius:80,fill:"#8884d8",dataKey:"count",children:k.map((M,V)=>T.jsx(ig,{fill:AL[V%AL.length]},`cell-${V}`))}),T.jsx(vQ,{})]})})})})}),T.jsx(_r,{title:"答题记录明细",className:"shadow-sm",children:T.jsx(oi,{columns:R,dataSource:r,rowKey:"id",size:"small",loading:u,pagination:{pageSize:10,showSizeChanger:!0,showQuickJumper:!0,showTotal:M=>`共 ${M} 条`,size:"small"}})})]},"overview"),T.jsx(Fy,{tab:"用户统计",children:T.jsx(_r,{title:"用户答题统计",className:"shadow-sm",children:T.jsx(oi,{columns:A,dataSource:a,rowKey:"userId",size:"small",pagination:{pageSize:10,showSizeChanger:!0,showQuickJumper:!0,showTotal:M=>`共 ${M} 条`,size:"small"}})})},"users"),T.jsx(Fy,{tab:"科目统计",children:T.jsx(_r,{title:"科目答题统计",className:"shadow-sm",children:T.jsx(oi,{columns:j,dataSource:o,rowKey:"subjectId",size:"small",pagination:{pageSize:10,showSizeChanger:!0,showQuickJumper:!0,showTotal:M=>`共 ${M} 条`,size:"small"}})})},"subjects"),T.jsx(Fy,{tab:"任务统计",children:T.jsx(_r,{title:"考试任务统计",className:"shadow-sm",children:T.jsx(oi,{columns:F,dataSource:l,rowKey:"taskId",size:"small",pagination:{pageSize:10,showSizeChanger:!0,showQuickJumper:!0,showTotal:M=>`共 ${M} 条`,size:"small"}})})},"tasks")]})]})},art=()=>{const[e,t]=d.useState(!1),r=async()=>{try{t(!0);const[i,o,s,l]=await Promise.all([fetch("/api/admin/export/users").then(f=>f.json()),fetch("/api/admin/export/questions").then(f=>f.json()),fetch("/api/admin/export/records").then(f=>f.json()),fetch("/api/admin/export/answers").then(f=>f.json())]),c=Ea.book_new();if(i.success&&i.data){const f=Ea.json_to_sheet(i.data);Ea.book_append_sheet(c,f,"用户数据")}if(o.success&&o.data){const f=Ea.json_to_sheet(o.data);Ea.book_append_sheet(c,f,"题库数据")}if(s.success&&s.data){const f=Ea.json_to_sheet(s.data);Ea.book_append_sheet(c,f,"答题记录")}if(l.success&&l.data){const f=Ea.json_to_sheet(l.data);Ea.book_append_sheet(c,f,"答题答案")}const u=`问卷系统备份_${new Date().toISOString().split("T")[0]}.xlsx`;OT(c,u),ut.success("数据备份成功")}catch(i){console.error("备份失败:",i),ut.error("数据备份失败")}finally{t(!1)}},n=async i=>{try{const o=new FileReader;o.onload=async s=>{var l;try{const c=new Uint8Array((l=s.target)==null?void 0:l.result),u=M0(c,{type:"array"}),f=u.SheetNames,m={};f.forEach(h=>{const p=u.Sheets[h],g=Ea.sheet_to_json(p);h.includes("用户")?m.users=g:h.includes("题库")?m.questions=g:h.includes("记录")?m.records=g:h.includes("答案")&&(m.answers=g)}),Ci.confirm({title:"确认数据恢复",content:T.jsxs("div",{children:[T.jsx("p",{children:"检测到以下数据:"}),T.jsxs("ul",{children:[m.users&&T.jsxs("li",{children:["用户数据:",m.users.length," 条"]}),m.questions&&T.jsxs("li",{children:["题库数据:",m.questions.length," 条"]}),m.records&&T.jsxs("li",{children:["答题记录:",m.records.length," 条"]}),m.answers&&T.jsxs("li",{children:["答题答案:",m.answers.length," 条"]})]}),T.jsx("p",{style:{color:"red",marginTop:16},children:"警告:数据恢复将覆盖现有数据,请确保已备份当前数据!"})]}),onOk:async()=>{await a(m)},width:500})}catch(c){console.error("解析文件失败:",c),ut.error("文件解析失败,请检查文件格式")}},o.readAsArrayBuffer(i)}catch(o){console.error("恢复失败:",o),ut.error("数据恢复失败")}return!1},a=async i=>{try{t(!0);const s=await(await fetch("/api/admin/restore",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${localStorage.getItem("survey_admin")?JSON.parse(localStorage.getItem("survey_admin")).token:""}`},body:JSON.stringify(i)})).json();s.success?ut.success("数据恢复成功"):ut.error(s.message||"数据恢复失败")}catch(o){console.error("恢复失败:",o),ut.error("数据恢复失败")}finally{t(!1)}};return T.jsxs("div",{children:[T.jsx("div",{className:"flex justify-between items-center mb-6",children:T.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"数据备份与恢复"})}),T.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[T.jsx(_r,{title:"数据备份",className:"shadow-sm",children:T.jsxs("div",{className:"space-y-4",children:[T.jsx("p",{className:"text-gray-600",children:"备份所有数据到Excel文件,包括用户信息、题库、答题记录等。"}),T.jsx(kt,{type:"primary",icon:T.jsx(hN,{}),onClick:r,loading:e,size:"large",className:"w-full",children:"立即备份"})]})}),T.jsx(_r,{title:"数据恢复",className:"shadow-sm",children:T.jsxs("div",{className:"space-y-4",children:[T.jsx("p",{className:"text-gray-600",children:"从Excel文件恢复数据,将覆盖现有数据,请谨慎操作。"}),T.jsx(vN,{accept:".xlsx,.xls",showUploadList:!1,beforeUpload:n,children:T.jsx(kt,{icon:T.jsx(tG,{}),loading:e,size:"large",className:"w-full",danger:!0,children:"选择文件恢复"})})]})})]}),T.jsx(_r,{title:"注意事项",className:"mt-6 shadow-sm",children:T.jsxs("div",{className:"space-y-2 text-gray-600",children:[T.jsx("p",{children:"• 建议定期进行数据备份,以防数据丢失"}),T.jsx("p",{children:"• 恢复数据前请确保已备份当前数据"}),T.jsx("p",{children:"• 数据恢复操作不可撤销,请谨慎操作"}),T.jsx("p",{children:"• 备份文件包含所有数据,请妥善保管"}),T.jsx("p",{children:"• 建议在系统空闲时进行数据恢复操作"})]})})]})},irt=()=>{const[e,t]=d.useState([]),[r,n]=d.useState(!1),[a,i]=d.useState(!1),[o,s]=d.useState(null),[l]=Ht.useForm(),c=H0(),u=async()=>{n(!0);try{const y=await At.get("/question-categories");t(y.data)}catch{ut.error("获取题目类别失败")}finally{n(!1)}};d.useEffect(()=>{u()},[c.pathname]);const f=()=>{u()},m=()=>{s(null),l.resetFields(),i(!0)},h=y=>{s(y),l.setFieldsValue({name:y.name}),i(!0)},p=async y=>{try{await At.delete(`/admin/question-categories/${y}`),ut.success("删除成功"),u()}catch{ut.error("删除失败")}},g=async()=>{try{const y=await l.validateFields();o?(await At.put(`/admin/question-categories/${o.id}`,y),ut.success("更新成功")):(await At.post("/admin/question-categories",y),ut.success("创建成功")),i(!1),u()}catch{ut.error("操作失败")}},v=[{title:"类别名称",dataIndex:"name",key:"name",align:"center",width:250,render:y=>T.jsx("div",{className:"flex items-center",children:T.jsx(la,{color:rv(y),className:"mr-2",children:y})})},{title:T.jsx(Os,{title:"该类别下题目数量(按题目表 category 统计)",children:T.jsx("span",{children:"题库数量"})}),dataIndex:"questionCount",key:"questionCount",align:"center",width:120,className:"qc-question-count-td",sorter:(y,x)=>(y.questionCount??0)-(x.questionCount??0),render:y=>T.jsx("div",{className:"qc-question-count",children:y??0})},{title:"创建时间",align:"center",width:200,dataIndex:"createdAt",key:"createdAt",render:y=>si(y,{includeSeconds:!0})},{title:T.jsx("div",{style:{textAlign:"center"},children:"操作"}),key:"action",align:"center",width:200,render:(y,x)=>T.jsxs(En,{children:[T.jsx(kt,{type:"text",size:"small",icon:T.jsx(Gc,{}),onClick:()=>h(x),children:"编辑"}),T.jsx(sm,{title:"确定删除该类别吗?",onConfirm:()=>p(x.id),okText:"确定",cancelText:"取消",children:T.jsx(kt,{type:"text",size:"small",danger:!0,icon:T.jsx(fu,{}),children:"删除"})})]})}];return T.jsxs("div",{children:[T.jsxs("div",{className:"flex justify-between items-center mb-6",children:[T.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"题目类别管理"}),T.jsxs(En,{children:[T.jsx(kt,{icon:T.jsx(Gc,{spin:r}),onClick:f,children:"刷新类别"}),T.jsx(kt,{type:"primary",icon:T.jsx(Vd,{}),onClick:m,children:"新增类别"})]})]}),T.jsx(oi,{columns:v,dataSource:e,rowKey:"id",size:"small",loading:r,pagination:{pageSize:10,showSizeChanger:!0,showTotal:y=>`共 ${y} 条`}}),T.jsx(Ci,{title:o?"编辑类别":"新增类别",open:a,onOk:g,onCancel:()=>i(!1),children:T.jsx(Ht,{form:l,layout:"vertical",children:T.jsx(Ht.Item,{name:"name",label:"类别名称",rules:[{required:!0,message:"请输入类别名称"}],children:T.jsx(Ia,{placeholder:"请输入类别名称"})})})})]})},ort=()=>{const[e,t]=d.useState([]),[r,n]=d.useState([]),[a,i]=d.useState(!1),[o,s]=d.useState(!1),[l,c]=d.useState(null),[u]=Ht.useForm(),[f,m]=d.useState(!1),[h,p]=d.useState(null),[g,v]=d.useState(!1),[y,x]=d.useState(null),[b,S]=d.useState("count"),[w,E]=d.useState({single:40,multiple:30,judgment:20,text:10}),[C,O]=d.useState({通用:100}),_=z=>Object.values(z).reduce((U,X)=>U+X,0),P=z=>{const U=Object.values(z);if(U.length===0||U.some(Y=>typeof Y!="number"||Number.isNaN(Y)||Y<0)||U.some(Y=>Y>100))return!1;const X=U.reduce((Y,G)=>Y+G,0);return Math.abs(X-100)<=.01},I=z=>{const U=Object.entries(z);if(U.length===0)return z;const X={};for(const[ee,H]of U)X[ee]=Math.max(0,Math.min(100,Math.round((Number(H)||0)*100)/100));const Y=Object.keys(X),G=Y[Y.length-1],Q=Y.slice(0,-1).reduce((ee,H)=>ee+(X[H]??0),0);return X[G]=Math.max(0,Math.min(100,Math.round((100-Q)*100)/100)),X},N=z=>{const U=Object.entries(z);if(U.length===0)return z;const X=U.reduce((G,[,Q])=>G+Math.max(0,Number(Q)||0),0);if(X<=0)return I(Object.fromEntries(U.map(([G])=>[G,0])));const Y={};for(const[G,Q]of U)Y[G]=Math.round(Math.max(0,Number(Q)||0)/X*100*100)/100;return I(Y)},D=z=>{const U={};for(const[X,Y]of Object.entries(z))U[X]=Math.max(0,Math.round(Number(Y)||0));return U},k=[{key:"single",label:"单选题",color:"#52c41a"},{key:"multiple",label:"多选题",color:"#faad14"},{key:"judgment",label:"判断题",color:"#ff4d4f"},{key:"text",label:"文字题",color:"#1890ff"}],R=async()=>{i(!0);try{const[z,U]=await Promise.all([At.get("/admin/subjects"),At.get("/question-categories")]);t(z.data),n(U.data)}catch{ut.error("获取数据失败")}finally{i(!1)}};d.useEffect(()=>{R()},[]);const A=()=>{c(null),u.resetFields();const z={single:4,multiple:3,judgment:2,text:1},U={通用:10};S("count"),E(z),O(U),u.setFieldsValue({typeRatios:z,categoryRatios:U,totalScore:100,timeLimitMinutes:60}),s(!0)},j=z=>{c(z);const U=z.typeRatios||{single:40,multiple:30,judgment:20,text:10},X={通用:100};z.categoryRatios&&Object.assign(X,z.categoryRatios);const Y=P(U)&&P(X)?"ratio":"count";S(Y),E(U),O(X),u.setFieldsValue({name:z.name,totalScore:z.totalScore,timeLimitMinutes:z.timeLimitMinutes,typeRatios:U,categoryRatios:X}),s(!0)},F=async z=>{try{await At.delete(`/admin/subjects/${z}`),ut.success("删除成功"),R()}catch{ut.error("删除失败")}},M=async()=>{try{const z=_(w),U=_(C);if(b==="ratio"){if(console.log("题型比重总和(状态):",z),Math.abs(z-100)>.01){ut.error("题型比重总和必须为100%");return}if(console.log("类别比重总和(状态):",U),Math.abs(U-100)>.01){ut.error("题目类别比重总和必须为100%");return}}else{const Y=Object.values(w),G=Object.values(C);if(Y.length===0||G.length===0){ut.error("题型数量与题目类别数量不能为空");return}if(Y.some(Q=>typeof Q!="number"||Number.isNaN(Q)||Q<0||!Number.isInteger(Q))){ut.error("题型数量必须为非负整数");return}if(G.some(Q=>typeof Q!="number"||Number.isNaN(Q)||Q<0||!Number.isInteger(Q))){ut.error("题目类别数量必须为非负整数");return}if(!Y.some(Q=>Q>0)||!G.some(Q=>Q>0)){ut.error("题型数量与题目类别数量至少需要一个大于0的配置");return}if(z!==U){ut.error("题型数量总和必须等于题目类别数量总和");return}}const X=await u.validateFields();X.typeRatios=w,X.categoryRatios=C,console.log("最终提交的表单值:",X),l?(await At.put(`/admin/subjects/${l.id}`,X),ut.success("更新成功")):(await At.post("/admin/subjects",X),ut.success("创建成功")),s(!1),R()}catch(z){ut.error("操作失败"),console.error("操作失败:",z)}},V=z=>{if(z===b)return;let U=w,X=C;z==="count"?(U=D(w),X=D(C)):(U=N(w),X=N(C)),S(z),E(U),O(X),u.setFieldsValue({typeRatios:U,categoryRatios:X})},K=(z,U)=>{const X={...w,[z]:U};E(X),u.setFieldsValue({typeRatios:X})},L=(z,U)=>{const X={...C,[z]:U};console.log("修改类别比重:",z,U,"新的类别比重:",X),console.log("类别比重总和:",Object.values(X).reduce((Y,G)=>Y+G,0)),O(X),u.setFieldsValue({categoryRatios:X})},B=async z=>{try{v(!0),x(z);const U=await At.post("/quiz/generate",{userId:"admin-preview",subjectId:z.id});p(U.data),m(!0)}catch(U){ut.error("生成预览题目失败"),console.error("生成预览题目失败:",U)}finally{v(!1)}},W=[{title:"科目名称",dataIndex:"name",key:"name"},{title:"总分",dataIndex:"totalScore",key:"totalScore",render:z=>`${z} 分`},{title:"答题时间",dataIndex:"timeLimitMinutes",key:"timeLimitMinutes",render:z=>`${z} 分钟`},{title:"题型分布",dataIndex:"typeRatios",key:"typeRatios",render:z=>{const U=P(z||{}),X=_(z||{});return T.jsxs("div",{className:"p-3 bg-white rounded-lg border border-gray-200 shadow-sm",children:[T.jsx("div",{className:"w-full bg-gray-200 rounded-full h-4 flex mb-3 overflow-hidden",children:z&&Object.entries(z).map(([Y,G])=>{const Q=k.find(H=>H.key===Y),ee=U?G:X>0?G/X*100:0;return T.jsx("div",{className:"h-full",style:{width:`${ee}%`,backgroundColor:(Q==null?void 0:Q.color)||"#1890ff"}},Y)})}),T.jsx("div",{className:"space-y-1",children:z&&Object.entries(z).map(([Y,G])=>{const Q=k.find(H=>H.key===Y),ee=U?G:X>0?Math.round(G/X*1e3)/10:0;return T.jsxs("div",{className:"flex items-center text-sm",children:[T.jsx("span",{className:"inline-block w-3 h-3 mr-2 rounded-full",style:{backgroundColor:(Q==null?void 0:Q.color)||"#1890ff"}}),T.jsx("span",{className:"flex-1",children:(Q==null?void 0:Q.label)||Y}),T.jsx("span",{className:"font-medium",children:U?`${G}%`:`${G}题(${ee}%)`})]},Y)})})]})}},{title:"题目类别分布",dataIndex:"categoryRatios",key:"categoryRatios",render:z=>{const U=P(z||{}),X=_(z||{});return T.jsxs("div",{className:"p-3 bg-white rounded-lg border border-gray-200 shadow-sm",children:[T.jsx("div",{className:"w-full bg-gray-200 rounded-full h-4 flex mb-3 overflow-hidden",children:z&&Object.entries(z).map(([Y,G])=>T.jsx("div",{className:"h-full",style:{width:`${U?G:X>0?G/X*100:0}%`,backgroundColor:rv(Y)}},Y))}),T.jsx("div",{className:"space-y-1",children:z&&Object.entries(z).map(([Y,G])=>{const Q=U?G:X>0?Math.round(G/X*1e3)/10:0;return T.jsxs("div",{className:"flex items-center text-sm",children:[T.jsx("span",{className:"inline-block w-3 h-3 mr-2 rounded-full",style:{backgroundColor:rv(Y)}}),T.jsx("span",{className:"flex-1",children:Y}),T.jsx("span",{className:"font-medium",children:U?`${G}%`:`${G}题(${Q}%)`})]},Y)})})]})}},{title:"创建时间",dataIndex:"createdAt",key:"createdAt",render:z=>{const U=hs(z)??new Date(z);return Number.isNaN(U.getTime())?z:T.jsxs("div",{children:[T.jsx("div",{children:U.toLocaleDateString()}),T.jsx("div",{className:"text-sm text-gray-500",children:U.toLocaleTimeString()})]})}},{title:"操作",key:"action",width:100,align:"left",render:(z,U)=>T.jsxs("div",{className:"space-y-2",children:[T.jsx(kt,{type:"text",size:"small",icon:T.jsx(Gc,{}),onClick:()=>j(U),children:"编辑"}),T.jsx(kt,{type:"text",size:"small",icon:T.jsx(Pv,{}),onClick:()=>B(U),children:"浏览考题"}),T.jsx(sm,{title:"确定删除该科目吗?",onConfirm:()=>F(U.id),okText:"确定",cancelText:"取消",children:T.jsx(kt,{type:"text",danger:!0,size:"small",icon:T.jsx(fu,{}),children:"删除"})})]})}];return T.jsxs("div",{children:[T.jsxs("div",{className:"flex justify-between items-center mb-6",children:[T.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"考试科目管理"}),T.jsx(kt,{type:"primary",icon:T.jsx(Vd,{}),onClick:A,children:"新增科目"})]}),T.jsx(oi,{columns:W,dataSource:e,rowKey:"id",size:"small",loading:a,pagination:{pageSize:10,showSizeChanger:!0,showTotal:z=>`共 ${z} 条`,size:"small"}}),T.jsx(Ci,{title:l?"编辑科目":"新增科目",open:o,onOk:M,onCancel:()=>s(!1),width:800,children:T.jsxs(Ht,{form:u,layout:"vertical",children:[T.jsx(Ht.Item,{name:"name",label:"科目名称",rules:[{required:!0,message:"请输入科目名称"}],children:T.jsx(Ia,{placeholder:"请输入科目名称"})}),T.jsxs(cs,{gutter:16,children:[T.jsx(Qr,{span:12,children:T.jsx(Ht.Item,{name:"totalScore",label:"试卷总分",rules:[{required:!0,message:"请输入试卷总分"}],children:T.jsx(Ks,{min:1,max:200,placeholder:"请输入总分",style:{width:"100%"}})})}),T.jsx(Qr,{span:12,children:T.jsx(Ht.Item,{name:"timeLimitMinutes",label:"答题时间(分钟)",rules:[{required:!0,message:"请输入答题时间"}],children:T.jsx(Ks,{min:1,max:180,placeholder:"请输入时间",style:{width:"100%"}})})})]}),T.jsx(_r,{size:"small",className:"mb-4",children:T.jsxs("div",{className:"flex items-center justify-between",children:[T.jsx("span",{className:"font-medium",children:"配置模式"}),T.jsx(Gs.Group,{value:b,onChange:z=>V(z.target.value),options:[{label:"比例(%)",value:"ratio"},{label:"数量(题)",value:"count"}],optionType:"button",buttonStyle:"solid"})]})}),T.jsx(_r,{size:"small",title:T.jsxs("div",{className:"flex items-center justify-between",children:[T.jsx("span",{children:b==="ratio"?"题型比重配置":"题型数量配置"}),T.jsxs("span",{className:`text-sm ${b==="ratio"?Math.abs(_(w)-100)<=.01?"text-green-600":"text-red-600":_(w)>0?"text-green-600":"text-red-600"}`,children:["总计:",_(w),b==="ratio"?"%":"题"]})]}),className:"mb-4",children:T.jsx(Ht.Item,{name:"typeRatios",noStyle:!0,children:T.jsx("div",{className:"space-y-4",children:k.map(z=>{const U=w[z.key]||0,X=_(w),Y=b==="ratio"?U:X>0?Math.round(U/X*1e3)/10:0;return T.jsxs("div",{children:[T.jsxs("div",{className:"flex items-center justify-between mb-2",children:[T.jsx("span",{className:"font-medium",children:z.label}),T.jsx("span",{className:"text-blue-600 font-bold",children:b==="ratio"?`${U}%`:`${U}题`})]}),T.jsxs("div",{className:"flex items-center space-x-4",children:[T.jsx(Ks,{min:0,max:b==="ratio"?100:200,precision:b==="ratio"?2:0,value:U,onChange:G=>K(z.key,G||0),style:{width:100}}),T.jsx("div",{style:{flex:1},children:T.jsx(Sc,{percent:Y,strokeColor:z.color,showInfo:!1,size:"small"})})]})]},z.key)})})})}),T.jsx(_r,{size:"small",title:T.jsxs("div",{className:"flex items-center justify-between",children:[T.jsx("span",{children:b==="ratio"?"题目类别比重配置":"题目类别数量配置"}),T.jsxs("span",{className:`text-sm ${b==="ratio"?Math.abs(_(C)-100)<=.01?"text-green-600":"text-red-600":_(C)===_(w)&&_(C)>0?"text-green-600":"text-red-600"}`,children:["总计:",_(C),b==="ratio"?"%":"题"]})]}),children:T.jsx(Ht.Item,{name:"categoryRatios",noStyle:!0,children:T.jsx("div",{className:"space-y-4",children:r.map(z=>{const U=C[z.name]||0,X=_(C),Y=b==="ratio"?U:X>0?Math.round(U/X*1e3)/10:0;return T.jsxs("div",{children:[T.jsxs("div",{className:"flex items-center justify-between mb-2",children:[T.jsx("span",{className:"font-medium",children:z.name}),T.jsx("span",{className:"text-blue-600 font-bold",children:b==="ratio"?`${U}%`:`${U}题`})]}),T.jsxs("div",{className:"flex items-center space-x-4",children:[T.jsx(Ks,{min:0,max:b==="ratio"?100:200,precision:b==="ratio"?2:0,value:U,onChange:G=>L(z.name,G||0),style:{width:100}}),T.jsx("div",{style:{flex:1},children:T.jsx(Sc,{percent:Y,strokeColor:"#1890ff",showInfo:!1,size:"small"})})]})]},z.id)})})})})]})}),T.jsx(Ci,{title:`${(y==null?void 0:y.name)||""} - 随机考题预览`,open:f,onCancel:()=>m(!1),width:900,footer:null,bodyStyle:{maxHeight:"70vh",overflowY:"auto"},children:g?T.jsxs("div",{className:"text-center py-10",children:[T.jsx("div",{className:"ant-spin ant-spin-lg"}),T.jsx("p",{className:"mt-4",children:"正在生成随机考题..."})]}):h?T.jsxs("div",{children:[T.jsx(_r,{size:"small",className:"mb-4",children:T.jsxs("div",{className:"flex justify-between",children:[T.jsxs("div",{children:[T.jsx("span",{className:"font-medium mr-4",children:"总分:"}),T.jsxs("span",{children:[h.totalScore," 分"]})]}),T.jsxs("div",{children:[T.jsx("span",{className:"font-medium mr-4",children:"时间限制:"}),T.jsxs("span",{children:[h.timeLimit," 分钟"]})]}),T.jsxs("div",{children:[T.jsx("span",{className:"font-medium mr-4",children:"题目数量:"}),T.jsxs("span",{children:[h.questions.length," 道"]})]})]})}),T.jsx("div",{className:"space-y-4",children:h.questions.map((z,U)=>T.jsxs(_r,{className:"shadow-sm",children:[T.jsxs("div",{className:"flex justify-between items-start mb-3",children:[T.jsxs("h4",{className:"font-bold",children:["第 ",U+1," 题(",z.score," 分)",T.jsx("span",{className:"ml-2 text-blue-600 font-normal",children:z.type==="single"?"单选题":z.type==="multiple"?"多选题":z.type==="judgment"?"判断题":"文字题"})]}),T.jsx("span",{className:"text-gray-500 text-sm",children:z.category})]}),T.jsx("div",{className:"mb-3",children:z.content}),z.options&&z.options.length>0&&T.jsx("div",{className:"mb-3",children:z.options.map((X,Y)=>T.jsx("div",{className:"mb-2",children:T.jsxs("label",{className:"flex items-center",children:[T.jsx("span",{className:"inline-block w-6 h-6 mr-2 text-center border border-gray-300 rounded",children:String.fromCharCode(65+Y)}),T.jsx("span",{children:X})]})},Y))}),T.jsxs("div",{className:"mt-3",children:[T.jsx("span",{className:"font-medium mr-2",children:"参考答案:"}),T.jsx("span",{className:"text-green-600",children:Array.isArray(z.answer)?z.answer.join(", "):z.type==="judgment"?z.answer==="A"?"正确":"错误":z.answer})]}),T.jsxs("div",{className:"mt-3",children:[T.jsx(la,{color:"blue",children:"解析"}),T.jsx("span",{className:"text-gray-700 whitespace-pre-wrap",children:z.analysis||""})]})]},z.id))})]}):T.jsx("div",{className:"text-center py-10 text-gray-500",children:"暂无考题数据"})})]})},ML=()=>{const[e,t]=d.useState([]),[r,n]=d.useState([]),[a,i]=d.useState([]),[o,s]=d.useState([]),[l,c]=d.useState(!1),[u,f]=d.useState(!1),[m,h]=d.useState(!1),[p,g]=d.useState(null),[v,y]=d.useState(null),[x]=Ht.useForm(),[b,S]=d.useState({}),w=async()=>{c(!0);try{const[R,A,j,F]=await Promise.all([At.get("/admin/tasks"),At.get("/admin/subjects"),At.get("/admin/users"),Wu.getAll()]);t(R.data),n(A.data),i(j.data),s(F.data)}catch{ut.error("获取数据失败")}finally{c(!1)}};d.useEffect(()=>{w()},[]);const E=Ht.useWatch("userIds",x)||[],C=Ht.useWatch("groupIds",x)||[];d.useEffect(()=>{u&&(async()=>{if(C.length>0){for(const A of C)if(!b[A])try{const F=(await Wu.getMembers(A)).data;S(M=>({...M,[A]:(F||[]).map(V=>V.id)}))}catch(j){console.error(`Failed to fetch members for group ${A}`,j)}}})()},[C,u]);const O=d.useMemo(()=>{const R=new Set(E);return C.forEach(A=>{(b[A]||[]).forEach(F=>R.add(F))}),R.size},[E,C,b]),_=()=>{y(null),x.resetFields(),f(!0)},P=async R=>{y(R);try{let A=[],j=[];if(R.selectionConfig)try{const F=JSON.parse(R.selectionConfig);A=F.userIds||[],j=F.groupIds||[]}catch(F){console.error("Failed to parse selection config",F)}R.selectionConfig||(A=(await At.get(`/admin/tasks/${R.id}/users`)).data),x.setFieldsValue({name:R.name,subjectId:R.subjectId,startAt:Yn(hs(R.startAt)??R.startAt),endAt:Yn(hs(R.endAt)??R.endAt),userIds:A,groupIds:j})}catch{ut.error("获取任务详情失败")}f(!0)},I=async R=>{try{await At.delete(`/admin/tasks/${R}`),ut.success("删除成功"),w()}catch{ut.error("删除失败")}},N=async R=>{try{const A=await At.get(`/admin/tasks/${R}/report`);g(A.data),h(!0)}catch{ut.error("获取报表失败")}},D=async()=>{try{const R=await x.validateFields();if(O===0){ut.warning("请至少选择一位用户或一个用户组");return}const A={...R,startAt:R.startAt.toISOString(),endAt:R.endAt.toISOString()};v?(await At.put(`/admin/tasks/${v.id}`,A),ut.success("更新成功")):(await At.post("/admin/tasks",A),ut.success("创建成功")),f(!1),w()}catch{ut.error("操作失败")}},k=[{title:"任务名称",dataIndex:"name",key:"name",width:210,ellipsis:!0},{title:"考试科目",dataIndex:"subjectName",key:"subjectName",width:180,ellipsis:!0},{title:"开始时间",dataIndex:"startAt",key:"startAt",width:110,render:R=>si(R)},{title:"结束时间",dataIndex:"endAt",key:"endAt",width:110,render:R=>si(R)},{title:"考试进程",dataIndex:["startAt","endAt"],key:"progress",width:160,render:(R,A)=>{const j=Yn(),F=Yn(hs(A.startAt)??A.startAt),M=Yn(hs(A.endAt)??A.endAt);let V=0;if(jM)V=100;else{const K=M.diff(F,"millisecond"),L=j.diff(F,"millisecond");V=Math.round(L/K*100)}return T.jsxs("div",{className:"w-32",children:[T.jsx("div",{className:"flex justify-between text-sm mb-1",children:T.jsxs("span",{children:[V,"%"]})}),T.jsx("div",{className:"w-full bg-gray-200 rounded-full h-2",children:T.jsx("div",{className:"bg-blue-600 h-2 rounded-full transition-all duration-300",style:{width:`${V}%`}})})]})}},{title:"参与人数",dataIndex:"userCount",key:"userCount",width:75,render:R=>`${R} 人`},{title:"已完成人数",dataIndex:"completedUsers",key:"completedUsers",width:75,render:R=>`${R} 人`},{title:"合格率",dataIndex:"passRate",key:"passRate",width:75,render:R=>`${R}%`},{title:"优秀率",dataIndex:"excellentRate",key:"excellentRate",width:75,render:R=>`${R}%`},{title:"创建时间",dataIndex:"createdAt",key:"createdAt",width:110,render:R=>si(R)},{title:T.jsx("div",{style:{textAlign:"center"},children:"操作"}),key:"action",width:230,render:(R,A)=>T.jsxs(En,{size:"small",children:[T.jsx(kt,{type:"text",size:"small",icon:T.jsx(Gc,{}),onClick:()=>P(A),children:"编辑"}),T.jsx(kt,{type:"text",icon:T.jsx(YI,{}),onClick:()=>N(A.id),size:"small",children:"报表"}),T.jsx(sm,{title:"确定删除该任务吗?",onConfirm:()=>I(A.id),okText:"确定",cancelText:"取消",children:T.jsx(kt,{type:"text",danger:!0,icon:T.jsx(fu,{}),size:"small",children:"删除"})})]})}];return T.jsxs("div",{children:[T.jsxs("div",{className:"flex justify-between items-center mb-6",children:[T.jsx("h1",{className:"text-2xl font-bold text-gray-800",children:"考试任务管理"}),T.jsx(kt,{type:"primary",icon:T.jsx(Vd,{}),onClick:_,children:"新增任务"})]}),T.jsx(oi,{columns:k,dataSource:e,rowKey:"id",size:"small",loading:l,scroll:{x:1400},pagination:{pageSize:10,showSizeChanger:!0,showTotal:R=>`共 ${R} 条`,size:"small"}}),T.jsx(Ci,{title:v?"编辑任务":"新增任务",open:u,onOk:D,onCancel:()=>f(!1),width:600,children:T.jsxs(Ht,{form:x,layout:"vertical",children:[T.jsx(Ht.Item,{name:"name",label:"任务名称",rules:[{required:!0,message:"请输入任务名称"}],children:T.jsx(Ia,{placeholder:"请输入任务名称"})}),T.jsx(Ht.Item,{name:"subjectId",label:"考试科目",rules:[{required:!0,message:"请选择考试科目"}],children:T.jsx(Zn,{placeholder:"请选择考试科目",style:{width:"100%"},showSearch:!0,optionFilterProp:"children",dropdownStyle:{maxHeight:300,overflow:"auto"},virtual:!0,children:r.map(R=>T.jsx(Zn.Option,{value:R.id,children:R.name},R.id))})}),T.jsx(Ht.Item,{name:"startAt",label:"开始时间",rules:[{required:!0,message:"请选择开始时间"}],children:T.jsx(wp,{showTime:!0,placeholder:"请选择开始时间",style:{width:"100%"}})}),T.jsx(Ht.Item,{name:"endAt",label:"结束时间",rules:[{required:!0,message:"请选择结束时间"}],children:T.jsx(wp,{showTime:!0,placeholder:"请选择结束时间",style:{width:"100%"}})}),T.jsxs("div",{className:"bg-gray-50 p-4 rounded mb-4",children:[T.jsx("h4",{className:"mb-2 font-medium",children:"任务分配对象"}),T.jsx(Ht.Item,{name:"groupIds",label:"按用户组选择",children:T.jsx(Zn,{mode:"multiple",placeholder:"请选择用户组",style:{width:"100%"},optionFilterProp:"children",children:o.map(R=>T.jsxs(Zn.Option,{value:R.id,children:[R.name," (",R.memberCount,"人)"]},R.id))})}),T.jsx(Ht.Item,{name:"userIds",label:"按单个用户选择",normalize:R=>Array.isArray(R)?[...R].sort((A,j)=>{var V,K;const F=((V=a.find(L=>L.id===A))==null?void 0:V.name)||"",M=((K=a.find(L=>L.id===j))==null?void 0:K.name)||"";return F.localeCompare(M,"zh-CN")}):R,children:T.jsx(Zn,{mode:"multiple",placeholder:"请选择用户",style:{width:"100%"},className:"user-select-scrollable",showSearch:!0,optionLabelProp:"label",filterOption:(R,A)=>{const j=R.toLowerCase();return String((A==null?void 0:A.label)??"").toLowerCase().includes(j)},dropdownStyle:{maxHeight:400,overflow:"auto"},virtual:!0,children:a.map(R=>T.jsxs(Zn.Option,{value:R.id,label:R.name,children:[R.name," (",R.phone,")"]},R.id))})}),T.jsxs("div",{className:"mt-2 text-right text-gray-500",children:["实际分配人数(去重后):",T.jsx("span",{className:"font-bold text-blue-600",children:O})," 人"]})]})]})}),T.jsx(Ci,{title:"任务报表",open:m,onCancel:()=>h(!1),onOk:()=>h(!1),okText:"关闭",width:800,children:p&&T.jsxs("div",{children:[T.jsxs("div",{className:"mb-4",children:[T.jsx("h3",{className:"text-lg font-bold",children:p.taskName}),T.jsxs("p",{children:["考试科目:",p.subjectName]}),T.jsxs("p",{children:["参与人数:",p.totalUsers," 人"]}),T.jsxs("p",{children:["完成人数:",p.completedUsers," 人"]}),T.jsxs("p",{children:["平均得分:",p.averageScore.toFixed(2)," 分"]}),T.jsxs("p",{children:["最高得分:",p.topScore," 分"]}),T.jsxs("p",{children:["最低得分:",p.lowestScore," 分"]})]}),T.jsx(oi,{columns:[{title:"姓名",dataIndex:"userName",key:"userName"},{title:"手机号",dataIndex:"userPhone",key:"userPhone"},{title:"得分",dataIndex:"score",key:"score",render:R=>R!==null?`${R} 分`:"未答题"},{title:"得分占比",dataIndex:"scorePercentage",key:"scorePercentage",render:R=>R==null||Number.isNaN(Number(R))?"未答题":`${Math.round(Number(R)*10)/10}%`},{title:"完成时间",dataIndex:"completedAt",key:"completedAt",render:R=>R?si(R):"未答题"}],dataSource:p.details,rowKey:"userId",size:"small",pagination:!1})]})})]})},srt="modulepreload",lrt=function(e){return"/"+e},DL={},jL=function(t,r,n){if(!r||r.length===0)return t();const a=document.getElementsByTagName("link");return Promise.all(r.map(i=>{if(i=lrt(i),i in DL)return;DL[i]=!0;const o=i.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!n)for(let u=a.length-1;u>=0;u--){const f=a[u];if(f.href===i&&(!o||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const c=document.createElement("link");if(c.rel=o?"stylesheet":srt,o||(c.as="script",c.crossOrigin=""),c.href=i,document.head.appendChild(c),o)return new Promise((u,f)=>{c.addEventListener("load",u),c.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=i,window.dispatchEvent(o),!o.defaultPrevented)throw i})},crt=()=>{const[e,t]=d.useState([]),[r,n]=d.useState(!1),[a,i]=d.useState(!1),[o,s]=d.useState(null),[l]=Ht.useForm(),c=async()=>{n(!0);try{const g=await Wu.getAll();t(g.data)}catch{ut.error("获取用户组列表失败")}finally{n(!1)}};d.useEffect(()=>{c()},[]);const u=()=>{s(null),l.resetFields(),i(!0)},f=g=>{if(g.isSystem){ut.warning("系统内置用户组无法修改");return}s(g),l.setFieldsValue({name:g.name,description:g.description}),i(!0)},m=async g=>{try{await Wu.delete(g),ut.success("删除成功"),c()}catch(v){ut.error(v.message||"删除失败")}},h=async()=>{try{const g=await l.validateFields();o?(await Wu.update(o.id,g),ut.success("更新成功")):(await Wu.create(g),ut.success("创建成功")),i(!1),c()}catch(g){ut.error(g.message||"操作失败")}},p=[{title:"组名",dataIndex:"name",key:"name",render:(g,v)=>T.jsxs(En,{children:[g,v.isSystem&&T.jsx(la,{color:"blue",children:"系统内置"})]})},{title:"描述",dataIndex:"description",key:"description"},{title:"成员数",dataIndex:"memberCount",key:"memberCount",render:g=>T.jsxs(En,{children:[T.jsx($N,{}),g,"人"]})},{title:"创建时间",dataIndex:"createdAt",key:"createdAt",render:g=>si(g)},{title:T.jsx("div",{style:{textAlign:"center"},children:"操作"}),key:"action",render:(g,v)=>T.jsxs(En,{children:[T.jsx(kt,{type:"text",icon:T.jsx(Gc,{}),onClick:()=>f(v),disabled:v.isSystem,children:"编辑"}),!v.isSystem&&T.jsx(sm,{title:"确定删除该用户组吗?",description:"删除后,组内成员将自动解除与该组的关联",onConfirm:()=>m(v.id),okText:"确定",cancelText:"取消",children:T.jsx(kt,{type:"text",danger:!0,icon:T.jsx(fu,{}),children:"删除"})})]})}];return T.jsxs("div",{children:[T.jsx("div",{className:"flex justify-end mb-4",children:T.jsx(kt,{type:"primary",icon:T.jsx(Vd,{}),onClick:u,children:"新增用户组"})}),T.jsx(oi,{columns:p,dataSource:e,rowKey:"id",size:"small",loading:r,pagination:{pageSize:10,size:"small"}}),T.jsx(Ci,{title:o?"编辑用户组":"新增用户组",open:a,onOk:h,onCancel:()=>i(!1),okText:"确定",cancelText:"取消",children:T.jsxs(Ht,{form:l,layout:"vertical",children:[T.jsx(Ht.Item,{name:"name",label:"组名",rules:[{required:!0,message:"请输入组名"},{min:2,max:20,message:"组名长度在2-20个字符之间"}],children:T.jsx(Ia,{placeholder:"请输入组名"})}),T.jsx(Ht.Item,{name:"description",label:"描述",children:T.jsx(Ia.TextArea,{placeholder:"请输入描述",rows:3})})]})})]})},urt=e=>{switch(e){case"不及格":return"red";case"合格":return"blue";case"优秀":return"green";default:return"default"}},drt=()=>{const[e,t]=d.useState([]),[r,n]=d.useState([]),[a,i]=d.useState(!1),[o,s]=d.useState(!1),[l,c]=d.useState(null),[u,f]=d.useState(new Set),[m]=Ht.useForm(),[h,p]=d.useState({current:1,pageSize:10,total:0,size:"small"}),[g,v]=d.useState(""),[y,x]=d.useState(null),[b,S]=d.useState([]),[w,E]=d.useState(!1),[C,O]=d.useState({current:1,pageSize:5,total:0,size:"small"}),[_,P]=d.useState(!1),[I,N]=d.useState(null),[D,k]=d.useState(!1),R=async(q=1,ne=10,he="")=>{var ye;i(!0);try{const xe=new URL("/admin/users",window.location.origin);xe.searchParams.set("page",q.toString()),xe.searchParams.set("limit",ne.toString()),he&&xe.searchParams.set("keyword",he);const pe=await At.get(xe.pathname+xe.search);t(pe.data),p({current:q,pageSize:ne,total:((ye=pe.pagination)==null?void 0:ye.total)||pe.data.length,size:"small"})}catch(xe){ut.error("获取用户列表失败"),console.error("获取用户列表失败:",xe)}finally{i(!1)}},A=async()=>{try{const ne=(await Wu.getAll()).data||[];return n(ne),ne}catch{return console.error("获取用户组失败"),[]}};d.useEffect(()=>{R(),A()},[]);const j=q=>{R(q.current,q.pageSize,g)},F=()=>{R(1,h.pageSize,g)},M=q=>{v(q.target.value)},V=async()=>{const q=await A();c(null),m.resetFields();const ne=q.filter(he=>he.isSystem).map(he=>he.id);ne.length&&m.setFieldsValue({groupIds:ne}),s(!0)},K=async q=>{var ne;await A(),c(q),m.setFieldsValue({name:q.name,phone:q.phone,password:q.password,groupIds:((ne=q.groups)==null?void 0:ne.map(he=>he.id))||[]}),s(!0)},L=async q=>{try{await At.delete("/admin/users",{data:{userId:q}}),ut.success("删除成功"),R(h.current,h.pageSize)}catch(ne){ut.error("删除失败"),console.error("删除用户失败:",ne)}},B=async()=>{var q,ne;try{const he=await m.validateFields();l?(await At.put(`/admin/users/${l.id}`,he),ut.success("更新成功")):(await At.post("/admin/users",he),ut.success("创建成功")),s(!1),R(h.current,h.pageSize,g)}catch(he){let ye=l?"更新失败":"创建失败";(ne=(q=he.response)==null?void 0:q.data)!=null&&ne.message?ye=he.response.data.message:he.message&&(ye=he.message),ut.error(ye),console.error("保存用户失败:",he)}},W=async()=>{try{const ne=(await At.get("/admin/users/export")).data,he=await jL(()=>Promise.resolve().then(()=>PL),void 0),ye=he.utils.json_to_sheet(ne),xe=he.utils.book_new();he.utils.book_append_sheet(xe,ye,"用户列表"),he.writeFile(xe,"用户列表.xlsx"),ut.success("导出成功")}catch(q){ut.error("导出失败"),console.error("导出用户失败:",q)}},z=async q=>{try{const ne=await jL(()=>Promise.resolve().then(()=>PL),void 0),he=await q.arrayBuffer(),ye=ne.read(he),xe=ye.SheetNames[0],pe=ye.Sheets[xe],Pe=ne.utils.sheet_to_json(pe),$e=new FormData,Ee=new Blob([JSON.stringify(Pe)],{type:"application/json"});$e.append("file",Ee,"users.json");const He=await At.post("/admin/users/import",$e,{headers:{"Content-Type":"multipart/form-data"}});ut.success(`导入成功,共导入 ${He.data.imported} 条数据`),R()}catch(ne){ut.error("导入失败"),console.error("导入用户失败:",ne)}return!1},U=q=>{const ne=new Set(u);ne.has(q)?ne.delete(q):ne.add(q),f(ne)},X=async(q,ne=1,he=5)=>{var ye;E(!0);try{const xe=await At.get(`/admin/users/${q}/records?page=${ne}&limit=${he}`);S(xe.data),O({current:ne,pageSize:he,total:((ye=xe.pagination)==null?void 0:ye.total)||xe.data.length,size:"small"})}catch(xe){ut.error("获取答题记录失败"),console.error("获取答题记录失败:",xe)}finally{E(!1)}},Y=q=>{y&&X(y.id,q.current,q.pageSize)},G=q=>{x(q),O({...C,current:1}),X(q.id,1,C.pageSize)},Q=async q=>{k(!0);try{const ne=await At.get(`/admin/quiz/records/detail/${q}`);return N(ne.data),ne.data}catch(ne){return ut.error("获取记录详情失败"),console.error("获取记录详情失败:",ne),null}finally{k(!1)}},ee=async q=>{await Q(q)&&P(!0)},H=()=>{P(!1),N(null)},fe=[{title:"姓名",dataIndex:"name",key:"name"},{title:"手机号",dataIndex:"phone",key:"phone"},{title:"用户组",dataIndex:"groups",key:"groups",render:q=>T.jsx(En,{size:[0,4],wrap:!0,children:q==null?void 0:q.map(ne=>T.jsx(la,{color:ne.isSystem?"blue":"default",children:ne.name},ne.id))})},{title:"密码",dataIndex:"password",key:"password",render:(q,ne)=>T.jsxs(En,{children:[T.jsx("span",{children:u.has(ne.id)?q:"••••••"}),T.jsx(kt,{type:"text",icon:u.has(ne.id)?T.jsx(wU,{}):T.jsx(Pv,{}),onClick:()=>U(ne.id),size:"small"})]})},{title:"参加考试次数",dataIndex:"examCount",key:"examCount",render:q=>q||0},{title:"最后一次考试时间",dataIndex:"lastExamTime",key:"lastExamTime",render:q=>q?si(q,{includeSeconds:!0}):"无"},{title:"注册时间",dataIndex:"createdAt",key:"createdAt",render:q=>si(q,{includeSeconds:!0})},{title:T.jsx("div",{style:{textAlign:"center"},children:"操作"}),key:"action",render:(q,ne)=>T.jsxs(En,{children:[T.jsx(kt,{type:"text",icon:T.jsx(Gc,{}),onClick:()=>K(ne),children:"编辑"}),T.jsx(kt,{type:"text",onClick:()=>G(ne),children:"答题记录"}),T.jsx(sm,{title:"确定删除该用户吗?",onConfirm:()=>L(ne.id),okText:"确定",cancelText:"取消",children:T.jsx(kt,{type:"text",danger:!0,icon:T.jsx(fu,{}),children:"删除"})})]})}],te={accept:".xlsx,.xls",showUploadList:!1,beforeUpload:z},re=()=>T.jsxs("div",{children:[T.jsx("div",{className:"mb-6",children:T.jsxs("div",{className:"flex justify-between items-center",children:[T.jsx(Ia,{placeholder:"按姓名搜索",value:g,onChange:M,onPressEnter:F,style:{width:200}}),T.jsxs(En,{children:[T.jsx(kt,{icon:T.jsx(XRe,{}),onClick:W,children:"导出"}),T.jsx(vN,{...te,children:T.jsx(kt,{icon:T.jsx(eG,{}),children:"导入"})}),T.jsx(kt,{type:"primary",icon:T.jsx(Vd,{}),onClick:V,children:"新增用户"})]})]})}),T.jsx(oi,{columns:fe,dataSource:e,rowKey:"id",size:"small",loading:a,pagination:h,onChange:j}),y&&T.jsxs("div",{className:"mt-6",children:[T.jsxs("h2",{className:"text-xl font-semibold text-gray-800 mb-4",children:[y.name,"的答题记录",T.jsx(kt,{type:"text",onClick:()=>x(null),className:"ml-4",children:"关闭"})]}),T.jsx(oi,{columns:[{title:"考试科目",dataIndex:"subjectName",key:"subjectName",render:q=>q||"无科目"},{title:"考试任务",dataIndex:"taskName",key:"taskName",render:q=>q||"无任务"},{title:"总分",dataIndex:"totalScore",key:"totalScore",render:q=>q||0},{title:"状态",dataIndex:"status",key:"status",render:q=>{const ne=urt(q);return T.jsx("span",{className:`px-2 py-1 rounded text-xs font-medium bg-${ne}-100 text-${ne}-800`,children:q})}},{title:"得分",dataIndex:"obtainedScore",key:"obtainedScore",render:(q,ne)=>{const he=q||0,ye=ne.totalScore||0;return T.jsx("span",{className:`font-medium ${he>=ye*.6?"text-green-600":"text-red-600"}`,children:he})}},{title:"得分率",dataIndex:"scoreRate",key:"scoreRate",render:(q,ne)=>{const he=ne.obtainedScore||0,ye=ne.totalScore||0;return`${(ye>0?he/ye*100:0).toFixed(1)}%`}},{title:"考试时间",dataIndex:"createdAt",key:"createdAt",render:q=>si(q,{includeSeconds:!0})}],dataSource:b,rowKey:"id",size:"small",loading:w,pagination:C,onChange:Y,scroll:{x:"max-content"},onRow:q=>({onClick:()=>ee(q.id),style:{cursor:"pointer"}})})]}),T.jsx(Ci,{title:l?"编辑用户":"新增用户",open:o,onOk:B,onCancel:()=>s(!1),okText:"确定",cancelText:"取消",children:T.jsxs(Ht,{form:m,layout:"vertical",children:[T.jsx(Ht.Item,{name:"name",label:"姓名",rules:[{required:!0,message:"请输入姓名"}],children:T.jsx(Ia,{placeholder:"请输入姓名"})}),T.jsx(Ht.Item,{name:"phone",label:"手机号",rules:[{required:!0,message:"请输入手机号"}],children:T.jsx(Ia,{placeholder:"请输入手机号"})}),T.jsx(Ht.Item,{name:"password",label:"密码",rules:[{required:!0,message:"请输入密码"}],children:T.jsx(Ia.Password,{placeholder:"请输入密码"})}),T.jsx(Ht.Item,{name:"groupIds",label:"所属用户组",children:T.jsx(Zn,{mode:"multiple",placeholder:"请选择用户组",optionFilterProp:"children",children:r.map(q=>T.jsx(Zn.Option,{value:q.id,disabled:q.isSystem,children:q.name},q.id))})})]})}),T.jsx(Ci,{title:"答题记录详情",open:_,onCancel:H,footer:null,width:800,loading:D,children:I&&T.jsxs("div",{children:[T.jsx("div",{className:"mb-6 p-4 bg-gray-50 rounded",children:T.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[T.jsxs("div",{children:[T.jsx("label",{className:"text-gray-600 font-medium",children:"科目:"}),T.jsx("span",{children:I.subjectName||"无科目"})]}),T.jsxs("div",{children:[T.jsx("label",{className:"text-gray-600 font-medium",children:"任务:"}),T.jsx("span",{children:I.taskName||"无任务"})]}),T.jsxs("div",{children:[T.jsx("label",{className:"text-gray-600 font-medium",children:"总分:"}),T.jsx("span",{children:I.totalScore||0})]}),T.jsxs("div",{children:[T.jsx("label",{className:"text-gray-600 font-medium",children:"得分:"}),T.jsx("span",{className:"font-semibold text-blue-600",children:I.obtainedScore||0})]}),T.jsxs("div",{className:"col-span-2",children:[T.jsx("label",{className:"text-gray-600 font-medium",children:"考试时间:"}),T.jsx("span",{children:si(I.createdAt,{includeSeconds:!0})})]})]})}),T.jsx("h3",{className:"text-lg font-semibold mb-4",children:"题目详情"}),T.jsx("div",{className:"space-y-6",children:I.questions&&I.questions.map((q,ne)=>T.jsxs("div",{className:"p-4 border rounded",children:[T.jsx("div",{className:"flex items-center justify-between mb-2",children:T.jsxs("div",{className:"flex items-center",children:[T.jsxs("span",{className:"font-medium mr-2",children:["第",ne+1,"题"]}),T.jsx("span",{className:"text-sm text-gray-600",children:q.question.type==="single"?"单选题":q.question.type==="multiple"?"多选题":q.question.type==="judgment"?"判断题":"文字题"}),T.jsxs("span",{className:"ml-2 text-sm",children:[q.score,"分"]}),T.jsx("span",{className:`ml-2 text-sm ${q.isCorrect?"text-green-600":"text-red-600"}`,children:q.isCorrect?"答对":"答错"})]})}),T.jsx("div",{className:"mb-3",children:T.jsxs("p",{className:"font-medium",children:["题目:",q.question.content]})}),q.question.options&&q.question.options.length>0&&T.jsxs("div",{className:"mb-3",children:[T.jsx("p",{className:"text-sm font-medium text-gray-600 mb-2",children:"选项:"}),T.jsx("div",{className:"space-y-2",children:q.question.options.map((he,ye)=>T.jsxs("div",{className:"flex items-center",children:[T.jsx("span",{className:"inline-block w-5 h-5 border rounded text-center text-xs mr-2",children:String.fromCharCode(65+ye)}),T.jsx("span",{children:he})]},ye))})]}),T.jsxs("div",{className:"space-y-1",children:[T.jsxs("div",{className:"flex",children:[T.jsx("span",{className:"w-20 text-sm text-gray-600",children:"正确答案:"}),T.jsx("span",{className:"text-sm",children:Array.isArray(q.question.answer)?q.question.answer.join(", "):q.question.answer})]}),T.jsxs("div",{className:"flex",children:[T.jsx("span",{className:"w-20 text-sm text-gray-600",children:"你的答案:"}),T.jsx("span",{className:"text-sm font-medium",children:Array.isArray(q.userAnswer)?q.userAnswer.join(", "):q.userAnswer||"未作答"})]})]})]},q.id))})]})})]});return T.jsxs("div",{children:[T.jsx("h1",{className:"text-2xl font-bold text-gray-800 mb-4",children:"用户管理"}),T.jsx(MS,{defaultActiveKey:"1",items:[{key:"1",label:"用户列表",children:T.jsx(re,{})},{key:"2",label:"用户组管理",children:T.jsx(crt,{})}]})]})},frt="/assets/正方形LOGO-c56db41d.svg",{Header:mrt,Sider:hrt,Content:prt,Footer:vrt}=Rl,grt=({children:e})=>{const t=Xo(),r=H0(),{admin:n,clearAdmin:a}=gN(),[i,o]=d.useState(!1),s=[{key:"/admin/dashboard",icon:T.jsx(BRe,{}),label:"仪表盘"},{key:"/admin/questions",icon:T.jsx(xU,{}),label:"题库管理"},{key:"/admin/categories",icon:T.jsx(x4e,{}),label:"题目类别"},{key:"/admin/subjects",icon:T.jsx(wc,{}),label:"考试科目"},{key:"/admin/tasks",icon:T.jsx(jS,{}),label:"考试任务"},{key:"/admin/users",icon:T.jsx($N,{}),label:"用户管理"},{key:"/admin/statistics",icon:T.jsx(NRe,{}),label:"数据统计"},{key:"/admin/backup",icon:T.jsx(JK,{}),label:"数据备份"}],l=({key:f})=>{t(f)},c=()=>{a(),ut.success("退出登录成功"),t("/admin/login")},u=[{key:"logout",icon:T.jsx(a4e,{}),label:"退出登录",onClick:c}];return T.jsxs(Rl,{style:{minHeight:"100vh"},children:[T.jsxs(hrt,{trigger:null,collapsible:!0,collapsed:i,theme:"light",className:"shadow-md z-10 fixed left-0 top-0 h-screen overflow-y-auto",width:240,children:[T.jsx("div",{className:"h-16 flex items-center justify-center border-b border-gray-100",children:i?T.jsx("img",{src:frt,alt:"正方形LOGO",style:{width:"24px",height:"32px"}}):T.jsx("img",{src:iw,alt:"主要LOGO",style:{width:"180px",height:"72px"}})}),T.jsx(CI,{mode:"inline",selectedKeys:[r.pathname],items:s,onClick:l,style:{borderRight:0},className:"py-4"})]}),T.jsxs(Rl,{className:"bg-gray-50/50 ml-0 transition-all duration-300",style:{marginLeft:i?80:240},children:[T.jsxs(mrt,{className:"bg-white shadow-sm flex justify-between items-center px-6 h-16 sticky top-0 z-10",children:[T.jsx(kt,{type:"text",icon:i?T.jsx(h4e,{}):T.jsx(c4e,{}),onClick:()=>o(!i),className:"text-lg w-10 h-10 flex items-center justify-center"}),T.jsxs("div",{className:"flex items-center gap-4",children:[T.jsxs("span",{className:"text-gray-600 hidden sm:block",children:["欢迎您,",n==null?void 0:n.username]}),T.jsx(XI,{menu:{items:u},placement:"bottomRight",arrow:!0,children:T.jsx(Ape,{icon:T.jsx(k4e,{}),className:"cursor-pointer bg-mars-100 text-mars-600 hover:bg-mars-200 transition-colors"})})]})]}),T.jsx(prt,{className:"m-6 flex flex-col pb-20",children:e}),T.jsx(vrt,{className:"bg-white text-center py-1.5 px-2 text-gray-400 text-xs flex flex-col md:flex-row justify-center items-center fixed bottom-0 left-0 right-0 shadow-sm",style:{marginLeft:i?80:240,transition:"margin-left 0.3s"},children:T.jsxs("div",{className:"whitespace-nowrap",children:["© ",new Date().getFullYear()," Boonlive OA System. All Rights Reserved."]})})]})]})},yrt=({children:e})=>{const{isAuthenticated:t}=gN();return t?T.jsx(T.Fragment,{children:e}):T.jsx(L$,{to:"/admin/login"})};function xrt(){return T.jsx("div",{className:"min-h-screen bg-gray-50",children:T.jsxs(MA,{children:[T.jsx(xn,{path:"/",element:T.jsx(fRe,{})}),T.jsx(xn,{path:"/subjects",element:T.jsx(V4e,{})}),T.jsx(xn,{path:"/tasks",element:T.jsx(U4e,{})}),T.jsx(xn,{path:"/quiz",element:T.jsx(F4e,{})}),T.jsx(xn,{path:"/result/:id",element:T.jsx(W4e,{})}),T.jsx(xn,{path:"/admin/login",element:T.jsx(Q4e,{})}),T.jsx(xn,{path:"/admin/*",element:T.jsx(yrt,{children:T.jsx(grt,{children:T.jsxs(MA,{children:[T.jsx(xn,{path:"dashboard",element:T.jsx(UWe,{})}),T.jsx(xn,{path:"questions",element:T.jsx(kL,{})}),T.jsx(xn,{path:"question-bank",element:T.jsx(kL,{})}),T.jsx(xn,{path:"questions/text-import",element:T.jsx(Jtt,{})}),T.jsx(xn,{path:"categories",element:T.jsx(irt,{})}),T.jsx(xn,{path:"subjects",element:T.jsx(ort,{})}),T.jsx(xn,{path:"tasks",element:T.jsx(ML,{})}),T.jsx(xn,{path:"exam-tasks",element:T.jsx(ML,{})}),T.jsx(xn,{path:"users",element:T.jsx(drt,{})}),T.jsx(xn,{path:"config",element:T.jsx(ert,{})}),T.jsx(xn,{path:"statistics",element:T.jsx(nrt,{})}),T.jsx(xn,{path:"backup",element:T.jsx(art,{})}),T.jsx(xn,{path:"*",element:T.jsx(L$,{to:"/admin/dashboard"})})]})})})}),T.jsx(xn,{path:"*",element:T.jsx(L$,{to:"/"})})]})})}Yn.locale("zh-cn");UE.createRoot(document.getElementById("root")).render(T.jsx(ve.StrictMode,{children:T.jsx(Mne,{children:T.jsx(Dd,{locale:hNe,theme:{token:{colorPrimary:"#008C8C",colorInfo:"#008C8C",colorLink:"#008C8C",borderRadius:8,fontFamily:"Inter, ui-sans-serif, system-ui, -apple-system, sans-serif"},components:{Button:{controlHeight:40,controlHeightLG:48,borderRadius:8,primaryShadow:"0 2px 0 rgba(0, 140, 140, 0.1)"},Input:{controlHeight:40,controlHeightLG:48,borderRadius:8},Select:{controlHeight:40,controlHeightLG:48,borderRadius:8},Card:{borderRadiusLG:12,boxShadowTertiary:"0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02)"},Layout:{headerBg:"#ffffff",siderBg:"#ffffff"}}},children:T.jsx(vNe,{children:T.jsx(gNe,{children:T.jsx(yNe,{children:T.jsx(xrt,{})})})})})})})); diff --git a/deploy_bundle/web/assets/index-acd65452.css b/deploy_bundle/web/assets/index-acd65452.css new file mode 100644 index 0000000..1611a95 --- /dev/null +++ b/deploy_bundle/web/assets/index-acd65452.css @@ -0,0 +1 @@ +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)}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 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}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}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,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}[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}template{display:none}[hidden]{display:none!important}mark{padding:.2em;background-color:#feffe6}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,-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;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}body{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"cv11","ss01"}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-10{z-index:10}.z-30{z-index:30}.m-0{margin:0}.m-6{margin:1.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.\!mb-0{margin-bottom:0!important}.\!mb-0\.5{margin-bottom:.125rem!important}.-mt-5{margin-top:-1.25rem}.mb-0{margin-bottom:0}.mb-0\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mt-0\.5{margin-top:.125rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-10{height:2.5rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-20{height:5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-auto{height:auto}.h-full{height:100%}.h-screen{height:100vh}.min-h-\[280px\]{min-height:280px}.min-h-\[400px\]{min-height:400px}.min-h-\[500px\]{min-height:500px}.min-h-screen{min-height:100vh}.w-10{width:2.5rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-2{width:.5rem}.w-3{width:.75rem}.w-32{width:8rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-9{width:2.25rem}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-md{max-width:28rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.-translate-x-4{--tw-translate-x: -1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-4{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l-4{border-left-width:4px}.border-t{border-top-width:1px}.border-t-4{border-top-width:4px}.border-dashed{border-style:dashed}.border-none{border-style:none}.border-\[\#00897B\]{--tw-border-opacity: 1;border-color:rgb(0 137 123 / var(--tw-border-opacity, 1))}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-green-200{--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1))}.border-mars-500{--tw-border-opacity: 1;border-color:rgb(0 140 140 / var(--tw-border-opacity, 1))}.border-mars-600{--tw-border-opacity: 1;border-color:rgb(0 102 102 / var(--tw-border-opacity, 1))}.border-orange-200{--tw-border-opacity: 1;border-color:rgb(254 215 170 / var(--tw-border-opacity, 1))}.border-purple-200{--tw-border-opacity: 1;border-color:rgb(233 213 255 / var(--tw-border-opacity, 1))}.border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-l-blue-400{--tw-border-opacity: 1;border-left-color:rgb(96 165 250 / var(--tw-border-opacity, 1))}.border-l-gray-400{--tw-border-opacity: 1;border-left-color:rgb(156 163 175 / var(--tw-border-opacity, 1))}.border-l-green-500{--tw-border-opacity: 1;border-left-color:rgb(34 197 94 / var(--tw-border-opacity, 1))}.border-t-mars-500{--tw-border-opacity: 1;border-top-color:rgb(0 140 140 / var(--tw-border-opacity, 1))}.bg-\[\#00796B\]{--tw-bg-opacity: 1;background-color:rgb(0 121 107 / var(--tw-bg-opacity, 1))}.bg-\[\#00897B\]{--tw-bg-opacity: 1;background-color:rgb(0 137 123 / var(--tw-bg-opacity, 1))}.bg-\[\#E0F2F1\]{--tw-bg-opacity: 1;background-color:rgb(224 242 241 / var(--tw-bg-opacity, 1))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(96 165 250 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-50\/50{background-color:#f9fafb80}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.bg-green-50\/50{background-color:#f0fdf480}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-mars-100{--tw-bg-opacity: 1;background-color:rgb(204 245 245 / var(--tw-bg-opacity, 1))}.bg-mars-500{--tw-bg-opacity: 1;background-color:rgb(0 140 140 / var(--tw-bg-opacity, 1))}.bg-orange-100{--tw-bg-opacity: 1;background-color:rgb(255 237 213 / var(--tw-bg-opacity, 1))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity, 1))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-red-50\/50{background-color:#fef2f280}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.from-mars-50{--tw-gradient-from: #f0fcfc var(--tw-gradient-from-position);--tw-gradient-to: rgb(240 252 252 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-mars-50\/30{--tw-gradient-from: rgb(240 252 252 / .3) var(--tw-gradient-from-position);--tw-gradient-to: rgb(240 252 252 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-white{--tw-gradient-to: #fff var(--tw-gradient-to-position)}.fill-gray-700{fill:#374151}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.pb-1{padding-bottom:.25rem}.pb-20{padding-bottom:5rem}.pb-24{padding-bottom:6rem}.pl-3{padding-left:.75rem}.pt-1\.5{padding-top:.375rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.\!text-base{font-size:1rem!important;line-height:1.5rem!important}.\!text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.\!text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[12px\]{font-size:12px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-tight{line-height:1.25}.\!text-gray-700{--tw-text-opacity: 1 !important;color:rgb(55 65 81 / var(--tw-text-opacity, 1))!important}.text-\[\#00695C\]{--tw-text-opacity: 1;color:rgb(0 105 92 / var(--tw-text-opacity, 1))}.text-\[\#00897B\]{--tw-text-opacity: 1;color:rgb(0 137 123 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity, 1))}.text-mars-400{--tw-text-opacity: 1;color:rgb(0 163 163 / var(--tw-text-opacity, 1))}.text-mars-600{--tw-text-opacity: 1;color:rgb(0 102 102 / var(--tw-text-opacity, 1))}.text-orange-800{--tw-text-opacity: 1;color:rgb(154 52 18 / var(--tw-text-opacity, 1))}.text-purple-800{--tw-text-opacity: 1;color:rgb(107 33 168 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.shadow-\[0_-2px_10px_rgba\(0\,0\,0\,0\.05\)\]{--tw-shadow: 0 -2px 10px rgba(0,0,0,.05);--tw-shadow-colored: 0 -2px 10px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@media (max-width: 768px){.ant-form-item-label{padding-bottom:4px}.ant-table{font-size:13px}}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:#9ca3af}.fade-in{animation:fadeIn .4s cubic-bezier(.16,1,.3,1)}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.container{max-width:1200px;margin:0 auto;padding:0 24px}@media (max-width: 768px){.container{padding:0}}.user-select-scrollable .ant-select-selector{max-height:120px;overflow-y:auto!important}.text-mars{color:#008c8c}.bg-mars{background-color:#008c8c}.qt-text-import-th-content,.qt-text-import-td-content{width:850px!important;min-width:850px!important;max-width:850px!important}.qt-text-import-th-analysis,.qt-text-import-td-analysis{width:320px!important;min-width:320px!important;max-width:320px!important}@media (max-width: 1200px){.qt-text-import-th-content,.qt-text-import-td-content{width:600px!important;min-width:600px!important;max-width:600px!important}.qt-text-import-th-analysis,.qt-text-import-td-analysis{width:260px!important;min-width:260px!important;max-width:260px!important}}@media (max-width: 768px){.qt-text-import-th-content,.qt-text-import-td-content{width:360px!important;min-width:360px!important;max-width:360px!important}.qt-text-import-th-analysis,.qt-text-import-td-analysis{width:220px!important;min-width:220px!important;max-width:220px!important}}@media (max-width: 480px){.qt-text-import-th-content,.qt-text-import-td-content{width:260px!important;min-width:260px!important;max-width:260px!important}.qt-text-import-th-analysis,.qt-text-import-td-analysis{width:180px!important;min-width:180px!important;max-width:180px!important}}.qc-question-count-td{text-align:center!important;vertical-align:middle;padding:8px 12px!important}.qc-question-count{display:inline-flex;align-items:center;justify-content:center;min-width:90px;margin:0 auto;text-align:center}.hover\:border-\[\#00897B\]:hover{--tw-border-opacity: 1;border-color:rgb(0 137 123 / var(--tw-border-opacity, 1))}.hover\:border-gray-200:hover{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.hover\:border-mars-500:hover{--tw-border-opacity: 1;border-color:rgb(0 140 140 / var(--tw-border-opacity, 1))}.hover\:border-l-gray-500:hover{--tw-border-opacity: 1;border-left-color:rgb(107 114 128 / var(--tw-border-opacity, 1))}.hover\:border-l-green-600:hover{--tw-border-opacity: 1;border-left-color:rgb(22 163 74 / var(--tw-border-opacity, 1))}.hover\:\!bg-mars-600:hover{--tw-bg-opacity: 1 !important;background-color:rgb(0 102 102 / var(--tw-bg-opacity, 1))!important}.hover\:bg-\[\#00796B\]:hover{--tw-bg-opacity: 1;background-color:rgb(0 121 107 / var(--tw-bg-opacity, 1))}.hover\:bg-mars-200:hover{--tw-bg-opacity: 1;background-color:rgb(153 235 235 / var(--tw-bg-opacity, 1))}.hover\:bg-mars-600:hover{--tw-bg-opacity: 1;background-color:rgb(0 102 102 / var(--tw-bg-opacity, 1))}.hover\:bg-teal-50:hover{--tw-bg-opacity: 1;background-color:rgb(240 253 250 / var(--tw-bg-opacity, 1))}.hover\:text-\[\#00897B\]:hover{--tw-text-opacity: 1;color:rgb(0 137 123 / var(--tw-text-opacity, 1))}.hover\:text-mars-500:hover{--tw-text-opacity: 1;color:rgb(0 140 140 / var(--tw-text-opacity, 1))}.hover\:text-mars-800:hover{--tw-text-opacity: 1;color:rgb(0 51 51 / var(--tw-text-opacity, 1))}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:border-\[\#00897B\]:focus{--tw-border-opacity: 1;border-color:rgb(0 137 123 / var(--tw-border-opacity, 1))}.focus\:ring-\[\#00897B\]:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 137 123 / var(--tw-ring-opacity, 1))}.active\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\:scale-\[0\.99\]:active{--tw-scale-x: .99;--tw-scale-y: .99;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@media (min-width: 640px){.sm\:block{display:block}}@media (min-width: 768px){.md\:mb-0{margin-bottom:0}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:p-8{padding:2rem}} diff --git a/deploy_bundle/web/index.html b/deploy_bundle/web/index.html index 2278683..65ead85 100644 --- a/deploy_bundle/web/index.html +++ b/deploy_bundle/web/index.html @@ -6,8 +6,8 @@ 宝来威考试平台 - - + +
diff --git a/package.json b/package.json index 126251e..1d9ffe3 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "dev:frontend": "vite", "build": "vite build && node scripts/build-api.mjs", "postbuild": "node scripts/copy-init-sql.mjs", + "bundle": "node scripts/build-deploy-bundle.mjs", "preview": "vite preview", "start": "node --enable-source-maps dist/api/server.js", "test": "node --import tsx --test test/admin-task-stats.test.ts test/question-text-import.test.ts test/swipe-detect.test.ts test/user-tasks.test.ts test/user-records-subjectname.test.ts test/score-percentage.test.ts test/user-default-group.test.ts", diff --git a/scripts/build-deploy-bundle.mjs b/scripts/build-deploy-bundle.mjs new file mode 100644 index 0000000..e6ded7f --- /dev/null +++ b/scripts/build-deploy-bundle.mjs @@ -0,0 +1,88 @@ +import fs from 'node:fs/promises'; +import path from 'node:path'; + +const projectRoot = process.cwd(); + +const distDir = path.join(projectRoot, 'dist'); +const deployDir = path.join(projectRoot, 'deploy_bundle'); +const deployWebDir = path.join(deployDir, 'web'); +const deployServerDir = path.join(deployDir, 'server'); + +const exists = async (p) => { + try { + await fs.access(p); + return true; + } catch { + return false; + } +}; + +const ensureDir = async (p) => { + await fs.mkdir(p, { recursive: true }); +}; + +const emptyDir = async (p) => { + await fs.rm(p, { recursive: true, force: true }); + await fs.mkdir(p, { recursive: true }); +}; + +const copyDir = async (src, dest) => { + await fs.cp(src, dest, { recursive: true }); +}; + +const copyFile = async (src, dest) => { + await ensureDir(path.dirname(dest)); + await fs.copyFile(src, dest); +}; + +if (!(await exists(distDir))) { + throw new Error('未找到 dist/。请先执行:npm run build'); +} + +// 1) web: dist/ 下除 api/ 之外所有内容 +await emptyDir(deployWebDir); + +const distEntries = await fs.readdir(distDir, { withFileTypes: true }); +for (const entry of distEntries) { + if (entry.name === 'api') continue; + const src = path.join(distDir, entry.name); + const dest = path.join(deployWebDir, entry.name); + if (entry.isDirectory()) { + await copyDir(src, dest); + } else { + await copyFile(src, dest); + } +} + +// 2) server: dist/api -> deploy_bundle/server/dist/api +await ensureDir(deployServerDir); +await ensureDir(path.join(deployServerDir, 'dist')); + +const distApiDir = path.join(distDir, 'api'); +if (!(await exists(distApiDir))) { + throw new Error('未找到 dist/api/。请确认 npm run build 已成功执行(包含 scripts/build-api.mjs)。'); +} + +await emptyDir(path.join(deployServerDir, 'dist', 'api')); +await copyDir(distApiDir, path.join(deployServerDir, 'dist', 'api')); + +// 3) 同步 server 运行所需文件 +await copyFile(path.join(projectRoot, 'package.json'), path.join(deployServerDir, 'package.json')); +if (await exists(path.join(projectRoot, 'package-lock.json'))) { + await copyFile(path.join(projectRoot, 'package-lock.json'), path.join(deployServerDir, 'package-lock.json')); +} + +// ecosystem.config.cjs:以仓库根目录为准同步(如需环境差异,可在服务器上覆盖 env/cwd) +if (await exists(path.join(projectRoot, 'ecosystem.config.cjs'))) { + await copyFile(path.join(projectRoot, 'ecosystem.config.cjs'), path.join(deployServerDir, 'ecosystem.config.cjs')); +} + +// sanity check +const initSql = path.join(deployServerDir, 'dist', 'api', 'database', 'init.sql'); +if (!(await exists(initSql))) { + throw new Error('缺少 deploy_bundle/server/dist/api/database/init.sql(postbuild 应该会复制)。'); +} + +console.log('deploy_bundle 已生成:'); +console.log('- deploy_bundle/web'); +console.log('- deploy_bundle/server'); diff --git a/scripts/repro-import-text.mjs b/scripts/repro-import-text.mjs new file mode 100644 index 0000000..742bfb4 --- /dev/null +++ b/scripts/repro-import-text.mjs @@ -0,0 +1,40 @@ +process.env.NODE_ENV = 'test'; +process.env.DB_PATH = ':memory:'; + +const { initDatabase } = await import('../api/database'); +await initDatabase(); + +const { app } = await import('../api/server'); + +const server = app.listen(0); +const addr = server.address(); +const baseUrl = `http://127.0.0.1:${addr.port}`; + +try { + const body = { + mode: 'incremental', + questions: [ + { + content: + '【文字描述题】请简述你对公司“只服务渠道客户,不直接做甲方项目(除深圳周边近的)”这一政策的理解。', + type: 'text', + category: '通用', + score: 0, + answer: '', + analysis: '用于人工评阅,关注对渠道保护、资源倾斜、合作共赢等理念的理解。', + }, + ], + }; + + const res = await fetch(`${baseUrl}/api/questions/import-text`, { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify(body), + }); + + const text = await res.text(); + console.log('status:', res.status); + console.log(text); +} finally { + await new Promise((resolve) => server.close(resolve)); +} diff --git a/src/pages/QuizPage.tsx b/src/pages/QuizPage.tsx index ebb5471..c7cc394 100644 --- a/src/pages/QuizPage.tsx +++ b/src/pages/QuizPage.tsx @@ -313,7 +313,7 @@ const QuizPage = () => { }; const handleJumpToFirstUnanswered = () => { - const firstUnansweredIndex = questions.findIndex(q => !answers[q.id]); + const firstUnansweredIndex = questions.findIndex(q => Number(q.score) > 0 && !answers[q.id]); if (firstUnansweredIndex !== -1) { handleJumpTo(firstUnansweredIndex); } @@ -325,7 +325,7 @@ const QuizPage = () => { setSubmitting(true); if (!forceSubmit) { - const unansweredQuestions = questions.filter(q => !answers[q.id]); + const unansweredQuestions = questions.filter(q => Number(q.score) > 0 && !answers[q.id]); if (unansweredQuestions.length > 0) { message.warning(`还有 ${unansweredQuestions.length} 道题未作答`); return; @@ -333,10 +333,11 @@ const QuizPage = () => { } const answersData = questions.map(question => { - const isCorrect = checkAnswer(question, answers[question.id]); + const userAnswer = (answers[question.id] ?? '') as any; + const isCorrect = checkAnswer(question, userAnswer); return { questionId: question.id, - userAnswer: answers[question.id], + userAnswer, score: isCorrect ? question.score : 0, isCorrect }; @@ -382,6 +383,7 @@ const QuizPage = () => { }; const checkAnswer = (question: Question, userAnswer: string | string[]): boolean => { + if (Number(question.score) === 0) return true; if (!userAnswer) return false; if (question.type === 'multiple') { @@ -395,7 +397,7 @@ const QuizPage = () => { }; const answeredCount = useMemo(() => { - return questions.reduce((count, q) => (answers[q.id] ? count + 1 : count), 0); + return questions.reduce((count, q) => (answers[q.id] || Number(q.score) === 0 ? count + 1 : count), 0); }, [questions, answers]); useEffect(() => { diff --git a/src/pages/admin/ExamSubjectPage.tsx b/src/pages/admin/ExamSubjectPage.tsx index 3c0c256..52d34cf 100644 --- a/src/pages/admin/ExamSubjectPage.tsx +++ b/src/pages/admin/ExamSubjectPage.tsx @@ -58,7 +58,7 @@ const ExamSubjectPage = () => { text: 10 }); const [categoryRatios, setCategoryRatios] = useState>({ - 通用: 100 + }); const sumValues = (valuesMap: Record) => Object.values(valuesMap).reduce((a, b) => a + b, 0); @@ -133,11 +133,20 @@ const ExamSubjectPage = () => { }, []); const handleCreate = () => { + if (categories.length === 0) { + message.warning('题目类别加载中,请稍后再试'); + return; + } setEditingSubject(null); form.resetFields(); // 设置默认值 const defaultTypeRatios = { single: 4, multiple: 3, judgment: 2, text: 1 }; - const defaultCategoryRatios: Record = { 通用: 10 }; + const total = sumValues(defaultTypeRatios); + const preferredCategory = + categories.find((c) => c.name !== '通用')?.name ?? categories[0]?.name; + const defaultCategoryRatios: Record = preferredCategory + ? { [preferredCategory]: total } + : {}; // 初始化状态 setConfigMode('count'); @@ -160,11 +169,7 @@ const ExamSubjectPage = () => { const initialTypeRatios = subject.typeRatios || { single: 40, multiple: 30, judgment: 20, text: 10 }; // 初始化类别比重,确保所有类别都有值 - const initialCategoryRatios: Record = { 通用: 100 }; - // 合并现有类别比重 - if (subject.categoryRatios) { - Object.assign(initialCategoryRatios, subject.categoryRatios); - } + const initialCategoryRatios: Record = subject.categoryRatios || {}; // 确保状态与表单值正确同步 const inferredMode = isRatioMode(initialTypeRatios) && isRatioMode(initialCategoryRatios) ? 'ratio' : 'count'; @@ -380,11 +385,15 @@ const ExamSubjectPage = () => { key: 'categoryRatios', render: (ratios: Record) => { const ratioMode = isRatioMode(ratios || {}); - const total = sumValues(ratios || {}); + const knownCategories = new Set(categories.map((c) => c.name)); + const entries = ratios + ? Object.entries(ratios).filter(([k]) => knownCategories.size === 0 || knownCategories.has(k)) + : []; + const total = entries.reduce((s, [, v]) => s + (Number(v) || 0), 0); return (
- {ratios && Object.entries(ratios).map(([category, value]) => ( + {entries.map(([category, value]) => (
{ ))}
- {ratios && Object.entries(ratios).map(([category, value]) => { + {entries.map(([category, value]) => { const percent = ratioMode ? value : (total > 0 ? Math.round((value / total) * 1000) / 10 : 0); return (
diff --git a/src/pages/admin/QuestionManagePage.tsx b/src/pages/admin/QuestionManagePage.tsx index 0e673d3..1e787e1 100644 --- a/src/pages/admin/QuestionManagePage.tsx +++ b/src/pages/admin/QuestionManagePage.tsx @@ -610,7 +610,7 @@ const QuestionManagePage = () => { label="分值" rules={[{ required: true, message: '请输入分值' }]} > - + @@ -649,16 +649,20 @@ const QuestionManagePage = () => { prevValues.type !== currentValues.type} + shouldUpdate={(prevValues, currentValues) => + prevValues.type !== currentValues.type || prevValues.score !== currentValues.score + } > {({ getFieldValue }) => { const type = getFieldValue('type'); + const score = Number(getFieldValue('score') ?? 0); + const requireAnswer = Number.isFinite(score) ? score > 0 : true; if (type === 'judgment') { return ( diff --git a/src/pages/admin/UserManagePage.tsx b/src/pages/admin/UserManagePage.tsx index ceb9978..6cc8883 100644 --- a/src/pages/admin/UserManagePage.tsx +++ b/src/pages/admin/UserManagePage.tsx @@ -1,6 +1,6 @@ import { formatDateTime } from '../../utils/validation'; import React, { useState, useEffect } from 'react'; -import { Table, Button, Input, Space, message, Popconfirm, Modal, Form, Switch, Upload, Tabs, Select, Tag } from 'antd'; +import { Table, Button, Input, Space, message, Popconfirm, Modal, Form, Switch, Upload, Tabs, Select, Tag, Descriptions, Divider, Typography } from 'antd'; import { PlusOutlined, EditOutlined, DeleteOutlined, ExportOutlined, ImportOutlined, EyeOutlined, EyeInvisibleOutlined } from '@ant-design/icons'; import api, { userGroupAPI } from '../../services/api'; import type { UploadProps } from 'antd'; @@ -20,9 +20,7 @@ interface User { interface QuizRecord { id: string; userId: string; - userName: string; totalScore: number; - obtainedScore: number; scorePercentage: number; status: '不及格' | '合格' | '优秀'; createdAt: string; @@ -30,6 +28,24 @@ interface QuizRecord { taskName?: string; } +interface RecordDetailAnswer { + id: string; + questionId: string; + userAnswer: string | string[]; + score: number; + isCorrect: boolean; + questionContent?: string; + questionType?: string; + correctAnswer?: string | string[]; + questionScore?: number; + questionAnalysis?: string; +} + +interface RecordDetailResponse { + record: QuizRecord; + answers: RecordDetailAnswer[]; +} + interface UserGroup { id: string; name: string; @@ -290,8 +306,9 @@ const UserManagePage = () => { setRecordDetailLoading(true); try { const res = await api.get(`/admin/quiz/records/detail/${recordId}`); - setRecordDetail(res.data); - return res.data; + const data = res.data as RecordDetailResponse; + setRecordDetail(data); + return data; } catch (error) { message.error('获取记录详情失败'); console.error('获取记录详情失败:', error); @@ -489,7 +506,7 @@ const UserManagePage = () => { key: 'status', render: (status: string) => { const color = getStatusColor(status); - return {status}; + return {status}; }, }, { @@ -497,7 +514,7 @@ const UserManagePage = () => { dataIndex: 'obtainedScore', key: 'obtainedScore', render: (score: number, record: QuizRecord) => { - const actualScore = score || 0; + const actualScore = (score ?? record.totalScore) || 0; const totalScore = record.totalScore || 0; return ( = totalScore * 0.6 ? 'text-green-600' : 'text-red-600'}`}> @@ -511,9 +528,7 @@ const UserManagePage = () => { dataIndex: 'scoreRate', key: 'scoreRate', render: (_: any, record: QuizRecord) => { - const obtainedScore = record.obtainedScore || 0; - const totalScore = record.totalScore || 0; - const rate = totalScore > 0 ? (obtainedScore / totalScore) * 100 : 0; + const rate = typeof record.scorePercentage === 'number' ? record.scorePercentage : 0; return `${rate.toFixed(1)}%`; }, }, @@ -594,94 +609,107 @@ const UserManagePage = () => { open={recordDetailVisible} onCancel={handleCloseRecordDetail} footer={null} - width={800} + width="90vw" + style={{ maxWidth: 1100 }} loading={recordDetailLoading} + bodyStyle={{ maxHeight: '75vh', overflowY: 'auto' }} > - {recordDetail && ( -
- {/* 考试基本信息 */} -
-
-
- - {recordDetail.subjectName || '无科目'} -
-
- - {recordDetail.taskName || '无任务'} -
-
- - {recordDetail.totalScore || 0} -
-
- - {recordDetail.obtainedScore || 0} -
-
- - {formatDateTime(recordDetail.createdAt, { includeSeconds: true })} -
-
-
+ {recordDetail && (() => { + const record = (recordDetail as RecordDetailResponse).record; + const answers = (recordDetail as RecordDetailResponse).answers || []; + const obtainedScore = record?.totalScore ?? 0; + const scorePercentage = typeof record?.scorePercentage === 'number' ? record.scorePercentage : 0; - {/* 题目列表 */} -

题目详情

-
- {recordDetail.questions && recordDetail.questions.map((item: any, index: number) => ( -
-
-
- 第{index + 1}题 - - {item.question.type === 'single' ? '单选题' : - item.question.type === 'multiple' ? '多选题' : - item.question.type === 'judgment' ? '判断题' : '文字题'} - - {item.score}分 - - {item.isCorrect ? '答对' : '答错'} - -
-
- -
-

题目:{item.question.content}

-
- - {/* 显示选项(如果有) */} - {item.question.options && item.question.options.length > 0 && ( -
-

选项:

-
- {item.question.options.map((option: string, optIndex: number) => ( -
- - {String.fromCharCode(65 + optIndex)} - - {option} + const formatAnswer = (v: any) => { + if (Array.isArray(v)) return v.join(', '); + return String(v ?? '').trim(); + }; + + const typeLabel = (t?: string) => { + if (t === 'single') return '单选题'; + if (t === 'multiple') return '多选题'; + if (t === 'judgment') return '判断题'; + if (t === 'text') return '文字题'; + return t || ''; + }; + + return ( +
+ {record?.status || '-'} }, + { key: 'time', label: '考试时间', span: 3, children: record?.createdAt ? formatDateTime(record.createdAt, { includeSeconds: true }) : '-' }, + ]} + /> + + 题目详情 + +
+ {answers.map((a, index) => { + const maxScore = Number(a.questionScore ?? 0); + const isZeroScore = maxScore === 0; + const correct = formatAnswer(a.correctAnswer); + const userAns = formatAnswer(a.userAnswer); + const showCorrectAnswer = a.questionType !== 'text' && correct !== ''; + const showAnalysis = String(a.questionAnalysis ?? '').trim() !== ''; + const isCorrect = Boolean(a.isCorrect); + + return ( +
+
+
+ 第 {index + 1} 题 + {typeLabel(a.questionType)} + {maxScore} 分 + {isCorrect ? '答对' : '答错'} + {isZeroScore ? 0分题默认正确 : null} +
+
得分:{Number(a.score ?? 0)}
+
+ +
+ + 题目: + {a.questionContent || ''} + + +
+
+
你的答案
+
{userAns || '未作答'}
- ))} +
+
正确答案
+
{showCorrectAnswer ? correct : (a.questionType === 'text' ? '(文字题无标准答案)' : (correct || ''))}
+
+
+ + {showAnalysis ? ( +
+
解析
+
{String(a.questionAnalysis ?? '')}
+
+ ) : null}
- )} - - {/* 显示答案 */} -
-
- 正确答案: - {Array.isArray(item.question.answer) ? item.question.answer.join(', ') : item.question.answer} -
-
- 你的答案: - {Array.isArray(item.userAnswer) ? item.userAnswer.join(', ') : item.userAnswer || '未作答'} -
-
-
- ))} + ); + })} + + {answers.length === 0 ? ( +
暂无题目详情
+ ) : null} +
-
- )} + ); + })()}
); diff --git a/src/utils/questionTextImport.ts b/src/utils/questionTextImport.ts index e476e78..c9c02f7 100644 --- a/src/utils/questionTextImport.ts +++ b/src/utils/questionTextImport.ts @@ -78,7 +78,8 @@ const parseLine = (line: string) => { const category = parts[1] || '通用'; const score = Number(parts[2]); - if (!Number.isFinite(score) || score <= 0) return { error: `分值必须是正数:${trimmed}` }; + if (!Number.isFinite(score) || score < 0) return { error: `分值必须是非负数:${trimmed}` }; + const allowEmptyAnswer = score === 0; const content = parts[3]; if (!content) return { error: `题目内容不能为空:${trimmed}` }; @@ -112,10 +113,19 @@ const parseLine = (line: string) => { const question: ImportQuestion = { type, category, score, content, answer: '', analysis: String(analysisRaw || '').trim().slice(0, 255) }; if (type === 'single' || type === 'multiple') { - const options = hasPipeDelimiter && !hasCsvDelimiter ? optionsTokens.map((s) => s.trim()).filter(Boolean) : splitMulti(optionsRaw); + // 如果使用 | 分隔(推荐格式),选项必须严格按 | 切分;选项文本内允许出现逗号/顿号等标点 + // 否则(CSV/Tab 分隔)才对 optionsRaw 做更宽松的 split + const options = hasPipeDelimiter ? optionsTokens.map((s) => s.trim()).filter(Boolean) : splitMulti(optionsRaw); if (options.length < 2) return { error: `选项至少2个:${trimmed}` }; const answerTokens = splitMulti(answerRaw); - if (answerTokens.length === 0) return { error: `答案不能为空:${trimmed}` }; + if (answerTokens.length === 0) { + if (allowEmptyAnswer) { + question.options = options; + question.answer = type === 'multiple' ? [] : ''; + return { question }; + } + return { error: `答案不能为空:${trimmed}` }; + } const toValue = (token: string) => { const m = token.trim().match(/^([A-Za-z])$/); if (!m) return token; @@ -130,13 +140,25 @@ const parseLine = (line: string) => { if (type === 'judgment') { const a = normalizeJudgmentAnswer(answerRaw); - if (!a) return { error: `答案不能为空:${trimmed}` }; + if (!a) { + if (allowEmptyAnswer) { + question.answer = ''; + return { question }; + } + return { error: `答案不能为空:${trimmed}` }; + } question.answer = a; return { question }; } const textAnswer = String(answerRaw || '').trim(); - if (!textAnswer) return { error: `答案不能为空:${trimmed}` }; + if (!textAnswer) { + if (allowEmptyAnswer) { + question.answer = ''; + return { question }; + } + return { error: `答案不能为空:${trimmed}` }; + } question.answer = textAnswer; return { question }; }; diff --git a/test/db-migration-score-zero.test.ts b/test/db-migration-score-zero.test.ts new file mode 100644 index 0000000..b5e2a36 --- /dev/null +++ b/test/db-migration-score-zero.test.ts @@ -0,0 +1,58 @@ +import test from 'node:test'; +import assert from 'node:assert/strict'; + +process.env.NODE_ENV = 'test'; +process.env.DB_PATH = ':memory:'; + +test('历史数据库 questions.score > 0 约束应迁移为 >= 0', async () => { + const { initDbConnection, initDatabase, run } = await import('../api/database'); + + // 手工创建“旧版本”最小可启动 schema:让 initDatabase 走“表已存在”分支 + await initDbConnection(); + + await run(` + CREATE TABLE users ( + id TEXT PRIMARY KEY, + name TEXT NOT NULL, + phone TEXT UNIQUE NOT NULL, + password TEXT NOT NULL DEFAULT '', + created_at DATETIME DEFAULT CURRENT_TIMESTAMP + ); + `); + + await run(` + CREATE TABLE questions ( + id TEXT PRIMARY KEY, + content TEXT NOT NULL, + type TEXT NOT NULL, + options TEXT, + answer TEXT NOT NULL, + score INTEGER NOT NULL CHECK(score > 0), + category TEXT NOT NULL DEFAULT '通用', + created_at DATETIME DEFAULT CURRENT_TIMESTAMP + ); + `); + + await run(` + CREATE TABLE quiz_records ( + id TEXT PRIMARY KEY, + user_id TEXT NOT NULL, + subject_id TEXT, + task_id TEXT, + total_score INTEGER NOT NULL, + correct_count INTEGER NOT NULL, + total_count INTEGER NOT NULL, + created_at DATETIME DEFAULT CURRENT_TIMESTAMP + ); + `); + + await initDatabase(); + + // 迁移后应允许插入 score=0 + await assert.doesNotReject(async () => { + await run( + `INSERT INTO questions (id, content, type, options, answer, score, category) + VALUES ('q1', '0分题', 'text', NULL, '', 0, '通用')`, + ); + }); +}); diff --git a/test/question-text-import.test.ts b/test/question-text-import.test.ts index 9bf8e9e..12cfc97 100644 --- a/test/question-text-import.test.ts +++ b/test/question-text-import.test.ts @@ -236,7 +236,7 @@ test('前端文本解析支持 | 分隔格式', async () => { '题型|题目类别|分值|题目内容|选项|答案|解析', '单选|通用|5|我国首都是哪里?|北京|上海|广州|深圳|A|我国首都为北京', '多选|通用|5|以下哪些是水果?|苹果|白菜|香蕉|西红柿|A,C,D|水果包括苹果/香蕉/西红柿', - '判断|通用|2|地球是圆的||正确|地球接近球体', + '判断|通用|0|地球是圆的||正确|地球接近球体', ].join('\n'); const res = parseTextQuestions(input); @@ -259,6 +259,69 @@ test('前端文本解析支持 | 分隔格式', async () => { assert.ok(judgment); assert.equal(judgment.answer, '正确'); assert.equal(judgment.analysis, '地球接近球体'); + assert.equal(judgment.score, 0); +}); + +test('前端文本解析:| 分隔时选项允许包含逗号/顿号', async () => { + const { parseTextQuestions } = await import('../src/utils/questionTextImport'); + + const input = [ + '题型|题目类别|分值|题目内容|选项|答案|解析', + '单选|通用|5|带标点的选项是否应完整保留?|选项A,包含中文逗号|选项B、包含顿号|选项C(括号)|选项D。句号|A|应能正常解析', + ].join('\n'); + + const res = parseTextQuestions(input); + assert.deepEqual(res.errors, []); + assert.equal(res.questions.length, 1); + + const q = res.questions[0]; + assert.equal(q.type, 'single'); + assert.deepEqual(q.options, ['选项A,包含中文逗号', '选项B、包含顿号', '选项C(括号)', '选项D。句号']); + assert.equal(q.answer, '选项A,包含中文逗号'); + assert.equal(q.analysis, '应能正常解析'); +}); + +test('题库文本导入应允许0分题目', async () => { + const { initDatabase, get } = await import('../api/database'); + await initDatabase(); + + const { app } = await import('../api/server'); + const server = app.listen(0); + + try { + const addr = server.address(); + assert.ok(addr && typeof addr === 'object'); + const baseUrl = `http://127.0.0.1:${addr.port}`; + + const res = await jsonFetch(baseUrl, '/api/questions/import-text', { + method: 'POST', + body: { + mode: 'incremental', + questions: [ + { + content: '0分判断题示例', + type: 'judgment', + category: '通用', + options: undefined, + answer: '正确', + analysis: '该题用于验证0分允许导入', + score: 0, + }, + ], + }, + }); + + assert.equal(res.status, 200); + assert.equal(res.json?.success, true); + assert.equal(res.json?.data?.inserted, 1); + + const row = await get(`SELECT * FROM questions WHERE content = ?`, ['0分判断题示例']); + assert.ok(row); + assert.equal(row.score, 0); + assert.equal(row.type, 'judgment'); + } finally { + await new Promise((resolve) => server.close(() => resolve())); + } }); test('题目类别列表应返回题库数量统计', async () => { diff --git a/test/score-percentage.test.ts b/test/score-percentage.test.ts index 013ce3f..1319560 100644 --- a/test/score-percentage.test.ts +++ b/test/score-percentage.test.ts @@ -109,3 +109,80 @@ test('得分占比=总得分/试卷总分;40%应判定为不及格', async () server.close(); } }); + +test('0分题目提交时默认判定正确且不要求作答', async () => { + const { initDatabase, run, get } = await import('../api/database'); + await initDatabase(); + + const { app } = await import('../api/server'); + const server = app.listen(0); + + const jsonFetch = async (baseUrl: string, path: string, options?: { method?: string; body?: unknown }) => { + const res = await fetch(`${baseUrl}${path}`, { + method: options?.method ?? 'GET', + headers: options?.body ? { 'Content-Type': 'application/json' } : undefined, + body: options?.body ? JSON.stringify(options.body) : undefined, + }); + const text = await res.text(); + let json: any = null; + try { + json = text ? JSON.parse(text) : null; + } catch { + json = null; + } + return { status: res.status, json, text }; + }; + + try { + const addr = server.address(); + assert.ok(addr && typeof addr === 'object'); + const baseUrl = `http://127.0.0.1:${addr.port}`; + + const userId = randomUUID(); + await run(`INSERT INTO users (id, name, phone, password) VALUES (?, ?, ?, ?)`, [ + userId, + '测试用户', + `138${Math.floor(Math.random() * 1e8).toString().padStart(8, '0')}`, + '', + ]); + + const q0 = randomUUID(); + await run( + `INSERT INTO questions (id, content, type, options, answer, analysis, score, category) + VALUES (?, ?, ?, ?, ?, ?, ?, ?)`, + [q0, '0分题', 'single', JSON.stringify(['A', 'B']), '', '用于验证0分默认正确', 0, '通用'], + ); + + const res = await jsonFetch(baseUrl, '/api/quiz/submit', { + method: 'POST', + body: { + userId, + answers: [ + { + questionId: q0, + // 不传 userAnswer + score: 0, + isCorrect: false, + }, + ], + }, + }); + + assert.equal(res.status, 200); + assert.equal(res.json?.success, true); + assert.equal(res.json?.data?.totalScore, 0); + assert.equal(res.json?.data?.correctCount, 1); + assert.equal(res.json?.data?.totalCount, 1); + + const recordId = res.json?.data?.recordId; + assert.ok(recordId); + + const row = await get(`SELECT * FROM quiz_answers WHERE record_id = ?`, [recordId]); + assert.ok(row); + assert.equal(row.is_correct, 1); + assert.equal(row.score, 0); + assert.equal(row.user_answer, ''); + } finally { + await new Promise((resolve) => server.close(() => resolve())); + } +});